/* ─── TOKENS ─────────────────────────────── */
:root {
  --ink: #0b0f14;
  --ink2: #131922;
  --paper: #10151d;
  --paper2: #161c25;
  --surface: #171d26;
  --surface2: #1b2230;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --text: #e8edf2;
  --muted: #a0acb9;
  --muted2: #8d98a4;
  --accent: #b79662;
  --accent2: #94764d;
  --accentSoft: rgba(183, 150, 98, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --max: 1180px;
  --r: 20px;
}

/* ─── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(183, 150, 98, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(183, 150, 98, 0.05), transparent 30%),
    linear-gradient(180deg, #0f1319 0%, #111720 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

main, header, footer { position: relative; z-index: 1; }

/* ─── LOADING SCREEN ──────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0a0d12 0%, #10151c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.loader.fade-out {
  animation: loaderOut 0.75s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}
@keyframes loaderOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.03); }
}
.loader-logo-wrap { position: relative; }
.loader-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 150, 98, 0.18) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: lglowPulse 2.4s ease 0.7s infinite alternate;
  pointer-events: none;
}
@keyframes lglowPulse {
  from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.86); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.16); }
}
.loader-svg {
  display: block;
  position: relative;
  opacity: 0;
  transform: scale(0.55) translateY(12px);
  animation: llogoIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
@keyframes llogoIn { to { opacity: 1; transform: scale(1) translateY(0); } }
.lbar {
  transform-box: fill-box;
  transform-origin: bottom center;
  transform: scaleY(0);
  animation: lbarGrow 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lbar:nth-child(1) { animation-delay: 0.32s; }
.lbar:nth-child(2) { animation-delay: 0.47s; }
.lbar:nth-child(3) { animation-delay: 0.62s; }
@keyframes lbarGrow { to { transform: scaleY(1); } }
.larrow {
  opacity: 0;
  animation: larrowPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) 0.86s forwards;
}
@keyframes larrowPop {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: ltextIn 0.4s ease 0.9s forwards;
}
@keyframes ltextIn { to { opacity: 1; } }
.loader-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d6dde5;
  opacity: 0;
  animation: lfadeUp 0.45s ease 1.05s forwards;
}
@keyframes lfadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-name {
  font-family: 'IBM Plex Sans', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 64px;
}
.loader-line { display: block; line-height: 1; }
.loader-line.main { font-size: clamp(20px, 4vw, 36px); font-weight: 700; color: #ffffff; letter-spacing: -0.02em; }
.loader-line.sub { font-size: clamp(18px, 3.6vw, 28px); font-weight: 500; color: rgba(232, 237, 242, 0.68); }
.loader-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 5px;
  border-radius: 2px;
  animation: lcursorBlink 0.85s step-end infinite;
  flex-shrink: 0;
}
.loader-cursor.done { animation: lcursorFade 0.35s ease 0.4s forwards; }
@keyframes lcursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes lcursorFade { to { opacity: 0; } }
.loader-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(232, 237, 242, 0.52);
  opacity: 0;
}
.loader-progress {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  animation: ltextIn 0.3s ease 1.15s forwards;
}
.loader-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0%;
  transition: width 0.04s linear;
}

/* ─── NAV ────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  background: rgba(12, 16, 22, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.nav.nav-visible { transform: translateY(0); opacity: 1; }
.nav-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand svg { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line { display: block; text-transform: uppercase; }
.brand-line:first-child { letter-spacing: 0.18em; font-size: 11px; color: var(--text); font-weight: 700; }
.brand-line:last-child { letter-spacing: 0.05em; font-size: 11px; color: var(--muted); font-weight: 600; }
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #f4f7f2;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.nav-cta:hover { box-shadow: var(--shadow); transform: translateY(-1px); background: #1a2230; }

/* ─── LAYOUT ─────────────────────────────── */
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
section { padding: 100px 0; }
.section-tucked { padding-top: 0; }

/* ─── HERO ───────────────────────────────── */
.hero {
  padding: 120px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 24px auto auto 50%;
  width: min(86vw, 920px);
  height: min(86vw, 920px);
  background: radial-gradient(circle, rgba(183, 150, 98, 0.1) 0%, transparent 64%);
  transform: translateX(-20%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -180px;
  top: 40px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner { max-width: 820px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(183, 150, 98, 0.25); }
  50% { opacity: 0.85; box-shadow: 0 0 0 7px rgba(183, 150, 98, 0); }
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 7.8vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin-bottom: 22px;
  max-width: 10.8ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 34px;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary, .btn-ghost, .btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-primary {
  background: #e5e9ee;
  color: #11161e;
  padding: 14px 24px;
}
.btn-primary:hover { background: #ffffff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 24px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
  max-width: 780px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stat {
  padding: 0;
}
.stat strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── SECTION HEADERS ─────────────────────── */
.sh { margin-bottom: 0; }
.sh-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sh h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.sh h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.sh p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 620px;
  line-height: 1.7;
}

/* ─── ABOUT ──────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 380px);
  gap: 68px;
  align-items: start;
}
.about-text .sh-eyebrow { margin-bottom: 14px; }
.about-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 22px;
}
.about-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.78;
}
.about-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-rail {
  display: grid;
  gap: 18px;
  padding-top: 4px;
}
.about-rail-line {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}
.about-rail-line:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.about-rail-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.about-rail-line span:last-child {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

/* ─── PRINCIPLES ─────────────────────────── */
.principles-flow {
  display: grid;
  gap: 0;
  margin-top: 48px;
}
.principle-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.principle-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.principle-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.principle-row h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.principle-row p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.78;
}

.join-simple {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 360px);
  gap: 40px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.join-copy {
  display: grid;
  gap: 18px;
}
.join-copy p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.78;
}
.join-list {
  display: grid;
  gap: 22px;
}
.join-list > div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.join-kicker {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.join-list p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.btn-apply {
  background: var(--accent);
  color: #0f1418;
  padding: 15px 28px;
  align-self: flex-start;
  box-shadow: 0 16px 34px rgba(35, 79, 61, 0.18);
}
.btn-apply:hover { box-shadow: 0 20px 40px rgba(143, 167, 146, 0.18); transform: translateY(-2px); }

/* ─── PARTNERSHIPS ───────────────────────── */

/* Logo grid */
.partners-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 56px;
}
.partner-logo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  color: var(--text);
  cursor: pointer;
}
.partner-logo-card:hover {
  border-color: rgba(183, 150, 98, 0.35);
  background: rgba(183, 150, 98, 0.06);
  transform: translateY(-3px);
}
.plc-img {
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.88;
  display: block;
  transition: opacity 0.2s;
}
.plc-img.plc-invert {
  filter: brightness(0) invert(1);
}
.partner-logo-card:hover .plc-img { opacity: 1; }
.plc-fallback {
  display: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 10px;
}
.plc-note {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: auto;
}

/* List below the grid */
.partners-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.partner-line {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: baseline;
}
.partner-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
}
.partner-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 600px) {
  .partners-logo-grid { grid-template-columns: 1fr 1fr; }
  .partner-line { grid-template-columns: 1fr; gap: 6px; }
}

/* ─── CONTACT ────────────────────────────── */
.contact-simple {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 40px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-simple h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.contact-simple p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.72;
  max-width: 460px;
}
.contact-stack {
  display: grid;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-socials-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-socials-inline .social-link {
  font-size: 13px;
}
.social-link {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.social-link:hover { color: var(--text); }

/* ─── FOOTER ─────────────────────────────── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 52px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.7;
}
.footer-email { margin-top: 14px; }
.footer-follow { margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.footer-links a:hover { color: var(--text); }
.footer-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.06em;
}
.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.count-up { display: inline; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .about-grid, .join-simple, .contact-simple { grid-template-columns: 1fr; }
  .partner-line { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 88px 0 78px; }
  .hero h1 { max-width: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .principle-row { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; }
  .join-simple, .contact-simple { gap: 24px; }
  .partner-name { font-size: 24px; }
  section { padding: 64px 0; }
  .nav-inner { height: 66px; }
  .nav-cta { padding: 9px 14px; }
}