/* =====================================================
   Appwright — design system v3 "Warm Technical"
   Mistral-inspired: giant sans type, mono labels,
   visible grid, ivory/orange/ink surface rhythm.
   Sans-only. No webfonts. No shadows. No radius.
   ===================================================== */

:root {
  /* Brand accent (single) */
  --burnt-orange: #fa520f;
  --flame:        #fb6424;

  /* Sunshine (sparingly) */
  --sun-700:      #ffa110;
  --sun-500:      #ffb83e;
  --sun-300:      #ffd06a;
  --block-gold:   #ffe295;
  --bright-yellow:#ffd900;

  /* Surfaces */
  --ivory:        #fffaeb;
  --cream:        #fff0c2;
  --cream-soft:   rgba(255, 240, 194, 0.45);

  /* Ink */
  --ink:          #1f1f1f;
  --ink-2:        #2a2a2a;
  --ink-muted:    hsl(0, 0%, 32%);
  --ivory-dim:    rgba(255, 250, 235, 0.62);
  --ivory-faint:  rgba(255, 250, 235, 0.38);

  /* Hairline rules */
  --rule:         rgba(127, 99, 21, 0.18);
  --rule-soft:    rgba(127, 99, 21, 0.08);
  --rule-dark:    rgba(255, 250, 235, 0.16);

  /* Layout */
  --container:        720px;
  --container-wide:   1120px;
  --container-narrow: 760px;

  /* Typography — system only, never webfonts. Sans-only v3. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", system-ui, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic UI", "Yu Gothic",
    "Noto Sans JP", "PingFang SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s;
  --t-med:  0.45s;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0 0 1.25em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.container.wide { max-width: var(--container-wide); }
.container.narrow { max-width: var(--container-narrow); }

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* =========================================
   Mono label — the v3 signature.
   [ 01 — TAX ] / // SECTION style eyebrows
   ========================================= */
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.mono--accent { color: var(--burnt-orange); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* =========================================
   Header — sticky, mono nav
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 235, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--burnt-orange);
  flex: none;
  transition: transform var(--t-med) var(--ease-out);
}
.brand:hover::before { transform: rotate(90deg); }
.brand:hover { color: var(--ink); }

.site-nav .nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.site-nav a:hover { color: var(--burnt-orange); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--burnt-orange);
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .site-nav .nav-list { gap: 14px; }
  .site-nav a { font-size: 0.72rem; }
}

/* =========================================
   Hero — giant sans display type
   ========================================= */
.site-main { min-height: 50vh; }

.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-variant-numeric: tabular-nums;
}
.hero-eyebrow .dot-sep { color: var(--ink-muted); }
.hero-eyebrow .muted { color: var(--ink-muted); }

.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 28px;
  max-width: 14ch;
}
.hero-title .hl {
  background: linear-gradient(transparent 62%, var(--sun-300) 62%);
  padding: 0 0.04em;
}
.hero-title .accent { color: var(--burnt-orange); }

.hero-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  max-width: 46ch;
  color: var(--ink-muted);
  margin: 0 0 32px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.hero-meta-item { min-width: 0; }
.hero-meta-item .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 4px;
}
.hero-meta-item .v {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .hero-meta { gap: 20px; }
}

/* =========================================
   Ticker — marquee strip
   ========================================= */
.ticker {
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 14px 0;
  background: var(--cream-soft);
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.ticker-item::after {
  content: "//";
  color: var(--burnt-orange);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* =========================================
   Sections — surface rhythm
   ========================================= */
.section { padding: 88px 0; }
.section--cream { background: var(--cream-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--ink {
  background: var(--ink);
  color: var(--ivory);
  border-top: 1px solid var(--ink);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--ivory); }
.section--ink .section-label { color: var(--sun-500); }
.section--ink .section-label::after { background: var(--rule-dark); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}
.section-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.section--ink .section-note { color: var(--ivory-faint); }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
}

/* =========================================
   Index rows — numbered memo directory
   ========================================= */
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.index-item { border-bottom: 1px solid var(--rule); }
.index-link {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 16px;
  margin: 0 -16px;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}
.index-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast) ease;
}
.index-body { min-width: 0; }
.index-title {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 6px;
  transition: color var(--t-fast) ease;
}
.index-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 52ch;
  transition: color var(--t-fast) ease;
}
.index-arrow {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--ink-muted);
  transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) ease;
}
.index-link:hover {
  background: var(--ink);
}
.index-link:hover .index-num { color: var(--sun-500); }
.index-link:hover .index-title { color: var(--ivory); }
.index-link:hover .index-desc { color: var(--ivory-dim); }
.index-link:hover .index-arrow {
  color: var(--sun-500);
  transform: translate(4px, -4px);
}

@media (max-width: 640px) {
  .index-link {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    padding: 20px 12px;
    margin: 0 -12px;
  }
}

/* =========================================
   Works grid — dark showcase cards
   ========================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.work-card {
  background: var(--ink);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 220px;
  position: relative;
  transition: background var(--t-fast) ease;
}
.work-card:hover { background: var(--ink-2); }
.work-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun-500);
  margin: 0 0 16px;
}
.work-title {
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ivory);
  margin: 0 0 10px;
}
.work-desc {
  color: var(--ivory-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 44ch;
}
.work-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.work-tags {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ivory-faint);
  text-transform: uppercase;
}
.work-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-transform: uppercase;
  transition: color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
  display: inline-block;
}
a.work-card:hover .work-link,
.work-card a:hover .work-link,
.work-card:hover .work-link { color: var(--sun-500); transform: translate(2px, -2px); }

@media (max-width: 720px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 0; }
}

/* =========================================
   Feed — research/article feed rows (mono dates)
   ========================================= */
.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.feed-item { border-bottom: 1px solid var(--rule); }
.feed-link {
  display: grid;
  grid-template-columns: 150px 110px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 12px;
  margin: 0 -12px;
  transition: background var(--t-fast) ease;
}
.feed-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.feed-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burnt-orange);
}
.feed-title {
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
  transition: color var(--t-fast) ease;
}
.feed-desc {
  grid-column: 3;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 4px 0 0;
}
.feed-arrow {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) ease;
}
.feed-link:hover { background: var(--cream-soft); }
.feed-link:hover .feed-title { color: var(--burnt-orange); }
.feed-link:hover .feed-arrow { color: var(--burnt-orange); transform: translate(3px, -3px); }

@media (max-width: 720px) {
  .feed-link { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .feed-date { grid-column: 1; }
  .feed-cat { grid-column: 1; }
  .feed-title { grid-column: 1; }
  .feed-desc { grid-column: 1; }
  .feed-arrow { grid-row: 1 / span 2; grid-column: 2; align-self: start; }
}

/* See-all link */
.see-all {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.see-all:hover { color: var(--burnt-orange); border-bottom-color: var(--burnt-orange); }

/* =========================================
   Manifesto — positioning statement
   ========================================= */
.manifesto {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}
.manifesto-text {
  font-size: clamp(1.6rem, 3.8vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 26ch;
  margin: 0;
}
.manifesto-text .muted { color: var(--ink-muted); }
.manifesto-text .accent { color: var(--burnt-orange); }

@media (max-width: 640px) {
  .manifesto { padding: 56px 0; }
}

/* =========================================
   Page head (sub-pages)
   ========================================= */
.page-head {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.page-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 16px;
}
.page-lede {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .page-head { padding: 48px 0 32px; }
}

/* =========================================
   Legacy post list (sub-site landings, lab)
   journal rows — kept, restyled sans/mono
   ========================================= */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.post-list-item { border-bottom: 1px solid var(--rule); }
.post-list-link {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 20px 12px;
  margin: 0 -12px;
  align-items: baseline;
  transition: background var(--t-fast) ease;
}
.post-list-link:hover { background: var(--cream-soft); }
.post-list-link:hover .post-list-title { color: var(--burnt-orange); }

.post-list-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.post-list-title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
  transition: color var(--t-fast) ease;
}
.post-list-desc {
  grid-column: 2;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 6px 0 0;
}

@media (max-width: 640px) {
  .post-list-link { grid-template-columns: 1fr; gap: 4px; padding: 16px 12px; }
  .post-list-desc { grid-column: 1; margin-top: 4px; }
}

.empty { color: var(--ink-muted); padding: 24px 0; }

/* =========================================
   Article (single) — reader
   ========================================= */
.article { padding-bottom: 48px; }
.article-eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-eyebrow a {
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.article-eyebrow a:hover {
  color: var(--burnt-orange);
  border-bottom-color: var(--burnt-orange);
}

.article-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
}

.article-meta {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.article-meta .dot { margin: 0 8px; }

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.article-body h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.article-body h2:first-of-type { border-top: 0; padding-top: 0; }
.article-body h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
}
.article-body p { margin: 0 0 1.4em; }
.article-body a {
  color: var(--ink);
  border-bottom: 1px solid rgba(250, 82, 15, 0.5);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.article-body a:hover {
  color: var(--burnt-orange);
  border-bottom-color: var(--burnt-orange);
}
.article-body ul, .article-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.4em;
}
.article-body li { margin: 8px 0; }
.article-body strong { font-weight: 700; }
.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--burnt-orange);
  color: var(--ink);
}
.article-body code {
  background: var(--cream);
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: var(--font-mono);
}
.article-body pre {
  background: var(--ink);
  color: #f5e6c8;
  padding: 22px 26px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  font-family: var(--font-mono);
  border-left: 3px solid var(--burnt-orange);
}
.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.article-body hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 48px 0;
}
.article-body img { margin: 28px 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body table th,
.article-body table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.article-body table th {
  font-weight: 700;
  background: var(--cream-tint, rgba(0,0,0,0.02));
}
.article-body table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .article-body { font-size: 1rem; line-height: 1.75; }
  .article-body h2 { font-size: 1.35rem; margin: 40px 0 12px; }
  .article-body h3 { font-size: 1.15rem; margin: 30px 0 10px; }
  .article-body pre { padding: 16px; font-size: 0.84rem; }
}

/* =========================================
   Footer — big ink block
   ========================================= */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
}
.footer-inner { padding: 72px 24px 40px; }
.footer-tagline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ivory);
  margin: 0 0 48px;
  max-width: 20ch;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-dark);
  margin-bottom: 48px;
}
.footer-col .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a {
  font-size: 0.95rem;
  color: var(--ivory-dim);
  transition: color var(--t-fast) ease;
}
.footer-col a:hover { color: var(--sun-500); }

.footer-copy {
  color: var(--ivory-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--ivory-dim);
  border-bottom: 1px solid rgba(255, 250, 235, 0.25);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.footer-link:hover {
  color: var(--sun-500);
  border-bottom-color: var(--sun-500);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding: 56px 20px 32px; }
}

/* =========================================
   Scroll reveal (progressive enhancement)
   ========================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Selection */
::selection { background: var(--bright-yellow); color: var(--ink); }
.section--ink ::selection, .site-footer ::selection { background: var(--burnt-orange); color: var(--ivory); }