:root {
  --ink: #07182b;
  --ink-soft: #102942;
  --paper: #f7f8f8;
  --white: #ffffff;
  --red: #d74635;
  --red-dark: #b93124;
  --blue: #315981;
  --line: rgba(7, 24, 43, 0.16);
  --muted: #5b6773;
  --shell: min(1180px, calc(100vw - 48px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-160%); background: var(--white); padding: 10px 16px; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; min-height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.16); transition: background .25s, min-height .25s, box-shadow .25s; }
.site-header.scrolled { min-height: 72px; background: rgba(7,24,43,.97); box-shadow: 0 10px 40px rgba(0,0,0,.14); }
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.main-nav a { text-decoration: none; }
.main-nav > a:not(.nav-cta) { position: relative; padding: 10px 0; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--red); transition: right .2s; }
.main-nav > a:not(.nav-cta):hover::after, .main-nav > a:not(.nav-cta):focus-visible::after { right: 0; }
.nav-cta { padding: 12px 18px; border: 1px solid rgba(255,255,255,.6); }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--white); color: var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: inherit; }
.menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; }

.hero { position: relative; min-height: 790px; height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-bg { position: absolute; inset: 0; background: url("images/02-landerBG8.jpg") center 35% / cover no-repeat; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,16,29,.92) 0%, rgba(5,16,29,.62) 47%, rgba(5,16,29,.18) 78%), linear-gradient(0deg, rgba(5,16,29,.56) 0%, transparent 35%); }
.hero-content { position: relative; z-index: 1; padding-top: 86px; }
.eyebrow { margin: 0 0 22px; color: var(--red-dark); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #f08a7d; }
.hero h1 { max-width: 780px; margin: 0; font-family: var(--serif); font-size: clamp(4.4rem, 9vw, 8.6rem); font-weight: 400; letter-spacing: -.065em; line-height: .78; }
.hero h1 em { color: #d7e2ec; font-weight: 400; }
.hero-copy { max-width: 590px; margin: 40px 0 0; color: rgba(255,255,255,.84); font-size: 1.17rem; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; text-decoration: none; font-size: .86rem; font-weight: 800; letter-spacing: .035em; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-light { color: var(--ink); background: var(--white); }
.button-dark { color: var(--white); background: var(--ink); }
.text-link { display: inline-flex; gap: 8px; align-items: center; padding-block: 6px; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link.light { color: var(--white); }
.hero-schedule { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 38px; display: grid; min-width: 290px; padding-left: 24px; border-left: 2px solid var(--red); }
.hero-schedule span { margin-bottom: 5px; color: rgba(255,255,255,.62); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-schedule strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 400; }

.section-heading h2, .dojo-content h2, .schedule h2, .contact h2, .calendar-panel h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5.1rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; }
.intro-copy { padding-top: 50px; color: var(--muted); }
.intro-copy .lead { margin-top: 0; color: var(--ink); font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; }
.kanji-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border-top: 1px solid var(--line); }
.kanji-row div { padding: 26px 18px 0 0; border-right: 1px solid var(--line); }
.kanji-row div:last-child { border-right: 0; padding-left: 20px; }
.kanji-row div:nth-child(2) { padding-left: 20px; }
.kanji-row strong { display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 400; line-height: 1; }
.kanji-row span { display: block; margin-top: 8px; color: var(--muted); font-size: .82rem; }

.dojo { color: var(--white); background: var(--ink); }
.dojo-grid { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(460px,1.15fr); gap: 8vw; align-items: center; }
.dojo-image { position: relative; margin: 0; }
.dojo-image::before { content: ""; position: absolute; z-index: 0; top: -24px; left: -24px; width: 120px; height: 120px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.dojo-image img { position: relative; z-index: 1; width: 100%; aspect-ratio: .8; object-fit: cover; filter: saturate(.65) contrast(1.04); }
.dojo-image figcaption { margin-top: 12px; color: rgba(255,255,255,.48); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.dojo-content > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.dojo-content h2 { margin-bottom: 36px; }
.dojo-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 48px; background: rgba(255,255,255,.16); }
.dojo-stats div { padding: 23px 16px; background: var(--ink); }
.dojo-stats strong { display: block; color: var(--white); font-family: var(--serif); font-size: 2.6rem; font-weight: 400; }
.dojo-stats span { display: block; color: rgba(255,255,255,.52); font-size: .7rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .09em; }

.practice { background: var(--white); }
.section-heading.compact { max-width: 680px; }
.practice-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.practice-card { min-height: 330px; padding: 28px; border-right: 1px solid var(--line); transition: background .25s, color .25s; }
.practice-card:last-child { border-right: 0; }
.practice-card:hover { color: var(--white); background: var(--ink); }
.card-index { color: var(--red); font-family: var(--serif); font-size: .9rem; }
.practice-card h3 { margin: 88px 0 18px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.practice-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.practice-card:hover p { color: rgba(255,255,255,.7); }

.instructors { background: #e9edf0; }
.split-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 8vw; align-items: end; }
.split-heading > p { max-width: 520px; margin: 0 0 7px; color: var(--muted); }
.instructor-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; margin-top: 64px; }
.instructor-card { position: relative; min-height: 540px; overflow: hidden; background: var(--ink); }
.instructor-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.68); transition: transform .5s ease, filter .5s ease; }
.instructor-card:hover img { transform: scale(1.025); filter: saturate(1); }
.instructor-info { position: absolute; inset: auto 0 0; padding: 90px 26px 26px; color: var(--white); background: linear-gradient(transparent, rgba(4,13,23,.92)); }
.instructor-info p, .instructor-info span { margin: 0; color: rgba(255,255,255,.7); font-size: .73rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.instructor-info h3 { margin: 8px 0 10px; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.05; }

.schedule { color: var(--white); background: var(--ink-soft); }
.schedule-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; }
.schedule-intro > p:not(.eyebrow) { max-width: 470px; color: rgba(255,255,255,.66); }
.schedule-intro .button { margin-top: 24px; }
.schedule-list { border-top: 1px solid rgba(255,255,255,.18); }
.schedule-list article { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.schedule-list article div { display: flex; gap: 12px; justify-content: space-between; }
.schedule-list span { font-weight: 750; }
.schedule-list strong { color: #f08a7d; font-size: .95rem; }
.schedule-list p { margin: 0; color: rgba(255,255,255,.55); text-align: right; }

.calendar-callout { padding-block: 80px; background: var(--red); }
.calendar-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: end; }
.calendar-panel .eyebrow { color: var(--white); opacity: .72; }
.calendar-panel h2 { color: var(--white); font-size: clamp(2.4rem,4vw,4.2rem); }
.calendar-actions p { color: rgba(255,255,255,.8); }
.calendar-actions .button { margin-top: 14px; }

.contact { color: var(--white); background: #050d16; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 9vw; }
.contact-heading h2 { font-size: clamp(3rem,6vw,5.6rem); }
.contact-details { display: grid; gap: 30px; }
.contact-details > div { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-details span { color: #f08a7d; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-details p { color: rgba(255,255,255,.72); }
.contact-details a { text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer { padding: 34px 0; color: rgba(255,255,255,.55); background: #02070c; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: grid; grid-template-columns: 180px 1fr auto; gap: 30px; align-items: center; }
.footer-inner img { width: 150px; }
.footer-inner p { margin: 0; font-size: .78rem; }
.footer-inner a { color: var(--white); font-size: .78rem; text-underline-offset: 4px; }

:focus-visible { outline: 3px solid #ffb4aa; outline-offset: 4px; }

@media (max-width: 1000px) {
  :root { --shell: min(100% - 40px, 760px); }
  .section { padding: 88px 0; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; background: var(--ink); font-family: var(--serif); font-size: 1.7rem; transform: translateX(100%); transition: transform .3s ease; }
  .main-nav.open { transform: none; }
  .nav-cta { margin-top: 18px; font-family: var(--sans); font-size: .85rem; }
  .intro-grid, .dojo-grid, .schedule-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .dojo-grid { gap: 56px; }
  .dojo-image { max-width: 540px; }
  .practice-grid { grid-template-columns: repeat(2,1fr); }
  .practice-card:nth-child(2) { border-right: 0; }
  .practice-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .instructor-grid { grid-template-columns: repeat(3,1fr); gap: 12px; }
  .instructor-card { min-height: 430px; }
  .instructor-info h3 { font-size: 1.45rem; }
  .calendar-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100vw - 32px); }
  .site-header { min-height: 72px; padding-inline: 16px; }
  .brand img { width: 128px; }
  .hero { min-height: 720px; }
  .hero-bg { background-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(5,16,29,.9),rgba(5,16,29,.42)), linear-gradient(0deg,rgba(5,16,29,.75),transparent); }
  .hero h1 { font-size: clamp(3.75rem, 20vw, 5.4rem); line-height: .82; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-schedule { left: 16px; right: auto; bottom: 24px; }
  .section-heading h2, .dojo-content h2, .schedule h2, .contact h2, .calendar-panel h2 { font-size: clamp(2.5rem,13vw,3.7rem); }
  .kanji-row { grid-template-columns: 1fr; }
  .kanji-row div { display: grid; grid-template-columns: 70px 1fr; align-items: center; padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .kanji-row div:nth-child(2), .kanji-row div:last-child { padding-left: 0; }
  .kanji-row div:last-child { border-bottom: 0; }
  .kanji-row span { margin: 0; }
  .dojo-stats { grid-template-columns: 1fr; }
  .dojo-stats div { display: grid; grid-template-columns: 90px 1fr; align-items: center; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .practice-card h3 { margin-top: 55px; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .instructor-grid { grid-template-columns: 1fr; gap: 18px; }
  .instructor-card { min-height: 520px; }
  .instructor-card img { object-position: center 18%; }
  .schedule-list article { grid-template-columns: 1fr; gap: 6px; }
  .schedule-list article div { flex-wrap: wrap; }
  .schedule-list p { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
}

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