/* =========================================================
   Uplift Studio — built on the CLAUDE.md design system
   ========================================================= */
:root {
  /* colors */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --body-on-dark: #ffffff;
  --body-muted: #cccccc;
  --ink-muted-80: #333333;
  --ink-muted-48: #7a7a7a;
  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl: #fafafc;
  --surface-tile-1: #272729;
  --surface-tile-2: #2a2a2c;
  --surface-tile-3: #252527;
  --surface-black: #000000;
  --on-primary: #ffffff;

  /* type */
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;

  /* radii */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;

  /* spacing */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 17px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 80px;

  /* the one shadow — product renders only */
  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;

  --gn-h: 44px;
  --sn-h: 52px;
  --gutter: 22px;
}

/* Inter fallback tuning (non-Apple platforms) */
@supports not (font: -apple-system-body) {
  :root { --tight: -0.01em; }
  body { font-feature-settings: "ss03", "cv11"; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--sn-h); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.container-text { max-width: 1024px; }
.muted { color: var(--ink-muted-48); }

/* ---------- typography ---------- */
.hero-display {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 600; line-height: 1.07;
  letter-spacing: calc(-0.28px + var(--tight, 0px));
}
.display-lg {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 600; line-height: 1.1;
  letter-spacing: var(--tight, 0);
}
.lead {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; line-height: 1.14; letter-spacing: 0.196px;
}
.lead-sm { font-size: 21px; line-height: 1.19; letter-spacing: 0.231px; }
.lead-airy {
  font-size: 24px; font-weight: 300; line-height: 1.5; letter-spacing: 0;
}
.tagline {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.231px;
}
.body-intro { margin-top: var(--s-md); color: var(--ink-muted-80); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-text);
  font-size: 17px; font-weight: 400; line-height: 1.24; letter-spacing: -0.374px;
  white-space: nowrap; cursor: pointer;
  transition: transform .12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-compact { padding: 4px 12px; font-size: 12px; line-height: 1.5; letter-spacing: -0.12px; }
.btn-store {
  background: var(--primary); color: var(--on-primary);
  padding: 14px 28px;
  font-size: 18px; font-weight: 300; line-height: 1; letter-spacing: 0;
}

.text-link, .text-link-dark { font-size: 17px; letter-spacing: -0.374px; }
.text-link-dark { color: var(--primary-on-dark); }
.text-link span, .text-link-dark span { display: inline-block; margin-left: 2px; }

/* ---------- global nav ---------- */
.global-nav { background: var(--surface-black); height: var(--gn-h); position: relative; z-index: 60; }
.global-nav-inner {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.gn-logo, .gn-icon { color: var(--body-on-dark); opacity: .88; display: grid; place-items: center; height: 44px; padding: 0 8px; }
.gn-logo:hover, .gn-icon:hover { opacity: 1; }
.gn-links { display: flex; flex: 1; justify-content: space-around; padding: 0 var(--s-lg); }
.gn-links a {
  display: block; padding: 0 8px; line-height: var(--gn-h);
  color: var(--body-on-dark); opacity: .8;
  font-size: 12px; letter-spacing: -0.12px;
  transition: opacity .2s ease;
}
.gn-links a:hover { opacity: 1; text-decoration: none; }
.gn-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.gn-toggle span { position: absolute; left: 14px; width: 16px; height: 1px; background: var(--body-on-dark); transition: transform .25s ease, top .25s ease; }
.gn-toggle span:first-child { top: 18px; }
.gn-toggle span:last-child { top: 25px; }
.gn-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.gn-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- sub nav (frosted) ---------- */
.sub-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--sn-h);
  background: rgba(245, 245, 247, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.sub-nav-inner {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.sn-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.231px;
}
.sn-title:hover { text-decoration: none; }
.sn-right { display: flex; align-items: center; gap: var(--s-lg); }
.sn-links { display: flex; gap: var(--s-lg); }
.sn-links a { color: var(--ink); opacity: .85; font-size: 12px; letter-spacing: -0.12px; }
.sn-links a:hover { color: var(--primary); opacity: 1; text-decoration: none; }

/* ---------- tiles ---------- */
.tile { position: relative; padding: var(--s-section) 0; overflow: hidden; }
.tile-light { background: var(--canvas); color: var(--ink); }
.tile-parchment { background: var(--canvas-parchment); color: var(--ink); }
.tile-dark { background: var(--surface-tile-1); color: var(--body-on-dark); }
.tile-dark-2 { background: var(--surface-tile-2); color: var(--body-on-dark); }
.tile-dark .tagline-muted, .tile-dark .lead { color: var(--body-on-dark); }
.tagline-muted { opacity: .7; }

.tile-head { text-align: center; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.tile-head .tagline + * { margin-top: var(--s-xs); }
.tile-head .lead { margin-top: var(--s-sm); }
.hero .lead { max-width: 820px; text-wrap: balance; }
.cta-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-md); margin-top: var(--s-lg); }
.link-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-xl); margin-top: var(--s-md); }

.section-head { text-align: center; margin-bottom: var(--s-xxl); }
.section-head .tagline + .display-lg { margin-top: var(--s-xs); }

/* ---------- product renders (device mockups) ---------- */
.render { margin: 64px auto 0; padding: 0 var(--gutter); }
.render-hero { max-width: 1060px; }
.render-wide { max-width: 980px; }

.browser {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: var(--product-shadow);
}
.browser-bar {
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: var(--canvas-parchment);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.browser-bar span {
  position: absolute; left: 50%; transform: translateX(-50%);
  min-width: 34%; padding: 3px 14px; text-align: center;
  border-radius: var(--r-xs);
  background: var(--canvas);
  color: var(--ink-muted-48);
  font-size: 11px; letter-spacing: -0.08px; line-height: 1.3;
}
.browser-dark { background: #111113; }
.browser-dark .browser-bar { background: #1c1c1e; border-color: rgba(255, 255, 255, 0.06); }
.browser-dark .browser-bar i { background: #3a3a3c; }
.browser-dark .browser-bar span { background: #2c2c2e; color: #8e8e93; }

.screen { container-type: inline-size; }

/* shared mock nav */
.m-nav {
  display: flex; align-items: center; gap: 3.2cqw;
  padding: 2.2cqw 4cqw;
  font-size: 1.25cqw; letter-spacing: 0; line-height: 1;
}
.m-nav b { font-family: var(--font-display); font-weight: 600; letter-spacing: .3em; margin-right: auto; font-size: 1.35cqw; }
.m-nav .m-bag { margin-left: 2cqw; }

/* Maison Aurel (light) */
.screen-aurel { background: var(--canvas); color: var(--ink); }
.screen-aurel .m-nav { border-bottom: 1px solid var(--divider-soft); color: var(--ink-muted-80); }
.screen-aurel .m-nav b { color: var(--ink); }
.m-hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; }
.m-hero-copy { padding: 6cqw 4cqw; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.m-hero-copy small { font-size: 1.2cqw; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-muted-48); }
.m-hero-copy strong { margin-top: 1.4cqw; font-family: var(--font-display); font-size: 4.6cqw; font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.m-hero-copy p { margin-top: 1.6cqw; font-size: 1.45cqw; letter-spacing: 0; color: var(--ink-muted-80); }
.m-pill { margin-top: 2.4cqw; padding: 1cqw 2.2cqw; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 1.2cqw; letter-spacing: 0; }
.m-hero-art { position: relative; background: #ece7e1; min-height: 30cqw; overflow: hidden; }
.m-hero-art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
}
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 3cqw 4cqw 4cqw; }
.m-grid div { display: flex; flex-direction: column; gap: .6cqw; }
.m-thumb { aspect-ratio: 16 / 10; border-radius: .6cqw; margin-bottom: .8cqw; position: relative; overflow: hidden; }
.m-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-thumb::after { content: ""; position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); border-radius: .6cqw .6cqw .3cqw .3cqw; }
.t1::after { content: none; }
.t2::after { content: none; }
.t3::after { content: none; }
.t1 { background: #e6e1da; }
.t2 { background: #d8dde3; }
.t3 { background: #e3d6c8; }
.m-grid em { font-style: normal; font-size: 1.35cqw; font-weight: 600; letter-spacing: 0; }
.m-grid small { font-size: 1.2cqw; color: var(--ink-muted-48); letter-spacing: 0; }

/* Northline (dark) */
.screen-northline { background: #111113; color: #f5f5f7; padding-bottom: 4cqw; }
.screen-northline .m-nav { color: #8e8e93; }
.screen-northline .m-nav b { color: #fff; }
.screen-northline .m-bag { padding: .8cqw 1.6cqw; border: 1px solid #3a3a3c; border-radius: var(--r-pill); color: #f5f5f7; }
.n-hero {
  display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 3cqw;
  padding: 5cqw 6cqw 4cqw;
}
.n-hero strong { display: block; font-family: var(--font-display); font-size: 4.6cqw; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.n-hero p { margin-top: 2cqw; max-width: 40cqw; font-size: 1.7cqw; color: #8e8e93; letter-spacing: 0; }

/* Northline visual: portfolio orbit + fund card */
.n-visual { position: relative; aspect-ratio: 1; }
.n-orbits { width: 100%; height: 100%; overflow: visible; }
.n-orbits .ring { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.n-orbits .spin { transform-box: view-box; transform-origin: 50% 50%; animation: n-spin 32s linear infinite; }
.n-orbits .spin-2 { animation-duration: 22s; animation-direction: reverse; }
.n-orbits .spin-3 { animation-duration: 14s; }
.n-orbits .pulse { transform-box: fill-box; transform-origin: center; stroke-width: 1; vector-effect: non-scaling-stroke; animation: n-pulse 2.8s ease-out infinite; }

.n-card {
  position: absolute; left: -4cqw; bottom: 2cqw;
  width: 17cqw; padding: 1.4cqw 1.6cqw 1.2cqw;
  background: rgba(28, 28, 30, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.2cqw;
  animation: n-float 7s ease-in-out infinite;
}
.n-card small { display: block; font-size: 1.1cqw; color: #8e8e93; letter-spacing: 0; line-height: 1.2; }
.n-card-row { display: flex; align-items: baseline; gap: .8cqw; margin-top: .5cqw; }
.n-card b { font-family: var(--font-display); font-size: 2.6cqw; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.n-card em { font-style: normal; font-size: 1.1cqw; color: #2997ff; letter-spacing: 0; }
.n-card svg { width: 100%; height: 3.2cqw; margin-top: 1cqw; }

/* line charts draw themselves in when the mockup is revealed */
.js .n-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-visible .n-draw { animation: n-draw 2.4s .5s cubic-bezier(.2, .7, .2, 1) forwards; }

@keyframes n-spin { to { transform: rotate(360deg); } }
@keyframes n-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes n-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1cqw); } }
@keyframes n-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .n-orbits .spin, .n-orbits .pulse, .n-card { animation: none; }
  .n-orbits .pulse { display: none; }
  .js .n-draw { stroke-dashoffset: 0; animation: none; }
}
.n-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 6cqw; border-top: 1px solid #2c2c2e; }
.n-stats div { padding: 2.4cqw 0; display: flex; flex-direction: column; gap: .6cqw; }
.n-stats b { font-family: var(--font-display); font-size: 3cqw; font-weight: 600; letter-spacing: -0.01em; }
.n-stats small { font-size: 1.2cqw; color: #8e8e93; letter-spacing: 0; }
.n-chart { width: calc(100% - 12cqw); height: 10cqw; margin: 1cqw 6cqw 0; }

/* Two-up */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: var(--canvas); }
.duo-tile { padding: 56px 0 0; overflow: hidden; display: flex; flex-direction: column; min-height: 580px; }
.duo-tile .display-lg { font-size: 40px; }
.duo-tile .lead { margin-top: var(--s-xs); }
.duo-tile .render { margin-top: auto; padding-top: 40px; display: flex; justify-content: center; }

.phone {
  width: 220px; height: 330px;
  padding: 10px 10px 0;
  border-radius: 40px 40px 0 0;
  background: var(--ink);
  box-shadow: var(--product-shadow);
}
.phone-screen {
  height: 100%; border-radius: 31px 31px 0 0; background: var(--canvas);
  padding: 30px 16px 0; display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; letter-spacing: 0; line-height: 1.3;
}
.p-top { display: flex; justify-content: space-between; color: var(--ink-muted-80); margin-bottom: 6px; }
.p-top b { letter-spacing: .25em; font-weight: 600; color: var(--ink); }
.p-img { display: block; height: 150px; border-radius: var(--r-sm); background: #e3d6c8; position: relative; overflow: hidden; margin-bottom: 4px; }
.p-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-screen em { font-style: normal; font-weight: 600; font-size: 13px; }
.phone-screen small { color: var(--ink-muted-48); }
.p-swatches { display: flex; gap: 6px; margin: 2px 0 4px; }
.p-swatches i { width: 14px; height: 14px; border-radius: 50%; background: #8a6a4f; }
.p-swatches i:nth-child(2) { background: var(--ink); }
.p-swatches i:nth-child(3) { background: #d8cfc4; }
.p-swatches i.on { outline: 1.5px solid var(--primary-focus); outline-offset: 2px; }
.p-cta { margin-top: 4px; padding: 8px; text-align: center; border-radius: var(--r-pill); background: var(--primary); color: #fff; }

.tablet {
  width: 400px; max-width: 86%; height: 260px; flex-shrink: 0;
  padding: 10px 10px 0;
  border-radius: 22px 22px 0 0;
  background: #0b0b0c;
  border: 1px solid #3a3a3c; border-bottom: 0;
  box-shadow: var(--product-shadow);
}
.tablet-screen {
  height: 100%; border-radius: 13px 13px 0 0; background: var(--canvas-parchment); color: var(--ink);
  padding: 26px 26px 0; display: flex; flex-direction: column;
  container-type: inline-size;
}
.tablet-screen small { font-size: 3cqw; color: var(--ink-muted-48); letter-spacing: 0; }
.tablet-screen strong { margin-top: 3cqw; font-family: var(--font-display); font-size: 10cqw; font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.t-grid { margin-top: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.4cqw; height: 26cqw; }
.t-grid span { background: #d6d3ce; border-radius: 1.6cqw 1.6cqw 0 0; }
.t-grid span:nth-child(2) { background: #b9b4ac; }
.t-grid span:nth-child(3) { background: var(--surface-tile-1); }

/* ---------- services cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.card {
  display: flex; flex-direction: column;
  padding: var(--s-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.card-media {
  aspect-ratio: 5 / 4; border-radius: var(--r-sm);
  background: var(--canvas-parchment);
  display: grid; place-items: center;
  margin-bottom: var(--s-lg);
}
.card-media-photo { position: relative; overflow: hidden; }
.card-media-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.card-media svg { width: 42%; height: 42%; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px; }
.card-body { margin-top: var(--s-xs); color: var(--ink-muted-80); flex: 1; }
.card .text-link { margin-top: var(--s-md); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); }
.step { padding: var(--s-xl) var(--s-lg) 0 0; display: flex; flex-direction: column; }
.step + .step { padding-left: var(--s-lg); border-left: 1px solid var(--hairline); }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.1; color: var(--hairline); letter-spacing: var(--tight, 0); }
.step-title { margin-top: var(--s-md); font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px; }
.step-body { margin-top: var(--s-xs); color: var(--ink-muted-80); flex: 1; }
.step-meta { margin-top: var(--s-md); font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; color: var(--ink-muted-48); }

/* ---------- quote ---------- */
.quote { text-align: center; padding: 120px 0; }
.quote-mark { margin: 0 auto var(--s-xl); color: var(--primary-on-dark); }
.quote-text { max-width: 860px; margin: 0 auto; }
.quote-cite { margin-top: var(--s-xl); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: 14px; letter-spacing: -0.224px; }
.quote-avatar {
  display: block; width: 112px; height: 112px; margin: 0 auto var(--s-md);
  padding: 3px; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%; object-fit: cover;
}
.quote-cite strong { font-weight: 600; font-size: 17px; letter-spacing: -0.374px; }
.quote-cite span { color: var(--body-muted); }
.quote .lead-airy { max-width: 720px; margin: var(--s-xxl) auto 0; color: var(--body-muted); }

/* ---------- configurator ---------- */
.config + .config { margin-top: var(--s-xl); }
.config-label {
  display: block; width: 100%; margin-bottom: var(--s-md);
  font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px;
}
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-sm); }
.chip {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 22px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  text-align: left; cursor: pointer;
  font-size: 14px; line-height: 1.43; letter-spacing: -0.224px;
  transition: transform .12s ease;
}
.chip:active { transform: scale(0.95); }
.chip b { font-weight: 600; font-size: 14px; color: var(--ink); }
.chip small { font-size: 12px; letter-spacing: -0.12px; color: var(--ink-muted-48); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip:has(input:checked) { border: 2px solid var(--primary-focus); padding: 11px 21px; }
.chip:has(input:focus-visible) { outline: 2px solid var(--primary-focus); outline-offset: 2px; }

/* ---------- project form ---------- */
.project-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.224px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-muted-48); }
.input {
  width: 100%; height: 44px; padding: 12px 20px;
  background: var(--canvas);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-pill);
  font: inherit; font-size: 17px; line-height: 1.2; letter-spacing: -0.374px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.input:focus { outline: 2px solid var(--primary-focus); outline-offset: 0; border-color: transparent; }
.field-error { display: none; padding-left: 20px; font-size: 12px; line-height: 1.3; letter-spacing: -0.12px; color: var(--ink); }
.field.is-invalid .input { border-color: var(--ink); }
.field.is-invalid .field-error { display: block; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-md); margin-top: var(--s-xl); }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }
.form-note { font-size: 12px; line-height: 1.3; letter-spacing: -0.12px; color: var(--ink-muted-48); }
.form-error { margin-top: var(--s-md); font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; color: var(--ink); }

.form-success {
  max-width: 560px; margin: 0 auto; padding: var(--s-xxl) var(--s-xl);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success svg { color: var(--primary); margin-bottom: var(--s-lg); }
.form-success h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.231px; }
.form-success p { margin-top: var(--s-xs); color: var(--ink-muted-80); }
.form-success .text-link { margin-top: var(--s-md); }

/* ---------- final CTA ---------- */
.final { padding: 120px 0; }
.final .cta-pair { margin-top: var(--s-xl); }
.final .text-link { margin-top: var(--s-lg); }

/* ---------- sticky bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: 64px;
  background: rgba(245, 245, 247, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.sticky-bar.is-visible { transform: none; }
.sticky-inner {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
}
.sticky-summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-summary strong { font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  background: var(--ink); color: var(--body-on-dark);
  border-radius: var(--r-pill);
  font-size: 14px; line-height: 1.29; letter-spacing: -0.224px;
  text-align: center;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sticky-bar.is-visible ~ .toast { bottom: 88px; }

/* ---------- footer ---------- */
.footer { background: var(--canvas-parchment); color: var(--ink-muted-80); padding: 64px 0 var(--s-xl); }
.footer .container { max-width: 1024px; }
.footer-note {
  padding-bottom: var(--s-md); border-bottom: 1px solid var(--hairline);
  color: var(--ink-muted-48); font-size: 12px; line-height: 1.5; letter-spacing: -0.12px;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--s-lg); padding-top: var(--s-lg); }
.footer-head { font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.224px; color: var(--ink); margin-bottom: var(--s-xxs); }
.footer-cols a { color: var(--ink-muted-80); font-size: 17px; line-height: 2.41; letter-spacing: 0; }

/* Connect: circular icon buttons */
.social { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-sm); }
.footer-cols .social a {
  display: grid; place-items: center;
  width: 44px; height: 44px; line-height: 1;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--ink-muted-80);
  transition: color .2s ease, transform .12s ease;
}
.footer-cols .social a:hover { color: var(--primary); text-decoration: none; }
.footer-cols .social a:active { transform: scale(0.95); }
.social svg { width: 18px; height: 18px; }
.social .i-fill { fill: currentColor; }
.social .i-stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social .i-stroke .dot { fill: currentColor; stroke: none; }
.footer-legal {
  margin-top: var(--s-xl); padding-top: var(--s-md); border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: var(--s-md); flex-wrap: wrap;
  color: var(--ink-muted-48); font-size: 12px; line-height: 1; letter-spacing: -0.12px;
}
.footer-legal ul { display: flex; gap: var(--s-md); }
.footer-legal li + li { padding-left: var(--s-md); border-left: 1px solid var(--hairline); }
.footer-legal a { color: var(--ink-muted-80); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-bar { transition: none; }
}

/* =========================================================
   Responsive — CLAUDE.md breakpoints
   ========================================================= */
@media (max-width: 1068px) {
  .hero-display { font-size: 40px; line-height: 1.1; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid .card:last-child { display: flex; }
}

@media (max-width: 1023px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { margin-top: var(--s-xl); border-top: 1px solid var(--hairline); }
}

@media (max-width: 833px) {
  .gn-toggle { display: block; }
  .gn-links {
    position: absolute; top: var(--gn-h); left: 0; right: 0;
    flex-direction: column; justify-content: flex-start;
    padding: var(--s-md) var(--s-xxl) var(--s-xxl);
    background: var(--surface-black);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .gn-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .gn-links a { font-size: 28px; font-weight: 600; letter-spacing: 0.196px; line-height: 1.14; padding: 10px 0; opacity: .9; font-family: var(--font-display); }
  .global-nav-inner { position: static; }
  .gn-logo { order: 2; }
  .gn-toggle { order: 1; margin-left: -12px; }
  .gn-icon { order: 3; }

  .duo { grid-template-columns: 1fr; }
  .duo-tile { min-height: 520px; }
}

@media (max-width: 734px) {
  .sn-links { display: none; }
  .lead { font-size: 21px; line-height: 1.19; letter-spacing: 0.231px; }
  .display-lg, .duo-tile .display-lg, .step-num { font-size: 32px; }
  .lead-airy { font-size: 19px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
  .render { margin-top: var(--s-xxl); }
  .browser-bar { height: 24px; gap: 5px; padding: 0 10px; }
  .browser-bar i { width: 7px; height: 7px; }
  .browser-bar span { font-size: 9px; padding: 2px 10px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero-display { font-size: 34px; }
  .card-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16 / 9; }
  .card-media svg { width: 26%; height: 26%; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: var(--s-lg) 0; border-left: 0; margin-top: 0; }
  .step + .step { border-top: 1px solid var(--hairline); }
  .sticky-inner { padding: 12px var(--gutter); }
  .sticky-summary .muted { display: none; }
  .sticky-summary { font-size: 14px; letter-spacing: -0.224px; }
}

@media (max-width: 480px) {
  .tile { padding: var(--s-xxl) 0; }
  .quote, .final { padding: 72px 0; }
  .duo { padding: 0; gap: 0; }
  .chip { border-radius: var(--r-lg); }
  .form-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .form-success { padding: var(--s-xl) var(--s-lg); }
  .footer-legal { flex-direction: column; line-height: 1.5; }
}

@media (max-width: 419px) {
  .hero-display { font-size: 28px; }
  .display-lg, .duo-tile .display-lg { font-size: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
