:root {
  --brand-navy: #073f73;
  --brand-navy-dark: #032f59;
  --brand-navy-deep: #052849;
  --brand-yellow: #e0b23f;
  --brand-yellow-strong: #f2c94c;
  --text: #15253a;
  --text-muted: #5c6777;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --surface-blue: #eef4f8;
  --border: #dce4eb;
  --shadow: 0 18px 44px rgba(7, 63, 115, 0.13);
  --shell: 1180px;
  --radius: 4px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
}
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, dd { overflow-wrap: break-word; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--brand-yellow);
  color: var(--brand-navy-deep);
  border-radius: var(--radius);
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  color: #fff;
  background: linear-gradient(180deg, rgba(3, 47, 89, 0.92), rgba(3, 47, 89, 0.62), transparent);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.brand-main {
  font-size: 24px;
  font-weight: 500;
  font-style: normal;
  color: #fff;
}
.brand-main::first-letter { color: var(--brand-yellow); }
.brand-sub {
  margin-top: 5px;
  margin-left: 26px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--brand-yellow);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.desktop-nav a,
.footer-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.desktop-nav a:hover,
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--brand-yellow);
  border-radius: var(--radius);
  color: var(--brand-navy-deep);
  background: var(--brand-yellow);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); background: var(--brand-yellow-strong); }
.button-small { min-height: 40px; padding: 10px 16px; font-size: 13px; }
.button-wide { width: 100%; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,0.55); background: transparent; }
.button-ghost:hover { background: rgba(255,255,255,0.08); }

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--brand-navy-deep);
  color: #fff;
}
.hero-image,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image,
.hero-video { object-fit: cover; object-position: center; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(52, 41, 21, 0.78) 0%, rgba(66, 53, 28, 0.52) 35%, rgba(84, 68, 36, 0.12) 66%, rgba(84, 68, 36, 0) 100%),
    linear-gradient(180deg, rgba(224, 178, 63, 0.10), rgba(140, 108, 44, 0.16) 55%, rgba(58, 45, 22, 0.30)),
    linear-gradient(180deg, rgba(28, 22, 10, 0.16), rgba(28, 22, 10, 0.24));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 76px;
}
.hero-copy { width: min(700px, 64%); }
.pill {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--brand-navy-deep);
  background: var(--brand-yellow);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.55rem, 5.4vw, 5rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-intro {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
}
.metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
}
.metadata div {
  padding-left: 14px;
  border-left: 2px solid var(--brand-yellow);
}
.metadata dt { color: rgba(255,255,255,0.66); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.metadata dd { margin: 4px 0 0; font-weight: 650; }

.facts {
  position: relative;
  z-index: 6;
  margin-top: -30px;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 92px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-navy-deep);
  box-shadow: var(--shadow);
  color: #fff;
}
.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
}
.fact + .fact { border-left: 1px solid rgba(255,255,255,0.2); }
.fact strong { color: var(--brand-yellow); font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1; }
.fact span { margin-top: 6px; color: rgba(255,255,255,0.78); font-size: 13px; }

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 58px;
  padding-block: 96px;
}
.story-column { min-width: 0; }
.story-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 48px;
  border-bottom: 1px solid var(--border);
}
.story-section:first-child { padding-top: 0; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--brand-yellow); }
h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h3 { margin: 0; font-size: 1.1rem; line-height: 1.2; }
.story-copy p:not(.eyebrow) { margin: 18px 0 0; color: var(--text-muted); }
.media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgba(7, 63, 115, 0.08);
}
.media-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.media-card figcaption { padding: 12px 14px; color: var(--text-muted); font-size: 12px; }
.compare-card {
  position: relative;
  display: flex;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgba(7, 63, 115, 0.08);
}
/* Legacy two-pane before/after presentation. Scoped away from the slider:
   unscoped, `.compare-card > div` (0-1-1) outranks `.compare-card__handle`
   (0-1-0) and forces the handle back to position:relative. */
.compare-card:not([data-beforeafter]) > div {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
}
.compare-card:not([data-beforeafter]) > div:first-child { border-right: 1px solid rgba(255,255,255,0.35); }
.compare-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.media-card-feature,
.compare-card-feature {
  box-shadow: 0 22px 50px rgba(7, 63, 115, 0.18);
}
.media-card-feature img { aspect-ratio: 21 / 9; }
.media-card-feature figcaption { padding: 16px 18px; font-size: 14px; }
.compare-card-feature img { aspect-ratio: 21 / 18; }
.compare-card-feature span { padding: 8px 14px; font-size: 12px; }

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

.compare-card[data-beforeafter] {
  display: block;
  aspect-ratio: 21 / 18;
  cursor: ew-resize;
  /* allow vertical page scrolling; horizontal gestures drive the slider */
  touch-action: pan-y;
}
.compare-card[data-beforeafter] > .compare-card__layer { position: absolute; inset: 0; }
.compare-card__layer img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; }
.compare-card__layer--after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare-card__tag {
  position: absolute;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3, 36, 69, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.compare-card__tag--left { left: 10px; }
.compare-card__tag--right { right: 10px; }
.compare-card__handle {
  position: absolute;
  top: 50%;
  left: var(--split, 50%);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-navy);
  box-shadow: 0 2px 8px rgba(0, 26, 51, 0.25);
  pointer-events: none;
}
.compare-card__handle::before,
.compare-card__handle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
}
.compare-card__handle::before { bottom: 100%; }
.compare-card__handle::after { top: 100%; }
/* Kept for keyboard access only. iOS Safari never drags a range input from the
   track, so pointer events on the card own the drag; this must not swallow them.
   pointer-events:none does not affect tab order or keyboard focus. */
.compare-card__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.compare-card[data-beforeafter]:focus-within .compare-card__handle {
  box-shadow: 0 0 0 3px var(--brand-yellow), 0 2px 8px rgba(0, 26, 51, 0.25);
}
.detail-card {
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(145deg, var(--brand-navy), var(--brand-navy-deep));
  box-shadow: var(--shadow);
}
.check-list { margin: 18px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-yellow); font-weight: 900; }

.process-section { padding: 58px 0; border-bottom: 1px solid var(--border); }
.section-heading { max-width: 680px; }

/* Vertical 3-step timeline */
.timeline {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 24px;
  padding-bottom: 44px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: "";
  position: absolute;
  top: 56px;
  bottom: 8px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-yellow), var(--border));
}
.timeline-step:last-child::before { display: none; }
.timeline-marker {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-navy), var(--brand-navy-deep));
  box-shadow: 0 6px 16px rgba(7, 63, 115, 0.22);
}
.timeline-marker span {
  color: var(--brand-yellow);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.timeline-body { min-width: 0; padding-top: 10px; }
.timeline-body > p { margin: 12px 0 0; color: var(--text-muted); }
.timeline-support {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--brand-yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-blue);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.timeline-media {
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgba(7, 63, 115, 0.08);
}
.timeline-media img,
.timeline-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.timeline-media figcaption { padding: 12px 14px; color: var(--text-muted); font-size: 12px; }
.timeline-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--brand-navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--brand-yellow);
  text-decoration-thickness: 2px;
}
.timeline-link:hover { color: var(--brand-navy-deep); }
.timeline-link:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 3px; }

/* System process modal */
.system-modal {
  width: min(calc(100vw - 32px), 880px);
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(3, 36, 69, 0.4);
  overflow: hidden;
}
.system-modal::backdrop { background: rgba(3, 36, 69, 0.62); }
.system-modal[open] { display: flex; flex-direction: column; }
.system-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 0 0 auto;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.system-modal__head h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.system-modal__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}
.system-modal__close:hover { background: var(--surface-blue); }
.system-modal__close:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 2px; }
.system-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 28px 30px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.system-modal__intro { margin: 0 0 24px; color: var(--text-muted); }
.system-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.system-step:focus { outline: none; }
.system-step:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 4px; }
.system-step__num {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-yellow);
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 1px 1px 0 var(--brand-navy);
}
.system-step__text p { margin: 12px 0 0; color: var(--text-muted); }
.system-step__support {
  margin-top: 14px !important;
  padding: 11px 15px;
  border-left: 3px solid var(--brand-yellow);
  background: var(--surface-blue);
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 600;
}
.system-step__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.system-step__media img { display: block; width: 100%; }
.system-step__media figcaption { padding: 10px 12px; color: var(--text-muted); font-size: 12px; }
.system-step__media--full { margin-top: 24px; border-top: 1px solid var(--border); }

.sidebar { min-width: 0; }
.sticky-card { position: sticky; top: 24px; }
.sidebar-card {
  padding: 30px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(155deg, var(--brand-navy), var(--brand-navy-deep));
  box-shadow: var(--shadow);
}
.sidebar-card h2 { font-size: 2rem; }
.summary-list { margin: 28px 0; }
.summary-list div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.summary-list dt { color: rgba(255,255,255,0.62); font-size: 13px; }
.summary-list dd { margin: 0; font-size: 14px; font-weight: 650; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 700; text-underline-offset: 4px; }
.light-link { color: #fff; }

.cta-section {
  padding: 72px 0;
  color: #fff;
  background: var(--brand-navy-deep);
}
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-grid h2 { max-width: 760px; }
.cta-grid p:not(.eyebrow) { max-width: 700px; margin: 18px 0 0; color: rgba(255,255,255,0.76); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.site-footer { padding: 34px 0; color: rgba(255,255,255,0.78); background: #021f3b; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.brand-footer .brand-main { font-size: 21px; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-links { display: flex; gap: 18px; }

@media (max-width: 1040px) {
  .desktop-nav { gap: 16px; }
  .project-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
  .system-step { grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .desktop-nav { display: none; }
  .header-inner { gap: 16px; }
  .header-inner .button-small { margin-left: auto; }
  .hero { min-height: 630px; }
  .hero-copy { width: min(100%, 680px); }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(224, 178, 63, 0.10), rgba(96, 76, 36, 0.30) 40%, rgba(46, 36, 17, 0.72) 72%, rgba(32, 25, 12, 0.88)),
      linear-gradient(180deg, rgba(28, 22, 10, 0.12), rgba(28, 22, 10, 0.22));
  }
  .project-layout { grid-template-columns: 1fr; padding-block: 74px; }
  .sticky-card { position: static; }
  .sidebar { order: -1; }
  .sidebar-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
  .sidebar-card .eyebrow,
  .sidebar-card h2 { grid-column: 1; }
  .summary-list { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .sidebar-card .button,
  .sidebar-card .text-link { grid-column: 1; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { background: rgba(3,47,89,0.88); }
  .brand-main { font-size: 20px; }
  .header-inner .button-small { min-height: 38px; padding: 9px 11px; font-size: 12px; }
  .hero { min-height: auto; display: block; padding-top: var(--header-height); }
  .hero-image,
  .hero-video,
  .hero-overlay { height: 100%; }
  .hero-image,
  .hero-video { object-position: 63% center; }
  .hero-content { padding-top: 88px; padding-bottom: 64px; }
  .pill { white-space: normal; margin-bottom: 18px; padding: 8px 11px; font-size: 11px; }
  h1 { font-size: clamp(2.25rem, 11.8vw, 3.25rem); }
  .hero-intro { margin-top: 22px; font-size: 1rem; }
  .metadata { grid-template-columns: 1fr; gap: 13px; margin-top: 28px; }
  .facts { margin-top: 0; }
  .facts-grid { grid-template-columns: 1fr; border-radius: 0; width: 100%; }
  .fact { min-height: 78px; }
  .fact + .fact { border-left: 0; border-top: 1px solid rgba(255,255,255,0.18); }
  .project-layout { padding-block: 58px; gap: 50px; }
  .sidebar-card { display: block; padding: 24px; }
  .summary-list { margin: 24px 0; }
  .story-section { gap: 26px; padding-block: 38px; }
  .story-copy p:not(.eyebrow) { margin-top: 15px; }
  .media-card,
  .compare-card {
    margin-inline: -16px;
    width: calc(100% + 32px);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .timeline-step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding-bottom: 34px; }
  .timeline-step::before { top: 44px; left: 21px; }
  .timeline-marker { width: 44px; height: 44px; }
  .timeline-marker span { font-size: 0.98rem; }
  .timeline-body { padding-top: 6px; }
  .timeline-media { box-shadow: none; }
  .timeline-support { font-size: 13px; }
  .system-modal { width: calc(100vw - 20px); max-height: 90vh; }
  .system-modal__head { padding: 20px 18px 16px; }
  .system-modal__body { padding: 18px 18px 24px; }
  .system-step { grid-template-columns: 1fr; gap: 18px; padding: 20px 0; }
  .cta-section { padding: 58px 0; }
  .cta-actions { display: grid; grid-template-columns: 1fr; }
  .cta-actions .button { width: 100%; }
  .footer-links { flex-direction: column; gap: 8px; }
}

@media (max-width: 340px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 10px; }
  .brand-main { font-size: 18px; }
  .brand-sub { margin-left: 22px; font-size: 7px; }
  .header-inner .button-small { max-width: 132px; padding-inline: 9px; }
  .hero-content { padding-top: 74px; }
  h1 { font-size: 2.18rem; }
  h2 { font-size: 1.75rem; }
  .sidebar-card { padding: 21px; }
  .summary-list div { grid-template-columns: 86px 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
