/*
 * BrainyTech - Portfolio, LIGHT theme hero ("kagit").
 * The server adds .hero-f.hero-light to the hero when the theme is light:
 * one real product per scene, always in the same frame, fewer technical
 * labels, the hero on the collection's paper ground.
 * Dark theme = the original navy hero with mixed scenes (Portfolio.css only).
 * Tokens only (DesignPack/Variables.css).
 */

/* ═════════ Focus layout ═════════ */
/* Dark ground defaults (navy hero); .hero-light below flips them to paper */
.hero-f{--hf-plate:color-mix(in srgb,var(--c-paper) 7%,var(--c-navy));--hf-shadow:rgba(0,0,0,.6);--hf-edge:color-mix(in srgb,var(--c-paper) 14%,transparent)}
/* Plate: bleeds off the right edge, takes the current product's colour, crops the screen */
.hero-f .fplate{position:absolute;z-index:0;border-radius:28px 0 0 28px;box-shadow:inset 1px 1px 0 0 var(--c-line);overflow:hidden;pointer-events:none;
  background:color-mix(in srgb,var(--pt,transparent) var(--pm,0%),var(--hf-plate));transition:background-color 1.1s var(--bt-ease)}
.hero-f .fplate::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(70% 60% at 30% 20%,color-mix(in srgb,var(--bt-surface) 30%,transparent),transparent 70%);opacity:.7;transition:opacity 1.1s}
.hero-f .fplate.deep::after{opacity:.08}
.hero-f .fplate .piece{pointer-events:auto;perspective:2200px;transform:perspective(1800px) rotateX(14deg) translateY(90px) scale(.94);transform-origin:50% 0;clip-path:none;filter:blur(6px)}
.hero-f .fplate .piece.on{transform:none;filter:none;clip-path:none;
  transition:opacity .7s ease var(--d),transform 1.5s var(--bt-out) var(--d),filter .9s ease var(--d)}
.hero-f .fplate .piece.leave{transform:translateY(-30px) scale(.985);filter:blur(4px);clip-path:none;transition:opacity .5s ease,transform .7s ease,filter .5s ease,visibility 0s .9s}
.hero-f .fplate .par{transform-style:preserve-3d;transition:transform 1.2s var(--bt-out)}
.hero-f .fplate .piece.on .dev{animation:hfDrift var(--scene) linear .9s both}
@keyframes hfDrift{from{translate:0 0}to{translate:-1.6% -2.2%}}
.hero-f .fplate .piece.on .dev.phone{animation-name:hfDriftPh}
@keyframes hfDriftPh{from{translate:0 0}to{translate:0 -3%}}
.hero-f .dev.desk{border-radius:10px}
.hero-f .fplate.deep~.s1x .s1cap b{color:var(--c-paper)}
.hero-f .s1pl,.hero-f .s1gl{display:none}
.hero-f .s1cap{white-space:normal;gap:8px}
.hero-f .s1cap.f b{font-size:28px;letter-spacing:-.035em}
.hero-f .s1cap span{font-family:var(--bt-sans);font-size:16px;letter-spacing:0;text-transform:none;color:var(--c-mist);max-width:44em}
.hero-f .desk .bar em{display:none}
.hero-f .dev{box-shadow:0 50px 90px -50px var(--hf-shadow),0 0 0 1px var(--hf-edge)}
.hero-f .piece.hov .dev{box-shadow:0 60px 100px -50px var(--hf-shadow),0 0 0 1px var(--hf-edge)}

/* Fewer technical labels: kicker in plain type, no "sample screens", icon-only pause */
.hero-f .copy .mono,.hero-f .mh-copy .mono{font-family:var(--bt-sans);font-size:15px;font-weight:500;letter-spacing:0;text-transform:none}
.hero-f .kick{display:block}
.hero-f .sc-w{visibility:hidden}
.hero-f .sc-n{font-family:var(--bt-sans);font-size:15px;letter-spacing:0}
.hero-f .arw button.pp{width:40px;padding:0;justify-content:center}
.hero-f .arw button.pp span{display:none}
.hero-f .mhb .cap .mono,.hero-f .mhb-ctl ol::before,.hero-f .mhb-n{font-family:var(--bt-sans);font-size:13px;letter-spacing:0;text-transform:none}

/* ═════════ Paper ground: brand tokens flipped inside the hero ═════════ */
.hero-light{
  --c-paper:var(--bt-ink);
  --c-navy:var(--bt-surface);
  --c-deep:var(--bt-surface);
  --c-white:var(--c-ink2);
  --c-mist:color-mix(in srgb,var(--bt-ink) 82%,transparent);
  --c-line:var(--bt-hair);
  --ctl-tone:color-mix(in srgb,var(--bt-ink) 7%,transparent);
  --ctl-tone-hi:color-mix(in srgb,var(--bt-ink) 12%,transparent);
  --ctl-tone-lo:color-mix(in srgb,var(--bt-ink) 4%,transparent);
  --hf-plate:var(--bt-sand);
  --hf-shadow:color-mix(in srgb,var(--bt-ink) 45%,transparent);
  --hf-edge:color-mix(in srgb,var(--bt-ink) 10%,transparent);
}
.hero-light .stage::before{display:none}
.hero-light .strip{background:none}
body:has(.hero-light){background:var(--bt-surface)}

/* Mobile control strip: the scene numbers never shrink or scroll (a clipped 07 is hard to reach);
   when they do not fit next to the work counter, the counter drops to its own line and the numbers share the full width */
@media (max-width:900px){
  .hero-f .mhb-ctl{flex-wrap:wrap;row-gap:10px}
  .hero-f .mhb-ctl ol{flex:1 0 auto;min-width:max-content}
  .hero-f .mhb-ctl li{flex:1;display:flex}
  .hero-f .mhb-ctl li button{flex:1}
  .hero-f .mhb-n{margin-left:auto}
  .hero-f .mhb-ctl ol::before{display:none}
  .hero-f .mhb-ctl button{min-width:30px;padding:0 4px}
}

/* ═════════ Dark ground: the plate is one royal blue with a same-hue light; no product wash (teal on navy went petrol) ═════════ */
.hero-f:not(.hero-light){--hf-plate:var(--c-royal-deep);--hf-glow:color-mix(in srgb,var(--c-royal) 70%,var(--c-paper))}
.hero-f:not(.hero-light) .fplate{background:var(--hf-plate)}
.hero-f:not(.hero-light) .fplate::after{background:radial-gradient(80% 70% at 62% 38%,color-mix(in srgb,var(--hf-glow) 55%,transparent),transparent 72%);opacity:.55;transition:background 1.1s var(--bt-ease)}
.hero-f:not(.hero-light) .fplate.deep::after{opacity:.1}

/* ═════════ Mobile hero: same language as desktop - big product, product colour, bleeding screen ═════════ */
@media (max-width:900px){
  .hero-f .mhb-p{width:min(86vw,520px)}
  .hero-f .plate{aspect-ratio:4/3.9;border-radius:18px;background:color-mix(in srgb,var(--pt,transparent) var(--pm,0%),var(--hf-plate))}
  .hero-f:not(.hero-light) .plate{background:radial-gradient(85% 75% at 60% 35%,color-mix(in srgb,var(--hf-glow) 45%,transparent),transparent 72%),var(--hf-plate)}
  .hero-f .plate::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(70% 60% at 25% 15%,color-mix(in srgb,var(--bt-surface) 30%,transparent),transparent 70%);opacity:.6}
  .hero-f .plate.deep::after,.hero-f:not(.hero-light) .plate::after{opacity:.06}
  .hero-f .plate.is-dk .dev{left:9%;right:auto;top:14%;translate:none;width:150%!important;aspect-ratio:16/10;border-radius:10px}
  .hero-f .plate.is-ph .dev{top:9%;height:112%!important}
  .hero-f .plate .dev{box-shadow:0 40px 70px -40px var(--hf-shadow),0 0 0 1px var(--hf-edge)}
  .hero-f .mhb-p{transition:opacity .5s var(--bt-out),transform .6s var(--bt-out)}
  .hero-f .mhb-p:not(.on){opacity:.55;transform:scale(.95)}
  .hero-f .mhb-p .plate .dev{transition:translate 1.2s var(--bt-out)}
  .hero-f .mhb-p:not(.on) .plate.is-dk .dev{translate:0 18px}
}
@media (max-width:900px) and (prefers-reduced-motion:reduce){.hero-f .mhb-p,.hero-f .mhb-p .plate .dev{transition:none}}

/* Mobile hero: short lede under the headline (rises after it) */
@media (max-width:900px){
  .hero-f .mh-copy .mh-lede{margin-top:14px;max-width:30em;font-size:15px;line-height:1.45;color:var(--c-mist)}
  .js .hero-f .mh-copy .mh-lede{opacity:0;transform:translateY(10px);transition:opacity .8s ease .45s,transform 1s var(--bt-out) .45s}
  .fx-ready .hero-f .mh-copy .mh-lede{opacity:1;transform:none}
}
@media (max-width:900px) and (prefers-reduced-motion:reduce){.js .hero-f .mh-copy .mh-lede{opacity:1;transform:none;transition:none}}

/* ═════════ Light sheet readability (owner 2026-11-23: "açık modda yazılar silik") ═════════ */
/* Dark-on-paper Montserrat 400 renders thin; secondary copy gets a deeper ink, full opacity and weight 500 */
[data-theme="light"]{--bt-ink2:#2B3B5A}
[data-theme="light"] .meta p{opacity:1}
[data-theme="light"] .meta .pl{opacity:.9}
[data-theme="light"] .meta p,[data-theme="light"] .meta .pl,[data-theme="light"] .s-h p,[data-theme="light"] .who-t p,[data-theme="light"] .who-tm p,[data-theme="light"] .hero-light .lede,[data-theme="light"] .hero-light .s1cap span{font-weight:500}
[data-theme="light"] .hero-light .topbar-nav{font-weight:500}
/* dark sheet too (owner 2026-11-23): card copy at full opacity, tokens raised in Variables.css (mist .78, ink2 .84) */
[data-theme="dark"] .meta p{opacity:1}
[data-theme="dark"] .meta .pl{opacity:.9}
