/* =====================================================================
   SenseBeing — official site
   Aesthetic: refined editorial minimal · warm paper · oxblood accent
   The dot motif (sensor dot from the logo) is the signature device.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper:      #FFFCF8;
  --paper-2:    #FAF6EE;   /* alternating section / cards */
  --ink:        #1A1815;   /* warm near-black */
  --muted:      #6B655B;   /* warm secondary text */
  --faint:      #A39C90;   /* tertiary / captions */
  --line:       rgba(26, 24, 21, 0.12);
  --line-2:     rgba(26, 24, 21, 0.22);

  --accent:      #E34A33;  /* (ü)ALTER red — family link */
  --accent-deep: #C53C27;
  --accent-ink:  #FFFEE1;  /* text over red */

  --ff-display: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --ff-body:    "Hanken Grotesk", "Noto Sans SC", system-ui, sans-serif;

  --maxw: 1240px;
  --pad:  clamp(20px, 5.5vw, 80px);

  --fs-display: clamp(2.9rem, 8.2vw, 6.4rem);
  --fs-h1:      clamp(2.1rem, 5vw, 3.6rem);
  --fs-h2:      clamp(1.55rem, 3.2vw, 2.5rem);
  --fs-h3:      clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-lead:    clamp(1.08rem, 1.7vw, 1.4rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.875rem;
  --fs-eyebrow: 0.76rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(zh) { letter-spacing: 0; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- i18n: dual-language reveal ---------- */
html.lang-en [data-l="zh"] { display: none !important; }
html.lang-zh [data-l="en"] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 168px); }
.divider { border: 0; border-top: 1px solid var(--line); }

/* ---------- The dot motif ---------- */
.dot {
  display: inline-block;
  width: 0.62em; height: 0.62em;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: baseline;
  position: relative;
  top: 0.02em;
}
/* a red terminal dot for headlines — a real circle, not the font's period glyph,
   so size and baseline are controlled. The "." text inside is hidden but kept for copy/SR. */
.period {
  display: inline-block;
  width: 0.46em; height: 0.46em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: baseline;
  text-indent: -9em; overflow: hidden;
}
:lang(zh) .period { width: 0.4em; height: 0.4em; margin-left: 0.04em; vertical-align: 0.04em; }

/* eyebrow label: small caps + a leading dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--ff-display);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}
:lang(zh) .eyebrow { letter-spacing: 0.1em; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
/* CJK type scale — separate sizing/leading so Chinese isn't set on Latin metrics.
   CJK glyphs fill the em box, so display is sized down ~18% and tracking reset to 0. */
:lang(zh) .display { font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 1.14; letter-spacing: 0; font-weight: 700; }
:lang(zh) h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.24; letter-spacing: 0; font-weight: 700; }
:lang(zh) h2 { line-height: 1.32; letter-spacing: 0; font-weight: 700; }
:lang(zh) h3 { line-height: 1.5; letter-spacing: 0; font-weight: 700; }
.display { font-size: var(--fs-display); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.06; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em; }
.lead {
  font-size: var(--fs-lead); line-height: 1.5;
  color: var(--muted); letter-spacing: -0.01em; max-width: 36ch;
}
:lang(zh) .lead { line-height: 1.85; }
.prose { color: var(--muted); max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--ff-display); font-weight: 500; font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.92em 1.5em;
  background: var(--bg); color: var(--fg);
  border-radius: 2px;
  position: relative; overflow: hidden;
  transition: transform 0.16s var(--ease-expo), color 0.4s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 44px;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-101%);
  background: var(--accent); transition: transform 0.5s var(--ease); z-index: 0;
}
.btn:hover::after { transform: translateX(0); }
.btn:hover { color: var(--accent-ink); }
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--accent { --bg: var(--accent); --fg: var(--accent-ink); }
.btn--accent::after { background: var(--ink); }
.btn--accent:hover { color: var(--paper); }

.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { color: var(--accent-ink); }

/* text link with animated underline */
.tlink {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--ff-display); font-weight: 500;
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
  padding-bottom: 2px;
}
.tlink:hover { background-size: 100% 2px; color: var(--accent); }
.tlink .arrow { transition: transform 0.4s var(--ease); }
.tlink:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 17px; color: var(--ink); }
.brand .mark .tittle { fill: var(--accent); }
.brand .wordmark { height: 15px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav-link {
  font-family: var(--ff-display); font-size: 0.95rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--muted);
  position: relative; padding: 6px 0; transition: color 0.25s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-family: var(--ff-display); font-weight: 500; font-size: 0.9rem;
  color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 14px; min-height: 36px;
  transition: color 0.25s, border-color 0.25s;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 132px) clamp(64px, 10vw, 150px); }
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero h1.display { margin-bottom: clamp(20px, 3vw, 36px); }
.hero .lead { font-size: var(--fs-lead); max-width: 30ch; margin-bottom: clamp(28px, 4vw, 44px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* the oversized brand mark — breathing */
.hero-mark { display: grid; justify-items: center; gap: clamp(18px, 3vw, 34px); }
.hero-mark .glyph-dot {
  width: clamp(110px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent);
}
.hero-mark .glyph-bar {
  width: clamp(110px, 16vw, 200px); height: clamp(22px, 3vw, 40px);
  border-radius: 4px; background: var(--ink);
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); }
  50%      { transform: scale(1.045); box-shadow: 0 0 0 22px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* ---------- Generic section header ---------- */
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 76px); max-width: 60ch; }
.sec-head.wide { max-width: none; }

/* ---------- Manifesto / statement ---------- */
.statement {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.18;
  letter-spacing: -0.02em; max-width: 20ch;
}
:lang(zh) .statement { font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.5; letter-spacing: 0; font-weight: 600; }
.statement em { font-style: normal; color: var(--accent); }

/* ---------- Featured product panel (red) ---------- */
.feature-panel {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 4px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr;
}
.feature-panel .fp-body { padding: clamp(36px, 5vw, 76px); }
.feature-panel .fp-eyebrow {
  font-family: var(--ff-display); font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-ink) 75%, var(--accent));
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 22px;
}
.feature-panel .fp-eyebrow::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--accent-ink); }
.feature-panel h2 { color: var(--accent-ink); margin-bottom: 18px; }
.feature-panel .fp-tag {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 20px;
}
.feature-panel p { color: color-mix(in srgb, var(--accent-ink) 88%, var(--accent)); max-width: 42ch; margin-bottom: 30px; }
.feature-panel .btn--accent { --bg: var(--accent-ink); --fg: var(--accent); }
.feature-panel .btn--accent::after { background: var(--ink); }
.feature-panel .btn--accent:hover { color: var(--accent-ink); }
.fp-aside {
  border-left: 1px solid color-mix(in srgb, var(--accent-ink) 30%, var(--accent));
  display: grid; align-content: center; gap: 0; padding: clamp(28px,4vw,56px);
}
.fp-stat { padding-block: 22px; border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 22%, var(--accent)); }
.fp-stat:last-child { border-bottom: 0; }
.fp-stat b {
  font-family: var(--ff-display); font-weight: 700; display: block;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1; letter-spacing: -0.02em;
}
.fp-stat span { font-size: var(--fs-sm); color: color-mix(in srgb, var(--accent-ink) 72%, var(--accent)); }

/* ---------- Editorial list (capabilities / steps) ---------- */
.ed-list { border-top: 1px solid var(--line); }
.ed-item {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(26px, 3.4vw, 40px); border-bottom: 1px solid var(--line);
}
.ed-item .idx {
  font-family: var(--ff-display); font-weight: 500; font-size: 0.95rem;
  color: var(--accent); letter-spacing: 0.04em; padding-top: 0.3em; min-width: 2.5ch;
}
.ed-item .ed-main { display: grid; gap: 10px; }
.ed-item .ed-main h3 { display: flex; align-items: baseline; gap: 0.5em; }
.ed-item .ed-main p { color: var(--muted); max-width: 56ch; }
.ed-item:hover .idx { color: var(--ink); }
.ed-item { transition: background 0.3s; }
.ed-item:hover { background: var(--paper-2); }

/* steps variant (3-up) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.step { background: var(--paper); padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 14px; align-content: start; }
.step .step-n { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--ff-display); font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.step .step-n::before { content:""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: var(--fs-body); }

/* audience tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--ff-display); font-size: 0.9rem; font-weight: 500;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 15px; color: var(--muted); transition: 0.25s var(--ease);
}
.tag:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.split--narrow { grid-template-columns: 1fr 1fr; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 18ch; margin-bottom: 28px; }
.cta-band .big-mail {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem); letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 0.4em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 3px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s;
}
.cta-band .big-mail:hover { background-size: 100% 3px; color: var(--accent); }

/* ---------- Contact reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.reason { background: var(--paper); padding: clamp(24px,3vw,38px) clamp(20px,2vw,28px) clamp(24px,3vw,38px) 0; }
.reason:not(:first-child){ padding-left: clamp(20px,2vw,28px); }
.reason h3 { font-size: 1.15rem; margin-bottom: 10px; }
.reason p { color: var(--muted); font-size: var(--fs-sm); }
.reason a { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal .meta { color: var(--faint); font-size: var(--fs-sm); margin-bottom: 8px; font-family: var(--ff-display); letter-spacing: 0.04em; }
.legal h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: clamp(40px, 5vw, 60px); margin-bottom: 14px; scroll-margin-top: 96px; }
.legal h2 .num { color: var(--accent); margin-right: 0.5em; font-weight: 700; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 12px 0 0; padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .note { margin-top: 56px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-2); font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 40px; margin-top: clamp(40px,6vw,80px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.footer-brand .wordmark { height: 20px; color: var(--ink); margin-bottom: 18px; }
.footer-brand .vision { font-family: var(--ff-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.footer-brand .vision .period { }
.footer-col h4 { font-family: var(--ff-display); font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-weight: 500; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; transition: color 0.2s; width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; margin-top: clamp(48px,6vw,72px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: var(--fs-sm); }
.footer-bottom .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Scroll reveal (gated behind .has-js so no-JS shows content) ---------- */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.has-js .reveal { opacity: 0; transform: translateY(24px); }
html.has-js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Motion & delight ---------- */

/* Signature: the brand mark assembles on load, then breathes like a sensor */
html.has-js .hero-mark .glyph-dot {
  animation: dotDrop 0.75s var(--ease-expo) 0.15s both, breathe 4.8s ease-in-out 1.2s infinite;
}
html.has-js .hero-mark .glyph-bar {
  transform-origin: left center;
  animation: barWipe 0.6s var(--ease-expo) 0.5s both;
}
@keyframes dotDrop {
  from { opacity: 0; transform: translateY(-34px) scale(0.35); }
  to   { opacity: 1; transform: none; }
}
@keyframes barWipe {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: none; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1);     box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 34%, transparent); }
  50%      { transform: scale(1.045); box-shadow: 0 0 0 26px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* Eyebrow dot fires a single radar ping the moment its section reveals */
html.has-js .reveal.in .eyebrow::before,
html.has-js .eyebrow.reveal.in::before,
html.has-js .reveal.in .fp-eyebrow::before {
  animation: ping 0.95s var(--ease-expo);
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* Staggered children within a revealed container */
html.has-js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.has-js .stagger.in > * { opacity: 1; transform: none; }
html.has-js .stagger.in > *:nth-child(1)  { transition-delay: 0.04s; }
html.has-js .stagger.in > *:nth-child(2)  { transition-delay: 0.10s; }
html.has-js .stagger.in > *:nth-child(3)  { transition-delay: 0.16s; }
html.has-js .stagger.in > *:nth-child(4)  { transition-delay: 0.22s; }
html.has-js .stagger.in > *:nth-child(5)  { transition-delay: 0.28s; }
html.has-js .stagger.in > *:nth-child(6)  { transition-delay: 0.34s; }
html.has-js .stagger.in > *:nth-child(7)  { transition-delay: 0.40s; }
html.has-js .stagger.in > *:nth-child(8)  { transition-delay: 0.46s; }
html.has-js .stagger.in > *:nth-child(9)  { transition-delay: 0.52s; }
html.has-js .stagger.in > *:nth-child(10) { transition-delay: 0.58s; }

/* Logo mark gives a little sensor "pop" on hover */
.brand .mark .tittle { transform-box: fill-box; transform-origin: center; }
.brand:hover .mark .tittle { animation: dotPop 0.55s var(--ease-expo); }
@keyframes dotPop {
  0% { transform: scale(1); } 38% { transform: scale(1.32); } 100% { transform: scale(1); }
}

/* Language switch — quick crossfade so the swap doesn't hard-cut */
body.lang-swap main,
body.lang-swap .site-header .wrap,
body.lang-swap .site-footer .wrap { animation: swapFade 0.34s var(--ease); }
@keyframes swapFade { from { opacity: 0.32; } to { opacity: 1; } }

/* ed-item hover: nudge the index dot toward its text */
.ed-item .idx { transition: color 0.3s, transform 0.3s var(--ease-expo); }
.ed-item:hover .idx { transform: translateX(4px); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .feature-panel { grid-template-columns: 1fr; }
  .fp-aside { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 30%, var(--accent)); }
  .split, .split--narrow { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .reason, .reason:not(:first-child) { padding: 24px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { gap: 22px; }
  .nav-links .nav-link { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px;
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: 0.3s var(--ease);
  }
  .nav-toggle .bars::before { position: absolute; top: -6px; }
  .nav-toggle .bars::after { position: absolute; top: 6px; }
  body.menu-open .nav-toggle .bars { background: transparent; }
  body.menu-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
  body.menu-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 72px 0 0; background: var(--paper); z-index: 90;
    padding: 32px var(--pad); display: grid; align-content: start; gap: 4px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.3s var(--ease);
  }
  body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { font-family: var(--ff-display); font-weight: 500; font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-menu a .dot { width: 0.4em; height: 0.4em; }
}
@media (min-width: 721px) { .mobile-menu { display: none; } }

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