/* Nophil Consulting. Four inks: brick, soot, limestone, iron. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/bigshoulders-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/bigshoulders-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-italic-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-italic-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --wall-top: clamp(28px, 5vw, 72px);
  --brick: #8f3a28;
  --soot: #1d1b1a;
  --lime: #cfcbc2;
  --iron: #3c4a45;

  --bar: clamp(8px, 0.9vw, 14px);          /* iron mullion width */
  --gutter: clamp(16px, 4vw, 64px);
  --pane-pad: clamp(20px, 2.6vw, 44px);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", sans-serif;

  /* running-bond brick, soot joints; tile = two courses */
  --brick-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='52' viewBox='0 0 120 44'%3E%3Cg fill='%231d1b1a'%3E%3Crect y='20' width='120' height='2'/%3E%3Crect y='42' width='120' height='2'/%3E%3Crect x='118' y='0' width='2' height='20'/%3E%3Crect x='58' y='22' width='2' height='20'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--soot);
  color: var(--soot);
  font-family: var(--text);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brick); color: var(--lime); }
.on-dark ::selection, .wall ::selection { background: var(--lime); color: var(--soot); }

html { scrollbar-color: var(--iron) var(--soot); }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; transition: text-underline-offset 0.25s cubic-bezier(.16,1,.3,1), text-decoration-color 0.25s; }
a:hover { text-underline-offset: 0.34em; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.on-dark :focus-visible, .wall :focus-visible, .rail :focus-visible { outline-color: var(--lime); }

img { display: block; max-width: 100%; height: auto; }
p, ul, ol, dl, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--lime); color: var(--soot); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- iron rail (top bar) ---------- */
.rail {
  position: sticky; top: 0; z-index: 40;
  background: var(--soot); color: var(--lime);
  border-bottom: var(--bar) solid var(--iron);
}
.rail__inner {
  display: flex; align-items: center; gap: clamp(12px, 2.4vw, 36px);
  padding: 12px var(--gutter);
}
.rail__mark {
  font-family: var(--display); font-weight: 900; font-size: 1.35rem; letter-spacing: 0.02em;
  text-transform: uppercase; text-decoration: none; line-height: 1;
  margin-right: auto;
}
.rail__nav { display: flex; gap: clamp(12px, 2vw, 28px); }
.rail__nav a, .rail__lang a, .rail__lang span {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
}
.rail__nav a:hover, .rail__lang a:hover { text-decoration: underline; }
.rail__lang { display: flex; gap: 8px; align-items: center; }
.rail__lang span[aria-current] { border-bottom: 2px solid var(--lime); }
.rail__lang .sep { width: 2px; height: 1em; background: var(--iron); }
.rail__icon { display: inline-flex; width: 22px; height: 22px; }
.rail__icon svg { width: 100%; height: 100%; fill: currentColor; }

@media (max-width: 760px) {
  .rail__nav { display: none; }
}

/* ---------- brick wall ---------- */
.wall {
  background-color: var(--brick);
  background-image: var(--brick-tile);
  background-size: 144px 52.8px;
  color: var(--lime);
  padding: var(--wall-top) var(--gutter) clamp(28px, 4vw, 56px);
  position: relative;
}

/* painted ghost-sign lettering */
.paint {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.005em;
  color: var(--lime);
  /* room above the cap line so diacritics (Ä, Ö, Å) stay inside the mask box */
  padding-top: 0.18em;
  margin-top: -0.18em;
  /* the paint sits in the wall: brick joints read through it, wear follows the surface */
  --jx: calc(-1 * var(--gutter));
  --jy: calc(0.18em - var(--wall-top));
  --sweep: linear-gradient(90deg, #000 0 33.4%, rgba(0, 0, 0, 0.32) 33.4% 100%); /* unpainted part shows as a faded ghost sign, never blank */
  --joints: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='52.8' viewBox='0 0 120 44' preserveAspectRatio='none'%3E%3Cg fill='%23fff'%3E%3Crect width='118' height='20'/%3E%3Crect y='22' width='58' height='20'/%3E%3Crect x='60' y='22' width='60' height='20'/%3E%3C/g%3E%3C/svg%3E");
  --weather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.045 0.07' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -9 7.3'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23w)'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--sweep), var(--weather), var(--joints);
  mask-image: var(--sweep), var(--weather), var(--joints);
  -webkit-mask-size: 300% 100%, 420px 420px, 144px 52.8px;
  mask-size: 300% 100%, 420px 420px, 144px 52.8px;
  -webkit-mask-repeat: no-repeat, repeat, repeat;
  mask-repeat: no-repeat, repeat, repeat;
  -webkit-mask-position: 0 0, 0 0, var(--jx) var(--jy);
  mask-position: 0 0, 0 0, var(--jx) var(--jy);
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect;
}
/* the sign is a <p> (the offer line is the page h1); keep the balanced wrap it had as a heading */
.paint--sign { font-size: clamp(3.4rem, 13.4vw - 0.9rem, 17rem); white-space: nowrap; text-wrap: balance; }
.paint--sign span { display: inline; }
@media (max-width: 720px) {
  /* the words wrap on their own at this size; block children would break the mask in Chrome */
  .paint--sign { font-size: clamp(2.8rem, 18.2vw, 8rem); white-space: normal; }
}

/* runs only when JS adds .is-stenciling on a visible tab; without it the sign rests fully painted */
.paint--sign.is-stenciling { animation: stencil 1.15s steps(9, end); }
@keyframes stencil {
  from { -webkit-mask-position: 100% 0, 0 0, var(--jx) var(--jy); mask-position: 100% 0, 0 0, var(--jx) var(--jy); }
  to { -webkit-mask-position: 0 0, 0 0, var(--jx) var(--jy); mask-position: 0 0, 0 0, var(--jx) var(--jy); }
}
@media (prefers-reduced-motion: reduce) {
  .paint--sign.is-stenciling { animation: none; }
}

.wall__note {
  margin-top: clamp(14px, 1.8vw, 24px);
  font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
}

/* ---------- iron window (pane grids) ---------- */
.window {
  display: grid;
  gap: var(--bar);
  background-color: var(--soot);
  border: var(--bar) solid var(--soot);
  --rivet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%233c4a45'/%3E%3C/svg%3E");
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet);
  background-repeat: no-repeat;
  background-origin: border-box;
  background-size: calc(var(--bar) * 0.56) calc(var(--bar) * 0.56);
  background-position: left calc(var(--bar) * 0.22) top calc(var(--bar) * 0.22), right calc(var(--bar) * 0.22) top calc(var(--bar) * 0.22), left calc(var(--bar) * 0.22) bottom calc(var(--bar) * 0.22), right calc(var(--bar) * 0.22) bottom calc(var(--bar) * 0.22);
}
/* sash panes slide open once as their window enters (JS adds the classes; content is visible without it) */
html.js .window.is-shut > .pane { clip-path: inset(100% 0 0 0); }
html.js .window.is-open > .pane { animation: sash 0.9s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes sash { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  html.js .window.is-shut > .pane { clip-path: none; }
  html.js .window.is-open > .pane { animation: none; }
}
.pane { background: var(--lime); color: var(--soot); padding: var(--pane-pad); min-width: 0; }
.pane--iron { background: var(--iron); color: var(--lime); }
.pane--soot { background: var(--soot); color: var(--lime); }

.hero-window {
  margin-top: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
}
.hero-window .pane--offer { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 26px); }
.offer__lead {
  font-family: var(--text); font-weight: 700;
  font-size: clamp(1.45rem, 1.05rem + 1.35vw, 2.35rem);
  line-height: 1.12; letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: wrap; /* the page h1; wraps as the paragraph it replaced */
}
.offer__body { max-width: 46ch; }
.offer__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.svc-pane { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: background-color 0.3s cubic-bezier(.16,1,.3,1), color 0.3s; }
.svc-pane__name {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem); line-height: 0.98; letter-spacing: 0.01em;
}
.svc-pane__line { font-size: 0.98rem; max-width: 34ch; }
a.svc-pane:hover, a.svc-pane:focus-visible { background: var(--iron); color: var(--lime); }

@media (max-width: 980px) {
  .hero-window { grid-template-columns: 1fr 1fr; }
  .hero-window .pane--offer { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .hero-window { grid-template-columns: 1fr; }
}

/* ---------- enamel plaque (primary action) ---------- */
.plaque {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--iron); color: var(--lime);
  border-radius: 6px;
  padding: 14px 22px 14px 18px;
  box-shadow: inset 0 0 0 3px var(--iron), inset 0 0 0 5px var(--lime);
  text-decoration: none;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem); line-height: 1;
  transition: background-color 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.25s;
  position: relative;
  padding-left: 30px; padding-right: 32px;
}
.plaque::before, .plaque::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--lime);
}
.plaque::before { left: 12px; }
.plaque::after { right: 12px; }
.plaque svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.plaque small { display: block; font-family: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.82rem; margin-top: 5px; opacity: 1; }
.plaque:hover { background: var(--soot); box-shadow: inset 0 0 0 3px var(--soot), inset 0 0 0 5px var(--lime); }
.plaque:active { transform: translateY(1px); }
.plaque--large { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); padding: 20px 40px 20px 36px; gap: 18px; }
.plaque--large svg { width: 30px; height: 30px; }
.plaque { max-width: 100%; }
.plaque span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .plaque--large { font-size: clamp(1.05rem, 5.2vw, 1.5rem); padding: 16px 30px 16px 28px; gap: 12px; }
  .plaque--large svg { width: 24px; height: 24px; }
}

.textlink { font-weight: 500; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(40px, 6vw, 96px) var(--gutter); }
.section--lime { background: var(--lime); }
.section--iron { background: var(--iron); color: var(--lime); }
.section--soot { background: var(--soot); color: var(--lime); }

.h-sign {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 6rem); line-height: 0.88; letter-spacing: -0.005em;
}
.h-sign em { font-style: normal; color: var(--brick); }
.section--iron .h-sign em, .section--soot .h-sign em { color: var(--lime); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.08em; }
.section__intro { margin-top: clamp(14px, 1.6vw, 22px); max-width: 60ch; font-size: 1.08em; }

/* services */
.services-window { margin-top: clamp(28px, 4vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service { display: grid; gap: 16px; align-content: start; }
.service h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 0.95; letter-spacing: 0.005em;
}
.service__problem { font-size: 1.12em; font-weight: 500; max-width: 40ch; }
.service__problem strong { font-weight: 700; }
.service ul { padding: 0; list-style: none; display: grid; gap: 8px; max-width: 52ch; }
.service li { padding-left: 20px; position: relative; }

.service__proof {
  border-top: 3px solid var(--soot); padding-top: 12px; margin-top: 4px;
  font-size: 0.95rem; max-width: 52ch;
}
.service__proof b { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 6px; }
@media (max-width: 820px) { .services-window { grid-template-columns: 1fr; } }

/* work: OMNE */
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 32px; }
.work__logo { width: clamp(220px, 34vw, 520px); height: auto; color: var(--lime); }
.work__logo path { fill: currentColor; }
.work__lead { margin-top: clamp(18px, 2vw, 28px); max-width: 62ch; font-size: 1.12em; }

.ledger { margin-top: clamp(28px, 4vw, 52px); display: grid; gap: var(--bar); background: var(--soot); border: var(--bar) solid var(--soot); }
.ledger__row { display: grid; grid-template-columns: minmax(150px, 0.42fr) 1fr; gap: var(--bar); }
.ledger__fig, .ledger__text { background: var(--iron); padding: clamp(16px, 2vw, 28px) var(--pane-pad); }
.ledger__fig {
  font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 2rem + 3.6vw, 5.6rem);
  line-height: 0.85; color: var(--lime); font-variant-numeric: tabular-nums;
  display: flex; align-items: center;
}
.ledger__text { display: flex; align-items: center; max-width: none; }
.ledger__text p { max-width: 58ch; }
@media (max-width: 640px) {
  .ledger__row { grid-template-columns: 1fr; gap: 0; }
  .ledger__fig { padding-bottom: 4px; }
  .ledger__text { padding-top: 8px; }
}


/* about */
.about-window { margin-top: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.portrait { padding: 0; background: var(--soot); position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: url(#duotone); min-height: 360px; }
.about__text { display: grid; gap: 16px; align-content: start; }
.about__text p { max-width: 60ch; }
.career { margin-top: 10px; display: grid; gap: 0; border-top: 3px solid var(--soot); }
.career__row { display: grid; grid-template-columns: 7.2em 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--soot); }
.career__years { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.career__role { font-size: 0.97rem; }
.career__role b { font-weight: 700; }
@media (max-width: 820px) {
  .about-window { grid-template-columns: 1fr; }
  .portrait img { min-height: 0; aspect-ratio: 4 / 4.2; }
}
@media (max-width: 420px) { .career__row { grid-template-columns: 1fr; gap: 2px; } }

/* contact */
.contact { padding-bottom: clamp(48px, 7vw, 110px); }
.paint--contact { font-size: clamp(3.2rem, 9vw, 10rem); }
.contact-window { margin-top: clamp(22px, 3vw, 40px); max-width: 980px; }
.contact__body { max-width: 52ch; font-size: 1.12em; }
.contact__actions { margin-top: clamp(22px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.plaque--large span { text-transform: none; letter-spacing: 0.01em; }

/* footer */
.foot { background: var(--soot); color: var(--lime); padding: clamp(28px, 4vw, 48px) var(--gutter); border-top: var(--bar) solid var(--iron); font-size: 0.92rem; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 32px; }
.foot dt { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; }
.foot dd { margin: 2px 0 0; }
.foot__small { margin-top: 22px; max-width: 70ch; }
.rail__nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* focus ring follows the ground it sits on: brick on limestone panes, limestone on brick/soot/iron */
.wall .pane :focus-visible, .wall .pane:focus-visible { outline-color: var(--brick); }

/* ---------- work pages (long-form, Read mode) ---------- */
.paint--page { font-size: clamp(2.9rem, 1.4rem + 6.2vw, 8.6rem); max-width: 16ch; }
.paint--page.is-stenciling { animation: stencil 1.15s steps(9, end); }
@media (prefers-reduced-motion: reduce) { .paint--page.is-stenciling { animation: none; } }

.lead-window { margin-top: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.lead-window .page-lead { font-family: var(--text); font-weight: 700; font-size: clamp(1.25rem, 0.95rem + 1vw, 1.85rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 36ch; }
.facts { display: grid; gap: 0; align-content: start; border-top: 3px solid var(--soot); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--soot); font-size: 0.95rem; }
.facts dt { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.02rem; }
.facts dd { margin: 0; }
@media (max-width: 820px) { .lead-window { grid-template-columns: 1fr; } }

.read { display: grid; gap: 1em; max-width: 64ch; }
.read p, .read li { max-width: 64ch; }
.read ul { padding: 0; list-style: none; display: grid; gap: 8px; }
.read li { padding-left: 20px; position: relative; }

.read strong { font-weight: 700; }
.section .read { margin-top: clamp(18px, 2vw, 28px); font-size: 1.05em; }

.grid-window { margin-top: clamp(28px, 4vw, 52px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-window--steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.pane__title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2.1rem); line-height: 0.96; letter-spacing: 0.01em;
}
.pane__count { margin-top: 14px; border-top: 3px solid var(--soot); padding-top: 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.02rem; }
.pane__count b { font-weight: 900; font-size: 1.5em; font-variant-numeric: tabular-nums; margin-right: 6px; }
.pane__body { margin-top: 12px; font-size: 0.98rem; max-width: 40ch; }
.pane__step { font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 0.9; font-variant-numeric: tabular-nums; }

.ledger--dates .ledger__fig { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.8rem); line-height: 0.95; }
.ledger--dates .ledger__row { grid-template-columns: minmax(150px, 0.3fr) 1fr; }
.ledger__note { margin-top: 14px; font-size: 0.9rem; max-width: 70ch; }

.next-window { margin-top: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.work-links { margin-top: clamp(28px, 4vw, 52px); }
/* ledger cells are iron wherever the ledger sits, so their text is always limestone */
.ledger__fig, .ledger__text { color: var(--lime); }
.ledger__text ::selection { background: var(--lime); color: var(--soot); }
.ledger--dates .ledger__fig { text-transform: uppercase; letter-spacing: 0.02em; }
/* work pages: takeaways, byline, worked example */
.lead-window .takeaways { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 12px 32px; align-items: start; }
.takeaways ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; max-width: 78ch; }
.takeaways li { padding-left: 20px; position: relative; }

@media (max-width: 820px) { .lead-window .takeaways { grid-template-columns: 1fr; } }
.byline { font-size: clamp(1.05rem, 1.6vw, 1.5rem); }
.example-window { margin-top: clamp(22px, 3vw, 36px); max-width: 980px; }
.example { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 3px solid var(--soot); }
.example li { counter-increment: step; display: grid; grid-template-columns: 2.6em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--soot); max-width: 70ch; }
.example li::before { content: counter(step); font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.service__proof a { font-weight: 600; }
/* Writing link: always visible in the rail, also on phones where the section links hide */
.rail__writing { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.rail__writing:hover { text-decoration: underline; }
.rail__writing[aria-current] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
/* writing index */
.post-window { margin-top: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; max-width: 1100px; }
.post { display: grid; grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr); gap: 10px 36px; text-decoration: none; transition: background-color 0.3s cubic-bezier(.16,1,.3,1), color 0.3s; }
a.post:hover, a.post:focus-visible { background: var(--iron); color: var(--lime); }
.post__meta { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.02rem; line-height: 1.3; }
.post__meta time { display: block; font-size: 1.5rem; font-weight: 900; letter-spacing: 0.02em; }
.post__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 0.95; letter-spacing: 0.005em; }
.post__summary { margin-top: 12px; max-width: 62ch; }
@media (max-width: 720px) { .post { grid-template-columns: 1fr; } }
.lead-window--single { grid-template-columns: 1fr; }
.lead-window--single .page-lead { max-width: 52ch; }
.ledger__fig { text-transform: uppercase; }

/* list bullets are rivets: the bolt heads from the window frames. Iron on light panes, limestone on dark grounds. */
:root {
  --rivet-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%233c4a45'/%3E%3Ccircle cx='5' cy='5' r='1.7' fill='%23cfcbc2'/%3E%3C/svg%3E");
  --rivet-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%23cfcbc2'/%3E%3Ccircle cx='5' cy='5' r='1.7' fill='%233c4a45'/%3E%3C/svg%3E");
}
.service li, .read li, .takeaways li { padding-left: 22px; }
.service li::before, .read li::before, .takeaways li::before {
  content: ""; position: absolute; left: 0; top: calc(0.775em - 5px); width: 10px; height: 10px;
  background: var(--rivet-light) no-repeat center / 10px 10px;
}
.on-dark .read li::before, .takeaways li::before { background-image: var(--rivet-dark); }
/* contact form: square fields with heavy soot frames, label type above, plaque button */
.contact-form { display: grid; gap: 18px; margin-top: clamp(18px, 2vw, 26px); max-width: 62ch; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.02rem; }
.field label small { font-family: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.85rem; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--soot); background: var(--lime);
  border: 3px solid var(--soot); border-radius: 0; padding: 11px 13px; line-height: 1.4;
}
.field textarea { min-height: 9.5em; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: var(--iron); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 0.92rem; max-width: 56ch; }
.form__alt { margin-top: 4px; font-size: 0.95rem; }
button.plaque { border: 0; cursor: pointer; font-family: var(--display); }
button.plaque span { text-transform: none; letter-spacing: 0.01em; }
.contact-page .contact-window { max-width: 900px; }
