/* ============================================================
   Kyokushin-kan Virginia — kyokushinkan.site
   Palette: ink black / Kyokushin crimson / white
   Display: Shippori Mincho · Body: Inter
   ============================================================ */

:root {
  --ink: #0d0b0a;
  --ink-soft: #1a1715;
  --red: #b5121b;
  --red-deep: #7e0d13;
  --white: #fcfcfa;
  --grey: #6b6660;
  --line: #e5e2db;
  --line-dark: #2a2624;
  --display: "Shippori Mincho", serif;
  --body: "Inter", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}
.eyebrow .jp { color: var(--grey); letter-spacing: 0.3em; font-weight: 400; }

/* ---------- Top bar ---------- */
.topline { height: 4px; background: var(--red); }

header.site {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand svg { height: 40px; width: auto; }
.brand .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.brand .name span {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b3aca5;
}
nav.main { display: flex; gap: 34px; align-items: center; }
nav.main a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfc9c2;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav.main a:hover { color: var(--white); }
nav.main a.active { color: var(--white); border-bottom-color: var(--red); }
nav.main a.cta {
  border: 1px solid var(--red);
  padding: 10px 20px;
  color: var(--white);
  transition: background 0.2s;
}
nav.main a.cta:hover { background: var(--red); border-bottom-color: transparent; }

/* Mobile nav */
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .sun {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 18, 27, 0.55) 0%, rgba(181, 18, 27, 0.18) 48%, transparent 70%);
  pointer-events: none;
}
.hero .kanji-vertical {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 120px);
  letter-spacing: 0.18em;
  color: rgba(252, 252, 250, 0.1);
  user-select: none;
  pointer-events: none;
}
.hero .inner {
  position: relative;
  padding: 110px 0 120px;
  max-width: 680px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.12;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero p.lead {
  font-size: 18px;
  color: #b9b3ac;
  max-width: 540px;
  margin-bottom: 40px;
}
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 15px 30px;
  border: 1px solid var(--red);
  transition: background 0.2s, color 0.2s;
}
.btn.solid { background: var(--red); color: var(--white); }
.btn.solid:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.ghost { color: var(--white); }
.btn.ghost:hover { background: var(--red); }
.btn.ghost.dark { color: var(--ink); }
.btn.ghost.dark:hover { color: var(--white); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero .inner { position: relative; padding: 72px 0 64px; max-width: 720px; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
}
.page-hero p { color: #b9b3ac; margin-top: 16px; max-width: 560px; }
.page-hero .kanji-vertical {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: 0.18em;
  color: rgba(252, 252, 250, 0.09);
  pointer-events: none;
}

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.tight { padding: 64px 0; }
section.block.dark { background: var(--ink); color: var(--white); }
section.block.rule { border-top: 1px solid var(--line); }

h2.title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin-bottom: 22px;
  max-width: 640px;
}
.block.dark h2.title { color: var(--white); }
p.sub { color: var(--grey); max-width: 620px; }
.block.dark p.sub { color: #b9b3ac; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.pillar {
  background: var(--white);
  padding: 38px 32px;
}
.pillar .jp {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}
.pillar h3 {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pillar p { font-size: 14.5px; color: var(--grey); }

/* ---------- Dojo kun strip ---------- */
.kun {
  background: var(--red);
  color: var(--white);
  padding: 64px 0;
}
.kun blockquote {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.5;
  max-width: 760px;
  font-weight: 600;
}
.kun cite {
  display: block;
  margin-top: 18px;
  font-family: var(--body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Timeline (about) ---------- */
.timeline { margin-top: 48px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding: 0 0 44px 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
}
.tl-item .year {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}
.tl-item h3 { font-family: var(--display); font-size: 21px; margin-bottom: 8px; }
.tl-item p { color: var(--grey); font-size: 15px; max-width: 600px; }

/* ---------- Class cards / schedule ---------- */
.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.program {
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 34px 30px;
}
.program h3 { font-family: var(--display); font-size: 22px; margin-bottom: 6px; }
.program .meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
}
.program p { font-size: 14.5px; color: var(--grey); }

table.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 15px;
}
table.schedule th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  padding: 0 16px 14px;
  border-bottom: 2px solid var(--ink);
}
table.schedule td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.schedule td.day { font-weight: 600; white-space: nowrap; }
table.schedule td .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.note {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--grey);
  border-left: 3px solid var(--red);
  padding-left: 16px;
  max-width: 620px;
}

/* ---------- Belt ladder ---------- */
.belts { display: flex; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.belt {
  flex: 1;
  min-width: 64px;
  height: 14px;
  position: relative;
}
.belt span {
  position: absolute;
  top: 22px;
  left: 0;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  margin-top: 12px;
}
.contact-info .item { margin-bottom: 30px; }
.contact-info .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-info .value { font-size: 17px; font-weight: 500; }
.contact-info .value a { border-bottom: 1px solid var(--red); }

form.contact label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 22px 0 8px;
}
form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid #cfc9c2;
  background: #fff;
  color: var(--ink);
}
form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}
form.contact button {
  margin-top: 28px;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.2s;
}
form.contact button:hover { background: var(--red-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band .sun {
  position: absolute;
  left: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 18, 27, 0.4) 0%, transparent 70%);
}
.cta-band .inner { position: relative; text-align: center; }
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 14px;
}
.cta-band p { color: #b9b3ac; margin-bottom: 34px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #8f8881;
  border-top: 4px solid var(--red);
  padding: 56px 0 36px;
  font-size: 13.5px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
footer.site h4 {
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer.site a:hover { color: var(--white); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; }
footer.site .kanji-foot {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
footer.site .legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .pillars, .programs { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .hero .kanji-vertical, .page-hero .kanji-vertical { display: none; }
}
@media (max-width: 760px) {
  nav.main {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 0 16px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 24px; width: 100%; }
  nav.main a.cta { border: none; }
  .menu-btn { display: block; }
  .hero .inner { padding: 72px 0 80px; }
  table.schedule { font-size: 13.5px; }
  table.schedule th, table.schedule td { padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   ADDITIONS — scroll animations + photo layers
   ============================================================ */

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero / page-hero photo layer ----------
   Drop photos into assets/ — if a file is missing, the dark
   design simply shows through (no broken-image icons). */
.hero .photo, .page-hero .photo {
  position: absolute;
  inset: 0;
  background-position: center 30%;
  background-size: cover;
  opacity: 0.28;
  filter: grayscale(35%) contrast(1.1);
  pointer-events: none;
}
.hero .photo { background-image: url("assets/hero.jpg"); opacity: 0.45; }
.page-hero.ph-about .photo { background-image: url("assets/about.jpg"); }
.page-hero.ph-classes .photo { background-image: url("assets/classes.jpg"); }
.page-hero.ph-contact .photo { background-image: url("assets/contact.jpg"); }
/* dark gradient so headline text always stays readable over photos */
.hero .photo::after, .page-hero .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,11,10,0.9) 0%, rgba(13,11,10,0.55) 55%, rgba(13,11,10,0.75) 100%);
}

/* ---------- In-page photo figures ---------- */
figure.photo-frame {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink);
  position: relative;
}
figure.photo-frame::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px;
  width: 56px; height: 56px;
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
}
figure.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
figure.photo-frame figcaption {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 12px 14px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
/* hide the figure entirely if its image fails to load (JS adds .img-missing) */
figure.photo-frame.img-missing { display: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* gallery strip responsive */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr !important; }
}


/* ---------- Masters lineage section ---------- */
.masters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 52px;
}
.master h3 {
  font-family: var(--display);
  font-size: 19px;
  margin: 20px 0 10px;
  line-height: 1.35;
}
.master h3 span {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 4px;
}
.master p { font-size: 14.5px; color: var(--grey); }
figure.photo-frame.portrait img { aspect-ratio: 3 / 4; object-position: top; }
@media (max-width: 900px) {
  .masters-grid { grid-template-columns: 1fr; }
}
