/* ==========================================================================
   Showcase components
   ========================================================================== */

/* ---------- Video inside frames ---------- */
.browser__view > video, .vfill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #0d0d0f; }
.browser__view--contain > video, .browser__view--contain > img { object-fit: contain; background: #0b0b0c; }
.browser--float { transform: perspective(1800px) rotateX(var(--rx, 0deg)); transform-origin: 50% 100%; }

/* ---------- Home showreel ---------- */
.reel { --reel-c: #ff5a1f; position: relative; padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(72px, 9vw, 130px); display: grid; justify-items: center; isolation: isolate; }
.reel::before { content: ""; position: absolute; left: 50%; top: 42%; width: min(96vw, 1700px); height: 78%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--reel-c) 26%, transparent), transparent 70%); filter: blur(40px); transition: background 1.2s var(--ease); }
.reel__top { width: min(100%, 1320px); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.reel__count { white-space: nowrap; flex: none; }
.reel__rec { display: inline-flex; align-items: center; gap: 8px; }
.reel__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: blink 1.4s infinite; }
.reel__count b { color: var(--text); font-weight: 500; }
.reel__frame { position: relative; width: min(100%, 1320px); aspect-ratio: 16 / 9; overflow: hidden; background: #070708; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px color-mix(in srgb, var(--reel-c) 30%, transparent), 0 70px 140px -50px rgba(0,0,0,.95); transition: box-shadow 1s var(--ease); }
.reel__clip { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.reel__clip.is-on { opacity: 1; transform: none; }
.reel__clip video, .reel__clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__clip--phone { background: radial-gradient(60% 80% at 50% 45%, color-mix(in srgb, #3b82f6 32%, #070708), #070708 75%); }
.reel__clip--phone video { left: 50%; right: auto; width: auto; height: 92%; top: 4%; aspect-ratio: 390 / 844; transform: translateX(-50%); border-radius: 26px; box-shadow: 0 0 0 7px #16171b, 0 0 0 8px rgba(255,255,255,.08), 0 40px 90px rgba(0,0,0,.7); object-fit: cover; }
@media (max-width: 700px) { .reel__frame { border-radius: 14px; } }

.reel__bar { width: min(100%, 1320px); margin-top: clamp(22px, 3vw, 36px); }
/* One caption at a time, stacked in the same grid cell so the bar is always as tall as the
   tallest caption and nothing jumps when they swap. */
.reel__caption { display: grid; }
.reel__label { grid-area: 1 / 1; align-self: start; pointer-events: none; }
.reel__label.is-on { pointer-events: auto; }
.reel__label:not(.is-on) { visibility: hidden; }
.reel__kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.reel__kicker i { display: inline-block; width: 28px; height: 2px; border-radius: 2px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.reel__label h3 { font-size: clamp(34px, 4.6vw, 64px); line-height: .96; letter-spacing: -0.045em; font-weight: 500; margin-top: 14px; text-wrap: balance; }
.reel__label h3 em { color: var(--c); }
.reel__label p { color: var(--text-2); margin-top: 12px; max-width: 52ch; font-size: 16px; }
/* Desktop: the caption spans the bar, headline on the left, description on the right. */
@media (min-width: 900px) {
  .reel__label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 30ch); column-gap: clamp(28px, 4vw, 72px); align-items: end; }
  .reel__kicker { grid-column: 1 / -1; justify-self: start; }
  .reel__label h3 { font-size: clamp(34px, 3.4vw, 58px); }
  .reel__label p { margin-top: 0; padding-bottom: .35em; text-align: right; justify-self: end; font-size: 15px; }
}
.reel__frame { cursor: pointer; }
.reel__frame:focus-visible { outline: 2px solid var(--reel-c); outline-offset: 4px; }
@keyframes reelTab { to { transform: scaleX(1); } }

/* ---------- Work cards with video ---------- */
.work-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.work-card:hover .work-card__media video, .work-card__media video.is-playing { opacity: 1; }
.work-card__media img { z-index: 0; }

/* ---------- Scroll-scrubbed video section ---------- */
.scrub { position: relative; }
.scrub__sticky { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; padding: calc(var(--header-h) + 8px) var(--gutter) 28px; overflow: hidden; }
.scrub__layout { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .scrub__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } .scrub--wide .scrub__layout { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.scrub .browser { width: 100%; }
.scrub .browser__view { aspect-ratio: 16 / 10; max-height: calc(100svh - var(--header-h) - 120px); }
.scrub__steps { display: grid; }
.scrub__step { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .7s var(--ease); }
.scrub__step.is-on { opacity: 1; transform: none; }
.scrub__word { display: block; font-size: clamp(44px, 5.6vw, 92px); line-height: .9; letter-spacing: -0.05em; font-weight: 600; margin: 12px 0 14px; color: var(--sw, var(--text)); }
.scrub__step h3 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.05; font-weight: 500; margin: 14px 0 12px; }
.scrub__step p { color: var(--text-2); max-width: 44ch; }
.scrub__bar { display: block; height: 2px; margin-top: 28px; max-width: 320px; background: var(--line-strong); overflow: hidden; }
.scrub__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 999px) {
  /* Phones and tablets: the recording first, its caption underneath, the pair centred on screen. */
  .scrub__sticky { align-content: center; padding-top: calc(var(--header-h) + 14px); }
  .scrub__layout > .browser { order: -1; }
  .scrub__steps { min-height: 150px; }
  .scrub__word { font-size: 40px; }
}
.scrub--phone .scrub__layout { justify-items: center; }
@media (min-width: 1000px) { .scrub--phone .scrub__layout { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); justify-items: stretch; } }
.scrub--phone .phone2 { max-height: calc(100svh - var(--header-h) - 60px); width: auto; height: calc(100svh - var(--header-h) - 60px); }

/* ---------- Phone frame with status bar (no cropping) ---------- */
.phone2 {
  --pw: 330px;
  position: relative; width: var(--pw); max-width: 100%; padding: 11px; border-radius: 52px;
  background: linear-gradient(150deg, #34343a, #151517 40%, #0d0d0f); box-shadow: 0 0 0 1px rgba(255,255,255,.09), inset 0 0 0 2px rgba(255,255,255,.05), 0 70px 110px -40px rgba(0,0,0,.9);
}
.phone2__screen { position: relative; width: 100%; border-radius: 42px; overflow: hidden; background: #000; display: grid; grid-template-rows: auto auto; }
.phone2__status { position: relative; aspect-ratio: 390 / 54; min-height: 18px; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 11%; font: 600 11px/1 -apple-system, "SF Pro Text", "Inter Tight", sans-serif; color: #fff; background: var(--status, #000); }
.phone2__status::after { content: ""; position: absolute; left: 50%; top: 50%; width: 31%; height: 62%; transform: translate(-50%, -50%); border-radius: 999px; background: #000; }
.phone2__status b { font-weight: 600; letter-spacing: .02em; }
.phone2__status span { display: inline-flex; gap: 4px; align-items: center; }
.phone2__status svg { width: 15px; height: 10px; fill: #fff; }
/* The view is exactly the shape of the recordings (a 390 x 844 phone viewport), so nothing is cropped. */
.phone2__view { position: relative; overflow: hidden; aspect-ratio: 390 / 844; }
.phone2__view video, .phone2__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phones2 { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 3.4vw, 56px); flex-wrap: wrap; }
.phones2 .phone2:nth-child(2) { margin-top: clamp(24px, 6vw, 90px); }
.phones2 figure { display: grid; gap: 14px; justify-items: center; }
.phones2 figcaption { max-width: 300px; text-align: center; color: var(--text-2); font-size: 14px; }
@media (max-width: 700px) { .phone2 { --pw: 46vw; padding: 7px; border-radius: 34px; } .phone2__screen { border-radius: 28px; } .phone2__status { font-size: 8px; } .phones2 .phone2:nth-child(2) { margin-top: 30px; } .phones2 figcaption { font-size: 12.5px; max-width: 46vw; } }

/* ---------- Moments grid ---------- */
.moments { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 900px) { .moments { grid-template-columns: repeat(12, minmax(0, 1fr)); } .m-8 { grid-column: span 8; } .m-4 { grid-column: span 4; } .m-6 { grid-column: span 6; } .m-7 { grid-column: span 7; } .m-5 { grid-column: span 5; } .m-12 { grid-column: span 12; } }
.moment { display: grid; gap: 16px; align-content: start; }
.moment__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #0b0b0c; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 16 / 10; }
.moment__media--tall { aspect-ratio: 4 / 5; }
.moment__media--wide { aspect-ratio: 21 / 9; }
.moment__media video, .moment__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.moment__media .moment__tag { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 10px; border-radius: 8px; background: rgba(7,7,8,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.moment__media .moment__tag i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; animation: blink 1.6s infinite; }
.moment h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; }
.moment h3 em { color: var(--accent); }
.moment p { color: var(--text-2); font-size: 15.5px; max-width: 58ch; }
.moment__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- Dashboard viewer ---------- */
.dash { display: grid; gap: 20px; }
@media (min-width: 1100px) { .dash { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; } }
.dash__tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dash__tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .dash__tabs { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--header-h) + 20px); } }
.dash__tabs button { flex: none; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; text-align: left; color: var(--text-2); font-size: 14.5px; transition: background-color .3s, color .3s; white-space: nowrap; }
.dash__tabs button span { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); width: 18px; }
.dash__tabs button:hover { background: rgba(237,235,229,.05); color: var(--text); }
.dash__tabs button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dash__tabs button[aria-selected="true"] span { color: var(--accent); }
.dash__main { display: grid; gap: 18px; min-width: 0; }
.dash .browser__view { aspect-ratio: 16 / 10; }
.dash__shot { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.dash__shot.is-on { opacity: 1; }
.dash__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.dash__progress { height: 2px; background: rgba(255,255,255,.06); }
.dash__progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.dash__notes { display: grid; min-height: 96px; }
.dash__note { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .6s var(--ease); pointer-events: none; }
.dash__note.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dash__note h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 6px; }
.dash__note p { color: var(--text-2); max-width: 70ch; font-size: 15.5px; }
.dash__disclaimer { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Inbox ---------- */
.inbox { display: grid; border-radius: var(--radius-lg); overflow: hidden; background: #111113; box-shadow: 0 0 0 1px var(--line-strong), 0 60px 110px -50px rgba(0,0,0,.85); }
@media (min-width: 1000px) { .inbox { grid-template-columns: 380px minmax(0, 1fr); height: min(820px, 88svh); } }
.inbox__side { display: grid; grid-template-rows: auto 1fr; border-right: 1px solid var(--line); min-height: 0; }
.inbox__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.inbox__head strong { font-weight: 500; }
.inbox__list { overflow: auto; }
@media (max-width: 999px) { .inbox__list { display: flex; overflow-x: auto; } }
.inbox__item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; width: 100%; padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); transition: background-color .3s; }
@media (max-width: 999px) { .inbox__item { flex: none; width: 280px; border-right: 1px solid var(--line); } }
.inbox__item:hover { background: rgba(237,235,229,.03); }
.inbox__item[aria-selected="true"] { background: var(--card-2); }
.inbox__item[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.inbox__item.is-unread .inbox__subject { font-weight: 600; color: var(--text); }
.inbox__item.is-unread::after { content: ""; position: absolute; right: 16px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.inbox__av { grid-row: span 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #0a0a0b; background: var(--av, var(--accent)); }
.inbox__from { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.inbox__subject { font-size: 14.5px; color: var(--text-2); line-height: 1.3; }
.inbox__when { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--accent); }
.inbox__view { position: relative; overflow: auto; background: #e9e9e6; min-height: 520px; }
@media (min-width: 1000px) { .inbox__view { min-height: 0; } }
.inbox__mail[hidden] { display: none; }
.inbox__meta { position: sticky; top: 0; z-index: 2; display: grid; gap: 4px; padding: 16px 22px; background: #fafaf8; border-bottom: 1px solid #dcdcd8; color: #1a1a1c; }
.inbox__meta strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.inbox__meta span { font-size: 12.5px; color: #6b6b68; }
.inbox__meta .chip { justify-self: start; margin-top: 6px; color: #3a3a3a; box-shadow: inset 0 0 0 1px #cfcfca; }
.inbox__body { padding: clamp(10px, 3vw, 34px) 0 40px; display: grid; justify-items: center; }
.inbox__body img { width: min(640px, 94%); height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.12); }

/* ---------- Lifecycle timeline ---------- */
.flow { display: grid; gap: 0; counter-reset: flow; }
@media (min-width: 1000px) { .flow { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.flow li { position: relative; padding: 22px 18px 22px 0; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .flow li { padding: 28px 22px 0 0; } }
.flow li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.flow li.is-auto::before { background: var(--accent); }
.flow__when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.flow h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin: 10px 0 6px; }
.flow p { font-size: 14.5px; color: var(--text-2); }
.flow__legend { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
.flow__legend span { display: inline-flex; align-items: center; gap: 8px; }
.flow__legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--accent); }
.flow__legend span.is-auto::before { background: var(--accent); }

/* ---------- Live embed ---------- */
.embed .browser__view { aspect-ratio: 16 / 10; }
.embed__frame { position: absolute; inset: 0; }
.embed__frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.embed__cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(7,7,8,.35); transition: opacity .5s; }
.embed__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.28) saturate(.8) blur(2px); transform: scale(1.03); z-index: -1; }
.embed.is-live .embed__cover { opacity: 0; pointer-events: none; }
.embed__load { display: grid; justify-items: center; gap: 14px; text-align: center; }
.embed__load .btn { pointer-events: none; }
.embed__load .label { color: var(--text-2); }

/* ---------- Real bottle lineup ---------- */
.bottles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: clamp(4px, 1vw, 14px); align-items: end; }
@media (max-width: 760px) { .bottles { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 26px; } }
.bottles figure { position: relative; display: grid; justify-items: center; gap: 10px; }
.bottles figure::before { content: ""; position: absolute; left: 50%; top: 42%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 34%, transparent), transparent); z-index: -1; opacity: .8; }
.bottles img { width: 100%; max-width: 130px; height: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,.55)); transition: transform .9s var(--ease); }
.bottles figure:hover img { transform: translateY(-10px) rotate(-2deg); }
.bottles figcaption { font-size: 12px; letter-spacing: .1em; font-weight: 600; color: var(--c); text-align: center; }
.bottles figcaption span { display: block; font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 760px) { .bottles figcaption span { display: none; } }

/* ---------- Gallery (stills) ---------- */
.gallery { display: grid; gap: clamp(14px, 1.8vw, 24px); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); } .g-12 { grid-column: span 12; } .g-8 { grid-column: span 8; } .g-7 { grid-column: span 7; } .g-6 { grid-column: span 6; } .g-5 { grid-column: span 5; } .g-4 { grid-column: span 4; } }
.gallery figure { display: grid; gap: 12px; }
.gallery .shot { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b0b0c; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.8); }
.gallery .shot img, .gallery .shot video { display: block; width: 100%; height: auto; }
.gallery figcaption { color: var(--text-2); font-size: 14.5px; display: flex; gap: 12px; }
.gallery figcaption .label { flex: none; padding-top: 2px; }

/* ---------- Key numbers row ---------- */
.kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 1000px) { .kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpi--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi > div { background: var(--bg); padding: clamp(20px, 2.6vw, 34px); display: grid; gap: 10px; align-content: space-between; min-height: 170px; }
.kpi strong { font-size: clamp(40px, 4.8vw, 78px); line-height: .9; letter-spacing: -0.055em; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpi strong small { font-size: .38em; letter-spacing: -0.01em; color: var(--accent); margin-left: 4px; }
.kpi p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Stack chips list ---------- */
.stackline { display: flex; flex-wrap: wrap; gap: 8px; }
.stackline li { padding: 8px 13px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--text-2); }
.stackline li b { color: var(--text); font-weight: 500; }

/* ---------- Section intro (shared) ---------- */
.intro2 { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 72px); }
@media (min-width: 900px) { .intro2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.intro2 .display { margin-top: 16px; }

/* ---------- Systems strip (home) ---------- */
.systems { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 1000px) { .systems { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.sys-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; }
.sys-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.sys-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.4s var(--ease); }
.sys-card:hover .sys-card__media img { transform: scale(1.03); }
.sys-card__body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.sys-card__body h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.sys-card__body p { color: var(--text-2); font-size: 15px; }
.sys-stack { display: grid; gap: clamp(16px, 2vw, 24px); }
.mail-fan { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(80% 90% at 50% 20%, #1c1c20, #0e0e10); }
.mail-fan img { position: absolute; top: 12%; width: 44%; height: auto; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.6); transition: transform 1.2s var(--ease); }
.mail-fan img:nth-child(1) { left: 6%; transform: rotate(-7deg) translateY(10%); }
.mail-fan img:nth-child(2) { left: 28%; transform: translateY(-2%); z-index: 2; }
.mail-fan img:nth-child(3) { left: 50%; transform: rotate(7deg) translateY(10%); }
.sys-card:hover .mail-fan img:nth-child(1) { transform: rotate(-10deg) translate(-6%, 6%); }
.sys-card:hover .mail-fan img:nth-child(3) { transform: rotate(10deg) translate(6%, 6%); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reel__clip, .dash__shot { transition: none; }
}

/* ---------- App stage: phone + captions synced to the video ---------- */
body[data-project="zenfast"] { --accent: #3b82f6; --accent-2: #10b981; }
.stage { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px) var(--gutter); isolation: isolate; }
@media (min-width: 1000px) { .stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
.stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(80vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 72%); filter: blur(20px); }
.stage__phone { justify-self: center; }
.stage__phone .phone2 { --pw: min(360px, 78vw); }
.stage__col { display: grid; gap: 10px; align-content: center; }
.stage__col--l { justify-items: end; text-align: right; }
@media (max-width: 999px) { .stage__col--l, .stage__col--r { justify-items: start; text-align: left; } .stage__col--l { order: 2; } .stage__col--r { order: 3; } .stage__phone { order: 1; } }
.sync__step { position: relative; max-width: 330px; padding: 14px 18px; border-radius: 14px; background: rgba(21,21,23,.5); box-shadow: inset 0 0 0 1px var(--line);
  opacity: .38; transform: scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease), box-shadow .5s, background-color .5s; cursor: pointer; }
.sync__step.is-on { opacity: 1; transform: none; background: rgba(21,21,23,.85); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 20px 50px -20px color-mix(in srgb, var(--accent) 50%, transparent); }
.sync__step.is-done { opacity: .7; }
.sync__step .label { color: var(--accent); }
.sync__step h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin: 6px 0 4px; }
.sync__step p { font-size: 14px; color: var(--text-2); }
.sync__bar { width: min(100%, 360px); height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; justify-self: center; margin-top: 18px; }
.sync__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Row of phone stills */
.phone-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 28px) clamp(14px, 2vw, 28px); justify-items: center; }
@media (min-width: 1000px) { .phone-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.phone-row figure { display: grid; gap: 12px; justify-items: center; }
.phone-row .phone2 { --pw: min(250px, 42vw); padding: 8px; border-radius: 40px; }
.phone-row .phone2__screen { border-radius: 32px; }
.phone-row figcaption { font-size: 13.5px; color: var(--text-2); text-align: center; max-width: 230px; }
.phone-row figcaption b { display: block; color: var(--text); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.app-mark { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px -10px rgba(59,130,246,.5); }
/* App work card: phone screen centred on a blue stage instead of a cropped screenshot */
.work-card__media--app { background: radial-gradient(70% 90% at 50% 40%, rgba(59,130,246,.35), #0b0f1a 70%); }
.work-card__media--app img, .work-card__media--app video { position: absolute; left: 50%; top: 6%; bottom: 0; width: auto; height: 118%; inset: auto; transform: translateX(-50%) !important; object-fit: cover; object-position: top; border-radius: 26px 26px 0 0; box-shadow: 0 0 0 8px #15171c, 0 30px 80px rgba(0,0,0,.6); }
.work-card__media--app img { left: 50%; top: 7%; }
.work-card__media--app video { left: 50%; top: 7%; }

/* Fate or Fortune: build viewer -------------------------------------------- */
.builds { --bc: var(--accent); display: grid; gap: 18px; max-width: 1320px; margin-inline: auto; }
.builds__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.builds__tab { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; overflow: hidden; text-align: left; color: var(--text-2);
  background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .35s, box-shadow .35s, color .35s; }
.builds__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bc); box-shadow: 0 0 12px var(--bc); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.builds__tab:hover { color: var(--text); background: rgba(255,255,255,.045); }
.builds__tab.is-on { color: var(--text); background: color-mix(in srgb, var(--bc) 9%, #111113);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 45%, transparent), 0 24px 50px -28px color-mix(in srgb, var(--bc) 80%, transparent); }
.builds__tab.is-on::after { transform: scaleX(1); }
.builds__glyph { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--bc);
  background: color-mix(in srgb, var(--bc) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 35%, transparent); transition: transform .5s var(--ease); }
.builds__tab.is-on .builds__glyph { transform: rotate(-8deg) scale(1.06); }
.builds__glyph svg { width: 22px; height: 22px; }
.builds__tabtxt { display: grid; gap: 3px; min-width: 0; }
.builds__tabtxt small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.builds__tabtxt b { font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.builds__panel { display: none; gap: 18px; }
.builds__panel.is-on { display: grid; animation: buildIn .8s var(--ease) both; }
@keyframes buildIn { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1100px) { .builds__panel { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.builds__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #07070a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,.8), 0 0 90px -34px color-mix(in srgb, var(--bc) 70%, transparent); }
.builds__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.builds__frame video.is-on { display: block; animation: buildIn .6s var(--ease) both; }
.builds__live { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 99px;
  background: rgba(5,5,6,.72); backdrop-filter: blur(6px); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.builds__live i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; animation: blink 1.6s infinite; }
.builds__maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.builds__maps button { display: grid; gap: 2px; padding: 9px 14px; border-radius: 12px; text-align: left; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, box-shadow .3s, background-color .3s; }
.builds__maps button:hover { color: var(--text); }
.builds__maps button b { font-size: 14px; font-weight: 500; }
.builds__maps button small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.builds__maps button.is-on { color: var(--text); background: color-mix(in srgb, var(--bc) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 60%, transparent); }
.builds__maps button.is-on small { color: var(--bc); }
.builds__sheet { padding: 24px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: inset 0 0 0 1px var(--line); }
.builds__sheet .label { color: var(--bc); }
.builds__sheet h3 { margin: 10px 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.builds__sheet h3 em { color: var(--bc); }
.builds__sheet > p { font-size: 14.5px; color: var(--text-2); }
.builds__links { position: relative; display: grid; margin: 18px 0; }
.builds__links::before { content: ""; position: absolute; left: 5.5px; top: 16px; bottom: 26px; width: 1px; background: linear-gradient(180deg, var(--bc), color-mix(in srgb, var(--bc) 25%, transparent)); }
.builds__links li { position: relative; display: grid; grid-template-columns: 12px 1fr; column-gap: 12px; padding: 5px 0; font-size: 14.5px; line-height: 1.35; }
.builds__links li small { grid-column: 2; font-size: 12px; color: var(--muted); }
.builds__links li i { position: relative; z-index: 1; grid-row: span 2; margin-top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #1b1b20; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bc) 60%, transparent); }
.builds__links li.is-skill { font-weight: 500; }
.builds__links li.is-skill i { background: var(--bc); box-shadow: 0 0 12px var(--bc); }
.builds__stats { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.builds__stats div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 13.5px; }
.builds__stats dt { padding-top: 2px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.builds__stats dd { color: var(--text-2); }
.builds__stats b { color: var(--bc); font-weight: 600; }
@media (max-width: 760px) {
  .builds__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .builds__tabs::-webkit-scrollbar { display: none; }
  .builds__tab { flex: 0 0 min(78%, 280px); scroll-snap-align: start; }
  .builds__frame { border-radius: 12px; }
  .builds__sheet { padding: 20px; }
}

/* Three square skill clips side by side from tablet width */
@media (min-width: 600px) and (max-width: 899px) { .moments--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
