/* ==========================================================================
   Cyrisin Inc. — site stylesheet

   Light, quiet, precise. The page is paper; the only colour is the pale
   blue-green of optical glass, used for the lens motif and inside the
   diagrams. Everything else is the brand mark's graphite, so the accent
   never competes with the logo.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* surfaces */
  --paper:      #ffffff;
  --paper-2:    #fafbfc;
  --surface:    #f5f7f9;
  --surface-2:  #eef1f4;

  /* line work */
  --line:        rgba(20, 26, 38, 0.10);
  --line-strong: rgba(20, 26, 38, 0.21);

  /* type */
  --text:       #17171b;
  --text-dim:   #55555f;
  --text-faint: #6f6f7b;

  /* the mark's graphite, on paper instead of on ink */
  --graphite-hi: #0e0e11;
  --graphite-mid:#3a3a44;
  --graphite-lo: #8a8a96;

  /* optical glass — the one accent, borrowed from the diagrams */
  --glass:      #dcebf4;
  --glass-line: #4d84a1;
  --accent:     #1d5f7d;

  /* metrics */
  --gutter:     clamp(1.25rem, 5vw, 3rem);
  --measure:    68ch;
  --radius:     14px;
  --radius-sm:  8px;

  /* rhythm */
  --section-y:  clamp(5rem, 11vw, 9.5rem);

  /* motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                "BIZ UDPGothic", "Yu Gothic", Meiryo, Arial, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono",
                "Roboto Mono", Consolas, "Liberation Mono", monospace;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.28; letter-spacing: -0.015em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
/* width/height attributes reserve layout space, but without this the height
   stays pinned when max-width shrinks the image and the aspect ratio breaks. */
img { height: auto; }
a  { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

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

::selection { background: var(--glass); color: var(--text); }

/* --------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }

.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.85em;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--glass-line);
  flex: none;
}

.h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); }
.h3 { font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.3rem); }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--text-dim);
  max-width: var(--measure);
}

.prose > * + * { margin-top: 1.35em; }
.prose { color: var(--text-dim); max-width: var(--measure); }
.prose strong { color: var(--text); font-weight: 600; }

/* spacing utilities — kept as classes so the CSP needs no inline styles */
.stack-lg { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.stack-xs { margin-top: 0.9rem; }
.stack-under { margin-bottom: 1.25rem; }
.sub-line { display: block; color: var(--text-faint); margin-top: 0.4rem; }

.skip-link {
  position: absolute;
  left: 0.75rem; top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--text);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

/* The master lockup artwork sets the wordmark at 0.3814x the symbol diameter.
   That ratio is drawn for large format — at nav size it renders the name too
   small to read, so the web lockup deliberately enlarges the wordmark to
   --word-scale and opens the gap to match. Symbol size stays --mark; both
   derive from it, so changing --mark keeps the lockup proportional. */
.brand {
  --mark: 32px;
  --word-scale: 0.55;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--mark) * 0.19);
  flex: none;
  color: var(--graphite-hi);
  transition: color 0.2s var(--ease);
}
.brand:hover { color: var(--accent); }
.brand__mark { width: var(--mark); height: var(--mark); flex: none; }
.brand__word {
  height: calc(var(--mark) * var(--word-scale));
  width: auto;
  /* The wordmark box includes the 'y' descender, so centring the boxes drops
     the text visually low. Lift it back onto the symbol's optical centre. */
  transform: translateY(calc(var(--mark) * -0.028));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.9rem;
}
.nav__link {
  color: var(--text-dim);
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--glass-line);
}

/* language switch */
.langsw {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  flex: none;
}
.langsw__opt {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--text-faint);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  line-height: 1;
}
.langsw__opt:hover { color: var(--text); }
.langsw__opt[aria-current="true"] {
  background: var(--surface-2);
  color: var(--text);
}

/* Below this width the brand plus three links plus the language pill no longer
   fit on one line — they were being crushed against the right gutter. Drop the
   nav onto its own full-width row instead of shrinking everything. */
@media (max-width: 660px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    min-height: 0;
    padding-block: 0.7rem;
  }
  .brand { --mark: 26px; }
  .nav {
    flex: 1 0 100%;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.875rem;
  }
  html { scroll-padding-top: 7rem; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  padding-block: clamp(5rem, 13vw, 10.5rem) clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}

/* lens-array field — the multi-aperture motif, kept abstract and quiet */
.hero__field {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(120vw, 1500px);
  max-width: none; /* opt out of the global svg { max-width: 100% } — this one bleeds */
  aspect-ratio: 1 / 1;
  z-index: -1;
  opacity: 0.85;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -32%; right: -14%;
  width: min(90vw, 1000px);
  aspect-ratio: 1;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%,
              rgba(112, 164, 190, 0.22) 0%,
              rgba(112, 164, 190, 0.08) 38%,
              transparent 70%);
  pointer-events: none;
}

.hero__inner { display: grid; gap: clamp(1.75rem, 3.5vw, 2.5rem); }

.hero h1 {
  font-size: clamp(2.05rem, 1.15rem + 4.1vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: var(--graphite-hi);
}
/* Graphite gradient on the headline, but only where clipping text is supported
   — without the guard an unsupporting engine paints transparent text on a
   transparent background and the headline disappears entirely. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(168deg, #0c0c0f 6%, #23232b 42%, #5c5c68 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
:lang(ja) .hero h1 { letter-spacing: -0.01em; max-width: 22ch; }

.hero .lead { max-width: 58ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  background: var(--paper);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--graphite-hi);
  border-color: var(--graphite-hi);
  color: #fff;
}
.btn--primary:hover { background: var(--graphite-mid); border-color: var(--graphite-mid); }
.btn--ghost:hover { background: var(--surface); border-color: var(--glass-line); }
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- specs -- */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
  overflow: hidden;
}
.spec {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-inline-start: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.spec:first-child { border-inline-start: 0; }
.spec__value {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--graphite-hi);
}
.spec__value small {
  font-size: 0.46em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-inline-start: 0.15em;
}
.spec__label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.spec__note {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .spec { border-inline-start: 0; border-top: 1px solid var(--line); }
  .spec:first-child { border-top: 0; }
}

/* --------------------------------------------------- target vs measured -- */
/* Two tiers of numbers: what the physics allows, and what the prototype has
   actually measured. The target tier leads; the measured tier is the evidence
   under it, and must never be dressed up to look like the same class of claim. */
.tier { display: grid; gap: 0.9rem; }
.tier__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: baseline;
  gap: 0.7em;
}
.tier__label b { color: var(--text-dim); font-weight: 500; letter-spacing: 0.06em; }

.target {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 0;
  border-top: 1px solid var(--line-strong);
}
.target__item { display: grid; gap: 0.35rem; }
.target__value {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(165deg, #0c0c0f 8%, #26262e 46%, #6b6b77 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .target__value { color: var(--graphite-hi); }
}
.target__value small {
  font-size: 0.3em;
  font-weight: 500;
  letter-spacing: 0;
  margin-inline-start: 0.2em;
  -webkit-text-fill-color: var(--text-dim);
}
.target__caption { font-size: 0.875rem; color: var(--text-dim); }
.target__lede { max-width: 22ch; padding-bottom: 0.4rem; }
.target__times {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: var(--text-faint);
  line-height: 1;
  padding-bottom: 1.2rem;
}
@media (max-width: 560px) { .target__times { display: none; } }

/* -------------------------------------------------------------- figures -- */
.figure {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}
.figure__frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  overflow: hidden;
}
.figure__caption {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-faint);
}
.figure__caption b {
  color: var(--text-dim);
  font-weight: 600;
  margin-inline-end: 0.5em;
}
.figure svg { width: 100%; height: auto; }

/* Diagram primitives. Mirrors of the STYLE block in scripts/diagrams.mjs —
   the SVGs are loaded with <img> so they cannot inherit these, and the two
   copies have to be changed together. */
.dg-cap   { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; fill: var(--text-faint); }
.dg-label { font-family: var(--font-sans); font-size: 13px; fill: var(--text-dim); }
.dg-small { font-family: var(--font-sans); font-size: 12px; fill: var(--text-faint); }
.dg-num   { font-family: var(--font-mono); font-size: 14px; fill: var(--text); }
.dg-note  { font-family: var(--font-mono); font-size: 10.5px; fill: var(--text-faint); }
.dg-rule  { font-family: var(--font-sans); font-size: 14px; font-weight: 600; fill: var(--text); }
.dg-big   { font-family: var(--font-sans); font-size: 27px; font-weight: 600; fill: var(--text); letter-spacing: -0.02em; }

.dg-glass   { fill: var(--glass); stroke: var(--glass-line); stroke-width: 1.3; }
.dg-unit    { fill: var(--glass); stroke: var(--glass-line); stroke-width: 1.2; }
.dg-coat    { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.dg-coat-b  { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 6 3.5; }
.dg-panel   { fill: #454c58; }
.dg-display { fill: none; stroke: #454c58; stroke-width: 4; stroke-linecap: round; }
.dg-eye     { fill: #fff; stroke: #4a4a55; stroke-width: 1.5; }
.dg-humour  { fill: #f4f6f8; }
.dg-iris    { fill: none; stroke: #2a2a33; stroke-width: 3; stroke-linecap: round; }
.dg-crys    { fill: #e8eef2; stroke: #7b7b88; stroke-width: 1.1; }
.dg-retina  { fill: none; stroke: #9aa0aa; stroke-width: 3; }
.dg-nerve   { fill: none; stroke: #4a4a55; stroke-width: 5; stroke-linecap: round; }
.dg-ray     { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 5 4; }
.dg-edge    { fill: none; stroke: #2c6b8a; stroke-width: 1; stroke-opacity: 0.75; stroke-linejoin: round; }
.dg-src     { fill: var(--accent); }
.dg-band    { fill: #2c6b8a; fill-opacity: 0.26; stroke: var(--glass-line); stroke-width: 0.8; }
.dg-share   { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: butt; }
.dg-beam    { fill: #2c6b8a; fill-opacity: 0.11; }
.dg-fov     { fill: #2c6b8a; fill-opacity: 0.07; }
.dg-arc     { fill: none; stroke: #7fa3b6; stroke-width: 1; }
.dg-dim     { stroke: #45454f; stroke-width: 1.3; fill: none; }
.dg-lead    { stroke: #9aa0aa; stroke-width: 1; fill: none; }
.dg-sensor      { fill: #22222a; }
.dg-sensor-ring { fill: none; stroke: #22222a; stroke-width: 1.2; stroke-dasharray: 3 4; }

.figure-pair {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* Diagram labels are sized for the drawing, not the screen. Scaled down to a
   phone they become unreadable, so below this width let the wider diagrams keep
   a legible size and pan inside their own frame rather than shrink to nothing.
   The page itself must never scroll sideways — only this box does. */
@media (max-width: 700px) {
  .figure__frame { overflow-x: auto; overscroll-behavior-x: contain; }
  /* Per-diagram floors, set so the smallest label in each stays near 10px.
     A single blanket value would either over-pan the narrow diagrams or leave
     the wide ones unreadable. */
  .figure__frame img[src*="diagram-conventional"],
  .figure__frame img[src*="diagram-maso"]          { min-width: 420px; }
  .figure__frame img[src*="diagram-sensors"]       { min-width: 460px; }
  .figure__frame img[src*="diagram-superposition"] { min-width: 680px; }
}

/* --------------------------------------------------------------- origin -- */
.origin {
  display: grid;
  gap: 0.75rem;
  border-inline-start: 2px solid var(--glass);
  padding-inline-start: clamp(1rem, 2.5vw, 1.75rem);
}
.origin p { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.85; max-width: var(--measure); }

/* ---------------------------------------------------------------- cards -- */
.grid-2 {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.card__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.005em; }
.card__body { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.8; }

/* callout */
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(220, 235, 244, 0.55) 0%, rgba(220, 235, 244, 0) 100%),
    var(--paper-2);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.callout ul { display: grid; gap: 1rem; }
.callout li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.callout li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 0.72em;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
}

/* ----------------------------------------------------------------- news -- */
.news { display: grid; }
.news__item {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.news__item:last-child { border-bottom: 1px solid var(--line); }

.news__meta { display: grid; gap: 0.55rem; align-content: start; padding-top: 0.15rem; }
.news__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.tag {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--glass-line);
  background: rgba(220, 235, 244, 0.5);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  line-height: 1;
}
.news__title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.55rem; }
.news__body { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.85; }
.news__body cite { font-style: normal; color: var(--text-faint); }

/* Photographs inside a news entry. Capped below the column width so a photo
   never dominates the feed — the files are 1040px wide, i.e. exactly 2x this
   cap, so they stay sharp on a retina screen. Change one, change the other. */
.news__figure { margin: 1.1rem 0 0; display: grid; gap: 0.55rem; }
.news__figure img {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.news__figure figcaption {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-faint);
  /* matched to the image cap above, so the caption wraps at the photo's edge
     instead of somewhere in the middle of it */
  max-width: 520px;
}

@media (max-width: 640px) {
  .news__item { grid-template-columns: 1fr; gap: 0.85rem; }
  .news__meta { grid-auto-flow: column; justify-content: start; align-items: center; gap: 0.75rem; }
}

/* ----------------------------------------------------------------- table -- */
.facts { border-top: 1px solid var(--line); }
.facts tr { border-bottom: 1px solid var(--line); }
.facts th,
.facts td {
  text-align: start;
  vertical-align: top;
  padding: clamp(1rem, 2.2vw, 1.35rem) 0;
  font-weight: 400;
  line-height: 1.85;
}
.facts th {
  width: 13.5rem;
  padding-inline-end: 1.5rem;
  color: var(--text-faint);
  font-size: 0.875rem;
  white-space: nowrap;
}
.facts td { color: var(--text); font-size: 0.9375rem; }
.facts td .sub { display: block; color: var(--text-faint); font-size: 0.8125rem; margin-top: 0.2rem; }
.facts ol { display: grid; gap: 0.45rem; counter-reset: purpose; }
.facts ol li {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.facts ol li::before {
  counter-increment: purpose;
  content: counter(purpose, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
  padding-top: 0.42em;
}

@media (max-width: 640px) {
  .facts th, .facts td { display: block; width: auto; padding-inline-end: 0; white-space: normal; }
  .facts th { padding-bottom: 0.15rem; }
  .facts td { padding-top: 0; }
}

/* -------------------------------------------------------------- contact -- */
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 92% 0%, rgba(112, 164, 190, 0.18) 0%, transparent 60%),
    var(--surface);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.contact__block { display: grid; gap: 0.5rem; align-content: start; }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact__value { font-size: 1.0625rem; line-height: 1.6; }
.contact__value--sm { font-size: 0.9375rem; color: var(--text-dim); }
/* A second channel stacked under the first inside one column, so the panel
   stays three tidy columns instead of orphaning a block onto its own row. */
.contact__label--sub { margin-top: 0.85rem; }

/* Shown only until site.js swaps in the real mailto link, and permanently if
   scripting is off — so it has to stay readable, not look broken. */
.mailto { color: var(--text); word-break: break-word; }

.link-underline {
  color: var(--text);
  box-shadow: inset 0 -1px 0 0 var(--line-strong);
  transition: box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  word-break: break-word;
}
.link-underline:hover { color: var(--accent); box-shadow: inset 0 -1px 0 0 var(--accent); }

/* Links that leave the site. The arrow is content, not decoration, so it is
   spelled out in the markup; this only handles the nudge on hover. */
.link-out { color: var(--accent); box-shadow: inset 0 -1px 0 0 rgba(29, 95, 125, 0.35); }
.link-out:hover { box-shadow: inset 0 -1px 0 0 var(--accent); }
.link-out__arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.link-out:hover .link-out__arrow { transform: translate(2px, -2px); }

/* --------------------------------------------------------------- footer -- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section-y);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper-2);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer .brand { --mark: 24px; gap: 0.65rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.875rem; }
.site-footer__nav a { color: var(--text-dim); transition: color 0.2s var(--ease); }
.site-footer__nav a:hover { color: var(--text); }
.copyright { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--text-faint); }

/* ------------------------------------------------------------- 404 page -- */
.page-narrow {
  min-height: 72vh;
  display: grid;
  align-content: center;
  gap: 1.5rem;
  padding-block: var(--section-y);
}
.page-narrow .code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--text-faint);
}

/* --------------------------------------------------------- page heading -- */
.page-head {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(1.85rem, 1.3rem + 2.3vw, 3rem);
  letter-spacing: -0.03em;
}
:lang(ja) .page-head h1 { letter-spacing: -0.01em; }

/* --------------------------------------------------------------- motion -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.no-js [data-reveal], html:not(.js) [data-reveal] { opacity: 1; transform: none; }

.js [data-reveal].is-in:nth-child(2) { transition-delay: 0.06s; }
.js [data-reveal].is-in:nth-child(3) { transition-delay: 0.12s; }
.js [data-reveal].is-in:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- print -- */
@media print {
  :root { --line: #ccc; --line-strong: #999; }
  body { background: #fff; color: #000; }
  .site-header, .hero__field, .hero__glow, .langsw, .btn { display: none !important; }
  .card, .callout, .contact, .specs, .site-footer { background: none; }
  .hero h1, .target__value { color: #000; -webkit-text-fill-color: #000; }
}
