:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #f4f1ec;
  --muted: #8a8580;
  --accent: #d98a4b;
  --panel-text: #a3c08e;
  --border: rgba(244, 241, 236, 0.12);
  --font-display: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { height: 96px; width: auto; }
.brand-text {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-link:hover { opacity: 1; color: var(--accent); }

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 100vh;
}
.panel {
  position: relative;
  display: block;
  overflow: hidden;
  border-right: 1px solid var(--border);
  isolation: isolate;
}
.panel:last-child { border-right: none; }

.panel .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  filter: grayscale(18%) brightness(0.7);
  z-index: 0;
}
.panel .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.1) 35%, rgba(10,10,10,0.88) 100%);
  transition: background 0.6s ease;
  z-index: 1;
}
.panel .content {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 40px 36px 48px 36px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.panel .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.panel .label::before {
  content: ""; display: inline-block;
  width: 22px; height: 1px; background: var(--accent);
}
.panel h2 {
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.panel p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--panel-text);
  max-width: 38ch;
}
.panel .cta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  opacity: 0.65;
  transition: opacity 0.3s ease, gap 0.3s ease, color 0.3s ease;
}
.panel .cta::after { content: "→"; }

.panel:hover .bg,
.panel:focus-visible .bg {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(0.85);
}
.panel:hover .scrim,
.panel:focus-visible .scrim {
  background: linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.05) 40%, rgba(10,10,10,0.78) 100%);
}
.panel:hover .content,
.panel:focus-visible .content { transform: translateY(-6px); }
.panel:hover .cta,
.panel:focus-visible .cta { opacity: 1; gap: 14px; color: var(--accent); }
.panel:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; }

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 140px 28px 120px 28px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--accent);
}
.page h1 {
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text);
  max-width: 60ch;
  margin-bottom: 48px;
}
.page .body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 62ch;
}
.pager {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pager a {
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.pager a:hover { opacity: 1; color: var(--accent); }

.site-footer {
  padding: 20px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.site-footer.fixed {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 10;
}
.site-footer.fixed a, .site-footer.fixed span { pointer-events: auto; }

@media (max-width: 900px) {
  .panels { grid-template-columns: 1fr; min-height: auto; }
  .panel { border-right: none; border-bottom: 1px solid var(--border); }
  .panel:last-child { border-bottom: none; }
  .panel .content { min-height: 58vh; padding: 120px 24px 36px 24px; }
  .site-header { padding: 16px 20px; }
  .site-footer.fixed { position: static; }
  .page { padding: 120px 20px 80px 20px; }
}

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

.page-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(12%) brightness(0.72);
  z-index: 0;
}
.page-hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
}
.page-hero .content {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 60vh;
  max-width: 880px;
  margin: 0 auto;
  padding: 140px 28px 56px 28px;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

.page.with-hero { padding: 64px 28px 120px 28px; }

.figure {
  margin: 40px 0 48px 0;
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
}
.figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.figure.brand-mark {
  margin: 32px auto 48px auto;
  max-width: 360px;
  text-align: center;
}
.figure.brand-mark a {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.92;
}
.figure.brand-mark a:hover { transform: translateY(-2px); opacity: 1; }
.figure.brand-mark img {
  width: 100%;
  height: auto;
  background: transparent;
  display: block;
}
.figure.brand-mark figcaption {
  text-align: center;
  margin-top: 14px;
}

.body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.body a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .page-hero { min-height: 52vh; }
  .page-hero .content {
    min-height: 52vh;
    padding: 120px 20px 40px 20px;
  }
  .page.with-hero { padding: 40px 20px 80px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel .bg, .panel .content, .panel .scrim, .panel .cta,
  .nav-link, .pager a { transition: none !important; }
}
