:root {
  --black: #0f0f0e;        /* premium black, never pure #000 */
  --ink: #f1eee6;          /* off-white */
  --ink-soft: rgba(241, 238, 230, 0.62);
  --ink-faint: rgba(241, 238, 230, 0.34);
  --gutter: clamp(20px, 6vw, 96px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background drawn by code. Sits behind everything, never scrolls. */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

a { color: inherit; }

/* ---------- top bar ---------- */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  font-size: 15px;
}
.top__mark {
  width: 76px;
  display: block;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .5s ease, transform .5s ease;
}
.top__mark svg { display: block; width: 100%; height: auto; }
.scrolled .top__mark { opacity: 1; transform: none; }
html:not(.js) .top__mark { opacity: 1; transform: none; }
.top__hello {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color .25s ease;
}
.top__hello:hover, .top__hello:focus-visible { color: var(--ink); }

/* ---------- sections ---------- */
.panel {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}

.panel--hero { position: relative; }

.hero__logo {
  margin: 0;
  width: min(100%, 880px);
}
.hero__logo svg { display: block; width: 100%; height: auto; overflow: visible; }

.hero__line {
  margin: clamp(28px, 5vw, 56px) 0 0;
  font-size: clamp(26px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.hero__sub {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 20px);
}

.hero__cue {
  position: absolute;
  left: var(--gutter);
  bottom: 36px;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ink-faint), transparent);
  transform-origin: top;
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h2 {
  margin: 0;
  font-size: clamp(40px, 8.4vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.lede {
  margin: clamp(22px, 3vw, 40px) 0 0;
  max-width: 34em;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.mail {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(22px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size .35s ease;
  overflow-wrap: anywhere;
}
.mail:hover, .mail:focus-visible { background-size: 0 1px; background-position: 100% 100%; }

.note { margin: 22px 0 0; color: var(--ink-faint); font-size: 16px; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; border-radius: 2px; }

/* ---------- footer ---------- */
.foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-faint);
}
.foot p { margin: 0; }
.foot a { text-underline-offset: 3px; transition: color .25s ease; }
.foot a:hover, .foot a:focus-visible { color: var(--ink); }
.dot { margin: 0 .45em; }

/* ---------- gentle reveal (only when scripts run) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cue { animation: none; }
  .top__mark { transition: none; }
}

@media (max-width: 520px) {
  .panel { padding: 96px var(--gutter); }
  .foot { flex-direction: column; }
}
