/* viljoen.co.za — family register
   Editorial: putty ground, hairline rules, oversized serif, flat surfaces.
   No cards, no pills, no gradients, no shadows, no hover theatrics.
   Hand-written. No framework, no build step. Fonts self-hosted. */

/* ---------------- fonts ---------------- */

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/Newsreader.ttf') format('truetype');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/Newsreader-Italic.ttf') format('truetype');
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------------- tokens ---------------- */

:root {
  --paper:       #E8E1D5;
  --paper-light: #F3EEE5;
  --ink:         #0E1714;
  --muted:       #68675F;
  --rule:        #B9B0A2;
  --rule-soft:   #D3CABB;
  --pine:        #287A56;
  --brass:       #C98A3A;

  --serif: 'Newsreader', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --rail: clamp(4.5rem, 11vw, 11rem);

  /* The masthead is sized from the crest, and the hero subtracts the result,
     so the two can never drift apart. The 1px is the masthead's bottom rule. */
  --crest: clamp(2.75rem, 4.7vw, 4.6rem);
  --mast-pad: clamp(0.9rem, 1.4vw, 1.35rem);
  --mast-h: calc(var(--crest) + (var(--mast-pad) * 2) + 1px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* barely-there paper tooth — generated, not a remote asset */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--pine); color: var(--paper-light); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

/* ---------------- the register grid ----------------
   A narrow folio rail on the left with a vertical spine rule,
   and a ten-column editorial field on the right. */

.sheet {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  padding-inline: var(--pad);
}

.rail {
  border-right: 1px solid var(--rule);
  padding: 1.6rem 1.2rem 0 0;
}
.rail:empty { border-right: 0; padding: 0; }
.rail-num {
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 0.5rem;
}
.rail-name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.25rem; line-height: 1.15; color: var(--ink);
  display: block;
}
.rail-crest { padding-top: clamp(1.6rem, 3.5vw, 2.75rem); }
.rail-crest img {
  width: 100%; max-width: 10.5rem; height: auto;
}

.rail-note {
  font-family: var(--mono); font-size: 0.6875rem; line-height: 1.5;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-top: 1.6rem;
}

.field {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  column-gap: clamp(0.75rem, 1.5vw, 1.5rem);
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.25rem, 7vw, 7rem) clamp(1.25rem, 3vw, 3rem);
  align-content: start;
}

.c-full  { grid-column: 1 / -1; }
.c-1-6   { grid-column: 1 / 7; }
.c-1-5   { grid-column: 1 / 6; }
.c-4-11  { grid-column: 4 / -1; }
.c-6-11  { grid-column: 6 / -1; }
.c-7-11  { grid-column: 7 / -1; }

@media (max-width: 820px) {
  .sheet { grid-template-columns: 1fr; }
  .rail {
    border-right: 0; border-bottom: 1px solid var(--rule);
    padding: 1.1rem 0 0.9rem;
    display: flex; align-items: baseline; gap: 0.9rem;
  }
  .rail:empty { display: none; }
  .rail-crest { padding-block: 1.25rem 1.1rem; }
  .rail-crest img { max-width: 4.75rem; }
  .rail-num { margin-bottom: 0; }
  .rail-note { display: none; }
  .rail-name { font-size: 1.05rem; }
  .field { padding-left: 0; padding-block: 2.75rem 3.5rem; }
  .c-1-6, .c-1-5, .c-4-11, .c-6-11, .c-7-11 { grid-column: 1 / -1; }
}

/* ---------------- type ---------------- */

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }

.nameplate {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 21vw, 17rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.045em;
  margin: 0;
  white-space: nowrap;
}
.nameplate .tld {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  vertical-align: super;
  margin-left: 0.35em;
}

.title {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.title em { font-style: italic; }

.subtitle {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2; letter-spacing: -0.02em;
}

.prose { max-width: 58ch; }
.lede { font-size: 1.1875rem; line-height: 1.5; }

.meta {
  font-family: var(--mono); font-size: 0.6875rem; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
strong, b { font-weight: 600; }
em { font-style: italic; }

code {
  font-family: var(--mono); font-size: 0.9em;
  color: var(--pine); background: transparent;
}

/* ---------------- masthead ---------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding-inline: var(--pad);
}
/* Three tracks so the crest sits on the page's centre line, not merely
   between its neighbours. The first track is deliberately empty. */
.masthead-in {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1.5rem; padding-block: var(--mast-pad);
}
.masthead-in .brand { grid-column: 2; justify-self: center; }
.brand {
  display: inline-flex; align-items: center; gap: clamp(0.65rem, 1.1vw, 1.05rem);
  text-decoration: none;
}
.brand-crest { width: auto; height: var(--crest); flex: none; }

.wordmark {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  letter-spacing: -0.02em; text-decoration: none;
}
.wordmark .tld {
  font-family: var(--sans); font-size: clamp(0.8rem, 1.05vw, 1rem);
  color: var(--muted);
}
.masthead nav {
  grid-column: 3; justify-self: end;
  display: flex; align-items: baseline; gap: 1.75rem;
}
.masthead nav a {
  font-size: 0.9375rem; text-decoration: none; color: var(--muted);
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
/* Too narrow to centre anything: crest to the left, links to the right. */
@media (max-width: 780px) {
  .masthead-in { grid-template-columns: auto 1fr; }
  .masthead-in .brand { grid-column: 1; justify-self: start; }
  .masthead nav { grid-column: 2; gap: 1.1rem; }
}
@media (max-width: 560px) {
  .masthead .wordmark { display: none; }
  .masthead nav { gap: 0.9rem; font-size: 0.875rem; }
}

/* ---------------- actions ---------------- */

.action {
  display: inline-block;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; line-height: 1;
  padding: 1rem 1.4rem;
  border: 1px solid var(--pine); border-radius: 2px;
  background: var(--pine); color: var(--paper-light);
  text-decoration: none; cursor: pointer;
}
.action:hover { background: var(--ink); border-color: var(--ink); }

.action-lg {
  font-size: 1.0625rem;
  padding: 1.3rem 3rem;
  min-width: min(22rem, 100%);
  text-align: center;
}

.action-wide {
  min-width: 0;
  width: 100%;
  border-radius: 10px;
  background: rgba(40, 122, 86, 0.14);
  border: 4px solid var(--pine);
  color: var(--ink);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.action-wide:hover {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--paper-light);
}

.action-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.action-quiet:hover { background: transparent; color: var(--pine); border-color: var(--pine); }

.link {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 1px;
}
.link:hover { border-bottom-color: var(--pine); color: var(--pine); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  display: grid;
  align-items: start;
  aspect-ratio: 1592 / 708;
  min-height: 26rem;
  max-height: calc(100svh - var(--mast-h));
  padding-inline: var(--pad);
  overflow: hidden;
}

.hero-photo, .hero-photo img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  max-width: none;
}

/* The type sits over the hazy middle distance, so it gets a soft lift
   from the left — enough to hold contrast, not enough to grey the photo. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(105% 95% at 6% 34%,
    rgba(240,236,227,0.70) 0%,
    rgba(240,236,227,0.44) 30%,
    rgba(240,236,227,0.14) 54%,
    rgba(240,236,227,0) 72%);
}

.hero-plate {
  position: relative; z-index: 2;
  display: grid;
  justify-self: start;
  justify-items: stretch;
  max-width: 100%;
  padding-top: clamp(2rem, 22%, 10rem);
}

.hero .nameplate {
  font-size: clamp(4rem, 12.5vw, 10.5rem);
  margin-right: 0;
}
.hero .nameplate .tld { font-size: clamp(0.9rem, 1.7vw, 1.6rem); color: var(--ink); opacity: 0.62; }
.hero .nameplate .at  { font-size: clamp(1.6rem, 3vw, 2.85rem); color: var(--ink); opacity: 0.62; }

/* a quiet prefix, sitting on the surname's baseline rather than floating */
.nameplate .at {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  vertical-align: baseline;
  /* pulled into the open wedge under the V's left arm */
  margin-right: -0.85em;
}

.hero-claim { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; margin-top: clamp(1.5rem, 3vw, 2.4rem); }

/* the address being composed, with the action alongside it */
.claimbar {
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.7rem;
}

.claimbar-box {
  display: grid;
  grid-template-columns: minmax(3.5rem, 1fr) auto;
  align-items: center;
  column-gap: 0.35rem;
  padding: 0.95rem 1.15rem;
  border: 4px solid var(--pine);
  border-radius: 10px;
  background: rgba(40, 122, 86, 0.14);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.claimbar-box:focus-within {
  background: rgba(40, 122, 86, 0.20);
  outline: 2px solid var(--pine); outline-offset: 3px;
}

.claimbar .claimbar-in {
  min-width: 0;
  width: auto;
  border: 0; border-radius: 0;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600;
  line-height: 1; color: var(--ink);
  background: transparent; padding: 0;
  text-align: right;
}
.claimbar .claimbar-in::placeholder::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
.claimbar .claimbar-in:focus:focus { outline: none; border: 0; }

.claimbar-suffix {
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600;
  line-height: 1; color: var(--ink); white-space: nowrap;
}

.claimbar-go {
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1;
  padding: 0 1.85rem;
  border: 4px solid var(--pine); border-radius: 10px;
  background: var(--pine); color: var(--paper-light);
  cursor: pointer; white-space: nowrap;
}
.claimbar-go:hover { background: var(--ink); border-color: var(--ink); }

@media (max-width: 620px) {
  .claimbar { grid-template-columns: minmax(0, 1fr); }
  .claimbar-go { padding: 1.05rem 1.85rem; }
}

.hero-terms { margin-top: 1.1rem; }

/* Above this width the photo is uncropped, so the near oak sits at a fixed
   46% of the frame. Give the type that strip and centre it inside. */
@media (min-width: 1101px) {
  .hero { grid-template-columns: 46% minmax(0, 1fr); padding-inline: 0; }
  .hero-plate { grid-column: 1; justify-self: center; }
}

@media (max-width: 820px) {
  .hero {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    align-items: end;
    padding-block: 0 clamp(2.25rem, 7vw, 3.5rem);
    padding-top: clamp(14rem, 46vw, 20rem);
  }
  .hero-photo img { object-position: 58% 46%; }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(240,236,227,0) 0%,
      rgba(240,236,227,0.10) 40%,
      rgba(240,236,227,0.44) 66%,
      rgba(240,236,227,0.62) 100%);
  }
  .hero-plate { max-width: none; }
}

/* ---------------- works-with band ---------------- */

.compat {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.05rem var(--pad);
  display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.25rem);
  overflow: hidden;
}
.compat-label {
  font-family: var(--mono); font-size: 0.6875rem; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; flex: none;
}
.compat-viewport {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5rem, #000 calc(100% - 5rem), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5rem, #000 calc(100% - 5rem), transparent);
}
.compat-track {
  display: flex; align-items: center; width: max-content;
  animation: compat-drift 34s linear infinite;
}
.compat-item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-right: clamp(2.75rem, 6vw, 6rem);
  font-family: var(--sans); font-size: 1rem; line-height: 1;
  letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
}
.compat-item svg {
  height: var(--ih, 1.25rem); width: auto; flex: none;
  fill: var(--brand, currentColor);
}
.compat-item-any {
  font-family: var(--serif); font-style: italic; font-size: 1.0625rem;
  color: var(--muted);
}
@keyframes compat-drift { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .compat-track { animation: none; }
}

/* ---------------- rule-separated entries (replaces cards) ---------------- */

.entries { display: grid; gap: 0; }
.entry {
  border-top: 1px solid var(--rule);
  padding-block: 1.4rem 1.9rem;
  display: grid; gap: 0.45rem;
  grid-template-columns: 2.5rem minmax(0, 1fr);
}
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-num {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em;
  color: var(--muted); grid-row: 1 / span 2; padding-top: 0.4rem;
}
.entry h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.entry p { color: var(--muted); font-size: 0.9875rem; margin: 0; max-width: 46ch; }

.entries-3 { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .entries-3 { grid-template-columns: repeat(3, 1fr); column-gap: clamp(1rem, 2.5vw, 2.5rem); }
  .entries-3 .entry { border-bottom: 1px solid var(--rule); }
}

/* ---------------- inbox specimen ---------------- */

.specimen { border-top: 1px solid var(--rule); }
.specimen-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline; gap: 1rem;
  padding-block: 0.85rem; border-bottom: 1px solid var(--rule-soft);
}
.specimen-from { font-weight: 600; font-size: 0.95rem; }
.specimen-sub { color: var(--muted); font-size: 0.875rem; display: block; font-weight: 400; }
.specimen-flag {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pine); white-space: nowrap;
}
.specimen-cap { margin-top: 0.9rem; }

/* ---------------- tariff ledger (replaces pricing cards) ---------------- */

.ledger { border-top: 1px solid var(--ink); margin-top: 0.5rem; }

.tariff {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
  align-items: start; gap: clamp(1rem, 3vw, 3rem);
  padding: 1.9rem 0 2rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  border-left: 4px solid transparent;
}
.tariff-paid { border-left-color: var(--pine); }

.tariff h3 { font-size: 2rem; line-height: 1; letter-spacing: -0.03em; }
.tariff-what { color: var(--muted); font-size: 0.9875rem; max-width: 40ch; }
.tariff-what ul { margin: 0.7rem 0 0; padding: 0; list-style: none; }
.tariff-what li { padding-left: 1rem; text-indent: -1rem; margin-bottom: 0.2rem; }
.tariff-what li::before { content: "\2014\00a0"; color: var(--rule); }
.tariff-what li.no::before { content: "\00d7\00a0"; color: var(--brass); }

.tariff-cost { text-align: right; }
.tariff-fig {
  font-family: var(--serif); font-size: 2.4rem; line-height: 1;
  letter-spacing: -0.03em; display: block;
}
.tariff-term { display: block; margin-top: 0.35rem; }
.tariff-cost .action { margin-top: 1rem; }

@media (max-width: 760px) {
  .tariff { grid-template-columns: 1fr; gap: 0.9rem; padding-left: 1rem; }
  .tariff-cost { text-align: left; }
}

.ledger-foot { margin-top: 1.4rem; color: var(--muted); font-size: 0.9375rem; max-width: 62ch; }

/* ---------------- questions (answers shown, no accordion) ---------------- */

.qa { display: grid; gap: 0; }
.qa-item { border-top: 1px solid var(--rule); padding-block: 1.5rem 1.7rem; }
.qa-item h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.45rem; }
.qa-item p { color: var(--muted); max-width: 62ch; font-size: 0.9875rem; }

@media (min-width: 980px) {
  .qa { grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 4rem); }
}

/* ---------------- hard-cut inverted section ---------------- */

.cut { background: var(--ink); color: var(--paper); }
.cut .rail { border-right-color: #24322C; }
.cut .rail-num, .cut .rail-note { color: #7E8C85; }
.cut .rail-name { color: var(--paper); }
.cut .title { color: var(--paper); }
.cut p { color: #ADB8B2; }
.cta-line { margin-top: 2.6rem; }

.cut .action { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cut .action:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
@media (max-width: 820px) { .cut .rail { border-bottom-color: #24322C; } }

/* ---------------- forms ---------------- */

.form { margin-top: 2.2rem; display: grid; gap: 1.5rem; }

.field-row { display: grid; gap: 0.4rem; max-width: 34rem; }
.field-row label { font-size: 0.9375rem; font-weight: 600; }
.field-row .hint { font-size: 0.875rem; color: var(--muted); max-width: 52ch; }

input[type="text"], input[type="email"], textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.8rem 0.85rem;
}
input:focus, textarea:focus { border-color: var(--pine); outline: none; }
input::placeholder, textarea::placeholder { color: #9A9385; }
textarea { min-height: 6.5rem; resize: vertical; }

.handle-row {
  display: flex; align-items: stretch;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-light);
}
.handle-row:focus-within { border-color: var(--pine); }
.handle-row input {
  border: 0; background: transparent; flex: 1; min-width: 0;
  text-align: right; font-family: var(--mono); font-size: 1rem;
}
.handle-row input:focus { outline: none; }
.handle-suffix {
  display: flex; align-items: center; padding-right: 0.85rem;
  font-family: var(--mono); font-size: 1rem; color: var(--pine);
  white-space: nowrap; user-select: none;
}

.claimhead { margin-bottom: clamp(2rem, 4.5vw, 3.75rem); }

.claimhead-line {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: 0.12em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(0.35rem, 1vw, 0.8rem);
}

.claimhead .claimhead-in {
  flex: 1 1 auto; min-width: 4ch; width: auto;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 8.4vw, 6.75rem);
  line-height: 1.04; letter-spacing: -0.035em;
  color: var(--ink); background: transparent;
  border: 0; border-radius: 0; padding: 0;
  caret-color: var(--pine);
}
/* once the mirror is measuring, the field is exactly as wide as its text */
.claimhead-line.is-fit .claimhead-in { flex: 0 0 auto; }
.claimhead .claimhead-in::placeholder { color: var(--muted); opacity: 1; }

/* No-script fallback: the whole prompt pulses as one. With script, the
   per-letter cue below takes over and this is switched off. */
.claimhead .claimhead-in:placeholder-shown {
  animation: claim-blink 1.5s ease-in-out infinite;
}
.claimhead .claimhead-in:focus { outline: none; border: 0; animation: none; }

@keyframes claim-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.28; }
}
@media (prefers-reduced-motion: reduce) {
  .claimhead .claimhead-in:placeholder-shown { animation: none; }
}

.claimhead-suffix {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(0.9rem, 1.75vw, 1.5rem);
  letter-spacing: 0.02em; color: var(--muted); white-space: nowrap;
}

/* the prompt drawn again as separate letters, each blinking on its own beat.
   Sits exactly over the field's own placeholder, which turns transparent. */
.claimhead-cue {
  position: absolute; visibility: hidden;
  pointer-events: none; white-space: pre; overflow: hidden;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 8.4vw, 6.75rem);
  line-height: 1.04; letter-spacing: -0.035em;
  color: var(--muted);
}
.claimhead-cue span { animation: claim-blink 1.5s ease-in-out infinite; }

.claimhead-line.has-cue .claimhead-cue { visibility: visible; }
.claimhead-line.has-cue .claimhead-in::placeholder { color: transparent; }
.claimhead-line.has-cue .claimhead-in { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .claimhead-cue span { animation: none; }
}

/* off-flow twin of the input, used only to measure the typed text */
.claimhead-ghost {
  position: absolute; left: 0; top: 0;
  visibility: hidden; pointer-events: none; white-space: pre;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 8.4vw, 6.75rem);
  line-height: 1.04; letter-spacing: -0.035em;
}

.claimhead .hint { display: block; margin-top: 0.9rem; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.errors {
  border-left: 4px solid var(--brass);
  background: rgba(201,138,58,0.09);
  padding: 0.9rem 1rem; font-size: 0.9375rem;
}
.errors ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.errors li { margin-top: 0.2rem; }

.fineprint { font-size: 0.875rem; color: var(--muted); max-width: 52ch; }
.fineprint a { color: var(--muted); }

/* ---------------- legal pages ---------------- */

.doc { max-width: 68ch; }
.doc h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; }
.doc .stamp { margin: 0.9rem 0 2.6rem; }
.doc h1 + p { margin-top: 1.6rem; }
.doc h2 {
  font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em;
  margin: 2.8rem 0 0.7rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 2.2rem; }
.doc p, .doc li { color: #3D4744; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: 0.5rem; }
.doc strong { color: var(--ink); }
.doc a { color: var(--pine); }
.doc a.action { color: var(--paper-light); }

/* ---------------- confirmation ---------------- */

.receipt { max-width: 40rem; }
.receipt-mark {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pine);
  border-bottom: 1px solid var(--pine); display: inline-block;
  padding-bottom: 0.3rem; margin-bottom: 1.6rem;
}
.receipt-addr {
  font-family: var(--mono); font-size: 1.05rem; color: var(--pine);
  border-left: 4px solid var(--pine); padding: 0.6rem 0 0.6rem 0.9rem;
  margin: 1.4rem 0; word-break: break-all;
}

/* ---------------- colophon ---------------- */

.colophon {
  border-top: 1px solid var(--rule);
  padding-inline: var(--pad);
  background: var(--paper);
}
.colophon-in {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem;
  align-items: baseline; justify-content: space-between;
  padding-block: 2.2rem 2.6rem;
}
.colophon nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.colophon a { font-size: 0.9375rem; color: var(--muted); text-decoration: none; }
.colophon a:hover { color: var(--ink); }
.colophon .meta { margin-top: 0.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.1rem; border-radius: 2px; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }
