/* ==========================================================================
   Zanolla Studio — "The Written Estimate"
   A design studio whose product is certainty in writing, so the site is
   built like a beautifully typeset schedule of works: paper, ink, hairline
   rules, tabular figures and typewritten annotations.
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
  /* Light (default): bond paper + printer's ink */
  --paper:      #edefe9;
  --paper-2:    #e4e7df;   /* recessed bands */
  --paper-3:    #f6f7f3;   /* raised panels */
  --ink:        #151a17;
  --slate:      #5c665e;   /* muted body — green-biased grey, chosen */
  --faint:      #8b948b;
  --bottle:     #12442f;   /* primary accent */
  --bottle-soft:#1d6446;
  --stamp:      #a03a28;   /* single signal accent, used sparingly */
  --rule:       #c6cabf;
  --rule-soft:  #d6dad0;

  --measure: 68ch;
  --max: 1200px;
  --r: 3px;                /* printed, not app-rounded */

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Fraunces, "Iowan Old Style", Georgia, serif;
  --mono: "Courier Prime", ui-monospace, "Courier New", monospace;

  /* Fraunces variable axes — soft, slightly wonky old-style character */
  --disp: "opsz" 100, "SOFT" 40, "WONK" 1;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #101512;
    --paper-2:    #0b0f0d;
    --paper-3:    #171d19;
    --ink:        #e8ebe3;
    --slate:      #a3ada3;
    --faint:      #77817a;
    --bottle:     #57a87c;
    --bottle-soft:#6dbb90;
    --stamp:      #d2735c;
    --rule:       rgba(232, 235, 227, 0.16);
    --rule-soft:  rgba(232, 235, 227, 0.09);
  }
}
:root[data-theme="dark"] {
  --paper:      #101512;
  --paper-2:    #0b0f0d;
  --paper-3:    #171d19;
  --ink:        #e8ebe3;
  --slate:      #a3ada3;
  --faint:      #77817a;
  --bottle:     #57a87c;
  --bottle-soft:#6dbb90;
  --stamp:      #d2735c;
  --rule:       rgba(232, 235, 227, 0.16);
  --rule-soft:  rgba(232, 235, 227, 0.09);
}
:root[data-theme="light"] {
  --paper:      #edefe9;
  --paper-2:    #e4e7df;
  --paper-3:    #f6f7f3;
  --ink:        #151a17;
  --slate:      #5c665e;
  --faint:      #8b948b;
  --bottle:     #12442f;
  --bottle-soft:#1d6446;
  --stamp:      #a03a28;
  --rule:       #c6cabf;
  --rule-soft:  #d6dad0;
}

/* ------------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  /* Paper: a fine halftone tooth over a faint ledger rule */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(21, 26, 23, 0.055) 0.5px, transparent 0.6px),
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px);
  background-size: 4px 4px, 100% 34px;
  background-position: 0 0, 0 0;
}
@media (prefers-color-scheme: dark) {
  body { background-image:
    radial-gradient(circle at 50% 50%, rgba(232, 235, 227, 0.045) 0.5px, transparent 0.6px),
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px); }
}
:root[data-theme="dark"] body { background-image:
  radial-gradient(circle at 50% 50%, rgba(232, 235, 227, 0.045) 0.5px, transparent 0.6px),
  linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px); }

a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--slate); }
strong, b { color: var(--ink); font-weight: 600; }
img { max-width: 100%; }
::selection { background: var(--bottle); color: var(--paper-3); }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.container { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
section { padding: 84px 0; position: relative; }

/* ------------------------------------------------------------- typography */
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: var(--disp);
  letter-spacing: -0.021em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(3.1rem, 8.2vw, 6.6rem); font-weight: 500; }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.5rem); }
h3 { font-size: 1.32rem; line-height: 1.15; letter-spacing: -0.014em; }

.accent { color: var(--bottle); font-style: italic; font-variation-settings: "opsz" 120, "SOFT" 60, "WONK" 1; }

.lead {
  margin-top: 1.5rem;
  max-width: 54ch;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.62;
  color: var(--slate);
}

/* Typewritten label — the recurring utility voice of the document */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bottle);
}
.eyebrow::after {
  content: ""; width: clamp(28px, 8vw, 74px); height: 1px;
  background: var(--rule);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--stamp);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stamp) 18%, transparent);
  flex: none;
}

.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.09rem; }

/* --------------------------------------------------------------- masthead */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
/* The mark is a self-contained plate (green ground + inset rule live in the SVG) */
.glyph { width: 40px; height: 40px; flex: none; display: block; }
.glyph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0;
  font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em;
}
.brand-text span {
  margin-top: 3px;
  font-family: var(--mono); font-size: 0.63rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint);
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--stamp); }

/* --------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0.85rem 1.45rem;
  border: 1px solid var(--ink); border-radius: var(--r);
  background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn-primary {
  background: var(--bottle); border-color: var(--bottle); color: #f4f6f1;
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--ink) 20%, transparent);
}
.btn-primary:hover {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--ink) 18%, transparent);
}
.btn .arr {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.1;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.btn:hover .arr { transform: translateX(3px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ------------------------------------------------------------------- hero */
.hero { padding: 76px 0 64px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rule);
}
.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.hero h1 { margin-bottom: 0.2em; }

/* Load-in: the document sets itself, line by line */
.hero > .container > div > * { animation: setline 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero .eyebrow      { animation-delay: 0.02s; }
.hero h1            { animation-delay: 0.1s; }
.hero .lead         { animation-delay: 0.2s; }
.hero .hero-actions { animation-delay: 0.3s; }
.hero .spec-strip   { animation-delay: 0.4s; }
/* Subpages set their own masthead (crumbs → eyebrow → h1 → lead) */
.hero > .container.article > * { animation: setline 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero > .container.article > .crumbs      { animation-delay: 0.02s; }
.hero > .container.article > .eyebrow     { animation-delay: 0.08s; }
.hero > .container.article > h1           { animation-delay: 0.14s; }
.hero > .container.article > .lead        { animation-delay: 0.24s; }
.hero > .container.article > .hero-actions{ animation-delay: 0.32s; }
@keyframes setline { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Spec strip — a ruled schedule of terms, not a row of chips */
.spec-strip {
  margin-top: 2.6rem;
  border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.spec {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 1.05rem 1.2rem 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.spec:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 1.4rem; padding-right: 0; }
.spec b { display: block; font-size: 0.94rem; letter-spacing: -0.005em; }
.spec span {
  display: block; margin-top: 2px;
  font-size: 0.82rem; line-height: 1.45; color: var(--faint);
}
.ic {
  width: 20px; height: 20px; flex: none; margin-top: 2px;
  fill: none; stroke: var(--bottle); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Founder as a pinned specimen: green plate, paper mount, typed caption */
.hero-visual { position: relative; padding-top: 0.6rem; }
.founder-panel {
  position: relative; z-index: 1;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 12px 12px 0;
  box-shadow: 8px 8px 0 0 var(--bottle);
}
.founder-panel img {
  display: block; width: 100%; height: 470px;
  object-fit: cover; object-position: top center;
  border-radius: 1px;
  filter: grayscale(0.28) contrast(1.05);
}
.founder-card {
  display: grid; gap: 3px;
  padding: 0.85rem 0.15rem 0.95rem;
}
.founder-card b {
  font-family: var(--serif); font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0;
  font-size: 1.06rem; letter-spacing: -0.015em;
}
.founder-card span { font-family: var(--mono); font-size: 0.68rem; line-height: 1.5; color: var(--faint); }

/* Technical drawing behind the specimen, in ink not neon */
.blueprint {
  position: absolute; top: -26px; right: -22px; width: 72%; z-index: 0;
  opacity: 0.5; pointer-events: none;
}
.blueprint * { fill: none; stroke: var(--bottle); stroke-width: 1; }
.blueprint .dash { stroke-dasharray: 5 6; }
.blueprint .faint { stroke: var(--rule); }

/* ---------------------------------------------------------------- surfaces */
.card {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 1.7rem;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.94rem; }
/* Registration marks — a printed sheet, not a UI card */
.card::before {
  content: ""; position: absolute; top: 9px; right: 9px;
  width: 9px; height: 9px;
  border-top: 1px solid var(--rule); border-right: 1px solid var(--rule);
}
.panel {
  background: var(--paper-3);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: clamp(1.6rem, 3.5vw, 2.9rem);
  box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--ink) 10%, transparent);
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }

/* Wireframe vignettes on the problem cards */
.wf { width: 100%; height: 62px; margin-bottom: 1.1rem; overflow: visible; }
.wf * { fill: none; stroke: var(--bottle); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.wf .ghosted { stroke: var(--rule); }
.wf .dash { stroke-dasharray: 4 5; }
.wf text {
  fill: var(--stamp); stroke: none;
  font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em;
}

/* Process: a genuine 4-step sequence, so the numbering is earned */
.grid2 .card { overflow: hidden; }
.num {
  display: block; margin-bottom: 0.9rem;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--bottle);
}
.ghost {
  position: absolute; right: 0.5rem; bottom: -1.6rem;
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0;
  font-size: 6.2rem; font-weight: 600; line-height: 1;
  color: color-mix(in srgb, var(--bottle) 11%, transparent);
  pointer-events: none; user-select: none;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------- schedule of charges */
.price-card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.9rem;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem;
}
.price-card .price {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: 3.1rem; font-weight: 500; line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}
.price-card .price small {
  display: block; margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint);
}
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.price-card li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--slate); font-size: 0.92rem; line-height: 1.45;
}
.price-card li::before {
  content: "—"; position: absolute; left: 0; top: 0.6rem;
  color: var(--bottle); font-family: var(--mono);
}
.price-card .btn { margin-top: auto; }
.featured {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 0 var(--bottle);
}
/* Rubber stamp, tilted and inked */
.tag {
  position: absolute; top: -0.85rem; right: 1.2rem;
  padding: 0.35rem 0.6rem;
  border: 1.5px solid var(--stamp); border-radius: 2px;
  background: var(--paper-3); color: var(--stamp);
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  transform: rotate(-2.2deg);
}
.tag-premium { border-color: var(--bottle); color: var(--bottle); transform: rotate(1.6deg); }

.care-strip {
  margin-top: 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.care-strip::before { display: none; }
.care-strip h3 { margin-bottom: 0.4rem; }
.care-strip p { font-size: 0.94rem; max-width: 62ch; }

/* --------------------------------------------------------------- evidence */
.case { display: flex; flex-direction: column; gap: 0.6rem; }
.case .result {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: 2.9rem; font-weight: 500; line-height: 1;
  letter-spacing: -0.03em; color: var(--bottle);
  font-variant-numeric: tabular-nums lining-nums;
}
.who {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}

/* Client sites as pinned specimens with a dimension annotation */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-bottom: 1.6rem; }
.phone-card {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  padding: 2rem 1.4rem 1.5rem;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.25s;
}
.phone-card.inview { opacity: 1; transform: none; }
.phone-card:hover { border-color: var(--ink); }
.phone {
  position: relative;
  width: 272px; max-width: 100%;
  padding: 9px;
  border-radius: 30px;
  background: var(--ink);
  box-shadow: 0 14px 34px -18px rgba(21, 26, 23, 0.55);
}
.phone::before {
  content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 5px; border-radius: 99px;
  background: color-mix(in srgb, var(--paper) 30%, transparent); z-index: 2;
}
.phone-screen {
  position: relative; height: 540px; overflow: hidden;
  border-radius: 22px; background: var(--paper-2);
}
.phone-screen img { display: block; width: 100%; height: auto; will-change: transform; }
.phone-card.inview .phone-screen img { animation: phonescroll 44s ease-in-out 1s infinite alternate; }
.phone-card:nth-child(1) .phone-screen img { animation-duration: 64s; }
.phone-card:hover .phone-screen img { animation-play-state: paused; }
@keyframes phonescroll {
  0%, 4%    { transform: translateY(0); }
  96%, 100% { transform: translateY(calc(-100% + 540px)); }
}
/* Real measurement, so the annotation carries information */
.dim {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint);
}
.dim::before, .dim::after { content: ""; height: 1px; width: 32px; background: var(--rule); }
/* Concept work sits in its own grid, stamped so it can never read as a client */
.showcase-3 { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.phone-card { position: relative; }
.stamp-badge {
  position: absolute; top: -0.7rem; left: 50%;
  padding: 0.32rem 0.6rem;
  border: 1.5px solid var(--stamp); border-radius: 2px;
  background: var(--paper-3); color: var(--stamp);
  font-family: var(--mono); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  transform: translateX(-50%) rotate(-1.8deg);
  z-index: 3;
}
.frame-caption { text-align: center; max-width: 42ch; }
.frame-caption .who { display: block; margin-bottom: 0.4rem; color: var(--bottle); }
.frame-caption p { font-size: 0.9rem; }

/* ------------------------------------------------------- areas / tokens */
.city-grid { display: flex; flex-wrap: wrap; gap: 0; max-width: 72ch; margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.city {
  padding: 0.65rem 1.1rem 0.65rem 0;
  margin-right: 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.05em; color: var(--slate);
  flex: 1 1 auto; min-width: 8.5rem;
  transition: color 0.18s;
}
.city:hover { color: var(--bottle); }

/* ------------------------------------------------------------------ q & a */
details {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
details:first-of-type { border-top: 1px solid var(--ink); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-variation-settings: "opsz" 60, "SOFT" 30, "WONK" 0;
  font-size: 1.1rem; font-weight: 600; letter-spacing: -0.012em; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none;
  font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--bottle);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 1.25rem; font-size: 0.97rem; max-width: var(--measure); }

/* ------------------------------------------------------------------- form */
form { display: grid; gap: 1rem; }
label {
  display: grid; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--slate);
}
input, select, textarea {
  width: 100%; padding: 0.85rem 0.95rem;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  letter-spacing: normal; text-transform: none;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--bottle);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bottle) 16%, transparent);
}

/* Optional block: the extra detail that makes a preview worth sending */
.opt-head {
  margin: 0.35rem 0 -0.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bottle);
}
.lbl-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.opt {
  font-style: normal; font-size: 0.55rem; letter-spacing: 0.1em;
  padding: 0.1rem 0.32rem; border: 1px solid var(--rule); border-radius: 2px;
  color: var(--faint);
}
.form-note { font-family: var(--sans); font-size: 0.79rem; letter-spacing: normal; text-transform: none; color: var(--faint); }

/* ----------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--ink); padding: 3rem 0 3.5rem; background: var(--paper-2); }
footer .cols { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
footer p { font-size: 0.85rem; color: var(--faint); }
/* The email is the primary contact channel — make it read as clickable */
footer a[href^="mailto"] {
  color: var(--ink); font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--bottle) 45%, transparent);
  transition: color 0.18s, border-color 0.18s;
}
footer a[href^="mailto"]:hover { color: var(--bottle); border-bottom-color: var(--bottle); }
footer .brand-text b { font-size: 1rem; }
.foot-links { display: grid; gap: 0.5rem; margin-top: 0.7rem; }
.foot-links a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--slate);
  border-bottom: 1px solid transparent; justify-self: start;
  transition: color 0.18s, border-color 0.18s;
}
.foot-links a:hover { color: var(--ink); border-bottom-color: var(--stamp); }

/* ------------------------------------------------- subpages and articles */
.crumbs {
  margin-bottom: 1.8rem;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.crumbs a { border-bottom: 1px solid transparent; transition: color 0.18s, border-color 0.18s; }
.crumbs a:hover { color: var(--bottle); border-bottom-color: var(--rule); }

.article { max-width: var(--measure); }
.article h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
.article .lead { max-width: none; }
.article h2 {
  margin: 3.2rem 0 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.article p { font-size: 1.03rem; line-height: 1.72; }
.article p + p { margin-top: 1rem; }
.article ul, .article ol {
  margin: 1.1rem 0; padding-left: 1.3rem;
  display: grid; gap: 0.6rem;
  color: var(--slate); font-size: 1.03rem; line-height: 1.65;
}
.article li::marker { color: var(--bottle); font-family: var(--mono); font-size: 0.9em; }
.article a:not(.btn) {
  color: var(--bottle); font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--bottle) 35%, transparent);
  transition: background 0.18s, border-color 0.18s;
}
.article a:not(.btn):hover { background: color-mix(in srgb, var(--bottle) 10%, transparent); border-bottom-color: var(--bottle); }
.article .card { margin-top: 2rem; }
.article .card p { font-size: 0.97rem; }

/* Comparison tables read as a ruled schedule */
.tbl-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper-3); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 34rem; font-variant-numeric: tabular-nums; }
.cmp th {
  text-align: left; vertical-align: bottom;
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bottle);
}
.cmp td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule-soft); color: var(--slate); vertical-align: top; }
.cmp tr:last-child td { border-bottom: none; }
.cmp td:first-child { color: var(--ink); font-weight: 600; }

.cta-inline {
  margin-top: 3rem;
  padding: 1.8rem;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-left: 4px solid var(--bottle);
  border-radius: var(--r);
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
}
.cta-inline p { max-width: 46ch; font-size: 0.98rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 940px) {
  .hero-grid, .grid3, .grid2, .showcase, .showcase-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 52px 0 48px; }
  .founder-panel img { height: 400px; }
  .blueprint { display: none; }
  .phone-screen { height: 480px; }
  @keyframes phonescroll {
    0%, 4%    { transform: translateY(0); }
    96%, 100% { transform: translateY(calc(-100% + 480px)); }
  }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  /* Long button labels must wrap rather than force the page sideways */
  .btn { white-space: normal; }
  .nav .btn { padding: 0.6rem 0.85rem; min-height: 42px; font-size: 0.62rem; letter-spacing: 0.06em; }
  .brand-text span { display: none; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec, .spec:nth-child(even) { border-left: none; padding-left: 0; padding-right: 0; }
  .founder-panel { box-shadow: 5px 5px 0 0 var(--bottle); }
  .featured { box-shadow: 5px 5px 0 0 var(--bottle); }
  .panel { box-shadow: none; }
  .cta-inline, .care-strip { padding: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .phone-card { opacity: 1; transform: none; }
  .phone-card.inview .phone-screen img { animation: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .nav, .btn, .cta-inline { display: none; }
}
