/* Press9 — style.css
   Direction: "Switchboard" — the site reads like a call console and a written
   procedure, not a marketing page.

   DELIBERATELY NOT the house template. Every other site in the portfolio
   (Perfection Roofing, Fadez R Us, Apex) is: sticky top nav -> dark centred
   hero -> auto-fit .card grids -> dark CTA band -> footer. None of that shape
   appears here. The structural departures, on purpose:
     - navigation is a fixed dark LEFT RAIL, not a sticky top bar
     - content sits in ruled rows with a mono meta column, not boxed cards
     - no card backgrounds, no shadows, no rounded corners anywhere
     - the hero is light and oversized, not a dark banner
     - no pill badges, and no 01/02/03 step numbering

   NOTE: clamp()/calc() REQUIRE spaces around + and - or the browser silently
   drops the whole declaration (Web Build Standard section 0, item 1).
*/

/* ---------- fonts (self-hosted, no Google CDN) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/archivo-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-600-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --ink:      oklch(24% 0.030 253);   /* #14212F  rail, dark bands, text */
  --ink-soft: oklch(33% 0.028 253);
  --bone:     oklch(96% 0.015 85);    /* #F5F1E8  page background */
  --bone-2:   oklch(99% 0.006 85);
  --signal:   oklch(64% 0.200 42);    /* #F25C05  accent FILL only — 2.95 on bone, never text */
  --signal-d: oklch(56% 0.185 42);
  --steel:    oklch(60% 0.025 253);   /* #7A8694  RULES only — 3.29 on bone, never text */
  --confirm:  oklch(50% 0.110 155);

  /* Text-safe pairs. Measured, not guessed:
       --steel      on --bone = 3.29  FAILS AA  -> --ink-3      = 5.29  PASS
       --signal     on --bone = 2.95  FAILS AA  -> --signal-ink = 5.38  PASS
       #fff         on --signal = 3.33 FAILS AA -> --ink on --signal = 4.90 PASS
     Keep --steel and --signal for rules and fills; use these for anything read. */
  --ink-3:      #586573;              /* secondary body text on bone */
  --signal-ink: #AD3E00;              /* small accent text on bone   */

  --rule:      color-mix(in oklch, var(--steel) 34%, transparent);
  --rule-soft: color-mix(in oklch, var(--steel) 18%, transparent);
  --rule-dark: color-mix(in oklch, var(--bone) 18%, transparent);

  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --rail-w: 15.5rem;
  --pad-x: clamp(1.5rem, 4.5vw, 4.5rem);
  --rhythm: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
  --radius: 0;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0rem, 0.96rem + 0.2vw, 1.09rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bone);
  padding: 0.75rem 1.25rem; z-index: 200;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ===========================================================================
   SHELL — body is the grid. The rail is column 1, everything else column 2.
   No wrapper markup needed, which keeps the pages plain static HTML.
   =========================================================================== */
@media (min-width: 68rem) {
  body {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
  }
  .site-head { grid-column: 1; grid-row: 1 / -1; }
  main { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
  .site-foot { grid-column: 2; grid-row: 3; }
}

/* ---------- the rail ---------- */
.site-head {
  background: var(--ink);
  color: var(--bone);
  border-bottom: 1px solid var(--rule-dark);
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
  padding-inline: var(--pad-x);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0.1rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.45rem; letter-spacing: -0.045em;
  text-decoration: none; color: var(--bone);
}
.brand .nine { color: var(--signal); font-family: var(--font-display); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--bone);
  border: 1px solid var(--rule-dark); border-radius: 0;
  min-width: 46px; min-height: 42px; padding-inline: 0.9rem;
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.nav { display: none; }

/* Without JS the toggle can never fire, so a display:none nav means NO
   navigation at all. The head does a no-js -> js class swap, so .no-js only
   survives when scripting is off: show the menu open and hide the dead button. */
.no-js .nav {
  display: flex; flex-direction: column;
  padding: 0 var(--pad-x) 1.5rem;
  border-top: 1px solid var(--rule-dark);
}
.no-js .nav-toggle { display: none; }

.nav.open {
  display: flex; flex-direction: column;
  padding: 0 var(--pad-x) 1.5rem;
  border-top: 1px solid var(--rule-dark);
}
.nav a {
  text-decoration: none; color: var(--bone);
  font-size: 1rem; font-weight: 600;
  padding-block: 0.9rem; min-height: 44px;
  border-bottom: 1px solid var(--rule-dark);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--signal); }
.nav .btn { margin-top: 1.25rem; border-bottom: 0; }
/* `.nav a` (0,1,1) outranks `.btn-primary` (0,1,0), so without this the rail's
   CTA reverts to bone-on-orange — 3.2:1, the exact failure fixed elsewhere. */
.nav a.btn-primary { color: var(--ink); }
.nav a.btn-primary:hover { color: var(--signal); }

@media (min-width: 68rem) {
  .site-head {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    padding: 2.25rem 1.75rem 2rem;
    border-bottom: 0; border-right: 1px solid var(--rule-dark);
    overflow-y: auto;
  }
  /* .head-row also carries .wrap, whose padding-inline is declared later in this
     file and would otherwise win, eating ~144px of a 248px rail and wrapping
     every nav label. Two-class selector beats it on specificity. */
  .site-head .head-row {
    display: block; padding: 0; min-height: 0; max-width: none;
  }
  .brand { font-size: 1.7rem; }
  .nav-toggle { display: none; }
  .nav {
    display: flex !important; flex-direction: column; align-items: stretch;
    padding: 2.5rem 0 0; border-top: 0;
  }
  .nav a {
    padding-block: 0.62rem; border-bottom: 0;
    font-size: 0.97rem; color: color-mix(in oklch, var(--bone) 78%, var(--steel));
    position: relative; padding-left: 0.9rem; min-height: 0;
  }
  /* transform, not height: animating a layout property thrashes layout */
  .nav a::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 3px; height: 1.05em; background: var(--signal);
    transform: translateY(-50%) scaleY(0); transform-origin: center;
    transition: transform 0.14s ease;
  }
  .nav a:hover::before, .nav a[aria-current="page"]::before {
    transform: translateY(-50%) scaleY(1);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
  .nav .btn { margin-top: 1.75rem; }
}

/* rail status block, desktop only */
.rail-status { display: none; }
@media (min-width: 68rem) {
  .rail-status {
    display: block; margin-top: auto; padding-top: 1.75rem;
    border-top: 1px solid var(--rule-dark);
    font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.7;
    color: color-mix(in oklch, var(--bone) 55%, var(--steel));
  }
  .rail-status .live { display: flex; align-items: center; gap: 0.5rem; color: var(--bone); }
  .rail-status .live::before {
    content: ""; width: 7px; height: 7px; background: var(--confirm); flex: none;
  }
  .rail-status a { color: var(--bone); text-decoration: none; }
  .rail-status a:hover { color: var(--signal); }
}

/* ===========================================================================
   CONTENT
   =========================================================================== */
.wrap { width: 100%; max-width: 74rem; padding-inline: var(--pad-x); }
section { padding-block: var(--rhythm); border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }

.section-dark { background: var(--ink); color: color-mix(in oklch, var(--bone) 74%, var(--steel)); border-bottom-color: var(--rule-dark); }
.section-dark h2, .section-dark h3, .section-dark strong { color: var(--bone); }

/* eyebrow: a mono line with a rule, not a pill badge */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-ink);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  max-width: 22rem;
}
.section-dark .eyebrow { border-bottom-color: var(--rule-dark); }

h1 { font-size: clamp(2.6rem, 1.6rem + 5.6vw, 5.4rem); max-width: 17ch; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.9rem); max-width: 20ch; }
h3 { font-size: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem); letter-spacing: -0.018em; }

.lede {
  font-size: clamp(1.06rem, 1.0rem + 0.4vw, 1.28rem);
  color: var(--ink-3);
  max-width: 48ch;
  margin-top: 1.35rem;
  line-height: 1.55;
}
.section-dark .lede { color: color-mix(in oklch, var(--bone) 66%, var(--steel)); }

/* ===========================================================================
   MARGINAL HEADINGS — the main structural break from the house template.

   Every site in the portfolio repeats a full-width banner rhythm down the page:
   eyebrow > big H2 > lede > items, over and over. Restyling the items does not
   fix that; the rhythm itself is the tell.

   Here the eyebrow and H2 are lifted OUT of the content flow into a sticky
   left margin column, so the page reads as one continuous document with
   headings annotating it from the margin — the way a specification or a legal
   document is set. The body text runs in a single uninterrupted column.

   Done with grid placement only, so the HTML stays plain and unchanged.
   =========================================================================== */
@media (min-width: 68rem) {
  section:not(.hero) > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 4.5vw, 5rem);
    row-gap: 0;
    align-items: start;
  }

  section:not(.hero) > .wrap > .eyebrow {
    grid-column: 1; grid-row: 1;
    margin-bottom: 0.85rem; max-width: none;
  }

  /* spans the remaining rows so it has room to travel while the section scrolls */
  /* h2 normally follows an eyebrow (row 1). On sections with NO eyebrow the h2
     must claim row 1 itself, or the auto-placed lede takes row 1 and renders
     ABOVE its own heading — which it did, by 64px, on every closing CTA. */
  section:not(.hero) > .wrap > h2:first-child { grid-row: 1 / span 40; }
  section:not(.hero) > .wrap > h2 {
    grid-column: 1; grid-row: 2 / span 40;
    align-self: start; position: sticky; top: 2.75rem;
    font-size: clamp(1.3rem, 1.15rem + 0.55vw, 1.65rem);
    line-height: 1.14; max-width: 15ch;
  }

  /* everything else runs in one column on the right */
  section:not(.hero) > .wrap > * { grid-column: 2; }
  section:not(.hero) > .wrap > .eyebrow,
  section:not(.hero) > .wrap > h2 { grid-column: 1; }

  /* The right column must START on the same row as the h2, not the row above it.
     Row 1's height is set by whichever is taller — the eyebrow or the first
     right-column item — and the lede is always taller, so an auto-placed lede
     pushed every heading below its own body text. Verified at 1100px and 1440px. */
  section:not(.hero) > .wrap > .eyebrow + h2 + * { grid-row: 2; }
  section:not(.hero) > .wrap > h2:first-child + * { grid-row: 1; }

  section:not(.hero) > .wrap > .lede { margin-top: 0; max-width: 54ch; }
  section:not(.hero) > .wrap > .grid { margin-top: 2.25rem; }
  section:not(.hero) > .wrap > .faq { margin-top: 1.75rem; }
}

/* ---------- hero: light and oversized, not a dark banner ---------- */
.hero {
  background: var(--bone);
  padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(3rem, 2rem + 5vw, 6rem);
  border-bottom: 2px solid var(--ink);
}
.hero h1 { color: var(--ink); }
.hero .lede { max-width: 46ch; }

/* ---------- actions: square, not pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.85rem 1.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem;
  text-decoration: none; border: 1.5px solid transparent; border-radius: 0;
  cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn-primary:hover { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.section-dark .btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }

/* ===========================================================================
   RULED ROWS — replaces the card grid entirely.
   .grid stacks; each .card is a row with a mono meta column on the left.
   =========================================================================== */
.grid { display: block; margin-top: 3rem; border-top: 1px solid var(--rule); }
.section-dark .grid { border-top-color: var(--rule-dark); }

.card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding-block: clamp(1.4rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--rule-soft);
  background: transparent;
  border-radius: 0;
}
.section-dark .card { border-bottom-color: var(--rule-dark); background: transparent; }
.card > h3 { margin: 0; }
.card > p { color: var(--ink-3); max-width: 62ch; }
.section-dark .card > p { color: color-mix(in oklch, var(--bone) 62%, var(--steel)); }
.card > ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--ink-3); }
.card > ul li { margin-bottom: 0.35rem; }

/* the meta column: a call stage, never a number */
.stage {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--signal-ink);
  margin: 0 0 0.15rem;
}

/* Rows stay single-column with the label above. The section heading already
   occupies the margin column, so giving each row its own meta column too
   produces rail > heading > label > text — four steps, and it reads stepped. */

/* ---------- editorial blocks ---------- */
.truth {
  padding-block: clamp(1.6rem, 2.6vw, 2.2rem);
  border-bottom: 1px solid var(--rule-soft);
  max-width: 62rem;
}
.grid .truth:last-child, .grid .card:last-child { border-bottom: 0; }
.truth p { color: var(--ink-3); }
.truth p + p { margin-top: 0.85rem; }
.truth .who {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--signal-ink); margin-bottom: 0.8rem;
}
.truth .hook {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 1.08rem + 0.55vw, 1.55rem);
  line-height: 1.16; letter-spacing: -0.022em;
  color: var(--ink); margin-bottom: 0.85rem; max-width: 26ch;
}
.section-dark .truth { border-bottom-color: var(--rule-dark); }
.section-dark .truth .hook { color: var(--bone); }
.section-dark .truth p { color: color-mix(in oklch, var(--bone) 62%, var(--steel)); }

/* .truth stays single-column for the same reason as .card above. */

/* ---------- FAQ ---------- */
.faq { margin-top: 2.5rem; max-width: 62rem; border-top: 1px solid var(--rule); }
.section-dark .faq { border-top-color: var(--rule-dark); }
.faq details { border-bottom: 1px solid var(--rule-soft); padding-block: 1.2rem; }
.section-dark .faq details { border-bottom-color: var(--rule-dark); }
.faq summary {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  letter-spacing: -0.018em;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1.5rem;
  min-height: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--signal-ink);
  font-size: 1.35rem; line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 0.85rem; color: var(--ink-3); max-width: 66ch; }
.section-dark .faq details p { color: color-mix(in oklch, var(--bone) 62%, var(--steel)); }

/* ---------- form ---------- */
.form { margin-top: 2.5rem; max-width: 34rem; }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 0.5rem;
}
.section-dark .field label { color: color-mix(in oklch, var(--bone) 62%, var(--steel)); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink); background: var(--bone-2);
  border: 1px solid var(--rule); border-radius: 0;
  min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  /* keep a real outline: the inset line alone is not an equivalent focus cue */
  outline: 2px solid var(--signal); outline-offset: 1px;
  border-color: var(--signal);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.4rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink); color: color-mix(in oklch, var(--bone) 62%, var(--steel));
  padding-block: clamp(2.75rem, 2rem + 3vw, 4rem) 2rem;
  font-size: 0.93rem;
  border-top: 1px solid var(--rule-dark);
}
.foot-row { display: flex; flex-wrap: wrap; gap: 2.25rem 3rem; justify-content: space-between; }
.site-foot a { color: var(--bone); text-decoration: none; }
.site-foot a:hover { color: var(--signal); }
.site-foot .brand { color: var(--bone); }
.foot-nav {
  display: grid; gap: 0.6rem 2rem;
  grid-template-columns: 1fr;
  align-content: start;
}
@media (min-width: 36rem) { .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot-legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
}
