/* =====================================================
   Icon BJJ — Global Homepage
   style.css — all styles for index.html
   Managed by Dettogni
===================================================== */

/* =====================================================
   DESIGN TOKENS — shared with Icon BJJ Milton Keynes
===================================================== */
: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:    1280px;
  --side-pad: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  /* Offset anchor links so fixed nav doesn't overlap headings (mobile + desktop) */
  scroll-padding-top: 80px;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Remove tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

/* Subtle canvas texture */
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: 0;
  opacity: 0.6;
}

* { position: relative; z-index: 1; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  /* Remove tap delay on mobile */
  touch-action: manipulation;
}

a {
  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);
  font-weight: 800;
}
.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(4.5rem, 9vw, 8rem) 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;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  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;
  cursor: pointer;
  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-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(26, 43, 60, 0.18);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-arrow::after {
  content: '→';
  font-family: var(--ff-body);
  transition: transform 0.2s ease;
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Final-block buttons align left within their flex column */
.final-block .btn {
  align-self: flex-start;
}

/* Dark-section button variants */
.btn-on-dark-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-on-dark-primary:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-on-dark-outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}
.btn-on-dark-outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--white);
  transform: translateY(-2px);
}

/* =====================================================
   NAVIGATION
===================================================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, backdrop-filter 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-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-mid);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
}

.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;
}
.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;
  /* Larger tap target on mobile */
}
.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 full-screen menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 99;
  padding: 5.5rem var(--side-pad) 2rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-menu.open {
  display: flex;
  opacity: 1;
}
#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;
  /* Adequate tap target height */
  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 — warm split layout
===================================================== */
#hero {
  min-height: 95vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  padding-top: 5rem;
  background: var(--canvas);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--side-pad) clamp(3rem, 5vw, 4rem);
  max-width: 720px;
  margin-left: auto;
  width: 100%;
  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.75rem;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--ink-mid);
  font-weight: 300;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--canvas-warm);
}
.hero-proof-item {
  padding-right: 1.5rem;
  border-right: 1px solid var(--canvas-warm);
}
.hero-proof-item:last-child { border-right: none; }
.hero-proof-item:not(:first-child) { padding-left: 1.5rem; }

.hpi-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
}
.hpi-value {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.hero-image-panel {
  position: relative;
  overflow: hidden;
  background: var(--canvas-deep);
  min-height: 480px;
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem;
  background:
    linear-gradient(180deg, transparent 40%, rgba(26, 43, 60, 0.45) 100%),
    repeating-linear-gradient(
      45deg,
      var(--canvas-deep) 0px, var(--canvas-deep) 2px,
      var(--canvas-warm) 2px, var(--canvas-warm) 14px
    );
}
.hero-img-note {
  background: rgba(26, 43, 60, 0.75);
  color: rgba(255, 255, 255, 0.78);
  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;
}

.hero-crest {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem 0.55rem 0.7rem;
  background: rgba(245, 242, 238, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  z-index: 3;
}
.hero-crest .diamond {
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}
.hero-crest span {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* =====================================================
   BRAND STATEMENT
===================================================== */
#statement {
  background: var(--canvas);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.statement-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.statement-side h2 {
  font-size: clamp(1.4rem, 1.9vw, 1.75rem);
  margin-bottom: 1rem;
}
.statement-side p {
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}
.statement-text p {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}
.statement-text p:last-child { margin-bottom: 0; }
.statement-text em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}

/* =====================================================
   FOUNDER
===================================================== */
#founder {
  background: var(--canvas-deep);
}
.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.founder-portrait-wrap {
  position: relative;
}
.founder-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--canvas-warm) 0%, var(--canvas-deep) 100%),
    repeating-linear-gradient(
      135deg,
      transparent 0px, transparent 10px,
      rgba(26, 43, 60, 0.04) 10px, rgba(26, 43, 60, 0.04) 11px
    );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}
.founder-portrait-note {
  background: rgba(26, 43, 60, 0.75);
  color: rgba(255, 255, 255, 0.78);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.founder-stamp {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 800;
  box-shadow: var(--shadow-lift);
}
.founder-stamp strong {
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.founder-stamp span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  font-weight: 600;
}

.founder-text h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 0.5rem;
}
.founder-role {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.founder-text p {
  color: var(--ink-mid);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.founder-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.75rem 0;
}
.fc-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: var(--canvas);
  border-radius: var(--radius-md);
}
.fc-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.fc-text {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* =====================================================
   LINEAGE
===================================================== */
#lineage {
  background: var(--canvas);
}
.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.6vw, 3rem); }
.lineage-header p {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.7;
}

.lineage-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  position: relative;
}

.lin-card {
  background: var(--canvas-deep);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.lin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.lin-card.highlight {
  background: var(--accent);
  color: var(--white);
}
.lin-arrow {
  position: absolute;
  top: 50%;
  right: -1.65rem;
  transform: translateY(-50%);
  width: 2rem;
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink-light);
  font-size: 1rem;
  pointer-events: none;
  z-index: 3;
}
.lin-card:last-child .lin-arrow { display: none; }

.lin-era {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.lin-card.highlight .lin-era { color: rgba(255, 255, 255, 0.7); }

.lin-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}
.lin-card.highlight .lin-name { color: var(--white); }

.lin-detail {
  font-size: 0.86rem;
  color: var(--ink-mid);
  line-height: 1.5;
}
.lin-card.highlight .lin-detail { color: rgba(255, 255, 255, 0.85); }

.lineage-quote {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  background: var(--canvas-deep);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
}
.lineage-quote p {
  font-family: var(--ff-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink);
  line-height: 1.5;
  max-width: 880px;
}

/* =====================================================
   ACADEMY NETWORK
===================================================== */
#network {
  background: var(--canvas-deep);
}
.network-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.network-header h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 14ch;
}
.network-header p {
  color: var(--ink-mid);
  margin-top: 1rem;
  max-width: 540px;
  font-size: 0.98rem;
}

.network-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--canvas-warm);
  align-items: center;
}
.filter-chip {
  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;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 1px var(--canvas-warm);
  /* Adequate tap height on mobile */
  min-height: 44px;
}
.filter-chip:hover { background: var(--canvas); }
.filter-chip.active {
  background: var(--ink);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.filter-meta {
  margin-left: auto;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.filter-meta strong { color: var(--accent); }

.academies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.academy-card {
  background: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.academy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.academy-card.featured {
  background: var(--ink);
  color: var(--white);
}

.ac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ac-country {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.academy-card.featured .ac-country { color: rgba(255, 255, 255, 0.6); }
.academy-card.featured .ac-country span { color: var(--accent); }

.ac-badge {
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ac-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.academy-card.featured .ac-name { color: var(--white); }

.ac-instructor {
  font-size: 0.88rem;
  color: var(--ink-mid);
}
.ac-instructor strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 0.15rem;
}
.academy-card.featured .ac-instructor { color: rgba(255, 255, 255, 0.7); }
.academy-card.featured .ac-instructor strong { color: var(--white); }

.ac-desc {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.6;
  flex: 1;
}
.academy-card.featured .ac-desc { color: rgba(255, 255, 255, 0.75); }

.ac-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--canvas-warm);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.academy-card.featured .ac-link {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}
.ac-link::after {
  content: '→';
  transition: transform 0.25s ease;
}
.academy-card:hover .ac-link { color: var(--accent); }
.academy-card:hover .ac-link::after { transform: translateX(4px); }

.network-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

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

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.instructor-card {
  background: var(--canvas-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.instructor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.inst-portrait {
  aspect-ratio: 1/1;
  background:
    linear-gradient(180deg, var(--canvas-warm) 0%, var(--canvas-deep) 100%),
    repeating-linear-gradient(
      135deg,
      transparent 0px, transparent 8px,
      rgba(26, 43, 60, 0.03) 8px, rgba(26, 43, 60, 0.03) 9px
    );
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.inst-portrait-note {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-transform: uppercase;
  text-align: center;
}
.inst-rank {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}
.inst-info {
  padding: 1.25rem 1.25rem 1.4rem;
}
.inst-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.inst-location {
  font-size: 0.8rem;
  color: var(--ink-mid);
}
.instructors-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* =====================================================
   EVENTS
===================================================== */
#events {
  background: var(--canvas-deep);
}
.events-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}
.events-header h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.events-header p {
  color: var(--ink-mid);
  max-width: 540px;
  margin-top: 1rem;
}

.events-list {
  display: flex;
  flex-direction: column;
}
.event-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto 24px;
  gap: 1.75rem;
  padding: 1.6rem 0;
  align-items: center;
  border-top: 1px solid var(--canvas-warm);
  cursor: pointer;
  transition: padding 0.3s ease, background 0.2s ease;
  border-radius: 0;
}
.event-row:last-child { border-bottom: 1px solid var(--canvas-warm); }
.event-row:hover { padding-left: 1rem; padding-right: 1rem; }

.ev-date {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.ev-date small {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 0.3rem;
}
.ev-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ev-type {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--ink-mid);
  white-space: nowrap;
}
.ev-location {
  font-size: 0.85rem;
  color: var(--ink-mid);
  text-align: right;
  min-width: 160px;
}
.ev-arrow {
  color: var(--ink-light);
  font-size: 1.2rem;
  transition: color 0.2s ease, transform 0.2s ease;
  text-align: center;
}
.event-row:hover .ev-arrow { color: var(--accent); transform: translateX(3px); }

.events-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-light);
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =====================================================
   AFFILIATION
===================================================== */
#affiliation {
  background: var(--ink);
  color: var(--white);
}
.affiliation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.aff-text .t-label {
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.aff-text h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.aff-text h2 em { color: var(--accent); font-style: italic; }
.aff-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 500px;
}
.aff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.aff-criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.crit-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  transition: background 0.25s ease;
}
.crit-card:hover { background: rgba(255, 255, 255, 0.08); }
.crit-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.crit-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.crit-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* =====================================================
   FINAL CTA
===================================================== */
#final-cta {
  background: var(--canvas);
  padding: 0;
}
.final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.final-block {
  padding: clamp(3.5rem, 6vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  transition: background 0.35s ease;
  border-top: 1px solid var(--canvas-warm);
  /* Make entire block a link-like element */
  cursor: pointer;
}
.final-block:first-child { border-right: 1px solid var(--canvas-warm); }
.final-block:hover { background: var(--canvas-deep); }

.final-block .t-label {
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.final-block h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1rem;
}
.final-block h3 em { font-style: italic; color: var(--accent); }
.final-block p {
  color: var(--ink-mid);
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 400px;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-brand .nav-logo .global-tag {
  color: rgba(255, 255, 255, 0.55);
  border-left-color: rgba(255, 255, 255, 0.15);
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom .social { display: flex; gap: 1.25rem; }
.footer-bottom .social a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom .social a:hover { color: var(--accent); }

/* =====================================================
   RESPONSIVE — 1024px (tablet landscape)
===================================================== */
@media (max-width: 1024px) {
  .lineage-cards { grid-template-columns: repeat(2, 1fr); }
  .lin-arrow { display: none; }
  .academies-grid { grid-template-columns: repeat(2, 1fr); }
  .instructor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .events-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .events-header .btn { align-self: flex-start; }
}

/* =====================================================
   RESPONSIVE — 768px (tablet portrait / large phone)
===================================================== */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4.5rem;
  }
  .hero-content {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
    margin-left: 0;
  }
  .hero-image-panel { min-height: 280px; order: -1; }
  .hero-img-placeholder { min-height: 280px; }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-proof-item {
    border-right: none;
    border-bottom: 1px solid var(--canvas-warm);
    padding: 1rem 0;
  }
  .hero-proof-item:last-child { border-bottom: none; }
  .hero-proof-item:not(:first-child) { padding-left: 0; }

  .statement-grid,
  .founder-grid,
  .lineage-header,
  .network-header,
  .instructors-header,
  .affiliation-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .network-header { gap: 1rem; }

  .academies-grid,
  .instructor-grid,
  .lineage-cards { grid-template-columns: 1fr; }

  .aff-criteria { grid-template-columns: 1fr 1fr; }

  .final-grid { grid-template-columns: 1fr; }
  .final-block:first-child {
    border-right: none;
    border-bottom: 1px solid var(--canvas-warm);
  }

  .event-row {
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.25rem;
    padding: 1.25rem 0;
  }
  .ev-title { grid-column: 1 / -1; }
  .ev-location, .ev-type { grid-column: auto; text-align: left; }
  .ev-arrow { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }

  .filter-meta { margin-left: 0; width: 100%; }

  .founder-stamp {
    width: 90px;
    height: 90px;
    bottom: -16px;
    left: -16px;
  }
  .founder-stamp strong { font-size: 1.7rem; }

  .lineage-quote { padding: 1.5rem; }
}

/* =====================================================
   RESPONSIVE — 480px (small phones)
===================================================== */
@media (max-width: 480px) {
  .aff-criteria { grid-template-columns: 1fr; }
  .founder-credentials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .social { justify-content: center; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  #mobile-menu nav a { font-size: 1.5rem; }

  .academies-grid { grid-template-columns: 1fr; }
  .instructor-grid { grid-template-columns: 1fr 1fr; }
}
