/* =========================================================
   update_7 — Dzinr-inspired layer (navy/blue kept)
   Loaded AFTER the existing styles on both pages.
   Light = white/blue (default) · Dark = navy  (toggle bottom-right)
   ========================================================= */

/* ---------- dark theme tokens ---------- */
html[data-theme="dark"]{
  --white:#0D1B2A; --soft:#10223a; --soft2:#16304f;
  --mist:rgba(255,255,255,.11); --ink:#E8EEF8; --slate:#9FB0C8;
  color-scheme:dark;
}
html[data-theme="dark"] body{background:#0D1B2A;color:var(--ink)}
body{transition:background-color .35s ease,color .35s ease}

/* ---------- bigger, tighter type (fonts unchanged) ---------- */
.sec-h{font-weight:600;font-size:clamp(2rem,5.2vw,4.6rem);line-height:1.02;letter-spacing:-.04em}
.sec-sub{font-size:clamp(1.02rem,1.5vw,1.25rem);max-width:48rem}
.card h3{font-size:clamp(1.2rem,1.8vw,1.5rem);letter-spacing:-.02em}
.wk-name{font-size:clamp(1.15rem,1.9vw,1.55rem);letter-spacing:-.02em}
.tl-role{font-size:clamp(1.2rem,2vw,1.6rem);letter-spacing:-.02em}
.sub-h{font-size:clamp(1.4rem,3vw,2.2rem);letter-spacing:-.03em}

/* accordion heads — hairline rows like Dzinr */
.acc-head{padding:clamp(1.6rem,3.5vh,2.6rem) 0}
.acc-icon{width:52px;height:52px}
.acc-icon::before{width:18px}.acc-icon::after{height:18px}
.sec{border-color:var(--mist)}

/* nav — Dzinr-style pill CTA */
.nav{background:rgba(255,255,255,.86)}
.nav-cta{background:var(--navy);border-radius:999px;padding:.55rem 1.15rem}
.nav-cta::after{content:" →"}
.nav-cta:hover{background:var(--blue)}
html[data-theme="dark"] .nav{background:rgba(13,27,42,.86)}
html[data-theme="dark"] .nav-cta{background:var(--blue)}
html[data-theme="dark"] .nav-cta:hover{background:#4c80ff}
.btn{border-radius:999px}

/* ---------- HERO: light = white, dark = navy ---------- */
.hero{background:#fff;color:var(--ink);transition:background-color .35s ease}
.hero::before,.hero::after{opacity:0;transition:opacity .35s}
.hero .kicker{color:var(--blue)}
.hero .kicker::before{background:var(--blue)}
.hero h1 .a{color:var(--blue)}
.hero .lead{color:var(--slate)}
.hero .btn.ghost{border-color:rgba(13,27,42,.22);color:var(--ink)}
.hero .btn.ghost:hover{background:rgba(13,27,42,.05)}
html[data-theme="dark"] .hero{background:var(--navy);color:#fff}
html[data-theme="dark"] .hero::before{opacity:1}
html[data-theme="dark"] .hero::after{opacity:.5}
html[data-theme="dark"] .hero .kicker{color:#7ea2ff}
html[data-theme="dark"] .hero .kicker::before{background:#7ea2ff}
html[data-theme="dark"] .hero h1 .a{color:#5b86ff}
html[data-theme="dark"] .hero .lead{color:#aebdd4}
html[data-theme="dark"] .hero .btn.ghost{border-color:rgba(255,255,255,.28);color:#fff}
html[data-theme="dark"] .hero .btn.ghost:hover{background:rgba(255,255,255,.08)}

/* home hero: giant name + intro row */
.dz-hero .hero-in{min-height:0;align-items:stretch;text-align:left;gap:0;padding:clamp(1.2rem,3vh,2rem) clamp(1.2rem,4vw,2.4rem) clamp(2.4rem,6vh,4rem)}
.dz-name{display:block;width:100%;padding:0 clamp(.8rem,2vw,1.6rem);font-family:var(--f-head);font-weight:700;
  text-transform:uppercase;line-height:.82;letter-spacing:-.055em;white-space:nowrap;font-size:12.4vw;
  color:var(--ink);margin:clamp(.6rem,2vh,1.4rem) 0 clamp(1.6rem,4vh,3rem);position:relative;z-index:2}
.dz-name-in{display:inline-block}
.dz-name b{color:var(--blue);font-weight:700}
html[data-theme="dark"] .dz-name{color:#fff}
html[data-theme="dark"] .dz-name b{color:#5b86ff}
.dz-intro{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.7fr);gap:clamp(1.6rem,4vw,4rem);align-items:end;
  border-top:1px solid var(--mist);padding-top:clamp(1.4rem,3.5vh,2.4rem)}
html[data-theme="dark"] .dz-intro{border-color:rgba(255,255,255,.12)}
.dz-col.wrap{max-width:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.2rem;align-items:flex-start}
.dz-hero .kicker{justify-content:flex-start;text-align:left;font-size:.72rem;letter-spacing:.12em;flex-wrap:wrap}
.dz-hero h1{font-size:clamp(1.7rem,3.9vw,3.6rem);line-height:1.08;letter-spacing:-.035em;max-width:none;font-weight:600}
.dz-hero h1 .line{display:inline}
.dz-hero .hero-btns{justify-content:flex-start;margin-top:.2rem}
.dz-hero .hero-media{width:100%;max-width:min(340px,calc(76vh * 9 / 16));aspect-ratio:9/16;justify-self:end;border-radius:20px;box-shadow:0 24px 60px rgba(13,27,42,.18)}
@media(max-width:820px){
  .dz-intro{grid-template-columns:1fr}
  .dz-hero .hero-media{justify-self:start;max-width:min(300px,calc(72vh * 9 / 16))}
}

/* ---------- grow-on-scroll image reel ---------- */
.dz-reel{position:relative;height:190vh;background:var(--white)}
.dz-reel-stick{position:sticky;top:64px;height:calc(100vh - 64px);display:flex;align-items:center;justify-content:center;overflow:hidden}
.dz-reel-frame{--w:56;width:calc(var(--w) * 1%);max-width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(.4rem,1vw,.9rem);
  padding:clamp(.4rem,1vw,.9rem);background:var(--navy);border-radius:calc((100 - var(--w)) * .5px + 4px);
  box-shadow:0 30px 80px rgba(13,27,42,.22);will-change:width}
.dz-tile{position:relative;aspect-ratio:1/1;border-radius:clamp(8px,1vw,14px);overflow:hidden;background:#13294a}
.dz-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s ease}
.dz-tile img.on{opacity:1}
.dz-reel-cap{position:absolute;left:0;right:0;bottom:clamp(.8rem,3vh,1.8rem);text-align:center;font-family:var(--f-mono);font-size:.68rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--slate)}
.dz-reel-cap a{color:var(--blue)}
@media(max-width:900px){.dz-reel-frame{grid-template-columns:repeat(2,1fr)}.dz-tile:nth-child(3){display:none}}
@media(max-width:560px){.dz-reel{height:150vh}.dz-reel-frame{grid-template-columns:1fr}.dz-tile:nth-child(2){display:none}}

/* ---------- company-name marquee (two rows, opposite directions) ---------- */
.dz-marq{padding:clamp(2.4rem,6vh,4rem) 0;border-bottom:1px solid var(--mist);overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.dz-row{display:flex;gap:.6rem;width:max-content;animation:dzm 38s linear infinite}
.dz-row+.dz-row{margin-top:.6rem;animation-direction:reverse;animation-duration:44s}
.dz-marq:hover .dz-row{animation-play-state:paused}
@keyframes dzm{to{transform:translateX(-50%)}}
.dz-co{flex:0 0 auto;min-width:clamp(200px,24vw,300px);height:clamp(84px,11vw,124px);padding:0 2rem;border-radius:4px;background:var(--soft);
  display:flex;align-items:center;justify-content:center;font-family:var(--f-head);font-weight:700;font-size:clamp(1.15rem,2vw,1.7rem);
  letter-spacing:-.03em;color:var(--ink);white-space:nowrap}
.dz-co:nth-child(3n+2){color:var(--blue)}
html[data-theme="dark"] .dz-co{background:#13263f}
html[data-theme="dark"] .dz-co:nth-child(3n+2){color:#7ea2ff}

/* ---------- contact: big closing line ---------- */
.contact h2{font-size:clamp(2.6rem,8.4vw,7.4rem);line-height:.95;letter-spacing:-.05em;font-weight:700}
html[data-theme="dark"] .contact{background:#081422}

/* ---------- work page hero ---------- */
.hero:not(.dz-hero) h1{font-size:clamp(2.3rem,7vw,5.8rem);line-height:.98;letter-spacing:-.045em;max-width:16ch}
.hero:not(.dz-hero) .btn.line{background:transparent}

/* ---------- dark mode: surfaces that were hard-coded white ---------- */
html[data-theme="dark"] .card,
html[data-theme="dark"] .soft .card,
html[data-theme="dark"] .wk,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .award,
html[data-theme="dark"] .tc,
html[data-theme="dark"] .cat,
html[data-theme="dark"] .pager a,
html[data-theme="dark"] .svc div,
html[data-theme="dark"] .btn.line,
html[data-theme="dark"] .lead-card{background:#12243b}
html[data-theme="dark"] .btn.line{color:var(--ink)}
html[data-theme="dark"] .tl-item::before{background:#0D1B2A}
html[data-theme="dark"] .card:hover,html[data-theme="dark"] .wk.open,html[data-theme="dark"] .cat:hover{border-color:rgba(91,134,255,.45)}
html[data-theme="dark"] .tagrow span{color:#b9c7dc}
html[data-theme="dark"] .note{color:#c5d2e5;border-color:rgba(91,134,255,.3)}
html[data-theme="dark"] .vslot,html[data-theme="dark"] .vmini,html[data-theme="dark"] .mtile{border-color:rgba(255,255,255,.18)}
html[data-theme="dark"] .award .bg{background:var(--blue)}
html[data-theme="dark"] .lead-form input:focus,html[data-theme="dark"] .lead-form select:focus{background:#0D1B2A}
html[data-theme="dark"] .sec-h .bar{background:rgba(91,134,255,.3)}

/* ---------- theme toggle (bottom-right, like Dzinr) ---------- */
.dz-toggle{position:fixed;right:clamp(.8rem,2vw,1.4rem);bottom:clamp(.8rem,2vw,1.4rem);z-index:500;width:46px;height:46px;border-radius:50%;
  background:var(--soft);border:1px solid var(--mist);color:var(--ink);display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(13,27,42,.14);transition:background .3s,transform .2s}
.dz-toggle:hover{transform:scale(1.06)}
.dz-toggle svg{width:20px;height:20px}
.dz-toggle .moon{display:none}
html[data-theme="dark"] .dz-toggle{background:#16304f}
html[data-theme="dark"] .dz-toggle .sun{display:none}
html[data-theme="dark"] .dz-toggle .moon{display:block}

@media (prefers-reduced-motion:reduce){
  .dz-row{animation:none}
  .dz-reel{height:auto}
  .dz-reel-stick{position:relative;top:0;height:auto;padding:2rem 0}
  .dz-reel-frame{--w:100 !important}
}

/* company logos in marquee */
.dz-co.dz-logo,html[data-theme="dark"] .dz-co.dz-logo{background:#fff;padding:0 1.6rem;border:1px solid var(--mist)}
.dz-co.dz-logo img{max-height:62%;max-width:220px;width:auto;height:auto;object-fit:contain}
.dz-co.dz-logo.dz-red,html[data-theme="dark"] .dz-co.dz-logo.dz-red{background:#bd262a;border-color:#bd262a}
.dz-co.dz-logo.dz-red img{max-height:92%}

.dz-row{will-change:transform;backface-visibility:hidden}
