:root {
  --cream: #f6f0e4;
  --paper: #fffaf1;
  --forest: #173d32;
  --forest-dark: #0e2d25;
  --sage: #9caf91;
  --sage-light: #dce2d3;
  --terra: #c96b4b;
  --terra-dark: #a94f35;
  --charcoal: #24302b;
  --line: #d8cfbd;
}

* { box-sizing: border-box; }

html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Segoe UI", Arial, sans-serif;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 0 clamp(24px, 4.5vw, 72px);
  border-bottom: 1px solid rgba(23, 61, 50, .18);
  background: rgba(246, 240, 228, .94);
}

.brand { display: inline-flex; align-items: center; gap: 13px; font-weight: 650; font-size: 20px; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; }
.site-header > nav { display: flex; align-items: center; gap: clamp(22px, 2.7vw, 42px); font-size: 15px; }
.site-header > nav a { position: relative; padding: 30px 0; }
.site-header > nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--terra); transition: right .2s ease; }
.site-header > nav a:hover::after, .site-header > nav a:focus-visible::after { right: 0; }
.header-cta { justify-self: end; padding: 14px 21px; border-radius: 9px; color: white; background: var(--terra); font-weight: 650; transition: transform .2s ease, background .2s ease; }
.header-cta:hover { transform: translateY(-2px); background: var(--terra-dark); }

.mobile-nav { display: none; position: relative; }
.mobile-nav > summary { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--forest); border-radius: 9px; color: var(--forest); cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.mobile-nav[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.mobile-nav > summary:hover { background: rgba(255, 255, 255, .65); }
.mobile-nav > summary:focus-visible { outline: 3px solid var(--terra); outline-offset: 4px; }
.mobile-nav-panel { position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: min(260px, calc(100vw - 36px)); display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 16px 38px rgba(36, 48, 43, .18); }
.mobile-nav-panel a { display: block; padding: 13px 14px; border-radius: 7px; color: var(--forest); font-size: 15px; font-weight: 650; }
.mobile-nav-panel a:hover, .mobile-nav-panel a:focus-visible { background: var(--sage-light); }

.hero {
  position: relative;
  min-height: 790px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  align-items: center;
  overflow: hidden;
  padding: 60px clamp(24px, 4.8vw, 78px) 145px;
}

.hero-copy { position: relative; z-index: 5; max-width: 680px; padding-bottom: 80px; }
.eyebrow { margin: 0 0 22px; color: var(--forest); font-size: 14px; line-height: 1.2; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #d6ded3; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--forest); font-weight: 500; letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(72px, 8.3vw, 128px); line-height: .84; }
.hero-lead { max-width: 570px; margin: 30px 0 0; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 25px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--forest-dark); }
.button-secondary { border-color: var(--forest); color: var(--forest); background: rgba(255,255,255,.22); }
.button-secondary:hover { background: rgba(255,255,255,.65); }

.hero-art { position: relative; z-index: 2; align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 560px; }
.hero-art::before { content: ""; position: absolute; z-index: 0; width: min(56vw, 760px); aspect-ratio: 1; border-radius: 48% 48% 42% 46%; background: #efe3cb; right: -3vw; top: 0; }
.hero-art img { position: relative; z-index: 3; width: min(55vw, 760px); max-height: 690px; object-fit: contain; filter: saturate(.98) contrast(1.04); }
.sun { position: absolute; z-index: 2; width: 88px; height: 88px; border-radius: 50%; right: 12%; top: 15%; background: var(--terra); opacity: .84; }
.hero-art::after { content: ""; position: absolute; z-index: 1; right: -3vw; top: 0; width: min(56vw, 760px); aspect-ratio: 1; border-radius: 48% 48% 42% 46%; background: url("/logo-aikikai-varallo-hd.png") center / cover no-repeat; opacity: .07; filter: grayscale(.15) blur(.25px); mix-blend-mode: multiply; transform: rotate(30deg); pointer-events: none; }

.next-lessons { position: absolute; z-index: 8; left: 31%; bottom: 45px; width: min(370px, 72vw); padding: 24px 27px 21px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 252, 246, .96); box-shadow: 0 16px 38px rgba(36, 48, 43, .15); }
.next-lessons > p { margin: 0 0 13px; font-family: Georgia, serif; font-size: 24px; color: var(--forest); }
.lesson-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.round-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--sage-light); color: var(--forest); }
.next-lessons > a { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--terra-dark); font-weight: 700; font-size: 14px; }
.hero-wave { position: absolute; z-index: 1; left: -5%; right: -5%; bottom: -130px; height: 310px; border-radius: 50% 52% 0 0; transform: rotate(2deg); background: var(--forest); }

.welcome-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.2); color: #fff; background-color: var(--forest); padding: 12px clamp(24px, 5vw, 80px) 44px; }
.welcome-strip div { padding: 20px 32px; border-left: 1px solid rgba(255,255,255,.2); }
.welcome-strip div:first-child { border-left: 0; }
.welcome-strip strong, .welcome-strip span { display: block; }
.welcome-strip strong { margin-bottom: 4px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.welcome-strip span { color: #cfd9d2; font-size: 14px; }

.section { padding: 120px clamp(24px, 7vw, 112px); }
.dojo-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 150px); background: var(--paper); }
.history-section { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(60px, 9vw, 150px); background: var(--cream); }
.history-portrait { position: relative; width: 100%; max-width: 390px; aspect-ratio: 3 / 4; justify-self: center; overflow: hidden; border-radius: 200px 200px 20px 20px; background: #e8e1d4; box-shadow: 0 24px 54px rgba(36, 48, 43, .18); }
.history-portrait img { width: 100%; max-width: 100%; height: 100%; display: block; object-fit: cover; }
.history-year { display: flex; align-items: flex-end; justify-content: flex-start; gap: 18px; margin-bottom: 28px; color: var(--sage); font-family: Georgia, serif; }
.history-year span { font-size: clamp(82px, 8vw, 128px); line-height: .76; letter-spacing: -.08em; }
.history-year small { margin-bottom: 4px; color: var(--forest); font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; }
.history-copy { max-width: 700px; }
.history-copy h2 { margin: 0 0 28px; font-size: clamp(52px, 5.5vw, 84px); line-height: .98; }
.history-copy > p { font-size: 17px; line-height: 1.8; }
.history-copy .large-copy { margin: 0 0 24px; color: var(--forest); font-family: Georgia, serif; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.4; }
.section-heading h2, .schedule-section h2, .contact-section h2 { margin: 0; font-size: clamp(52px, 5.5vw, 84px); line-height: .98; }
.dojo-copy { max-width: 680px; }
.dojo-copy > p { font-size: 17px; line-height: 1.8; }
.dojo-copy .large-copy { margin-top: 0; color: var(--forest); font-family: Georgia, serif; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.4; }
.affiliation { display: flex; align-items: center; gap: 20px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.affiliation-logo { flex: 0 0 auto; width: 76px; height: 76px; display: block; object-fit: cover; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(23, 61, 50, .12); }
.affiliation p { margin: 0; line-height: 1.55; }

.teacher-section { position: relative; min-height: 620px; display: grid; grid-template-columns: minmax(180px, .52fr) minmax(320px, 1.05fr) minmax(280px, .75fr); align-items: center; gap: clamp(30px, 4vw, 70px); overflow: hidden; padding-top: 90px; padding-bottom: 90px; background: var(--forest); color: white; }
.teacher-grade { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: center; color: var(--cream); font-family: Georgia, serif; }
.teacher-grade span { font-size: clamp(140px, 14vw, 220px); line-height: .7; }
.teacher-grade sup { font-size: 58px; line-height: .7; }
.teacher-grade small { align-self: flex-end; margin: 0 0 -6px -30px; color: var(--sage); font-family: "Segoe UI", Arial, sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.teacher-copy { position: relative; z-index: 3; max-width: 620px; }
.teacher-copy h2 { margin: 0; color: white; font-size: clamp(58px, 5.7vw, 88px); line-height: .9; }
.teacher-role { margin: 18px 0 25px; color: #dce4dc; font-weight: 700; }
.teacher-copy > p:last-child { max-width: 540px; line-height: 1.75; color: #d6ded8; }
.teacher-portrait { position: relative; z-index: 3; width: 100%; max-width: 390px; aspect-ratio: 3 / 4; justify-self: end; overflow: hidden; border-radius: 200px 200px 20px 20px; background: #e8e1d4; box-shadow: 0 24px 54px rgba(4, 18, 14, .3); }
.teacher-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; }

.enso { position: absolute; right: -90px; top: -150px; width: 520px; height: 520px; border: 28px solid rgba(156, 175, 145, .13); border-left-color: transparent; border-radius: 50%; transform: rotate(-26deg); }

.schedule-section { background: var(--cream); }
.section-heading.compact { max-width: 760px; }
.section-heading.compact > p:last-child { font-size: 19px; }
.schedule-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; }
.schedule-card { min-height: 180px; display: flex; align-items: center; gap: 32px; padding: 34px 40px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.schedule-card > span { color: var(--sage); font-family: Georgia, serif; font-size: 50px; }
.schedule-card p { margin: 0 0 8px; color: var(--forest); font-family: Georgia, serif; font-size: 34px; }
.schedule-card strong { font-size: 17px; letter-spacing: .06em; }
.schedule-card.accent { background: var(--terra); color: white; border-color: var(--terra); }
.schedule-card.accent > span, .schedule-card.accent p { color: white; }
.schedule-note { display: flex; align-items: center; gap: 18px; max-width: 700px; margin-top: 34px; }
.schedule-note span { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--forest); border-radius: 50%; color: var(--forest); font-weight: 800; }
.schedule-note p { margin: 0; line-height: 1.6; }

.location-section { min-height: 610px; display: grid; grid-template-columns: 1fr 1fr; background: var(--forest-dark); color: white; }
.location-panel { padding: 100px clamp(24px, 7vw, 110px); }
.location-panel h2 { margin: 0; color: white; font-size: clamp(54px, 5.8vw, 88px); line-height: .96; }
.address { display: flex; gap: 16px; margin: 36px 0; color: #e8ece8; }
.address p { margin: 0; font-size: 18px; line-height: 1.6; }
.button-light { background: var(--cream); color: var(--forest); }
.google-map { position: relative; min-height: 540px; overflow: hidden; background: var(--sage-light); }
.google-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; padding: 120px clamp(24px, 7vw, 112px); background: var(--paper); }
.contact-actions { align-self: center; }
.phone-link { display: flex; align-items: center; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.round-icon.large { width: 58px; height: 58px; }
.phone-link small, .phone-link strong { display: block; }
.phone-link small { margin-bottom: 4px; color: #65736c; }
.phone-link strong { color: var(--forest); font-size: 27px; }
.contact-actions > p { margin: 30px 0 14px; color: #65736c; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 9px; font-weight: 700; transition: border .2s ease, transform .2s ease; }
.social-links a:hover { transform: translateY(-2px); border-color: var(--terra); }
.social-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.social-icon--facebook { fill: currentColor; stroke: none; }
.social-icon--instagram { fill: none; stroke: currentColor; }
.social-links .social-icon { color: var(--terra-dark); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 120px; padding: 25px clamp(24px, 5vw, 80px); background: var(--forest); color: white; }
.footer-brand img { width: 45px; height: 45px; background: var(--cream); mix-blend-mode: normal; }
footer p { color: #cfd9d2; font-size: 14px; }
footer > div { justify-self: end; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
footer > div a { display: inline-flex; align-items: center; gap: 7px; }
footer .social-icon { width: 17px; height: 17px; color: #dce4dc; }

a:focus-visible { outline: 3px solid var(--terra); outline-offset: 4px; border-radius: 4px; }

.reveal { animation: rise .65s ease both; }
.reveal-delay { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto auto; }
  .site-header > nav { display: none; }
  .mobile-nav { display: block; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 750px; }
  .hero-copy { padding-bottom: 170px; }
  .next-lessons { left: 7%; }
  .dojo-section { gap: 60px; }
  .teacher-section { grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); min-height: 580px; gap: 48px; }
  .teacher-grade { display: none; }
  .teacher-portrait { max-width: 400px; }
}

@media (max-width: 760px) {
  .site-header { height: 76px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 0 18px; }
  .brand { min-width: 0; gap: 8px; font-size: 15px; }
  .brand img { flex: 0 0 auto; width: 42px; height: 42px; }
  .header-cta { padding: 10px; font-size: 12px; white-space: nowrap; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; padding: 58px 22px 225px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(50px, 16vw, 68px); line-height: .9; }
  .hero-lead { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-art { min-height: 370px; margin: 20px -40px -40px; }
  .hero-art::before { width: 112vw; right: -22vw; }
  .hero-art img { width: 110vw; max-height: 430px; }
  .sun { width: 62px; height: 62px; right: 18%; }
  .next-lessons { left: 22px; right: 22px; bottom: 34px; width: auto; transform: none; }
  .hero-wave { bottom: -135px; }
  .welcome-strip { grid-template-columns: 1fr; padding-bottom: 30px; }
  .welcome-strip div { padding: 17px 5px; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .welcome-strip div:first-child { border-top: 0; }
  .section { padding: 82px 22px; }
  .dojo-section, .history-section, .teacher-section, .location-section, .contact-section { grid-template-columns: 1fr; }
  .dojo-section { gap: 46px; }
  .history-section { gap: 54px; }
  .history-portrait { width: min(72vw, 280px); max-width: 280px; }
  .history-year { justify-content: flex-start; }
  .history-year span { font-size: 112px; }
  .hero-art::after { right: -22vw; top: 0; width: 112vw; opacity: .055; }
  .affiliation-logo { width: 68px; height: 68px; }
  .section-heading h2, .schedule-section h2, .contact-section h2 { font-size: 53px; }
  .teacher-section { gap: 34px; min-height: auto; padding-top: 82px; padding-bottom: 82px; }
  .teacher-copy { grid-column: 1; }
  .teacher-portrait { grid-column: 1; width: min(100%, 430px); justify-self: center; margin-top: 8px; }
  .teacher-grade { justify-content: flex-start; }
  .teacher-grade span { font-size: 170px; }
  .teacher-copy h2 { font-size: 68px; }
  .schedule-cards { grid-template-columns: 1fr; margin-top: 42px; }
  .schedule-card { min-height: 145px; padding: 26px 24px; }
  .schedule-card p { font-size: 29px; }
  .location-panel { padding: 82px 22px; }
  .google-map { min-height: 420px; }
  .contact-section { gap: 52px; padding: 82px 22px; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 22px; }
  footer > div { justify-self: center; }
}

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