:root {
  --ground: #F7F5F0;
  --ink: #0B1320;
  --navy: #0C1E36;
  --muted: #565C66;
  --line: #DADBD4;
  --line-soft: #ECECE6;
  --line-strong: #B4B6AE;
  --card: #FFFFFF;
  --accent: #D5A343;
  --gold-text: #8A6516;
  --sand: #F6EEDC;
  --stone: #F1EFE8;
  --dark-line: #2B3240;
  --dark-tile: #1A1F28;
  --dark-muted: #A7ADB8;
  --dark-soft: #C3C8D0;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; color: var(--ground); }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 96px; padding-bottom: 96px; }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; font: inherit; font-size: 15px; border: 0; cursor: pointer; min-height: 44px; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { color: var(--ground); background: #1E2838; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); background: #E0B45C; }

/* Nav */
.nav { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { display: flex; flex-direction: column; font-family: 'Montserrat', sans-serif; line-height: 1; color: var(--navy); }
.logo-name { font-weight: 700; font-size: 21px; letter-spacing: 0.04em; }
.logo-sub { font-weight: 600; font-size: 10px; letter-spacing: 0.36em; margin-top: 5px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; }
.nav-cta { margin-left: clamp(0px, 6vw, 120px); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .nav-links .nav-cta { margin: 16px 0 0; border-bottom: 0; padding: 14px 20px; }
}

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 48px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--gold-text); }
.hero h1 { margin-top: 20px; font-size: clamp(42px, 7.6vw, 116px); line-height: 0.92; font-weight: 700; letter-spacing: -0.045em; max-width: 1100px; }
.lede { margin-top: 28px; font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 640px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.chip { font: inherit; font-size: 16px; padding: 14px 20px; border-radius: 999px; cursor: pointer; min-height: 48px; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); transition: background-color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

.answer { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-columns: 1fr; overflow: hidden; }
.answer-col { padding: 36px; border-bottom: 1px solid var(--line-soft); }
.answer-col:last-child { border-bottom: 0; }
@media (min-width: 720px) {
  .answer { grid-template-columns: 1fr 1fr; }
  .answer-col:first-child { border-right: 1px solid var(--line-soft); }
  .answer-dark { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .answer { grid-template-columns: repeat(3, 1fr); min-height: 352px; }
  .answer-col { border-bottom: 0; }
  .answer-col:nth-child(2) { border-right: 1px solid var(--line-soft); }
  .answer-dark { grid-column: auto; }
}
.answer-follows { margin-top: 16px; font-size: 26px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.window { margin-top: 24px; display: inline-flex; font-family: var(--mono); font-size: 12px; background: var(--sand); color: var(--gold-text); padding: 6px 10px; border-radius: 6px; }
.answer-start { margin-top: 16px; font-size: 18px; line-height: 1.55; }
.answer-dark { background: var(--ink); color: var(--ground); display: flex; flex-direction: column; gap: 16px; }
.answer-dark .label { color: var(--dark-muted); }
.answer-platform { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.answer-model { color: var(--dark-soft); line-height: 1.55; }
.answer-cta { margin-top: auto; align-self: flex-start; padding: 14px 20px; }
.answer [data-field] { transition: opacity .18s; }
.answer.swapping [data-field] { opacity: 0; }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: end; }
.section-head h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.section-head p { max-width: 440px; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* Service cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1360px) { .cards { grid-template-columns: repeat(4, 1fr); } }
/* Each card spans four shared rows (visual, title, text, footer) so they line up across the row */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 18px; align-content: start; }
.card h3 { font-size: 26px; letter-spacing: -0.02em; }
.card p { color: var(--muted); line-height: 1.55; }
.card-foot { align-self: end; font-family: var(--mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 14px; }

.viz { min-height: 140px; border-radius: 12px; padding: 16px; font-family: var(--mono); font-size: 12px; }
.viz-dark { background: var(--ink); color: var(--dark-muted); font-size: 11px; }
.viz-sand { background: var(--sand); display: flex; flex-direction: column; gap: 10px; }
.viz-stone { background: var(--stone); display: flex; flex-direction: column; gap: 6px; }
.viz-title { color: var(--muted); font-size: 11px; }
.viz .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--card); padding: 6px 8px; border-radius: 6px; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.viz .row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.viz .row > span:last-child { flex-shrink: 0; white-space: nowrap; }
.viz .ok { color: var(--gold-text); }
.viz .muted { color: var(--muted); }
.viz-bars { display: flex; flex-direction: column; justify-content: space-between; }
.viz-bars .light { color: var(--ground); }
.bars { display: flex; gap: 6px; align-items: end; height: 60px; }
.bars span { flex: 1; background: var(--dark-line); border-radius: 3px; }
.bars span:nth-child(1) { height: 30%; }
.bars span:nth-child(2) { height: 55%; }
.bars span:nth-child(3) { height: 40%; }
.bars span:nth-child(4) { height: 85%; }
.bars span:nth-child(5) { height: 35%; }
.bars span:nth-child(6) { height: 20%; }
.bars .hot { background: var(--accent); }
.viz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px; }
.tile { background: var(--dark-tile); border-radius: 6px; padding: 6px 8px; min-width: 0; line-height: 1.3; }
.tile > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile > div:first-child { font-size: 10px; }
.tile-val { color: var(--ground); font-size: 14px; margin-top: 4px; }
.tile-accent { background: var(--accent); color: var(--ink); }
.tile-small { font-size: 13px; margin-top: 4px; }

/* Facts */
.spec { background: var(--ink); color: var(--ground); }
.spec h2 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.035em; max-width: 820px; line-height: 1.02; }
.facts { margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); font-family: var(--mono); }
.facts > div { background: var(--ink); padding: 28px; }
.facts dt { font-size: 12px; color: var(--dark-muted); }
.facts dd { margin: 10px 0 0; font-size: 18px; }

/* Company */
#company { padding-bottom: 48px; }
.company { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
@media (min-width: 1000px) { .company { grid-template-columns: repeat(3, 1fr); } }
.company-col { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.company-col p { margin-top: 14px; font-size: 17px; line-height: 1.6; }

/* Contact */
.triage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: start; }
.triage h2 { font-size: clamp(40px, 5vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.triage-lede { margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 480px; }
.placeholder { margin-top: 32px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); font-family: var(--mono); font-size: 13px; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
.form label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.form input { border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form input[aria-invalid="true"] { border-color: #B3261E; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { padding: 16px; font-size: 16px; font-weight: 500; min-height: 48px; }
.btn-send[disabled] { opacity: .6; cursor: wait; }
.form-status { min-height: 1.4em; font-size: 15px; line-height: 1.5; color: var(--muted); }
.form-status:empty { min-height: 0; margin-top: -18px; }
.form-status.ok { color: #1F6B3A; }
.form-status.err { color: #B3261E; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 13px; color: var(--muted); line-height: 1.6; }

@media (max-width: 600px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  #company { padding-bottom: 32px; }
  .answer-col, .card, .company-col, .form { padding: 24px; }
  /* One swipeable row so the answer stays near the top of the screen */
  .chips { gap: 8px; margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; font-size: 14px; padding: 10px 14px; min-height: 44px; scroll-snap-align: start; }
  .answer-follows { font-size: 22px; }
  .lede { font-size: 18px; }
}
