:root {
  color-scheme: light;
  --bg: #f4f8f7;
  --surface: #ffffff;
  --surface-soft: #edf6f7;
  --ink: #182128;
  --muted: #5a6670;
  --line: rgba(24, 33, 40, 0.14);
  --line-strong: rgba(24, 33, 40, 0.24);
  --blue: #166d84;
  --blue-dark: #0d4f61;
  --coral: #e65f53;
  --yellow: #f3c64c;
  --green: #2d8b72;
  --max: 1160px;
  --wide: 1280px;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(18, 35, 42, 0.14);
  --font: "Noto Sans JP", "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
}

p,
h1,
h2,
h3,
a,
button,
label,
summary {
  overflow-wrap: anywhere;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(22, 109, 132, 0.36);
  outline-offset: 3px;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(calc(100% - 40px), var(--wide));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.page:not(.home-page) .site-header {
  color: var(--ink);
  background: rgba(244, 248, 247, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 28px rgba(20, 30, 36, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.site-header.is-scrolled .brand img,
.page:not(.home-page) .brand img {
  border-color: var(--line);
}

.brand-text {
  min-width: 0;
}

.brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  line-height: 1.2;
  color: currentColor;
  opacity: 0.78;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-tel {
  font-weight: 800;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

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

.button-primary:hover,
.cta-button:hover {
  background: #c8453a;
  border-color: #c8453a;
  text-decoration: none;
}

.button:disabled,
.cta-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button-secondary {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.button-outline {
  color: inherit;
  background: transparent;
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(620px, 88svh, 820px);
  color: #fff;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: 122px 0 72px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::before {
  background: url("../assets/beachlabo/hero-home.jpg") center / cover no-repeat;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 28, 38, 0.86) 0%, rgba(8, 28, 38, 0.62) 46%, rgba(8, 28, 38, 0.26) 100%),
    linear-gradient(180deg, rgba(8, 28, 38, 0.48) 0%, rgba(8, 28, 38, 0.2) 34%, rgba(8, 28, 38, 0.76) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.hero-logo {
  width: min(390px, 78vw);
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 10px 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 20px;
}

.hero-meta p {
  margin: 0 0 14px;
  font-weight: 700;
}

.hero-meta dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hero-meta div {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-meta dt {
  font-size: 0.76rem;
  opacity: 0.72;
}

.hero-meta dd {
  margin: 0;
  font-weight: 800;
}

.intro-strip {
  background: var(--ink);
  color: #fff;
}

.intro-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.intro-item {
  min-height: 118px;
  padding: 22px;
  background: var(--ink);
}

.intro-item strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.intro-item span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-surface {
  background: var(--surface);
}

.section-soft {
  background: var(--surface-soft);
}

.section-dark {
  background: #142127;
  color: #fff;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
}

.section-dark .section-kicker {
  color: var(--yellow);
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.media-frame {
  position: relative;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.8;
}

.text-block p {
  color: var(--muted);
}

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

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

.card,
.work-card,
.step-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card,
.step-card,
.info-card {
  padding: 24px;
}

.card h3,
.work-card h3,
.step-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.45;
}

.card p,
.work-card p,
.step-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.work-card {
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.work-card__body {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding-top: 52px;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 22px;
  color: var(--blue);
  font-weight: 900;
  font-size: 0.88rem;
}

.page-hero {
  padding: 138px 0 68px;
  background: var(--ink);
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.page-hero--image {
  position: relative;
  isolation: isolate;
}

.page-hero--image::before,
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero--image::before {
  background: url("../assets/beachlabo/work-02.jpg") center / cover no-repeat;
}

.page-hero--image::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 28, 36, 0.88), rgba(10, 28, 36, 0.42));
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.faq-list summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.form-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.form-panel > *,
.form-grid > *,
.slot-grid > * {
  min-width: 0;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 12px 34px rgba(22, 52, 62, 0.08);
}

.form-card + .form-card {
  margin-top: 18px;
}

.form-card h2,
.form-card h3 {
  margin: 0 0 14px;
  line-height: 1.25;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.label-note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  min-height: 136px;
  resize: vertical;
}

.slot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 0.7fr 0.7fr;
  gap: 10px;
}

.privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
  font-weight: 600;
}

.privacy-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 5px;
}

.form-feedback {
  min-height: 26px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.form-feedback[data-state="success"] {
  color: var(--green);
}

.form-feedback[data-state="error"] {
  color: #b2362e;
}

.map-embed {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 360px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.cta-band {
  padding: 42px 0;
  background: var(--blue);
  color: #fff;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.cta-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding: 52px 0 84px;
  color: rgba(255, 255, 255, 0.8);
  background: #10191f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  width: 230px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.footer-meta {
  margin: 18px 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
  font-weight: 800;
}

.copy {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.86rem;
}

.mobile-cta {
  display: none;
}

.page-contact .mobile-cta {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .split,
  .form-panel {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    max-width: 620px;
  }

  .intro-strip__inner,
  .work-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 18px 20px 22px;
    background: rgba(244, 248, 247, 0.98);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }

  .header-tel,
  .header-actions .cta-button {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .footer-grid,
  .cta-band__inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1px;
    padding: 8px;
    color: #fff;
    background: rgba(16, 25, 31, 0.9);
    backdrop-filter: blur(12px);
  }

  .mobile-cta a {
    min-height: 48px;
    border-radius: 6px;
    min-width: 0;
    padding-inline: 10px;
    font-size: 0.94rem;
  }
}

@media (max-width: 640px) {
  .container,
  .container-wide {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand-sub {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding: 102px 0 48px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-logo {
    width: min(300px, 84vw);
    margin-bottom: 18px;
  }

  .intro-strip__inner,
  .work-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .intro-item {
    min-height: auto;
  }

  .form-grid,
  .slot-grid,
  .info-list div {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    gap: 12px;
  }

  .page-hero {
    padding: 112px 0 56px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .page-hero p,
  .form-card p {
    font-size: 0.95rem;
    word-break: break-all;
  }

  .section {
    padding: 58px 0;
  }

  .form-card {
    padding: 20px;
  }

  .mobile-cta {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-cta .button {
    min-height: 48px;
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .cta-band {
    padding-bottom: 72px;
  }
}

/* New-format facility-site alignment. Source of truth: static/awana-hitachinaka. */
:root {
  --max-width: 1080px;
  --max-width-narrow: 880px;
  --max-width-wide: 1240px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 12px 28px rgba(38, 24, 46, 0.08);
  --shadow-md: 0 22px 55px rgba(38, 24, 46, 0.15);
  --shadow-lg: 0 30px 80px rgba(38, 24, 46, 0.25);
  --color-bg: #f8f4f0;
  --color-surface: #ffffff;
  --color-surface-alt: rgba(255, 255, 255, 0.78);
  --color-text: #2f2835;
  --color-muted: #5e5563;
  --color-line: rgba(0, 0, 0, 0.08);
  --color-accent-rgb: 217, 120, 162;
  --color-secondary-rgb: 62, 165, 160;
  --color-highlight-rgb: 255, 179, 107;
  --color-accent: rgb(var(--color-accent-rgb));
  --color-accent-soft: rgba(var(--color-accent-rgb), 0.18);
  --color-accent-strong: #c54f8c;
  --color-secondary: rgb(var(--color-secondary-rgb));
  --color-secondary-soft: rgba(var(--color-secondary-rgb), 0.18);
  --color-highlight: rgb(var(--color-highlight-rgb));
  --font-body: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-heading: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-eng: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --surface-soft: rgba(255, 255, 255, 0.75);
  --ink: var(--color-text);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --blue: var(--color-secondary);
  --coral: var(--color-accent);
  --yellow: var(--color-highlight);
  --max: var(--max-width);
  --wide: var(--max-width-wide);
  --radius: var(--radius-sm);
  --shadow: var(--shadow-md);
  --font: var(--font-body);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
}

img {
  border-radius: var(--radius-sm);
}

.site-shell {
  padding-bottom: 120px;
}

.container,
.container-wide {
  width: min(var(--max-width), calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  inset: auto;
  z-index: 100;
  color: var(--color-text);
  background: rgba(248, 244, 240, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.site-header.is-scrolled,
.page:not(.page-home):not(.home-page) .site-header {
  color: var(--color-text);
  background: rgba(248, 244, 240, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(38, 24, 46, 0.14);
}

.page-home .site-header:not(.is-scrolled),
.home-page .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.08));
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.header-content,
.header-inner {
  min-height: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: flex-start;
  padding: var(--space-2) 0;
}

.brand {
  gap: 10px;
  font-family: var(--font-eng);
  flex-shrink: 0;
}

.brand-logo,
.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-home .site-header:not(.is-scrolled) .brand-logo,
.page-home .site-header:not(.is-scrolled) .brand img,
.home-page .site-header:not(.is-scrolled) .brand img {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-mark,
.brand-name {
  display: block;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  line-height: 1.1;
  white-space: nowrap;
  opacity: 1;
}

.page-home .site-header:not(.is-scrolled) .brand-sub,
.home-page .site-header:not(.is-scrolled) .brand-sub {
  color: rgba(255, 255, 255, 0.78);
}

.primary-nav {
  margin-left: auto;
  margin-right: var(--space-4);
  display: block;
}

.primary-nav ul,
.primary-nav {
  gap: var(--space-2);
}

.primary-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-eng);
  font-size: 0.93rem;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  color: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  opacity: 1;
}

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

.primary-nav a:hover,
.primary-nav a:focus {
  text-decoration: none;
}

.primary-nav a:hover::after,
.primary-nav a:focus::after {
  transform: scaleX(1);
}

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

.header-tel {
  color: inherit;
  font-weight: 600;
}

.button,
.cta-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-eng);
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cta-button,
.button-primary,
.btn--filled {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
  border: 0;
  box-shadow: var(--shadow-sm);
}

.cta-button:hover,
.button-primary:hover,
.btn--filled:hover,
.btn--filled:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.button-outline,
.btn--line {
  color: inherit;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn--line:hover,
.btn--line:focus,
.button-outline:hover,
.button-outline:focus {
  border-color: rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.page-home .site-header:not(.is-scrolled) .cta-button,
.home-page .site-header:not(.is-scrolled) .cta-button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.nav-toggle {
  border-radius: 999px;
}

.stage {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.stage__inner {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  min-width: 0;
}

.stage__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-eng);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(47, 40, 53, 0.58);
}

.stage__index {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgba(47, 40, 53, 0.18);
  border-radius: 999px;
  letter-spacing: 0;
}

.stage__content {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.5rem);
  min-width: 0;
  max-width: 100%;
}

.stage__content h2,
.stage__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  line-height: 1.16;
  margin: 0;
  letter-spacing: 0;
}

.stage__intro {
  display: grid;
  gap: var(--space-2);
  max-width: 920px;
}

.stage__intro p,
.stage__content > p,
.note {
  color: var(--color-muted);
  margin: 0;
}

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stage--hero {
  min-height: 92svh;
  padding: 0;
  color: #fff;
}

.stage--hero .stage__inner {
  min-height: 92svh;
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 1.5rem;
}

.stage--hero .stage__media {
  position: absolute;
  inset: 0;
}

.stage--hero video,
.stage--hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.stage--hero img,
.stage--hero video {
  filter: saturate(0.92) brightness(0.78);
}

.stage--hero .stage__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 16%, rgba(62, 165, 160, 0.22), transparent 30%);
}

.stage__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.55), rgba(10, 14, 12, 0.35), rgba(10, 14, 12, 0.75));
}

.stage--hero .display {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 2rem + 3vw, 4.6rem);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

.stage--hero .lede {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 0.95rem + 0.5vw, 1.1rem);
  max-width: 56ch;
  margin: 0;
}

.stage--hero .stage__actions .btn--line {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.stage--hero .stage__content > p,
.stage--hero .stage__meta {
  color: rgba(255, 255, 255, 0.72);
}

.stage--hero .stage__index {
  border-color: rgba(255, 255, 255, 0.28);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  margin: 12px auto 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0.6); opacity: 0; transform-origin: top; }
  30% { transform: scaleY(1); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.3); opacity: 0; transform-origin: bottom; }
}

.stage--marquee {
  background: rgba(12, 16, 14, 0.92);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.stage--marquee .stage__meta,
.stage--marquee .stage__content > p,
.stage--marquee .marquee__cta p {
  color: rgba(255, 255, 255, 0.72);
}

.stage--marquee .stage__index {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0;
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee__track span {
  white-space: nowrap;
  font-family: var(--font-eng);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.08em;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stage--stats {
  background: linear-gradient(135deg, rgba(240, 236, 232, 0.95), rgba(255, 255, 255, 0.98));
}

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

.info-grid > div,
.origin-callout,
.program-panel,
.faq-list details {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-grid > div,
.origin-callout,
.program-panel {
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
}

.checklist {
  display: grid;
  gap: 0.65rem;
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--color-secondary);
}

.stage--values,
.stage--works {
  background: var(--color-surface);
}

.works-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.stage .work-card {
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  border: none;
  border-left: 1px solid rgba(var(--color-accent-rgb), 0.32);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.75));
  box-shadow: none;
}

.stage .work-card--image {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stage .work-card--image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.stage .work-card--image .work-card__body {
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.work-card__tag {
  display: inline-flex;
  margin-bottom: 0.7rem;
  font-family: var(--font-eng);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-secondary);
  text-transform: uppercase;
}

.text-link {
  font-weight: 600;
  color: var(--color-secondary);
}

.stage--program {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.stage--program .stage__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.programs-heading-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.5rem, 1vw, 0.9rem);
}

.programs-heading {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem);
  line-height: 1.12;
}

.programs-heading__accent {
  color: var(--color-accent);
}

.stage--program .stage__media {
  position: relative;
  border-radius: clamp(20px, 3vw, 32px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stage--program .stage__media--tall {
  max-width: min(420px, 45vw);
  aspect-ratio: 3 / 5;
  margin-inline: auto;
}

.stage--program .stage__media--tall img,
.stage--program .stage__media--tall video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.program-stack {
  display: grid;
  gap: 1rem;
}

.program-item {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.program-item:last-child {
  border-bottom: 0;
}

.program-item__head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.program-item__index {
  font-family: var(--font-eng);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--color-secondary);
}

.program-item h3,
.program-item p {
  margin: 0;
}

.program-item p {
  color: var(--color-muted);
}

.stage--steps {
  background: var(--color-bg);
}

.step-flow {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.step-flow li > span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--color-secondary-soft);
  color: var(--color-secondary);
  font-family: var(--font-eng);
  font-size: 0.82rem;
}

.step-flow strong,
.step-flow p {
  margin: 0;
}

.step-flow p {
  color: var(--color-muted);
}

.stage--cta {
  background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.15), rgba(var(--color-accent-rgb), 0.18));
}

.stage--cta .stage__inner {
  text-align: center;
  gap: 1.5rem;
}

.stage--cta .stage__meta,
.stage--cta .stage__actions {
  justify-content: center;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-list details {
  padding: 1rem 1.2rem;
  text-align: left;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 0.8rem 0 0;
  color: var(--color-muted);
}

[data-animate],
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}

[data-delay="0.05"] { --delay: 0.05s; }
[data-delay="0.08"] { --delay: 0.08s; }
[data-delay="0.1"] { --delay: 0.1s; }
[data-delay="0.12"] { --delay: 0.12s; }
[data-delay="0.15"] { --delay: 0.15s; }
[data-delay="0.2"] { --delay: 0.2s; }
[data-delay="0.3"] { --delay: 0.3s; }

[data-animate].is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: var(--space-4) 0 var(--space-3);
  background: rgba(32, 27, 39, 0.94);
  color: #fff;
}

.footer-inner {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.footer-meta {
  margin: var(--space-1) 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
  .header-content,
  .header-inner {
    gap: 12px;
  }

  .primary-nav {
    margin-right: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    color: var(--color-text);
    background: rgba(248, 244, 240, 0.94);
    box-shadow: 0 12px 40px rgba(38, 24, 46, 0.14);
  }

  .header-content,
  .header-inner {
    justify-content: space-between;
  }

  .primary-nav {
    position: fixed;
    inset: 70px 16px auto 16px;
    display: none;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul,
  .primary-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav a {
    padding: 0.8rem 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-color: currentColor;
  }

  .nav-toggle-line,
  .nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 0;
    background: currentColor;
  }

  .nav-toggle {
    gap: 4px;
  }

  .header-tel,
  .site-header .cta-button {
    display: none;
  }

  .stage__inner {
    width: min(calc(100% - 1.6rem), var(--max-width));
  }

  .stage--hero .stage__inner {
    text-align: left;
    min-height: 86svh;
  }

  .stage__actions {
    justify-content: flex-start;
  }

  .info-grid,
  .stage--program .stage__inner {
    grid-template-columns: 1fr;
  }

  .stage--program .stage__media--tall {
    max-width: min(100%, 420px);
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .container,
  .container-wide {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand-mark,
  .brand-name {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-sub {
    display: none;
  }

  .stage {
    padding: 58px 0;
  }

  .stage--hero {
    min-height: 86svh;
    padding: 0;
  }

  .stage--hero .display {
    font-size: clamp(2rem, 10.4vw, 2.8rem);
  }

  .stage--hero .lede {
    font-size: 0.98rem;
    max-width: 34ch;
  }

  .stage--hero img,
  .stage--hero video {
    object-position: center;
  }

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

  .stage__actions .btn {
    width: min(100%, 310px);
  }

  .stage__index {
    display: none;
  }

  .stage__kicker {
    font-size: 0.72rem;
  }

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

  .footer-links {
    gap: 0.85rem;
    font-size: 0.9rem;
  }
}

/* New facility-site lower-page components. */
.stage--page-hero {
  padding: clamp(5rem, 8vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(90% 80% at 10% 20%, rgba(255, 206, 173, 0.34) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(120% 120% at 85% 15%, rgba(var(--color-secondary-rgb), 0.25) 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(160deg, rgba(255, 232, 210, 0.86) 0%, rgba(248, 244, 240, 0.92) 45%, rgba(255, 255, 255, 0.95) 100%);
}

.stage--page-hero .stage__inner {
  gap: clamp(1.2rem, 3vw, 2.6rem);
}

.stage--page-hero .stage__content {
  max-width: min(62ch, 100%);
}

.stage--page-hero h1,
.stage--page-hero h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.stage--page-hero .lede {
  color: rgba(47, 40, 53, 0.7);
}

.stage--surface {
  background: var(--color-surface);
}

.stage--muted {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 236, 232, 0.7) 100%);
}

.stage--outline {
  position: relative;
  background: rgba(255, 255, 255, 0.62);
}

.stage--outline::before {
  content: "";
  position: absolute;
  inset: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.stage--surface .stage__kicker,
.stage--muted .stage__kicker,
.stage--outline .stage__kicker,
.stage--gallery .stage__kicker {
  color: var(--color-secondary);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.program-feature-list {
  display: grid;
  gap: clamp(1.8rem, 3vw, 2.6rem);
}

.program-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.program-feature__media,
.media-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-md);
}

.program-feature .program-feature__media {
  border-radius: 0;
  box-shadow: none;
}

.program-feature__media img,
.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.program-feature__body {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.program-feature__tag {
  font-family: var(--font-eng);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--color-secondary);
  text-transform: uppercase;
}

.program-feature__body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.22;
}

.program-feature__body p,
.program-feature__body ul {
  margin: 0;
  color: var(--color-muted);
}

.program-feature__body ul {
  padding-left: 1.2rem;
  line-height: 1.7;
}

.program-feature:nth-child(even) .program-feature__media {
  order: 2;
}

.stage--gallery {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 236, 232, 0.65));
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.7, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.62) 100%);
}

.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.gallery-item.item-a {
  grid-column: span 6;
  grid-row: span 4;
}

.gallery-item.item-b,
.gallery-item.item-c {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-item.item-d {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-item.item-e {
  grid-column: span 5;
  grid-row: span 2;
}

.info-list--panel {
  display: grid;
  gap: 0;
  margin-top: var(--space-3);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.info-list--panel div {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.info-list--panel div:last-child {
  border-bottom: 0;
}

.media-tile--tall {
  min-height: 360px;
}

.facility-map-stack {
  display: grid;
  gap: var(--space-3);
  align-self: start;
}

.news-grid--featured {
  align-items: stretch;
}

.news-card--media {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
}

.news-card--media > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.news-card__body {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.2rem, 2vw, 1.6rem);
}

.news-card__body p {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .gallery-mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 100px;
  }

  .gallery-item.item-a {
    grid-column: span 6;
    grid-row: span 4;
  }

  .gallery-item.item-b,
  .gallery-item.item-c,
  .gallery-item.item-d {
    grid-column: span 3;
    grid-row: span 3;
  }

  .gallery-item.item-e {
    grid-column: span 6;
    grid-row: span 2;
  }
}

@media (max-width: 720px) {
  .stage--page-hero {
    padding: 76px 0 58px;
  }

  .stage--page-hero h1,
  .stage--page-hero h2 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .program-feature {
    grid-template-columns: 1fr;
  }

  .program-feature:nth-child(even) .program-feature__media {
    order: 0;
  }

  .program-feature__media,
  .media-tile {
    min-height: 220px;
  }

  .info-list--panel div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (max-width: 430px) {
  .gallery-mosaic {
    grid-auto-rows: 88px;
  }

  .gallery-item figcaption {
    font-size: 0.78rem;
  }
}

/* Final pass: keep Beach LABO aligned with the new facility-site system. */
.stage--outline .stage__inner {
  position: relative;
  z-index: 1;
}

.contact-form-panel {
  margin-top: 0;
}

.contact-side-panel {
  display: grid;
  gap: var(--space-3);
  align-self: start;
}

.contact-access-grid {
  align-items: stretch;
}

.contact-access-grid .map-embed,
.contact-access-grid .map-embed iframe {
  min-height: 420px;
}

.site-header .nav-toggle {
  position: relative;
  flex-shrink: 0;
  place-items: center;
}

.site-header .nav-toggle-line,
.site-header .nav-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 860px) {
  .header-content,
  .header-inner {
    width: min(calc(100% - 1.5rem), var(--max-width));
    margin-inline: auto;
  }

  .site-header .nav-toggle {
    display: inline-grid !important;
    width: 44px;
    height: 44px;
    gap: 4px;
    color: var(--color-text);
    border: 1px solid rgba(47, 40, 53, 0.24);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 26px rgba(38, 24, 46, 0.12);
  }

  .primary-nav {
    max-height: calc(100svh - 88px);
    overflow-y: auto;
  }

  .primary-nav.is-open {
    display: block !important;
    transform: translateY(0);
  }

  .primary-nav ul {
    display: grid;
    gap: 0;
  }

  .primary-nav li {
    list-style: none;
  }
}

@media (max-width: 640px) {
  .header-content,
  .header-inner {
    padding-right: 58px;
  }

  .site-header .nav-toggle {
    position: fixed !important;
    top: 16px;
    right: auto;
    left: min(calc(100vw - 56px), 334px);
    z-index: 120;
  }

  .primary-nav {
    left: 16px;
    right: auto;
    width: min(calc(100vw - 32px), 358px);
  }

  .stage--hero .stage__inner,
  .stage--page-hero .stage__inner {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .contact-access-grid .map-embed,
  .contact-access-grid .map-embed iframe {
    min-height: 320px;
  }
}

/* Keep the hero scroll hint from overlapping mobile copy. */
.scroll-cue {
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .stage--hero .stage__inner {
    padding-bottom: clamp(3rem, 12vw, 4.5rem);
  }

  .stage--hero .stage__content .scroll-cue {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: auto;
    min-height: 0;
    z-index: auto;
    pointer-events: none;
    transform: none;
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.84);
    font-family: var(--font-eng, var(--font-body, sans-serif));
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.28em;
    writing-mode: horizontal-tb;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.54);
  }

  .stage--hero .stage__content .scroll-cue::after {
    width: 28px;
    height: 1px;
    margin: 0;
    flex: 0 0 auto;
  }
}

/* Mobile floating menu: keep navigation reachable without crowding the header. */
@media (max-width: 860px) {
  .header-content,
  .header-inner {
    padding-right: 0;
  }

  .site-header .nav-toggle,
  .nav-toggle {
    position: fixed !important;
    top: auto !important;
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.35rem) !important;
    left: auto !important;
    inset-block-start: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: max(1rem, env(safe-area-inset-right, 0px)) !important;
    inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 5.35rem) !important;
    z-index: 160;
    display: grid !important;
    place-items: center;
    width: 3.65rem;
    height: 3.65rem;
    padding: 0;
    color: #fff;
    background: rgb(17 23 28 / 0.94);
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 999px;
    box-shadow: 0 1.25rem 3rem rgb(16 15 24 / 0.3);
    backdrop-filter: blur(1rem);
  }

  .site-header .nav-toggle-line,
  .site-header .nav-toggle > span:not(.sr-only),
  .nav-toggle-line,
  .nav-toggle > span:not(.sr-only) {
    grid-area: 1 / 1;
    display: block;
    width: 1.45rem;
    height: 0.125rem;
    margin: 0;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header .nav-toggle-line:nth-child(1),
  .site-header .nav-toggle > span:not(.sr-only):nth-child(1),
  .nav-toggle-line:nth-child(1),
  .nav-toggle > span:not(.sr-only):nth-child(1) {
    transform: translateY(-0.23rem);
  }

  .site-header .nav-toggle-line:nth-child(2),
  .site-header .nav-toggle > span:not(.sr-only):nth-child(2),
  .nav-toggle-line:nth-child(2),
  .nav-toggle > span:not(.sr-only):nth-child(2) {
    opacity: 0;
  }

  .site-header .nav-toggle-line:nth-child(3),
  .site-header .nav-toggle > span:not(.sr-only):nth-child(3),
  .nav-toggle-line:nth-child(3),
  .nav-toggle > span:not(.sr-only):nth-child(3) {
    transform: translateY(0.23rem);
  }

  .nav-toggle[aria-expanded="true"] > span:not(.sr-only):nth-child(1),
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(42deg);
  }

  .nav-toggle[aria-expanded="true"] > span:not(.sr-only):nth-child(2),
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] > span:not(.sr-only):nth-child(3),
  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-42deg);
  }

  .primary-nav {
    position: fixed !important;
    top: auto !important;
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 9.55rem) !important;
    left: auto !important;
    inset-block-start: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: max(1rem, env(safe-area-inset-right, 0px)) !important;
    inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 9.55rem) !important;
    z-index: 155;
    display: grid !important;
    width: min(calc(100vw - 2rem), 22rem);
    max-height: min(62svh, 28rem);
    margin: 0;
    padding: 0.7rem;
    overflow-y: auto;
    color: var(--color-text);
    background: rgb(255 255 255 / 0.94);
    border: 1px solid rgb(47 40 53 / 0.08);
    border-radius: 1.35rem;
    box-shadow: 0 1.5rem 4rem rgb(38 24 46 / 0.22);
    backdrop-filter: blur(1.25rem);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    display: grid !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .primary-nav ul {
    display: grid !important;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .primary-nav li {
    list-style: none;
  }

  .primary-nav a {
    display: flex;
    align-items: center;
    min-height: 2.85rem;
    padding: 0.82rem 0.95rem;
    color: inherit;
    border: 0;
    border-radius: 0.9rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    opacity: 1;
    text-decoration: none;
    white-space: normal;
  }

  .primary-nav a::after {
    content: none;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: rgb(var(--color-secondary-rgb) / 0.12);
    text-decoration: none;
  }

  .primary-nav a:focus-visible,
  .nav-toggle:focus-visible {
    outline: 2px solid rgb(var(--color-secondary-rgb) / 0.72);
    outline-offset: 3px;
  }

  /* Leave space for the fixed mobile menu button beside long copy. */
  .stage--surface .stage__content > .lede,
  .stage--muted .stage__content > .lede,
  .stage--outline .stage__content > .lede,
  .stage--gallery .stage__content > .lede,
  .stage:not(.stage--hero) .stage__content > p,
  .stage:not(.stage--hero) .stage__intro p {
    padding-inline-end: min(4rem, 17vw);
  }

  .form-card label,
  .form-card .privacy-line {
    padding-inline-end: min(4rem, 17vw);
  }
}

@media (max-width: 380px) {
  .site-header .nav-toggle,
  .nav-toggle {
    width: 3.35rem;
    height: 3.35rem;
  }

  .primary-nav {
    width: min(calc(100vw - 1.5rem), 21rem);
  }
}

@media (max-width: 860px) {
  .site-header .header-actions {
    display: flex !important;
    margin-left: 0;
  }

  .site-header .header-actions .nav-toggle {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
