*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hd); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.65 var(--f); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }
.lb { font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; line-height: 1.4; }
.mute { color: var(--mute); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* header */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd); display: flex; align-items: center; }
.hd::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: -1; border-bottom: 1px solid transparent; transition: border-color .3s; }
.hd.on::before { border-bottom-color: var(--line); }
.hd .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; letter-spacing: .24em; font-size: 13px; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 12px; letter-spacing: .08em; font-weight: 500; padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { right: 0; }
.menu-btn { display: none; font-size: 12px; letter-spacing: .12em; font-weight: 600; padding: 14px 0 14px 14px; min-height: 44px; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--hd) 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); padding: 8px var(--gut) 24px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease); }
  .nav a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); letter-spacing: 0; }
  .nav a::after { display: none; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
}

/* footer */
.ft { padding: 48px 0 40px; border-top: 1px solid var(--line); margin-top: 0; }
.ft .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.ft p { margin: 0; font-size: 12px; color: var(--mute); max-width: 56ch; }

/* reveal variants (module: reveal.js). Static when reduced motion or no JS. */
.js [data-rv] { opacity: 0; }
.js [data-rv="up"] { transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-rv="clip"] { clip-path: inset(0 0 100% 0); opacity: 1; transition: clip-path 1.1s var(--ease); }
.js [data-rv="fade"] { transition: opacity 1.1s ease; }
.js [data-rv].in { opacity: 1; transform: none; clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) { .js [data-rv] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; } html { scroll-behavior: auto; } }
