/* Change Real Estate. changerealestate.com
   Corner system: pill for buttons and chips, 28px for panels and cards, 14px for inputs. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-wght.woff2") format("woff2-variations"), url("/assets/fonts/geist-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #1269ac;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --r-panel: 28px;
  --r-input: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --nav-h: 84px;

  --fs-hero: clamp(3rem, 8vw, 6rem);
  --fs-h2: clamp(2.25rem, 5.2vw, 4.25rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.5vw, 1.3125rem);

  /* dark (default) */
  --bg: #0b0b0d;
  --bg-2: #141417;
  --bg-3: #1c1c20;
  --fg: #f5f5f7;
  --fg-2: #a6a6ad;
  --fg-3: #74747b;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --accent: #5aa9ee;
  --btn: #1a72b8;
  --btn-hover: #2481c9;
  --btn-fg: #ffffff;
  --glass: rgba(16, 16, 19, 0.72);
  --field: #1a1a1e;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --logo-rule: #2a85cf;
  --plaque-1: #26272c;
  --plaque-2: #141518;
  --tile-accent: linear-gradient(160deg, #13385a 0%, #0e2238 100%);
  --sel: rgba(90, 169, 238, 0.32);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #fafafc;
  --bg-2: #ffffff;
  --bg-3: #f0f0f3;
  --fg: #1d1d1f;
  --fg-2: #5c5c63;
  --fg-3: #85858c;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.16);
  --accent: #0f5f9c;
  --btn: #1269ac;
  --btn-hover: #0f5e98;
  --glass: rgba(250, 250, 252, 0.76);
  --field: #ffffff;
  --shadow: 0 30px 60px -24px rgba(20, 30, 50, 0.22);
  --logo-rule: #1269ac;
  --plaque-1: #ffffff;
  --plaque-2: #eceef2;
  --tile-accent: linear-gradient(160deg, #dcebf8 0%, #c6dcf0 100%);
  --sel: rgba(18, 105, 172, 0.2);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0;
  transition: background-color 400ms ease, color 400ms ease;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 0.2em; }
a:hover { text-decoration: underline; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--sel); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-2) var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--btn); color: #fff; border-radius: 999px; transition: top 200ms var(--ease-out); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.muted { color: var(--fg-3); }
.h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.035em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.025em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-2); max-width: 40ch; letter-spacing: -0.015em; }
.lead.center { margin-inline: auto; }

.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  height: var(--h); padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer; text-decoration: none !important;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--btn); color: var(--btn-fg); }
.btn--ghost { color: var(--fg); border-color: var(--line-2); background: transparent; }
.btn--sm { --h: 34px; padding: 0 1em; font-size: 0.875rem; }
.btn--lg { --h: 54px; padding: 0 1.8em; font-size: 1.0625rem; }
.btn .i { width: 1em; height: 1em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--btn-hover); }
  .btn--ghost:hover { border-color: var(--fg-3); }
  .btn--ghost:hover .i { transform: translateX(3px); }
}

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out), opacity 200ms ease;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn--round { width: 44px; height: 44px; background: var(--bg-3); }
.icon-btn--round[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: var(--bg-3); }
  .icon-btn--round:not([disabled]):hover { background: var(--line-2); }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.nav__brand { color: var(--fg); display: block; }
.logo { width: 204px; height: 68px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { color: var(--fg-2); font-size: 0.875rem; transition: color 200ms ease; }
.nav__links a:hover { color: var(--fg); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu { display: none; }
.theme-toggle .i-sun { display: block; }
.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }
.sheet { border-top: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.sheet a { display: block; padding: 14px 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); border-bottom: 1px solid var(--line); }
.sheet a:hover { text-decoration: none; }
.sheet:not([hidden]) { animation: sheetIn 260ms var(--ease-out); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-grid; }
  .nav__cta { display: none; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: flex-start;
  overflow: hidden; color: #f5f5f7;
  background: #07080a;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 100%; transform-origin: 60% 85%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.7) 0%, rgba(7, 8, 10, 0.15) 46%, rgba(7, 8, 10, 0) 64%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%);
}
.hero__content { padding-top: clamp(56px, 12vh, 96px); padding-bottom: 32vh; }
.hero__title { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.04em; font-weight: 650; }
.hero__title .line { display: block; overflow: clip; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__sub { margin-top: 20px; max-width: 30ch; font-size: var(--fs-lead); line-height: 1.4; color: rgba(245, 245, 247, 0.78); letter-spacing: -0.015em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--ghost { color: #f5f5f7; border-color: rgba(255, 255, 255, 0.32); background: rgba(10, 10, 12, 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero .btn--primary { background: #1a72b8; }

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: heroSettle 2200ms var(--ease-soft) both; }
  .hero__title .line > span { animation: rise 1100ms var(--ease-soft) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: 90ms; }
  .hero__sub { animation: fadeUp 1000ms 260ms var(--ease-soft) both; }
  .hero__ctas { animation: fadeUp 1000ms 380ms var(--ease-soft) both; }
  @supports (animation-timeline: view()) {
    .hero__media { animation: heroDrift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .hero__content { animation: heroOut linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
    .hero { view-timeline-name: --hero; }
  }
}
@keyframes heroSettle { from { transform: scale(1.12); filter: blur(6px) brightness(0.6); } to { transform: scale(1); filter: blur(0) brightness(1); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroDrift { to { transform: scale(1.08) translateY(6%); } }
@keyframes heroOut { to { opacity: 0; transform: translateY(-40px); filter: blur(6px); } }

/* Statement */
.statement { padding-block: clamp(96px, 16vw, 200px); }
.statement__text {
  max-width: 24ch; margin-inline: auto;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.12; letter-spacing: -0.032em; font-weight: 600;
  text-wrap: pretty;
}
.statement__text .w { transition: color 300ms ease; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement__text { view-timeline-name: --stmt; }
    .statement__text .w {
      color: var(--fg-3);
      animation: wordOn linear both;
      animation-timeline: --stmt;
      animation-range: cover calc(18% + var(--p) * 38%) cover calc(22% + var(--p) * 38%);
    }
  }
}
@keyframes wordOn { to { color: var(--fg); } }

/* Reveal (IntersectionObserver driven) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-soft), transform 900ms var(--ease-soft); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 400ms ease; }
}

/* Offices carousel */
.offices { padding-bottom: clamp(80px, 10vw, 140px); }
.offices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.carousel-ctrl { display: flex; gap: 12px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 80vw, 440px);
  gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  padding-bottom: 8px;
}
.track::-webkit-scrollbar { display: none; }
.office { scroll-snap-align: start; }
.office__card {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-panel); overflow: hidden;
  color: #f5f5f7; background: #111; text-decoration: none !important; isolation: isolate;
  transform: translateZ(0);
}
.office__img, .office__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.office__img img { object-fit: cover; transition: transform 900ms var(--ease-soft); }
.office__card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.78) 100%);
}
.office__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; }
.office__since { font-size: 0.875rem; color: rgba(245, 245, 247, 0.8); }
.office__city { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.office__note { margin-top: 10px; color: rgba(245, 245, 247, 0.82); font-size: 0.975rem; line-height: 1.4; max-width: 32ch; }
.office__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 500; font-size: 0.95rem; color: #fff; }
.office__link .i { width: 1em; height: 1em; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .office__card:hover .office__img img { transform: scale(1.05); }
  .office__card:hover .office__link .i { transform: translate(2px, -2px); }
}

/* Proof */
.proof { padding-block: clamp(40px, 6vw, 80px) clamp(100px, 13vw, 180px); }
.proof__grid { display: grid; grid-template-columns: 1fr 1fr 1.7fr 1fr; gap: 40px 32px; margin: 0; border-top: 1px solid var(--line); padding-top: 40px; }
.proof__item { margin: 0; }
.proof__item dt { font-size: 0.9375rem; color: var(--fg-2); }
.proof__item dd { margin: 0; }
.proof__num { font-size: clamp(3rem, 6vw, 5.25rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1; margin-top: 10px !important; font-variant-numeric: tabular-nums; }
.proof__num--words { font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -0.035em; padding-top: 0.12em; }
.proof__label { margin-top: 12px !important; color: var(--fg-2); font-size: 0.975rem; max-width: 26ch; }
.proof__item:nth-child(2) { --d: 1; } .proof__item:nth-child(3) { --d: 2; } .proof__item:nth-child(4) { --d: 3; }
@media (max-width: 980px) { .proof__grid { grid-template-columns: 1fr 1fr; } .proof__item--wide { grid-column: 1 / -1; order: 3; } }

/* Paths */
.paths { padding-bottom: clamp(100px, 12vw, 170px); }
.paths .lead { margin-top: 20px; }
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.path {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 48px);
}
.path:nth-child(2) { --d: 1; }
.path__title { font-size: var(--fs-h3); letter-spacing: -0.03em; margin-top: 36px; }
.path__tag { font-size: var(--fs-lead); color: var(--fg); margin-top: 6px; font-weight: 500; letter-spacing: -0.015em; }
.path__desc { color: var(--fg-2); margin-top: 14px; max-width: 44ch; }
.ticks { margin: 26px 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { color: var(--accent); margin-top: 0.2em; }
.path .btn { margin-top: auto; }

/* Plaque: the name on the door */
.plaque { width: 100%; perspective: 900px; }
.plaque__face {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(150deg, var(--plaque-1), var(--plaque-2));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--fg);
  transform: rotateX(8deg) rotateY(-10deg);
  transition: transform 900ms var(--ease-soft);
}
.plaque--partner .plaque__face { transform: rotateX(8deg) rotateY(10deg); }
.plaque__face::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 45%, transparent 60%);
  transform: translateX(-60%); transition: transform 1400ms var(--ease-soft);
}
.path.is-in .plaque__face { transform: rotateX(0) rotateY(0); }
.path.is-in .plaque__face::before { transform: translateX(60%); }
.plaque__logo { width: 46%; aspect-ratio: 3 / 1; height: auto; }
.plaque__market { font-size: clamp(0.8rem, 1.2vw, 0.95rem); letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.plaque__fine { position: absolute; bottom: 14px; font-size: 0.75rem; color: var(--fg-3); letter-spacing: 0.01em; }
@media (prefers-reduced-motion: reduce) { .plaque__face, .plaque--partner .plaque__face { transform: none; } }

/* Compare */
.compare { margin-top: clamp(72px, 9vw, 120px); }
.compare__scroll { margin-top: 36px; }
.compare__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare__table thead th { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; text-align: left; padding: 0 16px 18px; }
.compare__table th[scope="row"] { text-align: left; font-weight: 500; color: var(--fg-2); font-size: 0.9375rem; width: 22%; }
.compare__table td, .compare__table th[scope="row"] { padding: 18px 16px; vertical-align: top; }
.compare__table tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare__table td { font-size: 1rem; }
@media (max-width: 720px) {
  .compare__table, .compare__table tbody, .compare__table tr { display: block; }
  .compare__table thead { display: none; }
  .compare__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 16px 0; }
  .compare__table tbody tr + tr > * { border-top: 0; }
  .compare__table tbody tr + tr { border-top: 1px solid var(--line); }
  .compare__table th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 0; }
  .compare__table td { padding: 0; }
  .compare__table td::before { display: block; font-size: 0.75rem; color: var(--fg-3); margin-bottom: 2px; }
  .compare__table td:nth-of-type(1)::before { content: "Franchise"; }
  .compare__table td:nth-of-type(2)::before { content: "Partner office"; }
}

/* Layers scrollytelling */
.layers { position: relative; height: 300vh; }
.layers__sticky { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.layers__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.layers__steps { position: relative; margin-top: 28px; min-height: 5.5em; max-width: 34ch; }
.layers__step {
  position: absolute; inset: 0 auto auto 0;
  font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-2);
  opacity: 0; transform: translateY(10px); filter: blur(4px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), filter 500ms var(--ease-out);
}
.layers__step.is-on { opacity: 1; transform: none; filter: none; }
.layers__note { margin-top: 28px; font-size: 0.8125rem; color: var(--fg-3); }
.layers__sentinels { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(3, 1fr); pointer-events: none; }

.stack { position: relative; height: min(70vh, 560px); display: grid; place-items: center; perspective: 1400px; }
.slab {
  --gap: clamp(40px, 6vh, 62px);
  position: absolute; left: 50%; top: 50%;
  width: min(100%, 440px); height: 92px; margin-left: calc(min(100%, 440px) / -2);
  border-radius: 20px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 600; letter-spacing: -0.015em; font-size: 1.0625rem;
  transform: translateY(calc((var(--n) - 2.5) * var(--gap) - 46px)) rotateX(52deg) rotateZ(-28deg);
  transition: transform 900ms var(--ease-soft), opacity 700ms var(--ease-out), filter 700ms var(--ease-out), background-color 400ms ease;
  z-index: calc(10 - var(--n));
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.55);
}
.slab span { transform: translateZ(1px); }
.slab--cost { background: var(--bg-3); color: var(--fg-2); border: 1px solid var(--line-2); }
.slab--yours { background: var(--btn); color: #fff; }
.slab--platform { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-2); }
.slab.is-gone { opacity: 0; filter: blur(6px); transform: translateY(calc((var(--n) - 2.5) * var(--gap) - 46px - 220px)) rotateX(52deg) rotateZ(-28deg); }
.stack.is-final .slab--keep { transform: translateY(calc((var(--n) - 4.5) * 70px - 46px)) rotateX(52deg) rotateZ(-28deg) scale(1.08); }
@media (max-width: 860px) {
  .layers { height: 260vh; }
  .layers__inner { grid-template-columns: 1fr; gap: 8px; align-content: center; }
  .stack { height: 46svh; }
  .slab { width: min(84vw, 360px); margin-left: calc(min(84vw, 360px) / -2); height: 72px; font-size: 0.95rem; --gap: 36px; }
  .layers__steps { min-height: 6.2em; }
  .layers__note { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .slab, .layers__step { transition: opacity 300ms ease; }
  .slab.is-gone { transform: translateY(calc((var(--n) - 2.5) * var(--gap) - 46px)) rotateX(52deg) rotateZ(-28deg); opacity: 0.12; filter: none; }
}

/* Platform bento */
.platform { padding-block: clamp(100px, 12vw, 170px); }
.bento {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); gap: 20px;
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-panel); background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: flex-end;
}
.tile--hero { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--accent { background: var(--tile-accent); border-color: transparent; }
.tile--soft { background: var(--bg-3); }
.tile:nth-child(2) { --d: 1; } .tile:nth-child(3) { --d: 1; } .tile:nth-child(4) { --d: 2; } .tile:nth-child(5) { --d: 1; } .tile:nth-child(6) { --d: 2; }
.tile__bg, .tile__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.tile__bg img { object-fit: cover; transition: transform 1200ms var(--ease-soft); }
.tile--photo { color: #f5f5f7; border-color: transparent; background: #111; }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.82) 100%); }
.tile__body { padding: clamp(24px, 3vw, 36px); }
.tile__body--row { display: flex; gap: 22px; align-items: center; }
.tile h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); letter-spacing: -0.025em; line-height: 1.15; margin-top: 14px; }
.tile--hero h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.tile p { margin-top: 8px; color: var(--fg-2); max-width: 40ch; }
.tile--photo p { color: rgba(245, 245, 247, 0.82); }
.tile__body--row h3 { margin-top: 0; }
.tile__icon { width: 30px; height: 30px; color: var(--accent); }
.tile--photo .tile__icon { color: #fff; }
.tile__icon--lg { width: 52px; height: 52px; }
@media (hover: hover) and (pointer: fine) { .tile--photo:hover .tile__bg img { transform: scale(1.04); } }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--hero { grid-column: span 2; grid-row: span 1; min-height: 420px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, auto); }
  .tile--hero, .tile--wide { grid-column: auto; }
  .tile--hero { min-height: 380px; }
  .tile__body--row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tile__icon--lg { width: 30px; height: 30px; }
  .tile__body--row h3 { margin-top: 14px; }
}

/* Founder */
.founder { padding-bottom: clamp(100px, 12vw, 170px); }
.founder__grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder__photo { margin: 0; border-radius: var(--r-panel); overflow: hidden; background: #fff; aspect-ratio: 1; max-width: 460px; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__copy .lead { margin-top: 24px; max-width: 46ch; }
.founder__sig { margin-top: 28px; display: grid; gap: 2px; }
.founder__sig span { color: var(--fg-2); font-size: 0.9375rem; }
@media (max-width: 860px) { .founder__grid { grid-template-columns: 1fr; } .founder__photo { max-width: 320px; } }

/* FAQ */
.faq { padding-bottom: clamp(100px, 12vw, 170px); }
.faq__list { max-width: 860px; margin: clamp(40px, 5vw, 64px) auto 0; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 4px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { width: 22px; height: 22px; color: var(--fg-2); transition: transform 300ms var(--ease-out); }
.qa[open] summary .i { transform: rotate(45deg); }
.qa__a { padding: 0 4px 26px; color: var(--fg-2); max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa__a { animation: fadeUp 380ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) { .qa summary:hover .i { color: var(--fg); } }

/* Contact */
.contact { padding-block: clamp(100px, 12vw, 170px); background: var(--bg-2); border-top: 1px solid var(--line); }
[data-theme="light"] .contact { background: var(--bg-3); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro .lead { margin-top: 20px; }
.contact__direct { margin-top: 36px; display: grid; gap: 14px; }
.contact__direct li { display: grid; grid-template-columns: 20px 96px auto; justify-content: start; align-items: center; gap: 12px; }
.contact__direct .i { color: var(--fg-2); }
.contact__direct span { color: var(--fg-2); }
.contact__direct a { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow); }
[data-theme="light"] .form-card { background: var(--bg-2); }
.form { display: grid; gap: 18px; }
.label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
.opt { color: var(--fg-2); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-input);
  padding: 13px 14px; transition: border-color 200ms ease, box-shadow 200ms ease; caret-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--sel); }
.field [aria-invalid="true"] { border-color: #ff6b6b; }
[data-theme="light"] .field [aria-invalid="true"] { border-color: #c62828; }
.field__err { min-height: 0; margin-top: 6px; font-size: 0.8125rem; color: #ff8a8a; }
[data-theme="light"] .field__err { color: #b3261e; }
.field__err:empty { display: none; }
.seg { border: 0; padding: 0; margin: 0; }
.seg__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opts label { position: relative; cursor: pointer; }
.seg__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opts span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--fg-2); font-size: 0.9375rem;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.seg__opts input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg__opts label:active span { transform: scale(0.97); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form__status { font-size: 0.9375rem; color: var(--fg-2); }
.form__status.is-error { color: #ff8a8a; }
[data-theme="light"] .form__status.is-error { color: #b3261e; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 600ms linear infinite; }
.is-loading .btn__spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { text-align: center; padding: 48px 8px; }
.form-done:focus { outline: none; }
.form-done__icon { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 16px; }
.form-done h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; }
.form-done p { color: var(--fg-2); margin: 8px 0 24px; }
.form-done:not([hidden]) { animation: fadeUp 500ms var(--ease-out); }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* Footer */
.foot { padding-block: 64px 40px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--fg-2); }
.foot__top { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.foot__brand { color: var(--fg); }
.foot__brand .logo { width: 132px; height: 44px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot__h { font-size: 0.875rem; font-weight: 600; color: var(--fg); margin-bottom: 10px; letter-spacing: -0.01em; }
.foot address { line-height: 1.6; margin-bottom: 8px; }
.foot a { color: var(--fg-2); }
.foot .foot__brand { color: var(--fg); }
.foot a:hover { color: var(--fg); }
.foot__link { display: block; margin-top: 4px; }
.foot__social { display: flex; gap: 6px; margin-left: -8px; }
.foot__social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; transition: background-color 200ms ease, color 200ms ease; }
.foot__social a:hover { background: var(--bg-3); text-decoration: none; }
.foot__social .i { width: 20px; height: 20px; }
.foot__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.8125rem; color: var(--fg-2); }
@media (max-width: 980px) { .foot__top { grid-template-columns: 1fr; } .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__cols { grid-template-columns: 1fr; } }

/* Responsive shell */
@media (max-width: 860px) {
  .paths__grid { grid-template-columns: 1fr; }
  .offices__head { align-items: flex-end; }
  .hero__content { padding-bottom: 38vh; }
}
@media (max-width: 520px) {
  .carousel-ctrl { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .btn__spinner { animation-duration: 900ms !important; animation-iteration-count: infinite !important; }
}
