/* ==========================================================================
   Matias Indacochea · Portfolio
   ========================================================================== */

:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --card: #0f0f11;
  --card-2: #161619;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;

  --l-bg: #f5f5f7;
  --l-card: #ffffff;
  --l-text: #1d1d1f;
  --l-text-2: #6e6e73;
  --l-line: rgba(0, 0, 0, .08);

  --link: #2997ff;
  --link-light: #0066cc;
  --grad: linear-gradient(100deg, #FF7A1A 0%, #FF2E6A 38%, #A35BFF 70%, #2F7BFF 100%);

  --r-xl: 36px;
  --r-l: 26px;
  --r-m: 18px;
  --r-s: 12px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(163, 91, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-3); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ic { width: 1.1em; height: 1.1em; flex: none; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 999px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; margin-bottom: 18px;
}
.section-head { max-width: 1080px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-title {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 700;
}
.section-lead {
  margin-top: 24px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.38;
  letter-spacing: -.018em;
  color: var(--text-2);
  font-weight: 500;
  max-width: 680px;
}
.section-title, .showcase-title, .project-tagline, .about-lead, .contact-title, .tile h3, .pull p { text-wrap: balance; }
.section-title { text-wrap: pretty; } /* no one-word last lines */
.sub-title { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.032em; font-weight: 700; line-height: 1.1; }
.link {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--link); font-weight: 500;
}
.link .ic { transition: transform .3s var(--ease); width: .95em; height: .95em; }
.link:hover .ic { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.012em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .45s var(--ease);
  will-change: transform;
}
.btn .ic { width: 18px; height: 18px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-light { background: #f5f5f7; color: #000; }
.btn-light:hover { background: #fff; box-shadow: 0 8px 30px rgba(255, 255, 255, .18); }
.btn-glass {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-dark { background: #1d1d1f; color: #fff; }
.btn-dark:hover { background: #000; }
.btn-text { background: none; color: var(--text); padding: 0 12px; }
.btn-text .ic { width: 14px; height: 14px; }
.btn-text:hover { color: #fff; }
.btn-text:hover .ic { transform: scale(1.12); }
.btn:active { transform: scale(.97) !important; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #30d158; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #30d158;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ==========================================================================
   Floating nav
   ========================================================================== */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
  padding: 0 12px;
}
.nav-pill {
  --pill-bg: rgba(22, 22, 24, .62);
  --pill-line: rgba(255, 255, 255, .1);
  --pill-text: rgba(245, 245, 247, .72);
  --pill-text-on: #fff;
  --pill-ind: rgba(255, 255, 255, .12);
  position: relative;
  display: flex; align-items: center; gap: 4px;
  height: 54px; padding: 6px;
  border-radius: 999px;
  background: var(--pill-bg);
  box-shadow: inset 0 0 0 1px var(--pill-line), 0 12px 40px rgba(0, 0, 0, .28), 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  pointer-events: auto;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease), height .4s var(--ease);
  transform: translateY(-90px);
  overflow: hidden;
}
.is-ready .nav-pill { transform: translateY(0); }
.nav[data-tone="light"] .nav-pill {
  --pill-bg: rgba(255, 255, 255, .72);
  --pill-line: rgba(0, 0, 0, .08);
  --pill-text: rgba(29, 29, 31, .7);
  --pill-text-on: #000;
  --pill-ind: rgba(0, 0, 0, .07);
  box-shadow: inset 0 0 0 1px var(--pill-line), 0 12px 40px rgba(0, 0, 0, .1);
}
.nav-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--pill-text-on);
  transition: background-color .3s var(--ease), color .5s var(--ease);
  flex: none;
}
.nav-mark svg { width: 25px; height: auto; transition: transform .5s var(--spring); }
.nav-mark:hover { background: var(--pill-ind); }
.nav-mark:hover svg { transform: scale(1.08) rotate(-4deg); }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 0 16px; height: 42px; display: inline-flex; align-items: center;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -.008em;
  color: var(--pill-text);
  transition: color .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--pill-text-on); }
.nav-indicator {
  position: absolute; top: 0; left: 0; height: 42px; width: 0;
  border-radius: 999px; background: var(--pill-ind);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s var(--ease), background-color .5s var(--ease);
}
.nav-cta {
  margin-left: 6px;
  height: 42px; padding: 0 18px; display: inline-flex; align-items: center;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--pill-text-on); color: var(--bg);
  transition: transform .3s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.nav[data-tone="light"] .nav-cta { color: #fff; }
.nav-cta:hover { transform: scale(1.04); }
.nav-progress {
  position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform-origin: left; transform: scaleX(var(--progress, 0));
  opacity: .9;
}
.nav-current, .nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(112px, 15vh, 168px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-aurora {
  position: absolute; inset: -10% -10% 0; z-index: -2; pointer-events: none; filter: blur(80px) saturate(140%); opacity: .55;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 95%); mask-image: linear-gradient(#000 35%, transparent 95%);
}
.hero-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s var(--ease-in-out) infinite alternate; }
.hero-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 2%; top: 4%; background: radial-gradient(closest-side, rgba(255,122,26,.55), transparent); }
.hero-aurora i:nth-child(2) { width: 40vw; height: 40vw; left: 30%; top: -8%; background: radial-gradient(closest-side, rgba(255,46,106,.45), transparent); animation-delay: -6s; }
.hero-aurora i:nth-child(3) { width: 44vw; height: 44vw; right: 4%; top: 6%; background: radial-gradient(closest-side, rgba(163,91,255,.5), transparent); animation-delay: -11s; }
.hero-aurora i:nth-child(4) { width: 38vw; height: 38vw; right: 22%; top: 30%; background: radial-gradient(closest-side, rgba(47,123,255,.45), transparent); animation-delay: -16s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.92); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 40%, #000 78%);
}
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 50%, transparent 98%); mask-image: linear-gradient(#000 50%, transparent 98%);
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .06), transparent 60%);
  transition: opacity .4s;
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-chip { margin-bottom: 28px; }
.hero-title {
  font-size: clamp(52px, 9vw, 128px);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-title .word, .hero-beats .beat {
  display: inline-block;
  opacity: 0; transform: translateY(.35em); filter: blur(14px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  padding-bottom: .06em;
}
.is-ready .hero-title .word, .is-ready .hero-beats .beat { opacity: 1; transform: none; filter: blur(0); }
.hero-title .word:nth-child(2) { transition-delay: .1s; }
/* three words that describe the designer, each carrying one stretch of the site gradient */
.hero-beats {
  font-size: clamp(28px, 4.3vw, 60px); line-height: 1.08; letter-spacing: -.04em; font-weight: 700;
  margin-bottom: 30px; text-wrap: balance;
}
.hero-beats .beat { -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-beats .b1 { background-image: linear-gradient(100deg, #FF7A1A, #FF2E6A); transition-delay: .34s; }
.hero-beats .b2 { background-image: linear-gradient(100deg, #FF2E6A, #A35BFF); transition-delay: .5s; }
.hero-beats .b3 { background-image: linear-gradient(100deg, #A35BFF, #2F7BFF); transition-delay: .66s; }
.hero-lead {
  max-width: 720px;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--text-2);
  font-weight: 500;
}
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---------- Shared window chrome ---------- */
.window {
  position: relative;
  border-radius: 18px;
  background: #121214;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px -20px rgba(0,0,0,.8), 0 24px 60px -30px rgba(0,0,0,.6);
  overflow: hidden;
}
.window-bar {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 14px;
  background: linear-gradient(180deg, #1f1f22, #18181b);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lights { display: inline-flex; gap: 8px; flex: none; }
.lights i, .lights button { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3d; display: block; }
.window .lights i:nth-child(1), .sheet .light-close { background: #ff5f57; }
.window .lights i:nth-child(2), .sheet .lights i:nth-child(2) { background: #febc2e; }
.window .lights i:nth-child(3), .sheet .lights i:nth-child(3) { background: #28c840; }
.window-url {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 14px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: 12.5px; color: var(--text-2); white-space: nowrap;
  max-width: 44%; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Showcase: the work at a glance ---------- */
.showcase { position: relative; padding: clamp(48px, 5.5vw, 76px) 0 0; }
.showcase-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px;
  margin-bottom: clamp(22px, 2.6vw, 32px);
}
.showcase-head .eyebrow { margin-bottom: 10px; }
.showcase-title { font-size: clamp(34px, 4.2vw, 56px); line-height: 1; letter-spacing: -.042em; font-weight: 700; }
.showcase-hint { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); padding-bottom: 6px; }
.showcase-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 10px #30d158; }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

.stage { --p: 0; width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); perspective: 1800px; }
.stage-tilt {
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.94 + var(--p) * .06));
  will-change: transform;
}
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(300px, 1fr); gap: 14px; align-items: stretch; }
.stage-window { display: flex; flex-direction: column; }
.stage-window .window-url { position: static; transform: none; margin-left: auto; max-width: none; }
.stage-view { position: relative; }
.stage-screen { position: relative; display: block; aspect-ratio: 16 / 10; background: #0b0b0d; overflow: hidden; }
.stage-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.035);
  transition: opacity .8s var(--ease), transform 1.6s var(--ease);
}
.stage-screen img.is-active { opacity: 1; transform: scale(1); }
.stage-overlay {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 14px 14px 20px;
  background: linear-gradient(180deg, #18181b, #131315);
  border-top: 1px solid rgba(255,255,255,.07);
}
.so-text { display: grid; gap: 5px; min-width: 0; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.stage-overlay.is-swapping .so-text { opacity: 0; transform: translateY(4px); }
.so-name { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #fff; }
.so-kicker { font-size: 13px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-actions { display: flex; gap: 8px; flex: none; }

.stage-list { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 10px; } /* any number of projects shares the window's height */
.stage-list:has(> li:nth-child(5)) .si-line { display: none; }
.stage-list:has(> li:nth-child(5)) .stage-item { padding-top: 12px; padding-bottom: 12px; }
.stage-list li { display: flex; min-height: 0; }
.stage-item {
  position: relative; overflow: hidden; flex: 1;
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 14px;
  padding: 16px 18px 16px 20px; border-radius: 18px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.stage-item::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--c); transform: scaleY(0); transition: transform .45s var(--ease);
}
.stage-item:hover { background: rgba(255,255,255,.065); }
.stage-item.is-active { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.stage-item.is-active::before { transform: scaleY(1); }
.si-num { align-self: start; padding-top: 3px; font-size: 13px; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.si-thumb { display: none; }
.si-body { display: grid; gap: 2px; min-width: 0; }
.si-name { font-size: clamp(18px, 1.55vw, 22px); font-weight: 700; letter-spacing: -.026em; line-height: 1.15; color: var(--text); }
.si-kind { font-size: 13px; font-weight: 500; color: var(--text-3); }
.si-line { margin-top: 6px; font-size: 14.5px; line-height: 1.35; color: var(--text-2); }
.si-go { width: 18px; height: 18px; color: var(--text-3); transition: transform .3s var(--ease), color .3s var(--ease); }
.stage-item:hover .si-go, .stage-item:focus-visible .si-go, .stage-item.is-active .si-go { color: var(--text); }
.stage-item:hover .si-go { transform: translateX(3px); }
.si-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); opacity: .9; }
.stage-item.is-active .si-bar { animation: tabfill var(--dur, 6s) linear forwards; }
.stage.is-paused .stage-item.is-active .si-bar { animation-play-state: paused; }
@keyframes tabfill { to { transform: scaleX(1); } }

/* ---------- Proof ---------- */
.proof { padding: clamp(80px, 10vw, 128px) 0 0; }
.proof-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px;
  padding: 26px 32px; border-radius: 999px;
  border: 1px solid var(--line);
  max-width: 980px;
}
.proof-label { font-size: 13px; color: var(--text-3); font-weight: 500; }
.proof-list { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.proof-list li { font-size: 19px; font-weight: 650; letter-spacing: -.025em; color: #d2d2d7; }
.proof-sep { width: 1px; height: 22px; background: var(--line-2); }
.proof-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; }

/* ==========================================================================
   Work
   ========================================================================== */
.work { padding: clamp(110px, 14vw, 180px) 0 clamp(60px, 8vw, 100px); }
.project { --enter: 1; padding: 0 var(--gutter); margin: 0 auto clamp(28px, 4vw, 48px); max-width: calc(1400px + var(--gutter) * 2); }
.project-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--tint) 0%, #09090b 46%, #09090b 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  padding: clamp(28px, 5.4vw, 80px) clamp(22px, 5.4vw, 80px) clamp(28px, 4.4vw, 64px);
  transform: scale(calc(.94 + var(--enter) * .06));
  transform-origin: 50% 0;
  border-radius: calc(var(--r-xl) + (1 - var(--enter)) * 24px);
  will-change: transform;
}
.project-card[data-href] { cursor: pointer; transition: box-shadow .4s var(--ease); }
.project-card[data-href]:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.project-card[data-href]:hover .project-cta .btn-light { background: #fff; box-shadow: 0 8px 30px rgba(255,255,255,.18); }
.project-card[data-href]:hover .project-title { color: #fff; }
.project-card .device-live, .project-card .seg, .project-card .swatches { cursor: auto; }
.project-glow {
  position: absolute; inset: -20% -10% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 30% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
              radial-gradient(40% 50% at 90% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: .9;
}
.project-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 64px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.project-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--accent-ink); letter-spacing: -.005em;
  margin-bottom: 18px;
}
.project-kicker .num {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
  color: #fff;
}
.project-title {
  font-size: clamp(48px, 6.6vw, 100px);
  line-height: .95; letter-spacing: -.05em; font-weight: 700;
}
.project-tagline {
  margin-top: 18px;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600;
  color: #e8e8ed; max-width: 560px;
}
.project-intro p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--text-2); letter-spacing: -.014em; }
.project-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }

.project-media { position: relative; margin-bottom: clamp(36px, 5vw, 64px); }
.parallax { --py: 0px; transform: translate3d(0, var(--py), 0); will-change: transform; }

.phone-shot { position: relative; }
.project-media > .window > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; } /* new projects (tools/new_project.py) */
.phone-shot img { width: 100%; border-radius: 0; }

.float-card {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; border-radius: 20px;
  background: rgba(28, 28, 32, .72);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -20px rgba(0,0,0,.7);
}
.fc-label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: none; letter-spacing: 0; }
.fc-note { font-size: 13px; line-height: 1.4; color: var(--text-2); max-width: 260px; }
.fc-note b { color: var(--text); font-weight: 600; }
.fc-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.07); }
.fc-seg i { font-style: normal; font-size: 12.5px; font-weight: 500; padding: 6px 11px; border-radius: 8px; color: var(--text-2); }
.fc-seg i.on { background: #fff; color: #000; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* segmented control (shared) */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.08); position: relative; }
.seg button {
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 9px; color: var(--text-2);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.seg button.is-on { background: rgba(255,255,255,.95); color: #000; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.seg-sm { margin-left: auto; }
.seg-sm button { font-size: 12px; padding: 4px 10px; }

/* Halo composition */
.media-halo { aspect-ratio: 16 / 10.4; }
.halo-window { position: absolute; left: 0; top: 0; width: 84%; }
.halo-screens { position: relative; aspect-ratio: 16 / 10; }
.halo-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s var(--ease); }
.halo-screens img.is-on { opacity: 1; }
.halo-phone { position: absolute; right: 1%; bottom: 0; width: 21%; z-index: 2; }

/* iPhone: titanium band, black bezel, Dynamic Island, status bar, home indicator.
   Units are cqw of the phone itself, so it scales as one object. */
.iphone {
  container-type: inline-size;
  aspect-ratio: 1000 / 2093;
  border-radius: 15.6% / 7.45%; /* cqw here would read the page, not the phone */
  background: #0a0a0b;
  box-shadow: 0 0 0 1.5px #2e2d2b, 0 0 0 3px #7d7973, 0 0 0 4px #3b3a38, inset 0 0 0 1px rgba(255,255,255,.05), 0 50px 90px -25px rgba(0,0,0,.95);
}
.iphone-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #8d8983, #5d5a56); }
.ib-action { left: -6px; top: 17%; height: 5%; }
.ib-up { left: -6px; top: 25%; height: 8.5%; }
.ib-down { left: -6px; top: 35.5%; height: 8.5%; }
.ib-power { right: -6px; top: 28%; height: 13%; }
.iphone-screen { position: absolute; inset: 3.2cqw; overflow: hidden; border-radius: 12.4cqw; background: #fff; }
.ios-status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 12.9cqw;
  display: flex; align-items: center; justify-content: space-between; padding: .8cqw 7.6cqw 0 10.4cqw;
  background: #fff; color: #000; font: 600 4.3cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; letter-spacing: -.01em;
}
.ios-island { position: absolute; left: 50%; top: 2.7cqw; width: 29cqw; height: 8.4cqw; border-radius: 999px; background: #000; transform: translateX(-50%); }
.ios-icons { display: flex; align-items: center; gap: 1.5cqw; }
.ios-icons svg { height: 3.1cqw; width: auto; fill: currentColor; }
.ios-icons .ios-batt { height: 3.3cqw; }
.ios-content { position: absolute; top: 12.9cqw; left: 0; width: 100.6%; max-width: none; }
.ios-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 21.5cqw; overflow: hidden; background: #fff; }
.ios-tabbar img { position: absolute; left: 0; bottom: 7.4cqw; width: 100.6%; max-width: none; }
.ios-home { position: absolute; z-index: 3; left: 50%; bottom: 2.2cqw; width: 35cqw; height: 1.4cqw; border-radius: 99px; background: #111; transform: translateX(-50%); }
.halo-dial { left: 2%; top: 55%; }

/* Arriba composition */
.media-arriba {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 64px);
  padding: clamp(24px, 4vw, 56px) 0;
  isolation: isolate;
}
.andes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.andes i {
  position: absolute; display: block;
  clip-path: polygon(40% 0, 60% 0, 60% 12%, 72% 12%, 72% 24%, 84% 24%, 84% 36%, 100% 36%, 100% 64%, 84% 64%, 84% 76%, 72% 76%, 72% 88%, 60% 88%, 60% 100%, 40% 100%, 40% 88%, 28% 88%, 28% 76%, 16% 76%, 16% 64%, 0 64%, 0 36%, 16% 36%, 16% 24%, 28% 24%, 28% 12%, 40% 12%);
  opacity: .9;
}
.andes i:nth-child(1) { width: 300px; height: 300px; left: 50%; top: 4%; transform: translateX(-118%); background: #5a1714; }
.andes i:nth-child(2) { width: 180px; height: 180px; left: 50%; top: 2%; transform: translateX(90%); background: #6b3c16; opacity: .7; }
.andes i:nth-child(3) { width: 260px; height: 340px; left: 50%; bottom: 0; transform: translateX(40%); background: #1f3557; clip-path: polygon(14% 0, 86% 6%, 100% 100%, 0 96%); border-radius: 20px; opacity: .6; }
.andes i:nth-child(4) { width: 120px; height: 120px; left: 50%; bottom: 10%; transform: translateX(-210%); background: #7d2a20; opacity: .5; }
.callouts { display: grid; gap: 14px; }
.callouts li {
  display: flex; flex-direction: column; justify-content: center; min-height: 106px;
  padding: 18px 20px; border-radius: 20px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-size: 14.5px; line-height: 1.45; color: var(--text-2);
}
.callouts b { display: block; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -.016em; margin-bottom: 2px; }
.callouts-left { justify-items: end; }
.callouts-left li, .callouts-right li { max-width: 300px; width: 100%; }

.device-live { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.device-frame {
  --w: clamp(270px, 25vw, 340px);
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * .03);
  border-radius: calc(var(--w) * .16);
  background: #0b0b0c;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 60px 120px -30px rgba(0,0,0,.95);
  transition: box-shadow .4s var(--ease);
}
.device-screen { position: relative; width: 100%; aspect-ratio: 390 / 844; overflow: hidden; border-radius: calc(var(--w) * .13); background: #fdf6f3; }
/* Android (Pixel-like): even bezel, softer corners, power and volume on the right */
.device-frame.android {
  border-radius: calc(var(--w) * .115);
  background: linear-gradient(160deg, #222225, #0c0c0d 45%, #18181a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 0 1.5px #2b2b2e, 0 0 0 2.5px #0c0c0d, 0 60px 120px -30px rgba(0,0,0,.95);
}
.android .device-screen { border-radius: calc(var(--w) * .085); }
.android-btn { position: absolute; right: -5px; width: 3px; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, #19191b, #3c3c40); }
.ab-power { top: 21%; height: 7%; }
.ab-volume { top: 31%; height: 14%; }
.device-screen iframe {
  position: absolute; left: 0; top: 0;
  width: 390px; height: 844px; border: 0;
  transform-origin: 0 0; transform: scale(var(--s, .8));
  pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
}
.device-live.is-loaded iframe { opacity: 1; }
.device-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: opacity .6s var(--ease);
}
.device-live.is-loaded .device-poster { opacity: 0; pointer-events: none; }
.device-activate {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border-radius: inherit;
  transition: background-color .3s var(--ease);
}
.da-chip {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(20, 8, 6, .84); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.16);
  opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .3s var(--ease), transform .45s var(--spring);
}
.da-chip .ic { width: 18px; height: 18px; }
.device-activate:hover, .device-activate:focus-visible { background: rgba(0,0,0,.16); }
.device-activate:hover .da-chip, .device-activate:focus-visible .da-chip { opacity: 1; transform: none; }
.device-live.is-active iframe { pointer-events: auto; }
.device-live.is-active .device-activate { display: none; }
.device-live.is-active .device-frame.android { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 0 1.5px #2b2b2e, 0 0 0 4px var(--accent), 0 60px 120px -30px rgba(0,0,0,.95); }
.device-live.is-static iframe, .device-live.is-static .device-activate, .device-live.is-static .device-note { display: none; }
.device-release { font-size: 13px; }
.device-release .ic { width: 16px; height: 16px; }
.device-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.device-live.is-active .device-note { display: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 0 rgba(255,69,58,.6); animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,69,58,.55); } 100% { box-shadow: 0 0 0 10px rgba(255,69,58,0); } }

.pull {
  max-width: 920px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center;
}
.pull p { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.18; letter-spacing: -.032em; font-weight: 600; color: #f0e6e2; }
.pull footer { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* AI iOS composition */
.media-aiios {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 64px);
  isolation: isolate;
}
.media-aiios::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 70%; height: 90%; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(40% 50% at 40% 60%, rgba(255, 120, 40, .3), transparent 70%), radial-gradient(45% 55% at 60% 35%, rgba(70, 110, 255, .4), transparent 70%);
  filter: blur(30px);
}
/* the phone from the case study's own hero, live: the page loads at 1440x900 and only its phone shows */
.crop-live .device-screen {
  width: clamp(250px, 24vw, 330px); aspect-ratio: 334 / 702;
  border-radius: 15% / 7.2%; background: #05060a;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.6));
  transition: box-shadow .4s var(--ease);
}
.crop-live .device-screen iframe { width: 1440px; height: 900px; transform: var(--crop, scale(.25)); }
.crop-live .device-poster { object-position: center; }
.crop-live.is-active .device-screen { box-shadow: 0 0 0 3px var(--accent); }
.decisions { display: grid; gap: 14px; counter-reset: none; }
.decisions li {
  display: flex; gap: 14px; align-items: flex-start; min-height: 122px;
  padding: 18px 20px; border-radius: 20px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-size: 14.5px; line-height: 1.45; color: var(--text-2);
  max-width: 330px; width: 100%;
}
.decisions-left { justify-items: end; }
.decisions b { display: block; color: var(--text); font-size: 15.5px; font-weight: 600; letter-spacing: -.016em; margin-bottom: 3px; }
.dn {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3f7dff, #8a5cff);
}
.decisions li.decisions-more { align-items: center; background: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); -webkit-backdrop-filter: none; backdrop-filter: none; }
.decisions-more .link { font-size: 14.5px; }

/* Scowtt composition */
.media-scowtt { aspect-ratio: 16 / 10.6; }
.scowtt-back { position: absolute; left: 0; top: 0; width: 70%; opacity: .55; }
.scowtt-front { position: absolute; right: 0; bottom: 0; width: 76%; z-index: 2; }
.scowtt-back img, .scowtt-front img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.palette { left: 2%; bottom: 6%; z-index: 4; }
.swatches { display: flex; gap: 6px; }
.swatches button {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--s);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .35s var(--spring), box-shadow .3s var(--ease);
}
.swatches button:hover { transform: scale(1.18); }
.swatches button.is-on { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 0 2px #121214, 0 0 0 4px #fff; }

/* GCR + meta */
.gcr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.gcr-card {
  padding: 26px 26px 28px; border-radius: 24px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.gcr-card dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.gcr-card .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d); box-shadow: 0 0 10px var(--d); }
.gcr-card dd { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -.024em; font-weight: 600; color: var(--text); }
.meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 28px 4px 4px; margin-top: 26px;
  border-top: 1px solid var(--line);
}
.meta dt { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-bottom: 6px; }
.meta dd { font-size: 15px; line-height: 1.4; color: #d2d2d7; letter-spacing: -.012em; }

/* ==========================================================================
   Light sections
   ========================================================================== */
.light { background: var(--l-bg); color: var(--l-text); }
.light .section-lead, .light .muted { color: var(--l-text-2); }
.light .link { color: var(--link-light); }
.light :focus-visible { outline-color: var(--link-light); }

/* Process */
.process { padding: clamp(110px, 14vw, 180px) 0; position: relative; z-index: 1; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 30px;
  background: var(--l-card);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 40px -20px rgba(0,0,0,.12);
  min-height: 380px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -24px rgba(0,0,0,.2); }
.tile h3 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.08; letter-spacing: -.034em; font-weight: 700; margin-bottom: 12px; }
.tile p { font-size: 16px; line-height: 1.5; color: var(--l-text-2); max-width: 520px; }
.tile-research { grid-column: span 4; }
.tile-proto { grid-column: span 2; }
.tile-trust { grid-column: span 3; }
.tile-system { grid-column: span 3; }
.tile-ai { grid-column: span 6; flex-direction: row; align-items: flex-end; min-height: 0; }
.tile-ai .tile-copy { flex: 1 1 52%; }

/* voice notes */
.voice { display: grid; gap: 12px; justify-items: start; }
.voice-note {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: 22px 22px 22px 6px;
  background: #f0f0f3; min-width: min(380px, 100%);
}
.voice-note.vn-2 { justify-self: end; border-radius: 22px 22px 6px 22px; background: #e9f7ee; }
.voice-note.vn-3 { min-width: min(300px, 100%); }
.vn-play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1d1d1f; color: #fff; flex: none; }
.vn-play .ic { width: 14px; height: 14px; margin-left: 2px; }
.vn-2 .vn-play { background: #1f8a4c; }
.vn-wave {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 12h3v4H0zM6 9h3v10H6zM12 5h3v18h-3zM18 10h3v8h-3zM24 3h3v22h-3zM30 8h3v12h-3zM36 11h3v6h-3zM42 6h3v16h-3zM48 2h3v24h-3zM54 9h3v10h-3zM60 5h3v18h-3zM66 11h3v6h-3zM72 7h3v14h-3zM78 4h3v20h-3zM84 10h3v8h-3zM90 6h3v16h-3zM96 12h3v4h-3zM102 8h3v12h-3zM108 10h3v8h-3zM114 12h3v4h-3z'/%3E%3C/svg%3E");
  flex: 1; height: 28px;
  -webkit-mask: var(--wave) 0 0 / 100% 100% no-repeat;
  mask: var(--wave) 0 0 / 100% 100% no-repeat;
  background: linear-gradient(90deg, #1d1d1f var(--play, 0%), #c7c7cc var(--play, 0%));
}
.vn-2 .vn-wave { background: linear-gradient(90deg, #1f8a4c var(--play, 0%), #a9d9bb var(--play, 0%)); }
.tile-research.is-in .voice-note .vn-wave { animation: play 6s linear infinite; }
.tile-research.is-in .vn-2 .vn-wave { animation-delay: 2s; }
.tile-research.is-in .vn-3 .vn-wave { animation-delay: 4s; }
@property --play { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes play { 0% { --play: 0%; } 70% { --play: 100%; } 100% { --play: 100%; } }
.vn-time { font-size: 13px; color: var(--l-text-2); font-variant-numeric: tabular-nums; }

/* undo demo */
.undo-demo { position: relative; padding-bottom: 6px; }
.ud-card {
  padding: 18px; border-radius: 20px; background: #f5f5f7;
  transition: opacity .4s var(--ease), transform .5s var(--ease), filter .4s;
}
.ud-title { font-size: 16px; font-weight: 600; letter-spacing: -.016em; }
.ud-sub { font-size: 13.5px; color: var(--l-text-2); margin-top: 2px; }
.ud-actions { display: flex; gap: 8px; margin-top: 14px; }
.ud-actions button { flex: 1; height: 40px; border-radius: 12px; font-size: 14.5px; font-weight: 600; transition: transform .2s var(--ease), background-color .2s; }
.ud-cancel { background: #e5e5ea; color: #1d1d1f; }
.ud-book { background: #0071e3; color: #fff; }
.ud-book:hover { background: #0077ed; }
.ud-actions button:active { transform: scale(.96); }
.ud-toast {
  position: absolute; left: 0; right: 0; bottom: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 16px;
  background: #1d1d1f; color: #fff; font-size: 14.5px; font-weight: 500;
  opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--spring);
}
.ud-undo { height: 34px; padding: 0 14px; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.undo-demo.is-booked .ud-card { opacity: .35; transform: scale(.97); filter: saturate(.4); }
.undo-demo.is-booked .ud-toast { opacity: 1; transform: none; pointer-events: auto; }
.undo-demo.is-done .ud-msg::after { content: " ✓"; }

/* trust dial */
.dial { display: grid; gap: 22px; justify-items: start; }
.light .seg { background: #e8e8ed; }
.light .seg button { color: #6e6e73; font-size: 14px; padding: 8px 16px; }
.light .seg button.is-on { background: #fff; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.dial-readout { display: flex; align-items: center; gap: 22px; }
.dial-ring { position: relative; width: 104px; height: 104px; flex: none; }
.dial-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-bg { stroke: #ececf0; }
.ring-fg { stroke: #FF4405; stroke-dasharray: var(--dash, 4) 12; transition: stroke-dasharray .7s var(--ease), stroke .5s; }
.dial-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dial-text { display: grid; gap: 4px; }
.dial-head { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.dial-sub { font-size: 14.5px; color: var(--l-text-2); line-height: 1.45; }

/* rings */
.rings { position: relative; height: 210px; display: grid; place-items: center; }
.rings span {
  position: absolute; display: flex; align-items: flex-start; justify-content: center;
  width: calc(var(--n) * 25%); height: calc(var(--n) * 24% + 4%);
  border-radius: calc(var(--n) * 10px + 8px);
  border: 1.5px solid rgba(0,0,0,.12);
  font-size: 12.5px; font-weight: 600; color: var(--l-text-2);
  padding-top: 8px;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), color .4s;
}
.rings span[style*="--n:1"] { background: #1d1d1f; color: #fff; border-color: #1d1d1f; align-items: center; padding: 0; }
.rings span:hover { border-color: #FF2E6A; color: #1d1d1f; }
.rings span[style*="--n:1"]:hover { color: #fff; background: #000; }

/* tools cloud */
.tools-cloud { flex: 1 1 40%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tools-cloud li {
  padding: 10px 16px; border-radius: 999px;
  background: #f5f5f7; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .4s var(--spring), background-color .3s;
}
.tools-cloud li:hover { transform: translateY(-3px); background: #ececf0; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(64px, 8vw, 110px); }
.numbers > div { padding-top: 22px; border-top: 1px solid var(--l-line); }
.numbers dt {
  font-size: clamp(54px, 6.4vw, 92px); line-height: 1; letter-spacing: -.055em; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.numbers dd { margin-top: 12px; font-size: 16px; line-height: 1.4; color: var(--l-text-2); max-width: 240px; }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: clamp(110px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-lead { margin-top: 26px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 650; }
.about-body { display: grid; gap: 18px; margin-top: 30px; }
.about-body p { font-size: 18px; line-height: 1.6; color: var(--text-2); letter-spacing: -.014em; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; font-size: 16px; font-weight: 600; letter-spacing: -.014em; }
.facts span { font-size: 12.5px; color: var(--text-3); font-weight: 500; }

.mark-card {
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, #121215, #09090b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.mark-stage { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; }
.mark-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.mark-big, .mark-guides { position: absolute; width: 64%; height: auto; color: #f5f5f7; }
.mk-path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-in-out); }
.mk-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .9s var(--spring) 1.4s; }
.mark-card.is-in .mk-path { stroke-dashoffset: 0; }
.mark-card.is-in .mk-dot { transform: scale(1); }
.mark-guides { opacity: 0; transition: opacity .6s var(--ease); }
.mark-guides line, .mark-guides circle { fill: none; stroke: #FF2E6A; stroke-width: .5; vector-effect: non-scaling-stroke; }
.mark-guides line { stroke: rgba(255,255,255,.28); stroke-dasharray: 3 3; }
.mark-guides text { font-size: 5px; fill: rgba(255,255,255,.5); font-family: var(--font); }
.mark-stage.is-construct .mark-guides { opacity: 1; }
.mark-stage.is-construct .mark-big path { stroke: rgba(245,245,247,.8); }
.mark-copy { padding: 28px 32px 32px; border-top: 1px solid var(--line); }
.mark-copy h3 { font-size: 22px; letter-spacing: -.024em; font-weight: 700; margin-bottom: 8px; }
.mark-copy p { font-size: 15.5px; line-height: 1.55; color: var(--text-2); margin-bottom: 18px; }
.mark-copy p b { color: var(--text); }
.mark-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mark-actions .link { font-size: 15px; }

/* ==========================================================================
   Experience
   ========================================================================== */
.experience { padding: clamp(110px, 14vw, 180px) 0; }
.experience .section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.roles { border-top: 1px solid var(--l-line); }
.role { border-bottom: 1px solid var(--l-line); }
.role-head {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 1fr 1.3fr 1fr 40px; align-items: center; gap: 20px;
  padding: 28px 4px;
  transition: padding .4s var(--ease);
}
.role-co { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.034em; font-weight: 700; }
.role-title { font-size: 17px; font-weight: 500; color: var(--l-text); letter-spacing: -.014em; }
.role-when { font-size: 15px; color: var(--l-text-2); }
.role-plus {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #e8e8ed; justify-self: end;
  transition: transform .5s var(--ease), background-color .3s;
}
.role-plus .ic { width: 16px; height: 16px; }
.role-head:hover .role-plus { background: #dcdce1; }
.role-head[aria-expanded="true"] .role-plus { transform: rotate(45deg); background: #1d1d1f; color: #fff; }
.role-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.role-body > div { overflow: hidden; }
.role-head[aria-expanded="true"] + .role-body { grid-template-rows: 1fr; }
.role-body ul { display: grid; gap: 10px; padding: 0 4px 6px; margin-left: calc((100% - 40px - 60px) / 3.3 + 20px); max-width: 720px; }
.role-body li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.55; color: #424245; }
.role-body li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.role-body .link { display: inline-flex; margin: 12px 0 28px calc((100% - 40px - 60px) / 3.3 + 24px); }
.role-body ul:last-child { padding-bottom: 30px; }

.edu-head { margin: clamp(80px, 10vw, 120px) 0 28px; }
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.edu-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 30px; border-radius: 26px; background: var(--l-card);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 40px -20px rgba(0,0,0,.12);
}
.edu-when { font-size: 13px; font-weight: 600; color: var(--l-text-2); margin-bottom: 14px; }
.edu-card h4 { font-size: 22px; letter-spacing: -.026em; font-weight: 700; line-height: 1.15; }
.edu-school { font-size: 15px; color: var(--l-text-2); }
.edu-what { margin-top: 14px; font-size: 16px; line-height: 1.45; font-weight: 500; }
.edu-card .link { margin-top: auto; padding-top: 18px; font-size: 15px; }

.kit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 80px; margin-top: clamp(64px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--l-line); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pills li { padding: 9px 16px; border-radius: 999px; background: var(--l-card); font-size: 14.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--l-line); }
.kit-note { margin: 20px 0 22px; font-size: 16px; line-height: 1.5; color: var(--l-text-2); }
.kit-note b { color: var(--l-text); }

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.contact { position: relative; overflow: hidden; isolation: isolate; padding: clamp(130px, 16vw, 220px) 0 clamp(110px, 14vw, 180px); text-align: center; }
.contact-aurora { position: absolute; inset: auto -20% -40%; height: 90%; z-index: -1; filter: blur(90px); opacity: .5; pointer-events: none; }
.contact-aurora i { position: absolute; bottom: 0; width: 45%; height: 80%; border-radius: 50%; mix-blend-mode: screen; animation: drift 20s var(--ease-in-out) infinite alternate; }
.contact-aurora i:nth-child(1) { left: 5%; background: radial-gradient(closest-side, rgba(255,122,26,.6), transparent); }
.contact-aurora i:nth-child(2) { left: 30%; background: radial-gradient(closest-side, rgba(255,46,106,.5), transparent); animation-delay: -7s; }
.contact-aurora i:nth-child(3) { right: 5%; background: radial-gradient(closest-side, rgba(47,123,255,.55), transparent); animation-delay: -13s; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-title { font-size: clamp(48px, 8vw, 116px); line-height: .98; letter-spacing: -.052em; font-weight: 700; max-width: 1100px; }
.contact .section-lead { margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.email-pill {
  display: inline-flex; align-items: center; height: 56px; padding: 4px; border-radius: 999px;
  background: #f5f5f7; color: #000;
}
.email-link { display: inline-flex; align-items: center; gap: 10px; height: 100%; padding: 0 16px 0 18px; font-size: 17px; font-weight: 600; letter-spacing: -.016em; }
.email-link .ic { width: 20px; height: 20px; }
.email-copy {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #e5e5ea; transition: background-color .25s, transform .3s var(--spring);
}
.email-copy:hover { background: #d8d8de; transform: scale(1.05); }
.email-copy .ic { width: 19px; height: 19px; position: absolute; transition: opacity .25s, transform .4s var(--spring); }
.email-copy .ic-done { opacity: 0; transform: scale(.4); color: #1f8a4c; }
.email-copy.is-copied .ic-copy { opacity: 0; transform: scale(.4); }
.email-copy.is-copied .ic-done { opacity: 1; transform: none; }
.contact .btn-glass { --h: 56px; padding: 0 26px; }
.contact-note { margin-top: 26px; font-size: 15px; color: var(--text-3); }

.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; letter-spacing: -.016em; }
.footer-brand svg { width: 28px; height: auto; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 26px; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-fine { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; color: var(--text-3); padding-top: 20px; border-top: 1px solid var(--line); }
.footer-fine span { display: block; max-width: 900px; }

/* ==========================================================================
   Sheet (live preview) + film
   ========================================================================== */
.sheet { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px 16px; }
.sheet[hidden] { display: none; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: relative; display: flex; flex-direction: column;
  width: min(1360px, 100%); height: min(880px, calc(100vh - 32px)); height: min(880px, calc(100dvh - 32px));
  border-radius: 20px; overflow: hidden;
  background: #121214;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 60px 160px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(40px) scale(.96);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.sheet.is-open .sheet-panel { opacity: 1; transform: none; }
.sheet-bar {
  position: relative; display: flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 12px 0 16px; flex: none;
  background: linear-gradient(180deg, #1f1f22, #18181b);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sheet .lights button { cursor: pointer; }
.sheet .lights i { background: #3a3a3d; }
.sheet-title { font-size: 14px; font-weight: 600; }
.sheet-url {
  position: absolute; left: 50%; transform: translateX(-50%);
  height: 30px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 8px;
  background: rgba(255,255,255,.06); font-size: 12.5px; color: var(--text-2);
  max-width: 36%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sheet-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sheet-open .ic { width: 14px; height: 14px; }
.sheet-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background-color .2s; }
.sheet-x:hover { background: rgba(255,255,255,.16); }
.sheet-x .ic { width: 18px; height: 18px; }
.sheet-body { position: relative; flex: 1; min-height: 0; background: #0b0b0d; }
.sheet-frame { position: absolute; inset: 0; }
.sheet-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; opacity: 0; transition: opacity .5s var(--ease); }
.sheet.is-loaded .sheet-frame iframe { opacity: 1; }
.sheet-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--text-2); font-size: 14px; transition: opacity .4s; }
.sheet.is-loaded .sheet-loading { opacity: 0; pointer-events: none; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.14); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* phone variant */
.sheet.is-phone .sheet-panel { width: min(520px, 100%); }
.sheet.is-phone .sheet-url { display: none; }
.sheet.is-phone .sheet-frame { overflow: hidden; }
.sheet.is-phone .sheet-frame iframe {
  position: absolute; left: 50%; top: 50%;
  width: 390px; height: 844px;
  border-radius: 34px;
  transform: translate(-50%, -50%) scale(var(--ps, 1)); transform-origin: center;
  box-shadow: 0 0 0 11px #0e0e0f, 0 0 0 12.5px #2b2b2e; /* Android-shaped, like the homepage phone */
}

.film .film-panel {
  position: relative; width: min(1280px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 60px 160px rgba(0,0,0,.8);
  opacity: 0; transform: scale(.96); transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.film.is-open .film-panel { opacity: 1; transform: none; }
.film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film-x { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 400;
  transform: translate(-50%, 30px); opacity: 0;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(30,30,32,.9); color: #fff; font-size: 14.5px; font-weight: 500;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 20px 40px rgba(0,0,0,.4);
  transition: opacity .35s var(--ease), transform .5s var(--spring);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Reveal
   ========================================================================== */
/* Content only hides for its fade-in once site.js has its observer running (html.js-reveal).
   If the script fails or never loads, everything simply stays visible. */
.reveal { transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .reveal { opacity: 0; transform: translateY(28px); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.no-js .hero-title .word, .no-js .hero-beats .beat { opacity: 1; transform: none; filter: none; }
/* an image that failed to load disappears instead of showing a broken icon (set by the inline script in <head>) */
img.is-missing { visibility: hidden; }

/* ?capture: final states only, for full-page layout screenshots */
.is-capture .reveal, .is-capture .hero-title .word, .is-capture .hero-beats .beat { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.is-capture .stage { --p: 1 !important; }
.is-capture .project { --enter: 1 !important; }
.is-capture .parallax { transform: none !important; }
.is-capture .nav-pill { transition: none; }
.is-capture[data-capture-from] .nav { display: none; }
.is-capture *, .is-capture *::before, .is-capture *::after { animation-play-state: paused !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .stage-grid { grid-template-columns: 1fr; }
  .stage-list { grid-auto-rows: auto; grid-template-columns: 1fr 1fr; }
  .stage-item { grid-template-columns: 96px minmax(0, 1fr) 20px; padding: 12px 16px 12px 12px; }
  .si-num { display: none; }
  .si-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #0b0b0d; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
  .si-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .si-line { display: none; }
  .project-head { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .media-arriba, .media-aiios { grid-template-columns: 1fr 1fr; }
  .media-arriba .device-live, .media-aiios .aiios-live { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .callouts-left, .decisions-left { justify-items: stretch; text-align: left; }
  .callouts-left li, .callouts-right li, .decisions li { max-width: none; }
  .media-arriba, .media-aiios { align-items: start; }
  .proof-inner { border-radius: 28px; }
  .meta { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .mark-card { max-width: 620px; }
}

@media (max-width: 900px) {
  .nav { top: 10px; }
  .nav-pill { height: 52px; flex-wrap: wrap; align-content: flex-start; width: min(420px, 100%); justify-content: space-between; }
  .nav-links {
    order: 5; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 2px 4px;
  }
  .nav-links a { height: 50px; font-size: 19px; font-weight: 600; padding: 0 14px; color: var(--pill-text-on); letter-spacing: -.02em; }
  .nav-links a.is-active { background: var(--pill-ind); }
  .nav-indicator { display: none; }
  .nav-current { display: block; flex: 1; text-align: left; padding-left: 4px; font-size: 15px; font-weight: 600; color: var(--pill-text-on); letter-spacing: -.016em; }
  .nav-cta { margin-left: 0; height: 40px; padding: 0 16px; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; position: relative; }
  .nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: var(--pill-text-on); transition: transform .45s var(--ease); }
  .nav-toggle span:nth-child(1) { transform: translateY(-3.5px); }
  .nav-toggle span:nth-child(2) { transform: translateY(3.5px); }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }
  .nav.is-open .nav-pill { height: 330px; border-radius: 28px; }
  .nav-progress { left: 26px; right: 26px; }

  .gcr { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-research, .tile-ai { grid-column: span 2; }
  .tile-proto, .tile-trust, .tile-system { grid-column: span 1; }
  .tile-trust { grid-column: span 2; }
  .tile-ai { flex-direction: column; align-items: stretch; }
  .tools-cloud { justify-content: flex-start; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .role-head { grid-template-columns: 1fr 40px; grid-template-areas: "co plus" "title plus" "when plus"; gap: 4px 16px; }
  .role-co { grid-area: co; } .role-title { grid-area: title; } .role-when { grid-area: when; } .role-plus { grid-area: plus; }
  .role-body ul, .role-body .link { margin-left: 0; }
  .edu { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .hero-title { font-size: clamp(46px, 13.6vw, 80px); }
  .hero-beats { font-size: clamp(30px, 9vw, 40px); line-height: 1.12; }
  .hero-beats .beat { display: block; }

  .stage { perspective: 900px; }
  .window-bar { height: 40px; padding: 0 12px; gap: 10px; }
  .stage-list { grid-template-columns: 1fr; }
  .stage-overlay { padding: 12px 12px 12px 16px; }
  .so-live { display: none; }
  .so-kicker { font-size: 12px; }
  .showcase-head { align-items: flex-start; flex-direction: column; }

  .proof-inner { padding: 22px; flex-direction: column; gap: 14px; }
  .proof-sep { width: 40px; height: 1px; }
  .proof-group { flex-direction: column; gap: 8px; }
  .proof-list { justify-content: center; gap: 6px 20px; }

  .project { padding: 0 10px; }
  .project-card { padding: 30px 18px 22px; border-radius: 28px; }
  .project-cta .btn { flex: 1 1 auto; }
  .project-cta .btn-text { flex: 0 0 auto; }

  .media-halo { aspect-ratio: auto; display: grid; gap: 14px; }
  .halo-window { position: relative; width: 100%; }
  .halo-phone { display: none; }
  .halo-dial { position: relative; left: auto; top: auto; }
  .halo-window .window-url { display: none; }

  .media-arriba, .media-aiios { grid-template-columns: 1fr; gap: 14px; }
  .media-arriba .device-live, .media-aiios .aiios-live { grid-row: auto; }
  .callouts-left { order: 2; } .callouts-right { order: 3; }
  .callouts li, .decisions li { min-height: 0; }
  .andes i:nth-child(1) { width: 200px; height: 200px; }
  .andes i:nth-child(3) { width: 160px; height: 240px; top: 260px; bottom: auto; }
  .decisions-left { order: 2; } .decisions-right { order: 3; }

  .media-scowtt { aspect-ratio: auto; display: grid; gap: 14px; }
  .scowtt-back { display: none; }
  .scowtt-front, .palette { position: relative; width: 100%; left: auto; right: auto; bottom: auto; }
  .scowtt-front .window-url { display: none; }
  .swatches { flex-wrap: wrap; }

  .meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-research, .tile-proto, .tile-trust, .tile-system, .tile-ai { grid-column: auto; min-height: 0; }
  .voice-note { min-width: 0; width: 100%; }
  .voice-note.vn-2 { width: 88%; }
  .dial-readout { gap: 16px; }
  .dial-ring { width: 86px; height: 86px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .contact-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 400px; }
  .email-pill { justify-content: space-between; }
  .email-link { font-size: 15px; padding: 0 8px 0 14px; min-width: 0; }
  .email-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sheet { padding: 0; }
  .sheet-panel { height: 100%; height: 100dvh; border-radius: 0; }
  .sheet-url, .sheet-open span { display: none; }
  .sheet.is-phone .sheet-panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .stage-tilt, .project-card, .parallax { transform: none !important; }
  .js-reveal .reveal, .hero-title .word, .hero-beats .beat { opacity: 1; transform: none; filter: none; }
}
