/* ============================================================
   1-Robotics  ·  Research-lab × DIC Japanese traditional reds
   off-white paper · serif headings · diagrammatic accents
   ============================================================ */

:root {
  /* Cool grey paper × blue-leaning crimson */
  --bg: #ebecef;
  --paper: #f5f6f8;
  --ink: #0d0f14;
  --ink-2: #1c1f26;
  --muted: #5b5f6a;
  --rule: rgba(13, 15, 20, 0.18);
  --rule-soft: rgba(13, 15, 20, 0.08);
  --accent: #c8243f;
  --accent-soft: rgba(200, 36, 63, 0.12);

  --serif: "Zen Old Mincho", "Times New Roman", serif;
  --sans: "Noto Sans JP", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(24px, 6vw, 112px);
  --header-h: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  /* 日本語の文字詰め: palt(プロポーショナル詰め) + chws(連続する欧文/約物の詰め) + halt(半角詰め) */
  font-feature-settings: "palt" 1, "chws" 1, "kern" 1;
  font-kerning: normal;
  font-variant-east-asian: proportional-width;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* 日本語は単語境界がないので keep-all は使わない。
     代わりに line-break を活用し、約物・記号での折り返しを許容する */
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

/* 見出しは特に詰めを強く（明朝の和文では palt + 微負字間が映える） */
h1, h2, h3, h4, .brand, .h-kicker, .section-label, .feat-num, .manifesto {
  font-feature-settings: "palt" 1, "chws" 1, "kern" 1;
  letter-spacing: 0.02em;
}
h1 { letter-spacing: 0.01em; }
.manifesto { letter-spacing: 0.04em; }

/* 段落は読みやすさ優先で詰めすぎない */
p, li, dd, .sub, .lead {
  font-feature-settings: "palt" 1, "kern" 1;
  letter-spacing: 0.03em;
  line-height: 1.85;
  text-wrap: pretty;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ───── Focus ring (keyboard navigation) ───── */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.btn:focus-visible,
.site-header .hcta:focus-visible,
.news-filter .chip:focus-visible {
  outline-offset: 4px;
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline-offset: 0;
}
.radio-row label:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ───── A11y utilities ───── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  padding: 10px 18px;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 1000;
  transform: translateY(calc(-100% - 16px));
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 3px; }

/* radio group label (replaces fieldset/legend) */
.field-legend {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.field-legend .req { color: var(--accent); }

/* ───── Header ───── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule-soft);
  z-index: 100;
}
.site-header .brand {
  display: flex; align-items: baseline; gap: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: 0.02em;
  white-space: nowrap; flex-shrink: 0;
  color: var(--accent);
  line-height: 1;
}
.site-header .brand .num {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: normal;
  line-height: 1;
}
.site-header .brand .tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 6px;
}
.site-header nav { display: flex; gap: 0; align-items: center; }
.site-header nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  color: var(--ink-2);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav a.active { color: var(--accent); }
.site-header nav a.active::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--accent);
}
.site-header .brand .tag { display: none; }
@media (min-width: 1180px) {
  .site-header .brand .tag { display: inline; }
}
@media (max-width: 1080px) {
  .site-header nav a { padding: 10px 10px; font-size: 12px; }
  .site-header .hcta { margin-left: 8px; padding: 9px 14px; font-size: 11px; }
}
.site-header .hcta {
  margin-left: 16px;
  padding: 10px 18px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; letter-spacing: 0.08em;
  border-radius: 0;
  border: 0; cursor: pointer;
}

/* mobile hamburger */
.nav-toggle {
  display: none;
  background: transparent; border: 0;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.22s, opacity 0.18s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  /* backdrop-filter creates a containing block for position:fixed descendants;
     disable on mobile so the drawer can escape to viewport */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: 32px var(--pad-x);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
    z-index: 99;
    gap: 0;
    overflow-y: auto;
  }
  .site-header nav.open { transform: translateX(0); }
  .site-header nav a {
    padding: 18px 0; font-size: 16px;
    border-bottom: 1px solid var(--rule-soft);
    display: flex; align-items: baseline;
  }
  .site-header nav a.active::after { display: none; }
  .site-header .hcta {
    margin-left: 0; margin-top: 24px;
    padding: 16px 24px;
    text-align: center;
  }
}

/* ───── Page shell ───── */
main { padding-top: var(--header-h); min-height: 100vh; }
.page { animation: pageIn 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section {
  padding: clamp(64px, 9vw, 144px) var(--pad-x);
  position: relative;
}

/* numbered section header w/ vertical accent bar */
.section-label {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
}
.section-label .rule { flex: 1; height: 1px; background: var(--rule); max-width: 120px; }

h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 104px); line-height: 1.15; margin: 0; letter-spacing: -0.005em; word-break: normal; overflow-wrap: normal; }
h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.15; margin: 0 0 24px; }
h3 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
p  { line-height: 1.95; color: var(--ink-2); text-wrap: pretty; }

.lead { font-size: 18px; max-width: 60ch; line-height: 1.85; }
.kicker {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

/* vertical kana-style label (decorative) */
.vlabel {
  position: absolute;
  top: var(--header-h);
  left: 32px;
  bottom: 0;
  width: 32px;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 64px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-transform: uppercase;
  pointer-events: none;
}
@media (min-width: 1100px) { .vlabel { display: flex; } }

/* ───── Hero ───── */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(440px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 0 var(--pad-x);
  position: relative;
  overflow: hidden;
}
.hero-meta {
  position: absolute;
  top: 24px;
  left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; color: var(--muted);
  text-transform: uppercase;
}
.hero-meta b { color: var(--ink); font-weight: 500; }
.hero-text { position: relative; z-index: 2; }
.hero-text .h-kicker {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 36px;
}
.hero-text .h-kicker::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}
.hero-text h1 .accent {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.hero-text h1 .small {
  font-size: 0.55em;
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  display: inline-block;
  margin-left: 8px;
  vertical-align: 12px;
}
.hero-text .sub {
  margin-top: 36px;
  font-size: 17px;
  max-width: 44ch;
  color: var(--ink-2);
}
.hero-cta { margin-top: 48px; display: flex; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--sans);
  font-weight: 500;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-stage {
  position: relative; aspect-ratio: 1 / 1;
  max-height: calc(100vh - var(--header-h) - 80px);
  display: flex; align-items: center; justify-content: center;
}
.hero-stage svg { width: 100%; height: 100%; }

/* hero bottom strip */
.hero-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  z-index: 3;
}
.hero-strip > div {
  padding: 20px var(--pad-x);
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--rule-soft);
}
.hero-strip > div:last-child { border-right: 0; }
.hero-strip > div > div:first-child {
  padding: 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.hero-strip > div > div:last-child {
  padding: 0;
  font-family: var(--serif); font-size: 16px;
  color: var(--ink);
}

/* ───── About strip / Split layouts ───── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.split-wide {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 96px;
  align-items: start;
}

/* ───── Three-col cards with thicker rules + numbers ───── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.three-col > * {
  padding: 48px 36px 56px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--ink);
  position: relative;
  background: var(--paper);
}
.three-col > *:last-child { border-right: 0; }
.three-col > *::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.three-col > *:hover::before { width: 100%; }
.three-col.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .three-col.cols-2 { grid-template-columns: 1fr; } }
.three-col > .coming { opacity: 0.78; transition: opacity 0.18s; }
.three-col > .coming:hover { opacity: 1; }
.three-col .badge { margin-left: 10px; vertical-align: 3px; }

.sub-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 72px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.sub-label::after {
  content: ""; flex: 1; height: 1px; background: var(--rule); max-width: 120px;
}


/* ───── Service rows ───── */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
.service-row {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  transition: padding 0.2s;
}
.service-row:hover { padding-left: 12px; }
.service-row:last-child { border-bottom: 1px solid var(--rule); }
.service-row h3 { font-size: 30px; margin: 0 0 8px; line-height: 1.25; }
.service-row .en {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.service-row .body p { margin: 0 0 18px; }
.service-row ul {
  list-style: none; padding: 0;
  margin: 20px 0 0;
  font-size: 14px; color: var(--ink-2);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.service-row ul li {
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  display: flex; gap: 14px;
  align-items: baseline;
}
.service-row ul li::before { content: "—"; color: var(--accent); }
.badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  margin-left: 14px;
  text-transform: uppercase;
  vertical-align: 4px;
  white-space: nowrap;
  display: inline-block;
}
.service-row.coming { opacity: 0.78; }
.service-row.coming:hover { opacity: 1; }
.service-row .body .note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule-soft);
  padding-top: 16px;
}
.service-row .body .note a { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* ───── Profile / facts ───── */
.facts { display: grid; grid-template-columns: 220px 1fr; gap: 0; border-top: 1px solid var(--ink); }
.fact { display: contents; }
.fact dt, .fact dd {
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.fact dt {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.fact dd {
  margin: 0;
  font-family: var(--serif); font-size: 19px; color: var(--ink);
}

@media (max-width: 900px) {
  .split, .split-wide { grid-template-columns: 1fr; gap: 32px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 80px; padding-bottom: 64px; }
  .three-col { grid-template-columns: 1fr; }
  .three-col > * { border-right: 0; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .service-row ul { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact dt { padding-bottom: 4px; border-bottom: 0; }
  .fact dd { padding-top: 4px; }
  .hero-strip { display: none; }
  .hero-meta { position: static; padding: 24px 0; flex-direction: column; gap: 8px; }
}

/* ───── News list / strip ───── */
.news-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.news-head h2 { margin: 0; }
.more {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  display: inline-block;
  margin-top: 16px;
}
.three-col .more { margin-top: 22px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news-list li {
  display: grid;
  grid-template-columns: 140px 110px 1fr 32px;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  transition: padding 0.18s, background 0.18s;
  cursor: pointer;
}
.news-list li:hover { padding-left: 12px; }
.news-list .date {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.12em; color: var(--muted);
}
.news-list .tag {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.22em; color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  display: inline-block;
  text-align: center; width: fit-content;
}
.news-list .title {
  font-family: var(--serif); font-size: 17px;
  color: var(--ink); line-height: 1.5;
}
.news-list .arr {
  font-family: var(--serif); color: var(--accent);
  font-size: 18px; text-align: right;
  transition: transform 0.18s;
}
.news-list li:hover .arr { transform: translateX(6px); }
.news-list.full li { grid-template-columns: 140px 110px 1fr 32px; align-items: start; padding: 32px 0; }
.news-list.full .news-body p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.news-list.full .news-body .title { font-size: 20px; }
@media (max-width: 720px) {
  .news-list li,
  .news-list.full li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .news-list .arr { display: none; }
  .news-list .tag { justify-self: start; }
}

.news-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.news-filter .chip {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.18em;
  padding: 9px 16px;
  background: transparent; border: 1px solid var(--rule);
  cursor: pointer; color: var(--ink-2);
  transition: all 0.15s;
  border-radius: 0;
}
.news-filter .chip:hover { border-color: var(--ink); }
.news-filter .chip.on {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* ───── CTA strip — distinct from footer ───── */
.cta-strip {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 8vw, 96px) var(--pad-x);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta-strip .kicker { color: var(--accent); }
.cta-strip h2 {
  color: var(--ink);
  font-size: clamp(40px, 5vw, 76px);
  max-width: 18ch;
}
.cta-strip p { color: var(--ink-2); }
.cta-strip .btn {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
  padding: 18px 32px;
  font-size: 14px;
}
.cta-strip .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ───── Manifesto block (large quote) ───── */
.manifesto {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--ink);
  max-width: 22ch;
}

/* ───── Form ───── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between;
}
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 15px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  outline: none;
  transition: border 0.15s, background 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink); background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.field .err {
  font-family: var(--mono); font-size: 12px; color: var(--accent); min-height: 14px;
}
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--rule); border-radius: 0;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0;
  text-transform: none; color: var(--ink-2);
  cursor: pointer; background: transparent; transition: all 0.15s;
}
.radio-row label:hover { border-color: var(--ink); }
.radio-row label.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radio-row input { display: none; }

@media (max-width: 720px) {
  .form { grid-template-columns: 1fr; gap: 20px; }
  .form-actions { flex-direction: column; align-items: stretch !important; gap: 16px; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

.submitted {
  margin-top: 48px;
  padding: 64px;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-align: center;
}
.submitted .check {
  width: 64px; height: 64px; margin: 0 auto 24px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

/* ───── Footer ───── */
.site-footer {
  background: var(--ink); color: var(--bg);
  padding: 28px var(--pad-x);
  position: relative;
}
.site-footer::before { content: ""; display: none; }
.site-footer .top { display: none; }
.site-footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(250,246,236,0.55);
  flex-wrap: wrap; gap: 12px;
}
.site-footer .bottom .nav-inline {
  display: flex; gap: 20px;
}
.site-footer .bottom .nav-inline a {
  color: rgba(250,246,236,0.7);
  font-size: 13px; letter-spacing: 0.16em;
}
.site-footer .bottom .nav-inline a:hover { color: var(--accent); }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }

/* ───── Grid undertone ───── */
body[data-grid="on"] {
  background-image:
    linear-gradient(to right,  rgba(26,23,20,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,23,20,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
