/* =====================================================
   Icon BJJ — Founder Page
   style.css — Zé Marcello
   Managed by Dettogni
===================================================== */

/* =====================================================
   DESIGN TOKENS — shared across Icon BJJ site
===================================================== */
:root {
  --canvas:       #F5F2EE;
  --canvas-deep:  #EDE9E3;
  --canvas-warm:  #E8E3DB;
  --ink:          #1A2B3C;
  --ink-mid:      #3D4F60;
  --ink-light:    #7A8A96;
  --accent:       #C4571A;
  --accent-hover: #A84514;
  --accent-pale:  #F5E9E2;
  --white:        #FEFCFA;

  --ff-display: 'Syne', sans-serif;
  --ff-body:    'DM Sans', sans-serif;

  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 100px;

  --shadow-card: 0 2px 20px rgba(26, 43, 60, 0.08);
  --shadow-lift: 0 12px 40px rgba(26, 43, 60, 0.12);

  --max-w:    1240px;
  --side-pad: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; touch-action: manipulation; }
ul   { list-style: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

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

/* =====================================================
   TYPOGRAPHY
===================================================== */
.t-display {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.t-display em { font-style: italic; color: var(--accent); }
.t-heading {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.t-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-label-white {
  color: rgba(255, 255, 255, 0.5);
}
.section-label-white::before {
  background: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: all 0.22s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 87, 26, 0.32);
}
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.45); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-arrow::after {
  content: '→';
  font-family: var(--ff-body);
  transition: transform 0.2s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* =====================================================
   NAVIGATION
===================================================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
  padding: 0.5rem 0;
}
#nav.scrolled {
  background: rgba(245, 242, 238, 0.88);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--canvas-warm);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo .diamond {
  width: 11px; height: 11px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.nav-logo .global-tag {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--canvas-warm);
}
.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-mid);
  transition: color 0.2s ease;
}
.nav-back:hover { color: var(--accent); }
.nav-back::before { content: '←'; transition: transform 0.2s ease; }
.nav-back:hover::before { transform: translateX(-3px); }

.nav-cta {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span {
  width: 22px; height: 1.8px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 99;
  padding: 5.5rem var(--side-pad) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}
#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#mobile-menu nav { display: flex; flex-direction: column; gap: 0.3rem; }
#mobile-menu nav a {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
  padding: 1rem 0;
  border-bottom: 1px solid var(--canvas-warm);
  letter-spacing: -0.01em;
  min-height: 56px;
  display: flex;
  align-items: center;
}
#mobile-menu nav a:last-child { color: var(--accent); border-bottom: none; }
.mob-foot {
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  line-height: 1.8;
  padding-top: 2rem;
}

/* =====================================================
   HERO — editorial split, portrait left / intro right
===================================================== */
#hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  padding-top: 5rem;
  background: var(--canvas);
}

.hero-portrait-panel {
  position: relative;
  overflow: hidden;
  background: var(--canvas-deep);
  min-height: 560px;
}
.hero-portrait-placeholder {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  background:
    linear-gradient(180deg, transparent 50%, rgba(26,43,60,0.55) 100%),
    repeating-linear-gradient(
      45deg,
      var(--canvas-deep) 0px, var(--canvas-deep) 2px,
      var(--canvas-warm) 2px, var(--canvas-warm) 14px
    );
}
.hero-portrait-note {
  background: rgba(26,43,60,0.75);
  color: rgba(255,255,255,0.75);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Year badge — floating over portrait */
.hero-year-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  z-index: 3;
}
.hero-year-badge .yb-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}
.hero-year-badge .yb-label {
  font-size: 0.65rem;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.2rem;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 5rem) var(--side-pad);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 0.35rem;
  line-height: 0.98;
}
.hero-h1 span {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.hero-rank {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-mid);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.hero-intro {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--canvas-warm);
}
.hs-item {
  padding-right: 1.25rem;
  border-right: 1px solid var(--canvas-warm);
}
.hs-item:last-child { border-right: none; }
.hs-item:not(:first-child) { padding-left: 1.25rem; }
.hs-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hs-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  line-height: 1.35;
}

/* =====================================================
   QUICK FACTS STRIP
===================================================== */
#quick-facts {
  background: var(--ink);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
}
.facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.fact-item {
  padding: 1rem clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.fact-item:last-child { border-right: none; }
.fact-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.4rem;
}
.fact-value {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.fact-value em {
  font-style: normal;
  color: var(--accent);
}

/* =====================================================
   BIOGRAPHY
===================================================== */
#biography {
  background: var(--canvas);
}
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.bio-sidebar {
  position: sticky;
  top: 5rem;
}
.bio-sidebar h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}
/* Timeline list in sidebar */
.bio-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--canvas-warm);
}
.bt-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--canvas-warm);
  align-items: baseline;
}
.bt-item:last-child { border-bottom: none; }
.bt-year {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.bt-event {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.45;
}
.bt-event strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.bio-text {}
.bio-text p {
  font-size: 1.05rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.bio-text p:last-child { margin-bottom: 0; }
.bio-text p strong {
  color: var(--ink);
  font-weight: 600;
}
.bio-chapter {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--canvas-warm);
}
.bio-chapter:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* =====================================================
   LINEAGE
===================================================== */
#lineage {
  background: var(--canvas-deep);
}
.lineage-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 3.5rem;
}
.lineage-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.lineage-header p {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.7;
}

/* Full lineage — 5 nodes */
.lineage-chain-full {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.lineage-chain-full::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--canvas-warm);
  z-index: 0;
}

.lin-node {
  position: relative;
  z-index: 1;
  padding: 0 0.75rem;
  text-align: center;
}
.lin-dot {
  width: 14px; height: 14px;
  background: var(--canvas);
  border: 2px solid var(--canvas-warm);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  position: relative;
  transition: border-color 0.25s ease;
}
.lin-node:hover .lin-dot { border-color: var(--accent); }
.lin-node.active .lin-dot {
  background: var(--accent);
  border-color: var(--accent);
  width: 18px; height: 18px;
  margin-top: -2px;
}

.lin-step {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}
.lin-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.lin-node.active .lin-name { color: var(--accent); }
.lin-detail {
  font-size: 0.78rem;
  color: var(--ink-mid);
  line-height: 1.45;
}

/* =====================================================
   COMPETITION RECORD
===================================================== */
#record {
  background: var(--canvas);
}
.record-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 3rem;
}
.record-intro h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.record-intro p { color: var(--ink-mid); font-size: 1rem; line-height: 1.7; }

.record-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-mid);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 1px var(--canvas-warm);
  min-height: 44px;
}
.tab-btn:hover { background: var(--canvas-deep); }
.tab-btn.active {
  background: var(--ink);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.record-panel { display: none; }
.record-panel.active { display: block; }

.record-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
}
.record-table th {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 0 1rem 0.75rem;
  text-align: left;
}
.record-table tr.result-row td:first-child { border-radius: 10px 0 0 10px; }
.record-table tr.result-row td:last-child  { border-radius: 0 10px 10px 0; }
.record-table tr.result-row td {
  background: var(--canvas-deep);
  padding: 0.9rem 1rem;
  vertical-align: middle;
}
.result-medal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.medal-gold   { color: #B8860B; }
.medal-silver { color: #7A8A96; }
.medal-bronze { color: #8B5E3C; }
.result-event {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.result-year {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-light);
}
.result-division {
  font-size: 0.82rem;
  color: var(--ink-mid);
}
.result-belt {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  background: rgba(26,43,60,0.07);
  color: var(--ink-mid);
  white-space: nowrap;
}
.result-belt.black { background: rgba(26,43,60,0.12); color: var(--ink); }
.result-belt.masters { background: var(--accent-pale); color: var(--accent); }

/* =====================================================
   ICON BJJ — THE FOUNDING
===================================================== */
#founding {
  background: var(--ink);
  color: var(--white);
}
.founding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.founding-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.founding-text h2 em { color: var(--accent); font-style: italic; }
.founding-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.founding-text p:last-of-type { margin-bottom: 2rem; }

.founding-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.fs-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  transition: background 0.25s ease;
}
.fs-card:hover { background: rgba(255,255,255,0.08); }
.fs-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.fs-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.35;
}

/* =====================================================
   QUOTE BLOCK
===================================================== */
#quote-block {
  background: var(--canvas-deep);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.quote-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-family: var(--ff-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  font-weight: 800;
}
.quote-text {
  font-family: var(--ff-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.quote-attribution {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* =====================================================
   CTA
===================================================== */
#cta {
  background: var(--canvas);
  padding: 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cta-block {
  padding: clamp(3.5rem, 6vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  transition: background 0.35s ease;
  border-top: 1px solid var(--canvas-warm);
  cursor: pointer;
}
.cta-block:first-child { border-right: 1px solid var(--canvas-warm); }
.cta-block:hover { background: var(--canvas-deep); }
.cta-block .t-label { color: var(--accent); margin-bottom: 0.75rem; display: block; }
.cta-block h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.cta-block h3 em { font-style: italic; color: var(--accent); }
.cta-block p {
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 380px;
}
.cta-block .btn { align-self: flex-start; }

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
}
.footer-logo .diamond {
  width: 10px; height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
}
.footer-logo .global-tag {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--ff-display);
  font-weight: 600;
}

/* =====================================================
   FOOTER KEEP
===================================================== */
.footer-keep {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem var(--side-pad);
  text-align: center;
  font-family: var(--ff-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
}
.footer-keep a {
  color: rgba(255, 255, 255, 0.46);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-keep a:hover { color: var(--white); }

/* =====================================================
   RESPONSIVE — 1024px
===================================================== */
@media (max-width: 1024px) {
  .lineage-chain-full { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .lineage-chain-full::before { display: none; }
  .lineage-chain-full .lin-node:nth-child(4),
  .lineage-chain-full .lin-node:nth-child(5) { grid-column: span 1; }
  .record-intro { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* =====================================================
   RESPONSIVE — 768px
===================================================== */
@media (max-width: 768px) {
  .nav-back span { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  #hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4.5rem; }
  .hero-portrait-panel { min-height: 320px; }
  .hero-portrait-placeholder { min-height: 320px; }
  .hero-year-badge { bottom: 1.5rem; left: 1.5rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .hs-item { border-right: none; border-bottom: 1px solid var(--canvas-warm); padding: 0 0 1rem; }
  .hs-item:last-child { border-bottom: none; }
  .hs-item:not(:first-child) { padding-left: 0; padding-top: 1rem; }

  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .fact-item:nth-child(2n) { border-right: none; }
  .fact-item:nth-child(3),
  .fact-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); }

  .bio-grid { grid-template-columns: 1fr; }
  .bio-sidebar { position: static; }
  .lineage-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .lineage-chain-full { grid-template-columns: 1fr; gap: 0; }
  .lin-node { text-align: left; padding: 1.25rem 0; border-bottom: 1px solid var(--canvas-warm); display: flex; align-items: center; gap: 1rem; }
  .lin-node:last-child { border-bottom: none; }
  .lin-dot { margin: 0; flex-shrink: 0; }
  .lineage-chain-full::before { display: none; }

  .founding-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-block:first-child { border-right: none; border-bottom: 1px solid var(--canvas-warm); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .record-table { min-width: 540px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* =====================================================
   RESPONSIVE — 480px
===================================================== */
@media (max-width: 480px) {
  .facts-row { grid-template-columns: 1fr; }
  .fact-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .fact-item:last-child { border-bottom: none; }
  .founding-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
