/* =========================================================
   LiLseed LLC — Editorial × Tech
   Cream paper · navy ink · vermilion accent · mono tech labels
   "Set in Instrument Serif & Noto Serif JP, with JetBrains Mono."
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@500;600;700;900&display=swap');

:root {
  /* Paper & ink */
  --bg: #f4efe3;            /* warm cream paper */
  --bg-soft: #ece3d2;       /* deeper cream — alt sections */
  --bg-card: #faf6ec;       /* lifted paper card */
  --paper-line: #e2d8c4;

  --ink: #1a2238;           /* navy-black display ink */
  --ink-2: #2c3450;
  --ink-3: #6b6456;         /* warm muted body */
  --ink-mute: #9a9281;      /* faint warm gray */

  --rule: rgba(26,34,56,0.16);
  --rule-soft: rgba(26,34,56,0.09);

  /* Accent — vermilion 朱 */
  --pop: #cf4624;
  --pop-soft: #f6e2d8;
  --green: #3f7d4f;

  /* Dark chrome (topbar + terminal) */
  --dark: #15140f;
  --dark-2: #1d1c16;
  --term: #11100b;
  --term-line: #2a281e;

  /* Type */
  --t-serif: 'Instrument Serif', 'Noto Serif JP', Georgia, serif;
  --t-jp-serif: 'Noto Serif JP', 'Instrument Serif', serif;
  --t-jp: 'Noto Sans JP', system-ui, sans-serif;
  --t-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(22px, 4.5vw, 72px);
  --shadow: 0 1px 2px rgba(26,34,56,0.05), 0 18px 48px rgba(26,34,56,0.09);
  --shadow-sm: 0 1px 2px rgba(26,34,56,0.05), 0 6px 18px rgba(26,34,56,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--t-jp);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'palt' 1;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--pop); color: #fff; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }

/* =========================================================
   Left-edge sprout (scroll indicator)
   ========================================================= */
.sprout { position: fixed; left: 0; top: 0; bottom: 0; width: 64px; z-index: 45; pointer-events: none; }
.sprout__line { position: absolute; left: 31px; top: 100px; bottom: 70px; width: 1px; background: linear-gradient(var(--rule), var(--rule-soft)); }
.sprout__dot {
  position: absolute; left: 27px; top: 100px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pop); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--rule);
  transition: top 0.15s linear;
}
.sprout__label {
  position: absolute; left: 46px; top: 100px; transform: translateY(-50%);
  font-family: var(--t-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-3);
  text-transform: uppercase; white-space: nowrap; background: var(--bg);
  border: 1px solid var(--rule); padding: 3px 8px; border-radius: 2px;
  transition: top 0.15s linear;
}
@media (max-width: 1080px) { .sprout { display: none; } }

/* =========================================================
   Topbar (dark tech strip)
   ========================================================= */
.topbar {
  background: var(--dark); color: rgba(255,255,255,0.66);
  font-family: var(--t-mono); font-size: 11.5px; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 60;
}
.topbar__inner { max-width: var(--max-w); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.topbar__left > span:first-child { color: #fff; }
.topbar__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5fcf86; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(95,207,134,0.6); animation: tb-pulse 2.2s infinite; }
.topbar__sep { opacity: 0.32; }
@keyframes tb-pulse { 0% { box-shadow: 0 0 0 0 rgba(95,207,134,0.5);} 70% { box-shadow: 0 0 0 6px rgba(95,207,134,0);} 100% { box-shadow: 0 0 0 0 rgba(95,207,134,0);} }
@media (max-width: 700px) { .hide-sm { display: none !important; } .topbar__inner { font-size: 10.5px; } }

/* =========================================================
   Masthead
   ========================================================= */
.masthead { position: sticky; top: 0; z-index: 55; background: rgba(244,239,227,0.9); backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--rule); }
.masthead__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; }
.brand__mark { font-family: var(--t-serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--ink); letter-spacing: 0; }
.brand__sub { font-family: var(--t-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); flex-wrap: wrap; }
.nav a { font-family: var(--t-jp); font-weight: 500; font-size: 14px; color: var(--ink-2); padding: 8px 0; position: relative; transition: color 0.18s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pop); }
.nav .nav__cta { background: var(--ink); color: var(--bg) !important; padding: 8px 16px; border-radius: 2px; font-weight: 500; }
.nav .nav__cta:hover { background: var(--pop); }
.nav .nav__cta.is-active::after { display: none; }
@media (max-width: 620px) {
  .masthead__inner { padding-top: 8px; padding-bottom: 8px; }
  .nav { gap: 14px; width: 100%; overflow-x: auto; }
  .brand__mark { font-size: 26px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--t-jp); font-weight: 500; font-size: 14.5px; padding: 13px 24px; border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); transition: background 0.2s, color 0.2s, transform 0.2s; white-space: nowrap; }
.btn .arrow { display: inline-flex; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--pop); border-color: var(--pop); transform: translateY(-1px); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* =========================================================
   Section opener / titles
   ========================================================= */
.opener { margin-bottom: clamp(38px, 5vw, 64px); }
.opener-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.section-num { font-family: var(--t-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--pop); text-transform: uppercase; }
.section-strap { font-family: var(--t-serif); font-style: italic; font-size: 16px; color: var(--ink-3); }
.section-strap.mono { font-family: var(--t-mono); font-style: normal; font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.section-title { font-family: var(--t-jp-serif); font-weight: 700; font-size: clamp(28px, 4vw, 50px); line-height: 1.28; letter-spacing: -0.01em; color: var(--ink); margin: 0; text-wrap: balance; }
.section-title em { font-family: var(--t-serif); font-style: italic; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.lead-strap { margin: 18px 0 0; font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-3); max-width: 60ch; line-height: 1.9; }

/* =========================================================
   Page header (sub-pages)
   ========================================================= */
.ph { padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--rule); }
.ph__num { font-family: var(--t-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--pop); text-transform: uppercase; margin-bottom: 26px; }
.ph h1 { font-family: var(--t-jp-serif); font-weight: 700; font-size: clamp(40px, 6.6vw, 92px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
.ph h1 em { font-family: var(--t-serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
.ph__strap { margin-top: 26px; font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-3); max-width: 56ch; line-height: 1.9; }

/* =========================================================
   Hero (index)
   ========================================================= */
.hero { padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 72px); position: relative; }
.hero__meta { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--t-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; padding-bottom: 22px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.hero__meta .pop { color: var(--pop); }
.hero__h1 { font-family: var(--t-jp-serif); font-weight: 700; font-size: clamp(46px, 9vw, 132px); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); margin: 0; text-wrap: balance; }
.hero__h1 em { font-family: var(--t-serif); font-style: italic; font-weight: 400; color: var(--pop); }
.hero__h1 .ja { font-family: var(--t-jp-serif); }
.hero__cols { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 44px; }
@media (min-width: 900px) { .hero__cols { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; } }
.hero__sub { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.95; color: var(--ink-2); margin: 0; max-width: 52ch; }
.hero__sub .serif-it { color: var(--ink); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-content: end; }
.hero__cta .btn { flex: 0 1 auto; }

/* =========================================================
   Ticker
   ========================================================= */
.ticker { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--bg); overflow: hidden; }
.ticker__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { font-family: var(--t-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: var(--ink); padding: 16px 0; display: inline-flex; align-items: center; }
.ticker__item::after { content: '✦'; font-style: normal; color: var(--pop); margin: 0 28px; font-size: 0.6em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* =========================================================
   Services (index) — editorial entries
   ========================================================= */
.svc-list { display: flex; flex-direction: column; }
.svc-row { display: grid; grid-template-columns: 1fr; gap: 16px; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--rule); }
.svc-row:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 880px) { .svc-row { grid-template-columns: 64px 1.1fr 1.4fr; gap: 44px; align-items: start; } }
.svc-row__num { font-family: var(--t-serif); font-style: italic; font-size: clamp(34px, 4vw, 52px); line-height: 0.9; color: var(--pop); }
.svc-row__h { font-family: var(--t-jp-serif); font-weight: 700; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.35; margin: 0 0 8px; color: var(--ink); letter-spacing: -0.01em; }
.svc-row__en { font-family: var(--t-serif); font-style: italic; font-size: 16px; color: var(--ink-mute); margin: 0; }
.svc-row__desc { font-size: 15px; line-height: 1.95; color: var(--ink-3); margin: 0 0 16px; max-width: 60ch; }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-row__tags span { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--ink-3); border: 1px solid var(--rule); padding: 4px 10px; border-radius: 2px; }

/* =========================================================
   Constellation — product technology map (with lines)
   ========================================================= */
.constellation-wrap {
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, var(--paper-line) 1px, transparent 0) 0 0 / 28px 28px,
    var(--bg-card);
  border: 1px solid var(--rule);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.constellation-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cn-link { stroke: var(--rule); stroke-width: 1.1; opacity: 0.9; transition: stroke 0.3s, stroke-width 0.3s, opacity 0.3s; }
.cn-link.is-active { stroke: var(--pop); stroke-width: 1.8; opacity: 1; }
.cn-link.is-dim { opacity: 0.18; }
.cn-node.is-product { cursor: pointer; outline: none; }
.cn-node-circle { fill: var(--bg-card); stroke: var(--ink-mute); stroke-width: 1.3; transition: fill 0.25s, stroke 0.25s; }
.cn-node.is-product .cn-node-circle { fill: var(--ink); stroke: var(--ink); }
.cn-node.is-product.is-active .cn-node-circle { fill: var(--pop); stroke: var(--pop); }
.cn-node.is-product:focus-visible .cn-node-circle { stroke: var(--pop); stroke-width: 3; }
.cn-node-label { fill: var(--ink-mute); font-family: var(--t-mono); font-size: 12px; letter-spacing: 0.02em; text-anchor: middle; pointer-events: none; }
.cn-node.is-product .cn-node-label { fill: var(--ink); font-family: var(--t-serif); font-style: italic; font-size: 20px; }
.cn-node.is-product.is-active .cn-node-label { fill: var(--pop); }
.cn-detail { position: absolute; right: 22px; bottom: 22px; width: min(330px, 82%); background: var(--dark); color: #efe9da; padding: 22px 24px; box-shadow: 0 16px 44px rgba(21,20,15,0.4); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.cn-detail.is-show { opacity: 1; transform: none; }
.cn-detail h4 { font-family: var(--t-serif); font-style: italic; font-size: 24px; margin: 0 0 4px; color: #fff; }
.cn-detail-meta { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.04em; color: #c98a6e; text-transform: uppercase; margin-bottom: 12px; }
.cn-detail p { font-size: 13px; line-height: 1.75; color: rgba(239,233,218,0.8); margin: 0 0 12px; }
.cn-detail a { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.06em; color: #fff; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.constellation-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 20px; font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); text-transform: uppercase; }
.constellation-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot--product { background: var(--ink); }
.legend-dot--tech { background: var(--bg-card); border: 1.3px solid var(--ink-mute); }
.legend-dot--active { background: var(--pop); }
@media (max-width: 640px) { .cn-detail { position: static; width: auto; margin-top: 16px; opacity: 1; transform: none; pointer-events: auto; } }

/* =========================================================
   Live dashboard — terminal
   ========================================================= */
.dash { background: var(--term); border: 1px solid var(--ink); box-shadow: 0 20px 60px rgba(21,20,15,0.3); font-family: var(--t-mono); }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; background: #0b0a07; border-bottom: 1px solid var(--term-line); font-size: 11.5px; letter-spacing: 0.06em; color: #8a8268; }
.dash__head .dots { display: inline-flex; gap: 7px; margin-right: 4px; }
.dash__head .dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dash__live { display: inline-flex; align-items: center; gap: 8px; color: #5fcf86; }
.dash__live .d { width: 8px; height: 8px; border-radius: 50%; background: #5fcf86; box-shadow: 0 0 0 0 rgba(95,207,134,0.6); animation: tb-pulse 2.2s infinite; }
.dash__table-wrap { overflow-x: auto; }
.dash__table { width: 100%; border-collapse: collapse; min-width: 660px; }
.dash__table td { padding: 16px 18px; border-bottom: 1px solid var(--term-line); vertical-align: middle; }
.dash__table tr:last-child td { border-bottom: none; }
.dash__table .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fcf86; margin-right: 11px; }
.dash__table .product { color: #efe9da; font-size: 14px; }
.dash__table .metric { color: #6e6750; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 5px; }
.dash__table .value { color: #e0b27e; font-size: 14px; }
.dash__log { padding: 18px 22px; background: #0b0a07; border-top: 1px solid var(--term-line); font-size: 12px; line-height: 2; color: #8a8268; min-height: 150px; }
.dash__log .ts { color: #57513e; margin-right: 12px; }
.dash__log .tag-ok { color: #5fcf86; margin-right: 10px; }
.dash__log .tag-info { color: #79b3c9; margin-right: 10px; }
.dash__log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   Spread (sub-pages story)
   ========================================================= */
.spread { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 920px) { .spread { grid-template-columns: 1.5fr 1fr; gap: 72px; } }
.spread__lead { font-family: var(--t-jp); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.95; color: var(--ink); font-weight: 400; text-wrap: pretty; margin: 0; }
.spread__lead .first-letter { font-family: var(--t-serif); font-style: italic; font-size: 2.6em; float: left; line-height: 0.82; padding: 8px 14px 0 0; color: var(--pop); }
.spread__body { margin-top: 28px; font-size: 15px; line-height: 1.95; color: var(--ink-3); max-width: 62ch; }
.spread__body p { margin: 0 0 16px; }
.spread__body p:last-child { margin-bottom: 0; }
.spread__body b { color: var(--ink); font-weight: 700; }

/* Factsheet */
.factsheet { background: var(--bg-soft); border: 1px solid var(--rule); padding: 26px 28px; }
.factsheet__label { font-family: var(--t-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--pop); text-transform: uppercase; margin-bottom: 8px; }
.factsheet dl { margin: 0; }
.factsheet .row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 14px; align-items: baseline; }
.factsheet .row:last-child { border-bottom: none; }
.factsheet .row dt { font-family: var(--t-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-mute); text-transform: uppercase; }
.factsheet .row dd { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.55; }
.factsheet .row dd small { display: block; font-family: var(--t-serif); font-style: italic; font-weight: 400; color: var(--ink-mute); font-size: 13px; margin-top: 3px; }
.factsheet .row dd a { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* Essay list */
.essay-list { display: flex; flex-direction: column; }
.essay { display: grid; grid-template-columns: 1fr; gap: 16px; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--rule); }
.essay:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) { .essay { grid-template-columns: 72px 1fr 1.5fr; gap: 44px; align-items: start; } }
.essay__num { font-family: var(--t-serif); font-style: italic; font-size: clamp(34px, 4vw, 52px); line-height: 0.9; color: var(--pop); }
.essay__title { font-family: var(--t-jp-serif); font-weight: 700; font-size: clamp(19px, 2vw, 25px); line-height: 1.4; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.005em; }
.essay__en { font-family: var(--t-serif); font-style: italic; font-size: 16px; color: var(--ink-mute); margin: 0; }
.essay__en em { color: var(--ink-3); }
.essay__desc { font-size: 15px; line-height: 1.95; color: var(--ink-3); margin: 0; max-width: 64ch; }

/* =========================================================
   Forms
   ========================================================= */
.form { display: grid; gap: 24px; }
.form .row { display: grid; gap: 24px; }
@media (min-width: 640px) { .form .row.cols-2 { grid-template-columns: 1fr 1fr; gap: 28px; } }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-family: var(--t-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field label .req { color: var(--pop); margin-left: 4px; }
.field input, .field textarea, .field select { width: 100%; font-family: var(--t-jp); font-size: 16px; color: var(--ink); background: var(--bg-card); border: 1.5px solid var(--rule); padding: 13px 15px; border-radius: 2px; transition: border-color 0.18s, box-shadow 0.18s; line-height: 1.5; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pop); box-shadow: 0 0 0 3px var(--pop-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }

/* =========================================================
   Sign-off
   ========================================================= */
.signoff { text-align: center; padding: clamp(80px, 11vw, 140px) 0; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.signoff::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 50% 0%, rgba(207,70,36,0.18), transparent 62%); pointer-events: none; }
.signoff .container { position: relative; z-index: 1; }
.signoff .section-num { color: #d98a6e; }
.signoff h2 { font-family: var(--t-jp-serif); font-weight: 700; font-size: clamp(34px, 5.6vw, 70px); line-height: 1.16; letter-spacing: -0.02em; margin: 18px 0 24px; color: var(--bg); }
.signoff h2 em { font-family: var(--t-serif); font-style: italic; font-weight: 400; color: #e3a384; }
.signoff__strap { font-size: clamp(15px, 1.6vw, 18px); color: rgba(244,239,227,0.72); line-height: 1.85; margin: 0 auto 38px; max-width: 44ch; }
.signoff .btn { border-color: rgba(244,239,227,0.4); color: var(--bg); }
.signoff .btn:hover, .signoff .btn--primary { background: var(--pop); border-color: var(--pop); color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg-soft); border-top: 1px solid var(--ink); padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.8fr repeat(3, 1fr); gap: 52px; } }
.footer__brand { font-family: var(--t-serif); font-style: italic; font-size: 30px; color: var(--ink); display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.footer__brand small { font-family: var(--t-mono); font-style: normal; font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; }
.footer__motto { font-family: var(--t-serif); font-style: italic; font-size: 16px; color: var(--ink-3); line-height: 1.7; max-width: 40ch; margin: 0; }
.footer__col h4 { font-family: var(--t-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase; margin: 0 0 16px; font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col li a { font-size: 14px; color: var(--ink-2); transition: color 0.18s; }
.footer__col li a:hover { color: var(--pop); }
.footer__bottom { padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-family: var(--t-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-mute); }
.footer__legal { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.footer__legal a { color: var(--ink-3); transition: color 0.18s; }
.footer__legal a:hover { color: var(--pop); }
.footer__legal .sep { opacity: 0.4; }
.colophon { font-family: var(--t-serif); font-style: italic; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }

/* =========================================================
   Utilities
   ========================================================= */
.serif-it { font-family: var(--t-serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--t-mono); }
.muted { color: var(--ink-mute); }
.dim { color: var(--ink-3); }
.pop { color: var(--pop); }
code.mono { background: var(--bg-soft); border: 1px solid var(--rule); padding: 1px 6px; border-radius: 2px; font-size: 0.92em; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--ink-mute); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
