/* Reut Brill — portfolio. Product-page system: big type, quiet chrome, the work on stage. */

:root {
  --black: #000;
  --night: #0b0b0d;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --muted-dark: #86868b;
  --line: #d2d2d7;
  --paper: #fff;
  --mist: #f5f5f7;
  --snow: #fbfbfd;
  --accent: #0a66e4;
  --accent-dark: #2997ff;

  /* project grounds, taken from each product's own identity */
  --infini-ground: #22252e;
  --infini: #f06e59;
  --vonage-ground: #000;
  --vonage: #9d5cff;
  --juno-ground: #2a77a6;
  --juno: #ffd25a;
  --click-ground: #fff;
  --click: #1f6fc4;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 48px;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1240px;
  --text: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01";
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(10, 102, 228, 0.22); }
.dark ::selection, .dark::selection { background: rgba(41, 151, 255, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--accent-dark); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(var(--text) + var(--gutter) * 2); }
.dark { background: var(--black); color: #f5f5f7; }
.center { text-align: center; }

/* ---------- Type ---------- */
.display {
  font-weight: 650;
  font-size: clamp(44px, 8.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.headline {
  font-weight: 650;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.title {
  font-weight: 620;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.lead {
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.38;
  letter-spacing: -0.015em;
  font-weight: 450;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.dark .lead { color: var(--muted-dark); }
.body-lg { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.dark .body-lg { color: #a1a1a6; }
.meta { font-size: 14px; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.dark .meta { color: var(--muted-dark); }

/* chevron link, the page's primary link voice */
.more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); text-decoration: none; font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500; letter-spacing: -0.01em;
}
.more svg { width: 0.62em; height: 0.62em; transition: transform 0.35s var(--ease-out); }
.more:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.more:hover svg { transform: translateX(3px); }
.dark .more { color: var(--accent-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn:hover { background: #0058c9; }
.btn:active { transform: scale(0.97); }
.dark .btn { background: var(--accent-dark); color: #000; }
.dark .btn:hover { background: #57aeff; }
.btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: rgba(10, 102, 228, 0.06); }
.dark .btn--ghost { background: transparent; color: var(--accent-dark); }
.dark .btn--ghost:hover { background: rgba(41, 151, 255, 0.1); }

/* ---------- Global nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.nav--dark { background: rgba(10, 10, 12, 0.72); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07); color: #f5f5f7; }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { font-weight: 620; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.nav__links a { font-size: 13px; text-decoration: none; opacity: 0.82; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__links .nav__cta {
  opacity: 1; background: var(--accent); color: #fff; padding: 5px 13px; border-radius: 980px; font-weight: 500;
}
.nav--dark .nav__links .nav__cta { background: var(--accent-dark); color: #000; }
@media (max-width: 560px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- Devices ---------- */
.mac { position: relative; width: 100%; }
.mac__lid {
  position: relative; background: #0d0d0f; border-radius: clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px) 0 0;
  padding: clamp(6px, 1.25%, 16px) clamp(6px, 1.25%, 16px) clamp(10px, 2%, 26px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 0 0 2px #2a2a2e;
}
.mac__lid::before {
  content: ""; position: absolute; top: clamp(2px, 0.5%, 6px); left: 50%; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: #1f2a36;
}
.mac__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #fff; }
.mac__screen > img, .mac__screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mac__base {
  position: relative; height: clamp(8px, 1.6vw, 20px); margin: 0 -7%;
  background: linear-gradient(#d9dade, #aeb0b5 55%, #8b8d92);
  border-radius: 0 0 clamp(10px, 2vw, 24px) clamp(10px, 2vw, 24px) / 0 0 clamp(8px, 1.4vw, 16px) clamp(8px, 1.4vw, 16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.mac__base::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 42%; transform: translateX(-50%);
  background: linear-gradient(#a8aaae, #c4c6ca); border-radius: 0 0 8px 8px;
}

.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 19.5;
  background: #0d0d0f; border-radius: 16% / 7.4%; padding: 3.2%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 3px #2c2c30, 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
.phone__screen { width: 100%; height: 100%; overflow: hidden; border-radius: 13% / 6%; background: #fff; }
.phone__screen > img, .phone__screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* video play/pause */
.vid { position: relative; }
.vid__toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(29, 29, 31, 0.62); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.vid__toggle:hover { background: rgba(29, 29, 31, 0.82); }
.vid__toggle:active { transform: scale(0.94); }
.vid__toggle svg { width: 14px; height: 14px; }
.vid__toggle .i-play { display: none; }
.vid.is-paused .vid__toggle .i-play { display: block; }
.vid.is-paused .vid__toggle .i-pause { display: none; }

/* ---------- Home: hero ---------- */
.hero { position: relative; background: var(--snow); color: var(--ink); }
.hero__stick { position: relative; padding: clamp(40px, 7vh, 80px) 0 clamp(64px, 10vh, 110px); }
.hero__copy { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); will-change: transform, opacity; }
.hero__face {
  display: block; margin: 0 auto clamp(18px, 2.6vh, 26px);
  width: clamp(84px, 8vw, 116px); height: clamp(84px, 8vw, 116px); border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0, 0, 0, 0.06), 0 18px 40px -16px rgba(0, 0, 0, 0.35);
  background: #e8e8ed;
}
.hero__copy .display { margin: 0 auto; font-size: clamp(44px, 7.4vw, 92px); }
.hero__role {
  margin: 14px 0 0; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: clamp(19px, 1.9vw, 24px); font-weight: 560; letter-spacing: -0.02em; color: var(--ink-2);
}
.hero__status {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: #1d6b34;
  background: #e3f5e8; padding: 5px 12px 5px 10px; border-radius: 980px;
}
.hero__status i { width: 7px; height: 7px; border-radius: 50%; background: #28a745; }
.hero__copy .lead { max-width: 40ch; margin: 18px auto 0; }
.hero__hint { display: none; }

/* lineup: static 2x2 grid by default (no JS, small screens, reduced motion) */
.lineup {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px);
  width: min(1120px, calc(100% - var(--gutter) * 2)); margin: clamp(48px, 8vh, 80px) auto 0;
}
.tile { position: relative; display: block; text-decoration: none; color: #f5f5f7; border-radius: clamp(16px, 1.8vw, 26px); -webkit-tap-highlight-color: transparent; }
.tile__body {
  position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  padding: clamp(10px, 1.1vw, 16px); border-radius: inherit; background: #1d1d1f;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.45);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--press, 1));
  transition: box-shadow 0.35s ease;
}
.tile:hover .tile__body, .tile.is-hot .tile__body { box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.55); }
.tile:active .tile__body { --press: 0.98; }
.tile__shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: clamp(8px, 0.9vw, 12px); background: #fff; }
.tile__shot img, .tile__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.tile__shot img { transition: transform 0.9s var(--ease-out); }
.tile.is-hot .tile__shot img { transform: scale(1.04); }
.tile__vid { opacity: 0; transition: opacity 0.45s ease; }
.tile.is-playing .tile__vid { opacity: 1; }
.tile__glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.22), transparent 55%);
  mix-blend-mode: soft-light;
}
.tile.is-hot .tile__glare { opacity: 1; }
.tile__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px 2px; }
.tile__cap b { font-size: clamp(15px, 1.3vw, 19px); font-weight: 620; letter-spacing: -0.02em; }
.tile__cap span { font-size: 13px; opacity: 0.72; text-align: right; }
.tile__cap .tile__go { display: none; }
.tile--infini .tile__body { background: var(--infini-ground); }
.tile--infini .tile__cap b { color: var(--infini); }
.tile--vonage .tile__body { background: #121014; }
.tile--vonage .tile__cap b { color: #b88bff; }
.tile--juno .tile__body { background: var(--juno-ground); }
.tile--juno .tile__cap span { opacity: 0.92; }
.tile--click { color: var(--ink); }
.tile--click .tile__body { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.07), 0 30px 60px -28px rgba(0, 0, 0, 0.35); }
.tile--click .tile__cap b { color: var(--click); }
.tile--click .tile__shot img { object-position: center; }

/* ambient light that follows the pointer across the intro */
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
  background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 40%), rgba(10, 102, 228, 0.07), transparent 60%);
}
.hero.has-pointer .hero__glow { opacity: 1; }

/* entrance */
@keyframes rise { from { opacity: 0; translate: 0 26px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes pop { from { opacity: 0; scale: 0.82; } to { opacity: 1; scale: 1; } }
@keyframes deal { from { opacity: 0; translate: 0 90px; } to { opacity: 1; translate: 0 0; } }
.js .hero.intro .hero__face { animation: pop 0.9s cubic-bezier(0.2, 0.9, 0.25, 1) backwards; }
.js .hero.intro .hero__copy .display { animation: rise 1s var(--ease-out) 0.12s backwards; }
.js .hero.intro .hero__role { animation: rise 1s var(--ease-out) 0.24s backwards; }
.js .hero.intro .hero__copy .lead { animation: rise 1s var(--ease-out) 0.34s backwards; }
.js .hero.intro .tile__body { animation: deal 1.1s cubic-bezier(0.16, 1, 0.3, 1) backwards; animation-delay: calc(0.5s + var(--i, 0) * 0.09s); }
.js .hero.intro .hero__hint { animation: rise 1s var(--ease-out) 1.1s backwards; }

@media (max-width: 600px) {
  .lineup { gap: 10px; margin-top: 36px; }
  .tile { border-radius: 16px; }
  .tile__body { padding: 7px; gap: 8px; }
  .tile__cap { padding: 0 3px 1px; }
  .tile__cap b { font-size: 14px; }
  .tile__cap span { display: none; }
}

/* lineup, animated (desktop + motion allowed): set by JS */
.hero.is-anim { height: 270vh; }
.hero.is-anim .hero__stick {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  padding: 0; overflow: hidden;
}
.hero.is-anim .hero__copy { padding-top: clamp(28px, 5vh, 60px); }
.hero.is-anim .lineup { position: absolute; inset: 0; display: block; width: auto; margin: 0; pointer-events: none; perspective: 1800px; }
.hero.is-anim .tile {
  position: absolute; left: 50%; top: 50%; width: var(--tw); margin-left: calc(var(--tw) / -2); margin-top: calc(var(--th) / -2);
  will-change: transform; pointer-events: auto; transform-style: preserve-3d;
}
.hero.is-anim .hero__hint {
  display: block; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; z-index: 3; white-space: nowrap;
  font-size: 13px; color: var(--muted); letter-spacing: 0;
}

/* ---------- Home: statement (scroll-lit) ---------- */
.statement { padding: clamp(80px, 16vh, 180px) 0 clamp(100px, 20vh, 220px); }
.lit {
  font-weight: 620; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -0.03em;
  margin: 0 auto; max-width: 22ch; text-wrap: pretty;
}
.lit .w { transition: color 0.25s linear; }
.js .lit .w { color: #3a3a3d; }
.js .lit .w.on { color: #f5f5f7; }
.lit .hl { color: var(--accent-dark) !important; }
.js .lit .hl:not(.on) { color: #1f3d5c !important; }

/* ---------- Home: work chapters ---------- */
.work-intro { padding: clamp(90px, 14vh, 150px) 0 clamp(40px, 6vh, 64px); background: var(--paper); }
.work-intro .headline { max-width: 14ch; }
.work-intro .lead { margin-top: 18px; max-width: 40ch; }

.chapter {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(64px, 11vh, 120px) 0 0; margin: 0 clamp(0px, 1.2vw, 14px) clamp(10px, 1.2vw, 14px);
  border-radius: clamp(0px, 2vw, 28px);
}
.chapter__name { font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; }
.chapter .headline { max-width: 17ch; margin: 0 auto; font-size: clamp(34px, 5vw, 64px); }
.chapter__sub { margin: 16px auto 0; max-width: 46ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.42; opacity: 0.78; text-wrap: pretty; }
.chapter__links { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.chapter__stage { position: relative; margin: clamp(44px, 7vh, 72px) auto 0; width: min(980px, 86%); }
.chapter__stage .parallax { will-change: transform; }

.chapter--infinipoint { background: var(--infini-ground); color: #f5f5f7; }
.chapter--infinipoint .chapter__name, .chapter--infinipoint .more { color: var(--infini); }
.chapter--infinipoint .chapter__stage { padding-bottom: clamp(48px, 8vh, 96px); }

.chapter--vonage { background: var(--vonage-ground); color: #f5f5f7; }
.chapter--vonage .chapter__name, .chapter--vonage .more { color: #b88bff; }
.chapter--vonage .chapter__stage { padding-bottom: clamp(48px, 8vh, 96px); }
.chapter--vonage .chapter__glow {
  position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 85%, rgba(130, 70, 255, 0.35), transparent 70%);
}

.chapter--juno { background: var(--juno-ground); color: #fff; }
.chapter--juno .chapter__name { color: #fff; }
.chapter--juno .more { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.chapter--juno .chapter__sub { opacity: 1; }
.chapter--juno .chapter__stage { display: grid; grid-template-columns: 1fr; padding-bottom: clamp(48px, 8vh, 96px); }
.juno-combo { position: relative; padding-right: 15%; }
.juno-combo .phone { position: absolute; right: 0; bottom: -4%; width: 24%; }

.chapter--click { background: var(--mist); color: var(--ink); }
.chapter--click .chapter__name, .chapter--click .more { color: var(--click); }
.chapter--click .chapter__stage { width: min(1100px, 94%); }

/* ---------- Home: gallery (process) ---------- */
.process { padding: clamp(90px, 14vh, 150px) 0 clamp(70px, 10vh, 110px); background: var(--paper); overflow: hidden; }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.process__head .headline { max-width: 15ch; }
.gallery-nav { display: flex; gap: 12px; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #e8e8ed; color: var(--ink); transition: background-color 0.2s, opacity 0.2s;
}
.gallery-nav button:hover { background: #dcdce1; }
.gallery-nav button:disabled { opacity: 0.35; cursor: default; }
.gallery-nav svg { width: 16px; height: 16px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(760px, 84vw); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 44px max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))) 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
}
.gallery::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; margin: 0; }
.slide__media { aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--mist); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.slide figcaption { margin-top: 18px; font-size: 17px; line-height: 1.45; color: var(--muted); max-width: 52ch; }
.slide figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- Home: about ---------- */
.about { background: var(--mist); padding: clamp(90px, 14vh, 150px) 0; }
.about__top { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__photo { width: clamp(120px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e8e8ed; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transform: scale(1.18); }
.about__top .headline { font-size: clamp(32px, 4.6vw, 60px); max-width: 17ch; }
.about__text { margin: 22px 0 0; max-width: 58ch; }
.xp { margin-top: clamp(56px, 9vh, 96px); border-top: 1px solid var(--line); }
.xp__row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) 5.5em; gap: 8px 40px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.xp__role { font-weight: 620; font-size: 19px; letter-spacing: -0.02em; }
.xp__role span { display: block; font-weight: 450; color: var(--muted); font-size: 15px; letter-spacing: -0.01em; margin-top: 2px; }
.xp__desc { color: var(--ink-2); margin: 0; text-wrap: pretty; }
.xp__dur { text-align: right; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 44px; }
.edu div { font-size: 15px; color: var(--muted); }
.edu strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 2px; }
@media (max-width: 760px) {
  .about__top { grid-template-columns: 1fr; }
  .xp__row { grid-template-columns: 1fr auto; }
  .xp__desc { grid-column: 1 / -1; grid-row: 2; }
  .edu { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(110px, 20vh, 220px) 0; text-align: center; position: relative; overflow: hidden; }
.contact__glow {
  position: absolute; left: 50%; top: 58%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(41, 151, 255, 0.22), transparent); pointer-events: none;
}
.contact .display { max-width: 13ch; margin: 0 auto; position: relative; }
.contact__mail {
  position: relative; display: inline-block; margin-top: 34px; font-size: clamp(22px, 3vw, 36px); font-weight: 560;
  letter-spacing: -0.025em; color: var(--accent-dark); text-decoration: none; overflow-wrap: anywhere;
}
.contact__mail:hover { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 2px; }
.contact__actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Footer ---------- */
.foot { background: var(--mist); color: var(--muted); font-size: 12px; padding: 22px 0 28px; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot nav { display: flex; gap: 22px; }
.foot--dark { background: var(--black); color: var(--muted-dark); }
.foot--dark .foot__in { border-color: #2a2a2d; }
.foot--dark a { color: #d2d2d7; }

/* ---------- Case study ---------- */
.case-hero { padding: clamp(70px, 13vh, 140px) 0 0; text-align: center; overflow: hidden; }
.case-hero__name { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; }
.case-hero .display { max-width: 16ch; margin: 0 auto; font-size: clamp(40px, 7vw, 88px); }
.case-hero .lead { max-width: 48ch; margin: 24px auto 0; }
.case-facts {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin: 36px auto 0; padding: 0; list-style: none;
}
.case-facts li { padding: 0 clamp(16px, 3vw, 36px); text-align: center; border-left: 1px solid rgba(128, 128, 128, 0.3); }
.case-facts li:first-child { border-left: 0; }
.case-facts strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.case-facts span { font-size: 14px; opacity: 0.7; }
.case-hero__stage { margin: clamp(56px, 9vh, 90px) auto 0; width: min(1080px, 88%); padding-bottom: clamp(60px, 10vh, 110px); }

.case-infinipoint .case-hero { background: var(--infini-ground); color: #f5f5f7; }
.case-infinipoint .case-hero__name { color: var(--infini); }
.case-vonage .case-hero { background: #000; color: #f5f5f7; }
.case-vonage .case-hero__name { color: #b88bff; }
.case-juno .case-hero { background: var(--juno-ground); color: #fff; }
.case-juno .case-hero .lead { color: #fff; }
.case-juno .case-facts span { opacity: 0.95; }
.case-click .case-hero { background: var(--mist); color: var(--ink); }
.case-click .case-hero__name { color: var(--click); }
.case-infinipoint .case-hero .lead, .case-vonage .case-hero .lead { color: #a1a1a6; }

.section { padding: clamp(80px, 13vh, 140px) 0; }
.section + .section { padding-top: 0; }
.section--mist { background: var(--mist); }
.section--mist + .section--mist { padding-top: 0; }
.section__head { max-width: 760px; }
.section__label { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--proj, var(--accent)); }
.section__head .body-lg { margin: 20px 0 0; }
.section__tools { margin-top: 14px; font-size: 15px; color: var(--muted); }
.figure { margin: clamp(40px, 6vh, 64px) 0 0; }
.figure--narrow { max-width: 980px; }
.figure__frame { border-radius: clamp(14px, 1.8vw, 24px); overflow: hidden; background: var(--mist); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.section--mist .figure__frame { background: #fff; }
.figure__frame img { width: 100%; height: auto; }
.figure figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 64ch; }
.figure figcaption a { color: var(--accent); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 6vh, 64px); }
.pair .figure { margin: 0; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }
.flow-title { font-size: clamp(21px, 2vw, 26px); font-weight: 620; letter-spacing: -0.02em; margin: clamp(56px, 8vh, 80px) 0 0; }
.flow-title + .figure { margin-top: 22px; }
.device-figure { max-width: 1000px; margin-left: auto; margin-right: auto; }
.phone-figure { width: min(330px, 70vw); margin-left: auto; margin-right: auto; }

.findings { list-style: none; margin: clamp(36px, 5vh, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 32px 28px; counter-reset: f; }
.findings li { font-size: 19px; line-height: 1.35; font-weight: 560; letter-spacing: -0.018em; padding-top: 18px; border-top: 1px solid var(--line); }
.findings li b { display: block; font-size: 15px; font-weight: 600; color: var(--proj, var(--accent)); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 6vh, 64px); }
.before-after .figure { margin: 0; }
.before-after figcaption { font-weight: 600; color: var(--ink); }
@media (max-width: 720px) { .before-after { grid-template-columns: 1fr; } }

.next { display: block; text-decoration: none; text-align: center; padding: clamp(90px, 16vh, 170px) var(--gutter); }
.next .meta { display: block; margin-bottom: 14px; font-size: 17px; }
.next .headline { max-width: 16ch; margin: 0 auto; }
.next .more { margin-top: 22px; }
.next:hover .more { text-decoration: underline; text-underline-offset: 0.18em; }
.next--infinipoint { background: var(--infini-ground); color: #f5f5f7; }
.next--infinipoint .more { color: var(--infini); }
.next--vonage { background: #000; color: #f5f5f7; }
.next--vonage .more { color: #b88bff; }
.next--juno { background: var(--juno-ground); color: #fff; }
.next--juno .meta, .next--juno .more { color: #fff; }
.next--click { background: var(--mist); color: var(--ink); }
.next--click .more { color: var(--click); }
.next--infinipoint .meta, .next--vonage .meta { color: var(--muted-dark); }

/* ---------- Reveal (content is visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .js .hero.intro .hero__face, .js .hero.intro .hero__copy .display, .js .hero.intro .hero__role,
  .js .hero.intro .hero__copy .lead, .js .hero.intro .tile__body, .js .hero.intro .hero__hint { animation: none; }
  .tile__body { transform: none; }
  .tile__shot img { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .js .lit .w { color: #f5f5f7; }
  .js .lit .hl { color: var(--accent-dark) !important; }
  .more svg, .btn { transition: none; }
}
