/* ============================================================
   Pattern 4 — 縦型タイムライン＋ストーリーテリング
   SOAソリューションズ株式会社
   カラー: Deep Navy #0f172a / Teal #06b6d4 / Warm White #f8fafc
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0f172a;
  --navy2:  #1e293b;
  --teal:   #06b6d4;
  --teal2:  #0ea5e9;
  --green:  #10b981;
  --white:  #f8fafc;
  --gray50: #f0f4f8;
  --gray200:#e2e8f0;
  --gray400:#94a3b8;
  --gray600:#475569;
  --gold:   #f59e0b;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans:  'Noto Sans JP', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ── */
.section-label {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-label.light { color: rgba(255,255,255,.7); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--gray600);
  font-size: .95rem;
  max-width: 500px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: background .4s var(--ease-in-out), box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
}
.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .05em;
}
.logo-text {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.header-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.header-nav a {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 400;
  transition: color .2s;
}
.header-nav a:hover { color: var(--teal); }
.header-nav .nav-cta {
  background: var(--teal);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 2rem;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.header-nav .nav-cta:hover {
  background: var(--teal2);
  transform: translateY(-1px);
  color: #fff;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,.85) 0%,
    rgba(15,23,42,.6) 50%,
    rgba(6,182,212,.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 80px;
}
.hero-eyebrow {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  letter-spacing: .25em;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s .3s both;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-title-line {
  display: block;
  animation: fadeUp .8s both;
}
.hero-title-line:nth-child(1) { animation-delay: .4s; }
.hero-title-line:nth-child(2) { animation-delay: .55s; }
.hero-title-line:nth-child(3) { animation-delay: .7s; }
.hero-title .accent { color: var(--teal); }
.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeUp .8s .85s both;
}
.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  padding: .875rem 2rem;
  border-radius: 3rem;
  font-size: .9rem;
  font-weight: 500;
  transition: all .3s;
  animation: fadeUp .8s 1s both;
}
.hero-scroll-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}
.hero-stats {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  gap: 2rem;
  animation: fadeUp .8s 1.2s both;
}
.stat-item {
  text-align: center;
  color: #fff;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .75rem;
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-num em { font-style: normal; font-size: 1rem; }
.stat-label {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  margin-top: .25rem;
}

/* ============================================================
   PROLOGUE
   ============================================================ */
.prologue {
  padding: 6rem 2rem;
  background: var(--white);
}
.prologue-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.prologue-img {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 30px 80px rgba(15,23,42,.15);
}
.prologue-img::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--teal);
  border-radius: 2rem;
  z-index: -1;
  transform: rotate(-2deg);
}
.prologue-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.prologue-body {
  color: var(--gray600);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.prologue-body strong { color: var(--navy); font-weight: 600; }
.prologue-ceo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--gray50);
  border-radius: .75rem;
  border-left: 3px solid var(--teal);
}
.prologue-ceo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}
.ceo-title {
  font-size: .75rem;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: .05em;
}
.ceo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */
.timeline-section {
  background: var(--navy);
  padding: 6rem 0 0;
  position: relative;
}
.timeline-header {
  text-align: center;
  padding: 0 2rem 4rem;
}
.timeline-header .section-label { color: var(--teal); }
.timeline-main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.timeline-desc {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  line-height: 1.8;
  margin: 0 auto;
}

/* ── Timeline Wrapper ── */
.timeline-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ── SVG Line ── */
.timeline-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Chapter Articles ── */
.chapter {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 0 2.5rem;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}
.chapter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Odd: img-left / text-right */
.chapter--odd .chapter-img-wrap  { grid-column: 1; grid-row: 1; }
.chapter--odd .chapter-dot       { grid-column: 2; grid-row: 1; }
.chapter--odd .chapter-text-wrap { grid-column: 3; grid-row: 1; }

/* Even: text-left / text-right */
.chapter--even .chapter-text-wrap { grid-column: 1; grid-row: 1; }
.chapter--even .chapter-dot       { grid-column: 2; grid-row: 1; }
.chapter--even .chapter-img-wrap  { grid-column: 3; grid-row: 1; }

/* Image wrap */
.chapter-img-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  position: relative;
}
.chapter-img-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.chapter-img-inner img {
  transition: transform .6s var(--ease-out-expo);
}
.chapter:hover .chapter-img-inner img {
  transform: scale(1.05);
}
.chapter-img-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--teal);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .3rem .75rem;
  border-radius: 2rem;
}

/* Dot */
.chapter-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  position: relative;
  z-index: 3;
}
.dot-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px var(--teal), 0 0 20px rgba(6,182,212,.6);
  transition: transform .3s, box-shadow .3s;
}
.chapter.visible .dot-inner {
  animation: dotPop .5s var(--ease-out-expo) forwards;
}
@keyframes dotPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.dot-year {
  font-size: .65rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .1em;
  white-space: nowrap;
}

/* Text wrap */
.chapter-text-wrap {
  padding: .5rem 0;
}
.chapter-text-inner {
  padding: 2rem 2.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  backdrop-filter: blur(4px);
  transition: background .3s, border-color .3s;
}
.chapter:hover .chapter-text-inner {
  background: rgba(6,182,212,.06);
  border-color: rgba(6,182,212,.25);
}
.chapter-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}
.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.chapter-body {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* Problems list */
.chapter-problems {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.chapter-problems li {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  padding: .5rem .75rem;
  background: rgba(255,255,255,.04);
  border-radius: .4rem;
  border-left: 2px solid rgba(6,182,212,.5);
}

/* Service tags */
.chapter-services {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}
.svc-tag {
  font-size: .75rem;
  color: var(--teal);
  border: 1px solid rgba(6,182,212,.4);
  padding: .3rem .75rem;
  border-radius: 2rem;
  white-space: nowrap;
}

/* Flow steps */
.chapter-flow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  background: rgba(6,182,212,.12);
  border-radius: .6rem;
  padding: .6rem 1rem;
}
.flow-num {
  font-size: .7rem;
  font-weight: 700;
  color: var(--teal);
}
.flow-step span:last-child {
  font-size: .8rem;
  color: rgba(255,255,255,.8);
}
.flow-arrow {
  color: rgba(255,255,255,.3);
  font-size: 1.1rem;
}

/* Numbers */
.chapter-numbers {
  display: flex;
  gap: 2rem;
  margin-top: .5rem;
}
.num-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.big-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.big-num em { font-style: normal; font-size: 1rem; }
.num-item span:last-child {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
}

/* ============================================================
   RESULTS
   ============================================================ */
.results-section {
  padding: 6rem 2rem;
  background: var(--gray50);
  text-align: center;
}
.results-inner { max-width: 1200px; margin: 0 auto; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.result-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,23,42,.07);
  transition: transform .3s var(--ease-out-expo), box-shadow .3s;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo), box-shadow .3s;
}
.result-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(15,23,42,.12);
}
.result-img {
  height: 200px;
  overflow: hidden;
}
.result-img img { transition: transform .5s var(--ease-out-expo); }
.result-card:hover .result-img img { transform: scale(1.05); }
.result-body {
  padding: 1.5rem;
}
.result-category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(6,182,212,.08);
  padding: .25rem .6rem;
  border-radius: 2rem;
  display: inline-block;
  margin-bottom: .75rem;
}
.result-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: .75rem;
}
.result-body p {
  font-size: .85rem;
  color: var(--gray600);
  line-height: 1.7;
}

/* ============================================================
   HISTORY
   ============================================================ */
.history-section {
  padding: 6rem 2rem;
  background: var(--white);
}
.history-inner { max-width: 1100px; margin: 0 auto; }
.history-inner .section-label,
.history-inner .section-title {
  text-align: center;
  display: block;
  margin-bottom: .5rem;
}
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.history-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(15,23,42,.12);
}
.history-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .75rem 1.25rem;
  background: linear-gradient(transparent, rgba(15,23,42,.8));
  color: rgba(255,255,255,.8);
  font-size: .8rem;
}
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.h-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray200);
  align-items: baseline;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.h-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.h-year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 3.5rem;
  flex-shrink: 0;
}
.h-item p {
  font-size: .9rem;
  color: var(--gray600);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  position: relative;
  padding: 8rem 2rem;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.8) 100%);
}
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}
.contact-sub {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}
.contact-cards {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  text-align: left;
}
.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
}
.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-card-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.contact-tel {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.contact-hours {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .5rem;
  padding: .75rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form select option { background: var(--navy); color: #fff; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  background: rgba(6,182,212,.06);
}
.contact-form textarea { resize: none; line-height: 1.6; }
.form-submit {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: .5rem;
  padding: .875rem 2rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  letter-spacing: .05em;
}
.form-submit:hover {
  background: var(--teal2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,182,212,.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 4rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: .75rem;
}
.footer-address,
.footer-tel {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
}
.footer-nav-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.footer-nav-group ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav-group a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-nav-group a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter {
    grid-template-columns: 1fr 48px 1fr;
    gap: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Header */
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
  }
  .header-nav.open ul { flex-direction: column; gap: 2rem; text-align: center; }
  .header-nav.open a { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 101; }

  /* Hero */
  .hero-stats {
    position: static;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
  }
  .hero-content { padding-top: 100px; }

  /* Prologue */
  .prologue-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Timeline – stack vertically */
  .chapter {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    margin-bottom: 3rem;
  }
  .chapter--odd .chapter-dot,
  .chapter--even .chapter-dot  { grid-column: 1; grid-row: 1; align-self: start; margin-top: .5rem; }
  .chapter--odd .chapter-img-wrap,
  .chapter--even .chapter-img-wrap  { grid-column: 2; grid-row: 1; }
  .chapter--odd .chapter-text-wrap,
  .chapter--even .chapter-text-wrap { grid-column: 2; grid-row: 2; }

  .timeline-svg { display: none; }
  .chapter-text-inner { padding: 1.25rem 1rem; }

  /* Results */
  .results-grid { grid-template-columns: 1fr; }

  /* History */
  .history-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .chapter-numbers { flex-direction: column; gap: 1rem; }
}
