:root {
  --black: #000203;
  --ink: #02070a;
  --panel: #061117;
  --white: #eef4f6;
  --muted: #687d87;
  --muted-dark: #344a54;
  --blue: #098dcc;
  --blue-light: #8ccde8;
  --metal: #aebdc3;
  --metal-bright: #e5edef;
  --metal-muted: #677b83;
  --carbon: #0b1419;
  --hairline: rgba(147, 190, 207, .11);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-film: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 57% 5%, rgba(4, 72, 102, .065), transparent 32rem),
    var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.intro-lock { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #77cbf0; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

#ocean {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .85;
}

/* INTRO — a narrativa é controlada por data-scene, não por delays CSS globais. */
.intro {
  position: fixed; inset: 0; z-index: 50; height: 100svh; overflow: hidden;
  isolation: isolate;
  background: #000507;
  transition: background 1.1s var(--ease-film), opacity .8s ease;
}
.intro::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .28;
  background-image: radial-gradient(circle at 22% 28%, rgba(96, 162, 187, .2) 0 1px, transparent 1.5px), radial-gradient(circle at 73% 64%, rgba(96, 162, 187, .16) 0 1px, transparent 1.5px);
  background-size: 260px 230px, 310px 280px; pointer-events: none;
}
@keyframes grain { 0% { transform: translate(0); } 50% { transform: translate(-1.5%, 1%); } 100% { transform: translate(1%, -1.5%); } }
.intro-vignette {
  display: none;
}
.surface-memory {
  position: absolute; z-index: 2; left: 18%; right: 8%; top: 0; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(119, 211, 246, .1), transparent);
  transform: scaleX(.72); transform-origin: center;
  transition: opacity 1.4s ease, transform 4s var(--ease-out);
}
.intro[data-scene="depth"] .surface-memory,
.intro[data-scene="presence"] .surface-memory { opacity: .45; transform: scaleX(1); }
.pressure { display: none; }
.intro:not([data-scene="handoff"]) .pressure { opacity: 1; transform: translate3d(2vw, 2vh, 0); }

.intro-skip {
  position: absolute; z-index: 80; top: max(24px, env(safe-area-inset-top)); right: max(25px, env(safe-area-inset-right));
  border: 0; padding: 10px; background: transparent; color: rgba(196, 218, 228, .48);
  font-size: 9px; font-weight: 700; letter-spacing: .24em; cursor: pointer;
  transition: color .25s ease, opacity .5s ease;
}
.intro-skip:hover { color: var(--white); }

.hunter {
  position: absolute; z-index: 16; left: 50%; top: 56%; width: min(1120px, 94vw);
  aspect-ratio: 3 / 2;
  opacity: 1; transform: translate3d(-50%, -50%, 0);
  transition: opacity .45s ease, transform 1.2s var(--ease-out), left .8s var(--ease-out);
  will-change: transform, opacity;
}
.hunter-ink-stage {
  position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; overflow: visible;
  opacity: .9;
}
.hunter-ink-guides {
  position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; pointer-events: none;
}
.hunter-blueprint {
  position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen;
  opacity: 0;
}
.intro[data-scene="trace"] .hunter { opacity: 0; transition-duration: .56s; }
.intro:is([data-scene="brand"], [data-scene="statementOne"], [data-scene="statementTwo"], [data-scene="ready"]) .hunter { opacity: 0; }
.tension-word { position: absolute; z-index: 18; left: clamp(25px, 6vw, 92px); bottom: 18%; opacity: 0; color: rgba(220, 235, 240, .7); font-size: clamp(10px, .8vw, 13px); font-weight: 700; letter-spacing: .42em; transform: translateY(8px); transition: opacity .65s ease, transform .8s var(--ease-out); }
.intro[data-scene="tension"] .tension-word { opacity: 1; transform: none; }

.brand-moment {
  position: absolute; inset: 0; z-index: 34; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; background: radial-gradient(circle at center, rgba(3, 45, 64, .045), transparent 55%);
  transition: opacity .85s ease, transform 1.15s var(--ease-out);
}
.brand-moment img {
  width: min(260px, 48vw); opacity: 0; filter: brightness(1.28) contrast(1.08) drop-shadow(0 0 26px rgba(50, 153, 199, .2));
  transform: translateY(10px) scale(.95); clip-path: inset(100% 0 0 0);
  transition: opacity .75s ease, transform 1.05s var(--ease-out), clip-path .95s var(--ease-out);
}
.manifesto { position: relative; width: min(90vw, 980px); min-height: 120px; margin-top: 16px; text-align: center; }
.manifesto-first, .manifesto-second { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; }
.manifesto-first { color: rgba(194, 214, 221, .82); font-size: clamp(9px, .85vw, 13px); font-weight: 650; letter-spacing: .35em; transform: translateY(12px); transition: opacity .65s ease, transform .8s var(--ease-out); }
.manifesto-second { color: #eef4f6; font-size: clamp(42px, 7vw, 110px); line-height: .86; letter-spacing: -.065em; transform: translateY(24px); text-shadow: 0 0 38px rgba(38, 126, 164, .12); transition: opacity .75s ease, transform 1s var(--ease-out); }
.intro-enter {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center;
  min-width: min(360px, 88vw); min-height: 64px; padding: 8px 10px;
  border: 1px solid rgba(163, 213, 234, .62); border-radius: 999px; background: rgba(255, 255, 255, .024);
  box-shadow: inset 0 0 0 1px rgba(149, 211, 237, .035), 0 0 24px rgba(22, 118, 158, .045);
  color: var(--white); font-size: 11px; line-height: 1; font-weight: 780; letter-spacing: .16em; cursor: pointer;
  text-align: center;
  opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .8s var(--ease-out), background .3s ease, border-color .3s ease;
}
.intro-enter::before { content: ""; width: 38px; height: 38px; }
.intro-enter span { justify-self: center; white-space: nowrap; }
.intro-enter i {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #e7f5fa; color: #071017; font-style: normal; font-size: 20px; font-weight: 650; line-height: 1;
}
.intro-enter:hover { background: rgba(33, 141, 188, .1); border-color: rgba(179, 226, 244, .9); }
.intro[data-scene="trace"] .brand-moment { opacity: 0; }
.intro[data-scene="brand"] .brand-moment,
.intro[data-scene="statementOne"] .brand-moment,
.intro[data-scene="statementTwo"] .brand-moment,
.intro[data-scene="ready"] .brand-moment { opacity: 1; }
.intro[data-scene="brand"] .brand-moment img,
.intro[data-scene="statementOne"] .brand-moment img,
.intro[data-scene="statementTwo"] .brand-moment img,
.intro[data-scene="ready"] .brand-moment img { opacity: 1; transform: none; clip-path: inset(0 0 0 0); animation: none; }
.intro[data-scene="statementOne"] .manifesto-first { opacity: 1; transform: none; animation: none; }
.intro[data-scene="statementTwo"] .manifesto-first,
.intro[data-scene="ready"] .manifesto-first { opacity: 0; transform: translateY(-10px); transition-duration: .24s; }
.intro[data-scene="statementTwo"] .manifesto-second,
.intro[data-scene="ready"] .manifesto-second { opacity: 1; transform: none; animation: none; }
.intro[data-scene="statementTwo"] .manifesto-second { transition-delay: .24s; }
.intro[data-scene="ready"] .intro-enter { opacity: 1; transform: none; pointer-events: auto; animation: none; }

.intro-meter { position: absolute; z-index: 60; left: clamp(24px, 5vw, 78px); right: clamp(24px, 5vw, 78px); bottom: max(28px, env(safe-area-inset-bottom)); height: 1px; background: rgba(177, 216, 232, .08); overflow: hidden; }
.intro-meter i { display: block; width: 0; height: 100%; background: rgba(141, 205, 231, .5); transition: width 1s linear; }
.intro[data-scene="presence"] .intro-meter i { width: 14%; }
.intro[data-scene="hunter"] .intro-meter i { width: 34%; }
.intro[data-scene="tension"] .intro-meter i { width: 55%; }
.intro[data-scene="trace"] .intro-meter i { width: 74%; }
.intro[data-scene="brand"] .intro-meter i { width: 84%; }
.intro[data-scene="statementOne"] .intro-meter i { width: 91%; }
.intro[data-scene="statementTwo"] .intro-meter i,
.intro[data-scene="ready"] .intro-meter i { width: 100%; }
.intro-signature { position: absolute; z-index: 61; right: clamp(24px, 5vw, 78px); bottom: calc(max(28px, env(safe-area-inset-bottom)) + 13px); color: rgba(132, 166, 180, .28); font-size: 7px; letter-spacing: .26em; }

/* O handoff devolve o mesmo eixo visual à representação do configurador. */
.intro.is-handoff { background: rgba(1, 3, 5, 0); pointer-events: none; }
.intro.is-handoff::before, .intro.is-handoff .intro-vignette, .intro.is-handoff .pressure,
.intro.is-handoff .surface-memory,
.intro.is-handoff .intro-meter, .intro.is-handoff .intro-signature, .intro.is-handoff .intro-skip { opacity: 0; transition: opacity .45s ease; }
.intro.is-handoff .brand-moment { opacity: 0; transform: scale(.82); transition-duration: .65s; }
.intro.is-handoff-clearing .brand-moment { opacity: 0; transform: scale(.96); transition-duration: .14s; }
.intro.is-handoff .hunter { opacity: .82; top: 48%; width: min(850px, 58vw); transform: translate(-39%, -50%) scale(.92); filter: blur(0) brightness(.7); transition: all .9s var(--ease-film); }
.intro.is-gone { display: none; }

/* Elemento compartilhado: apenas este arbalete existe visualmente durante a emenda. */
.app.is-handoff-target {
  opacity: 1;
  transform: none;
  transition: none;
}
.app.is-handoff-target.is-handoff-hidden { opacity: 0; }
.shared-handoff-active .hunter-blueprint,
.shared-handoff-active .hunter-ink-stage,
.shared-handoff-active .speargun-render { visibility: hidden; }
.shared-speargun {
  position: fixed;
  z-index: 70;
  display: block;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.03) brightness(.92);
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.intro.is-returning .intro-skip { display: none; }
.intro.is-returning .brand-moment img { transition-duration: .55s; }
.intro.is-returning .manifesto-second { font-size: clamp(34px, 5.5vw, 82px); }

/* APP */
.app {
  position: relative; z-index: 2; max-width: 1720px; margin: 0 auto; padding: 0 clamp(20px, 3.2vw, 54px) 100px;
  opacity: 0; transform: translateY(24px) scale(.985); transition: opacity 1s ease .15s, transform 1.2s var(--ease-out);
}
.app.is-ready { opacity: 1; transform: none; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hairline); }
.brand-link { display: inline-flex; align-items: center; }
.brand { display: block; width: auto; height: 58px; opacity: .94; }
.top-actions { display: flex; gap: 26px; }
.text-action { border: 0; padding: 9px 0; background: transparent; color: rgba(181, 205, 215, .5); font-size: 8px; font-weight: 700; letter-spacing: .2em; cursor: pointer; }
.text-action:hover { color: var(--white); }

.product-studio {
  display: grid; grid-template-columns: minmax(270px, .8fr) minmax(520px, 1.62fr) minmax(190px, .48fr);
  gap: clamp(25px, 3vw, 54px); align-items: center; min-height: calc(100svh - 88px); padding: 42px 0 54px;
}
.eyebrow { color: rgba(86, 170, 207, .78); font-size: 8px; font-weight: 800; letter-spacing: .32em; }
.studio-copy h2, .final-screen h3 {
  margin: 18px 0 22px; font-size: clamp(52px, 5.7vw, 96px); line-height: .86; letter-spacing: -.065em; font-weight: 760;
}
.studio-copy h2 em, .final-screen h3 em { color: #249cce; font-style: normal; font-weight: 450; }
.studio-copy > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.product-choices { margin-top: 34px; border-top: 1px solid var(--hairline); }
.product-choice {
  position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 13px; align-items: center; width: 100%;
  min-height: 76px; padding: 13px 3px; border: 0; border-bottom: 1px solid var(--hairline); background: transparent;
  text-align: left; cursor: pointer; transition: padding .35s var(--ease-out), background .35s ease;
}
.product-choice::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 125, 170, .09), transparent); opacity: 0; transition: opacity .35s ease; }
.product-choice > * { position: relative; }
.choice-number { align-self: start; padding-top: 4px; color: var(--muted-dark); font-size: 8px; letter-spacing: .18em; }
.choice-copy { display: grid; gap: 5px; }
.choice-copy b { color: rgba(226, 237, 241, .72); font-size: clamp(14px, 1.2vw, 19px); font-weight: 620; letter-spacing: -.02em; transition: color .3s ease; }
.choice-copy small { color: var(--muted-dark); font-size: 9px; line-height: 1.4; }
.product-choice > i { color: var(--muted-dark); font-style: normal; transition: color .3s ease, transform .35s var(--ease-out); }
.product-choice:hover, .product-choice:focus-visible, .product-choice.is-selected { padding-left: 10px; }
.product-choice:hover::before, .product-choice:focus-visible::before, .product-choice.is-selected::before { opacity: 1; }
.product-choice:hover .choice-copy b, .product-choice:focus-visible .choice-copy b, .product-choice.is-selected .choice-copy b { color: var(--white); }
.product-choice.is-selected > i { color: var(--blue-light); transform: rotate(45deg); }
.studio-confirm, .primary-action, .secondary-action {
  border: 1px solid rgba(167, 211, 229, .2); background: rgba(255, 255, 255, .022); border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: .18em; cursor: pointer; transition: .3s var(--ease-out);
}
.studio-confirm {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center;
  width: min(92%, 400px); margin: 22px auto 0; padding: 7px 8px;
  border: 2px solid rgba(167, 211, 229, .52); font-size: 12px;
}
.studio-confirm span { grid-column: 2; justify-self: center; text-align: center; line-height: 1; }
.studio-confirm i {
  grid-column: 3; display: grid; place-items: center; width: 38px; height: 38px; justify-self: end;
  border-radius: 50%; background: #e7f4f8; color: #071116; font-style: normal; font-size: 22px; line-height: 1;
}
.studio-confirm:not(:disabled):hover { border-color: rgba(148, 211, 237, .5); background: rgba(25, 125, 169, .09); transform: translateY(-2px); }
.studio-confirm:disabled, button:disabled { opacity: .3; cursor: not-allowed; }

.product-stage {
  --motion-x: 0; --motion-y: 0;
  position: relative; min-height: min(66vh, 660px); overflow: hidden; border-radius: 2px;
  border-left: 1px solid rgba(180, 220, 237, .075); border-right: 1px solid rgba(180, 220, 237, .075);
  background: radial-gradient(ellipse at 52% 48%, rgba(8, 80, 113, .13), transparent 48%);
  isolation: isolate;
}
.product-stage::before, .product-stage::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(170, 218, 236, .18), transparent); }
.product-stage::before { top: 0; } .product-stage::after { bottom: 0; }
.stage-depth { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(111, 180, 208, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 180, 208, .035) 1px, transparent 1px); background-size: 58px 58px; mask-image: radial-gradient(circle, black, transparent 72%); }
.stage-light { position: absolute; width: 48%; aspect-ratio: 1; left: 52%; top: 50%; border-radius: 50%; background: rgba(9, 111, 158, .09); filter: blur(70px); transform: translate(-50%, -50%); transition: background .8s ease, width .8s var(--ease-out); }
html[data-preview="fins"] .stage-light { width: 38%; background: rgba(26, 125, 155, .11); }
.stage-index, .stage-code { position: absolute; z-index: 5; top: 19px; color: rgba(128, 163, 177, .32); font-size: 7px; letter-spacing: .23em; }
.stage-index { left: 21px; } .stage-code { right: 21px; }
.product-visual {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  transform: perspective(900px) translate3d(calc(var(--motion-x) * 7px), calc(var(--motion-y) * 5px), 0) rotateX(calc(var(--motion-y) * -1deg)) rotateY(calc(var(--motion-x) * 1.35deg));
  transition: opacity .52s ease, visibility .52s ease, transform .12s linear;
  will-change: transform, opacity;
}
.product-stage[data-product="speargun"] .speargun-visual,
.product-stage[data-product="fins"] .fins-visual { opacity: 1; visibility: visible; }
.product-stage[data-product="fins"] .speargun-visual,
.product-stage[data-product="speargun"] .fins-visual { opacity: 0; visibility: hidden; pointer-events: none; }
#weaponSvg { position: relative; z-index: 2; width: 97%; overflow: visible; transition: transform .85s var(--ease-out); }
.speargun-render {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 104%; height: auto; max-width: none;
  transform: translate(-50%, -50%); object-fit: contain; mix-blend-mode: screen;
  filter: contrast(1.03) brightness(.92); transition: transform .85s var(--ease-out), filter .6s ease;
}
.speargun-contour-pass {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 104%; height: auto; max-width: none;
  transform: translate(-50%, -50%); object-fit: contain; mix-blend-mode: screen; opacity: 0;
  filter: brightness(1.7) contrast(1.18) drop-shadow(0 0 7px rgba(95, 190, 226, .45));
  -webkit-mask-image: linear-gradient(90deg, transparent 0 37%, #000 48% 53%, transparent 64%);
  mask-image: linear-gradient(90deg, transparent 0 37%, #000 48% 53%, transparent 64%);
  -webkit-mask-size: 280% 100%; mask-size: 280% 100%;
  -webkit-mask-position: 135% 0; mask-position: 135% 0;
}
.product-stage.is-line-active[data-product="speargun"] .speargun-contour-pass { animation: contourSweep 1.1s var(--ease-out) both; }
@keyframes contourSweep {
  0% { opacity: 0; -webkit-mask-position: 135% 0; mask-position: 135% 0; }
  16%, 75% { opacity: .88; }
  100% { opacity: 0; -webkit-mask-position: -35% 0; mask-position: -35% 0; }
}
#finsSvg { position: relative; z-index: 2; width: 96%; height: 88%; overflow: visible; transition: transform .85s var(--ease-out); }
.fin-render, .fin-contour-pass {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 98%; height: auto; max-width: none;
  transform: translate(-50%, -50%); object-fit: contain; transition: transform .85s var(--ease-out), filter .6s ease;
}
.fin-render { mix-blend-mode: screen; filter: brightness(.9) contrast(1.05); }
.fin-contour-pass {
  z-index: 2; opacity: 0; mix-blend-mode: screen; filter: brightness(1.5) contrast(1.16) drop-shadow(0 0 8px rgba(92, 196, 231, .32));
  -webkit-mask-image: linear-gradient(104deg, transparent 30%, #000 47%, transparent 64%);
  mask-image: linear-gradient(104deg, transparent 30%, #000 47%, transparent 64%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
}
.product-stage.is-line-active[data-product="fins"] .fin-contour-pass { animation: finContourSweep 1.05s var(--ease-out) both; }
@keyframes finContourSweep {
  0% { opacity: 0; -webkit-mask-position: 130% 0; mask-position: 130% 0; }
  18% { opacity: .7; } 78% { opacity: .56; }
  100% { opacity: 0; -webkit-mask-position: -30% 0; mask-position: -30% 0; }
}
.focus-zone { fill: rgba(17, 133, 181, 0); stroke: rgba(82, 187, 229, 0); stroke-width: 1.5; transition: .6s var(--ease-out); }
.focus-zone.is-active { fill: rgba(17, 133, 181, .025); stroke: rgba(82, 187, 229, .4); filter: drop-shadow(0 0 18px rgba(33, 141, 184, .18)); }
.product-stage[data-focus="front"] #weaponSvg { transform: translateX(-10%) scale(1.13); }
.product-stage[data-focus="rear"] #weaponSvg { transform: translateX(10%) scale(1.13); }
.product-stage[data-focus="middle"] #weaponSvg { transform: scale(1.1); }
.product-stage[data-focus="front"] .speargun-render { transform: translate(-59%, -50%) scale(1.13); }
.product-stage[data-focus="rear"] .speargun-render { transform: translate(-41%, -50%) scale(1.13); }
.product-stage[data-focus="middle"] .speargun-render { transform: translate(-50%, -50%) scale(1.1); }
.product-stage[data-focus="front"] .speargun-contour-pass { transform: translate(-59%, -50%) scale(1.13); }
.product-stage[data-focus="rear"] .speargun-contour-pass { transform: translate(-41%, -50%) scale(1.13); }
.product-stage[data-focus="middle"] .speargun-contour-pass { transform: translate(-50%, -50%) scale(1.1); }
.product-stage[data-focus="blade"] :is(#finsSvg, .fin-render, .fin-contour-pass) { transform: translate(-54%, -50%) scale(1.1); }
.product-stage[data-focus="joint"] :is(#finsSvg, .fin-render, .fin-contour-pass) { transform: translate(-39%, -50%) scale(1.2); }
.product-stage[data-focus="foot"] :is(#finsSvg, .fin-render, .fin-contour-pass) { transform: translate(-31%, -50%) scale(1.28); }
.stage-caption { position: absolute; z-index: 5; bottom: 20px; left: 50%; display: flex; gap: 9px; align-items: center; transform: translateX(-50%); white-space: nowrap; color: rgba(154, 183, 195, .44); font-size: 7px; letter-spacing: .24em; }
.stage-caption span { width: 4px; height: 4px; border-radius: 50%; background: #64bfdf; box-shadow: 0 0 12px rgba(71, 181, 224, .65); }
.stage-caption b { font-weight: 650; }
.stage-caption b em { display: inline-block; min-width: 8.2em; color: inherit; font-style: normal; text-align: right; will-change: opacity, transform; }
.stage-caption b .caption-fixed { display: inline; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; }

.studio-aside { align-self: end; padding-bottom: 34px; }
.aside-label { display: block; margin-bottom: 14px; color: var(--muted-dark); font-size: 7px; letter-spacing: .25em; }
.studio-aside > strong { display: block; max-width: 220px; color: rgba(224, 236, 240, .75); font-size: 17px; line-height: 1.15; letter-spacing: -.02em; }
.studio-aside > p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.studio-aside dl { margin: 24px 0 0; border-top: 1px solid var(--hairline); }
.studio-aside dl div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.studio-aside dt, .studio-aside dd { margin: 0; font-size: 7px; letter-spacing: .16em; }
.studio-aside dt { color: var(--muted-dark); } .studio-aside dd { color: rgba(171, 201, 211, .55); }

/* BUILDER — preservado e conectado ao mesmo palco procedural. */
.builder { padding: 76px 0 25px; border-top: 1px solid var(--hairline); }
.builder-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.builder-head h3 { margin: 12px 0 0; font-size: clamp(38px, 4.2vw, 68px); line-height: .94; letter-spacing: -.05em; }
.progress-wrap { width: min(390px, 34vw); }
.progress-wrap small { display: block; margin-bottom: 9px; color: var(--muted-dark); text-align: right; font-size: 7px; letter-spacing: .2em; }
.progress { height: 1px; background: var(--hairline); overflow: hidden; }
.progress i { display: block; width: 5%; height: 100%; background: #5ebcde; box-shadow: 0 0 12px rgba(61, 174, 219, .5); transition: width .55s var(--ease-out); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 34px 0; }
.choice-card { position: relative; min-height: 150px; padding: 21px; overflow: hidden; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .012); text-align: left; cursor: pointer; transition: border-color .3s ease, background .3s ease, transform .35s var(--ease-out); }
.choice-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -90px; bottom: -90px; border-radius: 50%; background: rgba(17, 125, 174, .1); filter: blur(34px); opacity: 0; transition: opacity .3s ease; }
.choice-card strong { display: block; max-width: 85%; font-size: 18px; font-weight: 650; }
.choice-card p { max-width: 88%; color: var(--muted); font-size: 10px; line-height: 1.55; }
.choice-card span { position: absolute; left: 21px; bottom: 17px; color: rgba(75, 165, 202, .7); font-size: 8px; letter-spacing: .15em; }
.choice-card i { position: absolute; right: 18px; top: 18px; color: var(--muted-dark); font-style: normal; transition: transform .35s var(--ease-out); }
.choice-card:hover, .choice-card.is-selected { border-color: rgba(78, 178, 219, .42); background: rgba(15, 92, 126, .045); transform: translateY(-3px); }
.choice-card:hover::after, .choice-card.is-selected::after { opacity: 1; }
.choice-card.is-selected i { color: var(--blue-light); transform: rotate(45deg); }
.nested-grid { margin: -18px 0 34px; padding: 20px; border: 1px solid rgba(80, 175, 213, .18); background: rgba(5, 18, 25, .72); }
.nested-grid > span { display: block; margin-bottom: 14px; color: var(--muted); font-size: 8px; letter-spacing: .2em; }
.nested-options { display: flex; flex-wrap: wrap; gap: 8px; }
.nested-choice { padding: 11px 14px; border: 1px solid var(--hairline); border-radius: 999px; background: transparent; color: rgba(183, 207, 216, .68); font-size: 10px; cursor: pointer; }
.nested-choice small { color: #4ca9ce; }
.nested-choice:hover, .nested-choice.is-selected { border-color: rgba(82, 184, 224, .52); background: rgba(23, 119, 158, .08); color: var(--white); }
.builder-layout { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 30px; align-items: end; }
.summary-card { padding: 20px; border: 1px solid var(--hairline); background: rgba(5, 14, 19, .66); }
.summary-top { display: flex; justify-content: space-between; color: var(--muted-dark); font-size: 7px; letter-spacing: .2em; }
.summary-top i { color: #4aaed5; font-style: normal; }
.summary-card > strong { display: block; margin: 13px 0 16px; font-size: 19px; }
.summary-items { display: grid; gap: 8px; min-height: 55px; }
.summary-placeholder, .product-path { color: var(--muted-dark); font-size: 9px; line-height: 1.5; }
.summary-item { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; }
.summary-item b { max-width: 60%; color: rgba(186, 207, 215, .7); text-align: right; font-weight: 600; }
.price-row { display: flex; justify-content: space-between; align-items: end; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--hairline); }
.price-row small { color: var(--muted-dark); font-size: 8px; } .price-row b { font-size: 24px; }
.builder-nav { display: flex; justify-content: flex-end; gap: 10px; padding-bottom: 2px; }
.primary-action, .secondary-action { min-height: 48px; padding: 0 21px; }
.primary-action { border-color: rgba(115, 195, 226, .42); background: linear-gradient(135deg, rgba(27, 139, 185, .85), rgba(11, 92, 139, .88)); }
.primary-action:not(:disabled):hover, .secondary-action:hover { transform: translateY(-2px); border-color: rgba(156, 216, 238, .6); }
.secondary-action { color: var(--muted); }

.final-screen { min-height: 680px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 20px; border-top: 1px solid var(--hairline); text-align: center; }
.final-screen h3 { margin: 20px 0; }
.final-specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 800px; }
.final-specs span { padding: 8px 11px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--muted); font-size: 9px; }
.final-price { margin: 25px 0; font-size: 38px; font-weight: 750; }
.wide { min-width: 270px; }
.final-screen > p { color: var(--muted-dark); font-size: 9px; }
.catalog-error { position: fixed; z-index: 100; inset: 50% auto auto 50%; width: min(90vw, 520px); padding: 35px; border: 1px solid var(--hairline); background: #061017; transform: translate(-50%, -50%); text-align: center; }
.catalog-error span { color: #4ba8ce; font-size: 8px; letter-spacing: .2em; }
.catalog-error h2 { font-size: 25px; }

@media (max-width: 1180px) {
  .product-studio { grid-template-columns: minmax(270px, .78fr) minmax(470px, 1.3fr); }
  .studio-aside { grid-column: 1 / -1; display: grid; grid-template-columns: 130px 1fr 1fr; gap: 20px; align-items: start; padding: 0; }
  .studio-aside > p { margin: 0; } .studio-aside dl { margin: 0; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .topbar { height: 74px; } .brand { height: 50px; }
  .product-studio { display: flex; flex-direction: column; align-items: stretch; min-height: auto; padding-top: 14px; }
  .product-stage { order: 1; min-height: 44svh; max-height: 450px; position: sticky; top: 7px; z-index: 7; background: rgba(1, 6, 9, .93); backdrop-filter: blur(14px); }
  .studio-copy { order: 2; } .studio-aside { order: 3; display: none; }
  .studio-copy h2 { font-size: clamp(50px, 13vw, 78px); }
  .studio-copy > p { font-size: 12px; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-layout { display: flex; flex-direction: column; align-items: stretch; }
  .builder-nav { position: sticky; z-index: 9; bottom: 0; order: -1; padding: 26px 0 max(12px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(1, 3, 5, .98) 32%); }
  .summary-card { order: 2; }
  .intro.is-handoff .hunter { width: 94vw; top: 29%; transform: translate(-50%, -50%) scale(.9); }
}

@media (max-width: 560px) {
  .app { padding-inline: 14px; }
  .topbar { height: 60px; }
  .brand { height: 44px; }
  .top-actions { gap: 14px; } .text-action { font-size: 7px; letter-spacing: .15em; }
  .product-studio { padding-top: 8px; padding-bottom: 18px; }
  .product-stage { min-height: clamp(230px, 31svh, 284px); max-height: 284px; border-radius: 0; }
  #weaponSvg { width: 116%; } .speargun-render { width: 109%; } #finsSvg, .fin-render, .fin-contour-pass { width: 106%; }
  .stage-code { display: none; }
  .stage-index { top: 13px; }
  .stage-caption { bottom: 14px; }
  .studio-copy { margin-top: -4px; }
  .studio-copy h2 { margin: 10px 0 14px; font-size: clamp(45px, 11.8vw, 53px); line-height: .84; }
  .studio-copy > p { font-size: 11px; line-height: 1.55; }
  .product-choices { margin-top: 18px; }
  .product-choice { min-height: 58px; padding-block: 8px; }
  .choice-copy { gap: 3px; }
  .choice-copy b { font-size: 14px; }
  .choice-copy small { color: rgba(112, 139, 151, .82); font-size: 9.5px; line-height: 1.35; }
  .studio-confirm {
    grid-template-columns: 40px minmax(0, 1fr) 40px; width: min(calc(100% - 32px), 320px); min-height: 48px;
    margin: 12px auto 0; padding: 4px 5px; border-width: 2px; font-size: 12px; letter-spacing: .14em;
  }
  .studio-confirm i { width: 38px; height: 38px; font-size: 24px; }
  .choice-grid { grid-template-columns: 1fr; gap: 8px; }
  .choice-card { min-height: 122px; }
  .builder { padding-top: 55px; }
  .builder-head { display: block; }
  .progress-wrap { width: 100%; margin-top: 24px; }
  .builder-nav { display: grid; grid-template-columns: .72fr 1.28fr; }
  .primary-action, .secondary-action { padding-inline: 12px; }

  .hunter { width: 104vw; top: 59%; transform: translate(-50%, -50%); }
  .brand-moment img { width: 58vw; }
  .manifesto { min-height: 104px; margin-top: 6px; }
  .manifesto-first { font-size: 8px; letter-spacing: .24em; }
  .manifesto-second { font-size: clamp(39px, 13.5vw, 62px); }
  .intro-enter { min-width: min(90vw, 350px); min-height: 62px; font-size: 10px; letter-spacing: .13em; }
  .intro-signature { display: none; }
  .intro::before { display: none; }
  .pressure { filter: blur(48px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
  .intro::before, .surface-memory, .hunter { display: none; }
  .intro.is-reduced .brand-moment { opacity: 1; }
  .intro.is-reduced .brand-moment img { opacity: .94; transform: none; clip-path: inset(0 0 0 0); }
  .intro.is-reduced[data-scene="statementTwo"] .manifesto-second,
  .intro.is-reduced[data-scene="ready"] .manifesto-second { opacity: 1; transform: none; }
  .intro.is-reduced[data-scene="ready"] .intro-enter { opacity: 1; transform: none; pointer-events: auto; }
  .product-visual { transform: none !important; transition-duration: .12s; }
  .speargun-contour-pass { display: none; }
  .fin-contour-pass { display: none; }
}
