/* Fourth Revenue — editorial edition */

:root {
  --paper: #f3eee3;
  --paper-2: #ebe4d5;
  --paper-3: #e2d9c6;
  --ink: #1c1915;
  --ink-2: #4a443b;
  --ink-3: #6a6255;
  --rule: #1c1915;
  --hair: rgba(28, 25, 21, 0.22);
  --cobalt: #1d3fa6;
  --cobalt-ink: #16328a;
  --error: #8f1a1a;
  --cyan: #14275f;
  --cyan-2: #1b3274;
  --on-cyan: #eef0f7;
  --on-cyan-2: #b9c3e2;

  --serif: "Instrument Serif", "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", "Arial Nova", Arial, sans-serif;

  --wrap: 1320px;
  --gut: clamp(20px, 4.2vw, 56px);
  --col-gap: clamp(16px, 2vw, 28px);
  --sec: clamp(88px, 11vw, 168px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scrollbar-color: var(--ink-3) var(--paper-2);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--cobalt);
  overflow-x: clip;
}

::selection { background: var(--cobalt); color: var(--paper); }

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--cobalt); }

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

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p, figcaption { margin: 0; text-wrap: pretty; }
[id] { scroll-margin-top: 72px; }
em { font-style: italic; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--paper); text-decoration: underline; }

/* ---------- small type ---------- */
.folio-bar,
.nav a,
.plate figcaption,
.cyanotype figcaption,
.store__plate figcaption,
.sec-head__mark,
.figures dt,
.step__kind,
.step__out span,
.term__form,
.stamp,
.manifest caption,
.spec dt,
.address__label,
.reply__head,
.field label,
.runhead {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.plate__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15em;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-right: 0.35em;
  color: var(--ink);
}

/* ---------- masthead ---------- */
.masthead { padding-top: 14px; }

.folio-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 13.4vw, 12.5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-align: center;
  padding: clamp(14px, 2vw, 26px) 0 clamp(12px, 1.6vw, 20px);
  white-space: nowrap;
}
.wordmark a { text-decoration: none; color: var(--ink); }
.wordmark em { color: var(--cobalt); }

.nav {
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav li + li { border-left: 1px solid var(--hair); }
.nav a {
  display: block;
  padding: 13px clamp(14px, 2.4vw, 34px);
  text-decoration: none;
  color: var(--ink);
}
.nav a:hover { color: var(--cobalt); text-decoration: underline; }

/* Mobile contents toggle: only rendered when script.js runs (no-JS keeps the full list). */
.nav__toggle { display: none; }
.nav__toggle {
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__icon { position: relative; width: 14px; height: 14px; }
.nav__icon::before,
.nav__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav__icon::after { transform: rotate(90deg); }
.nav.is-open .nav__icon::after { transform: rotate(0deg); }

/* ---------- running head ---------- */
.runhead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-101%);
  transition: transform 0.5s var(--ease);
  color: var(--ink-2);
}
.runhead.is-on { transform: none; }
.runhead__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 46px;
}
.runhead__brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
}
.runhead__num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; text-transform: none; color: var(--cobalt); letter-spacing: 0; }
.runhead__folio { justify-self: end; }
.runhead__cta { color: var(--ink); text-decoration: underline; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn__arrow { flex: none; transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--cyan); border-color: var(--paper); }
.btn--paper:hover { background: transparent; color: var(--paper); }
.btn--paper:focus-visible { outline-color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-top: clamp(40px, 5.5vw, 80px);
}
.hero__copy {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding-right: clamp(0px, 2vw, 32px);
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7.6vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.hero__title em { color: var(--cobalt); }
.hero__standfirst {
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.plate { margin: 0; }
.plate__frame {
  border: 1px solid var(--rule);
  padding: 8px;
  background: var(--paper);
}
.plate__frame img { width: 100%; }
.plate figcaption {
  margin-top: 10px;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 400;
}

.plate--hero { grid-column: 8 / span 5; align-self: start; }
.plate--hero .plate__frame img { aspect-ratio: 1600 / 1486; object-fit: cover; filter: contrast(1.05) sepia(0.12); }

/* figures */
.figures { margin: 0; display: grid; }
.figures > div { position: relative; }
.figures dd {
  margin: 0;
  font-family: var(--serif);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.figures .unit { font-style: italic; color: var(--cobalt); margin-left: 0.04em; }
.figures .sign { margin-right: 0.04em; }
.figures dt { color: var(--ink-2); }

.figures--hero {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.figures--hero > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(12px, 2vw, 28px) 16px;
}
.figures--hero > div + div { border-left: 1px solid var(--hair); }
.figures--hero > div:first-child { padding-left: 0; }
.figures--hero dd { font-size: clamp(2.6rem, 4.6vw, 4.25rem); order: 2; }
.figures--hero dt { order: 1; max-width: 9em; }

/* ---------- sections ---------- */
.section { padding-top: var(--sec); }

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-head__mark {
  grid-column: 1 / span 2;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cobalt);
  font-weight: 400;
}
.sec-head__title {
  grid-column: 3 / -1;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.6vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
}
.sec-head__title em { color: var(--cobalt); }
.sec-head__dek {
  grid-column: 3 / span 6;
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 36em;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lede--sm { font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1.22; }

/* challenge */
.challenge {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(48px, 6vw, 80px);
}
.challenge__text { grid-column: 3 / span 6; }
.challenge__text .lede { margin-bottom: 36px; }
.columns {
  columns: 2;
  column-gap: var(--col-gap);
  column-rule: 1px solid var(--hair);
  color: var(--ink-2);
}
.columns p { margin-bottom: 1em; }
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 5.1em;
  line-height: 0.78;
  padding: 0.06em 0.08em 0 0;
  color: var(--cobalt);
}
.plate--steel { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: start; }
.plate--steel img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% 50%;
  filter: grayscale(1) sepia(0.28) contrast(1.08) brightness(1.02);
}

.ledger {
  grid-column: 3 / span 6;
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(6.2rem, 2fr) 3fr;
  gap: var(--col-gap);
  align-items: baseline;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--hair);
}
.ledger__fig {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5.4vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.ledger__fig .unit { font-style: italic; color: var(--cobalt); }
.ledger__txt { color: var(--ink-2); max-width: 26em; }

/* principles */
.principles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(48px, 6vw, 88px);
  align-items: center;
}
.plate--ramp { grid-column: 1 / span 6; }
.plate--ramp img { aspect-ratio: 1300 / 961; object-fit: cover; filter: sepia(0.15) contrast(1.04); }
.pull {
  grid-column: 8 / span 5;
  margin: 0;
  padding: 26px 0;
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pull p {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.pull em { color: var(--cobalt); }

.tenets {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.tenets li {
  padding: 22px clamp(16px, 2.2vw, 32px) 8px;
}
.tenets li:first-child { padding-left: 0; }
.tenets li + li { border-left: 1px solid var(--hair); }
.tenets__no {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cobalt);
  margin-bottom: 18px;
}
.tenets h3 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.tenets p { color: var(--ink-2); max-width: 30em; }

/* methodology */
.section--method { padding-top: var(--sec); }
.cyanotype {
  margin: 0 0 clamp(64px, 8vw, 120px);
  background: var(--cyan);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cyanotype img {
  width: 100%;
  max-height: 560px;
  aspect-ratio: 1600 / 556;
  object-fit: cover;
  object-position: 50% 55%;
  filter: saturate(0.85) contrast(1.05);
}
.cyanotype figcaption {
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--on-cyan-2);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.8125rem;
  font-weight: 400;
}
.cyanotype .plate__no { color: var(--on-cyan); }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: baseline;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--hair);
  transition: background-color 0.35s var(--ease);
}
.step:last-child { border-bottom-color: var(--rule); }
.step__no {
  grid-column: 1 / span 2;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cobalt);
  font-variant-numeric: lining-nums;
}
.step__verb {
  grid-column: 3 / span 3;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.step__body { grid-column: 6 / span 4; color: var(--ink-2); }
.step__kind { color: var(--ink); margin-bottom: 6px; }
.step__out {
  grid-column: 10 / span 3;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.3;
}
.step__out span {
  display: block;
  font-style: normal;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.step:hover .step__verb { color: var(--cobalt); }

.section-cta { margin-top: clamp(36px, 4vw, 56px); }
.section-cta--center { text-align: center; }

/* engagement */
.engage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 48px;
}
.plate--drawing { grid-column: 1 / span 5; align-self: start; }
.plate--drawing img { mix-blend-mode: multiply; filter: contrast(1.12) sepia(0.2); width: 100%; }
.plate--drawing figcaption { border-top: 1px solid var(--hair); padding-top: 10px; }

.terms { grid-column: 7 / span 6; }
.term {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--col-gap);
  padding: 22px 0 26px;
  border-top: 1px solid var(--rule);
}
.term h3 {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.term__form { color: var(--cobalt); padding-top: 4px; }
.term p:last-child { color: var(--ink-2); }
.terms__cta { border-top: 1px solid var(--rule); padding-top: 28px; }

/* store */
.store {
  margin-top: var(--sec);
  background: var(--cyan);
  color: var(--on-cyan);
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
}
.store::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 240, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 240, 247, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.store__in {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 48px;
  align-items: center;
}
.store__copy { grid-column: 1 / span 6; }
.sec-head__mark--inv { color: var(--on-cyan-2); padding-bottom: 14px; border-bottom: 1px solid rgba(238, 240, 247, 0.4); margin-bottom: 28px; }
.stamp {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--on-cyan);
  margin-bottom: 26px;
}
.store__title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.store__title em { color: var(--on-cyan-2); }
.store__dek { margin-top: 24px; max-width: 32em; color: var(--on-cyan-2); font-size: 1.1rem; }

.manifest {
  width: 100%;
  margin: 36px 0 36px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.manifest caption { text-align: left; padding-bottom: 10px; color: var(--on-cyan-2); }
.manifest th, .manifest td {
  text-align: left;
  vertical-align: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(238, 240, 247, 0.3);
}
.manifest th { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; padding-right: 16px; }
.manifest td { color: var(--on-cyan-2); }
.manifest tfoot th, .manifest tfoot td { border-top: 1px solid var(--on-cyan); }
.manifest tfoot td strong { color: var(--on-cyan); font-weight: 600; }

.store__plate { grid-column: 8 / span 5; margin: 0; }
.store__frame {
  border: 1px solid rgba(238, 240, 247, 0.55);
  padding: 8px;
}
.store__frame > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 52%;
  transform: scale(1.4);
  transform-origin: 50% 53%;
}
.store__frame { overflow: hidden; }
.store__plate figcaption {
  margin-top: 10px;
  color: var(--on-cyan-2);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.8125rem;
  font-weight: 400;
}
.store__plate .plate__no { color: var(--on-cyan); }
.store a:hover { color: inherit; }
.store :focus-visible { outline-color: var(--on-cyan); }

/* results */
.figures--results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.figures--results > div {
  padding: 28px clamp(14px, 2vw, 28px) 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.figures--results > div:first-child { padding-left: 0; }
.figures--results > div + div { border-left: 1px solid var(--hair); }
.figures--results dd { font-size: clamp(4rem, 8.4vw, 8.5rem); }
.figures--results dt { max-width: 12em; }

/* contact */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 56px;
}
.contact__info { grid-column: 3 / span 4; }
.spec { margin: 32px 0 0; border-top: 1px solid var(--rule); }
.spec > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
.address { margin-top: 32px; font-style: normal; line-height: 1.6; color: var(--ink-2); }
.address__label { display: block; color: var(--ink-3); margin-bottom: 8px; }
.address a { color: var(--ink); }

.reply {
  grid-column: 8 / span 5;
  align-self: start;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: clamp(22px, 2.6vw, 36px);
  outline: 1px dashed var(--ink-3);
  outline-offset: 7px;
}
.reply__head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 3px double var(--rule);
}
.reply__head span { color: var(--ink-3); text-transform: none; letter-spacing: 0.01em; font-weight: 400; font-style: italic; font-family: var(--serif); font-size: 1rem; }
.field { padding-top: 20px; }
.field label { display: block; color: var(--ink-2); margin-bottom: 4px; }
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding: 8px 0 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  resize: vertical;
  min-height: 7.5em;
  background-image: repeating-linear-gradient(transparent 0 calc(1.82rem - 1px), var(--hair) calc(1.82rem - 1px) 1.82rem);
  line-height: 1.82rem;
  padding-top: 4px;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom: 2px solid var(--cobalt); padding-bottom: 9px; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }

.reply__error { margin-top: 16px; color: var(--error); font-size: 0.95rem; }
.reply__foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.reply__note { font-size: 0.85rem; color: var(--ink-3); max-width: 18em; }
.reply__done { margin-top: 18px; font-family: var(--serif); font-size: 1.3rem; color: var(--cobalt); }

/* colophon */
.colophon {
  margin-top: var(--sec);
  border-top: 3px double var(--rule);
  padding: 28px 0 40px;
}
.colophon__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.colophon__mark { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; }
.colophon__mark em { color: var(--cobalt); }
.colophon__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 0.95rem; }
.colophon__links a { display: inline-block; padding: 6px 0; }
.colophon__meta { margin-top: 18px; font-size: 0.9rem; color: var(--ink-2); }
.credits { margin-top: 14px; font-size: 0.78rem; line-height: 1.55; color: var(--ink-3); max-width: 110ch; }
.credits strong { color: var(--ink-2); font-weight: 600; }

/* ---------- reveal (enhancement only) ---------- */
.js .reveal { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease), opacity 0.8s var(--ease); }
.js .reveal.is-pending { clip-path: inset(0 0 18% 0); opacity: 0.001; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal.is-pending { clip-path: none; opacity: 1; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__copy { grid-column: 1 / span 7; }
  .challenge__text, .ledger { grid-column: 1 / span 8; }
  .plate--steel { grid-column: 9 / span 4; }
  .contact__info { grid-column: 1 / span 6; }
  .reply { grid-column: 7 / span 6; }
  .step__verb { grid-column: 3 / span 4; }
  .step__body { grid-column: 7 / span 6; }
  .step__out { grid-column: 7 / span 6; margin-top: 14px; }
}

@media (max-width: 820px) {
  .folio-bar__mid { display: none; }
  .hero__copy, .plate--hero { grid-column: 1 / -1; }
  .plate--hero { margin-top: 40px; }
  .hero__copy { padding-right: 0; gap: 28px; }

  .sec-head__mark { grid-column: 1 / -1; font-size: 1.25rem; margin-bottom: 10px; }
  .sec-head__title, .sec-head__dek { grid-column: 1 / -1; }

  .challenge__text, .ledger, .plate--steel { grid-column: 1 / -1; grid-row: auto; }
  .plate--steel img { aspect-ratio: 3 / 2; }

  .plate--ramp, .pull { grid-column: 1 / -1; }
  .tenets { grid-template-columns: 1fr; }
  .tenets li, .tenets li:first-child { padding: 22px 0 26px; }
  .tenets li + li { border-left: 0; border-top: 1px solid var(--hair); }

  .step__no { grid-column: 1 / span 2; }
  .step__verb { grid-column: 3 / -1; }
  .step__body, .step__out { grid-column: 3 / -1; margin-top: 14px; }

  .plate--drawing, .terms { grid-column: 1 / -1; }
  .store__copy, .store__plate { grid-column: 1 / -1; }
  .store__plate { max-width: 460px; }

  .figures--results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures--results > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures--results > div:nth-child(n+3) { border-top: 1px solid var(--hair); }

  .contact__info, .reply { grid-column: 1 / -1; }

  .runhead__folio { display: none; }
  .runhead__in { grid-template-columns: auto 1fr auto; gap: 16px; }
  .runhead__sec { justify-self: center; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .folio-bar { font-size: 0.6875rem; }
  .nav ul { justify-content: flex-start; }
  .nav li { flex: 1 1 33.333%; text-align: center; border-left: 0 !important; }
  .nav li:nth-child(n+4) { border-top: 1px solid var(--hair); }
  .nav li:not(:nth-child(3n+1)) { border-left: 1px solid var(--hair) !important; }
  .nav a { padding: 15px 4px; font-size: 0.6875rem; letter-spacing: 0.06em; }

  .cyanotype img { aspect-ratio: 3 / 2; object-position: 61% 50%; }

  .js .nav__toggle { display: flex; }
  .js .nav ul { border-top: 1px solid var(--hair); }
  .js .nav:not(.is-open) ul { display: none; }

  .hero__title { font-size: clamp(3rem, 14.5vw, 4.2rem); }
  .actions .btn { flex: 1 1 100%; justify-content: space-between; }

  .figures--hero { grid-template-columns: 1fr; }
  .figures--hero > div { padding: 14px 0; }
  .figures--hero > div + div { border-left: 0; border-top: 1px solid var(--hair); }

  .columns { columns: 1; }
  .ledger li { grid-template-columns: 1fr; gap: 6px; }

  .step { padding: 22px 0 24px; }
  .step__no { grid-column: 1 / -1; font-size: 1.15rem; margin-bottom: 4px; }
  .step__verb, .step__body, .step__out { grid-column: 1 / -1; }

  .term { grid-template-columns: 1fr; }
  .term__form { margin-bottom: 8px; }

  .manifest th, .manifest td { display: block; border-top: 0; padding: 0; }
  .manifest tr { display: block; padding: 12px 0; border-top: 1px solid rgba(238, 240, 247, 0.3); }
  .manifest tfoot tr { border-top-color: var(--on-cyan); }
  .manifest tfoot th, .manifest tfoot td { border-top: 0; }
  .manifest th { margin-bottom: 2px; }

  .figures--results dd { font-size: clamp(3.2rem, 16vw, 4.4rem); }
  .figures--results > div { padding-left: 14px; }
  .figures--results > div:nth-child(odd) { padding-left: 0; }

  .runhead__sec .runhead__name { display: none; }
  .reply { outline-offset: 5px; }
  .reply__foot .btn { flex: 1 1 100%; justify-content: space-between; }
}
