:root {
  /* Brand palette, carried over unchanged from the existing site */
  --gold: #B8986A;
  --gold-light: #D4B896;
  --gold-text: #8B6A30;
  --gold-rule: rgba(184, 152, 106, 0.25);
  --ink: #1A1A1A;
  --ink-mid: #3F3A34;
  --ink-light: #6A635A;
  --charcoal: #2E2C2A;
  --rule: #E2DDD8;
  --bg: #FFFFFF;

  /* Two tonal surfaces in one warm family. Contrast never jumps palette. */
  --bg-soft: #FAF9F6;
  --bg-deep: #F3F0EA;

  /* Diagrams are printed figures. Their plate stays paper in both themes,
     because the drawings themselves carry fixed ink and gold. */
  --plate: #FFFFFF;
  --plate-edge: #E2DDD8;

  /* Shadows carry the paper's hue rather than neutral black */
  --shade-soft: 0 1px 2px rgba(58, 48, 34, 0.05);
  --shade-lift: 0 18px 40px -24px rgba(58, 48, 34, 0.30);

  --glow: radial-gradient(ellipse at 42% 52%, rgba(184, 152, 106, 0.09) 0%, transparent 68%);
  --divider: linear-gradient(to right, transparent, var(--gold-rule), transparent);
  --grain-opacity: 0.22;
  --grain-blend: multiply;
  --nav-bg: rgba(255, 255, 255, 0.92);

  /* Type */
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body: 'Geist', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  /* Measure */
  --measure: 62ch;
  --measure-tight: 46ch;
  --page: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --rail: clamp(0px, 4vw, 76px);

  /* Vertical rhythm. Bottom runs heavier than top: optically even, not
     mathematically equal. */
  --space-section-top: clamp(60px, 8vw, 116px);
  --space-section-bottom: clamp(72px, 9.6vw, 136px);
  --space-block: clamp(32px, 4vw, 56px);

  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: clamp(16px, 0.9rem + 0.3vw, 19px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-mid);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A single fixed grain tile over the whole page. Breaks the flatness of large
   paper fields without reading as texture in its own right. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background-image: url("/assets/img/grain.png");
  background-size: 160px 160px;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
}

img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

/* Display type runs larger and tighter than before. At the top of the scale
   Newsreader needs light negative tracking to hold together. */
h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.008em;
}

p {
  margin: 0 0 1.15em;
  max-width: var(--measure);
  text-wrap: pretty;
}
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

main a:not([class]) {
  color: var(--ink);
  border-bottom: 1px solid var(--gold-rule);
  transition: border-color 0.18s var(--ease);
}
main a:not([class]):hover { border-bottom-color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold-light); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* Anchor targets clear the fixed masthead. */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---------- page frame ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: calc(var(--gutter) + var(--rail)) var(--gutter);
}

main { position: relative; }

.section {
  padding-block: var(--space-section-top) var(--space-section-bottom);
}
/* Sections are parted by the gold gradient hairline the live site used, not a
   flat grey rule. */
.section + .section { position: relative; }
.section + .section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--divider);
}
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); }

/* One contrast moment per page. It stays in the paper family: the deepest
   tone, framed top and bottom by the gold hairline, with the type stepped up.
   Same job the charcoal panel did, without leaving the light theme. */
.section--feature {
  background: var(--bg-deep);
  position: relative;
}

/* The copy never reaches the plate. */
.section--feature .prose > * { max-width: min(var(--measure), 54ch); }

@media (max-width: 1100px) {
  .section--feature { background-image: none; }
}
.section--feature::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--divider);
}
.section--feature h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.section--feature .prose > p { font-size: 1.05rem; }

/* A text column that never outruns its measure, even inside a wide grid */
.prose > * { max-width: var(--measure); }

/* A bare heading inside a prose column still needs air beneath it. Headings in
   .section__head get their spacing from the head block instead. */
.prose > h2 { margin-bottom: 0.5em; }
.prose > h2 + p { margin-top: 0; }
.prose > .eyebrow + h2 { margin-top: 0; }

/* ---------- masthead ---------- */

/* Fixed, lightly blurred, as on the live site. The page reserves its height so
   nothing hides beneath it. */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--rule);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body { padding-top: var(--nav-h); }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--nav-h);
  padding-block: 12px;
}

.logo {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-right: auto;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 36px; }

.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-mid);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .masthead__inner { flex-wrap: wrap; gap: 0 16px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-right: -10px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0 8px;
  }
  .nav-toggle span {
    display: block;
    height: 1px;
    background: var(--ink);
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.26s var(--ease), visibility 0s linear 0.26s;
  }
  .nav.is-open { max-height: 320px; visibility: visible; transition: max-height 0.26s var(--ease); }
  .nav a {
    width: 100%;
    padding-block: 13px;
    border-top: 1px solid var(--rule);
    border-bottom: 0;
    font-size: 0.95rem;
  }
  .nav a[aria-current="page"] { border-bottom: 0; color: var(--gold-text); }
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-deep);
  padding-block: 52px 56px;
  font-size: 0.82rem;
  color: var(--ink-light);
  position: relative;
  z-index: 10;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: baseline;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; }
.footer__links a {
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer__links a:hover { border-bottom-color: var(--gold); color: var(--ink); }
.footer p { margin: 0; max-width: none; }

@media (max-width: 560px) {
  .footer__links { margin-left: 0; flex-basis: 100%; }
}

/* ---------- eyebrow ---------- */

.eyebrow {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 20px;
  max-width: none;
}

/* The recurring three-rule mark. Used once per page, never twice. */
.rules {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 26px;
}
.rules i {
  display: block;
  height: 1px;
  background: var(--gold);
  transform-origin: left center;
}
.rules i:nth-child(1) { width: 64px; }
.rules i:nth-child(2) { width: 38px; opacity: 0.66; }
.rules i:nth-child(3) { width: 18px; opacity: 0.4; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(56px, 7vw, 96px) clamp(60px, 8vw, 108px);
  position: relative;
  isolation: isolate;
}


/* Entry animation runs on load, not on scroll: the page is never parked
   invisible waiting for an observer. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero .eyebrow,
  .hero__aside,
  .hero .actions {
    animation: fadeUp 0.7s var(--ease) both;
  }
  .hero .eyebrow { animation-delay: 0.02s; }
  .hero h1 { animation-delay: 0.1s; }
  .hero__aside { animation-delay: 0.22s; }
  .hero .actions { animation-delay: 0.32s; }
  .rules i { animation: ruleExpand 0.8s var(--ease) both; }
  .rules i:nth-child(1) { animation-delay: 0.3s; }
  .rules i:nth-child(2) { animation-delay: 0.38s; }
  .rules i:nth-child(3) { animation-delay: 0.46s; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ruleExpand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Asymmetric: the headline starts on the grid, the supporting column is pushed
   off it and down, so the composition is not a single left-aligned stack. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 0 clamp(48px, 6vw, 96px);
    align-items: center;
  }
}

.hero__lead > .actions { margin-top: 40px; }

.hero h1 { margin-bottom: 0; max-width: 22ch; font-size: clamp(2.3rem, 4.3vw, 64px); }

.hero__lede {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-mid);
  max-width: 38ch;
  margin-top: 26px;
  margin-bottom: 0;
}

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; align-items: center; }
.actions .btn + .more { margin-left: 10px; }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  color: var(--bg);
  background: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn:hover { background: var(--charcoal); border-color: var(--gold); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--ghost { border-color: var(--rule); color: var(--ink-light); background: transparent; }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.more {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold-rule);
  padding-bottom: 3px;
  transition: border-color 0.18s var(--ease);
}
.more:hover { border-bottom-color: var(--gold); }
.more:active { border-bottom-color: var(--gold-text); }
.more::after {
  content: " \2192";
  color: var(--gold-text);
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.more:hover::after { transform: translateX(3px); }

/* ---------- section heading ---------- */

.section__head {
  margin-bottom: var(--space-block);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.section__head h2 { margin-bottom: 0; }
.section__head p { color: var(--ink-mid); margin-bottom: 0; }

/* ---------- work list ---------- */

.work { border-top: 1px solid var(--rule); }

.work__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-block: clamp(30px, 3.6vw, 46px);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 90px;
}

/* Three columns: the catalogue mark, the entry itself, and its diagram. The
   third column is what stops the row dying two thirds of the way across. */
@media (min-width: 1000px) {
  .work__item {
    grid-template-columns: 76px minmax(0, 1fr) 286px;
    gap: 0 clamp(36px, 3.6vw, 60px);
    align-items: start;
  }
}

@media (min-width: 720px) and (max-width: 999px) {
  .work__item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0 32px;
  }
  .work__figure { grid-column: 2; margin-top: 22px; max-width: 320px; }
}

.work__mark { max-width: none; }

.work__num {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-text);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 10px;
}

.work__sector {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.4;
}

.work__body > *:last-child { margin-bottom: 0; }

.work__title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  max-width: 20ch;
}
.work__link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.work__item:hover .work__link { border-bottom-color: var(--gold); }

.work__dek { color: var(--ink-mid); margin-bottom: 0; max-width: 54ch; }

.work__result {
  display: block;
  margin-top: 14px;
  padding-left: 15px;
  border-left: 2px solid var(--gold);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}

/* The diagram, cropped into the row. Sits on the deeper paper tone with a
   tinted lift so it reads as an object on the page rather than a flat panel. */
.work__figure {
  margin: 0;
  padding: 16px;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  box-shadow: var(--shade-soft);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.work__item:hover .work__figure {
  box-shadow: var(--shade-lift);
  transform: translateY(-2px);
}
.work__figure svg { display: block; width: 100%; height: auto; }

/* At list size the diagram labels render around 6px, which reads as texture.
   The case study page carries the full diagram. */
.work__figure { display: none; }
@media (min-width: 1000px) {
  .work__item { grid-template-columns: 76px minmax(0, 1fr); }
}

/* ---------- capability list ---------- */

.caps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 44px) clamp(40px, 5vw, 80px);
}

@media (min-width: 720px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.caps__item > * { max-width: 44ch; }

.caps__name {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-rule);
  max-width: 18ch;
  /* Two lines' worth, so the rule and the body copy sit on the same baseline
     across the row whether the name wraps or not. */
  min-height: calc(2 * 1.12em);
  display: flex;
  align-items: flex-end;
}

.caps__desc { margin-bottom: 0; color: var(--ink-mid); }

/* ---------- prose article ---------- */

.article { max-width: var(--measure); }

/* Sentence-case serif subheads, not another row of uppercase sans labels.
   The uppercase treatment is reserved for eyebrows and catalogue marks. */
.article h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: clamp(40px, 5vw, 60px) 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.article h3 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin: clamp(34px, 4vw, 46px) 0 12px;
}
.article > p { font-size: 1.02rem; }
.article ul { margin: 0 0 1.15em; padding-left: 1.15em; max-width: var(--measure); }
.article ul:not(.roll) { list-style: none; padding-left: 0; }
.article ul:not(.roll) li { position: relative; padding-left: 1.4em; }
.article ul:not(.roll) li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 0.6em; height: 1px; background: var(--gold);
}
.article li { margin-bottom: 0.5em; text-wrap: pretty; }

.lede {
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  line-height: 1.52;
  color: var(--ink);
  margin-bottom: 1.3em;
}

/* ---------- case study layout ---------- */

.case__head { padding-block: clamp(58px, 8vw, 108px) clamp(34px, 4vw, 50px); }



.case__result {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  margin-bottom: 0.5rem;
}

.case__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); }

@media (min-width: 1000px) {
  .case__grid { grid-template-columns: minmax(0, 1fr) 430px; gap: 76px; align-items: start; }
  .case__figure { position: sticky; top: 92px; }
}

.case__figure {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--plate-edge);
  background: var(--plate);
  box-shadow: var(--shade-soft);
}
.case__figure svg { display: block; width: 100%; height: auto; }

.case__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: baseline;
  padding-block: 38px;
  border-top: 1px solid var(--rule);
  margin-top: var(--space-section-top);
}
.case__nav .more + .more { margin-left: auto; }
@media (max-width: 560px) { .case__nav .more + .more { margin-left: 0; } }

/* ---------- about ---------- */

.about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 76px; align-items: start; }
  .portrait { position: sticky; top: 92px; }
}

.portrait { margin: 0; position: relative; }

.portrait img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  box-shadow: var(--shade-soft);
}
.portrait figcaption {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-light);
  margin-top: 14px;
}

/* The agency list, set as a typographic line rather than a logo wall. */
.roll {
  margin: clamp(34px, 4vw, 48px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: none;
  list-style: none;
  padding-left: 0;
}
.roll li {
  position: relative;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
/* Every item carries a separator in the gap to its left. The list clips its
   own overflow, so the one that starts each wrapped line is cut off. */
.roll { overflow: hidden; }
.roll li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.9em;
  background: var(--gold);
}
.article .roll { padding-left: 0; margin-left: 0; }

/* ---------- contact form ---------- */

.form { max-width: 34rem; margin-top: var(--space-block); }
.form__row { margin-bottom: 26px; }

.form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.form input,
.form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color 0.18s var(--ease);
}
.form textarea { min-height: 128px; resize: vertical; }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.form input::placeholder,
.form textarea::placeholder { color: var(--ink-light); opacity: 0.7; }

.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] { border-bottom-color: #A6431F; }

.form__error {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #A6431F;
  min-height: 1px;
}

.form__note { font-size: 0.82rem; color: var(--ink-light); margin-top: 24px; }

.form__sent {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(96px, 16vw, 200px); }

/* ---------- method ---------- */

.method {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px 72px;
}
@media (min-width: 720px) {
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.method li {
  counter-increment: step;
  position: relative;
  padding-left: 4.2rem;
  margin: 0;
  color: var(--ink-mid);
  max-width: 46ch;
}
.method li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.32em;
  width: 3.2rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--gold-text);
  font-variant-numeric: lining-nums tabular-nums;
}
.method strong { color: var(--ink); font-weight: 500; display: block; }

/* ---------- commercial band ---------- */

.band { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) {
  .band { grid-template-columns: minmax(0, 1fr) 460px; gap: 76px; }
}
.band h2 { margin-top: 0; }
.band__result {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-size: 1.05rem;
}
.band__figure {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--plate-edge);
  background: var(--plate);
  box-shadow: var(--shade-soft);
}
.band__figure svg { display: block; width: 100%; height: auto; }

/* Secondary hero link, deliberately lighter than the button beside it. */
.more--quiet { color: var(--ink-mid); font-size: 0.92rem; }

/* ---------- hero portrait and credentials ---------- */

.hero__portrait { margin: 0; position: relative; max-width: 340px; justify-self: end; width: 100%; }
.hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: var(--shade-lift);
}
.hero__portrait figcaption {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink);
}

@media (max-width: 899px) {
  .hero__portrait { justify-self: start; max-width: 260px; }
}

/* Every employer, grouped. Names set in the display face, not logos. */
.creds {
  margin: 0;
  padding-block: 28px clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
@media (min-width: 900px) {
  .creds { grid-template-columns: auto minmax(0, 1fr); gap: 22px clamp(40px, 5vw, 72px); }
  .creds__group--wide { grid-column: 1 / -1; }
}
.creds__group { margin: 0; }
.creds dt {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-light);
}
.creds dd { margin: 0; }
.creds ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.creds li {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 500;
  color: var(--ink);
}

.case__head h1 { max-width: 22ch; }
.case__head h1 + .rules { margin-top: 30px; }
.case__head .lede { max-width: 52ch; }

/* ---------- two-column statement with supporting list ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 88px; align-items: start; }
}
.split h2 { margin-top: 0; }
.split__label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--ink-light);
}
.proof { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.proof li {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-mid);
}
.proof strong { color: var(--ink); font-weight: 500; }

/* ---------- editorial accents carried from the original site ---------- */

/* The live site set the second beat of its headline in gold italic. */
h1 em { font-style: italic; font-weight: 400; color: var(--gold-text); }

.signoff {
  margin-top: 28px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink);
}

/* One dark band per page: the original site's charcoal panel, used once for
   the strongest proof rather than for lead qualification. */
.section--dark {
  background: var(--charcoal);
  color: #D9D3CA;
}
.section--dark h2 { color: #FFFFFF; }
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark p { color: #D9D3CA; }
.section--dark .band__result { color: #FFFFFF; border-left-color: var(--gold); }
.section--dark .more { color: #FFFFFF; border-bottom-color: rgba(212, 184, 150, 0.4); }
.section--dark .more::after { color: var(--gold-light); }
.section--dark .band__figure { border-color: transparent; box-shadow: none; }
.section + .section--dark::before, .section--dark + .section::before { display: none; }

/* Plain topic label above an essay. Sentence case, so the page is not a
   column of uppercase micro-labels. */
.topic { margin: clamp(34px, 4vw, 46px) 0 6px; font-size: 0.82rem; color: var(--ink-light); }
.topic + h3 { margin-top: 0; }

/* ---------- scale facts ---------- */

.facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts li { margin: 0; color: var(--ink-mid); font-size: 0.92rem; line-height: 1.4; }
.facts strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
}
.facts + .creds { border-top: 0; padding-top: 0; }
.split > .proof { align-self: start; }

/* ---------- final review fixes ---------- */

.proof--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 56px;
  border-top: 0;
}
@media (min-width: 900px) { .proof--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof--grid li { border-top: 1px solid var(--rule); border-bottom: 0; }
.split__label { margin-top: 28px; }

.case__cta {
  margin-top: var(--space-section-top);
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.case__cta p { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--ink); max-width: none; }
.case__cta + .case__nav { margin-top: 0; }

@media (max-width: 560px) {
  .case__figure { padding: 12px; }
}
@media (max-width: 999px) {
  .case__grid { display: flex; flex-direction: column; }
  .case__figure { order: -1; }
}

/* Touch targets: 44px minimum on phones. */
@media (max-width: 760px) {
  .more, .footer__links a { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; }
}
.work__close { padding-bottom: var(--space-section-bottom); }

.section--feature { padding-bottom: calc(var(--space-section-bottom) * 1.25); }
.section--feature .form { max-width: 640px; }

/* Desktop: the headline always breaks after the comma, whatever the column width. */
@media (min-width: 900px) {
  .hero h1 { max-width: none; font-size: clamp(2.3rem, 3.9vw, 58px); }
  .hero h1 .l { display: block; white-space: nowrap; }
  .hero__grid { column-gap: clamp(48px, 5vw, 72px); }
}

/* ---------- photography ---------- */

.lean { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) { .lean { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.lean__img, .band__photo, .wide-img { margin: 0; }
.lean__img img, .band__photo img, .wide-img img {
  display: block; width: 100%; height: auto; box-shadow: var(--shade-lift);
}
.lean .prose h2 { margin-top: 0; }
.lean .proof { margin-top: 28px; }
@media (max-width: 999px) { .lean__img { max-width: 420px; order: 2; } }

.wide-img { margin-bottom: clamp(36px, 5vw, 56px); }
.wide-img img { aspect-ratio: 21 / 8; object-fit: cover; object-position: center 45%; }
@media (max-width: 719px) { .wide-img img { aspect-ratio: 3 / 2; } }

.section--dark .band__photo img { box-shadow: none; }
