/* =========================================================
   OAT Digitals — hand-coded rebuild
   Swap the tokens below to match the Framer original exactly.
   ========================================================= */
:root {
  --bg: #060606;
  --surface: #0c0f0d;
  --surface-2: #121713;
  --surface-3: #1a201b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f1;
  --muted: #9aa0a6;
  --faint: #5f656b;
  --accent: #42ffa1;          /* OAT mint — from the logo mark */
  --accent-ink: #03140b;      /* text on accent */
  --accent-soft: rgba(66, 255, 161, 0.12);
  --accent-line: rgba(66, 255, 161, 0.28);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "General Sans", "Geist", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.h-display { font-size: clamp(44px, 7.4vw, 96px); }
.h-1 { font-size: clamp(38px, 5.6vw, 72px); }
.h-2 { font-size: clamp(32px, 4.4vw, 56px); }
.h-3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.025em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.section-head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .lede { margin: 0 auto; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; overflow: hidden; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn .roll { display: grid; height: 1.3em; overflow: hidden; line-height: 1.3em; }
.btn .roll span { transition: transform .45s var(--ease); }
.btn:hover .roll span { transform: translateY(-100%); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn .arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .3s; }
.link-arrow:hover { border-color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  margin: 0 auto; width: min(calc(100% - 2 * var(--gutter)), 1080px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 20px;
  background: rgba(13, 15, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .3s;
}
.logo { display: inline-flex; align-items: center; }
.logo-svg { display: block; height: 22px; width: auto; }
.footer-brand .logo-svg { height: 28px; }
.mark-svg { display: block; width: 26px; height: 26px; flex: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-3); border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 20.5px; } .nav-toggle span:nth-child(3) { top: 25px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: grid; gap: 4px; pointer-events: auto;
    width: min(calc(100% - 2 * var(--gutter)), 1080px); margin: 8px auto 0; padding: 12px;
    background: rgba(13, 15, 17, 0.96); border: 1px solid var(--line); border-radius: 24px;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: all .35s var(--ease);
  }
  .nav.open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
  .mobile-menu a:not(.btn) { padding: 14px 16px; border-radius: 14px; font-size: 18px; font-weight: 500; }
  .mobile-menu a:not(.btn):hover { background: var(--surface-3); }
  .mobile-menu .btn { margin-top: 8px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(150px, 18vw, 210px) 0 clamp(70px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, transparent 0%, var(--bg) 85%), linear-gradient(to bottom, transparent 55%, var(--bg)); }
.hero-glow { position: absolute; width: 640px; height: 640px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(circle, var(--accent-soft), transparent 65%); z-index: -1; filter: blur(20px); }
.hero-content { display: grid; justify-items: center; text-align: center; gap: 26px; }
.hero-content .h-display { max-width: 980px; }
.hero-content .lede { max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-visual { margin-top: clamp(56px, 7vw, 88px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.hero-visual img { width: 100%; aspect-ratio: 2048 / 1422; object-fit: cover; }
/* Home hero artwork: the dark top half of the image sits behind the headline
   (pulled up with a negative margin), so the glowing 3D mark lands just below the buttons. */
.hero-home { padding-bottom: 24px; }
.hero-art {
  --w: max(100vw, 760px);
  position: relative; z-index: -1; pointer-events: none;
  width: var(--w); margin: calc(var(--w) * -0.34) 0 0 50%; transform: translateX(-50%);
}
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 72%, var(--bg) 100%); }
.hero-home .logos { position: relative; margin-top: clamp(-150px, -9vw, -70px); padding-top: 0; }
.hero-home .logos-label { color: rgba(244,245,241,.8); }
.page-hero { padding: clamp(150px, 17vw, 200px) 0 clamp(40px, 6vw, 70px); }
.page-hero .hero-content { gap: 22px; }

/* ---------- Logo marquee ---------- */
.logos { padding: 36px 0 0; }
.logos-label { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: clamp(48px, 7vw, 96px); width: max-content; animation: marquee 30s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 38px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1) brightness(1.7); opacity: .7; transition: opacity .3s, filter .3s; }
.marquee-track img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About teaser ---------- */
.about-teaser { display: grid; gap: 40px; }
.about-teaser figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.about-teaser figure img { width: 100%; aspect-ratio: 2838 / 1748; object-fit: cover; }

/* ---------- Services (tabs) ---------- */
.services { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.service-list { display: grid; gap: 10px; }
.service-tab {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 18px 22px 18px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: background .35s, border-color .35s;
}
.service-tab:hover { border-color: var(--line-strong); }
.service-tab.active { background: var(--surface-2); border-color: var(--line-strong); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-3); display: grid; place-items: center; }
.service-icon img { width: 26px; height: 26px; object-fit: contain; }
.service-tab.active .service-icon { background: var(--accent); }
.service-tab.active .service-icon img { filter: brightness(0); }
.service-tab h5 { font-size: 19px; letter-spacing: -0.02em; }
.service-num { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.service-tab.active .service-num { color: var(--accent); }
.service-tags { display: none; flex-wrap: wrap; gap: 6px; grid-column: 2 / -1; margin-top: 4px; }
.service-tab.active .service-tags { display: flex; }
.tag { font-size: 12.5px; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.service-panels { position: sticky; top: 110px; }
.service-panel { display: none; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.service-panel.active { display: block; animation: fadeUp .6s var(--ease); }
.service-panel img { width: 100%; aspect-ratio: 443 / 350; object-fit: cover; background: var(--surface-2); }
.service-panel-body { padding: 26px 28px 28px; display: grid; gap: 22px; }
.service-panel-body p { font-size: 18px; color: var(--text); max-width: 460px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service-panels { position: static; }
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-card { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; gap: 14px; min-height: 340px; align-content: end; isolation: isolate; }
.process-card .bg { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.process-card .bg img { width: 100%; height: 100%; object-fit: cover; }
.process-card .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 35%, transparent); }
.process-card .icon { width: 64px; height: 64px; margin-bottom: auto; }
.process-card .num { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.process-card h4 { font-size: 24px; letter-spacing: -0.025em; }
.process-card p { color: var(--muted); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } .process-card { min-height: 280px; } }

/* ---------- Case study cards ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-card {
  position: relative; display: grid; gap: 28px; align-content: space-between;
  padding: 30px; min-height: 320px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease), background .4s;
}
.case-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-4px); }
.case-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.case-card h3 { font-size: clamp(26px, 2.6vw, 34px); }
.case-card .go { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .35s, border-color .35s, color .35s; }
.case-card:hover .go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.case-card p { color: var(--muted); max-width: 440px; }
.case-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-stat .value { font-size: clamp(48px, 5.4vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.case-stat .label { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.compare-col { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.compare-col.with { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%); border-color: var(--accent-line); }
.compare-col h4 { font-size: 22px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.compare-col li { display: flex; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); font-size: 16px; }
.compare-col li svg { flex: none; width: 20px; height: 20px; }
.compare-col.with li svg { color: var(--accent); }
.compare-col.without li { color: var(--muted); }
.compare-col.without li svg { color: var(--faint); }
.vs { align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface-3); border: 1px solid var(--line-strong); font-size: 15px; letter-spacing: 0.02em; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .vs { justify-self: center; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-aside { display: grid; gap: 20px; position: sticky; top: 110px; }
.faq-card { margin-top: 18px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; position: relative; overflow: hidden; }
.faq-card img { position: absolute; right: -40px; bottom: -40px; width: 200px; opacity: .25; pointer-events: none; }
.faq-card h5 { font-size: 20px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq-item[open] { background: var(--surface-2); border-color: var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-weight: 500; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-3); }
.faq-item .plus::before, .faq-item .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq-item .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .plus { background: var(--accent); }
.faq-item[open] .plus::before, .faq-item[open] .plus::after { background: var(--accent-ink); }
.faq-item[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item .answer { padding: 0 24px 22px; color: var(--muted); max-width: 600px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 60px); text-align: center; display: grid; justify-items: center; gap: 20px; border: 1px solid var(--line); isolation: isolate; }
.cta .bg { position: absolute; inset: 0; z-index: -1; }
.cta .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,8,.35), rgba(6,7,8,.75)); }
.cta .lede { color: rgba(244,245,241,.78); }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 8vw, 100px) 0 36px; border-top: 1px solid var(--line); margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: 18px; }
.footer h6 { margin: 0 0 16px; font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); transition: color .25s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-word { font-size: clamp(80px, 22vw, 300px); font-weight: 700; letter-spacing: -0.07em; line-height: .8; margin-top: 56px; text-align: center; background: linear-gradient(180deg, var(--surface-3), transparent 90%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- About page ---------- */
.stats-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: stretch; }
.panel { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); display: grid; gap: 18px; align-content: start; justify-items: start; }
.big-stat { display: grid; align-content: end; gap: 10px; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); border-color: var(--accent-line); }
.big-stat .value { font-size: clamp(80px, 12vw, 160px); font-weight: 600; letter-spacing: -0.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.statement { display: grid; gap: 14px; text-align: center; justify-items: center; }
.statement .h-1 span { color: var(--faint); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.member img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; background: var(--surface-2); }
.member-body { padding: 22px 24px 24px; display: grid; gap: 4px; }
.member-body h5 { font-size: 22px; }
.member-links { display: flex; gap: 8px; margin-top: 14px; }
.member-links a { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); transition: background .3s, color .3s, border-color .3s; }
.member-links a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mission { text-align: center; display: grid; gap: 18px; justify-items: center; }
.mission .quote { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.02em; max-width: 760px; margin-top: 18px; }
@media (max-width: 860px) { .stats-band { grid-template-columns: 1fr; } .team { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
@media (min-width: 600px) and (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; max-width: none; } }

/* ---------- Case study page ---------- */
.cs-hero { display: grid; gap: 22px; justify-items: start; }
.cs-index { font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cs-cover { margin-top: clamp(40px, 6vw, 64px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.cs-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.cs-block { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 80px); padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.cs-block .label { display: grid; gap: 14px; align-content: start; }
.cs-block .summary { font-size: 18px; color: var(--muted); max-width: 320px; }
.cs-block .body { display: grid; gap: 22px; }
.cs-block .body p { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.02em; }
.cs-block .body p + p { color: var(--muted); }
.cs-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.result-card { position: relative; border-radius: var(--radius-lg); padding: 28px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; overflow: hidden; isolation: isolate; min-height: 280px; align-content: end; }
.result-card .bg { position: absolute; inset: 0; z-index: -1; opacity: .35; }
.result-card .bg img { width: 100%; height: 100%; object-fit: cover; }
.result-card .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 40%, transparent); }
.result-card .icon { width: 44px; height: 44px; margin-bottom: auto; }
.result-card .value { font-size: clamp(48px, 5vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-card .label { font-weight: 500; }
.result-card p { color: var(--muted); font-size: 15px; }
.cs-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.cs-next:hover { border-color: var(--line-strong); background: var(--surface-2); }
.cs-next .h-3 { margin-top: 6px; }
@media (max-width: 860px) { .cs-block { grid-template-columns: 1fr; } .cs-results { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.contact-visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.contact-visual img { width: 100%; height: 100%; object-fit: cover; }
.form { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; color: var(--muted); padding: 0; }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface-2); outline: none; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 14px; cursor: pointer; transition: all .25s; user-select: none; }
.chip span:hover { border-color: var(--text); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.form-status { font-size: 14px; color: var(--accent); min-height: 1.2em; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact-visual { min-height: 300px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
