/* =========================================================
   BNS Neuro — site styles
   Brand palette (from Brand Visual Identity Guidelines, 2025)
   ========================================================= */
@font-face {
  font-family: "PP Nikkei Line";
  src: url("../fonts/PPNikkeiLine-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cobalt: #3660A4;
  --midnight: #124368;
  --ivory: #F9F4E8;
  --clementine: #FFBA7B;
  --clementine-deep: #D9822B;
  --coal: #252526;

  --bg: #FFFDF8;
  --surface: var(--ivory);
  --ink: var(--coal);
  --ink-2: #4A4E57;
  --muted: #6B7080;
  --line: rgba(18, 67, 104, .14);
  --line-strong: rgba(18, 67, 104, .28);
  --link: var(--cobalt);

  --font-head: "PP Nikkei Line", "Figtree", system-ui, sans-serif;
  --font-body: "Proxima Nova", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(18,67,104,.06), 0 12px 32px -12px rgba(18,67,104,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--midnight); }
:focus-visible { outline: 3px solid var(--clementine); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.005em; color: var(--midnight); }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cobalt); margin-bottom: 1rem; display: inline-block;
}
.accent { color: var(--clementine); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--midnight); color: var(--ivory); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark .eyebrow { color: var(--clementine); }
.section--dark .lede, .section--dark p { color: rgba(249,244,232,.85); }
.section--dark a { color: var(--clementine); }
.bg-pattern { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 1; pointer-events: none; }
.section--dark > .wrap { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--clementine); color: var(--coal); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: .9em 1.5em; border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--clementine); color: var(--coal); }
.btn--primary:hover { background: #ffc995; color: var(--coal); }
.btn--ghost { border-color: currentColor; color: var(--ivory); background: transparent; }
.btn--ghost:hover { background: rgba(249,244,232,.1); color: var(--ivory); }
.btn--blue { background: var(--cobalt); color: #fff; }
.btn--blue:hover { background: var(--midnight); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--midnight); background: transparent; }
.btn--outline:hover { border-color: var(--cobalt); color: var(--cobalt); }
.arrow::after { content: "→"; margin-left: .4em; transition: transform .2s; display: inline-block; }
a:hover .arrow::after, .btn:hover .arrow::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a {
  font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--midnight); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--clementine); color: var(--cobalt); }
.nav .btn { padding: .7em 1.1em; letter-spacing: .12em; border-bottom: 0; }
.nav .btn, .nav .btn:hover { color: #fff; border-bottom: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--midnight); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { background: var(--cobalt); color: var(--ivory); position: relative; overflow: hidden; }
.hero .bg-pattern { background-image: url("../img/pattern-cortex.webp"); mix-blend-mode: normal; opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(54,96,164,.96) 0%, rgba(54,96,164,.75) 55%, rgba(54,96,164,.2) 100%); z-index: 1; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; min-height: min(78vh, 720px); padding-top: 72px; padding-bottom: 96px; }
.hero h1 { color: var(--ivory); margin-bottom: .4em; }
.hero .lede { color: rgba(249,244,232,.9); }
.hero .eyebrow { color: var(--clementine); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { position: relative; aspect-ratio: 1/1; max-width: 420px; justify-self: end; width: 100%; }
.mark-frame {
  position: absolute; inset: 0;
  -webkit-mask: url("../img/shape-mask.png") center/contain no-repeat;
          mask: url("../img/shape-mask.png") center/contain no-repeat;
  background: var(--midnight) url("../img/cortex-blueorangeblock.webp") 58% 40%/78% no-repeat;
}
.hero-art .float { position: absolute; width: 26%; bottom: -4%; left: -8%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); animation: bob 9s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; padding-bottom: 64px; }
  .hero-art { justify-self: center; max-width: 260px; order: -1; }
  .hero::before { background: rgba(54,96,164,.9); }
}

/* Page hero (interior pages) */
.page-hero { background: var(--midnight); color: var(--ivory); position: relative; overflow: hidden; }
.page-hero .bg-pattern { background-image: url("../img/pattern-cortex-outline.webp"); opacity: .9; }
.page-hero .wrap { position: relative; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero h1 { color: var(--ivory); max-width: 16ch; }
.page-hero .lede { color: rgba(249,244,232,.86); }
.page-hero .eyebrow { color: var(--clementine); }
.page-hero .mark-deco { position: absolute; right: var(--gutter); bottom: -40px; width: clamp(120px, 18vw, 240px); opacity: .9; }
@media (max-width: 700px) { .page-hero .mark-deco { display: none; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--clementine); color: var(--coal); overflow: hidden; border-block: 1px solid rgba(0,0,0,.06); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; padding: 16px 28px; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 56px; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .hero-art .float { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px); position: relative; transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-2); margin-bottom: .8em; }
.card .icon { width: 64px; height: 64px; margin-bottom: 18px; object-fit: contain; }
.card .more { font-weight: 700; font-size: .9rem; color: var(--cobalt); }
.section--dark .card { background: rgba(249,244,232,.06); border-color: rgba(249,244,232,.16); color: var(--ivory); }
.section--dark .card p { color: rgba(249,244,232,.8); }

.stat { border-top: 2px solid var(--midnight); padding-top: 18px; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--cobalt); display: block; margin-bottom: 10px; }
.stat .label { color: var(--ink-2); font-size: .98rem; }
.stat .src { display: block; font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* Pipeline steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(249,244,232,.2); }
.step { padding: 28px 24px 8px 0; border-right: 1px solid rgba(249,244,232,.14); margin-right: 24px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 2.6rem; color: var(--clementine); display: block; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 1.3rem; }
.step p { font-size: .96rem; }
.steps--light { border-top-color: var(--line); }
.steps--light .step { border-right-color: var(--line); }
.steps--light .step::before { color: var(--cobalt); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; margin-right: 0; border-bottom: 1px solid rgba(249,244,232,.14); } }

/* ---------- Article (Science page) ---------- */
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; font-size: .9rem; }
.toc h4 { font-family: var(--font-body); font-weight: 700; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--cobalt); }
.toc a.active { border-left-color: var(--cobalt); color: var(--midnight); font-weight: 700; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; background: var(--ivory); border-radius: var(--radius); padding: 20px; } }

.prose { max-width: 72ch; }
.prose section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.prose h3 { margin-top: 1.6em; color: var(--cobalt); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--cobalt); }
.prose strong { color: var(--midnight); }
.ref { font-size: .72em; vertical-align: super; line-height: 0; text-decoration: none; font-weight: 700; padding: 0 1px; }

.callout { background: var(--ivory); border-left: 4px solid var(--clementine); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .eyebrow { margin-bottom: .5rem; }
.tldr { background: var(--midnight); color: var(--ivory); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0 32px; }
.tldr strong { color: var(--clementine); }
.tldr p { margin: 0; }
blockquote { margin: 24px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--cobalt); font-size: 1.06rem; color: var(--ink-2); }
blockquote cite { display: block; font-style: normal; font-size: .85rem; color: var(--muted); margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ivory); font-weight: 700; color: var(--midnight); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
caption { caption-side: bottom; text-align: left; padding: 10px 16px; font-size: .8rem; color: var(--muted); }

.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin: 20px 0; }
.two-col-list > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.two-col-list h4 { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 10px; }
.two-col-list ul { margin: 0; padding-left: 1.1em; font-size: .95rem; }
@media (max-width: 640px) { .two-col-list { grid-template-columns: 1fr; } }

.chips-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; padding: 0; list-style: none; }
.chips-inline li { background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; margin: 0; }

/* Figures / charts */
figure { margin: 32px 0; }
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.figure svg { width: 100%; height: auto; display: block; overflow: visible; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }
figcaption strong { color: var(--ink-2); }
.chart-title { font-weight: 700; color: var(--midnight); margin-bottom: 4px; font-size: 1rem; }
.chart-sub { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: var(--ink-2); margin-bottom: 10px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.chart-tip {
  position: fixed; pointer-events: none; z-index: 60; background: var(--coal); color: var(--ivory);
  font-size: .82rem; line-height: 1.4; padding: 8px 12px; border-radius: 8px; max-width: 260px;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.chart-tip.show { opacity: 1; transform: none; }
.chart-tip b { color: var(--clementine); }
.bar-row { cursor: default; }
.bar-row:hover rect.bar { fill: var(--midnight); }
details.data-table { margin-top: 12px; font-size: .85rem; }
details.data-table summary { cursor: pointer; color: var(--cobalt); font-weight: 700; }

/* References */
.refs { font-size: .88rem; color: var(--ink-2); padding-left: 1.4em; }
.refs li { margin-bottom: .7em; scroll-margin-top: 100px; }
.refs li:target { background: rgba(255,186,123,.3); border-radius: 4px; }

/* ---------- Literature feed ---------- */
.feed-controls { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow); margin-top: -64px; position: relative; z-index: 3; }
.feed-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: .9rem; font-weight: 700; color: var(--midnight);
  background: var(--ivory); border: 1.5px solid transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--cobalt); color: #fff; }
.feed-search { flex: 1 1 260px; position: relative; }
.feed-search input {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 16px 12px 44px; border: 1.5px solid var(--line-strong);
  border-radius: 10px; background: var(--bg); color: var(--ink);
}
.feed-search input:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(54,96,164,.18); }
.feed-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.select { font: inherit; font-size: .92rem; padding: 10px 36px 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23124368' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 12px center no-repeat; -webkit-appearance: none; appearance: none; color: var(--ink); cursor: pointer; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.feed-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin: 36px 0 14px; font-size: .9rem; color: var(--muted); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2F9E6B; margin-right: 8px; box-shadow: 0 0 0 0 rgba(47,158,107,.5); animation: pulse 2s infinite; vertical-align: middle; }
.live-dot.off { background: var(--muted); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,158,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,158,107,0); } }
.feed-list { display: grid; gap: 14px; }
.paper {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; transition: border-color .2s, box-shadow .2s;
}
.paper:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.paper-date { font-family: var(--font-head); color: var(--cobalt); line-height: 1; text-align: left; }
.paper-date .d { font-size: 2.2rem; display: block; }
.paper-date .m { font-family: var(--font-body); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.paper h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; line-height: 1.4; margin: 0 0 6px; color: var(--coal); }
.paper h3 a { color: inherit; text-decoration: none; }
.paper h3 a:hover { color: var(--cobalt); text-decoration: underline; }
.paper .meta { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.paper .meta em { color: var(--ink-2); font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--ivory); color: var(--midnight); }
.tag--oa { background: rgba(47,158,107,.12); color: #1F6E4A; }
.tag--pre { background: rgba(255,186,123,.35); color: #7A4410; }
.tag--topic { background: rgba(54,96,164,.1); color: var(--cobalt); }
.paper details summary { cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--cobalt); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.paper details summary::-webkit-details-marker { display: none; }
.paper details summary::before { content: "+"; font-size: 1.1em; width: 1em; }
.paper details[open] summary::before { content: "–"; }
.paper .abstract { font-size: .95rem; color: var(--ink-2); margin-top: 12px; max-width: 80ch; }
.paper .links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .88rem; font-weight: 700; }
.paper .links a { text-decoration: none; }
.paper .links a:hover { text-decoration: underline; }
@media (max-width: 600px) { .paper { grid-template-columns: 1fr; gap: 8px; padding: 18px; } .paper-date .d { font-size: 1.4rem; display: inline; margin-right: 6px; } }
.skeleton { height: 128px; border-radius: var(--radius); background: linear-gradient(90deg, var(--ivory) 0%, #fff 50%, var(--ivory) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.feed-empty { text-align: center; padding: 48px 20px; background: var(--ivory); border-radius: var(--radius); color: var(--ink-2); }
.feed-more { display: flex; justify-content: center; margin-top: 28px; }

/* Mini feed on home */
.mini-feed { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mini-paper { display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; text-decoration: none; color: inherit; }
.mini-paper:hover h4 { color: var(--cobalt); }
.mini-paper time { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini-paper h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; line-height: 1.4; color: var(--coal); margin: 0 0 4px; }
.mini-paper .j { font-size: .86rem; color: var(--muted); font-style: italic; }
.mini-paper .go { color: var(--cobalt); font-weight: 700; }
@media (max-width: 640px) { .mini-paper { grid-template-columns: 1fr; gap: 4px; } .mini-paper .go { display: none; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form label { font-size: .85rem; font-weight: 700; color: var(--midnight); display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 13px 16px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(54,96,164,.18); }
.form textarea { min-height: 140px; resize: vertical; }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.subscribe input { flex: 1 1 240px; font: inherit; padding: 14px 16px; border-radius: 6px; border: 1.5px solid rgba(249,244,232,.35); background: rgba(249,244,232,.08); color: var(--ivory); }
.subscribe input::placeholder { color: rgba(249,244,232,.6); }
.subscribe input:focus { outline: none; border-color: var(--clementine); }
.form-note { font-size: .8rem; opacity: .75; margin-top: 10px; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--coal); color: rgba(249,244,232,.78); font-size: .92rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { font-family: var(--font-body); font-weight: 700; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clementine); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(249,244,232,.86); text-decoration: none; }
.site-footer a:hover { color: var(--clementine); }
.footer-logo { height: 30px; width: auto; margin-bottom: 18px; }
.disclaimer { border: 1px solid rgba(249,244,232,.18); border-radius: 10px; padding: 16px 18px; font-size: .8rem; line-height: 1.55; margin-top: 44px; color: rgba(249,244,232,.7); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: .8rem; color: rgba(249,244,232,.55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.head-row h2 { margin-bottom: 0; }
.illus { width: 100%; max-width: 520px; margin-inline: auto; }
.pill-note { display: inline-block; background: rgba(255,186,123,.25); color: #7A4410; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.team-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--ivory) url("../img/mark-blue.png") center/42% no-repeat; border: 1px solid var(--line); }

/* ---------- Products / waitlist ---------- */
.product-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.product-hero h1 { max-width: 14ch; }
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; } .bottle-stage { order: -1; } }
.bottle-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.bottle { width: min(260px, 60vw); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); animation: bob 10s ease-in-out infinite; }
.bottle-cap { height: 46px; width: 62%; margin: 0 auto; border-radius: 10px 10px 4px 4px; background: repeating-linear-gradient(90deg, #1b1c1d 0 5px, #2b2c2e 5px 9px); }
.bottle-neck { height: 14px; width: 56%; margin: 0 auto; background: linear-gradient(90deg, #d9d5cc, #fff 45%, #cfcac0); }
.bottle-body { position: relative; aspect-ratio: 5/6.2; border-radius: 34px 34px 22px 22px; background: linear-gradient(90deg, #d6d1c7 0%, #fbfaf6 30%, #ffffff 45%, #e6e1d7 85%, #cfc9be 100%); padding: 16% 0 10%; }
.bottle-label { height: 100%; background: url("../img/label-front.webp") center/cover no-repeat; box-shadow: inset 18px 0 24px -12px rgba(0,0,0,.35), inset -22px 0 26px -12px rgba(0,0,0,.35); }
.bottle-badge { position: absolute; top: 6%; right: 8%; width: 92px; height: 92px; border-radius: 50%; background: var(--clementine); color: var(--coal); display: grid; place-items: center; text-align: center; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; transform: rotate(10deg); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.perks { list-style: none; padding: 0; margin: 8px 0 24px; }
.perks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid rgba(249,244,232,.14); color: rgba(249,244,232,.9); }
.perks li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--clementine); color: var(--coal); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.perks strong { color: var(--ivory); }
.waitlist-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.section--dark .waitlist-card p { color: var(--ink-2); }
.section--dark .waitlist-card h3 { color: var(--midnight); }
.section--dark .waitlist-card a:not(.btn) { color: var(--cobalt); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--ink-2) !important; line-height: 1.45; }
.consent input { width: 18px !important; height: 18px; flex: none; margin-top: 2px; accent-color: var(--cobalt); padding: 0 !important; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.06rem; color: var(--midnight); padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--cobalt); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 18px; max-width: 70ch; }
@media (max-width: 1080px) and (min-width: 901px) { .nav { gap: 16px; } .nav a { letter-spacing: .1em; font-size: .72rem; } }
.form-error { color: #B3261E; font-size: .9rem; font-weight: 700; margin: 4px 0 0; }
.form-error:empty { display: none; }
.section--dark .subscribe + .form-done, .section--dark .form-error { color: var(--clementine); }
