/* Sightgrid round 5: the scenes below the hero, device frames for the real app recordings, the ambient light per
   section, the on-demand tour, and the accessibility and form details. Calm Daylight first, then dark. */

/* ---------- accessibility basics */
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 14px; }
.sgv-canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.chip:focus-visible, .otab:focus-visible, .crow:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.signin { text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 999px; color: var(--ink); white-space: nowrap; }
.signin:hover { background: var(--card2); }
@media (max-width: 1080px) { .nav .signin { display: none; } }

/* ---------- ambient light: one soft tint per section, crossfaded behind everything */
.amb-tint { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.amb-tint i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.amb-tint i[data-k="sage"] { background: radial-gradient(60% 50% at 12% 20%, rgba(126,176,120,.26), transparent 70%), radial-gradient(50% 45% at 90% 85%, rgba(180,200,150,.22), transparent 70%); }
.amb-tint i[data-k="amber"] { background: radial-gradient(55% 50% at 85% 18%, rgba(236,170,78,.26), transparent 70%), radial-gradient(50% 40% at 10% 90%, rgba(217,55,43,.10), transparent 70%); }
.amb-tint i[data-k="sky"] { background: radial-gradient(60% 50% at 20% 15%, rgba(110,160,224,.26), transparent 70%), radial-gradient(45% 45% at 88% 80%, rgba(160,200,235,.24), transparent 70%); }
.amb-tint i[data-k="green"] { background: radial-gradient(55% 50% at 80% 25%, rgba(31,174,91,.20), transparent 70%), radial-gradient(50% 40% at 15% 85%, rgba(160,215,170,.24), transparent 70%); }
.amb-tint i[data-k="sand"] { background: radial-gradient(60% 50% at 15% 25%, rgba(222,190,138,.30), transparent 70%), radial-gradient(45% 40% at 85% 85%, rgba(240,214,170,.26), transparent 70%); }
.amb-tint i[data-k="lilac"] { background: radial-gradient(55% 50% at 85% 20%, rgba(162,142,214,.22), transparent 70%), radial-gradient(50% 45% at 12% 80%, rgba(120,170,220,.16), transparent 70%); }
.amb-tint i[data-k="workshop"] { background: radial-gradient(60% 55% at 25% 30%, rgba(222,142,70,.24), transparent 70%), radial-gradient(45% 40% at 85% 80%, rgba(120,90,60,.14), transparent 70%); }
:root[data-amb="sage"] .amb-tint i[data-k="sage"], :root[data-amb="amber"] .amb-tint i[data-k="amber"], :root[data-amb="sky"] .amb-tint i[data-k="sky"], :root[data-amb="green"] .amb-tint i[data-k="green"], :root[data-amb="sand"] .amb-tint i[data-k="sand"], :root[data-amb="lilac"] .amb-tint i[data-k="lilac"], :root[data-amb="workshop"] .amb-tint i[data-k="workshop"] { opacity: 1; }
:root[data-theme="dark"] .amb-tint i { filter: saturate(1.3) brightness(.55); mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .amb-tint i { filter: saturate(1.3) brightness(.55); mix-blend-mode: screen; } }

/* ---------- hero: the free model, and the tour card that replaces the intro on demand */
.hero .panel { position: relative; }
.hero .intro[hidden], .tourcard[hidden] { display: none !important; }
.btn .play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.tourcard { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 18px; justify-content: space-between; }
.tc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tc-count { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tc-close { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); font: 600 14px var(--body); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.tc-close span { font-size: 20px; line-height: 1; }
.tc-beats { flex: 1; display: flex; align-items: center; min-height: 0; }
.tc-beats [data-tbeat] { animation: tbeat .6s cubic-bezier(.2,.7,.2,1); }
.tc-beats h2 { font-size: clamp(30px, 2.8vw, 48px); outline: none; }
@keyframes tbeat { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tc-nav { display: flex; gap: 10px; }
.tc-nav .btn { flex: 1; }
.tc-nav .btn:disabled { opacity: .4; cursor: default; }
.tourcard .tcbar { display: flex; gap: 6px; }
@media (max-width: 999px) { .tourcard { gap: 12px; } .tc-beats h2 { font-size: clamp(24px, 6.6vw, 32px); } .tc-beats .lead { font-size: 16px; } }

/* ---------- scenes: shared */
.scene { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.sc-panel { min-width: 0; }
.sc-panel.solid { background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 3.2vw, 48px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 80px -50px rgba(40,50,40,.45); backdrop-filter: blur(6px); }
.sc-panel.narrow { max-width: 620px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.grid2.flip > :first-child { order: 2; }
@media (max-width: 999px) { .grid2, .grid2.flip { grid-template-columns: 1fr; } .grid2.flip > :first-child { order: 0; } .scene { padding: 70px 0; } }
.sc-stage { position: relative; min-width: 0; }
.sc-stage.tall { height: min(78svh, 720px); }
@media (max-width: 999px) { .sc-stage.tall { height: 62svh; min-height: 380px; } }
.sgv.mini { position: absolute; inset: 0; container-type: size; border-radius: 24px; box-shadow: 0 50px 90px -60px rgba(30,40,30,.55); }
.sgv.mini .sgv-canvas { pointer-events: none; cursor: default; }

/* 1. every trade: sticky, the model in a tinted room, labels beside each layer */
.sc-models { height: 280vh; padding: 0; }
.sc-models .stick { position: sticky; top: 0; height: 100svh; padding: calc(var(--nav) + 18px) 12px 12px; display: grid; grid-template-columns: minmax(340px, 31%) 1fr; gap: 12px; }
.sc-models .sc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 3.2vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.sc-models .sc-stage { height: 100%; }
.sc-models .sgv.mini { --viewer: #E3E9DD; background: linear-gradient(160deg, #EEF2E8, #DCE4D4); }
.xsteps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: x; }
.xsteps li { counter-increment: x; display: flex; align-items: center; gap: 12px; font: 600 14px var(--body); color: var(--muted); transition: color .4s; }
.xsteps li::before { content: counter(x, decimal-leading-zero); font: 600 11px var(--mono); width: 34px; height: 26px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid var(--line2); transition: background .4s, color .4s, border-color .4s; }
.xsteps li.on { color: var(--ink); }
.xsteps li.on::before { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.xlabels { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .5s; }
.xlabels.on { opacity: 1; }
.xl { position: absolute; left: 0; top: 0; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; white-space: nowrap; box-shadow: var(--shadow); }
.xl.elec { background: #0b8f4a; color: #fff; border-color: #0b8f4a; }
@media (max-width: 999px) {
  .sc-models { height: 240vh; }
  .sc-models .stick { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: calc(var(--nav) + 8px) 8px 8px; gap: 8px; }
  .sc-models .sc-panel { padding: 18px 18px 14px; }
  .sc-models .sc-panel h2 { font-size: clamp(26px, 7vw, 34px); }
  .sc-models .sc-panel .lead { font-size: 15px; display: none; }
  .xsteps { margin-top: 6px; grid-auto-flow: column; gap: 6px; }
  .xsteps li { font-size: 0; gap: 0; } .xsteps li::before { font-size: 11px; }
  .xl { font-size: 10px; padding: 4px 8px; }
}

/* 2. the report: the tally beside a live mini model, a scan line while it counts */
.sc-report .sgv.mini { --viewer: #F1EAE0; background: linear-gradient(170deg, #F6EFE4, #EADFCF); }
.tally { margin: 22px 0 18px; display: grid; gap: 14px; }
.tl-total { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.tl-total b { font: 780 clamp(56px, 6vw, 92px)/.9 var(--display); font-stretch: 112%; font-variation-settings: "wdth" 112; color: var(--red); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tl-total span { font-size: 15px; color: var(--ink2); max-width: 22em; }
.tally ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tally li { display: grid; grid-template-columns: 74px 1fr 34px; gap: 12px; align-items: center; font: 600 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.tally li i { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.tally li b { display: block; height: 100%; width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--amber), var(--red)); border-radius: 8px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.tally li em { font-style: normal; text-align: right; color: var(--ink); font-size: 15px; }
.tally li.lit { color: var(--ink); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0; pointer-events: none; }
.sgv.scanning .scanline { opacity: .8; animation: scan 1.6s linear infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(var(--h, 70svh)); } }

/* 3. the office: a laptop that opens, tabs under it, words from the app drifting at their own depth */
.officeroom { position: relative; display: grid; justify-items: center; gap: 22px; }
.otabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); flex-wrap: wrap; justify-content: center; }
.otab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font: 600 14.5px var(--body); cursor: pointer; }
.otab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.oscr { display: none; }
.oscr.on { display: block; animation: oscr .5s ease; }
@keyframes oscr { from { opacity: 0; } to { opacity: 1; } }
.float { position: absolute; z-index: 2; font: 600 13px var(--body); padding: 10px 16px; border-radius: 14px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(30,50,90,.45); backdrop-filter: blur(8px); pointer-events: none; }
.float::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.float.f1 { left: 3%; top: 16%; } .float.f1::before { background: var(--red); }
.float.f2 { right: 2%; top: 30%; } .float.f2::before { background: var(--accent); }
.float.f3 { left: 7%; bottom: 26%; } .float.f3::before { background: var(--amber); }
@media (max-width: 999px) { .float { display: none; } }

/* ---------- device frames */
.dev { margin: 0; position: relative; }
.dev .cap { text-align: center; justify-content: center; display: flex; gap: 6px; }
/* laptop: the lid opens on its hinge as it arrives */
.laptop { perspective: 2200px; width: 100%; }
.laptop.big { width: min(100%, 1060px); }
.lap { position: relative; transform-style: preserve-3d; padding-bottom: 3.2%; }
.lid { position: relative; transform-origin: 50% 100%; transform-style: preserve-3d; transition: transform 1.6s cubic-bezier(.2,.75,.15,1); }
.motion .laptop:not(.open) .lid { transform: rotateX(-82deg); }
.bezel { background: linear-gradient(180deg, #1d211e, #111412); border-radius: 18px 18px 6px 6px; padding: 1.6% 1.6% 2.2%; box-shadow: 0 0 0 1.5px #3a3f3b inset, 0 60px 90px -50px rgba(0,0,0,.6); }
.scr { position: relative; border-radius: 6px; overflow: hidden; background: #0c100d; aspect-ratio: 16 / 10; }
/* the whole recording, never cropped: the screen is 16:10 like the recordings, and anything else is letterboxed */
.scr img, .scr video { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.oscr { position: absolute; inset: 0; }
.deck { position: relative; margin: 0 -5.5%; height: 0; padding-bottom: 2.6%; background: linear-gradient(180deg, #d8d9d6, #a9aba7); border-radius: 0 0 18px 18px; box-shadow: 0 30px 50px -26px rgba(0,0,0,.55); }
.deck i { position: absolute; left: 50%; top: 0; width: 16%; height: 38%; transform: translateX(-50%); background: rgba(0,0,0,.18); border-radius: 0 0 10px 10px; }
:root[data-theme="dark"] .deck { background: linear-gradient(180deg, #4a4f4b, #2a2e2b); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .deck { background: linear-gradient(180deg, #4a4f4b, #2a2e2b); } }
.laptop .lid::after { content: ""; position: absolute; inset: 0; border-radius: 18px 18px 6px 6px; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 36%); pointer-events: none; }
/* phone */
.phone { width: min(100%, 320px); margin: 0 auto; perspective: 1400px; }
.ph { position: relative; transform-style: preserve-3d; }
.ph-body { position: relative; background: linear-gradient(145deg, #2a2e2b, #121513); border-radius: 46px; padding: 11px; box-shadow: 0 0 0 1.5px #474c48 inset, 0 0 0 1px #0a0c0b, 0 70px 90px -50px rgba(0,0,0,.6); transform-origin: 50% 90%; }
.ph-scr { border-radius: 36px; overflow: hidden; background: #000; }
.ph-scr img, .ph-scr video { width: 100%; height: auto; display: block; }
.ph-island { position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.ph-body::after { content: ""; position: absolute; inset: 0; border-radius: 46px; background: linear-gradient(120deg, rgba(255,255,255,.16), transparent 30%); pointer-events: none; }
.ph-shadow { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 30px; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); filter: blur(6px); }
/* tilt: lying back, then standing up into the hand as the page scrolls (--p 0..1) */
.motion .phone[data-dev="tilt"] .ph-body { transform: rotateX(calc((1 - var(--p, 0)) * 48deg)) rotateZ(calc((1 - var(--p, 0)) * -8deg)) translateY(calc((1 - var(--p, 0)) * 60px)); }
.motion .phone[data-dev="tilt"] .ph-shadow { opacity: calc(.4 + var(--p, 0) * .6); transform: scaleX(calc(1.25 - var(--p, 0) * .25)); }
/* swing: turned away, then round to face you */
.motion .phone[data-dev="swing"] .ph-body { transform: rotateY(calc((1 - var(--p, 0)) * -62deg)) translateX(calc((1 - var(--p, 0)) * -40px)); }
/* rise (phone): up from below with a glint */
.motion .phone[data-dev="rise"] .ph-body { transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.motion .phone[data-dev="rise"]:not(.in) .ph-body { transform: translateY(80px) scale(.94); opacity: 0; }
/* window */
.win { width: 100%; }
.wn { position: relative; }
.wn-main { position: relative; z-index: 2; border-radius: 14px; overflow: hidden; background: var(--night); border: 1px solid var(--line); box-shadow: 0 50px 80px -46px rgba(0,0,0,.55); }
.wn-bar { height: 30px; display: flex; gap: 7px; align-items: center; padding: 0 14px; background: #171b18; }
.wn-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b413c; }
.wn-scr img, .wn-scr video { width: 100%; height: auto; display: block; }
.wn-back { position: absolute; inset: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card); opacity: 0; }
/* stack: two sheets behind drift apart with depth as you scroll */
.win[data-dev="stack"] .wn-back { opacity: 1; }
.win[data-dev="stack"] .wn-back.b1 { transform: translate(calc(var(--p, 0) * -28px), calc(var(--p, 0) * 26px)) rotate(calc(var(--p, 0) * -2.5deg)); background: color-mix(in srgb, var(--blue) 14%, var(--card)); }
.win[data-dev="stack"] .wn-back.b2 { transform: translate(calc(var(--p, 0) * 30px), calc(var(--p, 0) * 46px)) rotate(calc(var(--p, 0) * 2deg)); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.win[data-dev="stack"] .wn-main { transform: translateY(calc((1 - var(--p, 0)) * 30px)); }
/* settle: turned in perspective, then flat */
.win[data-dev="settle"] .wn { perspective: 1800px; }
.win[data-dev="settle"] .wn-main { transition: transform 1.5s cubic-bezier(.2,.75,.15,1); }
.motion .win[data-dev="settle"]:not(.in) .wn-main { transform: rotateY(-24deg) rotateX(6deg) translateX(40px); }
/* rise (window): up, with one sweep of light across the screen */
.win[data-dev="rise"] .wn-main { transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.motion .win[data-dev="rise"]:not(.in) .wn-main { transform: translateY(70px); opacity: 0; }
.win[data-dev="rise"] .wn-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.motion .win[data-dev="rise"].in .wn-main::after { animation: sweep 1.6s .6s ease forwards; }
@keyframes sweep { to { transform: translateX(120%); } }

/* 4. sign-off: the 3D phone, and the stamp that lands with the ring */
.phone3d { position: absolute; inset: 0; border-radius: 24px; background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, #1fae5b 14%, var(--card)), transparent 75%); }
.p3-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stamp { position: absolute; right: 5%; bottom: 12%; z-index: 2; display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid #1fae5b; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.3,1.2); }
.stamp.on { opacity: 1; transform: none; }
.stamp b { font: 700 18px var(--body); color: #1a9a52; }
.stamp span { font-size: 13.5px; color: var(--ink2); }
.stamp .ex { justify-self: start; font-size: 9px; }
.sign-note { margin-top: 14px; }
.phone3d.nogl-on { background-image: url(../assets/clips/p-signoff.jpg); background-size: contain; background-position: center; background-repeat: no-repeat; }

/* 5. the crew */
.callouts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.callouts li { display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.callouts b { font: 600 12px var(--mono); color: var(--accent); }
.sc-crew .sc-stage { padding: 40px 0; }

/* 6. every company: a row that scrolls sideways */
.head.split2 { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
@media (max-width: 999px) { .head.split2 { grid-template-columns: 1fr; } }
.swipehint { display: none; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.touch .swipehint { display: inline; }
.crow { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(var(--gut), calc((100vw - 1400px) / 2 + var(--gut))) 30px; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.crow::-webkit-scrollbar { display: none; }
.crow.dragging { cursor: grabbing; scroll-snap-type: none; }
.ccard { flex: none; scroll-snap-align: start; width: min(78vw, 360px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 70px -50px rgba(40,30,80,.5); }
.ccard.desk { width: min(88vw, 640px); }
/* every recording whole inside its frame: phones in a full handset, desktop screens in a thin bezel */
.cmedia { background: linear-gradient(160deg, color-mix(in srgb, #a28ed6 22%, var(--card2)), var(--card2)); display: flex; align-items: center; justify-content: center; padding: 26px 22px; height: 460px; overflow: hidden; }
.cdev { background: #141715; box-shadow: 0 0 0 1.5px #3a3f3b inset, 0 30px 50px -30px rgba(0,0,0,.55); }
.cdev.phone { height: 408px; width: auto; aspect-ratio: 600 / 1298; border-radius: 34px; padding: 7px; flex: none; }
.cdev.phone video, .cdev.phone img { height: 100%; width: 100%; }
.cdev.desk { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; padding: 6px; }
.cdev video, .cdev img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0c100d; }
.cdev.phone video, .cdev.phone img { border-radius: 28px; }
.cdev.desk video, .cdev.desk img { border-radius: 7px; }
.ctext { padding: 18px 22px 22px; }
.ctext .k { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ctext p { margin: 6px 0 0; font-size: 15.5px; color: var(--ink2); }
@media (max-width: 999px) { .cmedia { height: 400px; } .cdev.phone { height: 348px; } }

/* 7. the bend check: a beauty shot that pushes in, the finding beside it */
.bendgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.bendshot { margin: 0; border-radius: 24px; overflow: hidden; position: relative; box-shadow: 0 60px 100px -60px rgba(90,50,10,.6); aspect-ratio: 16 / 10; background: #c9b9a4; }
.bendshot img { width: 100%; height: 100%; object-fit: cover; transform-origin: 55% 50%; will-change: transform; }
.bendshot .cap { position: absolute; left: 14px; bottom: 14px; margin: 0; background: color-mix(in srgb, var(--card) 92%, transparent); padding: 7px 11px; border-radius: 8px; }
.stampin.in { animation: stampin .7s cubic-bezier(.2,.9,.3,1.3); }
@keyframes stampin { from { transform: scale(1.08) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-bend .finding { margin: 18px 0; }
@media (max-width: 999px) { .bendgrid { grid-template-columns: 1fr; } }

/* ---------- tools: limit message */
.bend-limit { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 10%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 50%, transparent); font-size: 14px; font-weight: 600; }
.tile .m .dev.phone { width: min(80%, 240px); margin: 18px auto 0; }

/* ---------- the form */
.formwrap { position: relative; }
.form .err { display: block; min-height: 0; font: 600 12.5px var(--body); letter-spacing: 0; text-transform: none; color: var(--red); }
.form .err:empty { display: none; }
.form [aria-invalid="true"] { border-color: var(--red) !important; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .status { display: none; }
.form .status.show { display: block; }
.form .status.warn { background: color-mix(in srgb, var(--amber) 12%, transparent); border-color: var(--amber); }
.formdone { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 4vw, 52px); outline: none; animation: tbeat .6s ease; }
.formdone[hidden] { display: none; }
.formdone .check { display: block; width: 64px; height: 64px; border-radius: 50%; background: #1fae5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px no-repeat; margin-bottom: 18px; }
.formdone h2 { font-size: clamp(28px, 3vw, 44px); }

/* ---------- about, 404 */
.foot .mail { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
.nf { min-height: 70svh; display: grid; align-items: center; }

/* ---------- reduced motion: every end state, at rest */
@media (prefers-reduced-motion: reduce) {
  .laptop .lid, .phone .ph-body, .win .wn-main { transform: none !important; opacity: 1 !important; }
  .amb-tint i { transition: none; }
}

/* ---------- dark: the same rooms at night */
:root[data-theme="dark"] .sc-models .sgv.mini { --viewer: #111912; background: linear-gradient(160deg, #142017, #0d130f); }
:root[data-theme="dark"] .sc-report .sgv.mini { --viewer: #1a1510; background: linear-gradient(170deg, #1d1812, #110e0b); }
:root[data-theme="dark"] .sc-panel.solid { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 80px -50px rgba(0,0,0,.9); }
:root[data-theme="dark"] .xl.elec { background: #3dff88; color: #0c100d; border-color: #3dff88; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sc-models .sgv.mini { --viewer: #111912; background: linear-gradient(160deg, #142017, #0d130f); } :root:not([data-theme="light"]) .sc-report .sgv.mini { --viewer: #1a1510; background: linear-gradient(170deg, #1d1812, #110e0b); } :root:not([data-theme="light"]) .sc-panel.solid { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 80px -50px rgba(0,0,0,.9); } :root:not([data-theme="light"]) .xl.elec { background: #3dff88; color: #0c100d; border-color: #3dff88; } }
.prose .ph { border-bottom: 1.5px dashed var(--amber); padding: 0 2px; background: color-mix(in srgb, var(--amber) 8%, transparent); border-radius: 3px; }
.form[hidden] { display: none !important; }
/* the tour on a phone: the model and the card share one screen, nothing to scroll */
@media (max-width: 999px) {
  body.touring .hero .stagewrap { height: 44svh; min-height: 240px; }
  body.touring .hero .ctl, body.touring .hero .credit { display: none; }
  body.touring .hero .panel { padding: 16px 18px; }
  .tourcard { gap: 10px; }
  .tc-beats .over { margin-bottom: 10px; }
  .tc-beats .lead { font-size: 15px; line-height: 1.45; margin-bottom: 0; }
  .tc-nav .btn { min-height: 46px; }
}
@media (max-width: 999px) and (max-height: 720px) {
  body.touring .hero .stagewrap { height: 36svh; min-height: 200px; }
  .tc-beats .over { display: none; }
  .tc-beats h2 { font-size: 24px; }
  .tc-beats .lead { font-size: 14px; }
}

/* the companies pager: dots for where you are, a quiet arrow pair, swipe or drag the row, arrow keys on the row */
.crow-pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.crow-pager .dots { display: flex; gap: 8px; }
.crow-pager .dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: var(--line2); cursor: pointer; transition: width .35s cubic-bezier(.2,.8,.2,1), background .3s; position: relative; }
.crow-pager .dot::after { content: ""; position: absolute; inset: -12px -6px; }
.crow-pager .dot[aria-current="true"] { width: 34px; background: var(--ink); }
.crow-pager .arrows { display: flex; gap: 8px; }
.crow-pager .arr { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -16px rgba(0,0,0,.45); transition: transform .2s, opacity .2s; }
.crow-pager .arr svg { width: 20px; height: 20px; }
.crow-pager .arr:disabled { opacity: .35; cursor: default; }
.crow-pager .arr:active:not(:disabled) { transform: scale(.94); }
@media (max-width: 999px) { .crow-pager .arrows { display: none; } .crow-pager { justify-content: center; } }

/* sign-off stamp: a refined card that settles in beside the phone on computers, and sits under the phone on phones */
.stamp { right: 4%; bottom: 7%; gap: 2px; padding: 14px 18px 14px 16px; border-left: 0; border-radius: 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; box-shadow: 0 24px 50px -28px rgba(10,60,30,.45), 0 1px 0 rgba(255,255,255,.6) inset; transition: opacity .6s ease, transform .8s cubic-bezier(.16,1,.3,1); transform: translateY(10px); }
.stamp::before { content: ""; grid-row: 1 / 4; width: 34px; height: 34px; border-radius: 50%; background: #1fae5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.stamp b { font: 700 16px var(--body); letter-spacing: -.01em; }
.stamp span { font-size: 13px; }
@media (max-width: 999px) {
  .sc-signoff .sc-stage.tall { height: auto; min-height: 0; }
  .sc-signoff .phone3d { position: relative; inset: auto; height: 58svh; min-height: 380px; }
  .sc-signoff .stamp { position: absolute; left: 50%; right: auto; bottom: -78px; transform: translate(-50%, 10px); width: max-content; max-width: 92%; }
  .sc-signoff .stamp.on { transform: translate(-50%, 0); }
  .sc-signoff .sc-stage.tall { margin-bottom: 86px; }
}
@media (min-width: 1000px) { .sc-signoff .grid2.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- round 7 */
/* every trade: an ordinary section now (no sticky scroll), the model beside a panel with its controls */
.sc-models { height: auto; padding: clamp(80px, 10vw, 150px) 0; }
.sc-models .sc-panel { background: color-mix(in srgb, var(--card) 88%, transparent); display: block; }
.xctl { margin: 22px 0 14px; }
.xplay { gap: 12px; }
.xplay .xicon { width: 18px; height: 18px; position: relative; flex: none; }
.xplay .xicon::before, .xplay .xicon::after { content: ""; position: absolute; left: 1px; right: 1px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.xplay .xicon::before { top: 4px; } .xplay .xicon::after { bottom: 4px; }
.xplay.apart .xicon::before { transform: translateY(-3px); } .xplay.apart .xicon::after { transform: translateY(3px); }
.xtrades { display: flex; flex-wrap: wrap; gap: 8px; }
.xtrades .chip[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.xtrades .chip[aria-pressed="false"] .sw { opacity: .4; }

/* sign-off: the phone and its photo centred in the stage, the stamp on the grid under it */
.signstage { display: flex; flex-direction: column; gap: 14px; height: auto !important; }
.signstage .phone3d { position: relative; inset: auto; height: min(70svh, 640px); min-height: 360px; }
.signstage .stamp { position: static; align-self: center; transform: translateY(8px); opacity: 0; }
.signstage .stamp.on { transform: none; opacity: 1; }
@media (max-width: 999px) {
  .sc-signoff .sc-stage.tall.signstage { margin-bottom: 0; }
  .sc-signoff .signstage .phone3d { height: 60svh; min-height: 340px; }
  .sc-signoff .signstage .stamp { position: static; transform: translateY(8px); left: auto; bottom: auto; }
  .sc-signoff .signstage .stamp.on { transform: none; }
}

/* every company: all four at once, two by two, stacked on phones */
.cogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cogrid .ccard, .cogrid .ccard.desk { width: auto; scroll-snap-align: none; }
.cogrid .cmedia { height: 400px; }
.cogrid .cdev.phone { height: 348px; }
.cogrid .cdev.desk { width: min(100%, 540px); }
@media (max-width: 760px) { .cogrid { grid-template-columns: 1fr; } .cogrid .cmedia { height: 380px; } .cogrid .cdev.phone { height: 330px; } }
.cogrid .ccard, .cogrid .ccard.phone { min-width: 0; width: auto !important; margin: 0; perspective: none; }
.cogrid .cmedia.phone, .cogrid .cmedia.desk { width: auto; margin: 0; perspective: none; }
.cogrid .cdev.phone { width: auto; margin: 0; perspective: none; }
.signstage .phone3d { height: min(60svh, 580px); }

/* ---------- round 7 mobile pass */
@media (max-width: 999px) {
  /* model controls: every control visible as wrapped rows of 44 px chips, no sideways scrolling strip */
  .ctl { flex-wrap: wrap; overflow: visible; gap: 8px; padding: 10px; }
  .ctl .grp { flex-wrap: wrap; gap: 6px; }
  .ctl .sep { display: none; }
  .ctl .slicer { flex: 1 1 100%; justify-content: space-between; min-height: 44px; }
  .ctl .slicer input { flex: 1; width: auto; }
  .xtrades .chip { min-height: 44px; }
  /* the office tabs: a two by two grid of full-width buttons */
  .otabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .otab { min-height: 48px; border-radius: 12px; }
  /* captions under device frames read as one line of text */
  .dev .cap, .figure .cap { display: block; text-align: center; }
  /* the bend film on phones: the whole portrait frame, never cropped */
  .story .photo { max-height: none; }
  /* footer: two columns, the brand line full width */
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .foot .cols > div:first-child { grid-column: 1 / -1; }
  .foot a { padding: 8px 0; }
  /* GC board: the first five spots, then a button for the rest */
  .clist.short li:nth-child(n+6) { display: none; }
  .clist-more { margin-top: 10px; width: 100%; }
  /* section headers a touch tighter on small screens */
  h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .lead { font-size: 17.5px; }
}
@media (min-width: 1000px) { .clist-more { display: none; } }
/* the bend beauty shot: portrait framing on phones */
@media (max-width: 760px) { .bendshot { aspect-ratio: 4 / 5; } }
.bendshot picture { display: block; width: 100%; height: 100%; }
/* hero on phones: the model, then the headline, then the controls (they used to come before the headline) */
@media (max-width: 999px) {
  .hero .stagecol { display: contents; }
  .hero .stagewrap { order: 1; }
  .hero .panel { order: 2; }
  .hero .ctl { order: 3; margin-top: 0; }
  .hero .clashline { order: 4; }
  .hero .credit { order: 5; margin-top: 0; }
}
@media (max-width: 760px) { .bendshot { aspect-ratio: 9 / 14; } .bendshot img { object-position: 50% 78%; transform-origin: 50% 80%; } }
.sc-panel h2 { font-size: clamp(30px, 3.3vw, 52px); overflow-wrap: anywhere; }
@media (max-width: 760px) { .bendshot { aspect-ratio: 780 / 1386; } .bendshot img { object-position: 50% 50%; transform: none !important; } }
.signstage .phone3d { height: min(54svh, 520px); }
@media (max-width: 999px) { .sc-signoff .signstage .phone3d { height: 56svh; min-height: 330px; } }
/* field test: heading and the two cards on the left, the form on the right; on phones the form comes right after the heading */
.ftgrid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head form" "cards form"; gap: 28px clamp(28px, 5vw, 90px); align-items: start; }
.ftgrid .ft-head { grid-area: head; } .ftgrid .ft-cards { grid-area: cards; } .ftgrid .formwrap { grid-area: form; }
@media (max-width: 999px) { .ftgrid { grid-template-columns: 1fr; grid-template-areas: "head" "form" "cards"; } }
@media (max-width: 999px) and (orientation: portrait) { .bendshot { aspect-ratio: 780 / 1386; max-height: 82svh; margin: 0 auto; } .bendshot img { object-position: 50% 50%; transform: none !important; } }
@media (max-width: 999px) and (orientation: portrait) and (min-width: 600px) { .bendshot { width: min(100%, 460px); } }
@media (max-width: 999px) and (orientation: portrait) { .bendshot { width: min(100%, calc(80svh * 780 / 1386)); max-height: none; } }

/* ---------- round 8: the Tools waitlist */
.waitwrap { display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: clamp(24px, 5vw, 80px); align-items: center; }
.waitform { grid-template-columns: 1fr; }
@media (max-width: 999px) { .waitwrap { grid-template-columns: 1fr; } }

/* ---------- round 9: every company, devices straight on the section, sized to read */
.cobody { display: grid; gap: clamp(36px, 5vw, 72px); }
.colaptop { width: min(100%, 1120px); margin: 0 auto; }
.colaptop .laptop { width: 100%; }
.dev.laptop[data-dev="float"] .lid { transform: none !important; }
.motion .dev[data-dev="float"] .lap { transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .9s; }
.motion .dev[data-dev="float"]:not(.in) .lap { transform: translateY(48px) scale(.97); opacity: 0; }
.cophones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); width: min(100%, 1120px); margin: 0 auto; align-items: start; }
.cophone .dev.phone { width: min(100%, 330px); }
.cophone .ph-body { transition-delay: calc(var(--d) * 140ms) !important; }
.cophone .cap { margin-top: 26px; font: 500 14px/1.45 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink2); display: block; text-align: center; max-width: 26em; margin-left: auto; margin-right: auto; }
.cophone .cap b { font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }
.colaptop .cap { font: 500 14px/1.45 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink2); margin-top: 26px; }
.colaptop .cap b { font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
@media (max-width: 999px) { .cophones { grid-template-columns: 1fr 1fr; } .cophone:nth-child(3) { grid-column: 1 / -1; } .cophone:nth-child(3) .dev.phone { width: min(50%, 330px); } }
@media (max-width: 600px) { .cophones { grid-template-columns: 1fr; gap: 44px; } .cophone .dev.phone, .cophone:nth-child(3) .dev.phone { width: min(78vw, 320px); } }
/* round 9: the sign-off phone is the stage: as tall as the copy column beside it, and taller on phones */
.sc-signoff .grid2 { align-items: stretch; }
.signstage .phone3d { height: clamp(560px, 80svh, 820px); }
.sc-signoff .sc-panel { align-self: center; }
@media (max-width: 999px) { .sc-signoff .signstage .phone3d { height: clamp(460px, 76svh, 720px); } }
@media (max-width: 999px) and (min-width: 600px) { .sc-signoff .signstage .phone3d { height: clamp(560px, 70svh, 820px); } }
/* a status-bar strip above the recording, so the camera island never covers the app's own header */
.ph-scr { padding-top: 34px; background: #000; }
.ph-island { top: 21px; height: 20px; }
.ph-scr.own { padding-top: 0; }
