/* cpydigital — site styles. Tokens first; everything below reads from them. */

:root {
  /* Brand (tokens/brand.css) */
  --ink: #12141A;
  --signal: #E5482D;
  --paper: #F3F1EC;
  --white: #FFFFFF;
  --muted: #4E515A;
  --line: #D9D6CF;

  /* Derived tone steps */
  --paper-2: #EAE7E0;          /* filled inputs, quiet tiles */
  --paper-3: #E1DDD4;          /* hover on filled */
  --ink-2: #1C1F27;            /* surface on ink */
  --ink-3: #272B35;
  --on-ink: #F3F1EC;
  --on-ink-2: rgba(243, 241, 236, .72);   /* ≈ 9:1 on ink */
  --on-ink-3: rgba(243, 241, 236, .5);    /* large text only */
  --ok: #2F6B4F;
  --warn: #8A5A00;

  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale: 5 visible sizes do the work */
  --fs-display: clamp(64px, 11.2vw, 188px);
  --fs-h1: clamp(44px, 6.6vw, 108px);
  --fs-h2: clamp(34px, 4.4vw, 68px);
  --fs-h3: clamp(22px, 1.9vw, 30px);
  --fs-lead: clamp(19px, 1.45vw, 23px);
  --fs-body: clamp(17px, 1.05vw, 18px);
  --fs-small: 14px;

  /* Space: 4/8 grid */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --pad: clamp(20px, 4.2vw, 72px);
  --section: clamp(88px, 11vw, 176px);
  --max: 1680px;
  --measure: 66ch;

  /* Radii: concentric by size */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms; --t-med: 340ms; --t-slow: 700ms;

  /* The copy offset, from the mark: 16 units on a 120 grid */
  --copy-x: max(.055em, 5px); --copy-y: max(.055em, 5px);

  --z-nav: 50; --z-skip: 100;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 0;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--white); }

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

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--r-sm);
}
.skip:focus { top: var(--s4); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- The copy device: an original with its Signal copy offset 45° behind it ---------- */
.dup { position: relative; display: inline-block; isolation: isolate; }
.dup__orig {
  position: relative; z-index: 1;
  /* The clean gap at the crossing, drawn in the ground colour */
  text-shadow:
    .03em 0 0 var(--dup-gap, var(--paper)), -.03em 0 0 var(--dup-gap, var(--paper)),
    0 .03em 0 var(--dup-gap, var(--paper)), 0 -.03em 0 var(--dup-gap, var(--paper)),
    .022em .022em 0 var(--dup-gap, var(--paper)), -.022em -.022em 0 var(--dup-gap, var(--paper)),
    .022em -.022em 0 var(--dup-gap, var(--paper)), -.022em .022em 0 var(--dup-gap, var(--paper));
}
.dup__copy {
  position: absolute; inset: 0; z-index: 0;
  color: var(--signal);
  transform: translate(var(--copy-x), var(--copy-y));
  pointer-events: none; user-select: none;
}
/* Until the intro runs, the page title's copy waits exactly under its original */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.hero-done) [data-hero] .dup__copy { transform: none; }
}
.on-ink .dup, .dup--ink { --dup-gap: var(--ink); }
.on-white .dup { --dup-gap: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(243, 241, 236, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow var(--t-med) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--paper); } }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; } }
html[data-perf="low"] .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.wordmark { font-size: 24px; letter-spacing: -.035em; font-weight: 500; line-height: 1; }
.wordmark b { font-weight: 700; }

.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px;
  border-radius: var(--r-pill); text-decoration: none; font-size: 16px; font-weight: 500;
  transition: background-color var(--t-fast) var(--ease);
}
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--paper-2); }
.nav .nav__cta { background: var(--ink); color: var(--paper); margin-inline-start: var(--s2); }
.nav .nav__cta:hover { background: var(--ink-3); }

.menu-btn { display: none; }

@media (max-width: 860px) {
  .site-header .wrap { height: 64px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border: 0; border-radius: var(--r-pill); background: var(--paper-2); font-weight: 500; cursor: pointer;
  }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s3) var(--pad) var(--s6); background: var(--paper);
    box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(18, 20, 26, .25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a { font-size: 28px; min-height: 60px; padding: 0; border-radius: 0; letter-spacing: -.02em; }
  .nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--signal); }
  .nav .nav__cta { background: none; color: var(--ink); margin: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-pill);
  background: var(--signal); color: var(--white); font-size: 17px; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}
.btn:hover { background: #CF3D23; }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); }
.btn--ghost { background: var(--paper-2); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-3); }
.btn svg { width: 18px; height: 18px; }
.btn.is-loading { pointer-events: none; opacity: .7; }

.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 500; text-decoration: none; color: var(--ink);
}
.link span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; transition: text-decoration-color var(--t-fast) var(--ease); }
.link:hover span { text-decoration-color: currentColor; }
.link svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 140px) clamp(64px, 8vw, 128px); }
.hero h1 {
  font-size: var(--fs-display); line-height: .9; letter-spacing: -.055em; font-weight: 500;
  margin-inline-start: -.04em;
}
.hero h1 { font-size: clamp(64px, 13.6vw, 236px); }
.hero h1 .dup { display: block; width: fit-content; }
/* Two-line statement: line one flush left, line two flush right */
.hero h1 .dup + .dup { margin-inline-start: auto; }
/* "come first." is ~4.6em wide: 17vw keeps it inside a 375px screen with margins */
@media (max-width: 760px) { .hero h1 { font-size: 17vw; } }
.hero__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s6);
  margin-top: clamp(40px, 5.4vw, 88px);
}
.hero__lead { font-size: var(--fs-lead); line-height: 1.42; max-width: 34ch; margin: 0; color: var(--ink); }
.hero__actions { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
@media (max-width: 960px) { .hero__row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hero__actions .btn { flex: 1 1 100%; } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(64px, 7vw, 112px); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.04em; max-width: 16ch; }
.section-head p { max-width: 40ch; color: var(--muted); margin: 0; }
.on-ink .section-head p { color: var(--on-ink-2); }

.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.meta > * + *::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; margin-inline-end: 14px; vertical-align: middle; }

/* ---------- Cover: a glyph with its copy, drawn in code ---------- */
.cover {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--paper-2); border-radius: var(--r-lg); aspect-ratio: 4 / 3;
  --dup-gap: var(--paper-2);
}
.cover .dup { font-size: clamp(96px, 16vw, 260px); line-height: .8; letter-spacing: -.06em; font-weight: 500; }
.cover .dup__copy { transition: transform var(--t-slow) var(--ease); }
.cover--sm .dup { font-size: clamp(72px, 9vw, 140px); }
.cover--ink { background: var(--ink); color: var(--on-ink); --dup-gap: var(--ink); }
.cover--signal { background: var(--signal); color: var(--white); --dup-gap: var(--signal); }
.cover--signal .dup__copy { color: var(--ink); }
.cover--white { background: var(--white); --dup-gap: var(--white); }
a:hover .cover .dup__copy { transform: translate(.085em, .085em); }

/* ---------- Featured ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; text-decoration: none; }
.featured .cover { aspect-ratio: 5 / 4; }
.featured .cover .dup { font-size: clamp(120px, 22vw, 360px); }
.featured h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.04em; margin: var(--s5) 0; }
.featured p { font-size: var(--fs-lead); line-height: 1.45; color: var(--muted); max-width: 38ch; }
.featured:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; text-decoration-color: var(--signal); }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

/* ---------- Article index ---------- */
.index { list-style: none; margin: 0; padding: 0; }
.index li + li { box-shadow: 0 -1px 0 var(--line); }
.index a {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 26rem) 8rem; gap: var(--s6); align-items: baseline;
  padding-block: clamp(24px, 2.6vw, 40px); text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.index time, .index .cat { color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.index .cat { text-align: end; }
.index h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.02em; }
.index p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.index a:hover h3 { color: var(--signal); }
@media (hover: hover) and (min-width: 861px) {
  .index:hover a { opacity: .45; transition: opacity var(--t-med) var(--ease); }
  .index:hover a:hover { opacity: 1; }
}
@media (max-width: 1100px) { .index a { grid-template-columns: 7rem minmax(0, 1fr) 7rem; } .index p { display: none; } }
@media (max-width: 640px) {
  .index a { grid-template-columns: 1fr auto; gap: var(--s2) var(--s4); }
  .index h3 { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Register band (ink) ---------- */
.register-band { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.register-band h2 { font-size: var(--fs-h1); line-height: .95; letter-spacing: -.05em; }
.register-band .lead { font-size: var(--fs-lead); color: var(--on-ink-2); max-width: 36ch; margin-top: var(--s6); }
.url-demo {
  margin-top: clamp(40px, 5vw, 72px); font-size: clamp(20px, 2.3vw, 36px); letter-spacing: -.03em; font-weight: 500;
  color: var(--on-ink-3); overflow-wrap: anywhere;
}
.url-demo b { color: var(--on-ink); font-weight: 500; }
.url-demo i { font-style: normal; color: var(--signal); }
@media (max-width: 960px) { .register-band { grid-template-columns: minmax(0, 1fr); } }

.lookup { background: var(--ink-2); border-radius: var(--r-xl); padding: clamp(20px, 2.6vw, 36px); }
.lookup label { display: block; font-size: 16px; color: var(--on-ink-2); margin-bottom: var(--s3); }
.lookup__field { display: flex; gap: var(--s2); }
.lookup__field input {
  flex: 1; min-width: 0; height: 56px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: var(--ink-3); color: var(--on-ink); font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.lookup__field input::placeholder { color: var(--on-ink-3); }
.lookup__field input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.lookup__field .btn { min-height: 56px; }
.lookup__out { margin-top: var(--s5); min-height: 196px; }
.lookup__msg { color: var(--on-ink-2); font-size: 16px; padding: var(--s5) 0; }

.rec-card {
  display: block; background: var(--paper); color: var(--ink); border-radius: var(--r-lg);
  padding: var(--s5); text-decoration: none; transition: transform var(--t-med) var(--ease);
}
.rec-card:hover { transform: translateY(-2px); }
.rec-card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.rec-card__no { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rec-card h3 { font-size: 26px; line-height: 1.1; letter-spacing: -.025em; }
.rec-card .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.rec-card ul { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: 2px; }
.rec-card li { display: flex; justify-content: space-between; gap: var(--s4); font-size: 15px; padding: 10px 0; box-shadow: 0 -1px 0 var(--line); }
.rec-card li span:last-child { color: var(--muted); text-align: end; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; background: var(--paper-2); color: var(--ink); white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--verified { background: #DCEBE2; color: var(--ok); }
.chip--pending { background: #F3E6C8; color: var(--warn); }
.chip--unverified, .chip--muted { background: var(--paper-2); color: var(--muted); }
.chip--signal { background: #FBE3DD; color: #B5341C; }

.recent-records { margin-top: var(--s7); display: grid; gap: 2px; }
.recent-records a {
  display: flex; justify-content: space-between; gap: var(--s4); align-items: baseline;
  padding: 14px 0; text-decoration: none; color: var(--on-ink-2); box-shadow: 0 -1px 0 rgba(243,241,236,.12);
}
.recent-records a:hover { color: var(--on-ink); }
.recent-records .num { color: var(--on-ink-3); font-size: 15px; }

/* ---------- Topics ---------- */
.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 2vw, 32px); }
.topics a {
  display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none;
  font-size: clamp(36px, 5.4vw, 88px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.topics sup { font-size: 16px; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; top: -1.6em; }
.topics a:hover { color: var(--signal); }
.topics li:not(:last-child) a::after { content: '/'; color: var(--line); margin-inline-start: clamp(16px, 2vw, 32px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding-top: clamp(72px, 9vw, 140px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s6); }
.footer-grid h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -.04em; max-width: 14ch; }
.footer-grid h3 { font-size: 15px; font-weight: 500; color: var(--on-ink-3); margin-bottom: var(--s3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--on-ink-2); }
.footer-grid li a:hover { color: var(--on-ink); }
.footer-cta { margin-top: var(--s6); }
.footer-mark { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); margin-top: clamp(72px, 9vw, 140px); }
.footer-mark svg { width: clamp(160px, 26vw, 420px); height: auto; margin-bottom: -6%; }
.footer-legal { color: var(--on-ink-3); font-size: var(--fs-small); padding-bottom: var(--s6); max-width: 46ch; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-mark { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 80px); }
.page-head h1 { font-size: var(--fs-h1); line-height: .95; letter-spacing: -.05em; margin-inline-start: -.03em; }
.page-head .lead { font-size: var(--fs-lead); color: var(--muted); max-width: 44ch; margin-top: var(--s6); margin-bottom: 0; }

/* ---------- Blog grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s7); }
.filters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--paper-2); text-decoration: none; font-weight: 500; font-size: 16px;
  transition: background-color var(--t-fast) var(--ease);
}
.filters a:hover { background: var(--paper-3); }
.filters a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.filters small { font-size: 13px; opacity: .6; font-variant-numeric: tabular-nums; }

.post-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(20px, 2.4vw, 40px); }
.post-card { grid-column: span 4; text-decoration: none; display: flex; flex-direction: column; gap: var(--s5); }
.post-card--lead { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.post-card--lead .cover { aspect-ratio: 16 / 10; }
.post-card--wide { grid-column: span 6; }
.post-card h2 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.025em; margin-top: var(--s3); }
.post-card--lead h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.04em; margin-block: var(--s5); }
.post-card p { color: var(--muted); margin: var(--s3) 0 0; font-size: 16px; }
.post-card--lead p { font-size: var(--fs-lead); }
.post-card:hover h2 { color: var(--signal); }
@media (max-width: 1000px) { .post-card { grid-column: span 6; } .post-card--lead { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .post-card, .post-card--wide { grid-column: span 12; } }

.empty { padding: var(--s9) 0; color: var(--muted); font-size: var(--fs-lead); max-width: 40ch; }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(40px, 6vw, 96px) clamp(32px, 4vw, 56px); }
.article-head .back { margin-bottom: var(--s6); }
.article-head h1 { font-size: clamp(40px, 5.6vw, 92px); line-height: .98; letter-spacing: -.045em; max-width: 17ch; margin-top: var(--s5); }
.article-head .lead { font-size: var(--fs-lead); color: var(--muted); max-width: 46ch; margin: var(--s6) 0 0; }
.article-cover { aspect-ratio: 21 / 8; border-radius: var(--r-xl); }
.article-cover .dup { font-size: clamp(120px, 20vw, 340px); }
@media (max-width: 640px) { .article-cover { aspect-ratio: 4 / 3; } }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); gap: var(--s7); padding-block: clamp(48px, 6vw, 96px) var(--section); }
.article-layout > .prose { grid-column: 2; }
.toc { grid-column: 1; position: sticky; top: 104px; align-self: start; font-size: 15px; }
.toc h2 { font-size: 15px; color: var(--muted); margin-bottom: var(--s3); font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); line-height: 1.35; transition: color var(--t-fast) var(--ease); }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { box-shadow: inset 3px 0 0 var(--signal); padding-inline-start: 12px; }
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout > .prose { grid-column: 1; max-width: var(--measure); }
  .toc { display: none; }
}

.prose { font-size: 19px; line-height: 1.62; }
@media (max-width: 640px) { .prose { font-size: 18px; } }
.prose > :first-child { margin-top: 0; }
.prose p:first-of-type { font-size: 1.12em; line-height: 1.55; }
.prose h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.03em; margin: 2.2em 0 .6em; scroll-margin-top: 100px; }
.prose h3 { font-size: 23px; letter-spacing: -.02em; margin: 1.8em 0 .5em; }
.prose a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--signal); }
.prose ul, .prose ol { padding-inline-start: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; padding-inline-start: .25em; }
.prose ol li::marker { font-variant-numeric: tabular-nums; color: var(--muted); }
.prose ul li::marker { color: var(--signal); }
.prose strong { font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0; padding: var(--s5) var(--s6); background: var(--white); border-radius: var(--r-md);
  box-shadow: inset 4px 0 0 var(--signal); font-size: .95em;
}
.prose blockquote p:last-child { margin: 0; }
.prose em:only-child { color: var(--muted); font-style: normal; font-size: 16px; }
.prose code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 6px; }

.more { padding-bottom: var(--section); }

/* ---------- Register list ---------- */
.search { display: flex; gap: var(--s2); max-width: 720px; margin-top: var(--s7); }
.search input {
  flex: 1; min-width: 0; height: 56px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  background: var(--white); font-size: 18px;
}
.search input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.reg-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.reg-table th { text-align: start; font-weight: 500; font-size: var(--fs-small); color: var(--muted); padding: 0 var(--s4) var(--s3) 0; }
.reg-table td { padding: 22px var(--s4) 22px 0; box-shadow: 0 -1px 0 var(--line); vertical-align: baseline; }
.reg-table tr { transition: background-color var(--t-fast) var(--ease); }
.reg-table tbody tr:hover { background: var(--paper-2); }
.reg-table .no { font-size: 15px; color: var(--muted); width: 7rem; }
.reg-table .name a { font-size: 22px; letter-spacing: -.02em; font-weight: 500; text-decoration: none; }
.reg-table .name a::after { content: ''; position: absolute; inset: 0; }
.reg-table tr { position: relative; }
.reg-table .name small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
@media (max-width: 760px) {
  .reg-table thead { display: none; }
  .reg-table, .reg-table tbody, .reg-table tr, .reg-table td { display: block; }
  .reg-table tr { padding: var(--s5) 0; box-shadow: 0 -1px 0 var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s4); }
  .reg-table td { padding: 0; box-shadow: none; }
  .reg-table .name { grid-column: 1 / -1; order: -1; }
  .reg-table .hide-sm { display: none; }
}

/* ---------- Record page ---------- */
.record-head { padding-block: clamp(40px, 6vw, 96px) clamp(40px, 5vw, 72px); }
.record-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s6); }
.record-id { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s7); align-items: end; margin-top: clamp(40px, 4.4vw, 72px); }
.record-no { font-size: clamp(88px, 15vw, 248px); line-height: .8; letter-spacing: -.06em; font-weight: 500; font-variant-numeric: tabular-nums; margin-inline-start: -.05em; }
.record-no small { display: block; font-size: 18px; letter-spacing: 0; color: var(--muted); margin-bottom: var(--s5); font-weight: 400; margin-inline-start: .3em; }
.record-head h1 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.04em; max-width: 20ch; }
.record-head .trade { font-size: var(--fs-lead); color: var(--muted); margin-top: var(--s3); }
.record-head .chips { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s5); }
/* The company's own image: a white plate the logo sits on; a monogram tile when there is none */
.record-logo {
  flex: none; margin: 0; width: clamp(112px, 20.8vw, 300px); aspect-ratio: 1; border-radius: var(--r-xl);
  background: var(--white); display: grid; place-items: center; overflow: hidden;
}
.record-logo img { width: 100%; height: 100%; object-fit: contain; padding: 14%; }
.record-logo--mono { background: var(--ink); color: var(--on-ink); --dup-gap: var(--ink); }
.record-logo--mono .dup { font-size: clamp(64px, 9vw, 140px); line-height: .8; letter-spacing: -.05em; font-weight: 500; }

.record-card {
  background: var(--white); border-radius: var(--r-xl); padding: var(--s5); width: 300px;
  display: grid; gap: var(--s4); justify-items: start;
}
.record-card img { width: 120px; height: 120px; }
.record-card p { font-size: 14px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.record-card .actions { display: flex; gap: var(--s2); flex-wrap: wrap; width: 100%; }
.record-card .btn { min-height: 44px; padding: 0 18px; font-size: 15px; flex: 1; }
@media (max-width: 900px) {
  .record-id { grid-template-columns: minmax(0, 1fr); }
  .record-top { align-items: flex-start; flex-direction: column-reverse; }
  .record-logo { width: 96px; border-radius: var(--r-lg); }
  .record-logo--mono .dup { font-size: 56px; }
  .record-card { width: 100%; grid-template-columns: auto 1fr; align-items: center; }
  .record-card img { width: 96px; height: 96px; grid-row: span 2; }
  .record-card .actions { grid-column: 1 / -1; }
}

.record-body { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding-bottom: var(--section); }
.record-nav { position: sticky; top: 100px; align-self: start; }
.record-nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.record-nav a { display: flex; justify-content: space-between; padding: 8px 0; text-decoration: none; color: var(--muted); font-size: 15px; transition: color var(--t-fast) var(--ease); }
.record-nav a:hover, .record-nav a.is-active { color: var(--ink); }
.record-nav a.is-active { box-shadow: inset 3px 0 0 var(--signal); padding-inline-start: 12px; }
.record-nav .num { color: var(--muted); opacity: .7; }
@media (max-width: 900px) { .record-body { grid-template-columns: 1fr; } .record-nav { display: none; } }

.rsec { scroll-margin-top: 96px; }
.rsec + .rsec { margin-top: clamp(64px, 7vw, 112px); }
.rsec > h2 { font-size: clamp(30px, 3vw, 46px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: var(--s6); display: flex; align-items: baseline; gap: var(--s4); }
.rsec > h2 .count { font-size: 18px; color: var(--muted); letter-spacing: 0; font-variant-numeric: tabular-nums; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.facts > div { background: var(--white); padding: 20px var(--s5); min-width: 0; }
.facts > div.wide { grid-column: 1 / -1; }
.facts dt { font-size: var(--fs-small); color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; white-space: pre-line; font-variant-numeric: tabular-nums; }
.facts dd a { text-decoration-color: var(--signal); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

.tm-list { display: grid; gap: var(--s4); }
.tm {
  background: var(--white); border-radius: var(--r-lg); padding: clamp(20px, 2.2vw, 32px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) var(--s6);
}
.tm h3 { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.03em; line-height: 1.08; overflow-wrap: anywhere; }
.tm .tm-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.tm dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s4) var(--s5); margin: 0; }
.tm dt { font-size: 13px; color: var(--muted); }
.tm dd { margin: 2px 0 0; font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tm .goods { grid-column: 1 / -1; font-size: 16px; color: var(--muted); margin: 0; }
.tm .verify { grid-column: 1 / -1; justify-self: start; }
.tm-top { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.office-tag { font-size: 15px; font-weight: 500; }

.rows { list-style: none; padding: 0; margin: 0; background: var(--white); border-radius: var(--r-lg); overflow: hidden; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s5); padding: 18px var(--s5); align-items: baseline; }
.rows li + li { box-shadow: 0 -1px 0 var(--paper); }
.rows strong { font-weight: 500; font-size: 18px; overflow-wrap: anywhere; }
.rows small { grid-column: 1 / -1; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.rows a { text-decoration-color: var(--signal); }

.notice-box { background: var(--ink); color: var(--on-ink); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 44px); display: grid; gap: var(--s5); }
.notice-box h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; }
.notice-box p { color: var(--on-ink-2); margin: 0; max-width: 52ch; }
.notice-box .btn { justify-self: start; }

.record-foot { color: var(--muted); font-size: 15px; margin-top: var(--s9); max-width: 60ch; }

/* ---------- About / contact ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); }
.split h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.04em; }
.split .body { font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; }
.split .body p { margin-bottom: 1.1em; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 2px; }
.steps li { background: var(--white); padding: var(--s5) var(--s6); display: grid; grid-template-columns: 3rem 1fr; gap: var(--s4); }
.steps li:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.steps li:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.steps li::before { counter-increment: s; content: counter(s); font-size: 28px; font-weight: 500; color: var(--signal); line-height: 1.1; letter-spacing: -.02em; }
.steps h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px; }
.offices a { display: block; background: var(--ink-2); padding: var(--s5); text-decoration: none; min-height: 120px; transition: background-color var(--t-fast) var(--ease); }
.offices a:hover { background: var(--ink-3); }
.offices strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.offices span { display: block; color: var(--on-ink-2); font-size: 15px; margin-top: 6px; }

.email-big { font-size: clamp(30px, 5vw, 80px); letter-spacing: -.045em; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; line-height: 1; }
.email-big:hover { color: var(--signal); }

.form { display: grid; gap: var(--s5); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: var(--s2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 18px; border: 0; border-radius: var(--r-md);
  background: var(--white); font-size: 17px;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: var(--s4) var(--s5); border-radius: var(--r-md); font-size: 16px; }
.alert--ok { background: #DCEBE2; color: #1F4D37; }
.alert--err { background: #FBE3DD; color: #8F2914; }

/* ---------- 404 ---------- */
.nf { min-height: 64vh; display: grid; align-content: center; padding-block: var(--s9); }
.nf h1 { font-size: clamp(120px, 26vw, 400px); line-height: .8; letter-spacing: -.07em; }
.nf p { font-size: var(--fs-lead); max-width: 34ch; margin: var(--s6) 0; }

/* ---------- Print: the record as a document ---------- */
@media print {
  .site-header, .site-footer, .record-nav, .record-card .actions, .skip, .notice-box .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .record-body { grid-template-columns: 1fr; }
  .facts > div, .tm, .rows { background: #fff; box-shadow: inset 0 0 0 1px #ddd; }
  .notice-box { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #ddd; }
  .notice-box p { color: #333; }
  .rsec { break-inside: avoid-page; }
  a { text-decoration: none; }
}

/* Reveal hooks: only hidden once JS confirms GSAP is running. */
html.motion [data-reveal] { will-change: transform, opacity; }

/* ---------- Photo covers and news ---------- */
.cover--photo { background: var(--paper-2); }
.cover--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
a:hover .cover--photo img { transform: scale(1.025); }
.tag-news {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  background: var(--signal); color: var(--white); font-size: 12px; font-weight: 500; text-decoration: none;
}
.meta > .tag-news + *::before { display: none; }
.prose img { width: 100%; height: auto; border-radius: var(--r-lg); margin: 1.6em 0; background: var(--paper-2); }
.prose p > img:only-child { margin: 0; }
