:root {
  color-scheme: light;
  --bg: #f8f6f1;
  --paper: #ffffff;
  --tint: #f0ede5;
  --ink: #16181b;
  --body: #4a4d53;
  --muted: #686b72;
  --line: #e4dfd4;
  --green: #1d4a39;
  --green-soft: #dfe9e2;
  --gold: #c8963e;
  --gold-soft: #f3e6cc;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 24, 27, .04), 0 12px 32px -12px rgba(22, 24, 27, .12);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); }
h1 em, h2 em { font-style: italic; color: var(--green); }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); max-width: 20ch; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(248, 246, 241, .86);
  backdrop-filter: saturate(160%) blur(12px); }
.nav-inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600;
  letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; color: var(--green); flex: none; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--body); font-size: .94rem; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px;
  font: 500 .97rem/1 var(--sans); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 20px -8px rgba(22, 24, 27, .5); }
.btn-light { background: var(--paper); border: 1px solid var(--line); }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--body);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 12px;
  margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.lede { font-size: 1.15rem; color: var(--body); max-width: 50ch; margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero-visual { position: relative; margin: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: 18px 18px 10px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 6px 6px;
  font-size: .8rem; color: var(--muted); }
.panel-title { font-weight: 600; color: var(--ink); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-hot { background: var(--green); }
.lg-warm { background: var(--gold); margin-left: 8px; }
.bowl { display: block; width: 100%; height: auto; }
.bowl .s { fill: #ebe7de; }
.bowl .s-warm { fill: #e4c58c; }
.bowl .s-hot { fill: var(--green); }
.bowl .court { fill: #f4f1ea; stroke: #ddd6c8; }
.bowl .court-line { fill: none; stroke: #ddd6c8; }

.chip { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); font-size: .82rem; padding: 10px 14px; display: flex; gap: 8px; align-items: center; }
.chip-a { left: -26px; bottom: -20px; flex-direction: column; align-items: flex-start; gap: 2px; }
.chip-label { font-weight: 600; }
.chip-value { color: var(--muted); }

/* Band */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; padding-top: 22px;
  padding-bottom: 22px; font: 500 .8rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--tint); }
.eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--green);
  margin-bottom: 18px; }
.section-lede { color: var(--body); font-size: 1.08rem; max-width: 46ch; margin-top: 20px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.service { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); }
.service h3 { margin: 26px 0 10px; font-size: 1.15rem; }
.service p { color: var(--body); font-size: .98rem; }
.icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--green-soft);
  fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Approach */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.split .section-head { position: sticky; top: 120px; }
.principles { list-style: none; padding: 0; margin: 0; }
.principles li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0;
  border-top: 1px solid #d9d3c5; }
.principles li:last-child { border-bottom: 1px solid #d9d3c5; }
.num { font-family: var(--serif); font-size: 1.5rem; color: #9a6f24; line-height: 1.1; }
.principles p { color: var(--body); margin-top: 6px; }

/* Platform */
.platform { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center;
  background: var(--green); color: #f3f1ea; border-radius: 28px; padding: 64px; }
.platform .eyebrow { color: var(--gold-soft); }
.platform h2 { color: #fff; max-width: none; }
.platform-copy p:not(.eyebrow) { color: rgba(243, 241, 234, .78); margin-top: 22px; max-width: 44ch; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.features li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  padding: 22px; }
.features h3 { color: #fff; }
.features p { color: rgba(243, 241, 234, .72); font-size: .93rem; margin-top: 6px; }

/* AI loop */
.ai-head h2 { max-width: none; }
.loop { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; position: relative; }
.loop::before { content: ""; position: absolute; top: 22px; left: 22px; right: calc((100% - 66px) / 4 - 22px); height: 1px;
  background: repeating-linear-gradient(90deg, #cfc8b8 0 6px, transparent 6px 12px); }
.loop li { position: relative; }
.loop-num { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font-family: var(--serif); font-size: 1.3rem; line-height: 1;
  box-shadow: 0 0 0 6px var(--tint); }
.loop h3 { margin: 22px 0 8px; font-size: 1.08rem; }
.loop p { color: var(--body); font-size: .96rem; }
.ai-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.ai-note { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.ai-note svg { width: 26px; height: 26px; flex: none; margin-top: 2px; fill: none; stroke: var(--green);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ai-note p { color: var(--body); font-size: .97rem; }
.ai-note strong { color: var(--ink); font-weight: 600; }

/* About */
.about { max-width: 900px; text-align: center; }
#about { padding: 88px 0; }
.about h2.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 600; line-height: 1.4; max-width: none; }
.about-text { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.25; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 32px; min-width: 340px; display: grid; gap: 10px; }
.contact-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-name { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; margin-bottom: 6px; }
.contact-line { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; }
.contact-line:hover { color: var(--green); }
.contact-line svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand-sm { font-size: .95rem; }
.brand-sm .brand-mark { width: 22px; height: 22px; }
.fine { color: var(--muted); font-size: .86rem; max-width: 62ch; flex-basis: 100%; }
.footer-links { display: flex; gap: 24px; font-size: .9rem; }
.footer-links a { text-decoration: none; color: var(--body); }
.footer-links a:hover { color: var(--ink); }

/* Legal pages */
.nav-back { margin-left: auto; }
.legal { max-width: 760px; padding-top: 72px; padding-bottom: 112px; }
.legal h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.legal .updated { color: var(--muted); font-size: .92rem; margin: 14px 0 40px; }
.legal h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  max-width: none; margin: 36px 0 10px; }
.legal p { color: var(--body); }
.legal p a { color: var(--green); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .split, .platform, .contact { grid-template-columns: 1fr; }
  .hero-grid { gap: 56px; }
  .split { gap: 40px; }
  .platform { padding: 48px 36px; gap: 36px; }
  .services { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .loop::before { display: none; }
  .ai-notes { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .split .section-head { position: static; }
  .chip-a { left: 8px; }
  .contact { align-items: start; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 72px 0; }
  .services, .features { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; row-gap: 0; }
  .loop li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .loop li:not(:last-child)::before { content: ""; position: absolute; left: 21.5px; top: 50px; bottom: 6px;
    width: 1px; background: #cfc8b8; }
  .loop h3 { margin: 10px 0 6px; }
  .loop p { grid-column: 2; }
  .loop-num { grid-row: span 2; }
  .ai-note { padding: 22px 20px; }
  .platform { padding: 36px 22px; border-radius: 22px; }
  .band-inner { justify-content: flex-start; font-size: 1.15rem; gap: 6px 18px; }
  .contact-card { min-width: 0; padding: 26px 22px; }
  .chip-a { display: none; }
  .about { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
