:root {
  --bg: #090908;
  --bg-elevated: #0f0f0d;
  --panel: #121210;
  --panel-2: #171613;
  --text: #eee8dc;
  --muted: #9f9a8f;
  --muted-2: #6f6b63;
  --bronze: #a47a42;
  --bronze-bright: #c59a5f;
  --bronze-dark: #664a28;
  --line: rgba(197, 154, 95, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 2%, rgba(164, 122, 66, 0.08), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(197, 154, 95, 0.28);
  color: var(--text);
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.scrolled {
  background: rgba(9, 9, 8, 0.78);
  border-color: var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.79rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--bronze-dark);
  color: var(--bronze-bright);
  font-family: var(--serif);
  font-size: 1rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a,
.text-link,
.footer-links a {
  color: var(--muted);
  font-size: 0.84rem;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 20px;
  align-items: center;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--bronze);
  background:
    linear-gradient(180deg, rgba(197, 154, 95, 0.16), rgba(164, 122, 66, 0.08));
  color: #f2e8d8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(197, 154, 95, 0.16);
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--bronze-bright);
  background:
    linear-gradient(180deg, rgba(197, 154, 95, 0.24), rgba(164, 122, 66, 0.12));
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.7rem;
}

.section {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  align-items: center;
  padding-top: 116px;
  padding-bottom: 72px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 1px;
  left: -170px;
  top: 57%;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform: rotate(-18deg);
}

.hero-glow {
  position: absolute;
  inset: 12% -30% auto auto;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 122, 66, 0.13), rgba(164, 122, 66, 0.025) 38%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-grid,
.final-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197, 154, 95, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 154, 95, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.75) 18%, rgba(0,0,0,.3), transparent 92%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--bronze-bright);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.9rem, 6.8vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

h1 em,
h2 em {
  color: var(--bronze-bright);
  font-style: italic;
  font-weight: 400;
}

.hero-text {
  max-width: 580px;
  margin: 30px 0 0;
  color: #b8b1a5;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ghost-link span {
  color: var(--bronze-bright);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 54px;
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--bronze);
  box-shadow: 0 0 12px rgba(197, 154, 95, 0.7);
}

.hero-visual {
  position: relative;
  z-index: 2;
  perspective: 1400px;
}

.window-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), transparent),
    var(--panel);
  border: 1px solid rgba(197, 154, 95, 0.24);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.hero-frame {
  transform: rotateY(-8deg) rotateX(1.5deg);
  transform-origin: 40% 50%;
}

.window-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.025), transparent 22%, transparent 78%, rgba(197,154,95,.035));
}

.window-topbar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.18);
}

.window-title,
.window-status {
  color: var(--muted-2);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.window-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #8d8b83;
}

.window-status b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8e895a;
  box-shadow: 0 0 9px rgba(197,154,95,.45);
}

.window-frame img {
  min-height: 420px;
  object-fit: cover;
  object-position: top left;
}

.image-placeholder {
  display: none;
}

.window-frame.missing-image img {
  display: none;
}

.window-frame.missing-image .image-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  background:
    linear-gradient(rgba(197,154,95,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,154,95,.03) 1px, transparent 1px),
    #10100e;
  background-size: 28px 28px;
  color: var(--muted);
  text-align: center;
}

.image-placeholder span {
  color: var(--bronze-bright);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.image-placeholder small {
  color: var(--muted-2);
}

.floating-label {
  position: absolute;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(9, 9, 8, 0.88);
  color: var(--bronze-bright);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  backdrop-filter: blur(12px);
}

.label-one {
  left: -22px;
  top: 28%;
}

.label-two {
  right: -15px;
  bottom: 20%;
}

.manifesto {
  padding: 120px 0 150px;
  text-align: center;
}

.section-rule {
  width: 1px;
  height: 72px;
  margin: 0 auto 70px;
  background: linear-gradient(var(--bronze-dark), transparent);
}

.manifesto-inner {
  max-width: 920px;
  margin: 0 auto;
}

.manifesto h2,
.section-heading h2,
.capability h2,
.statement h2,
.final-cta h2 {
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.manifesto p:last-child {
  max-width: 620px;
  margin: 30px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.platform,
.method,
.capabilities {
  padding: 80px 0 130px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}

.section-heading > p {
  max-width: 470px;
  margin: 0 0 8px auto;
  color: var(--muted);
  line-height: 1.7;
}

.showcase {
  position: relative;
  width: min(1080px, 92%);
  margin: 0 auto;
}

.showcase-frame img,
.showcase-frame.missing-image .image-placeholder {
  min-height: 590px;
}

.showcase-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  color: var(--muted-2);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.showcase-label-left {
  left: -40px;
  transform: rotate(180deg) translateY(50%);
}

.showcase-label-right {
  right: -40px;
  transform: translateY(-50%);
}

.cycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}

.cycle-step {
  min-height: 280px;
  padding: 34px 28px 38px;
  border-right: 1px solid var(--line-soft);
}

.cycle-step:last-child {
  border-right: 0;
}

.roman {
  display: block;
  margin-bottom: 46px;
  color: var(--bronze-dark);
  font-family: var(--serif);
  font-size: 2.25rem;
}

.cycle-step h3 {
  color: var(--text);
  font-size: 1.7rem;
}

.cycle-step p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.capability {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 76px;
  align-items: center;
  min-height: 720px;
  padding: 90px 0;
  border-top: 1px solid var(--line-soft);
}

.capability-reverse {
  grid-template-columns: 1.28fr 0.72fr;
}

.capability-reverse .capability-copy {
  order: 2;
}

.capability-reverse .capability-visual {
  order: 1;
}

.capability-copy p:not(.eyebrow) {
  max-width: 490px;
  margin: 26px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.capability-copy ul {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.capability-copy li {
  position: relative;
  padding-left: 18px;
  color: #b8b1a5;
  font-size: 0.85rem;
}

.capability-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 1px;
  background: var(--bronze);
}

.capability .window-frame img,
.capability .window-frame.missing-image .image-placeholder {
  min-height: 470px;
}

.statement {
  width: 100%;
  max-width: none;
  padding: 150px 24px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at center, rgba(164,122,66,.065), transparent 32rem),
    linear-gradient(180deg, rgba(255,255,255,.008), transparent);
  text-align: center;
}

.statement-inner {
  max-width: 860px;
  margin: 0 auto;
}

.statement-mark {
  display: block;
  margin-bottom: 40px;
  color: var(--bronze-dark);
  font-size: 1.1rem;
}

.statement p:last-child {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.final-cta {
  width: 100%;
  max-width: none;
  min-height: 650px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.final-inner {
  position: relative;
  z-index: 2;
}

.final-inner p:not(.eyebrow) {
  margin: 22px 0 32px;
  color: var(--muted);
}

.final-inner small {
  display: block;
  margin-top: 18px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  min-height: 110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.site-footer > p {
  justify-self: end;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 7px 0;
  background: var(--text);
}

.mobile-menu {
  position: fixed;
  inset: 78px 0 0;
  z-index: 45;
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 44px 24px;
  background: rgba(9, 9, 8, 0.98);
  backdrop-filter: blur(18px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu > a:not(.button) {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 1.7rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 260ms; }

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

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 64px;
    padding-top: 160px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(900px, 100%);
    margin: 0 auto;
  }

  .hero-frame {
    transform: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p {
    margin-left: 0;
  }

  .capability,
  .capability-reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
  }

  .capability-reverse .capability-copy,
  .capability-reverse .capability-visual {
    order: initial;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .footer-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .section,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand-word {
    font-size: 0.72rem;
  }

  .mobile-menu {
    inset: 68px 0 0;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .ghost-link {
    justify-content: center;
  }

  .hero-meta {
    display: none;
  }

  .window-frame img,
  .window-frame.missing-image .image-placeholder,
  .showcase-frame img,
  .showcase-frame.missing-image .image-placeholder,
  .capability .window-frame img,
  .capability .window-frame.missing-image .image-placeholder {
    min-height: 320px;
  }

  .floating-label,
  .showcase-label {
    display: none;
  }

  .manifesto {
    padding: 90px 0 110px;
  }

  .platform,
  .method,
  .capabilities {
    padding: 58px 0 88px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .cycle {
    grid-template-columns: 1fr 1fr;
  }

  .cycle-step {
    min-height: 240px;
    border-bottom: 1px solid var(--line-soft);
  }

  .cycle-step:nth-child(2) {
    border-right: 0;
  }

  .capability {
    padding: 70px 0;
  }

  .statement {
    padding: 110px 20px;
  }

  .final-cta {
    min-height: 540px;
  }

  .site-footer {
    min-height: 120px;
    grid-template-columns: 1fr;
  }

  .site-footer > p {
    justify-self: start;
    margin: 0;
  }
}
