/* ============================================================================
   Artemis Designs LLC
   Direction: "drawing set" — cyanotype plates, vellum sheets, brass annotation.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* Cyanotype ground */
  --ink:        #0E2A47;
  --ink-2:      #14365A;
  --ink-3:      #1D4671;
  --ink-line:   #2E5C8A;

  /* Vellum sheet */
  --vellum:     #E9EDEF;
  --vellum-2:   #DFE5E9;
  --paper:      #F5F8F9;

  /* Line work */
  --line:       #9DB0C0;
  --line-soft:  #C4D0D9;

  /* Brass — drafting instruments. The only warm value on the page. */
  --brass:      #B27D22;
  --brass-lt:   #DFA641;
  --brass-glow: rgba(223, 166, 65, 0.16);

  /* Type on dark */
  --on-dark:      #DCE7EF;
  --on-dark-mute: #92AAC1;

  /* Type */
  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Measure & rhythm */
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --plate-y: clamp(4.5rem, 11vh, 9rem);
  --maxw: 1320px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.03; letter-spacing: -0.025em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass-lt);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -100%;
  z-index: 100; padding: 0.75rem 1.15rem;
  background: var(--ink); color: var(--on-dark);
  font-family: var(--f-mono); font-size: 0.75rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------- shared: annot ---- */
.annot {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-3);
}
.annot--brass { color: var(--brass); }
/* --line is a line-work value, too pale to set text in: 2.0:1 on vellum. */
.annot--dim { color: #4E6B87; letter-spacing: 0.08em; text-transform: none; }

.plate--dark .annot { color: var(--on-dark-mute); }
.plate--dark .annot--brass { color: var(--brass-lt); }
.plate--dark .annot--dim { color: var(--on-dark-mute); }

/* ------------------------------------------------------------- masthead --- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  /* Solid by default so it reads as the top of the hero plate, not a
     separate bar floating on the vellum body background. */
  background: var(--ink);
  transition: box-shadow 0.35s var(--ease);
}
.masthead.is-stuck {
  background: rgba(14, 42, 71, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(46, 92, 138, 0.55);
}

.masthead__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.05rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 700; font-stretch: 118%;
  font-size: 0.98rem; letter-spacing: 0.005em;
  white-space: nowrap;
}
.wordmark__mark { width: 21px; height: 21px; color: var(--brass-lt); flex: none; }
.wordmark__suffix { color: var(--on-dark-mute); font-weight: 500; font-stretch: 100%; }

.masthead__nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.masthead__nav a {
  color: var(--on-dark-mute);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.masthead__nav a:hover { color: var(--on-dark); }
.masthead__cta {
  color: var(--ink) !important;
  background: var(--brass-lt);
  padding: 0.5rem 0.95rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.masthead__cta:hover { background: #EDBB5C; transform: translateY(-1px); }

.masthead__cta { white-space: nowrap; }

@media (max-width: 780px) {
  .masthead__nav a:not(.masthead__cta) { display: none; }
}
@media (max-width: 480px) {
  .masthead__inner { padding-block: 0.8rem; }
  .wordmark { font-size: 0.88rem; gap: 0.5rem; }
  .wordmark__mark { width: 18px; height: 18px; }
  .masthead__cta { padding: 0.5rem 0.75rem; font-size: 0.66rem; letter-spacing: 0.1em; }
}

/* ----------------------------------------------------------- the plates --- */
.plate {
  position: relative;
  padding: var(--plate-y) var(--gutter);
}
.plate--dark {
  background: var(--ink);
  color: var(--on-dark);
}

/* Drawing-sheet border, inset like a real plate */
.plate__frame {
  position: absolute;
  inset: clamp(0.6rem, 1.4vw, 1.4rem);
  border: 1px solid rgba(46, 92, 138, 0.55);
  pointer-events: none;
}

.plate__label {
  position: absolute;
  top: clamp(1.4rem, 2.6vw, 2.4rem);
  right: clamp(1.4rem, 2.6vw, 2.4rem);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
}

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.92rem 1.55rem;
  border: 1px solid transparent;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--primary { background: var(--brass-lt); color: var(--ink); }
.btn--primary:hover { background: #EDBB5C; transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink-line); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--brass-lt); color: var(--brass-lt); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ----------------------------------------------------------------- hero --- */
.hero { padding-top: clamp(2rem, 5vh, 3.5rem); padding-bottom: clamp(4rem, 9vh, 7rem); }

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: center;
  min-height: min(78vh, 780px);
}

.hero__eyebrow { margin-bottom: 1.6rem; }

.hero__title {
  /* Sized so the longest line clears its column at every width — the
     drawing is the loud element here, not the type. */
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.038em;
  color: #F3F8FB;
  margin-bottom: 1.7rem;
}
.hero__line { display: block; }
.hero__line:last-child { color: var(--brass-lt); }

.hero__lead {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.68;
  color: var(--on-dark);
  opacity: 0.88;
  margin-bottom: 2.3rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__figure { margin: 0; min-width: 0; }

/* -------------------------------------------------------- the drawing ----- */
.drawing {
  border: 1px solid rgba(46, 92, 138, 0.7);
  background:
    linear-gradient(180deg, rgba(29, 70, 113, 0.28), rgba(14, 42, 71, 0.1));
  padding: clamp(0.85rem, 1.6vw, 1.4rem);
}

.drawing__svg { display: block; width: 100%; height: auto; overflow: visible; }

.dwg-grid path {
  fill: none;
  stroke: rgba(46, 92, 138, 0.42);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}

.dwg-layer {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.dwg-layer.is-active { opacity: 1; visibility: visible; }

/* No vector-effect: non-scaling-stroke here. It makes stroke-dasharray
   measure in screen space while getTotalLength() reports user space, so the
   plot-on dash falls short of the path by exactly the SVG's scale factor and
   every shape stops ~76% drawn at desktop widths. Letting the stroke scale
   with the viewBox keeps both in the same coordinate system. */
.dwg-layer path,
.dwg-layer rect,
.dwg-layer circle {
  fill: none;
  stroke: #BBD3E6;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dwg-line--heavy path,
.dwg-line--heavy rect { stroke: #E6F1F8; stroke-width: 2; }
.dwg-line--thin path,
.dwg-line--thin rect,
.dwg-line--thin circle { stroke: rgba(187, 211, 230, 0.62); stroke-width: 1; }

.dwg-guide path,
.dwg-guide rect,
.dwg-guide circle {
  stroke: rgba(80, 133, 187, 0.9);
  stroke-dasharray: 4 6;
  stroke-width: 1;
}

.dwg-dim path { stroke: var(--brass-lt); stroke-width: 1.2; }

/* the crescent is a filled mark, not line work */
.dwg-mark rect {
  fill: var(--brass-lt);
  stroke: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.5s;
}
.dwg-layer.is-active .dwg-mark rect { opacity: 1; }

/* plotter draw-on: JS sets --len on each stroked node */
.dwg-layer.is-drawing path,
.dwg-layer.is-drawing rect,
.dwg-layer.is-drawing circle {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
}
.dwg-layer.is-active path,
.dwg-layer.is-active rect,
.dwg-layer.is-active circle {
  stroke-dashoffset: 0;
  /* Kept short so the completed drawing, not the draw-on, is what the page
     is showing almost all the time. */
  transition: stroke-dashoffset 0.85s var(--ease);
}
.dwg-layer.is-active .dwg-guide path,
.dwg-layer.is-active .dwg-guide rect,
.dwg-layer.is-active .dwg-guide circle { stroke-dasharray: 4 6; }
.dwg-layer.is-active .dwg-grid path { stroke-dasharray: 2 7; }

/* ------------------------------------------- the signature: scale bar ----- */
.scalebar { margin-top: clamp(1rem, 2vw, 1.6rem); }

.scalebar__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.scalebar__sheet { font-size: 0.66rem; letter-spacing: 0.15em; }
.scalebar__ratio {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
}
.scalebar__sheet,
.scalebar__ratio { transition: opacity 0.28s var(--ease); }
.scalebar.is-swapping .scalebar__sheet,
.scalebar.is-swapping .scalebar__ratio,
.scalebar.is-swapping .scalebar__marks { opacity: 0; }

.scalebar__rule {
  position: relative;
  height: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--brass-lt);
}
.scalebar__rule::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--brass-lt) 0 calc(100% / 8),
    transparent calc(100% / 8) calc(100% / 4)
  );
  opacity: 0.32;
}
.scalebar__tick {
  width: 1px;
  height: 12px;
  background: var(--brass-lt);
  justify-self: start;
}
.scalebar__tick:last-child { justify-self: end; grid-column: 4; }

.scalebar__marks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-mute);
  transition: opacity 0.28s var(--ease);
}
.scalebar__marks span:last-child { justify-self: end; text-align: right; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__figure { order: 2; }
}

/* ------------------------------------------------------------ statement --- */
.statement { background: var(--paper); }
.statement__inner { max-width: var(--maxw); margin-inline: auto; }

.statement__big {
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  font-stretch: 108%;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.024em;
  max-width: 20ch;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
  text-wrap: balance;
}

.statement__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  max-width: 68rem;
  margin-left: auto;
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line-soft);
  color: #2C4763;
}

/* --------------------------------------------------------- section head --- */
.section-head {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: end;
  padding-bottom: clamp(2.2rem, 4.5vw, 3.6rem);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.section-head--dark { border-bottom-color: rgba(46, 92, 138, 0.6); }

.section-head__title {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-stretch: 118%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-head--dark .section-head__title { color: #F3F8FB; }

.section-head__note {
  max-width: 44ch;
  color: #395574;
  font-size: 1rem;
  margin: 0;
}
.section-head--dark .section-head__note { color: var(--on-dark); opacity: 0.8; }

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* ---------------------------------------------------------- disciplines --- */
.disc-list { max-width: var(--maxw); margin-inline: auto; }

.disc {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 13rem;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(2rem, 3.6vw, 3rem) 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.disc.is-in { opacity: 1; transform: none; }
.disc:last-child { border-bottom: 0; }

/* the discipline code, drawn like a sheet prefix */
.disc__code {
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  transition: -webkit-text-stroke-color 0.35s var(--ease), color 0.35s var(--ease);
}
.disc:hover .disc__code { -webkit-text-stroke-color: var(--brass); }

.disc__name {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-stretch: 110%;
  font-weight: 650;
  margin-bottom: 0.75rem;
  letter-spacing: -0.022em;
}
.disc__desc { max-width: 52ch; color: #34506E; margin-bottom: 1.35rem; }

.disc__items {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem;
}
.disc__items li {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
  padding: 0.34rem 0.6rem;
  background: rgba(255, 255, 255, 0.5);
}

/* per-discipline unit of measure — the signature, repeated */
.disc__measure {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-left: clamp(1rem, 2vw, 1.6rem);
  border-left: 1px solid var(--line-soft);
  align-self: start;
}
.disc__ratio {
  font-family: var(--f-mono);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--brass);
  line-height: 1;
}
.disc__ratio--sm { font-size: 1.12rem; letter-spacing: 0; }

@media (max-width: 1000px) {
  .disc { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .disc__measure {
    grid-column: 1 / -1;
    flex-direction: row; align-items: baseline; gap: 0.9rem; flex-wrap: wrap;
    padding-left: 0; padding-top: 1.1rem;
    border-left: 0; border-top: 1px solid var(--line-soft);
  }
  .disc__ratio { font-size: 1.3rem; }
}

/* --------------------------------------------------------------- method --- */
.phases {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  background: rgba(46, 92, 138, 0.6);
  border: 1px solid rgba(46, 92, 138, 0.6);
}

.phase {
  background: var(--ink);
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.3s var(--ease);
}
.phase.is-in { opacity: 1; transform: none; }
.phase:hover { background: var(--ink-2); }

.phase__num { margin-bottom: 1.9rem; font-size: 0.64rem; }
.phase__name {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-stretch: 115%;
  color: #F3F8FB;
  margin-bottom: 0.7rem;
}
.phase p { color: var(--on-dark); opacity: 0.78; font-size: 0.95rem; }

/* ------------------------------------------------------------- practice --- */
.practice { background: var(--paper); }

.practice__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.practice__lead p {
  max-width: 56ch;
  color: #34506E;
  margin-top: 1.4rem;
  margin-bottom: 0;
}
.practice__lead .section-head__title { margin-bottom: 0.4rem; }

.practice__engagements-title {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}
.engagements { margin: 0; }
.engagement { padding: 1.15rem 0; border-bottom: 1px solid var(--line-soft); }
.engagement dt {
  font-weight: 650;
  font-stretch: 112%;
  font-size: 1.06rem;
  margin-bottom: 0.28rem;
}
.engagement dd { margin: 0; color: #46617D; font-size: 0.94rem; }

@media (max-width: 900px) {
  .practice__inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------- title block --- */
.titleblock__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.titleblock__heading {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-stretch: 120%;
  letter-spacing: -0.035em;
  color: #F3F8FB;
  margin-bottom: 1.1rem;
}
.titleblock__intro {
  color: var(--on-dark); opacity: 0.82;
  max-width: 40ch;
  margin-bottom: 2.4rem;
}

.regbox { margin: 0 0 1.2rem; border-top: 1px solid rgba(46, 92, 138, 0.65); }
.regbox__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(46, 92, 138, 0.45);
}
.regbox__row dt {
  font-family: var(--f-mono);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-mute);
  padding-top: 0.18rem;
}
.regbox__row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--on-dark);
  overflow-wrap: anywhere;
}
.regbox__row a { color: var(--brass-lt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.regbox__note {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--on-dark-mute);
  max-width: 42ch;
}

@media (max-width: 900px) {
  .titleblock__inner { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- form --- */
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.field--full { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 620px) {
  .form__grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }

.field label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}
.field__opt { text-transform: none; letter-spacing: 0.05em; opacity: 0.65; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: #F3F8FB;
  background: rgba(29, 70, 113, 0.3);
  border: 1px solid rgba(46, 92, 138, 0.9);
  border-radius: 0;
  padding: 0.78rem 0.9rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 8.5rem; }

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--on-dark-mute) 50%),
    linear-gradient(135deg, var(--on-dark-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field select option { background: var(--ink); color: var(--on-dark); }

.field input::placeholder,
.field textarea::placeholder { color: rgba(146, 170, 193, 0.65); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(70, 122, 175, 0.95); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-lt);
  background: rgba(29, 70, 113, 0.5);
  box-shadow: 0 0 0 3px var(--brass-glow);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #D98A7A; }

.field__error {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #E7A091;
}

.form__foot {
  margin-top: 1.7rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.form__fine {
  margin: 0;
  font-size: 0.78rem;
  color: var(--on-dark-mute);
  max-width: 30ch;
}

.btn--submit { position: relative; min-width: 12.5rem; }
.btn--submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.btn__spinner { display: none; width: 13px; height: 13px; }
.btn--submit.is-busy .btn__spinner {
  display: block;
  border: 1.5px solid rgba(14, 42, 71, 0.28);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid #D98A7A;
  background: rgba(217, 138, 122, 0.1);
  font-size: 0.9rem;
  color: #F0C4B9;
}
.form__status a { color: var(--brass-lt); }

/* sent state */
.form-sent {
  border: 1px solid rgba(46, 92, 138, 0.8);
  background: rgba(29, 70, 113, 0.28);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  animation: sent-in 0.5s var(--ease) both;
}
@keyframes sent-in { from { opacity: 0; transform: translateY(10px); } }

.form-sent__mark { width: 42px; height: 42px; margin-bottom: 1.1rem; }
.form-sent__mark path {
  fill: none; stroke: var(--brass-lt); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: check 0.5s var(--ease) 0.15s forwards;
}
@keyframes check { to { stroke-dashoffset: 0; } }

.form-sent h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-stretch: 115%;
  color: #F3F8FB;
  margin-bottom: 0.7rem;
}
/* Focused only to move the screen reader to the confirmation; it isn't
   interactive, so it shouldn't paint a focus ring. */
.form-sent h3[tabindex]:focus { outline: none; }
.form-sent p {
  color: var(--on-dark); opacity: 0.82;
  max-width: 42ch;
  margin-bottom: 1.6rem;
}

/* ------------------------------------------------------------ colophon ---- */
.colophon { background: var(--ink); border-top: 1px solid rgba(46, 92, 138, 0.5); }
.colophon__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.6rem var(--gutter);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
/* The colophon sits on ink but isn't a .plate--dark, so it needs the
   on-dark annot colour set explicitly. */
.colophon .annot {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--on-dark-mute);
}
.colophon a { color: var(--brass-lt); text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

/* --------------------------------------------------------- reduced motion - */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .disc, .phase { opacity: 1; transform: none; }
  .dwg-layer.is-active path,
  .dwg-layer.is-active rect,
  .dwg-layer.is-active circle { stroke-dashoffset: 0; }
  .dwg-mark rect { opacity: 1; }
}
