/* ==========================================================================
   Yūshin Dōjō — Japanese Martial Arts
   "Rooted in tradition, driven by courage."
   Color scheme: green, red, black, white (gold accent from ISK affiliation)
   ========================================================================== */

:root {
  --green:        #1c6b3c;   /* bamboo green */
  --green-dark:   #124d2a;
  --green-deep:   #0d3a1f;
  --red:          #c8102e;   /* the 勇 kanji red */
  --red-dark:     #9c0c23;
  --black:        #111214;
  --ink:          #1b1c1e;
  --white:        #ffffff;
  --off-white:    #f6f5f1;
  --paper:        #efece4;
  --gold:         #c9a24b;   /* ISK affiliation gold */
  --gold-light:   #e0c477;
  --gray:         #5b5f63;
  --gray-light:   #d8d8d4;

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans:  "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);

  --maxw: 1180px;
  --radius: 10px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section framing ---------- */
section { padding: 96px 0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }

.section-head .kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  display: inline-block;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: .3em;
}

.section-head p { color: var(--gray); font-size: 1.08rem; margin: 0; }

.rule {
  width: 64px; height: 3px; border: 0;
  background: var(--red);
  margin: 18px auto 0;
  position: relative;
}
.rule::before,
.rule::after {
  content: ""; position: absolute; top: 0; width: 10px; height: 3px; background: var(--gold);
}
.rule::before { left: -18px; }
.rule::after  { right: -18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(200,16,46,.28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--black); border-color: #fff; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(17,18,20,.98); box-shadow: 0 4px 20px rgba(0,0,0,.3); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 48px; width: auto; }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .brand-name {
  font-family: var(--font-serif); font-weight: 700; color: #fff;
  font-size: 1.35rem; letter-spacing: .06em;
}
.nav-brand .brand-sub {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-light); margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .9rem; font-weight: 500;
  padding: 10px 16px; border-radius: 6px;
  letter-spacing: .02em;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-links .nav-cta {
  margin-left: 10px; background: var(--red); color: #fff;
  padding: 10px 22px; border-radius: 50px;
}
.nav-links .nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(28,107,60,.35), transparent 60%),
    linear-gradient(160deg, #0d3a1f 0%, #111214 55%, #0a0b0c 100%);
}
.hero::before {
  /* faint large kanji watermark */
  content: "勇";
  position: absolute;
  right: -4%; bottom: -14%;
  font-family: var(--font-serif);
  font-size: 46rem;
  line-height: 1;
  color: rgba(200,16,46,.06);
  pointer-events: none;
  user-select: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .hero-logo { height: 120px; width: auto; margin-bottom: 26px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 18px; display: block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: .2em;
  letter-spacing: .02em;
}
.hero h1 .accent { color: var(--red); }
.hero .slogan {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--gold-light);
  margin-bottom: 28px;
}
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.6); font-size: .72rem;
  letter-spacing: .25em; text-transform: uppercase; text-align: center;
}
.scroll-cue .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px; margin: 0 auto 8px; position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; background: #fff; border-radius: 2px;
  animation: scrolldot 1.6s ease-in-out infinite;
}
@keyframes scrolldot { 0%{opacity:0; top:7px} 40%{opacity:1} 80%{opacity:0; top:18px} 100%{opacity:0} }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.about-copy .kicker {
  text-transform: uppercase; letter-spacing: .28em; font-size: .72rem;
  font-weight: 600; color: var(--green); display: inline-block; margin-bottom: 12px;
}
.about-copy p { color: var(--gray); margin-bottom: 1.1em; }
.about-copy p strong { color: var(--ink); }

.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.value {
  text-align: center; padding: 22px 12px; border-radius: var(--radius);
  background: var(--off-white); border: 1px solid var(--gray-light);
}
.value .kanji { font-family: var(--font-serif); font-size: 2rem; color: var(--red); line-height: 1; }
.value h4 { font-size: 1.05rem; margin: 10px 0 4px; }
.value p { font-size: .82rem; color: var(--gray); margin: 0; }

.about-media { position: relative; }
.about-media .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 6px solid #fff; outline: 1px solid var(--gray-light);
}
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media .badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--green); color: #fff; padding: 18px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow-md); max-width: 220px;
}
.about-media .badge strong { display: block; font-size: 1.5rem; font-family: var(--font-serif); }
.about-media .badge span { font-size: .78rem; letter-spacing: .05em; opacity: .9; }

/* ==========================================================================
   Instructor
   ========================================================================== */
.instructor { background: var(--paper); }
.instructor-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start;
}

.instructor-media .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 6px solid #fff; outline: 1px solid var(--gray-light);
  aspect-ratio: 3 / 4; background: var(--black);
}
.instructor-media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.credentials { list-style: none; margin: 26px 0 0; padding: 0; }
.credentials li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-light);
}
.credentials li:last-child { border-bottom: 0; }
.credentials .c-label {
  text-transform: uppercase; letter-spacing: .18em; font-size: .68rem;
  font-weight: 600; color: var(--green);
}
.credentials .c-value { font-size: .95rem; color: var(--ink); }

.instructor-copy p { color: var(--gray); margin: 0 0 1.1em; }
.instructor-copy p strong { color: var(--ink); }

.creed {
  margin: 30px 0 0; padding: 26px 30px;
  background: var(--white); border-left: 5px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.creed p { margin: 0; color: var(--gray); font-size: .95rem; }
.creed .creed-line {
  font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.35;
  color: var(--black); margin-top: 10px;
}
.creed .creed-line em { color: var(--red); font-style: normal; font-weight: 700; }

.journey {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px;
}
.journey figure { margin: 0; }
.journey img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 5px solid #fff; outline: 1px solid var(--gray-light);
}
/* Bias these crops upward so heads aren't cut off by the 4:3 frame. */
.journey img.crop-high { object-position: center top; }
.journey img.portrait  { object-position: center 8%; }
.journey figcaption {
  font-size: .82rem; color: var(--gray); margin-top: 10px; line-height: 1.5;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.gallery-grid figure { margin: 0; display: flex; flex-direction: column; }
/* The lead photo fills a 2×2 block; the other five fill the remaining cells exactly. */
.gallery-grid .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery-grid img {
  width: 100%; height: auto; object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-grid .g-wide img { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
/* Closing banner across the full row — the 2×2 lead plus five singles plus this
   fills a 3-column grid exactly, with no empty cells. */
.gallery-grid .g-full { grid-column: 1 / -1; }
.gallery-grid .g-full img { aspect-ratio: 16 / 10; }
.gallery-grid figure:hover img { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-grid figcaption { font-size: .84rem; color: var(--gray); margin-top: 10px; line-height: 1.5; }

/* ==========================================================================
   Video
   ========================================================================== */
.video-section {
  background: linear-gradient(160deg, #0d3a1f 0%, #111214 65%);
  color: #fff;
}
.video-section .section-head h2 { color: #fff; }
.video-section .section-head p { color: rgba(255,255,255,.75); }
.video-section .section-head .kicker { color: var(--gold-light); }
.video-frame {
  max-width: 760px; margin: 0 auto;
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
}
.video-frame video {
  display: block; width: 100%; height: auto;
  max-height: 78vh; margin: 0 auto; background: #000;
}

/* ==========================================================================
   Schedule
   ========================================================================== */
.schedule { background: var(--paper); position: relative; }
.hours-card {
  background: #fff; border-radius: var(--radius); padding: 14px 36px;
  box-shadow: var(--shadow-sm); border-top: 5px solid var(--green);
  max-width: 640px; margin: 0 auto;
}
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-bottom: 1px dashed var(--gray-light);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day {
  font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; font-weight: 600; color: var(--gray);
}
.hours-list .time {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--black); line-height: 1.2;
}
.hours-list .closed .time { font-size: 1.1rem; color: var(--gray); font-style: italic; }
.schedule-note {
  text-align: center; margin-top: 40px; color: var(--gray); font-size: .95rem;
}
.schedule-note .btn { margin-top: 18px; }

/* ==========================================================================
   Location
   ========================================================================== */
.location { background: var(--white); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.location-info h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.info-list { list-style: none; margin: 26px 0 0; padding: 0; }
.info-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-light); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic {
  flex: 0 0 44px; height: 44px; border-radius: 10px;
  background: var(--green-deep); color: var(--gold-light);
  display: grid; place-items: center; font-size: 1.2rem;
}
.info-list .info-body strong { display: block; font-size: 1.02rem; color: var(--black); }
.info-list .info-body span { color: var(--gray); font-size: .95rem; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  min-height: 380px; border: 6px solid #fff; outline: 1px solid var(--gray-light);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background:
    linear-gradient(160deg, #0d3a1f 0%, #111214 60%);
  color: #fff;
}
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: rgba(255,255,255,.75); }
.contact .section-head .kicker { color: var(--gold-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }

.contact-cards { display: grid; gap: 18px; }
.contact-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: center;
}
.contact-card .ic {
  flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-size: 1.2rem;
}
.contact-card strong { display: block; color: #fff; }
.contact-card span, .contact-card a { color: rgba(255,255,255,.8); font-size: .95rem; }
.contact-card a:hover { color: var(--gold-light); }

.contact-form {
  background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg);
}
.contact-form h3 { color: var(--black); font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-light);
  border-radius: 8px; font-family: inherit; font-size: .96rem; color: var(--ink);
  background: var(--off-white); transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,107,60,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--gray); margin: 6px 0 0; }
.form-success,
.form-error {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px;
  font-size: .92rem; font-weight: 500;
}
.form-success { background: rgba(28,107,60,.12); color: var(--green-dark); }
.form-error   { background: rgba(200,16,46,.10); color: var(--red-dark); }
.form-error a { color: var(--red-dark); text-decoration: underline; }
.form-success.show,
.form-error.show { display: block; }

.contact-form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* ==========================================================================
   Lineage page
   ========================================================================== */
.page-hero {
  position: relative; color: #fff; text-align: center;
  padding: 180px 0 90px;
  background:
    radial-gradient(900px 500px at 50% -20%, rgba(28,107,60,.4), transparent 60%),
    linear-gradient(160deg, #0d3a1f 0%, #111214 60%, #0a0b0c 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "系譜"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-serif); font-size: 22rem; color: rgba(255,255,255,.04);
  pointer-events: none; user-select: none; line-height: 1;
}
.page-hero .inner { position: relative; z-index: 2; }
.page-hero .eyebrow {
  text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; font-weight: 600;
  color: var(--gold-light); display: block; margin-bottom: 16px;
}
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; margin: 12px auto 0; font-size: 1.1rem; }

.lineage-intro { background: var(--white); }
.lineage-intro .container { max-width: 820px; text-align: center; }
.lineage-intro p { color: var(--gray); font-size: 1.1rem; }

.affiliation-band {
  background: var(--paper); text-align: center; padding: 64px 0;
  border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light);
}
.affiliation-band img { height: 150px; width: auto; margin: 0 auto 22px; }
.affiliation-band h3 { font-size: 1.6rem; margin-bottom: .2em; }
.affiliation-band p { color: var(--gray); max-width: 640px; margin: 0 auto; }

.lineage { background: var(--off-white); }
.lineage-chain { max-width: 960px; margin: 0 auto; position: relative; }

.master {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 32px; margin-bottom: 34px; position: relative;
  border-left: 6px solid var(--green);
}
.master:nth-child(even) { grid-template-columns: 1fr 300px; border-left: 0; border-right: 6px solid var(--red); }
.master:nth-child(even) .master-photo { order: 2; }

.master-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4; background: var(--black);
}
.master-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.master-body .rank {
  text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 600;
  color: var(--green); display: inline-block; margin-bottom: 8px;
}
.master:nth-child(even) .master-body .rank { color: var(--red); }
.master-body h3 { font-size: 1.9rem; margin-bottom: .1em; }
.master-body .jp { font-family: var(--font-serif); color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; }
.master-body p { color: var(--gray); margin: 0 0 .8em; font-size: .98rem; }
.master-body .lifespan { font-size: .82rem; color: var(--gray); font-style: italic; }

.creds-head {
  font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .2em;
  font-size: .7rem; font-weight: 600; color: var(--green);
  margin: 18px 0 8px;
}
.master-creds {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px;
}
.master-creds li {
  display: flex; align-items: baseline; gap: 8px;
  font-size: .87rem; color: var(--gray); padding: 6px 0;
  border-bottom: 1px dashed var(--gray-light);
}
.master-creds .dan { font-weight: 600; color: var(--ink); white-space: nowrap; }
.master-creds .yr { margin-left: auto; font-size: .78rem; color: var(--gray); white-space: nowrap; }
.creds-note { font-size: .84rem; color: var(--gray); margin: 0 0 .8em; }

.master-body .archive {
  margin: 22px 0 0; padding: 16px; background: var(--paper);
  /* Two of these stack under one master entry — keep them from touching. */
  border-radius: var(--radius); border: 1px solid var(--gray-light);
  display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center;
}
.master-body .archive + .archive { margin-top: 14px; }
.master-body .archive img { width: 100%; border-radius: 6px; box-shadow: var(--shadow-sm); }
.master-body .archive figcaption {
  font-size: .82rem; color: var(--gray); font-style: italic; line-height: 1.55; text-align: left;
}

.chain-node {
  text-align: center; margin: -14px 0 20px; position: relative; z-index: 2;
}
.chain-node .dot {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto;
  background: var(--gold); color: var(--black); display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; box-shadow: var(--shadow-sm);
}
.chain-node .line { width: 2px; height: 26px; background: var(--gold); margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 280px; }
.footer-brand .slogan { font-family: var(--font-serif); font-style: italic; color: var(--gold-light); margin-top: 8px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-affil img { height: 76px; margin-bottom: 12px; }
.footer-affil p { font-size: .82rem; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links a { padding: 10px 11px; font-size: .86rem; }
  .nav-links .nav-cta { padding: 10px 18px; margin-left: 6px; }
}

@media (max-width: 960px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media .badge { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .master, .master:nth-child(even) { grid-template-columns: 1fr; }
  .master:nth-child(even) .master-photo { order: 0; }
  .master-photo { max-width: 300px; margin: 0 auto; }
  .master-body { text-align: center; }
  .master-body .archive { grid-template-columns: 1fr; justify-items: center; max-width: 420px; margin-inline: auto; }
  .master-body .archive figcaption { text-align: center; }
  /* .master-body centres its text on small screens — keep the rank rows readable. */
  .master-creds { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; text-align: left; }

  .instructor-grid { grid-template-columns: 1fr; gap: 40px; }
  .instructor-media { max-width: 400px; margin: 0 auto; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .g-wide { grid-column: span 2; grid-row: span 1; }
  .gallery-grid .g-wide img { aspect-ratio: 16 / 10; flex: 0 0 auto; }
  .gallery-grid .g-full { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(17,18,20,.99); padding: 12px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-140%); transition: transform .35s ease;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .nav-cta { margin: 12px 0 0; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hours-card { padding: 10px 22px; }
  .hours-list li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 0; }
  .hours-list .time { font-size: 1.3rem; }
  .value-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero::before { font-size: 26rem; }
  .journey { grid-template-columns: 1fr; gap: 26px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-wide { grid-column: span 1; }
  .gallery-grid .g-wide img { aspect-ratio: 4 / 3; flex: 0 0 auto; }
  .gallery-grid .g-full img { aspect-ratio: 4 / 3; }
  .creed { padding: 22px 20px; }
  .creed .creed-line { font-size: 1.15rem; }
}
