:root {
  --ink: #12110e;
  --ink-2: #1c1a16;
  --paper: #f4efe6;
  --paper-2: #e7e0d2;
  --text: #f4efe6;
  --text-dim: #c9bfb1;
  --muted: #9c9284;
  --ink-text: #1a1814;
  --ink-dim: #5c564c;
  --line: rgba(244, 239, 230, 0.14);
  --line-ink: rgba(26, 24, 20, 0.12);
  --brass: #c6a36a;
  --brass-deep: #6f4e2c;
  --shadow: 14px 18px 0 rgba(198, 163, 106, 0.2);
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: "Figtree", system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--brass); color: #1a100c; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 120;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}

.nav.solid {
  background: rgba(18, 17, 14, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 239, 230, 0.35);
  background: rgba(18, 17, 14, 0.72);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: calc(var(--nav-h) + 12px) 28px 48px;
  transform: translateY(-102%);
  transition: transform 0.55s var(--ease);
}

.menu.open { transform: none; }

.menu a {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 3.5rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-decoration: none;
}

.menu a:hover { color: var(--brass); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

a.btn.btn-ember {
  background: var(--brass);
  color: #1a120c;
}

a.btn.btn-ember:hover {
  transform: translateY(-2px);
  background: #d4b483;
  color: #1a120c;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover { border-color: rgba(244, 239, 230, 0.4); transform: translateY(-2px); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 28px) 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px circle at var(--mx, 72%) var(--my, 28%), rgba(198, 163, 106, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(198, 163, 106, 0.07), transparent 32%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin: 14px 0 18px;
}

.hero h1 span { display: block; }
.hero h1 .ember { color: var(--brass); }

.lede {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

/* Instrument */

.instrument {
  position: relative;
  background:
    linear-gradient(rgba(198, 163, 106, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 163, 106, 0.07) 1px, transparent 1px),
    var(--ink-2);
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.instrument-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 rgba(198, 163, 106, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.instrument svg { width: 100%; height: auto; }

.wire {
  stroke: rgba(198, 163, 106, 0.72);
  stroke-width: 1.25;
  stroke-dasharray: 4 7;
  animation: flow 2.6s linear infinite;
}

.wire.slow { animation-duration: 3.6s; opacity: 0.7; }

.ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.8s ease-out infinite;
}

.instrument-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Marquee */

.marquee {
  background: #1a1713;
  color: var(--brass);
  overflow: hidden;
  max-width: 100%;
  border-top: 1px solid rgba(198, 163, 106, 0.35);
  border-bottom: 1px solid rgba(198, 163, 106, 0.35);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  padding: 14px 0;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee span {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  padding: 0 18px;
  white-space: nowrap;
}

.marquee .sep { opacity: 0.45; padding: 0; }

/* Sections */

section { scroll-margin-top: 88px; }

.section { padding: 112px 0; }

.section-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.display,
.section-head h2,
.statement h2,
.contact h2,
.work-copy h3,
.steps h3,
.seats strong {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.display {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  margin: 16px 0 18px;
  max-width: 12ch;
}

.section-head h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  max-width: 14ch;
}

.paper {
  background: var(--paper);
  color: var(--ink-text);
}

.paper .kicker { color: var(--brass-deep); }
.paper .lede, .paper .section-lead { color: var(--ink-dim); }

.section-lead {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1.08rem;
}

/* Work */

.work-list { list-style: none; }

.work-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line-ink);
  transition: background 0.3s var(--ease);
}

.work-list li:last-child { border-bottom: 1px solid var(--line-ink); }

.work-list .num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  color: var(--brass-deep);
}

.work-copy h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; }

.work-copy p { max-width: 58ch; color: var(--ink-dim); font-size: 1.05rem; }

.tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink-dim);
  margin-top: 8px;
}

.work-list li:hover .work-copy h3 { color: var(--brass-deep); }

/* Statement */

.statement { padding: 120px 0; }

.statement h2 {
  font-size: clamp(2.8rem, 6.5vw, 5.7rem);
  max-width: 14ch;
}

.statement em {
  font-style: normal;
  color: var(--brass);
}

.statement .caption {
  margin-top: 28px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Seats */

.fit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.seats { list-style: none; }

.seats li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.seats li:last-child { border-bottom: 1px solid var(--line); }

.seats .idx {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--brass);
  padding-top: 6px;
}

.seats strong { display: block; font-size: 1.35rem; margin-bottom: 4px; }
.seats p { color: var(--text-dim); }

.seats li:hover strong { color: var(--brass); }

/* Steps */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.steps li {
  border-top: 2px solid var(--ink-text);
  padding-top: 18px;
  min-height: 100%;
}

.steps .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
}

.steps h3 {
  font-size: 1.7rem;
  margin: 14px 0 10px;
}

.steps p { color: var(--ink-dim); }

/* Contact */

.contact { padding: 120px 0 100px; }

.contact h2 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 12ch;
  margin: 16px 0 20px;
}

.contact .lede { margin-bottom: 36px; }

.mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 2px solid var(--brass);
  line-height: 1.1;
  padding-bottom: 4px;
}

.mail:hover { color: #d4b483; border-color: #d4b483; }
.mail .arrow { transition: transform 0.25s var(--ease); }
.mail:hover .arrow { transform: translateX(6px); }

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; }

/* Reveal */

.js .rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .rise.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: 0.08s; }
.js .d2 { transition-delay: 0.16s; }
.js .d3 { transition-delay: 0.24s; }

@keyframes flow { to { stroke-dashoffset: -44; } }

@keyframes ping {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.85); opacity: 0; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 163, 106, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(198, 163, 106, 0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid,
  .section-head,
  .fit-layout,
  .steps { grid-template-columns: 1fr; }

  .section-head { margin-bottom: 36px; }
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .instrument { box-shadow: 8px 10px 0 rgba(198, 163, 106, 0.2); }
}

@media (max-width: 720px) {
  .container, .nav-inner { width: min(1180px, calc(100% - 32px)); }
  .section, .statement, .contact { padding: 80px 0; }
  .work-list li { grid-template-columns: 1fr; gap: 8px; }
  .tag { justify-self: start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .rise { opacity: 1; transform: none; }
}
