/* ============================================================
   DV Buildworks -- shared stylesheet
   Extracted from public/index.html on 2026-08-02 when the site
   went multi-page. Every page links this file; nothing else.
   Palette values, pairings, and measured contrast ratios live in
   brand/style-guide.html (not deployed).
   ============================================================ */

:root {
  --ink:      #0b1210;
  --ink-2:    #111b16;
  --ink-3:    #17241e;
  --paper:    #e8e2d6;
  --paper-2:  #ded6c4;
  --paper-dim:#98a89f;
  --ink-dim:  #565e54;
  --body-ink: #3c463f;
  --line:     rgba(232,226,214,.10);
  --line-2:   rgba(232,226,214,.16);
  --line-ink: rgba(11,18,16,.14);
  --accent:        #22b787;  /* Buildworks Emerald, the logo fill */
  --accent-bright: #3ddfa9;
  --accent-deep:   #0d6e50;  /* the accent whenever it sits on paper */
  --wash:          #10493a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

html, body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Bricolage Grotesque", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Blueprint grid + vignette, fixed behind everything */
.bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(ellipse at 30% 0%, rgba(16,73,58,.5), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(34,183,135,.12), transparent 55%);
  background-size: 88px 88px, 88px 88px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}
.grain {
  position: fixed;
  inset: 0;
  opacity: .3;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 2; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: .6rem 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .75rem;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,18,16,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { height: 22px; width: auto; display: block; fill: var(--accent); flex-shrink: 0; }
.brand .tick { color: var(--accent); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 1.75rem);
}
.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
  white-space: nowrap;
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--paper); border-color: var(--accent); outline: none; }
.nav-links a[aria-current="page"] { color: var(--paper); border-color: var(--line-2); }
.nav-links a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .5rem .9rem;
}
.nav-links a.nav-cta:hover, .nav-links a.nav-cta:focus-visible {
  background: var(--accent);
  color: var(--ink);
}

/* Services dropdown, CSS-only.
   Desktop opens on :hover for pointers and :focus-within for keyboards. There is no JS to
   manage aria-expanded, so the parent stays a real link to the services list: a device with
   no hover still reaches the same content by tapping it. Below 780px the panel is not a
   panel at all, it renders inline inside the hamburger (see the mobile block). */
.has-sub { position: relative; display: flex; align-items: center; }
.sub-parent { display: inline-flex; align-items: center; gap: .45rem; }
.caret {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform .25s;
}
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%;
  left: -1.1rem;
  min-width: 17.5rem;
  display: flex;
  flex-direction: column;
  padding: .45rem 0;
  /* Solid, not translucent: a menu panel sitting over body copy has to be readable, and
     an alpha background lets the text underneath show through the labels. */
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 20;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.submenu a {
  padding: .62rem 1.15rem;
  white-space: nowrap;
  letter-spacing: .1em;
  border-bottom: none;
  border-left: 2px solid transparent;
}
.submenu a:hover, .submenu a:focus-visible { background: var(--ink-2); }
.submenu a[aria-current="page"] { color: var(--paper); border-left-color: var(--accent); }
.submenu .sub-all {
  margin-top: .4rem;
  padding-top: .72rem;
  border-top: 1px solid var(--line);
  color: var(--accent);
}

/* Mobile: hamburger menu, CSS-only */
@media (max-width: 780px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: .6rem .2rem;
    margin: -.3rem 0;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--paper);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s;
  }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--accent); outline-offset: 3px; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(-1 * clamp(1.25rem, 4vw, 3rem));
    right: calc(-1 * clamp(1.25rem, 4vw, 3rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-2);
    padding: .5rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a {
    padding: .95rem 0;
    font-size: .78rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.nav-cta {
    margin-top: 1rem;
    text-align: center;
    border: 1px solid var(--accent);
    padding: .85rem 1rem;
  }

  /* Inside the hamburger the dropdown stops being a dropdown: hover does not exist on
     touch, and a nested toggle is one tap too many. The service links simply render
     indented under Services, always visible. */
  .has-sub { display: block; }
  .sub-parent { width: 100%; border-bottom: 1px solid var(--line); }
  .caret { display: none; }
  .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 .35rem;
    background: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .submenu a {
    padding: .72rem 0 .72rem 1.15rem;
    font-size: .72rem;
    white-space: normal;
    border-left: 1px solid var(--line-2);
    border-bottom: none;
  }
  .submenu a:hover, .submenu a:focus-visible { background: none; }
  .submenu .sub-all { margin-top: 0; padding-top: .72rem; border-top: none; }
}

/* ============ Hero ============ */
.hero {
  min-height: calc(100dvh - 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  position: relative;
}
.eyebrow { margin: 0 0 clamp(1rem, 3vw, 1.75rem); color: var(--accent); }
h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 8.5vw, 6.6rem);
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
  max-width: 17ch;
}
h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--paper);
}
h1 .accent { color: var(--accent); }
.lede {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--paper-dim);
  font-weight: 300;
}
.lede strong { color: var(--paper); font-weight: 600; }
.hero-ctas {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.6rem;
  border: 1px solid var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: linear-gradient(var(--accent), var(--accent)) left / 0% 100% no-repeat;
  transition: background-size .35s cubic-bezier(.2,.8,.2,1), color .35s;
}
.btn:hover, .btn:focus-visible { background-size: 100% 100%; color: var(--ink); outline: none; }
.btn .arrow { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arrow { transform: translateX(5px); }
.btn.ghost { border-color: var(--line-2); background-image: linear-gradient(var(--paper), var(--paper)); }
.btn.solid { background: var(--accent); color: var(--ink); font-weight: 700; }
.btn.solid:hover, .btn.solid:focus-visible { background: var(--paper); border-color: var(--paper); }

.hero-meta {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 560px) { .hero-meta { display: none; } }

/* Staggered entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s } .d2 { animation-delay: .18s } .d3 { animation-delay: .30s }
.d4 { animation-delay: .44s } .d5 { animation-delay: .58s } .d6 { animation-delay: .72s }

/* ============ Section scaffolding ============ */
section { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1;
}
.sheet-no { color: var(--accent); }

/* ============ Experience strip ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(19,26,36,.6);
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.strip .label { display: block; text-align: center; margin-bottom: 1.4rem; }
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.logos span {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: clamp(.85rem, 1.8vw, 1.05rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: .85;
  white-space: nowrap;
  transition: color .3s, opacity .3s;
}
.logos span:hover { color: var(--paper); opacity: 1; }

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.svc {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  position: relative;
  transition: background .3s;
}
.svc:hover { background: var(--ink-2); }
.svc::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.svc:hover::after { width: 100%; }
.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.svc .no { color: var(--accent); }
.svc .icon {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: .9;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.svc:hover .icon { transform: translateY(-3px); }
.svc h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}
/* Whole-card link. Nothing else in a card is interactive, so the
   stretched pseudo-element cannot swallow another control. */
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc h3 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.svc:hover h3 a { color: var(--accent); }
.svc p {
  margin: 0;
  color: var(--paper-dim);
  font-weight: 300;
  line-height: 1.6;
  font-size: .95rem;
  flex-grow: 1;
}
.svc .tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.svc .tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--line-2);
  padding: .25rem .55rem;
}
.svc .more {
  font-family: "JetBrains Mono", monospace;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc .more .arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.svc:hover .more .arrow { transform: translateX(4px); }

/* ============ LA section ============ */
.la {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 800px) { .la { grid-template-columns: 1fr; } }
.la h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.la h2 .outline { color: transparent; -webkit-text-stroke: 1.2px var(--paper); }
.la p { color: var(--paper-dim); font-weight: 300; line-height: 1.7; margin: 1.2rem 0 0; }
.la p strong { color: var(--paper); font-weight: 600; }
.coords { margin-top: 1.6rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.coords div { border-left: 2px solid var(--accent); padding-left: .9rem; }
.coords .big { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; display: block; }

/* ============ Paper section (process + certs + faq) ============ */
.paper-sheet {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  /* On paper the emerald flips to its deep cut so text contrast holds */
  --accent: var(--accent-deep);
}
.paper-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ink) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .35;
  pointer-events: none;
}
.paper-sheet > * { position: relative; }
.paper-sheet .mono { color: var(--ink-dim); }
.paper-sheet .sheet-head { border-color: var(--line-ink); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.step .no {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .15em;
}
.step h3 {
  margin: .5rem 0 .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: 1.25rem;
}
.step p { margin: 0; font-weight: 400; line-height: 1.6; font-size: .95rem; color: var(--body-ink); }

.certs {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 2px solid var(--ink);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--paper-2);
}
.certs .stamp {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: .55rem 1rem;
  transform: rotate(-2deg);
  white-space: nowrap;
}
.certs ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 2rem; flex-wrap: wrap; }
.certs li { font-weight: 600; font-size: 1rem; }
.certs li span { display: block; font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-top: .25rem; }

/* ============ FAQ ============ */
.faq-list { max-width: 52rem; }
.faq-list details {
  border-bottom: 1px solid var(--line-ink);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover, .faq-list summary:focus-visible { color: var(--accent); outline: none; }
.faq-list details p {
  margin: 0 0 1.25rem;
  max-width: 46rem;
  color: var(--body-ink);
  line-height: 1.65;
  font-weight: 400;
}

/* ============ Contact band ============ */
.contact {
  text-align: center;
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}
.contact h2 { font-size: clamp(2.2rem, 7vw, 5rem); }
.contact h2 .accent { color: var(--accent); }
.contact p { color: var(--paper-dim); font-weight: 300; max-width: 34rem; margin: 1.25rem auto 2rem; line-height: 1.6; }
.contact .email {
  display: block;
  margin-top: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--paper-dim);
}
.contact .email a { color: var(--paper); text-decoration-color: var(--accent); }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: 2rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--paper); }

/* Footer sitemap: the crawl path to every interior page */
.foot-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.foot-map h2 {
  font-size: .68rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.foot-map ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.foot-map a {
  text-decoration: none;
  color: var(--paper-dim);
  font-size: .92rem;
  font-weight: 300;
  transition: color .25s;
}
.foot-map a:hover, .foot-map a:focus-visible { color: var(--paper); outline: none; }

/* ============================================================
   Interior pages (added 2026-08-02 with the multi-page build)
   ============================================================ */

/* Breadcrumbs */
.crumbs { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}
.crumbs li { display: flex; align-items: center; gap: .55rem; }
.crumbs li + li::before { content: "/"; color: var(--accent); }
.crumbs a { text-decoration: none; color: var(--paper-dim); transition: color .25s; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--paper); outline: none; }
.crumbs [aria-current="page"] { color: var(--paper); }

/* Interior hero: shorter than the homepage's full-viewport hero */
.subhero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.subhero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.8rem);
  max-width: 19ch;
}
.subhero .lede { max-width: 44rem; }

/* Generic prose block on the dark ground */
.prose { max-width: 46rem; }
.prose p {
  color: var(--paper-dim);
  font-weight: 300;
  line-height: 1.75;
  font-size: 1.03rem;
  margin: 0 0 1.25rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a { color: var(--paper); text-decoration-color: var(--accent); text-underline-offset: .2em; }

/* Feature blocks: the substance of a service page */
/* Exactly two columns, not auto-fit. Every feature grid on the site holds four items, and
   auto-fit resolves to three at desktop width, leaving two empty cells that expose the
   container's line colour as visible grey blocks. Two columns always fills 2x2. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.feature .no { color: var(--accent); }
.feature h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}
.feature p {
  margin: 0;
  color: var(--paper-dim);
  font-weight: 300;
  line-height: 1.65;
  font-size: .95rem;
}

/* Deliverables checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: .9rem clamp(1.5rem, 4vw, 3rem);
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--paper-dim);
  font-weight: 300;
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: .7rem;
  height: .38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--paper); font-weight: 600; }

/* Tool / platform chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.chips span {
  font-family: "JetBrains Mono", monospace;
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--line-2);
  padding: .4rem .7rem;
}

/* Two-column split for a heading beside its copy */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Work & Experience entries */
.work-list { display: flex; flex-direction: column; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.work-item {
  background: var(--ink);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.25rem, 4vw, 3rem);
}
@media (max-width: 820px) { .work-item { grid-template-columns: 1fr; gap: 1rem; } }
.work-item h3 {
  margin: 0 0 .5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.work-item .sector { display: block; margin-bottom: .9rem; }
.role {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .3rem .6rem;
}
.work-item ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.work-item li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--paper-dim);
  font-weight: 300;
  line-height: 1.6;
  font-size: .97rem;
}
.work-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .55rem;
  height: 1px;
  background: var(--accent);
}

/* Related services: the internal link mesh at the foot of each page */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.related a {
  background: var(--ink);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background .3s;
}
.related a:hover, .related a:focus-visible { background: var(--ink-2); outline: none; }
.related .t { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.related a:hover .t, .related a:focus-visible .t { color: var(--accent); }
.related .d { color: var(--paper-dim); font-weight: 300; font-size: .88rem; line-height: 1.55; }

/* A callout worth setting apart from body copy */
.note {
  border-left: 3px solid var(--accent);
  padding: .3rem 0 .3rem 1.4rem;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  max-width: 46rem;
  color: var(--paper-dim);
  font-weight: 300;
  line-height: 1.7;
}
.note strong { color: var(--paper); font-weight: 600; }

/* ============================================================
   THE SPEC SHEET: interior pages (`<body class="doc">`)
   ============================================================
   The homepage is the marquee: dark ground, full-viewport hero, emerald on black.
   Interior pages are documents: cream drafting stock, a finer ink grid, a bordered
   title block instead of a hero, and a dark contact band closing the sheet.

   Shared across both: the fonts, the emerald, the grid motif, the nav, the footer.
   Everything below is scoped to `body.doc`, so the homepage cannot be touched by it.
   ============================================================ */

body.doc { background: var(--paper); color: var(--ink); }

/* Finer grid, ink instead of paper, and the emerald wash pulled right back.
   56px against the homepage's 88px: a drawing is ruled tighter than a sign. */
body.doc .bg {
  background-image:
    linear-gradient(var(--line-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ink) 1px, transparent 1px),
    radial-gradient(ellipse at 15% -10%, rgba(13,110,80,.10), transparent 55%),
    radial-gradient(ellipse at 100% 105%, rgba(13,110,80,.07), transparent 50%);
  background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%;
}
body.doc .grain { opacity: .12; mix-blend-mode: multiply; }

/* Ink content. The nav and footer stay dark, so they keep the bright accent:
   only the sheet itself flips to the deep cut that holds AA on cream. */
body.doc .crumbs,
body.doc .subhero,
body.doc section:not(.contact) {
  --accent: var(--accent-deep);
  color: var(--ink);
}
body.doc .crumbs .mono,
body.doc .subhero .mono,
body.doc section:not(.contact) .mono { color: var(--ink-dim); }
body.doc .crumbs a { color: var(--ink-dim); }
body.doc .crumbs a:hover, body.doc .crumbs a:focus-visible { color: var(--ink); }
body.doc .crumbs [aria-current="page"] { color: var(--ink); }

body.doc h1 .outline { -webkit-text-stroke-color: var(--ink); }
body.doc .lede { color: var(--body-ink); }
body.doc .lede strong { color: var(--ink); }
body.doc .sheet-head { border-color: var(--line-ink); }

/* --- The title block. A drawing is identified by a bordered stamp, not a hero. --- */
body.doc .subhero {
  border-top: 3px solid var(--ink);
  padding-top: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(.5rem, 2vw, 1rem);
}
.titleblock {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
}
.titleblock > div {
  padding: .85rem 1.1rem;
  border-left: 1px solid var(--line-ink);
}
.titleblock > div:first-child { border-left: none; }
.titleblock dt {
  font-size: .58rem;
  letter-spacing: .18em;
  color: var(--ink-dim);
  margin: 0 0 .35rem;
}
.titleblock dd {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--ink);
}
/* Stack early. Three cramped columns wrap the longer service names onto two lines each,
   which reads worse than four clean stacked rows. */
@media (max-width: 720px) {
  .titleblock { grid-template-columns: 1fr; }
  .titleblock > div { border-left: none; border-top: 1px solid var(--line-ink); }
  .titleblock > div:first-child { border-top: none; }
}

/* --- Components, re-cut for paper --- */
body.doc .feature-grid,
body.doc .related,
body.doc .work-list { background: var(--line-ink); border-color: var(--ink); }
body.doc .feature,
body.doc .related a,
body.doc .work-item { background: var(--paper); }
body.doc .related a:hover,
body.doc .related a:focus-visible { background: var(--paper-2); }
body.doc .feature p,
body.doc .related .d,
body.doc .work-item li,
body.doc .checklist li,
body.doc .prose p,
body.doc .note { color: var(--body-ink); }
body.doc .checklist strong,
body.doc .prose strong,
body.doc .note strong,
body.doc .related .t { color: var(--ink); }
body.doc .prose a { color: var(--ink); text-decoration-color: var(--accent-deep); }
body.doc .chips span { border-color: var(--line-ink); color: var(--ink-dim); }
body.doc .logos span { color: var(--ink-dim); }
body.doc .work-item h3 { color: var(--ink); }
body.doc .work-item li::before { background: var(--accent-deep); }
body.doc .role { color: var(--accent-deep); border-color: var(--accent-deep); }
body.doc .note { border-left-color: var(--accent-deep); }

/* Buttons: cream ground means the label has to be ink until the fill arrives. */
body.doc .subhero .btn { color: var(--ink); border-color: var(--accent-deep); }
body.doc .subhero .btn:hover,
body.doc .subhero .btn:focus-visible { color: var(--paper); }
body.doc .subhero .btn.ghost {
  border-color: var(--line-ink);
  background-image: linear-gradient(var(--ink), var(--ink));
}
body.doc .subhero .btn.solid { background: var(--accent-deep); color: var(--paper); }
body.doc .subhero .btn.solid:hover,
body.doc .subhero .btn.solid:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* The inset panel. On a paper page a paper band is invisible, so it earns its
   separation from rules and a shade, not from a colour flip. */
body.doc .paper-sheet {
  background: var(--paper-2);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
body.doc .paper-sheet::before { opacity: .5; }

/* The sheet closes on dark: the contact band and the footer are the frame, not the page.
   The band needs its own full-bleed wrapper because `.contact` is also a `.wrap`, and a
   background on a max-width box stops at the measure instead of reaching the edges. */
body.doc .band-dark {
  background: var(--ink);
  color: var(--paper);
}
body.doc .band-dark .mono { color: var(--paper-dim); }
body.doc .band-dark p { color: var(--paper-dim); }
body.doc .band-dark .email a { color: var(--paper); }
body.doc footer {
  background: var(--ink);
  color: var(--paper);
  border-top-color: var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  * { transition: none !important; }
}
