/* Layout: dark ridge-line hero band, then light content bands; one column on phones, two-up grids on desktop */
:root {
  --fir: #0f2a2e;        /* Fir Night: hero, footer, headings */
  --glacier: #2b8a96;    /* Glacier Teal: primary accent, buttons */
  --snow: #f4f8f8;       /* Snowfield: page background */
  --granite: #56676a;    /* Granite: secondary text */
  --amber: #d9962b;      /* Signal Amber: small highlights only */
  --surface: #ffffff;
  --line: #d6e1e2;
  --fg: #142a2d;
  --hero-fg: #e8f2f2;
  --hero-muted: #9fbcbf;
  --focus: #2b8a96;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --snow: #0b1c1f; --surface: #12292d; --line: #24414a; --fg: #e3eeee;
    --granite: #93abae; --glacier: #4fb3bf; --fir: #071417; --focus: #4fb3bf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --snow: #0b1c1f; --surface: #12292d; --line: #24414a; --fg: #e3eeee;
  --granite: #93abae; --glacier: #4fb3bf; --fir: #071417; --focus: #4fb3bf;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--snow); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--glacier); }

/* Header + hero */
.hero { background: var(--fir); color: var(--hero-fg); position: relative; overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 18px; letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .2em; color: var(--hero-muted); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; flex-wrap: wrap; }
.nav ul a { text-decoration: none; color: var(--hero-muted); }
.nav ul a:hover { color: var(--hero-fg); }
.hero-body { padding-block: 56px 150px; max-width: 760px; position: relative; z-index: 1; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; font-stretch: 118%; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: #6fc7d1; }
.hero p { font-size: 19px; color: var(--hero-muted); max-width: 58ch; }
.hero .label { color: var(--amber); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 4px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--glacier); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: #3d5d62; color: var(--hero-fg); }
.btn-ghost:hover { border-color: var(--hero-muted); }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 140px; }

/* Sections */
section { padding-block: 80px; }
.section-head { display: grid; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; font-stretch: 108%; }
.section-head p { color: var(--granite); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.service .code { font-family: var(--mono); font-size: 12px; color: var(--granite); }
.service h3 { font-size: 21px; font-weight: 700; font-stretch: 105%; }
.service p { color: var(--granite); font-size: 16px; }

.approach { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; gap: 8px; border-top: 3px solid var(--glacier); padding-top: 16px; counter-increment: s; min-width: 0; }
.steps li::before { content: "Phase " counter(s); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--granite); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { color: var(--granite); font-size: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info p { color: var(--granite); }
.facts { display: grid; gap: 10px; margin-top: 8px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--granite); }
.facts dd { margin: 0; font-weight: 600; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-weight: 600; font-size: 15px; }
label span { color: var(--granite); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--snow); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
textarea { min-height: 130px; resize: vertical; }
.error { color: #c0392b; font-size: 14px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--granite); font-size: 14px; }
.sent { border-left: 4px solid var(--glacier); padding: 12px 16px; background: var(--snow); }

/* Palette note */
.palette { border-top: 1px dashed var(--line); }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.chip { height: 80px; }
.swatch div:last-child { padding: 12px 14px; display: grid; gap: 2px; }
.swatch b { font-size: 15px; }
.swatch code { font-family: var(--mono); font-size: 13px; color: var(--granite); }
.swatch span { font-size: 14px; color: var(--granite); }

footer { background: var(--fir); color: var(--hero-muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; }

@media (max-width: 760px) {
  .contact-grid, .row { grid-template-columns: 1fr; }
  .contact-grid { gap: 36px; }
  section { padding-block: 56px; }
  .hero-body { padding-block: 32px 120px; }
  .services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .ridge .node { animation: pulse 3.2s ease-in-out infinite; }
  .ridge .node:nth-of-type(2n) { animation-delay: 1.1s; }
  @keyframes pulse { 50% { opacity: .35; } }
}

/* Simple pages (thanks, privacy) */
.page { padding-block: 64px 80px; }
.page .inner { max-width: 720px; display: grid; gap: 18px; }
.page h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 750; font-stretch: 108%; }
.page h2 { font-size: 22px; font-weight: 700; margin-top: 18px; }
.page p, .page li { color: var(--granite); }
.page ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.page a:not(.btn) { color: var(--glacier); }
.hero.slim .nav { padding-block: 22px; }
footer a { color: var(--hero-fg); }
.consent { font-size: 14px; color: var(--granite); }
.consent a { color: var(--glacier); }

