/* Orvalyn — a trading house's written particulars.
   Paper is the ground, navy the ink, saffron the seal. See DESIGN.md. */

@font-face { font-family: "Caslon Display"; src: url("../fonts/libre-caslon-display-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caslon Text"; src: url("../fonts/libre-caslon-text-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --ink: #0B1F3A;
  --ink-2: #3B4B62;
  --ink-3: #56647B;
  --rule: rgba(11, 31, 58, .16);
  --rule-strong: rgba(11, 31, 58, .55);
  --saffron: #E9A23B;
  --saffron-light: #F5BE62;
  --saffron-ink: #8A5407;
  --night: #081629;
  --on-ink: #F4F1EA;
  --on-ink-2: #BCC6D5;
  --on-ink-3: #93A1B6;
  --rule-on-ink: rgba(244, 241, 234, .16);

  --display: "Caslon Display", "Libre Caslon Display", Georgia, serif;
  --italic: "Caslon Text", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, monospace;

  --frame: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --bar: 68px;
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--saffron-ink);
  scrollbar-color: var(--ink-3) var(--paper-2);
}
::selection { background: var(--saffron); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -.005em; }

:focus-visible { outline: 2px solid var(--saffron-ink); outline-offset: 3px; }
.ink :focus-visible, .foot :focus-visible { outline-color: var(--saffron); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; z-index: 300; left: 12px; top: 10px;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font: 500 14px/1 var(--sans); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.frame { width: min(100% - 2 * var(--gutter), var(--frame)); margin-inline: auto; }

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

.masthead {
  position: sticky; top: 0; z-index: 100;
  height: var(--bar);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead__row { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.brand span { font: 800 16px/1 var(--sans); letter-spacing: .24em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a {
  font: 500 14px/1 var(--sans); color: var(--ink-2); text-decoration: none;
  padding: 8px 0; white-space: nowrap;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
  transition: color .2s, background-size .35s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--ink); background-size: 100% 1px; }
.nav .nav__cta { color: var(--paper); background: var(--ink); padding: 11px 18px; transition: background-color .2s; }
.nav .nav__cta:hover { color: var(--paper); background: #17325A; }

.menu {
  display: none; margin-left: auto;
  font: 500 14px/1 var(--sans); color: var(--ink);
  background: none; border: 1px solid var(--rule-strong); padding: 11px 16px; min-height: 44px; cursor: pointer;
}

/* ------------------------------------------------------------ buttons and links */

.button {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 0; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.button::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.button:hover { background: #17325A; }
.button:hover::after { width: 28px; }
.button:active { transform: translateY(1px); }

.textlink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 500 15px/1.2 var(--sans); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color .2s;
}
.textlink::after { content: "→"; transition: transform .35s var(--ease); }
.textlink:hover { border-color: var(--ink); }
.textlink:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------ the opening */

.opening { padding: clamp(20px, 2.4vw, 32px) 0 var(--section); }
.docline {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong);
  font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.opening__head {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 64px); align-items: end;
}
.opening h1 { font-size: clamp(44px, 5.8vw, 84px); line-height: .98; }
.opening__side { display: grid; gap: 28px; padding-bottom: 6px; }
.opening__lede { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.plate { position: relative; background: var(--night); overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate--opening { margin-top: clamp(36px, 4vw, 56px); aspect-ratio: 1920 / 842; overflow: visible; }
.plate picture { display: contents; }

.particulars {
  position: absolute; z-index: 2; left: 0; top: 0;
  width: min(390px, 42%);
  background: var(--paper);
  padding: 22px 26px 24px 0;
}
.particulars div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.particulars div:first-child { padding-top: 0; }
.particulars div:last-child { border-bottom: 0; padding-bottom: 0; }
.particulars dt { font: 400 11px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.particulars dd { font: 500 14px/1.45 var(--sans); }

.seal {
  position: absolute; z-index: 3;
  right: clamp(-28px, -2vw, -12px); bottom: clamp(-56px, -4vw, -32px);
  width: clamp(120px, 13vw, 176px); height: auto;
  transform: rotate(-11deg);
  animation: stamp .9s var(--ease) .35s both;
}
@keyframes stamp {
  0%   { opacity: 0; transform: rotate(-11deg) scale(1.22); }
  55%  { opacity: 1; transform: rotate(-11deg) scale(.97); }
  100% { opacity: 1; transform: rotate(-11deg) scale(1); }
}

/* ------------------------------------------------------------ sheets and the memo layout */

.sheet { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.sheet--second { background: var(--paper-2); }

.memo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.memo__margin h2 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.05; max-width: 11ch; }
.memo__note { margin-top: 24px; color: var(--ink-2); max-width: 34ch; font-size: 16px; }
@media (min-width: 1024px) {
  .memo__margin { position: sticky; top: calc(var(--bar) + 40px); align-self: start; }
}

/* the two lines */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.line--offset { margin-top: clamp(0px, 8vw, 120px); }
.plate--line { aspect-ratio: 4 / 5; margin-bottom: 28px; }
.line__no { font: 400 30px/1 var(--display); color: var(--saffron-ink); margin-bottom: 10px; }
.line h3 { font: 400 clamp(28px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: -.01em; margin-bottom: 22px; }
.line__parts { border-top: 1px solid var(--rule-strong); margin-bottom: 26px; }
.line__parts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.line__parts dt { font: 500 12px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.line__parts dd { color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------ the navy sections */

.ink { background: var(--ink); color: var(--on-ink); padding: var(--section) 0; }
.ink h2 { font-size: clamp(36px, 4.2vw, 62px); line-height: 1.02; max-width: 16ch; }
.steps p, .scope__text p, .contact__lede { color: var(--on-ink-2); }

.steps { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-on-ink); }
.steps li { padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule-on-ink); }
.steps__n { display: block; font: 400 64px/1 var(--display); color: var(--saffron); margin-bottom: 26px; }
.steps h3 { margin-bottom: 10px; font-size: 18px; }
.steps p { font-size: 15.5px; }

.scope {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.scope__text h3 { font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--display); margin-bottom: 16px; }
.scope__text p { max-width: 32ch; }
.scope__sheet {
  background: var(--paper); color: var(--ink);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
  transform: rotate(-.6deg);
  max-width: 640px;
}
.scope__head, .form__head {
  display: flex; justify-content: space-between; gap: 16px;
  font: 400 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); margin-bottom: 8px;
}
.scope__sheet ol { counter-reset: s; }
.scope__sheet li {
  counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; gap: 8px;
  padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px;
}
.scope__sheet li::before { content: counter(s) "."; font: 400 13px/1.9 var(--mono); color: var(--saffron-ink); }
.scope__foot { margin-top: 20px; color: var(--ink-2); font-size: 14.5px; }
.scope__sign {
  margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.scope__sign span { border-top: 1px solid var(--rule-strong); padding-top: 10px; }

/* ------------------------------------------------------------ the chart and the board */

.atlas { display: grid; gap: 40px; }
.chart { border: 1px solid var(--rule-strong); background: var(--paper); padding: 10px; }
.chart svg { width: 100%; height: auto; }
.chart__grid path { fill: none; stroke: var(--rule); stroke-width: .22; }
.chart__land { fill: var(--paper-2); stroke: var(--ink); stroke-width: .28; stroke-linejoin: round; }
.chart__frame { fill: none; stroke: var(--ink); stroke-width: .4; }
.chart__ticks text { font: 400 2.5px var(--mono); fill: var(--ink-3); text-anchor: middle; letter-spacing: .05em; }
.chart__ticks .chart__lat { text-anchor: end; }
.pin__dot { fill: var(--saffron); stroke: var(--ink); stroke-width: .6; }
.pin__code { font: 500 3.1px var(--mono); fill: var(--ink); letter-spacing: .12em; paint-order: stroke; stroke: var(--paper); stroke-width: .9px; stroke-linejoin: round; }
.pin__hit { fill: transparent; }
.pin { transition: transform .25s var(--ease); transform-box: fill-box; transform-origin: center; }
.pin:hover .pin__dot { fill: var(--saffron-ink); }

.board { background: #0A1A30; padding: clamp(16px, 2.4vw, 28px); box-shadow: inset 0 0 0 1px #000, inset 0 0 0 6px #0F2442; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.board th { text-align: left; padding: 0 10px 8px; font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8996AC; }
.board td { padding: 0 10px; font: 400 14px/1 var(--sans); color: #A3B0C5; vertical-align: middle; }
.board td[data-flap] { padding: 0 3px; }
.flap { display: inline-flex; gap: 2px; }
.flap span {
  display: inline-grid; place-items: center;
  width: 1.18em; height: 1.6em;
  font: 500 clamp(13px, 1.25vw, 17px)/1 var(--mono); color: var(--saffron-light);
  background: linear-gradient(#13284A 0 49%, #0C1E38 51% 100%);
  border-radius: 2px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  position: relative;
}
.flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap .is-flipping { animation: flip .09s linear; }
@keyframes flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }

/* ------------------------------------------------------------ the story */

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(32px, 4vw, 64px); }
.story__part { border-top: 1px solid var(--rule-strong); padding-top: 20px; }
.story__no { font: 400 26px/1 var(--display); color: var(--saffron-ink); margin-bottom: 18px; }
.story__part h3 { margin-bottom: 10px; }
.story__part p:not(.story__no) { color: var(--ink-2); font-size: 16px; }
.quote { grid-column: 1 / -1; margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--rule-strong); }
.quote p { font: italic 400 clamp(24px, 2.6vw, 36px)/1.3 var(--italic); max-width: 30ch; color: var(--ink); }
.quote p::before { content: "“"; }
.quote p::after { content: "”"; }

/* ------------------------------------------------------------ principles and questions */

.clauses { border-top: 1px solid var(--rule-strong); }
.clauses div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.clauses dt { font: 400 clamp(28px, 2.6vw, 38px)/1.05 var(--display); }
.clauses dd { color: var(--ink-2); font-size: 17px; max-width: 52ch; padding-top: 6px; }

.faq { border-top: 1px solid var(--rule-strong); }
.faq__item { padding: 30px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; }
.faq__item h3 { font: 400 clamp(22px, 2vw, 27px)/1.2 var(--display); max-width: 30ch; }
.faq__item p { color: var(--ink-2); max-width: 64ch; font-size: 16.5px; }

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

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__lede { margin-top: 20px; font-size: 18px; max-width: 36ch; }
.contact__side h3 { margin-top: 56px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--saffron); }
.next { margin-top: 18px; counter-reset: n; border-top: 1px solid var(--rule-on-ink); }
.next li { counter-increment: n; display: grid; grid-template-columns: 2em 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule-on-ink); color: var(--on-ink-2); font-size: 15.5px; }
.next li::before { content: counter(n); font: 400 18px/1.3 var(--display); color: var(--saffron); }
.contact__facts { margin-top: 40px; display: grid; gap: 16px; }
.contact__facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.contact__facts dt { font: 400 11px/1.8 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); }
.contact__facts dd { font-size: 15px; color: var(--on-ink); }

.form {
  background: var(--paper); color: var(--ink);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
}
.form__head { margin-bottom: 20px; }
.field { display: grid; gap: 4px; margin-bottom: 22px; }
.field label { font: 400 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 10px 0 9px; min-height: 46px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; padding-right: 24px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 10px) 55% / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink) 50%) calc(100% - 4px) 55% / 6px 6px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--saffron-ink); box-shadow: 0 2px 0 0 var(--saffron-ink); background-color: rgba(233, 162, 59, .1); }
.field [aria-invalid="true"] { border-color: #A3271F; box-shadow: 0 1px 0 0 #A3271F; }
.field__error { font-size: 14px; color: #A3271F; }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 6px 0 4px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check label { font-size: 15px; color: var(--ink-2); }
.form .button { margin-top: 22px; }
.form__status { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.form__status[data-state="ok"] { color: #1E6A3E; }
.form__status[data-state="error"] { color: #A3271F; }

.tbc { background: #FBE7B8; color: var(--ink); padding: 1px 6px; font: 500 13px/1.6 var(--mono); border-bottom: 1px solid var(--saffron); }

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

.foot { background: var(--night); color: var(--on-ink-2); padding: clamp(64px, 8vw, 104px) 0 32px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.foot__lockup { display: flex; align-items: center; gap: 16px; color: var(--on-ink); }
.foot__lockup svg { width: 46px; height: 46px; }
.foot__lockup span { display: grid; gap: 7px; font: 800 22px/1 var(--sans); letter-spacing: .24em; }
.foot__lockup small { font: 500 10px/1 var(--sans); letter-spacing: .62em; color: var(--saffron); }
.foot__lede { margin-top: 24px; max-width: 40ch; font-size: 15px; }
.foot h2 { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: 18px; }
.foot ul { display: grid; gap: 4px; }
.foot ul a { display: inline-block; padding: 6px 0; }
.foot a { color: var(--on-ink); text-decoration: none; font-size: 15px; }
.foot a:hover { text-decoration: underline; }
.foot__legal { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--rule-on-ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; }
.foot__legal a { font-size: 13px; text-decoration: underline; text-decoration-color: rgba(244, 241, 234, .35); }

/* ------------------------------------------------------------ legal views */

.legal { display: none; padding: clamp(48px, 7vw, 96px) 0 var(--section); }
body[data-view] .flow { display: none; }
body[data-view="legal-notice"] #legal-notice,
body[data-view="privacy"] #privacy,
body[data-view="terms"] #terms,
body[data-view="cookies"] #cookies { display: block; }
.legal__sheet { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.legal__back { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font: 500 15px/1 var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); margin-bottom: 40px; }
.legal__back::before { content: "←"; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-strong); }
.legal h2 { font: 600 19px/1.3 var(--sans); margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.legal ul { display: grid; gap: 6px; margin-top: 8px; }
.legal li { padding-left: 18px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--ink); }
.legal__updated { margin-top: 48px; font: 400 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a { font-size: 13.5px; }
}

@media (max-width: 1023px) {
  .menu { display: inline-block; }
  .nav {
    position: fixed; inset: var(--bar) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule-strong);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-110%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .nav[data-open="true"] { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav a { font: 400 26px/1.2 var(--display); color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--rule); background: none; }
  .nav .nav__cta { margin-top: 18px; text-align: center; font: 500 16px/1 var(--sans); padding: 18px; border: 0; }

  .memo, .scope, .contact { grid-template-columns: 1fr; }
  .memo__margin h2 { max-width: 16ch; }
  .opening__head { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule-on-ink); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .plate--opening { display: flex; flex-direction: column; aspect-ratio: auto; background: none; }
  .plate--opening img { aspect-ratio: 4 / 3; object-position: 55% 50%; }
  .particulars { position: static; order: 2; width: auto; padding: 22px 0 0; background: none; }
  .seal { right: 6px; top: 8px; bottom: auto; width: 104px; }
  .lines, .story { grid-template-columns: 1fr; }
  .line--offset { margin-top: 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps li:nth-child(3) { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--rule-on-ink); }
  .steps li:first-child { border-top: 0; }
  .steps__n { font-size: 48px; margin-bottom: 14px; }
  .scope__sheet { transform: none; }
  .clauses div { grid-template-columns: 1fr; gap: 8px; }
  .board { padding: 12px 8px; }
  .board th:nth-child(3), .board td:nth-child(3) { display: none; }
  .board td[data-flap] { padding: 0 1px; }
  .flap span { width: 1.06em; font-size: 12px; }
  .contact__facts div { grid-template-columns: 1fr; gap: 2px; }
  .foot__grid { grid-template-columns: 1fr; }
}

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

.contact__facts a { color: var(--on-ink); text-decoration: underline; text-decoration-color: rgba(244, 241, 234, .4); }
.contact__facts a:hover { text-decoration-color: var(--saffron); }

/* a field for robots only: off screen, out of the tab order, hidden from assistive tech */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .button:disabled { opacity: .6; cursor: progress; }
