/* ============ Studio E ============ */
:root {
  --bg: #0A0A0C;
  --bg-2: #111116;
  --fg: #F1EFEA;
  --muted: #9A98A0;
  --dim: #34333A;
  --pink: #FF2D6E;
  --cyan: #3FE0E0;
  --line: rgba(255, 255, 255, .09);
  --display: 'Syne', 'Arial Black', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  pointer-events: none;
}
.topbar a { pointer-events: auto; text-decoration: none; color: #fff; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.topbar nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 15px; }
.topbar nav a { opacity: .85; }
.topbar nav a:hover { opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}
.liquid-wrap { position: absolute; inset: 0; z-index: -2; background: #060508; }
#liquid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* no-WebGL fallback */
.no-gl .liquid-wrap {
  background:
    radial-gradient(38% 30% at 30% 35%, #ff2d6e 0%, rgba(255, 45, 110, .5) 45%, transparent 70%),
    radial-gradient(34% 28% at 72% 62%, #c8187f 0%, rgba(200, 24, 127, .45) 50%, transparent 72%),
    #060508;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1; pointer-events: none;
}
#shatter { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; visibility: hidden; }
.hero-inner { text-align: center; padding: 0 var(--gutter); position: relative; z-index: 1; }

.glass-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 13.5vw, 250px);
  line-height: .95;
  letter-spacing: -.045em;
  white-space: nowrap;
  padding: 0 .04em;
  color: transparent; /* drawn as refracting glass by the WebGL canvas */
}
.hero-sub { margin-top: 18px; font-size: clamp(16px, 1.6vw, 21px); color: rgba(255, 255, 255, .9); font-weight: 500; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint span { width: 1px; height: 38px; background: linear-gradient(transparent, #fff); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- CRAFT ---------- */
.craft { padding: 6vh var(--gutter) 18vh; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { font-size: clamp(38px, 5.4vw, 80px); }
.section-head p { max-width: 34ch; color: var(--muted); }
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
@media (max-width: 1000px) { .craft-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .craft-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, #16161c, #0d0d11);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9), 0 0 0 0 rgba(255, 45, 110, 0);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.tile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(255, 45, 110, .6), rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .03) 65%, rgba(63, 224, 224, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .55; transition: opacity .4s; pointer-events: none;
}
.tile:hover { box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9), 0 0 50px -12px rgba(255, 45, 110, .35); }
.tile:hover::before { opacity: 1; }
.tile-stage {
  position: relative; container-type: inline-size; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: #07070a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.tile-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 8px 6px; }
.tile figcaption span { font-weight: 700; font-size: 15px; }
.tile figcaption small { color: var(--muted); font-size: 13px; }

/* pixel tile */
.pixel-word {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 17cqi; letter-spacing: -.03em;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}

/* airflow tile */
.mach { position: absolute; top: 12px; right: 14px; font-size: 11px; letter-spacing: .16em; color: rgba(20, 20, 24, .55); pointer-events: none; }
.mach b { font-weight: 700; color: #141418; font-variant-numeric: tabular-nums; }

/* hover tile */
.hover-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: default; outline: none; }
.hm-text { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.hm-line { width: 0; height: 2px; max-width: 180px; background: linear-gradient(90deg, var(--pink), var(--cyan)); transition: width .7s var(--ease); }
.hm-note { color: var(--muted); font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .5s .15s, transform .5s .15s var(--ease); }
.hover-stage:hover .hm-line, .hover-stage:focus-visible .hm-line { width: 180px; }
.hover-stage:hover .hm-note, .hover-stage:focus-visible .hm-note { opacity: 1; transform: none; }

/* ---------- SELECTED WORK ---------- */
.work-track { position: relative; height: 340vh; }
.work-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 96px var(--gutter) 6vh;
  background:
    radial-gradient(50% 40% at 50% 62%, rgba(63, 224, 224, .08), transparent 70%),
    var(--bg);
}
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.work-head h2 { font-size: clamp(38px, 5.4vw, 80px); }
.work-head p { color: var(--muted); max-width: 30ch; }
.orbit { position: relative; perspective: 1500px; perspective-origin: 50% 28%; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.orbit-path {
  position: absolute; left: 0; top: 0;
  width: calc(var(--R, 400px) * 2); height: calc(var(--R, 400px) * 2);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%;
  transform: translate(-50%, -50%) translateY(var(--pathY, 190px)) rotateX(90deg);
}
.orbit-item {
  position: absolute; left: 0; top: 0;
  width: clamp(140px, min(21vw, 30vh), 290px); aspect-ratio: 4 / 5;
  will-change: transform, opacity;
}
.thumb {
  position: relative; width: 100%; height: 100%;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
  display: flex; align-items: flex-end; container-type: inline-size;
  padding: 16px;
}
.thumb::before { /* tiny browser bar */
  content: ''; position: absolute; left: 12px; top: 12px; width: 34px; height: 8px;
  background: radial-gradient(circle, currentColor 3px, transparent 3.5px) 0 0 / 12px 8px repeat-x;
  opacity: .5;
}
.thumb-mark { position: relative; font-family: var(--display); font-weight: 800; font-size: 12cqi; line-height: .95; letter-spacing: -.02em; }
.orbit-item.is-front .thumb { box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .25), 0 0 60px -10px rgba(255, 45, 110, .35); }

.th-1 { color: #eaffff; background: repeating-radial-gradient(ellipse at 50% 120%, rgba(255,255,255,.14) 0 2px, transparent 2px 22px), linear-gradient(180deg, #06263b, #0f6f86 60%, #3FE0E0); }
.th-2 { color: #3a1a0e; background: radial-gradient(circle at 60% 38%, #c65b33 0 26%, transparent 27%), radial-gradient(circle at 36% 58%, #e8a57c 0 16%, transparent 17%), #efe2d2; }
.th-3 { color: #ffd0e0; background: radial-gradient(circle at 50% 42%, transparent 0 24%, #FF2D6E 25% 27%, rgba(255,45,110,.25) 28%, transparent 40%), #0b0a18; }
.th-4 { color: #f5f7c8; background: radial-gradient(circle, #d6e84a 0 7px, transparent 8px) 0 0 / 34px 34px, linear-gradient(160deg, #1f3b1a, #0e1f0c); }
.th-5 { color: #0b0b0b; background: radial-gradient(circle at 78% 22%, #FF2D6E 0 9%, transparent 10%), repeating-linear-gradient(180deg, #0b0b0b 0 10px, transparent 10px 26px) 20px 60px / 60% 45% no-repeat, #f1efea; }
.th-6 { color: #111; background: linear-gradient(120deg, #111 0 38%, #3FE0E0 38% 52%, #f3f06a 52% 60%, #111 60%); }
.th-6 .thumb-mark { color: #f3f06a; }
.th-7 { color: #1c3b17; background: linear-gradient(rgba(40,90,30,.15) 1px, transparent 1px) 0 0 / 100% 18px, linear-gradient(90deg, rgba(40,90,30,.15) 1px, transparent 1px) 0 0 / 18px 100%, radial-gradient(ellipse at 40% 40%, #a9c98e 0 20%, transparent 21%), #dfe8cf; }
.th-8 { color: #0A0A0C; background: #FF2D6E; }
.th-8::after { content: 'Aa'; position: absolute; right: -6%; top: 6%; font-family: var(--display); font-weight: 800; font-size: 9em; line-height: 1; color: #0A0A0C; letter-spacing: -.06em; }

.work-label { text-align: center; display: flex; flex-direction: column; gap: 4px; min-height: 64px; }
.work-name { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.02em; }
.work-meta { color: var(--muted); font-size: 15px; }
.work-label.swap .work-name, .work-label.swap .work-meta { animation: labelIn .45s var(--ease); }
@keyframes labelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- CASE STUDIES ---------- */
.cases-track { position: relative; height: 360vh; }
.cases-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.case {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
  padding: 90px var(--gutter) 6vh;
  transform-origin: 50% 45%;
  will-change: transform, opacity, clip-path;
}
.case.c1 { background: radial-gradient(70% 90% at 90% 20%, #5b0b2c, transparent 70%), #16070e; }
.case.c2 { background: radial-gradient(70% 90% at 10% 80%, #0b4a4f, transparent 70%), #061314; }
.case.c3 { background: #e9e6df; color: #121215; }
.case.c3 .pill { border-color: rgba(0,0,0,.3); }
.case.c3 dt, .case.c3 .case-client { color: #5a5860; }
.case.c3 .frame { border-color: rgba(0,0,0,.25); color: #5a5860; background: repeating-linear-gradient(135deg, rgba(0,0,0,.05) 0 1px, transparent 1px 14px); }
.pill { display: inline-block; padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.case h3 { font-size: clamp(44px, 7vw, 116px); margin: 22px 0 12px; letter-spacing: -.035em; }
.case-client { color: rgba(255,255,255,.65); font-size: 18px; margin-bottom: 32px; }
.case dl { display: grid; gap: 14px; max-width: 520px; }
.case dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid currentColor; border-color: rgba(128,128,128,.3); }
.case dt { color: rgba(255,255,255,.6); font-size: 14px; }
.case dd { font-size: 16px; }
.frame {
  aspect-ratio: 4 / 3; border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.3);
  display: grid; place-items: center; color: rgba(255,255,255,.55);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 14px);
}

/* ---------- CAPABILITIES ---------- */
.caps { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6vw; padding: 18vh var(--gutter) 10vh; }
.caps-title { font-size: clamp(38px, 5.4vw, 80px); position: sticky; top: 0; padding: 90px 0 44px; background: linear-gradient(var(--bg) calc(100% - 40px), transparent); z-index: 1; }
.cap-item { min-height: 26vh; display: flex; flex-direction: column; justify-content: center; gap: 8px; border-top: 1px solid var(--line); }
.cap-item:last-child { border-bottom: 1px solid var(--line); }
.cap-item h3 { font-size: clamp(30px, 3.8vw, 58px); color: var(--dim); transform: translateY(10px); transition: color .5s, transform .6s var(--ease); }
.cap-item p { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease); }
.cap-item.seen h3 { color: #6a6972; transform: none; }
.cap-item.active h3 { color: var(--fg); transform: none; }
.cap-item.active p { opacity: 1; transform: none; }
.cap-item { position: relative; }
.cap-item::before { content: ''; position: absolute; left: calc(-1 * min(26px, var(--gutter) - 2px)); top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--pink); transform: scale(0); transition: transform .4s var(--ease); }
.cap-item.active::before { transform: scale(1); }

.caps-demo { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.material-stage { position: relative; width: min(100%, 480px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #16161b, #0b0b0e 70%); overflow: hidden; }
.material-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.material-stage canvas:active { cursor: grabbing; }
.material-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: #141419; box-shadow: inset 0 0 0 1px var(--line); }
.material-switch button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--muted); }
.material-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.material-note { color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- POOL ---------- */
.pool-section { padding: 14vh var(--gutter) 16vh; }
.pool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.pool-head h2 { font-size: clamp(38px, 5.4vw, 80px); }
.pool-head p { color: var(--muted); max-width: 36ch; }
.pool-frame {
  position: relative; border-radius: 28px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(63, 224, 224, .18), 0 50px 120px -50px rgba(63, 224, 224, .45);
}
.pool-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 40px rgba(0, 40, 70, .35); pointer-events: none; }
#pool { display: block; width: 100%; height: min(72vh, 56vw); min-height: 320px; cursor: crosshair; touch-action: pan-y; }
.pool-caption { margin-top: 20px; text-align: center; color: var(--cyan); font-weight: 500; }

/* ---------- LIQUID GLASS ---------- */
.glass-section { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 16vh var(--gutter); overflow: hidden; isolation: isolate; }
.glass-bg { position: absolute; inset: 0; z-index: -1; background: #120614; }
.gb { position: absolute; border-radius: 50%; }
.gb1 { width: 60vw; height: 60vw; left: -10vw; top: -10vw; background: radial-gradient(closest-side, #FF2D6E, transparent); animation: float1 16s ease-in-out infinite alternate; }
.gb2 { width: 50vw; height: 50vw; right: -12vw; bottom: -14vw; background: radial-gradient(closest-side, #3FE0E0, transparent); opacity: .75; animation: float2 19s ease-in-out infinite alternate; }
.gb3 { width: 40vw; height: 40vw; left: 40vw; top: 20vh; background: radial-gradient(closest-side, #7b2cff, transparent); opacity: .8; animation: float3 13s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(18vw, 12vh); } }
@keyframes float2 { to { transform: translate(-16vw, -10vh); } }
@keyframes float3 { to { transform: translate(-20vw, 14vh); } }
.glass-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--display); font-weight: 800; font-size: 22vw; letter-spacing: -.05em; line-height: 1;
  color: rgba(255, 255, 255, .9);
}
.glass-panel {
  max-width: 760px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)), rgba(12, 6, 16, .3);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 40px 90px -30px rgba(0, 0, 0, .6);
}
.glass-panel h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 22px; }
.glass-panel p { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .88); }
.glass-panel p + p { margin-top: 14px; }
.glass-panel p:first-of-type { font-size: clamp(20px, 2vw, 26px); color: #fff; font-weight: 500; }

/* ---------- TESTIMONIALS ---------- */
.words { padding: 18vh var(--gutter) 16vh; }
.words-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 64px; }
.words-head h2 { font-size: clamp(38px, 5.4vw, 80px); }
.words-head p { color: var(--muted); max-width: 42ch; justify-self: end; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.quote:nth-child(2) { margin-top: 70px; }
.quote:nth-child(3) { margin-top: 140px; }
.quote {
  --gx: 50%; --gy: 50%;
  position: relative; border-radius: 6px;
  background: radial-gradient(400px circle at var(--gx) var(--gy), rgba(255, 45, 110, .14), transparent 60%), #111115;
  border-left: 3px solid var(--pink);
  will-change: transform;
}
.quote:nth-child(2) { border-left-color: var(--cyan); }
.quote-inner { padding: 36px 30px 30px; will-change: transform; }
.quote blockquote { font-size: 19px; line-height: 1.5; }
.quote blockquote::before { content: '“'; display: block; font-family: var(--display); font-size: 72px; line-height: .6; height: 32px; color: var(--pink); }
.quote:nth-child(2) blockquote::before { color: var(--cyan); }
.quote figcaption { margin-top: 26px; display: flex; flex-direction: column; font-size: 14px; }
.quote figcaption span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 16vh var(--gutter) 14vh; border-top: 1px solid var(--line); }
.cta-title { font-size: clamp(48px, 9vw, 150px); letter-spacing: -.045em; line-height: .92; max-width: 14ch; }
.cta-title span { color: var(--pink); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; margin-top: 10vh; }
.label { color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.email-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.email { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.8vw, 40px); letter-spacing: -.02em; user-select: all; -webkit-user-select: all; word-break: break-all; }
.email { cursor: pointer; }
.bubble-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.copy-btn { border: 1px solid rgba(255, 255, 255, .25); background: transparent; border-radius: 999px; padding: 8px 18px; cursor: pointer; font-size: 14px; transition: background .2s, color .2s; }
.copy-btn:hover { background: var(--fg); color: var(--bg); }
.copy-status { min-height: 1.5em; margin-top: 8px; color: var(--cyan); font-size: 14px; }
.email-help { color: var(--muted); max-width: 40ch; margin-top: 18px; }

.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  background: #111115; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: 16px; color: var(--fg); resize: vertical;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--pink); }
.contact-form .invalid { border-color: #ff6b6b !important; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; gap: 12px !important; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); }
.consent.invalid span { color: #ff8a8a; }
.send-btn { justify-self: start; border: 0; background: var(--pink); color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 999px; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.send-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255, 45, 110, .7); }
.form-status { min-height: 1.5em; font-size: 15px; }

/* ---------- FOOTER ---------- */
.footer { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-name { font-family: var(--display); font-weight: 800; color: var(--fg); font-size: 18px; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }
.footer-year { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 28px; align-content: center; }
  .case-visual { display: none; }
  .caps { grid-template-columns: 1fr; }
  .caps-demo { position: relative; height: auto; order: -1; padding: 0 0 6vh; }
  .caps-title { padding-top: 64px; }
  .words-head { grid-template-columns: 1fr; }
  .words-head p { justify-self: start; }
  .quotes { grid-template-columns: 1fr; }
  .quote:nth-child(n) { margin-top: 0; }
  .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar nav { gap: 14px; font-size: 14px; }
  .case dl div { grid-template-columns: 1fr; gap: 2px; }
  .material-switch button { padding: 9px 13px; font-size: 14px; }
  .footer-year { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gb, .scroll-hint span { animation: none !important; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 140px var(--gutter) 100px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 10px; }
.legal-meta { color: var(--muted); margin-bottom: 48px; font-size: 14px; }
.legal h2 { font-size: 22px; letter-spacing: -.01em; margin: 40px 0 12px; }
.legal p, .legal li { color: rgba(241, 239, 234, .82); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--pink); }
