:root {
  /* Palette taken from the dojo's own poster: deep navy, brick rust and teal
     on the same warm paper. Token names kept (moss/seal) so nothing else in
     the stylesheet had to move — only the values changed. */
  --ink: #16202b;
  --paper: #f5f1e8;
  --paper-2: #efe8da;
  --stone: #7f8a8f;
  --wood: #8b6b4a;
  --moss: #1a6a67;        /* teal   — was moss green */
  --moss-dark: #14293f;   /* navy   — was dark green */
  --seal: #b8442a;        /* rust   — was oxblood */
  --line: rgba(20, 41, 63, 0.2);
  --soft-line: rgba(20, 41, 63, 0.11);
  --shadow: 0 22px 60px rgba(20, 41, 63, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --brush: "Permanent Marker", "Comic Sans MS", cursive;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 12%, rgba(139, 107, 74, 0.08), transparent 24rem),
    linear-gradient(120deg, var(--paper), #fbf8f0 46%, var(--paper-2));
  font-family: var(--sans);
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(20, 41, 63, 0.08) 0.65px, transparent 0.65px),
    radial-gradient(rgba(255, 255, 255, 0.6) 0.75px, transparent 0.75px);
  background-size: 5px 5px, 7px 7px;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 40;
  width: min(calc(100% - 40px), 1510px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--ink);
  transform: translateX(-50%);
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(245, 241, 232, 0.88);
  border-color: var(--soft-line);
  box-shadow: 0 14px 40px rgba(20, 41, 63, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  order: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 172px;
  min-width: 172px;
  height: 64px;
  overflow: visible;
}

.brand::before {
  display: none;
}

.brand img {
  display: block;
  width: 162px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.header-actions {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.72);
  overflow: hidden;
}

.language-toggle button {
  width: 39px;
  height: 100%;
  border: 0;
  border-right: 1px solid var(--soft-line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-toggle button:last-child {
  border-right: 0;
}

.language-toggle button.active {
  background: var(--moss-dark);
  color: var(--paper);
}

.nav {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 46px);
  font-family: var(--serif);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 7px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
}

.section-panel {
  width: min(calc(100% - 40px), 1510px);
  margin: 40px auto;
  border: 1px solid rgba(20, 41, 63, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(245, 241, 232, 0.82);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  margin-top: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  scale: 1.08;
  translate: 4% 0;
  background:
    linear-gradient(to bottom, rgba(245, 241, 232, 0.06), rgba(20, 41, 63, 0.58)),
    url("assets/dojo-group-hero.webp") center center/cover;
  filter: saturate(0.86) contrast(1) brightness(0.84);
}

.hero-shade {
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(245, 241, 232, 0.5), transparent 26rem),
    radial-gradient(circle at 50% 31%, rgba(245, 241, 232, 0.32), transparent 21rem),
    linear-gradient(to top, rgba(20, 41, 63, 0.62), transparent 50%);
}

.enso {
  width: clamp(150px, 18vw, 280px);
  aspect-ratio: 1;
  border: clamp(14px, 1.8vw, 24px) solid rgba(20, 41, 63, 0.12);
  border-left-color: transparent;
  border-bottom-color: rgba(20, 41, 63, 0.06);
  border-radius: 50%;
}

.enso-hero {
  position: absolute;
  z-index: -1;
  top: 20%;
  left: 50%;
  border-color: rgba(245, 241, 232, 0.26);
  border-left-color: transparent;
  border-bottom-color: rgba(245, 241, 232, 0.08);
  transform: translateX(-50%) rotate(-16deg);
}

.hero-content {
  display: grid;
  justify-items: center;
  padding: 76px 20px 42px;
  text-align: center;
  transform: translateY(-6%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-logo-image {
  width: min(400px, 42vw);
  max-height: none;
  padding: 0;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(245, 241, 232, 0.92))
    drop-shadow(0 1px 0 rgba(245, 241, 232, 0.72))
    drop-shadow(0 14px 24px rgba(20, 41, 63, 0.2));
}

.hero-subtitle {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 3.3rem);
  font-weight: 600;
  line-height: 0.95;
  text-shadow: 0 10px 28px rgba(20, 41, 63, 0.36);
}

.hero-copy {
  max-width: 590px;
  margin: 0;
  color: rgba(245, 241, 232, 0.88);
  font-size: 0.94rem;
  line-height: 1.48;
}

.disciplines {
  margin: 10px 0 20px;
  color: rgba(245, 241, 232, 0.92);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-secondary {
  margin-top: 10px;
  color: rgba(245, 241, 232, 0.88);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-secondary::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 6px;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--seal);
  background: var(--seal);
  color: #fff;
}

.button.quiet {
  background: var(--moss-dark);
  color: #fff;
}

.button.light {
  background: var(--paper);
  color: var(--moss-dark);
}

.scroll-cue {
  position: absolute;
  bottom: 42px;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translateX(-50%) rotate(45deg);
}

.scroll-cue span {
  display: block;
  width: 100%;
  height: 100%;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  border-bottom: 2px solid rgba(255, 255, 255, 0.82);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.58;
  }
  50% {
    transform: translate(7px, 7px);
    opacity: 1;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 560px;
}

.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal img,
.art-card img,
.image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 700ms ease;
}

.image-reveal:hover img,
.art-card:hover img {
  scale: 1.045;
}

.image-reveal.tall img {
  object-position: center 56%;
}

.copy-block {
  padding: clamp(36px, 4.8vw, 70px);
  background: rgba(251, 248, 240, 0.86);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.3vw, 5rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead,
.copy-block > p,
.dojo-copy p,
.section-head p,
.contact-inner p {
  color: rgba(20, 41, 63, 0.72);
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
  line-height: 1.75;
}

.virtues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
  margin-top: 34px;
}

.virtue {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
}

.virtue strong {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.9;
  font-weight: 500;
}

.virtue h3,
.art-card h3,
.teacher-card h3,
.price-card h3,
.feature h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.virtue p,
.art-card p,
.teacher-card p,
.teacher-card span,
.price-card p,
.feature p,
.note {
  margin: 0;
  color: rgba(20, 41, 63, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.dojo-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
  padding: clamp(34px, 5vw, 64px) clamp(34px, 6vw, 84px);
  background: var(--moss-dark);
  color: var(--paper);
}

.dojo-copy p {
  color: rgba(245, 241, 232, 0.76);
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 210px;
  overflow: hidden;
}

.image-strip img:first-child {
  object-position: 68% 48%;
}

.image-strip img:last-child {
  object-position: center 56%;
}

.arts,
.teachers,
.schedule-pricing,
.features,
.contact {
  padding: clamp(38px, 5vw, 72px) clamp(26px, 5vw, 58px);
}

.section-head {
  margin: 0 auto clamp(28px, 4vw, 48px);
  max-width: 720px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2.5rem, 4.2vw, 4.5rem);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.art-card,
.teacher-card,
.price-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(251, 248, 240, 0.64);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.art-card:hover,
.teacher-card:hover,
.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 41, 63, 0.24);
  box-shadow: 0 18px 42px rgba(20, 41, 63, 0.1);
}

.art-card img {
  aspect-ratio: 1.52;
  height: auto;
  object-fit: cover;
}

.art-card h3,
.art-card p,
.art-card span,
.art-card small {
  padding: 0 20px;
}

.art-card h3 {
  margin-top: 20px;
}

.art-card span,
.art-card small {
  display: block;
  margin-top: 12px;
  color: rgba(20, 41, 63, 0.62);
  font-size: 0.78rem;
  line-height: 1.45;
}

.art-card small {
  color: var(--moss-dark);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.art-card a,
.art-card button {
  display: inline-flex;
  width: auto;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin: 20px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--moss);
  color: var(--paper);
  border: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 200ms ease, background 200ms ease;
}

.art-card:hover a,
.art-card:hover button {
  transform: translateX(4px);
  background: var(--seal);
}

.art-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.art-modal.open {
  display: grid;
}

.art-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 41, 63, 0.42);
  backdrop-filter: blur(10px);
}

.art-modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid rgba(20, 41, 63, 0.28);
  border-radius: 8px;
  background: rgba(245, 241, 232, 0.96);
  box-shadow: 0 34px 90px rgba(20, 41, 63, 0.26);
}

.art-modal-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.art-modal-copy {
  display: grid;
  gap: 18px;
}

.art-modal-copy p {
  margin: 0;
  color: rgba(20, 41, 63, 0.76);
  font-size: 1rem;
  line-height: 1.78;
}

.art-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1140px;
  margin: 0 auto;
}

.teacher-card {
  min-height: 250px;
  padding: 20px 16px;
}

/* five across needs a little more room than the default page gutter */
@media (min-width: 1025px) {
  .teachers .section-head,
  .teacher-grid {
    max-width: 1140px;
  }
}

@media (max-width: 1024px) and (min-width: 721px) {
  .teacher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
  }
}

.portrait {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  border-radius: 50%;
  background:
    linear-gradient(rgba(245, 241, 232, 0.12), rgba(245, 241, 232, 0.36)),
    var(--portrait) var(--portrait-position, center)/cover;
  filter: grayscale(1) contrast(1.08);
}

.p1 {
  --portrait: url("assets/gabriel-jiu-jitsu-teacher.webp");
  --portrait-position: center 2%;
}

.p5 {
  --portrait: url("assets/felix-aikido-teacher.webp");
  --portrait-position: center 30%;
}

.p2 {
  --portrait: url("assets/tal-judo-teacher.jpg");
  --portrait-position: center 35%;
}

.p3 {
  --portrait: url("assets/ken-jiu-jitsu-teacher.webp");
}

.p4 {
  --portrait: url("assets/arturo-youth-jiu-jitsu-teacher.webp");
}

.teacher-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--seal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.schedule-block h2,
.pricing-block h2 {
  margin-bottom: 26px;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.schedule-block {
  min-width: 0;
}

.schedule-scroll-hint {
  display: none;
  margin: -14px 0 12px;
  color: rgba(20, 41, 63, 0.62);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.schedule-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  background: rgba(251, 248, 240, 0.72);
  box-shadow: 0 12px 28px rgba(20, 41, 63, 0.05);
  scrollbar-color: var(--moss) rgba(20, 41, 63, 0.08);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.schedule-wrap:focus-visible {
  outline: 3px solid rgba(142, 44, 44, 0.55);
  outline-offset: 4px;
}

.weekly-schedule {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.weekly-schedule th,
.weekly-schedule td {
  border: 0;
}

.weekly-schedule thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 13px 12px;
  border-right: 1px solid rgba(245, 241, 232, 0.16);
  background: var(--moss);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-align: left;
  text-transform: uppercase;
}

.weekly-schedule thead th:first-child {
  left: 0;
  z-index: 5;
  width: 82px;
  text-align: center;
}

.weekly-schedule thead th:last-child {
  border-right: 0;
}

.weekly-schedule tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 82px;
  padding: 13px 8px;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: var(--paper-2);
  color: var(--moss-dark);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-align: center;
  vertical-align: top;
  white-space: nowrap;
}

.weekly-schedule tbody td {
  height: 88px;
  padding: 6px;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  vertical-align: top;
}

.weekly-schedule tbody td:last-child {
  border-right: 0;
}

.weekly-schedule tbody tr:last-child th,
.weekly-schedule tbody tr:last-child td {
  border-bottom: 0;
}

.weekly-empty {
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(20, 41, 63, 0.025) 50%, transparent 50.5%);
  background-size: 12px 12px;
}

.weekly-empty::after {
  display: block;
  margin-top: 18px;
  color: rgba(20, 41, 63, 0.2);
  content: "—";
  font-family: var(--serif);
  font-size: 1rem;
  text-align: center;
}

.weekly-class {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 9px 8px 13px;
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.92);
}

.weekly-class .class-time {
  color: var(--moss-dark);
  font-family: var(--serif);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.weekly-class strong {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.025em;
  line-height: 1.08;
  text-transform: uppercase;
}

.weekly-class small {
  color: rgba(20, 41, 63, 0.62);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.weekly-class small b {
  color: var(--ink);
  font-weight: 800;
}

.weekly-class[data-discipline="jiu-jitsu"] {
  box-shadow: inset 4px 0 rgba(69, 116, 143, 0.72);
}

.weekly-class[data-discipline="judo"] {
  box-shadow: inset 4px 0 rgba(109, 139, 72, 0.82);
}

.weekly-class[data-discipline="aikido"] {
  box-shadow: inset 4px 0 rgba(176, 143, 50, 0.78);
}

.weekly-class[data-discipline="lucha"] {
  box-shadow: inset 4px 0 rgba(142, 44, 44, 0.66);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.note {
  margin-top: 13px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 16px;
}

.price-card {
  padding: 28px 22px;
  text-align: center;
}

.price-card.featured {
  background: var(--moss);
  color: var(--paper);
}

.price-card.featured p,
.price-card.featured li {
  color: rgba(245, 241, 232, 0.82);
}

.price {
  margin: 20px 0 6px !important;
  color: inherit !important;
  font-family: var(--serif);
  font-size: 2.8rem !important;
  line-height: 0.9 !important;
}

.price span {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.86rem;
}

ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

li {
  color: rgba(20, 41, 63, 0.68);
  font-size: 0.85rem;
}

li::before {
  content: "✓";
  margin-right: 7px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.feature {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.feature span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--wood);
  font-size: 1.7rem;
}

.contact {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-inner {
  max-width: 740px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.enso-footer {
  position: absolute;
  right: 7%;
  bottom: 8%;
  opacity: 0.35;
  transform: rotate(-16deg);
}

.footer {
  width: min(calc(100% - 40px), 1510px);
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 18px 0;
}

.footer-brand {
  position: relative;
}

.footer-brand img {
  width: 210px;
  max-height: 74px;
}

.footer p {
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.9;
  text-transform: uppercase;
}

.whatsapp {
  position: fixed;
  right: 34px;
  bottom: 30px;
  z-index: 45;
  isolation: isolate;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 0 24px 0 18px;
  border: 1px solid rgba(245, 241, 232, 0.48);
  border-radius: 999px;
  background: #237a45;
  color: #fff;
  box-shadow: 0 12px 34px rgba(20, 41, 63, 0.28);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  animation: whatsappIn 900ms ease 800ms backwards;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.whatsapp::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  animation: whatsappPulse 2.8s ease-out 1.8s infinite;
}

.whatsapp svg {
  width: 38px;
  flex: 0 0 38px;
  fill: currentColor;
}

.whatsapp span {
  white-space: nowrap;
}

.whatsapp:hover {
  background: #1d693b;
  box-shadow: 0 0 0 9px rgba(35, 122, 69, 0.16), 0 12px 34px rgba(20, 41, 63, 0.28);
  transform: translateY(-2px);
}

.whatsapp:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(35, 122, 69, 0.32), 0 12px 34px rgba(20, 41, 63, 0.28);
}

@keyframes whatsappIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes whatsappPulse {
  0%,
  36%,
  100% {
    box-shadow: 0 0 0 0 rgba(35, 122, 69, 0.46);
    opacity: 0.9;
  }
  72% {
    box-shadow: 0 0 0 17px rgba(35, 122, 69, 0);
    opacity: 0;
  }
}

/* ---- contact map ------------------------------------------------------- */
.contact-map {
  margin: 34px auto 0;
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  filter: saturate(0.82) contrast(1.02);
}

.map-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid var(--soft-line);
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.map-address svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--seal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-address:hover {
  background: var(--paper-2);
  color: var(--seal);
}

.map-address:focus-visible {
  outline: 3px solid var(--seal);
  outline-offset: -3px;
}

@media (max-width: 820px) {
  .contact-map {
    margin-top: 26px;
    max-width: none;
  }

  .contact-map iframe {
    height: 220px;
  }
}

/* ---------------------------------------------------------------
   Floating chat widget — Orbit-style circular agent bubble sitting
   above the WhatsApp button it points at.
   --------------------------------------------------------------- */

.chat-widget {
  position: fixed;
  right: 34px;
  bottom: 30px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  --bubble-size: 128px;
}

.chat-widget .whatsapp {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: auto;
}

.chat-widget-avatar {
  position: relative;
  display: block;
  width: var(--bubble-size);
  height: var(--bubble-size);
  animation: chatBubbleIn 620ms cubic-bezier(0.32, 0.72, 0, 1) 700ms backwards;
  transition: transform 200ms ease;
}

.chat-widget-media {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid #f5f1e8;
  border-radius: 50%;
  background: #d8d2c4 url("assets/whatsapp-coach-bubble.jpg") center / cover;
  box-shadow:
    0 14px 32px rgba(20, 41, 63, 0.32),
    0 0 0 3px rgba(35, 122, 69, 0.5);
  transition: box-shadow 200ms ease;
}

.chat-widget-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  /* iOS swallows a tap that lands on a <video> inside a link, so the coach's
     face — the obvious thing to tap — did nothing. Every part of the widget
     must pass its tap through to the anchor. */
  pointer-events: none;
}

.chat-widget-avatar,
.chat-widget-media {
  pointer-events: none;
}

.chat-widget-online {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 17px;
  height: 17px;
  border: 3px solid #f5f1e8;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
  pointer-events: none;
}

/* The stem is what ties the pointing coach to the button below him. */
.chat-widget-stem {
  position: relative;
  display: block;
  width: 4px;
  height: 16px;
  margin: 3px 0 12px;
  background: #237a45;
  border-radius: 2px;
  animation: chatBubbleIn 620ms ease 820ms backwards;
}

.chat-widget-stem::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid #237a45;
}

.chat-widget:hover .chat-widget-avatar {
  transform: translateY(-2px) scale(1.04);
}

.chat-widget:hover .chat-widget-media {
  box-shadow:
    0 18px 38px rgba(20, 41, 63, 0.36),
    0 0 0 5px rgba(35, 122, 69, 0.55);
}

.chat-widget:focus-visible {
  outline: none;
}

.chat-widget:focus-visible .whatsapp {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(35, 122, 69, 0.32), 0 12px 34px rgba(20, 41, 63, 0.28);
}

.chat-widget:focus-visible .chat-widget-media {
  outline: 3px solid #237a45;
  outline-offset: 4px;
}

@keyframes chatBubbleIn {
  from {
    opacity: 0;
    transform: scale(0.72) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  clip-path: inset(0 0 18% 0);
  transition:
    opacity 740ms ease,
    transform 740ms ease,
    clip-path 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

.virtue:nth-child(2),
.art-card:nth-child(2),
.teacher-card:nth-child(2),
.feature:nth-child(2) {
  transition-delay: 80ms;
}

.virtue:nth-child(3),
.art-card:nth-child(3),
.teacher-card:nth-child(3),
.feature:nth-child(3) {
  transition-delay: 160ms;
}

.virtue:nth-child(4),
.art-card:nth-child(4),
.teacher-card:nth-child(4),
.feature:nth-child(4) {
  transition-delay: 240ms;
}

.art-card:nth-child(5),
.teacher-card:nth-child(5) {
  transition-delay: 320ms;
}

@media (max-width: 1180px) {
  .site-header {
    padding: 0 24px;
  }

  .nav {
    gap: 18px;
    font-size: 0.66rem;
  }

  .art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-pricing {
    grid-template-columns: 1fr;
  }

  .schedule-scroll-hint {
    display: block;
  }

}

@media (max-width: 1400px) {
  .schedule-pricing {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    height: 62px;
    border-radius: 8px;
    padding: 0 18px;
  }

  .brand::before {
    display: none;
  }

  .brand {
    width: 154px;
    min-width: 154px;
    height: 54px;
  }

  .brand img {
    width: 145px;
    height: auto;
    max-height: 52px;
  }

  .header-actions {
    margin-left: auto;
  }

  .language-toggle {
    height: 34px;
  }

  .menu-button {
    position: relative;
    z-index: 42;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--ink);
    transition: transform 220ms ease;
  }

  .menu-button span + span {
    margin-top: -13px;
  }

  .site-header.menu-active .menu-button span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.menu-active .menu-button span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: 74px 12px auto;
    display: grid;
    gap: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(245, 241, 232, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .site-header.menu-active .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .section-panel {
    width: calc(100% - 24px);
    margin: 24px auto;
  }

  .hero {
    /* Was pinned to 760px, which left ~200px of empty gradient under the
       buttons — the scroll arrow that used to fill it is hidden on phones.
       Let the hero end where its content ends. */
    min-height: 0;
    margin-top: 24px;
    background: linear-gradient(145deg, var(--paper) 0%, #dfcdb0 72%, #b99b77 100%);
  }

  .hero-media {
    top: 0;
    bottom: auto;
    height: calc((100vw - 24px) * 0.5625);
    scale: 1;
    translate: 0;
    background: url("assets/dojo-group-hero.webp") center/cover no-repeat;
    filter: none;
  }

  .hero-shade {
    background: linear-gradient(
      to bottom,
      rgba(20, 41, 63, 0.16) 0%,
      rgba(20, 41, 63, 0) calc((100vw - 24px) * 0.5625),
      rgba(245, 241, 232, 0) 100%
    );
  }

  .hero-content {
    width: 100%;
    align-self: start;
    padding: calc((100vw - 24px) * 0.5625 + 34px) 12px 64px;
    color: var(--ink);
    transform: none;
  }

  .hero-logo {
    font-size: clamp(5rem, 23vw, 8rem);
  }

  .hero-logo-image {
    width: min(310px, 82vw);
    padding: 0;
    max-height: none;
  }

  .hero-copy {
    display: none;
  }

  .hero-subtitle {
    font-size: clamp(1.9rem, 9.5vw, 2.65rem);
    text-shadow: none;
  }

  .disciplines,
  .hero-secondary {
    color: rgba(20, 41, 63, 0.82);
  }

  .scroll-cue {
    display: none;
  }

  .split,
  .dojo-band {
    grid-template-columns: 1fr;
  }

  .image-reveal.tall {
    min-height: 380px;
  }

  .copy-block {
    padding: 36px 24px;
  }

  .virtues,
  .art-grid,
  .teacher-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .dojo-band,
  .arts,
  .teachers,
  .schedule-pricing,
  .features,
  .contact {
    padding: 34px 20px;
  }

  .schedule-pricing {
    display: block;
  }

  .schedule-pricing .reveal,
  .schedule-block.reveal,
  .pricing-block.reveal {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }

  .schedule-block,
  .pricing-block,
  .schedule-wrap,
  .pricing-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .schedule-wrap {
    overflow-x: auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .schedule-scroll-hint {
    display: block;
  }

  .weekly-schedule {
    min-width: 1020px;
  }

  .weekly-schedule thead th:first-child,
  .weekly-schedule tbody th {
    width: 74px;
  }

  .image-strip {
    height: auto;
    grid-template-columns: 1fr;
  }

  .image-strip img {
    aspect-ratio: 1.9;
  }

  .footer {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chat-widget {
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    --bubble-size: 92px;
  }

  .chat-widget-stem {
    height: 12px;
    margin: 3px 0 11px;
  }

  .chat-widget-online {
    right: 6px;
    bottom: 6px;
    width: 14px;
    height: 14px;
    border-width: 2.5px;
  }

  .whatsapp {
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: calc(100vw - 24px);
    min-height: 68px;
    gap: 10px;
    padding: 0 18px 0 15px;
    justify-content: center;
    border-radius: 999px;
    font-size: 13px;
  }

  .whatsapp svg {
    width: 36px;
    flex-basis: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .whatsapp {
    animation: none;
  }

  .whatsapp::before {
    display: none;
    animation: none;
  }

  .chat-widget-video {
    display: none;
  }

  .chat-widget-avatar,
  .chat-widget-stem {
    animation: none;
  }
}

/* ---- guías en casa (home) --------------------------------------------- */
.guias-home .guia-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.guia-card {
  --c: var(--moss-dark);
  position: relative;
  display: block;
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 3px var(--c);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px),
    calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.guia-card.guia-b { --c: var(--seal); }
.guia-card.guia-c { --c: var(--moss); }
.guia-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 4px var(--c); }
.guia-card .guia-k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c);
  font-weight: 700;
  margin-bottom: 8px;
}
.guia-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 8px;
}
.guia-card .guia-m {
  display: block;
  font-size: 0.86rem;
  color: var(--stone);
}
