:root {
  --bg: #e4f1f8;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #fbfdff;
  --panel-soft: #edf6fa;

  --text: #05080c;
  --muted: #0d1117;

  --accent: #6ec0e8;
  --accent-soft: #98d9f2;
  --accent-deep: #2f86b0;

  --highlight: #57abd3;
  --highlight-soft: #7fc7e7;

  --wine: #8fa9b8;
  --emerald: #7ea8b8;

  --line: rgba(47, 134, 176, 0.16);
  --shadow: 0 18px 42px rgba(25, 60, 85, 0.1);

  --radius: 24px;
  --container: 1180px;

  --header-expanded: 82px;
  --header-collapsed: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-collapsed) + 20px);
}

body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  background:
    radial-gradient(circle at top right, rgba(110, 192, 232, 0.22), transparent 30%),
    radial-gradient(circle at top left, rgba(167, 214, 235, 0.28), transparent 28%),
    linear-gradient(180deg, #eef7fb 0%, #e2f0f8 48%, #d6e9f4 100%);
  color: var(--text);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(16, 24, 32, 0.045) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  opacity: 0.04;
}

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

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  margin-bottom: 0;
  background: rgba(236, 246, 251, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.scrolled {
  background: rgba(236, 246, 251, 0.93);
  border-color: var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-expanded);
  overflow: visible;
  transition:
    min-height 220ms ease,
    padding 220ms ease;
}

.site-nav,
.trial-button,
.brand {
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.site-header.is-collapsed {
  background: rgba(236, 246, 251, 0.97);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(25, 60, 85, 0.07);
}

.site-header.is-collapsed .header-inner {
  min-height: var(--header-collapsed);
}

.site-header.is-collapsed .site-nav,
.site-header.is-collapsed .trial-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(0.985);
  filter: none;
}

.site-header.is-collapsed .brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  justify-content: center;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.brand-text {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.3rem, 1.45vw, 1.55rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #0d1720;
  display: inline-block;
  padding-bottom: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #111418;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 100%;
  height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #5aaed8, #3f95c0 52%, #2b7ca4);
  color: #f9fdff;
  box-shadow: none;
}

.button-secondary {
  border-color: rgba(47, 134, 176, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.trial-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 132px;
  text-align: center;
  line-height: 1.05;
  padding: 0.82rem 1.1rem;
  flex-shrink: 0;
}

.trial-button span:first-child {
  font-size: 0.88rem;
  font-weight: 700;
}

.trial-button span:last-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

main {
  position: relative;
}

/* ---------- Intro Splash: Rolling Gallery ---------- */

.intro-splash {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-expanded) + 56px) 24px 96px;
  background: #07131d;
  isolation: isolate;
}

.intro-splash__gallery {
  --gallery-gap: clamp(16px, 2.4vw, 34px);

  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.intro-splash__gallery-track {
  display: flex;
  width: max-content;
  animation: rollingGallery 62s linear infinite;
  will-change: transform;
}

.intro-splash__gallery-set {
  display: flex;
  align-items: center;
  gap: var(--gallery-gap);
  padding-right: var(--gallery-gap);
  flex: 0 0 auto;
}

.rolling-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 25vw, 430px);
  height: clamp(390px, 68svh, 720px);
  overflow: hidden;
  border-radius: 30px;
  background: #10202c;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(-2deg);
}

.rolling-card:nth-child(even) {
  transform: translateY(5vh) rotate(2deg);
}

.rolling-card:nth-child(3n) {
  transform: translateY(-4vh) rotate(-1deg);
}

.rolling-card:nth-child(4n) {
  transform: translateY(3vh) rotate(1deg);
}

.rolling-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.06) saturate(0.98);
  transform: scale(1.04);
}

.rolling-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18),rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.16)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.08), transparent 28%);
}

.intro-splash__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.15), rgba(214, 233, 244, 0.08)),
    linear-gradient(
      to bottom,
      rgba(5, 12, 20, 0.36) 0%,
      rgba(5, 12, 20, 0.48) 42%,
      rgba(5, 12, 20, 0.78) 100%
    ),
    radial-gradient(
      circle at 50% 42%,
      rgba(150, 218, 255, 0.20) 0%,
      rgba(150, 218, 255, 0.08) 34%,
      rgba(0, 0, 0, 0) 70%
    ),
    linear-gradient(
      90deg,
      rgba(7, 19, 29, 0.92) 0%,
      rgba(7, 19, 29, 0.22) 24%,
      rgba(7, 19, 29, 0.18) 76%,
      rgba(7, 19, 29, 0.92) 100%
    );
}

.intro-splash::after {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 38%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 72% 60%, rgba(140, 210, 255, 0.08), transparent 36%),
    linear-gradient(115deg, transparent 0%,rgba(255, 255, 255, 0.035) 42%, transparent 58%);
  mix-blend-mode: screen;
  filter: blur(10px);
  opacity: 0.48;
  animation: galleryHaze 14s ease-in-out infinite alternate;
}

.intro-splash__content {
  position: relative;
  z-index: 4;
  width: min(100%, 1000px);
  color: #ffffff;
  text-align: center;
}

.intro-splash__eyebrow {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.intro-splash__content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: splashFadeUp 1s ease forwards;
}

.intro-splash__content > *:nth-child(1) {
  animation-delay: 0.2s;
}

.intro-splash__content > *:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes rollingGallery {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes galleryHaze {
  0% {
    transform: translate3d(-3%, 2%, 0) scale(1);
    opacity: 0.34;
  }

  50% {
    transform: translate3d(4%, -3%, 0) scale(1.08);
    opacity: 0.58;
  }

  100% {
    transform: translate3d(-1%, 3%, 0) scale(1.04);
    opacity: 0.44;
  }
}

@keyframes splashFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Intro Splash Mobile ---------- */

@media (max-width: 768px) {
  .intro-splash {
    min-height: 82svh;
    padding: calc(var(--header-expanded) + 74px) 20px 72px;
  }

  .intro-splash__gallery {
    --gallery-gap: 16px;
  }

  .intro-splash__gallery-track {
    animation-duration: 46s;
  }

  .rolling-card {
    width: 58vw;
    height: 58svh;
    border-radius: 24px;
  }

  .rolling-card:nth-child(even) {
    transform: translateY(4vh) rotate(2deg);
  }

  .rolling-card:nth-child(3n) {
    transform: translateY(-3vh) rotate(-1deg);
  }

  .intro-splash__headline {
    font-size: clamp(1.5rem, 8vw, 3.1rem);
    line-height: 1.2;
  }

  .intro-splash__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 520px) {
  .intro-splash {
    min-height: 100svh;
    padding: calc(var(--header-expanded) + 65px) 18px 60px;
  }

  .rolling-card {
    width: 68vw;
    height: 56svh;
    border-radius: 22px;
  }

  .intro-splash__headline {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash__gallery-track,
  .intro-splash::after,
  .intro-splash__content > * {
    animation: none !important;
  }

  .intro-splash__content > * {
    opacity: 1;
    transform: none;
  }
}

.intro-splash__content {
  position: relative;
  z-index: 4;
  width: min(100%, 1000px);
  color: #ffffff;
  text-align: center;
}

.intro-splash__eyebrow {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.intro-splash__headline {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.46);
}

.intro-splash__content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: splashFadeUp 1s ease forwards;
}

.intro-splash__content > *:nth-child(1) {
  animation-delay: 0.2s;
}

.intro-splash__content > *:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes splashFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Intro Splash Eyebrow Typing Animation ---------- */

.intro-splash__content > .intro-splash__eyebrow {
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transform: none;
  border-right: 2px solid rgba(255, 255, 255, 0.78);
  animation:
    eyebrowTyping 1.8s steps(22, end) 0.25s forwards,
    eyebrowCaret 700ms step-end 0.25s 3 forwards;
}

@keyframes eyebrowTyping {
  from {
    width: 0;
  }

  to {
    width: 32ch;
  }
}

@keyframes eyebrowCaret {
  0%, 45% {
    border-right-color: rgba(255, 255, 255, 0.78);
  }

  46%, 100% {
    border-right-color: transparent;
  }
}

.hero,
.section {
  scroll-margin-top: calc(var(--header-collapsed) + 20px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.54), rgba(214, 233, 244, 0.68)),
    radial-gradient(circle at 78% 28%, rgba(110, 192, 232, 0.18), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(167, 214, 235, 0.18), transparent 32%),
    linear-gradient(180deg, #f1f8fc 0%, #e2f0f8 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(228, 241, 248, 0.2));
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: calc(var(--header-expanded) + 1rem) 0 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
blockquote {
  margin-top: 0;
  font-family: "Inter","Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.08;
  color: #05080c;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 5rem);
  margin-bottom: 2.25rem;
  max-width: 14ch;
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

#courses h2 .num {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--accent-deep);
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

blockquote {
  font-weight: 700;
}

.hero-copy {
  max-width: 62ch;
  color: #0b0f14;
  font-weight: 500;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.section {
  position: relative;
  padding: 6rem 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.card-grid,
.course-list {
  display: grid;
  gap: 1.25rem;
}

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

.feature-card,
.course-item,
.final-panel,
.atmosphere-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 254, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-card,
.course-item {
  padding: 1.8rem;
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.feature-card:hover,
.course-item:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 134, 176, 0.26);
  box-shadow: 0 20px 44px rgba(25, 60, 85, 0.12);
}

.atmosphere-panel,
.final-panel {
  border-radius: calc(var(--radius) + 4px);
}

.atmosphere-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.atmosphere-copy {
  padding: 2.25rem;
}

.atmosphere-copy blockquote {
  margin: 2rem 0 0;
  color: var(--accent-deep);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.atmosphere-visual {
  position: relative;
  min-height: 320px;
  padding: 1.1rem;
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(circle at 30% 28%, rgba(110, 192, 232, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(237, 246, 250, 0.98), rgba(216, 231, 241, 0.94));
}

.atmosphere-photo-frame {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(47, 134, 176, 0.12);
  background: rgba(251, 253, 255, 0.88);
  box-shadow: 0 18px 40px rgba(25, 60, 85, 0.08);
}

.atmosphere-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.98) contrast(1.02) saturate(0.95);
}

.atmosphere-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(218, 233, 242, 0.14)),
    radial-gradient(circle at 70% 30%, rgba(110, 192, 232, 0.08), transparent 42%);
  pointer-events: none;
}

.trust-layout {
  gap: 3rem;
}

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

.trust-list li {
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--accent-deep);
  background: rgba(255, 255, 255, 0.66);
  color: #0d1117;
}

.final-panel {
  padding: 2.2rem;
  text-align: center;
}

.site-footer {
  padding: 3rem 0 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(220, 238, 248, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 2fr);
  gap: 56px;
  align-items: start;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-logo {
  width: 164px;
  height: auto;
  border-radius: 16px;
}

.footer-tagline {
  margin: 0;
  max-width: 34ch;
  line-height: 1.9;
}

.footer-tagline,
.footer-col a,
.footer-bottom-inner p {
  color: #2d373f;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-heading {
  position: relative;
  margin: 0 0 10px;
  padding-bottom: 12px;
  color: var(--accent-deep);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.footer-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 10px;
  background: currentColor;
  opacity: 0.42;
}

.footer-col a {
  line-height: 1.6;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(47, 134, 176, 0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.9;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 1100px ---------- */

@media (max-width: 1100px) {
  :root {
    --header-expanded: 148px;
    --header-collapsed: 148px;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.95rem;
    padding: 0.5rem;
  }

  .site-nav {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem 1.1rem;
  }

  .trial-button {
    order: 3;
  }
}

/* ---------- 960px ---------- */

@media (max-width: 960px) {
  .split-layout,
  .atmosphere-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .footer-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 760px ---------- */

@media (max-width: 760px) {
  :root {
    --header-expanded: 150px;
    --header-collapsed: 64px;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .header-inner {
    min-height: var(--header-expanded);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.9rem;
    padding: 1rem 0.75rem;
  }

  .brand {
    order: 1;
    justify-content: center;
    text-align: center;
  }

  .brand-text {
    font-size: 1.45rem;
    white-space: normal;
    text-align: center;
  }

  .trial-button {
    order: 2;
    width: min(280px, 100%);
    min-width: 0;
    padding: 0.9rem 1.25rem;
  }

  .trial-button span:first-child {
    font-size: 0.88rem;
  }

  .trial-button span:last-child {
    font-size: 0.72rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 0.7rem;
    column-gap: 0;
    justify-items: center;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    padding: 0 0 0.15rem;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }

  .site-nav a:nth-child(1) { grid-column: 1 / span 2; }
  .site-nav a:nth-child(2) { grid-column: 3 / span 2; }
  .site-nav a:nth-child(3) { grid-column: 5 / span 2; }
  .site-nav a:nth-child(4) { grid-column: 2 / span 2; }
  .site-nav a:nth-child(5) { grid-column: 4 / span 2; }

  .site-header.is-collapsed .header-inner {
    min-height: var(--header-collapsed);
    height: var(--header-collapsed);
    padding: 0 0.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .site-header.is-collapsed .site-nav,
  .site-header.is-collapsed .trial-button {
    display: none;
  }

  .site-header.is-collapsed .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    order: initial;
    width: max-content;
    margin: 0;
  }

  .site-header.is-collapsed .brand-text {
    font-size: 1.08rem;
    white-space: nowrap;
    text-align: center;
  }

  .hero-content {
    padding: calc(var(--header-expanded)) 0 4rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .atmosphere-visual,
  .atmosphere-photo-frame {
    min-height: 260px;
  }

  .footer-inner {
    text-align: center;
    gap: 36px;
  }

  .footer-brand-block {
    align-items: center;
    text-align: center;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-heading::after {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
  }
}

/* ---------- 520px ---------- */

@media (max-width: 520px) {
  h1 {
    max-width: none;
  }

  h3 {
    font-size: 1.4rem;
  }

  .site-nav {
    gap: 0.72rem;
  }

  .footer-logo {
    width: 148px;
  }

  .atmosphere-visual,
  .atmosphere-photo-frame {
    min-height: 230px;
  }
}

/* ---------- Intro Splash Gallery Position ---------- */

.intro-splash__gallery {
  inset: calc(var(--header-expanded) + 40px) 0 0 0;
}

@media (max-width: 768px) {
  .intro-splash__gallery {
    inset: calc(var(--header-expanded) + 24px) 0 0 0;
  }
}

@media (max-width: 520px) {
  .intro-splash__gallery {
    inset: calc(var(--header-expanded) + 18px) 0 0 0;
  }
}