:root {
  /* Layout idea: a low horizon. Everything sits under a wide band of sky, the way the Permian Basin does. */
  --paper: #f4f6f8;
  --ink: #15202c;
  --muted: #566372;
  --line: #d5dce3;
  --sky: #2b67a6;
  --sun: #e9a23b;
  --ground: #c9b48c;
  --card: #ffffff;
  --sky-top: #1c4f86;
  --sky-mid: #5b93c9;
  --sky-low: #cfe0ee;
  --hero-ink: #ffffff;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f151c; --ink: #e9eef3; --muted: #9aa8b6; --line: #26323e; --sky: #7fb2e5;
    --sun: #f0b04f; --ground: #6e5f45; --card: #151d26;
    --sky-top: #0a1626; --sky-mid: #1e3d63; --sky-low: #c9785a; --hero-ink: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f151c; --ink: #e9eef3; --muted: #9aa8b6; --line: #26323e; --sky: #7fb2e5;
  --sun: #f0b04f; --ground: #6e5f45; --card: #151d26;
  --sky-top: #0a1626; --sky-mid: #1e3d63; --sky-low: #c9785a; --hero-ink: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--sky); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; font-stretch: 80%; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 600 0.78rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
section { padding: 96px 0; }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); }

/* Nav */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hero-ink); text-decoration: none; font: 700 1.05rem/1 var(--display); letter-spacing: 0.02em; }
.brand-mark { width: 30px; height: 30px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--hero-ink); opacity: 0.88; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .nav ul { display: none; } }

/* Hero: the wide sky */
.hero { position: relative; color: var(--hero-ink); background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-low) 100%); overflow: hidden; }
.hero > .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 210px; }
.hero h1 { font-size: clamp(3.2rem, 11vw, 8.6rem); font-weight: 800; font-stretch: 75%; letter-spacing: -0.02em; line-height: 0.92; max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero-sub { margin-top: 28px; max-width: 54ch; font-size: 1.15rem; opacity: 0.95; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-sun { background: var(--sun); color: #1a1405; }
.btn-sun:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.sun { position: absolute; right: 12%; bottom: 96px; width: clamp(90px, 14vw, 170px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 58%, transparent 60%); opacity: 0.9; z-index: 1; animation: rise 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(70px); } to { transform: translateY(0); } }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; display: block; width: 100%; }
.horizon .land { fill: var(--ground); }
.horizon .sil { fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .horizon .sil { fill: #05090d; } }
:root[data-theme="dark"] .horizon .sil { fill: #05090d; }
.tagline-strip { background: var(--ground); color: #2a2216; }
.tagline-strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 18px; padding-bottom: 18px; font: 600 0.95rem/1.3 var(--body); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tagline-strip { color: #f3ead9; } }
:root[data-theme="dark"] .tagline-strip { color: #f3ead9; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: grid; gap: 12px; align-content: start; }
.svc .num { font: 700 0.85rem/1 var(--display); color: var(--sky); letter-spacing: 0.08em; }
.svc .price { font: 700 1.6rem/1 var(--display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.svc .price small { font: 500 0.85rem/1 var(--body); color: var(--muted); }
.svc p { color: var(--muted); font-size: 0.97rem; }
.svc ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink); font-size: 0.95rem; display: grid; gap: 4px; }
.svc.featured { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky); }

/* Care plans */
.plans-wrap { overflow-x: auto; }
table.plans { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.97rem; }
.plans th, .plans td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans thead th { font: 700 1.15rem/1.1 var(--display); }
.plans thead th span { display: block; margin-top: 6px; font: 700 1.7rem/1 var(--display); font-stretch: 85%; color: var(--sky); font-variant-numeric: tabular-nums; }
.plans thead th span small { font: 500 0.85rem var(--body); color: var(--muted); }
.plans tbody th { font-weight: 500; color: var(--muted); width: 32%; }
.plans .yes { color: var(--sky); font-weight: 700; }
.plans .no { color: var(--line); }
.fine { margin-top: 18px; color: var(--muted); font-size: 0.9rem; max-width: 70ch; }

/* Concept work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.project { display: grid; gap: 14px; }
.tag { justify-self: start; font: 600 0.72rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 4 / 3; display: grid; grid-template-rows: 26px 1fr; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--line); }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); opacity: 0.8; }
.mock { padding: 16px; display: grid; gap: 10px; align-content: start; font-family: var(--display); }
.mock .mnav { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 700; }
.mock .mnav span:last-child { font-weight: 500; opacity: 0.7; }
.mock .mhero { border-radius: 8px; padding: 18px 14px; display: grid; gap: 8px; }
.mock .mhero b { font-size: 1.25rem; line-height: 1; font-stretch: 80%; }
.mock .pill { justify-self: start; font: 600 0.66rem/1 var(--body); padding: 6px 10px; border-radius: 999px; }
.mock .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock .row div { height: 42px; border-radius: 6px; }
.m1 .mhero { background: #3b1f14; color: #fbe7cf; } .m1 .pill { background: #f2b33d; color: #2a1606; } .m1 .row div { background: #efd9bf; }
.m2 .mhero { background: #123a5c; color: #fff; } .m2 .pill { background: #ff7a1a; color: #fff; } .m2 .row div { background: #d6e3ee; }
.m3 .mhero { background: #e8dcd3; color: #3d2b28; } .m3 .pill { background: #3d2b28; color: #f6eee8; } .m3 .row div { background: #c9b2a6; }
.mock .mnav { color: var(--ink); }
.project p { color: var(--muted); font-size: 0.96rem; }
.project h3 { font-size: 1.2rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 22px 20px 8px 0; display: grid; gap: 8px; align-content: start; }
.steps .n { font: 800 2.4rem/1 var(--display); font-stretch: 75%; color: var(--sky); }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.about-body { display: grid; gap: 18px; max-width: 62ch; }
.about-body p:first-child { font-size: 1.2rem; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow, .contact .section-head p { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.audit-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.audit-list li { display: flex; gap: 12px; align-items: baseline; }
.audit-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); transform: translateY(-1px); }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 0.92rem; }
input, textarea, select { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); background: color-mix(in srgb, var(--paper) 6%, transparent); color: var(--paper); }
select option { color: #15202c; }
textarea { min-height: 120px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.form-note { font-size: 0.92rem; min-height: 1.4em; color: var(--sun); }
.contact .direct { margin-top: 28px; font-size: 0.95rem; color: color-mix(in srgb, var(--paper) 75%, transparent); }
.contact .direct strong { color: var(--paper); }

footer { padding: 28px 0; font-size: 0.88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
