﻿/* TYM theme — concatenated site CSS */

/* Visibility helpers (no Bootstrap) */
.d-none { display: none !important; }
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
}
@media (max-width: 767.98px) {
  .d-md-block { display: none !important; }
}
/* Hallmark Â· tokens Â· A3 hybrid
 * vibe: "luz de maÃ±ana en la alberca, acento celeste"
 * paper: light (from A) Â· accent: sky #a1d3f7 (from A2) Â· axes: light / display-condensed / cool
 * display: Saira Condensed Â· body: Source Sans 3 (from A2)
 * no orange Â· no lilac
 */

:root {
  /* Colour â€” light surfaces from A */
  --color-ink: oklch(26% 0.138 263.5);
  --color-ink-soft: oklch(32% 0.11 263);
  --color-paper: oklch(98% 0.008 263);
  --color-paper-2: oklch(95% 0.012 240);
  --color-paper-3: oklch(92% 0.02 240);
  --color-muted: oklch(48% 0.01 263);
  --color-rule: oklch(86% 0.02 240);
  --color-placeholder: oklch(90% 0.01 263);

  /* Accent / highlight â€” from A2 (sky CTA, teal mark) */
  --color-accent: oklch(84.4% 0.073 240);
  --color-accent-hover: oklch(88% 0.07 240);
  --color-accent-active: oklch(78% 0.08 240);
  --color-accent-ink: oklch(18% 0.08 263);

  --color-highlight: oklch(81.4% 0.052 199.3);
  --color-highlight-ink: oklch(18% 0.08 263);

  /* Section tints â€” sky / teal / lime #e2ff65 */
  --color-tint-sky: oklch(84.4% 0.073 240);
  --color-tint-teal: oklch(81.4% 0.052 199.3);
  --color-tint-lime: oklch(95% 0.179 119); /* #e2ff65 */

  --color-focus: oklch(55% 0.12 240);
  --color-error: oklch(52% 0.18 25);
  --color-success: oklch(55% 0.12 150);

  /* Typography â€” from A2 */
  --font-display: "Saira Condensed", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.75rem, 4vw, 2.25rem);
  --text-4xl: clamp(2rem, 5vw, 3rem);
  --text-display-s: clamp(2.25rem, 6vw, 3.5rem);
  --text-display: clamp(2.75rem, 8vw, 4.5rem);

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-body: 1.55;
  --tracking-display: -0.01em;
  --tracking-label: 0.08em;

  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --measure: 62ch;
  --page-pad: clamp(1rem, 4vw, 1.5rem);
  --page-max: 72rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --rule: 1px solid var(--color-rule);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-med: 220ms;
  --dur-slow: 400ms;

  --nav-h: 4rem;
  --banner-h: 2.75rem;
  --hit: 2.75rem;
}

/* Site entry â€” A3 locked system + legacy aliases during migration */
@import url("./a3.css");

/* â€”â€”â€” High contrast mode â€”â€”â€” */
html[data-contrast="high"],
html[data-contrast="high"][data-bs-theme] {
  --color-ink: oklch(12% 0.02 263);
  --color-ink-soft: oklch(18% 0.03 263);
  --color-paper: oklch(100% 0 0);
  --color-paper-2: oklch(97% 0 0);
  --color-paper-3: oklch(94% 0 0);
  --color-muted: oklch(28% 0.02 263);
  --color-rule: oklch(55% 0.02 263);
  --color-placeholder: oklch(90% 0 0);
  --color-accent: oklch(78% 0.1 240);
  --color-accent-hover: oklch(72% 0.11 240);
  --color-accent-active: oklch(66% 0.11 240);
  --color-accent-ink: oklch(10% 0.04 263);
  --color-highlight: oklch(75% 0.08 199);
  --color-tint-sky: oklch(92% 0.04 240);
  --color-tint-teal: oklch(90% 0.04 199);
  --color-tint-lime: oklch(92% 0.14 119);
  --color-focus: oklch(40% 0.16 240);
}

html[data-contrast="high"] .btn--primary,
html[data-contrast="high"] .promo-banner,
html[data-contrast="high"] .promo-tile__tag {
  outline: 2px solid var(--color-ink);
  outline-offset: 0;
}

html[data-contrast="high"] .program-card,
html[data-contrast="high"] .branch,
html[data-contrast="high"] .qa,
html[data-contrast="high"] .contact__form,
html[data-contrast="high"] .panel {
  border-width: 2px;
  border-color: var(--color-ink);
}

html[data-contrast="high"] .contact .eyebrow,
html[data-contrast="high"] .contact .section-lead,
html[data-contrast="high"] .promos .eyebrow,
html[data-contrast="high"] .promos .section-lead,
html[data-contrast="high"] .page-section--sky .eyebrow,
html[data-contrast="high"] .page-section--sky .section-lead,
html[data-contrast="high"] .page-section--tint .eyebrow,
html[data-contrast="high"] .page-section--tint .section-lead,
html[data-contrast="high"] .page-cta .eyebrow,
html[data-contrast="high"] .page-cta .section-lead {
  color: var(--color-ink);
}

html[data-contrast="high"] .btn--primary:focus-visible {
  outline-color: var(--color-ink);
}

@media (prefers-contrast: more) {
  :root {
    --color-ink: oklch(12% 0.02 263);
    --color-ink-soft: oklch(18% 0.03 263);
    --color-paper: oklch(100% 0 0);
    --color-paper-2: oklch(97% 0 0);
    --color-paper-3: oklch(94% 0 0);
    --color-muted: oklch(28% 0.02 263);
    --color-rule: oklch(55% 0.02 263);
    --color-placeholder: oklch(90% 0 0);
    --color-accent: oklch(78% 0.1 240);
    --color-accent-hover: oklch(72% 0.11 240);
    --color-accent-active: oklch(66% 0.11 240);
    --color-accent-ink: oklch(10% 0.04 263);
    --color-highlight: oklch(75% 0.08 199);
    --color-tint-sky: oklch(92% 0.04 240);
    --color-tint-teal: oklch(90% 0.04 199);
    --color-tint-lime: oklch(92% 0.14 119);
    --color-focus: oklch(40% 0.16 240);
  }

  .btn--primary,
  .promo-banner,
  .promo-tile__tag {
    outline: 2px solid var(--color-ink);
    outline-offset: 0;
  }

  .program-card,
  .branch,
  .contact__form {
    border-width: 2px;
    border-color: var(--color-ink);
  }

  .contact .eyebrow,
  .contact .section-lead,
  .promos .eyebrow,
  .promos .section-lead,
  .page-section--sky .eyebrow,
  .page-section--sky .section-lead,
  .page-section--tint .eyebrow,
  .page-section--tint .section-lead,
  .page-cta .eyebrow,
  .page-cta .section-lead {
    color: var(--color-ink);
  }

  .btn--primary:focus-visible {
    outline-color: var(--color-ink);
  }
}

html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* â€”â€”â€” Legacy aliases (old blades still using btn-slide / section-eyebrow) â€”â€”â€” */
.btn-slide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit);
  padding: 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.btn-slide-transparent,
.btn-slide-transparent-white {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn-slide-white,
.btn-slide-transparent:hover,
.btn-slide:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
}

.btn-slide:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

.section-lead {
  color: var(--color-muted);
  max-width: var(--measure);
}

.page-cta {
  background: var(--color-tint-lime);
  padding: var(--space-3xl) var(--page-pad);
  text-align: center;
}

.page-cta .btn-slide {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

/* Inner page hero (legacy full-bleed) â€” A3-compatible tokens */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl) 0;
  color: var(--color-paper);
  background: var(--color-ink);
}

.hero-section .hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-section .hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section .hero-brand,
.hero-section .hero-title,
.hero-section .hero-lead {
  color: var(--color-paper);
}

.hero-section .btn-slide-transparent-white {
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-paper);
  z-index: 1;
}

/* Banner + nav travel together as one sticky block */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
}

/* relative, not sticky: keeps being the containing block for the mobile panel */
.site-chrome .site-header {
  position: relative;
  top: auto;
}

/* Footer bottom bar: copyright left, a11y controls right */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--rule);
}

.footer__bottom .footer__copy {
  padding-top: 0;
  border-top: 0;
}

/* Social icon buttons (SVG, no icon font) */
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hit);
  height: var(--hit);
  border: var(--rule);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
  text-decoration: none;
}

.footer__social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* A11y panel */
.a11y-panel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.a11y-panel__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
}

.a11y-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit);
  padding: 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 2px solid var(--color-ink);
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.a11y-panel button[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
}

/* Form fields shared */
.tym-form .field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-md);
}

.tym-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tym-form input,
.tym-form select,
.tym-form textarea {
  min-height: var(--hit);
  padding: var(--space-xs) var(--space-sm);
  font: inherit;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 2px solid var(--color-rule);
  border-radius: var(--radius-sm);
}

.tym-form input:focus-visible,
.tym-form select:focus-visible,
.tym-form textarea:focus-visible {
  border-color: var(--color-focus);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.tym-form .field-error {
  color: var(--color-error);
  font-size: var(--text-sm);
}

/* Teaser branch (home) */
.cta-branch {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(58vh, 30rem);
  padding: var(--space-3xl) var(--page-pad);
  background: var(--color-ink);
  color: var(--color-paper);
  overflow: hidden;
}

/* Directional scrim carries the contrast, so the photo keeps full strength */
.cta-branch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      100deg,
      color-mix(in oklab, var(--color-ink) 90%, transparent) 0%,
      color-mix(in oklab, var(--color-ink) 72%, transparent) 45%,
      color-mix(in oklab, var(--color-ink) 25%, transparent) 100%
    ),
    var(--cta-img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-branch__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.cta-branch h2 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  max-width: 28rem;
}

.cta-branch .section-eyebrow,
.cta-branch .eyebrow {
  color: var(--color-tint-lime);
}

.cta-branch .section-lead {
  color: var(--color-paper);
  max-width: 30rem;
  font-size: var(--text-lg);
}

.cta-branch .btn {
  margin-top: var(--space-lg);
}

.cta-branch .btn--outline,
.cta-branch .btn-slide {
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.cta-branch .btn--outline:hover,
.cta-branch .btn-slide:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
}

/* Narrow screens: no room for a side scrim, darken top-down instead */
@media (max-width: 48rem) {
  .cta-branch::before {
    background-image:
      linear-gradient(
        180deg,
        color-mix(in oklab, var(--color-ink) 80%, transparent) 0%,
        color-mix(in oklab, var(--color-ink) 90%, transparent) 100%
      ),
      var(--cta-img);
  }
}

html[data-contrast="high"] .cta-branch::before {
  background-image: none;
}

/* Hub / program grids */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border: var(--rule);
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--color-paper);
  min-height: 8rem;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.hub-card:hover {
  border-color: var(--color-ink);
  transform: translateY(-2px);
}

.hub-card h3 {
  font-size: var(--text-xl);
}

.hub-card p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  flex: 1;
}

.hub-card span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: var(--space-sm);
  color: var(--color-ink);
}

.hub-card span::after {
  content: " â†’";
}

/* Static panels (about, benefits): same look, no link affordance */
.hub-card--static {
  cursor: default;
  min-height: 0;
}

.hub-card--static:hover {
  transform: none;
  border-color: var(--color-rule);
}

.hub-card--media {
  padding: 0;
  overflow: hidden;
}

.hub-card--media picture,
.hub-card--media img {
  display: block;
  width: 100%;
}

.hub-card--media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hub-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-md);
  text-align: center;
}

.hub-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

/* Portrait cards: narrower columns, grid centred instead of left-packed */
.hub-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 15rem));
  justify-content: center;
}

/* Testimonials: centred group, roomier than portraits */
.hub-grid--center {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 20rem));
  justify-content: center;
}

/* li stretches to the row, so cards in a row share one height */
.hub-grid > li {
  list-style: none;
  min-width: 0;
  display: flex;
}

.hub-grid > li > * {
  width: 100%;
}

.about-quote {
  margin: 0;
}

.about-quote p {
  color: var(--color-ink);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

/* p grows, so every cite lands on the same baseline */
.hub-grid .about-quote {
  text-align: center;
}

.hub-grid .about-quote p {
  flex: 1;
}

.about-quote footer,
.about-quote cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.about-video {
  aspect-ratio: 16 / 9;
  background: var(--color-ink);
}

.about-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.stack-gap {
  margin-top: var(--space-md);
}

.stack-gap.btn,
.hero__actions.stack-gap {
  margin-top: var(--space-lg);
}

.section-lead--center {
  margin-inline: auto;
}

.hero__actions--center {
  justify-content: center;
}

/* Shared page container: parents own the inline padding, .wrap only centers */
.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
}

.page-section {
  padding: var(--space-3xl) var(--page-pad);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.page-section--tint {
  background: var(--color-paper-2);
}

.page-section--sky {
  background: var(--color-tint-sky);
}

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.split-row--rtl .split-row__copy {
  order: 2;
}

@media (max-width: 60rem) {
  .split-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-row__copy {
    order: 1;
  }

  .split-row .branch__media {
    order: -1;
  }

  .split-row--rtl .split-row__copy {
    order: 1;
  }
}

/* Promo swiper pagination â€” A3 tokens */
.promo-swiper .swiper-pagination-bullet {
  background: var(--color-accent-ink);
  opacity: 0.35;
}

.promo-swiper .swiper-pagination-bullet-active {
  background: var(--color-accent-ink);
  opacity: 1;
}

.promo-swiper .swiper-pagination {
  position: relative;
  margin-top: var(--space-md);
}

/* Legal / prose pages on A3 */
.legal-page {
  padding: var(--space-3xl) var(--page-pad);
}

.legal-page .wrap {
  max-width: var(--measure);
}

.legal-page h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.legal-page h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-page p,
.legal-page li {
  line-height: var(--leading-body);
  margin-bottom: var(--space-sm);
}

.legal-page ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

/* Body offset for fixed/sticky chrome â€” A3 sticky header is in flow; reset old margin */
body {
  margin-top: 0 !important;
}

.logo-img {
  height: 2.25rem;
  width: auto;
}

/* Hallmark Â· pre-emit critique: P5 H5 E5 S5 R5 V5
 * Hallmark Â· macrostructure: Split Studio Â· tone: austere-sport Â· genre: modern-minimal
 * theme: custom A3 hybrid (vibe: "luz de maÃ±ana en la alberca, acento celeste")
 * paper: light oklch(98% 0.008 263) from A Â· accent: sky from A2 Â· axes: light / display-condensed / cool
 * display: Saira Condensed Â· body: Source Sans 3 (from A2)
 * banner/buttons/mark/tag Â· A2 sky+teal Â· surfaces Â· A light
 * nav: N12 Â· footer: Ft1 Â· stats: none Â· enrichment: none
 * slop test: 58 / 58 âœ“
 * variant: A3 â€” hybrid of A light surfaces + A2 accent/type
 */

@import url("./tokens.css");

/* â€”â€”â€” Reset / base â€”â€”â€” */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

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

figure {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

p {
  margin: 0;
}

.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;
}

/* Focus â€” instant, never animated */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.btn--primary:focus-visible {
  outline-color: var(--color-accent-ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus-visible {
  top: var(--space-md);
}

/* â€”â€”â€” Buttons â€”â€”â€” */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit);
  padding: 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
}

.btn--primary:hover,
.btn--primary.is-hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn--primary:active,
.btn--primary.is-active {
  background: var(--color-accent-active);
  transform: translateY(1px);
}

.btn--outline,
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn--outline::before,
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
  z-index: -1;
}

.btn--outline:hover::before,
.btn--outline.is-hover::before,
.btn--ghost:hover::before,
.btn--ghost.is-hover::before {
  transform: scaleX(1);
}

.btn--outline:hover,
.btn--outline.is-hover,
.btn--ghost:hover,
.btn--ghost.is-hover {
  color: var(--color-paper);
}

.btn--outline:active,
.btn--outline.is-active,
.btn--ghost:active,
.btn--ghost.is-active {
  transform: translateY(1px);
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 1;
  background: var(--color-paper-3);
  color: var(--color-muted);
  border-color: var(--color-rule);
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary:disabled,
.btn--primary[aria-disabled="true"] {
  background: color-mix(in oklch, var(--color-accent) 50%, var(--color-paper-3));
  color: var(--color-muted);
  border-color: color-mix(in oklch, var(--color-accent) 50%, var(--color-paper-3));
}

/* â€”â€”â€” N12 Banner + nav â€”â€”â€” */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  min-height: var(--banner-h);
  padding: var(--space-xs) var(--page-pad);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  text-align: center;
  position: relative;
  z-index: 60;
}

.promo-banner[hidden] {
  display: none;
}

.promo-banner__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 3rem);
}

.promo-banner__link {
  font-weight: 700;
  margin-left: var(--space-xs);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.promo-banner__dismiss {
  position: absolute;
  right: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);
  width: var(--hit);
  height: var(--hit);
  border: 0;
  background: transparent;
  color: var(--color-accent-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* relative containing block for mobile nav panel */
  background: color-mix(in oklch, var(--color-paper) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              backdrop-filter var(--dur-med) var(--ease-out);
}

.site-header.is-frost {
  background: color-mix(in oklch, var(--color-paper) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: var(--color-rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  min-height: var(--nav-h);
}

.nav__brand img {
  height: 2.25rem;
  width: auto;
}

.nav__toggle {
  display: none;
  width: var(--hit);
  height: var(--hit);
  border: 0;
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-ink);
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: var(--space-xs) 0;
}

.nav__list a:hover {
  color: var(--color-ink-soft);
}

.nav__cta {
  min-height: var(--hit);
  padding-inline: var(--space-md);
  font-size: var(--text-base);
}

/* â€”â€”â€” Section shared â€”â€”â€” */
.section-head {
  max-width: 36rem;
  margin: 0 0 var(--space-2xl);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.section-lead {
  margin-top: var(--space-sm);
  color: var(--color-muted);
  max-width: var(--measure);
}

.placeholder,
.placeholder-inline,
.placeholder-block {
  background: var(--color-placeholder);
  color: var(--color-muted);
  border-radius: var(--radius-sm);
}

.placeholder {
  display: inline-block;
  min-width: 3ch;
  padding: 0 var(--space-xs);
  text-align: center;
}

.placeholder-inline {
  display: inline-block;
  padding: var(--space-3xs) var(--space-xs);
  font-size: var(--text-sm);
}

.placeholder-block {
  display: block;
  padding: var(--space-sm);
  margin: var(--space-sm) 0;
  font-size: var(--text-sm);
}

/* â€”â€”â€” Hero H2 split 7/5 â€”â€”â€” */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--page-pad);
}

.hero__title {
  font-size: var(--text-display);
  margin: var(--space-xs) 0 var(--space-md);
}

.mark {
  background: linear-gradient(transparent 62%, color-mix(in oklch, var(--color-highlight) 70%, transparent) 62%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__lede {
  color: var(--color-muted);
  font-size: var(--text-lg);
  max-width: 34ch;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__media {
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-paper-2);
  aspect-ratio: 4 / 3;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* â€”â€”â€” T4 Stats â€”â€”â€” */
.stats {
  background: var(--color-paper-2);
  border-block: var(--rule);
  padding: var(--space-2xl) var(--page-pad);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: var(--page-max);
  margin: 0 auto;
}

.stats__item {
  text-align: center;
  min-width: 0;
}

.stats__value {
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-xs);
}

.stats__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
}

.stats__note {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}

/* â€”â€”â€” F6 Programs â€”â€”â€” */
.programs {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--page-pad);
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.program-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  background: var(--color-paper);
  border: var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.program-card:hover {
  border-color: var(--color-ink);
  transform: translateY(-2px);
}

.program-card__media {
  aspect-ratio: 4 / 3;
  min-width: 0;
  background: var(--color-paper-3);
  overflow: hidden;
}

.program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
}

.program-card__body h3 {
  font-size: var(--text-xl);
}

.program-card__body p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  flex: 1;
}

.program-card__cue {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
  color: var(--color-ink);
}

.program-card__cue::after {
  content: " â†’";
}

.programs__grid > li {
  display: flex;
  min-width: 0;
}

/* Equal-height program cards â€” media + body stretch as one unit */
.programs__grid .hub-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 0;
}

.programs__grid .hub-card--media picture,
.programs__grid .hub-card--media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.programs__grid .hub-card__body {
  flex: 1;
  text-align: left;
}

.programs__grid .hub-card__body p {
  flex: 1;
}

.programs__grid .hub-card span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: var(--space-sm);
  color: var(--color-ink);
}

/* â€”â€”â€” F1 Promos bento â€”â€”â€” */
.promos {
  background: var(--color-tint-sky);
  padding: var(--space-3xl) var(--page-pad);
}

.promos .section-head {
  max-width: var(--page-max);
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.promos__bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: var(--space-md);
  max-width: var(--page-max);
  margin: 0 auto;
}

.promo-tile {
  min-width: 0;
  min-height: 10rem;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  border: var(--rule);
  position: relative;
  overflow: hidden;
}

.promo-tile--lg {
  grid-row: span 2;
  min-height: 22rem;
}

.promo-tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-accent-ink);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.promo-tile__placeholder {
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      color-mix(in oklch, var(--color-rule) 50%, transparent) 8px,
      color-mix(in oklch, var(--color-rule) 50%, transparent) 9px
    );
}

.promo-tile__tag {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--text-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  align-self: flex-start;
  padding: var(--space-3xs) var(--space-xs);
}

.promo-tile__placeholder p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  background: var(--color-paper);
  padding: var(--space-2xs) var(--space-xs);
  align-self: flex-start;
}

/* â€”â€”â€” Branches Split Studio â€”â€”â€” */
.branches {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--page-pad);
}

.branch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  margin-top: var(--space-3xl);
}

.branch--rtl .branch__copy {
  order: 2;
}

.branch--rtl .branch__media {
  order: 1;
}

.branch__copy h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.branch__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: var(--space-md) 0 var(--space-lg);
}

.branch__label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-muted);
  font-weight: 600;
}

.branch__media {
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-paper-2);
}

.branch__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tinted sections â€” ink text on sky/teal/lime (muted fails WCAG) */
.contact .eyebrow,
.contact .section-lead,
.contact .section-eyebrow,
.promos .eyebrow,
.promos .section-lead,
.promos .section-eyebrow,
.page-section--sky .eyebrow,
.page-section--sky .section-lead,
.page-section--sky .section-eyebrow,
.page-section--tint .eyebrow,
.page-section--tint .section-lead,
.page-section--tint .section-eyebrow,
.page-cta .eyebrow,
.page-cta .section-lead {
  color: var(--color-ink);
}

/* â€”â€”â€” Contact C2 â€”â€”â€” */
.contact {
  background: var(--color-tint-teal);
  padding: var(--space-3xl) var(--page-pad);
}

.contact__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.contact__form {
  background: var(--color-paper);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field-checkbox {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  cursor: pointer;
}

.field-checkbox input[type="checkbox"] {
  min-height: var(--hit);
  min-width: var(--hit);
  margin-top: 0;
  flex-shrink: 0;
}

.field input,
.field select,
.field textarea {
  min-height: var(--hit);
  padding: var(--space-xs) var(--space-sm);
  font: inherit;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 2px solid var(--color-rule);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--color-muted);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--color-focus);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* â€”â€”â€” Ft1 Footer â€”â€”â€” */
.footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--page-pad) var(--space-xl);
  border-top: var(--rule);
}

.footer__mast {
  margin-bottom: var(--space-xl);
}

.footer__mast img {
  height: 2.5rem;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  max-width: 28ch;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.footer__hours {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__links a,
.footer__social a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.footer__links a:hover,
.footer__social a:hover {
  text-decoration: underline;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-muted);
  padding-top: var(--space-md);
  border-top: var(--rule);
}

/* â€”â€”â€” Motion: reveal â€”â€”â€” */
.reveal {
  /* visible by default â€” never hide content without support */
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in var(--dur-slow) var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }

    .reveal--delay {
      animation-delay: 80ms;
    }
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal--delay {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .btn,
  .program-card,
  .site-header,
  .btn--outline::before,
  .btn--ghost::before {
    transition-duration: 0.01ms !important;
  }
}

/* â€”â€”â€” Responsive â€”â€”â€” */
@media (max-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--space-2xl);
  }

  .hero__media {
    order: -1;
    max-height: 20rem;
  }

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

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

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

  .promo-tile--lg {
    grid-row: auto;
    min-height: 14rem;
  }

  .branch {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .branch--rtl .branch__copy,
  .branch--rtl .branch__media {
    order: unset;
  }

  .branch__media {
    order: -1;
  }

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

@media (max-width: 40rem) {
  .nav__toggle {
    display: flex;
  }

  .nav__panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-md) var(--page-pad) var(--space-lg);
    background: var(--color-paper);
    border-bottom: var(--rule);
  }

  .nav__panel.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav__list a {
    display: flex;
    align-items: center;
    min-height: var(--hit);
    width: 100%;
  }

  .nav__cta {
    width: 100%;
  }

  .promo-banner__text {
    font-size: var(--text-xs);
    white-space: normal;
  }

  .hero__title {
    font-size: var(--text-display-s);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

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

  .footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links,
  .footer__social {
    gap: var(--space-md);
  }

  .footer__links a,
  .footer__social a {
    min-height: var(--hit);
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 25rem) {
  .programs__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 992px) {
    .toggler {
        display: none;
    }

    .hero-section {
        min-height: calc(100dvh - var(--navbar-height));
    }
}

@media (min-width: 768px) {
    footer {
        max-height: var(--footer-height);
    }
}

