/* ============== FONTS ============== */
@font-face {
  font-family: "PP Migra";
  src: url("assets/fonts/PPMigra-Regular.woff2") format("woff2"),
       url("assets/fonts/PPMigra-Regular.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Migra";
  src: url("assets/fonts/PPMigra-Italic.woff2") format("woff2"),
       url("assets/fonts/PPMigra-Italic.woff")  format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Migra";
  src: url("assets/fonts/PPMigra-Bold.woff2") format("woff2"),
       url("assets/fonts/PPMigra-Bold.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Migra";
  src: url("assets/fonts/PPMigra-BoldItalic.woff2") format("woff2"),
       url("assets/fonts/PPMigra-BoldItalic.woff")  format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Neco";
  src: url("assets/fonts/Neco-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neco";
  src: url("assets/fonts/Neco-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neco";
  src: url("assets/fonts/Neco-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neco";
  src: url("assets/fonts/Neco-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neco";
  src: url("assets/fonts/Neco-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neco";
  src: url("assets/fonts/Neco-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ============== TOKENS ============== */
:root {
  --bg: #000000;
  --ink: #f0ebe3;
  --ink-2: #d8d2c5;
  --muted: rgba(240, 235, 227, 0.45);
  --rule: rgba(240, 235, 227, 0.14);
  --accent: #1a2cd6;
  --accent-soft: rgba(26, 44, 214, 0.18);
  --serif: "PP Migra", "Times New Roman", Times, serif;
  --sans: "Epilogue", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sans-body: "Neco", "Epilogue", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}
body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--ink); }

.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

/* ============== NAV ============== */
.nav {
  padding: 26px 0 0;
  position: relative;
  z-index: 10;
  animation: navFadeIn 0.9s cubic-bezier(.2,.7,.2,1) both;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.1s forwards;
}
.nav__links {
  display: flex;
  gap: 22px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links a {
  position: relative;
  display: inline-block;
  transition: color 0.35s ease, transform 0.35s cubic-bezier(.2,.7,.2,1);
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(.2,.7,.2,1) forwards;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover { color: var(--ink); transform: translateY(-1px); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a:nth-child(1) { animation-delay: 0.18s; }
.nav__links a:nth-child(2) { animation-delay: 0.26s; }
.nav__links a:nth-child(3) { animation-delay: 0.34s; }
.nav__links a:nth-child(4) { animation-delay: 0.42s; }
.nav__links a:nth-child(5) { animation-delay: 0.50s; }

@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) { .nav__links { display: none; } }

/* ============== HERO ============== */
.hero {
  padding: clamp(24px, 4vw, 40px) 0 clamp(32px, 5vw, 56px);
  position: relative;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(16px, 2.5vw, 32px);
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.4s forwards;
}
.hero__eyebrow .sep { color: var(--rule); margin: 0 .35em; }

.hero__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1718 / 982;
  margin: 0 auto;
  opacity: 0;
  animation: artEnter 1.6s cubic-bezier(.2,.7,.2,1) 0.6s forwards;
}
.hero__art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
  animation: artRotate 90s linear infinite;
}
@keyframes artEnter {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes artRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Color the inlined SVG paths via CSS */
.hero__art svg path[fill="#314caf"]   { fill: var(--accent); }
.hero__art svg path[stroke="#314caf"] { stroke: var(--accent); }
.quote__art svg path[fill="#314caf"]   { fill: var(--ink); }
.quote__art svg path[stroke="#314caf"] { stroke: var(--ink); }

.hero__cta {
  display: flex;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 32px);
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(.2,.7,.2,1) 1.1s forwards;
}
.btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .35s cubic-bezier(.2,.7,.2,1),
              color .35s cubic-bezier(.2,.7,.2,1),
              border-color .35s cubic-bezier(.2,.7,.2,1),
              transform .35s cubic-bezier(.2,.7,.2,1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ============== DIVIDER ============== */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ============== HEADLINE BLOCK ============== */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--headline { padding: clamp(72px, 9vw, 128px) 0; }

.headline {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.headline__main {
  display: block;
  font-size: clamp(40px, 6.5vw, 96px);
  color: var(--ink);
}
.headline__sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(36px, 6vw, 88px);
  color: var(--accent);
  font-style: italic;
}
.headline__sub em { font-style: italic; }

/* ============== TWO-COL TEXT ============== */
.tcol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
@media (max-width: 800px) {
  .tcol { grid-template-columns: 1fr; gap: 32px; }
}

.tcol--contact { align-items: center; }

.disp-md {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}
.disp-md em {
  font-style: italic;
  color: var(--accent);
}

.body {
  font-family: var(--sans-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 46ch;
}
.body p + p { margin-top: 1em; }

/* ============== QUOTE ============== */
.quote {
  position: relative;
  padding: clamp(80px, 12vw, 180px) 0;
  overflow: hidden;
  isolation: isolate;
}
.quote__art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
}
.quote__art svg {
  width: min(110%, 1400px);
  height: auto;
  transform-origin: center center;
  animation: artRotateReverse 140s linear infinite;
}
@keyframes artRotateReverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.quote__inner {
  text-align: center;
  position: relative;
}
.quote__main {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.quote__main span { display: block; }
.quote__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
  color: var(--accent);
}
.quote__sub em { font-style: italic; }
.quote__foot {
  margin: clamp(32px, 4vw, 48px) auto 0;
  font-family: var(--sans-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38ch;
}

/* ============== CONTACT ============== */
.contact__email {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 44px);
  letter-spacing: -0.005em;
  color: var(--accent);
  line-height: 1.2;
}
.contact__email a { color: inherit; transition: opacity .25s ease; }
.contact__email a:hover { opacity: 0.75; }

/* ============== FOOT ============== */
.foot {
  padding: 28px 0 36px;
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot__brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.foot__right {
  font-family: var(--sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============== SCROLL REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1),
              transform 0.9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
