/* 1.0.66: SEO topic pages. One shared skeleton, five distinct art directions.
   Cards, grids, and the lightbox come from work.css; this file is the personality. */

/* ---------- shared topic skeleton ---------- */
.topic-main{background:var(--navy);color:#fff}
.topic-hero{position:relative;overflow:hidden;padding:calc(var(--nav-height) + 64px) 0 56px}
.topic-hero .kicker{display:block;font-family:var(--mono);font-size:.65rem;letter-spacing:.16em;text-transform:uppercase;margin-bottom:1rem}
.topic-hero h1{margin:0 0 1.5rem;font-size:clamp(3.4rem,10vw,7.5rem);font-weight:900;line-height:.85;letter-spacing:-.04em;text-transform:uppercase}
.topic-hero h1 .line{display:block}
.topic-hero .lede{max-width:680px;margin:0;color:#c8d4df;font-size:1.02rem;line-height:1.75}
.topic-hero .hero-proof{margin-top:1.6rem;font-family:var(--mono);font-size:.65rem;letter-spacing:.1em;text-transform:uppercase}
.topic-section{padding:3.5rem 0;border-top:1px solid rgba(255,255,255,.09)}
.topic-featured{padding:0 0 3.5rem}
.featured-frame{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center;padding:clamp(1.25rem,3vw,2.5rem);border:1px solid rgba(240,195,107,.28);background:rgba(255,255,255,.025)}
.featured-media{max-width:340px}
.featured-media .card{width:100%}
.featured-tag{display:inline-block;font-family:var(--mono);font-size:.62rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;margin-bottom:1rem}
.featured-copy h2{margin:0 0 .6rem;font-size:clamp(1.8rem,4.5vw,2.8rem);line-height:1;text-transform:uppercase;letter-spacing:.01em}
.featured-copy p{margin:0;color:#c8d4df;line-height:1.65}
.featured-copy .featured-cta-note{margin-top:1.2rem;font-family:var(--mono);font-size:.68rem;letter-spacing:.06em;color:var(--gold)}
.topic-faq .faq-list{max-width:780px;display:grid;gap:.9rem}
.faq-item{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.02);padding:1.1rem 1.3rem}
.faq-item summary{cursor:pointer;font-weight:700;font-size:1.02rem;list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-family:var(--mono);color:var(--gold);font-size:1.2rem}
.faq-item[open] summary::after{content:"-"}
.faq-item p{margin:.8rem 0 0;color:#c8d4df;line-height:1.7;font-size:.95rem}
.topic-related{padding:2.5rem 0;border-top:1px solid rgba(255,255,255,.09)}
.topic-related .shell{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.related-label{font-family:var(--mono);font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:#8b98a5;margin-right:.4rem}
.topic-related a{display:inline-flex;align-items:center;min-height:44px;padding:.55rem 1.1rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;color:#fff;text-decoration:none;font-family:var(--mono);font-size:.62rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.topic-related a:hover{border-color:var(--gold);color:var(--gold)}
.topic-main .cta{border-top:1px solid rgba(255,255,255,.09)}
.topic-main .cta p{color:#c8d4df}

/* ---------- 01 product demos: the studio ---------- */
.topic-productdemos{background:radial-gradient(1100px 480px at 50% -80px,rgba(240,195,107,.14),transparent 65%),var(--navy)}
.topic-productdemos .topic-hero .kicker{color:var(--gold)}
.topic-productdemos .topic-hero .hero-proof{color:var(--gold)}
.topic-productdemos .topic-index{color:var(--gold)}
.topic-productdemos .featured-tag{color:#0a1424;background:var(--gold);padding:.4rem .8rem}
.topic-productdemos .featured-frame{border-color:rgba(240,195,107,.45);box-shadow:0 30px 80px rgba(0,0,0,.35)}

/* ---------- 02 testimonials: the editorial ---------- */
.topic-testimonials{--paper2:#141009;background:linear-gradient(180deg,#141009,#0a0805 70%)}
.topic-testimonials .topic-hero::before{content:"\201C";position:absolute;top:40px;right:4%;font-family:Georgia,serif;font-size:clamp(9rem,26vw,20rem);line-height:1;color:rgba(240,195,107,.10);pointer-events:none}
.topic-testimonials .topic-hero .kicker{color:#e8d9b8}
.topic-testimonials .topic-hero .hero-proof{color:#e8d9b8}
.topic-testimonials .topic-index{color:#e8d9b8}
.topic-testimonials .featured-tag{color:#e8d9b8;border-bottom:2px solid var(--gold);padding-bottom:.35rem}
.topic-testimonials .faq-item{border-left:3px solid var(--gold);border-top:1px solid rgba(255,255,255,.08);border-right:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}

/* ---------- 03 food + drink: savor ---------- */
.topic-fooddrink{background:radial-gradient(1000px 520px at 50% -60px,rgba(214,59,84,.13),transparent 62%),var(--navy)}
.topic-fooddrink .topic-hero .kicker{color:#e09a6c}
.topic-fooddrink .topic-hero .hero-proof{color:#e09a6c}
.topic-fooddrink .topic-index{color:#e09a6c}
.topic-fooddrink .featured-tag{color:#f4b48f;border:1px solid rgba(224,154,108,.5);padding:.4rem .8rem;border-radius:999px}
.topic-fooddrink .featured-frame{border-color:rgba(224,154,108,.4)}
.topic-fooddrink .faq-item summary::after{color:#e09a6c}

/* ---------- 04 tech: signal ---------- */
.topic-techvideos{background:repeating-linear-gradient(0deg,rgba(22,199,234,.028) 0 1px,transparent 1px 34px),repeating-linear-gradient(90deg,rgba(22,199,234,.028) 0 1px,transparent 1px 34px),var(--navy)}
.topic-techvideos .topic-hero .kicker{color:var(--cyan)}
.topic-techvideos .topic-hero .hero-proof{color:var(--cyan)}
.topic-techvideos .topic-index{color:var(--cyan)}
.topic-techvideos .featured-tag{font-family:var(--mono);color:var(--cyan);border:1px solid rgba(22,199,234,.45);padding:.4rem .8rem}
.topic-techvideos .featured-frame{border-color:rgba(22,199,234,.35)}
.topic-techvideos .faq-item summary::after{color:var(--cyan)}

/* ---------- 05 lifestyle: daylight (the light page) ---------- */
.topic-lifestyle{--paper:#f4edde;--ink:#0a1526;--muted:#5c5a50;--line:rgba(10,21,38,.16);background:var(--paper);color:var(--ink)}
.topic-lifestyle .topic-main{background:var(--paper);color:var(--ink)}
.topic-lifestyle .topic-main .cta{border-top:1px solid rgba(10,21,38,.14)}
.topic-lifestyle .topic-main .cta p{color:#3d3a30}
.topic-lifestyle .related-label{color:#8a6a2f}
.topic-lifestyle .topic-related a{color:#0a1526;border-color:rgba(10,21,38,.32)}
.topic-lifestyle .topic-related a:hover{color:#a37c2c;border-color:#a37c2c}
.topic-lifestyle .topic-hero .kicker{color:#8a6a2f}
.topic-lifestyle .topic-hero h1{color:#0a1526}
.topic-lifestyle .topic-hero h1 .glint{color:#a37c2c}
.topic-lifestyle .topic-hero .lede{color:#3d3a30}
.topic-lifestyle .topic-hero .hero-proof{color:#8a6a2f}
.topic-lifestyle .topic-section{border-top:1px solid rgba(10,21,38,.14)}
.topic-lifestyle .topic-head h2{color:#0a1526}
.topic-lifestyle .topic-head p{color:#5c5a50}
.topic-lifestyle .topic-index{color:#a37c2c}
.topic-lifestyle .featured-frame{border-color:rgba(163,124,44,.5);background:rgba(255,255,255,.5)}
.topic-lifestyle .featured-tag{color:#0a1526;background:#e3bd63;padding:.4rem .8rem}
.topic-lifestyle .featured-copy h2{color:#0a1526}
.topic-lifestyle .featured-copy p{color:#3d3a30}
.topic-lifestyle .featured-copy .featured-cta-note{color:#8a6a2f}
.topic-lifestyle .faq-item{border-color:rgba(10,21,38,.2);background:rgba(255,255,255,.45)}
.topic-lifestyle .faq-item summary{color:#0a1526}
.topic-lifestyle .faq-item summary::after{color:#a37c2c}
.topic-lifestyle .faq-item p{color:#3d3a30}
.topic-lifestyle .topic-related{border-top:1px solid rgba(10,21,38,.14)}
.topic-lifestyle .related-label{color:#8a6a2f}
.topic-lifestyle .topic-related a{border-color:rgba(10,21,38,.3);color:#0a1526}
.topic-lifestyle .topic-related a:hover{border-color:#a37c2c;color:#a37c2c}
.topic-lifestyle .cta{border-top:1px solid rgba(10,21,38,.14)}
.topic-lifestyle .cta p{color:#3d3a30}
.topic-lifestyle .button-line{color:#0a1526;border-color:rgba(10,21,38,.45)}
.topic-lifestyle .button-line:hover{border-color:#0a1526;color:#0a1526}

/* ============ 1.0.78 ws6: cinematic topic pages ============
   Apple/Nike-grade presentation through Moe's "cinematic" signature lens.
   Additive only: film-grade per-topic tokens, letterbox hero with grain and
   atmosphere, CSS device mockups (phone frames), framed stills, scroll-driven
   reveals, bold type moments. No copy, poster, or media changes. */

/* ---- film-grade accent tokens per topic ---- */
.topic-productdemos{--acc:#f0c36b;--acc2:#c98f2e;--acc-glow:rgba(240,195,107,.20);--acc-soft:rgba(240,195,107,.55)}
.topic-testimonials{--acc:#e8d9b8;--acc2:#c9a86a;--acc-glow:rgba(232,217,184,.18);--acc-soft:rgba(232,217,184,.5)}
.topic-fooddrink{--acc:#ff8a3d;--acc2:#ff4d2e;--acc-glow:rgba(255,110,30,.22);--acc-soft:rgba(255,138,61,.55)}
.topic-techvideos{--acc:#16c7ea;--acc2:#9be9ff;--acc-glow:rgba(22,199,234,.20);--acc-soft:rgba(22,199,234,.55)}
.topic-lifestyle{--acc:#a37c2c;--acc2:#e3bd63;--acc-glow:rgba(163,124,44,.22);--acc-soft:rgba(163,124,44,.55)}
.topic-pets{--acc:#ff9ec6;--acc2:#ffd166;--acc-glow:rgba(255,158,198,.20);--acc-soft:rgba(255,158,198,.55)}

.topic-main{--grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E")}

/* ---- cinematic hero: letterbox bars, vignette, film grain, atmosphere ---- */
.topic-hero .cine-frame{position:absolute;inset:0;pointer-events:none}
.topic-hero .shell{position:relative;z-index:1}
.cine-frame::before{content:"";position:absolute;inset:0;
  background:
    linear-gradient(#000,#000) 50% 0/100% clamp(10px,2.6vw,26px) no-repeat,
    linear-gradient(#000,#000) 50% 100%/100% clamp(10px,2.6vw,26px) no-repeat,
    radial-gradient(115% 85% at 50% 42%,transparent 52%,rgba(0,0,0,.58) 100%)}
.cine-frame::after{content:"";position:absolute;inset:0;background-image:var(--grain);opacity:.09;mix-blend-mode:overlay;animation:cine-grain 1.1s steps(3) infinite}
@keyframes cine-grain{0%{transform:translate(0,0)}33%{transform:translate(-18px,10px)}66%{transform:translate(12px,-14px)}100%{transform:translate(0,0)}}
.cine-motes{position:absolute;left:5%;bottom:10%;width:8px;height:8px;border-radius:50%;color:var(--acc);background:currentColor;opacity:0;pointer-events:none;
  box-shadow:70px -50px 0 -2px currentColor,150px 20px 0 -3px currentColor,230px -80px 0 -1px currentColor,330px -20px 0 -2px currentColor,440px -100px 0 -3px currentColor,60vw -140px 0 -2px currentColor;
  animation:cine-motes 16s linear infinite}
.cine-motes.motes-b{left:52%;animation-duration:22s;animation-delay:-9s}
@keyframes cine-motes{0%{transform:translateY(22vh);opacity:0}12%{opacity:.8}82%{opacity:.45}100%{transform:translateY(-70vh);opacity:0}}
/* slow confident hero entrance */
.topic-hero .kicker,.topic-hero h1,.topic-hero .lede,.topic-hero .hero-proof{animation:cine-rise 1.1s cubic-bezier(.16,.7,.2,1) backwards}
.topic-hero h1{animation-delay:.12s}
.topic-hero .lede{animation-delay:.24s}
.topic-hero .hero-proof{animation-delay:.36s}
@keyframes cine-rise{from{opacity:0;transform:translateY(46px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}

/* ---- richer per-topic separators (divider-flair extension) ---- */
.topic-main>.divider-flair{display:flex;margin:0;padding:clamp(1.8rem,5vw,3rem) clamp(1.2rem,4vw,2.5rem)}
.topic-main>.divider-flair::before{background:linear-gradient(90deg,transparent,var(--acc-soft))}
.topic-main>.divider-flair::after{background:linear-gradient(90deg,var(--acc-soft),transparent)}
.topic-main>.divider-flair i{background:var(--acc);box-shadow:0 0 16px var(--acc-glow),0 0 5px var(--acc);animation:flair-pulse 3.2s ease-in-out infinite}
@keyframes flair-pulse{0%,100%{transform:rotate(45deg) scale(1);opacity:.85}50%{transform:rotate(225deg) scale(1.25);opacity:1}}

/* ---- CSS device mockups: phone frames around vertical videos ---- */
.topic-main .grid .t-frame{min-width:0;position:relative}
.phone-frame{position:relative;isolation:isolate;border-radius:clamp(1.6rem,7vw,2.4rem);padding:clamp(.55rem,2.4vw,.85rem);
  background:linear-gradient(155deg,#3a4353 0%,#0a0d13 42%,#222a37 68%,#04060a 100%);
  box-shadow:0 34px 70px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.10),0 0 54px var(--acc-glow);
  animation:cine-drift 7s ease-in-out infinite}
.topic-main .grid .t-frame:nth-child(2n) .phone-frame{animation-delay:-2.4s}
.topic-main .grid .t-frame:nth-child(3n) .phone-frame{animation-delay:-4.8s}
.phone-frame::before{content:"";position:absolute;z-index:3;top:clamp(.95rem,4.6vw,1.3rem);left:50%;transform:translateX(-50%);width:30%;max-width:104px;height:.9rem;border-radius:999px;background:#000;box-shadow:inset 0 0 0 2px rgba(255,255,255,.05)}
.phone-frame::after{content:"";position:absolute;z-index:-1;left:10%;right:10%;bottom:-1.7rem;height:2.4rem;background:radial-gradient(50% 100% at 50% 0%,var(--acc-glow),transparent 70%);filter:blur(8px)}
.phone-frame .frame-sheen{position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.10) 46%,transparent 60%);background-size:260% 100%;animation:cine-sheen 6.5s ease-in-out infinite}
.phone-frame .card{clip-path:none;border-radius:clamp(1.1rem,5vw,1.7rem);width:100%}
@keyframes cine-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes cine-sheen{0%,55%{background-position:120% 0}100%{background-position:-50% 0}}

/* ---- framed stills: gallery frame with per-topic corner ticks ---- */
.still-frame{position:relative;padding:.6rem;
  background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,0) 60%);
  border:1px solid var(--acc-soft);
  box-shadow:9px 9px 0 rgba(0,0,0,.35),0 22px 48px rgba(0,0,0,.42),0 0 34px var(--acc-glow)}
.still-frame .frame-sheen{display:none}
.still-frame .card{clip-path:none;width:100%}
.still-frame::before,.still-frame::after{content:"";position:absolute;width:30px;height:30px;pointer-events:none}
.still-frame::before{top:-7px;left:-7px;border-top:2px solid var(--acc);border-left:2px solid var(--acc)}
.still-frame::after{bottom:-7px;right:-7px;border-bottom:2px solid var(--acc);border-right:2px solid var(--acc)}

/* ---- featured video as a movie title card: dark stage, spotlight, slow light sweep ---- */
.featured-stage{position:relative;overflow:hidden;border:1px solid var(--acc-soft);border-radius:.9rem;
  background:radial-gradient(78% 68% at 50% 10%,var(--acc-glow),transparent 70%),linear-gradient(180deg,#060a12,#030509);
  box-shadow:0 30px 80px rgba(0,0,0,.5),0 0 60px var(--acc-glow)}
.featured-stage::after{content:"";position:absolute;inset:-45%;pointer-events:none;
  background:conic-gradient(from 0deg,transparent 0 42%,var(--acc-glow) 50%,transparent 58% 100%);
  animation:stage-spin 26s linear infinite}
@keyframes stage-spin{to{transform:rotate(360deg)}}
.featured-stage .featured-media,.featured-stage .featured-copy{position:relative;z-index:1}

/* ---- bold type moments and confident whitespace ---- */
.topic-section{padding:clamp(4rem,9vw,7rem) 0}
.topic-head{margin-bottom:clamp(1.8rem,4vw,3rem)}
.topic-head h2{font-size:clamp(2.9rem,8vw,5.2rem);line-height:.88;letter-spacing:-.02em;text-transform:uppercase}

/* ---- scroll-driven reveals (progressive enhancement; static when unsupported) ---- */
@supports (animation-timeline:view()){
  .topic-main .t-frame,.topic-main .topic-head,.topic-main .featured-stage,.topic-main .faq-item{animation:cine-rise .9s cubic-bezier(.16,.7,.2,1) backwards;animation-timeline:view();animation-range:entry 0% cover 28%}
  .topic-main .topic-related{animation:cine-rise .8s cubic-bezier(.16,.7,.2,1) backwards;animation-timeline:view();animation-range:entry 0% cover 45%}
}

/* ---- per-topic glow accents on FAQ, CTA, related links ---- */
.topic-faq .faq-item[open]{border-color:var(--acc-soft);box-shadow:0 14px 40px rgba(0,0,0,.28),0 0 30px var(--acc-glow)}
.topic-main .cta .button{box-shadow:0 14px 38px rgba(0,0,0,.4),0 0 30px var(--acc-glow)}
.topic-related a:hover{border-color:var(--acc);color:var(--acc);box-shadow:0 0 18px var(--acc-glow)}

/* ---- 440px-first responsive ---- */
@media(max-width:760px){
  .topic-main .grid{gap:1.5rem}
  .featured-stage .featured-media{margin-inline:auto}
  .cine-motes{left:2%}
  .topic-section{padding:clamp(3rem,10vw,4.5rem) 0}
}

/* ---- reduced motion: all cinematic motion off, content fully visible ---- */
@media (prefers-reduced-motion:reduce){
  .topic-hero .kicker,.topic-hero h1,.topic-hero .lede,.topic-hero .hero-proof,
  .phone-frame,.phone-frame .frame-sheen,.cine-motes,.cine-frame::after,
  .featured-stage::after,.topic-main>.divider-flair i{animation:none}
  .topic-hero .kicker,.topic-hero h1,.topic-hero .lede,.topic-hero .hero-proof,.cine-motes{opacity:1}
  @supports (animation-timeline:view()){
    .topic-main .t-frame,.topic-main .topic-head,.topic-main .featured-stage,.topic-main .faq-item,.topic-main .topic-related{animation:none}
  }
}
