/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  --white:       #FFFFFF;
  --off-white:   #F2F2F2;
  --gray-light:  #E0E0E0;
  --gray:        #A8A8A8;
  --gray-dark:   #666666;
  --black:       #111111;
  --accent:      #CC2200;

  --font-sans:   'Jost', sans-serif;
  --font-mono:   'IBM Plex Mono', monospace;

  --header-h:    56px;
  --transition:  0.15s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

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

/* ==========================================================================
   LAYOUT: HEADER & NAVIGATION
   ========================================================================== */

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-right: 1px solid var(--black);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

nav {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: stretch;
  list-style: none;
  padding-left: 8px;
}

.nav-links li {
  display: flex;
  align-items: stretch;
}

.nav-links a {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dark);
  text-decoration: none;
  padding: 0 22px;
  border-right: 1px solid var(--gray-light);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--black);
  background: var(--off-white);
}

.lang-toggle {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--black);
  margin-left: auto;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  width: 48px;
  background: none;
  border: none;
  border-right: 1px solid var(--black);
  cursor: pointer;
  color: var(--gray-dark);
  transition: all var(--transition);
}

.lang-btn:last-child {
  border-right: none;
}

.lang-btn.active {
  background: var(--black);
  color: var(--white);
}

.lang-btn:not(.active):hover {
  background: var(--off-white);
  color: var(--black);
}

/* ==========================================================================
   LAYOUT: HERO
   ========================================================================== */

main {
  padding-top: var(--header-h);
}

#hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--black);
  color: var(--white);
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--white);
  font-size: clamp(40px, 7vw, 112px);
  white-space: nowrap;
  overflow: visible;
  max-width: none;
}

h1 .name-sub {
  font-weight: 100;
  display: block;
  color: var(--gray);
  font-size: 0.65em;
  letter-spacing: 0.06em;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 56px;
}

.hero-role {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

/* Hero stats bar */

.hero-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  padding: 24px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-num {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ==========================================================================
   SHARED: SECTIONS
   ========================================================================== */

.sec {
  border-top: 1px solid var(--black);
}

.sec-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 56px;
}

.sec-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 56px;
  margin-bottom: 64px;
  align-items: start;
}

.sec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  padding-top: 10px;
  border-top: 1px solid var(--gray-light);
}

h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--black);
}

/* ==========================================================================
   SHARED: BUTTONS
   ========================================================================== */

.btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 28px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}

.btn-primary:hover {
  background: var(--off-white);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.55);
  margin-left: -1px;
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ==========================================================================
   SECTION: PILLARS
   ========================================================================== */

#pillars .sec-inner {
  padding-bottom: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--black);
}

article.pillar {
  border-right: 1px solid var(--black);
  padding: 48px 44px 56px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}

article.pillar:last-child {
  border-right: none;
}

article.pillar:hover {
  background: var(--off-white);
}

.pillar-bg-num {
  position: absolute;
  top: -24px;
  right: -8px;
  font-family: var(--font-sans);
  font-size: 200px;
  font-weight: 900;
  color: var(--gray-light);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

.pillar-content {
  position: relative;
  z-index: 1;
}

.pillar-metric {
  margin-bottom: 32px;
}

.pillar-num {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1;
  display: block;
}

.pillar-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dark);
  display: block;
  margin-top: 6px;
}

.pillar h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--black);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-light);
}

.pillar p {
  font-size: 15px;
  font-weight: 400;
  color: var(--gray-dark);
  line-height: 1.75;
  margin-bottom: 24px;
}

.pillar-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ptag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ptag::before {
  content: '';
  display: block;
  width: 12px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION: TIMELINE
   ========================================================================== */

#timeline {
  background: var(--white);
}

.tl-grid {
  display: grid;
  grid-template-columns: 96px 1fr;
}

.tl-row {
  display: contents;
}

.tl-year-cell {
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--gray-light);
  padding: 22px 20px 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.tl-content-cell {
  border-bottom: 1px solid var(--gray-light);
  padding: 22px 0 22px 32px;
}

.tl-row:last-child .tl-year-cell,
.tl-row:last-child .tl-content-cell {
  border-bottom: none;
}

.tl-row.key .tl-year {
  color: var(--black);
  font-weight: 500;
}

.tl-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--black);
  color: var(--black);
  margin-bottom: 8px;
}

.tl-row.key .tl-tag {
  background: var(--black);
  color: var(--white);
}

.tl-content-cell h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tl-content-cell p {
  font-size: 15px;
  font-weight: 400;
  color: var(--gray-dark);
  line-height: 1.75;
}

/* ==========================================================================
   SECTION: ROOTS
   ========================================================================== */

#roots {
  background: var(--black);
  color: var(--white);
}

#roots .sec-label {
  color: var(--gray);
  border-top-color: rgba(255, 255, 255, 0.1);
}

#roots h2 {
  color: var(--white);
}

.roots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2px;
}

article.root-card {
  padding: 40px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

article.root-card:last-child {
  border-right: none;
}

article.root-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.root-era {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--gray-dark);
  margin-bottom: 20px;
  display: block;
}

.root-card h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.root-card p {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.roots-statement {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--accent);
  padding: 44px 48px;
}

.roots-statement p {
  font-family: var(--font-sans);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 800px;
}

.roots-statement strong {
  font-style: normal;
  font-weight: 700;
  color: var(--white);
}

/* ==========================================================================
   SECTION: CONTACT
   ========================================================================== */

#contact {
  background: var(--white);
}

.clinks {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--black);
}

a.clink {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  align-items: center;
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  transition: background var(--transition);
}

a.clink:last-child {
  border-bottom: none;
}

a.clink:hover {
  background: var(--off-white);
}

.clink-type {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 22px 0 22px 24px;
  border-right: 1px solid var(--black);
}

.clink-val {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 22px 24px;
}

.clink-arr {
  font-size: 18px;
  color: var(--gray);
  text-align: center;
  transition: transform var(--transition), color var(--transition);
}

a.clink:hover .clink-arr {
  transform: translateX(4px);
  color: var(--black);
}

/* ==========================================================================
   LAYOUT: FOOTER
   ========================================================================== */

footer {
  border-top: 1px solid var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-cell {
  padding: 18px 56px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gray);
  display: flex;
  align-items: center;
}

.footer-cell + .footer-cell {
  border-left: 1px solid var(--black);
  justify-content: flex-end;
}

footer a {
  color: var(--gray);
  text-decoration: none;
}

footer a:hover {
  color: var(--black);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-left > *,
.hero-right > * {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.hero-left .hero-eyebrow  { animation-delay: 0.05s; }
.hero-left h1             { animation-delay: 0.15s; }
.hero-right .hero-role    { animation-delay: 0.25s; }
.hero-right .hero-actions { animation-delay: 0.38s; }

/* ==========================================================================
   RESPONSIVE: ≤ 900px (Tablet)
   ========================================================================== */

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

  .hero-main { grid-template-columns: 1fr; }

  h1 {
    font-size: min(12vw, 64px);
    white-space: nowrap;
  }

  .hero-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 56px 28px 44px;
  }

  .hero-right { padding: 44px 28px 56px; }

  .hero-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(1),
  .hero-stat:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

  .sec-inner { padding: 56px 28px; }
  .sec-head  { grid-template-columns: 1fr; gap: 20px; }
  .sec-label { border-top: none; padding-top: 0; }

  .pillars-grid { grid-template-columns: 1fr; }
  article.pillar { border-right: none; border-bottom: 1px solid var(--black); }
  article.pillar:last-child { border-bottom: none; }

  .tl-grid { grid-template-columns: 72px 1fr; }

  .roots-grid { grid-template-columns: repeat(2, 1fr); }
  .roots-statement { padding: 32px 28px; }

  a.clink { grid-template-columns: 80px 1fr 36px; }
  .clink-type { padding: 18px 0 18px 16px; }

  footer { grid-template-columns: 1fr; }
  .footer-cell + .footer-cell { border-left: none; border-top: 1px solid var(--black); justify-content: flex-start; }
  .footer-cell { padding: 14px 28px; }
}

/* ==========================================================================
   RESPONSIVE: ≤ 560px (Mobile)
   ========================================================================== */

@media (max-width: 560px) {
  .roots-grid { grid-template-columns: 1fr; }
  article.root-card { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  article.root-card:last-child { border-bottom: none; }
  .hero-bar { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-left > *,
  .hero-right > * {
    animation: none;
    opacity: 1;
  }
}
