/* ==========================================================================
   Horizon Singapore Terminals — global styles
   Palette & structure inspired by corporate terminal-operator sites:
   deep navy, bright accent blue, generous white space, full-bleed imagery.
   ========================================================================== */

:root {
  --navy-900: #061634;
  --navy-800: #0a2150;
  --navy-700: #0f2d6b;
  --blue-500: #0077c8;
  --blue-400: #00a3e0;
  --blue-100: #e6f4fb;
  --grey-50: #f4f6f9;
  --grey-100: #e8ecf1;
  --grey-400: #8a96a8;
  --grey-700: #3c4657;
  --ink: #0c1a33;
  --white: #ffffff;

  --font: "Nunito Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1240px;
  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}

.section { padding: 110px 0; }
.section--grey { background: var(--grey-50); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--grey-700); font-size: 19px; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--blue-400); color: var(--navy-900); }
.btn--primary:hover { background: var(--white); }
.btn--outline { border-color: currentColor; color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn--light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue-500);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  height: 36px;
  align-items: center;
}
.topbar a:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(6,22,52,.08); }
.site-header .container {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 40px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 58px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav > ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  padding: 0 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-800);
  position: relative;
}
.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 3px;
  background: var(--blue-400);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li > a.is-active::after { transform: scaleX(1); }
.main-nav .chev { width: 12px; height: 12px; transition: transform .25s; }
.main-nav li:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(6,22,52,.12);
  border-top: 3px solid var(--blue-400);
  list-style: none;
  margin: 0;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s var(--ease);
}
.main-nav li:hover > .dropdown,
.main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block;
  padding: 11px 24px;
  font-size: 15px;
  color: var(--navy-800);
}
.dropdown a small { display: block; color: var(--grey-400); font-size: 13px; }
.dropdown a:hover { background: var(--grey-50); color: var(--blue-500); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 11px 22px; font-size: 15px; }
.header-actions .btn--primary:hover { background: var(--navy-800); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--navy-800);
  transition: transform .25s var(--ease), background .25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100vh - var(--header-h) - 36px), 880px);
  min-height: min(calc(100svh - var(--header-h) - 36px), 880px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: url("images/home/hero.webp") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,22,52,.82) 0%, rgba(6,22,52,.45) 42%, rgba(6,22,52,0) 72%);
}

.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 160px; }
.hero__content { max-width: 720px; }
.hero .eyebrow { color: var(--blue-400); }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 900; margin-bottom: 24px; }
.hero p { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 20px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Highlight cards (overlap hero) ---------- */
.highlights { position: relative; z-index: 2; margin-top: -110px; }
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(6,22,52,.14);
}
.highlight {
  padding: 36px 36px 32px;
  border-right: 1px solid var(--grey-100);
  display: flex;
  flex-direction: column;
  transition: background .25s var(--ease);
}
.highlight:last-child { border-right: 0; }
.highlight:hover { background: var(--grey-50); }
.highlight__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 12px;
}
.highlight h3 { font-size: 22px; color: var(--navy-800); }
.highlight p { color: var(--grey-700); font-size: 16px; flex: 1; }

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split h2 { font-size: clamp(30px, 4vw, 44px); color: var(--navy-800); }
.split p { color: var(--grey-700); font-size: 18px; }
.split .link-arrow { margin-top: 12px; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::before {
  content: "";
  position: absolute;
  width: 55%; height: 55%;
  right: -24px; bottom: -24px;
  background: var(--blue-400);
  z-index: -1;
}
.split--reverse .split__media { order: 2; }
.split--reverse .split__media::before { right: auto; left: -24px; }

/* ---------- Stats band ---------- */
.stats {
  background: var(--navy-800);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  right: -180px; top: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 90px solid rgba(0,163,224,.08);
}
.stats .section-head h2 { color: var(--white); }
.stats .section-head p { color: rgba(255,255,255,.72); }
.stats .eyebrow { color: var(--blue-400); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.stat { border-top: 2px solid var(--blue-400); padding-top: 24px; }
.stat__value {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}
.stat__value small { font-size: .45em; font-weight: 400; margin-left: 4px; }
.stat__label { color: rgba(255,255,255,.75); font-size: 16px; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(6,22,52,.12); }
.card__img { overflow: hidden; aspect-ratio: 16 / 10; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 22px; color: var(--navy-800); }
.card__body p { color: var(--grey-700); font-size: 16px; flex: 1; }

/* ---------- Feature (image-supported) blocks ---------- */
.feature {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.feature__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,33,80,.9) 0%, rgba(10,33,80,.6) 40%, rgba(10,33,80,0) 70%);
}
.feature .container { position: relative; z-index: 1; }
.feature__content { max-width: 540px; padding: 90px 0; }
.feature h2 { font-size: clamp(30px, 4vw, 46px); }
.feature p { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 32px; }
.feature .eyebrow { color: var(--blue-400); }

/* ---------- Pillars (sustainability / technology) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pillar {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.pillar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,22,52,.92) 0%, rgba(6,22,52,.6) 40%, rgba(6,22,52,0) 72%);
}
.pillar:hover img { transform: scale(1.05); }
.pillar__body { position: relative; z-index: 1; padding: 40px; }
.pillar__body .eyebrow { color: var(--blue-400); }
.pillar__body h3 { font-size: 30px; }
.pillar__body p { color: rgba(255,255,255,.82); max-width: 460px; }
.pillar__body .link-arrow { color: var(--white); }

/* ---------- Location ---------- */
.location {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(6,22,52,.08);
}
.location__info { padding: 56px; }
.location__info h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--navy-800); }
.location__list { list-style: none; padding: 0; margin: 28px 0 36px; }
.location__list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-100);
}
.location__list svg { width: 22px; height: 22px; color: var(--blue-500); flex-shrink: 0; margin-top: 2px; }
.location__list strong { display: block; color: var(--navy-800); font-size: 15px; }
.location__list span { color: var(--grey-700); font-size: 16px; }
.location__map { min-height: 440px; background: var(--grey-100); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--blue-400);
  color: var(--navy-900);
  padding: 80px 0;
}
.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0; max-width: 680px; }
.cta .btn { background: var(--navy-900); color: var(--white); }
.cta .btn:hover { background: var(--white); color: var(--navy-900); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  font-size: 15px;
  padding: 90px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 64px;
}
.footer__brand img { height: 72px; width: auto; margin-bottom: 22px; }
.footer__brand p { max-width: 320px; }
.site-footer h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a:hover { color: var(--blue-400); }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--blue-400); flex-shrink: 0; margin-top: 3px; }


.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 26px 0;
  font-size: 13px;
}
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom ul { display: flex; gap: 24px; }
.footer__bottom li { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .header-actions .btn { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .topbar { display: none; }
  .logo img { height: 48px; }
  .nav-toggle { display: block; }
  .header-actions { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    margin: 0;
  }
  .nav-open .main-nav { transform: none; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 12px 24px 40px; }
  .main-nav > ul > li { border-bottom: 1px solid var(--grey-100); }
  .main-nav > ul > li > a { height: auto; padding: 18px 0; font-size: 18px; justify-content: space-between; }
  .main-nav > ul > li > a::after { display: none; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 12px;
    display: none;
  }
  .main-nav li.is-open > .dropdown { display: block; }
  .main-nav li.is-open .chev { transform: rotate(180deg); }
  .dropdown a { padding: 10px 16px; }

  .hero .container { padding-bottom: 140px; }
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight { border-right: 0; border-bottom: 1px solid var(--grey-100); }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 56px; }
  .split--reverse .split__media { order: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .location__map { min-height: 340px; }
  .location__map iframe { min-height: 340px; }
  .feature::after { background: linear-gradient(90deg, rgba(10,33,80,.92), rgba(10,33,80,.7)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .cards { grid-template-columns: 1fr; }
  .highlight, .location__info, .pillar__body { padding: 28px 24px; }
  .split__media::before { right: -12px; bottom: -12px; }
  .split--reverse .split__media::before { left: -12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,22,52,.82) 0%, rgba(6,22,52,.4) 45%, rgba(6,22,52,0) 75%);
}
.page-hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 900; margin: 0; max-width: 760px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(255,255,255,.4); }
.breadcrumb a:hover { color: var(--blue-400); }
.breadcrumb [aria-current] { color: var(--white); }

/* ---------- Lead statement ---------- */
.lead {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--navy-800);
  max-width: 980px;
  margin: 0;
}
.lead strong { color: var(--blue-500); font-weight: 700; }

/* ---------- Purpose (three-part tagline) ---------- */
.purpose {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 80px;
}
.purpose__item { border-top: 3px solid var(--blue-400); padding-top: 28px; }
.purpose__item h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  color: var(--navy-800);
  margin-bottom: 18px;
}
.purpose__item p { color: var(--grey-700); margin: 0; }

/* ---------- Values ---------- */
.values-list { list-style: none; margin: 28px 0 32px; padding: 0; }
.values-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--grey-100);
}
.values-list li:first-child { border-top: 1px solid var(--grey-100); }
.values-list__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-500);
  font-weight: 700;
  font-size: 15px;
}
.values-list strong { display: block; color: var(--navy-800); font-size: 18px; margin-bottom: 2px; }
.values-list span { color: var(--grey-700); font-size: 16px; }

.quote {
  margin: 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--blue-400);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  color: var(--navy-800);
}

/* ---------- Strategy grid ---------- */
.strategy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strategy__item {
  background: var(--white);
  padding: 36px 30px;
  border-bottom: 4px solid transparent;
  transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.strategy__item:hover { border-color: var(--blue-400); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(6,22,52,.08); }
.strategy__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--blue-400);
  margin-bottom: 24px;
}
.strategy__icon svg { width: 28px; height: 28px; }
.strategy__item h3 { font-size: 20px; color: var(--navy-800); }
.strategy__item p { color: var(--grey-700); font-size: 16px; margin: 0; }

/* ---------- Link tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-100);
  border: 1px solid var(--grey-100);
}
.tile {
  background: var(--white);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: background .25s var(--ease);
}
.tile:hover { background: var(--navy-800); }
.tile h3 { font-size: 22px; color: var(--navy-800); transition: color .25s; }
.tile p { color: var(--grey-700); font-size: 16px; flex: 1; transition: color .25s; }
.tile:hover h3 { color: var(--white); }
.tile:hover p { color: rgba(255,255,255,.75); }
.tile:hover .link-arrow { color: var(--blue-400); }

@media (max-width: 960px) {
  .page-hero { min-height: 380px; }
  .purpose { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .strategy { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page-hero .container { padding-bottom: 48px; }
  .strategy, .tiles { grid-template-columns: 1fr; }
  .tile { padding: 32px 24px; }
}

/* ---------- Terminal finder panel ---------- */
.finder {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(6,22,52,.12);
  position: relative;
  z-index: 2;
  margin-top: -80px;
}
.finder__panel { padding: 44px 44px 40px; }
.finder__count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 18px;
}
.terminal-card {
  border: 1px solid var(--grey-100);
  border-left: 4px solid var(--blue-400);
  padding: 26px 26px 24px;
}
.terminal-card__region {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.terminal-card h2 { font-size: 26px; color: var(--navy-800); margin: 6px 0 6px; }
.terminal-card address { font-style: normal; color: var(--grey-700); font-size: 15px; margin-bottom: 18px; }

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--grey-100);
  margin: 0 0 20px;
}
.spec-list div { background: var(--white); padding: 12px 0; }
.spec-list dt { font-size: 13px; color: var(--grey-400); }
.spec-list dd { margin: 0; font-weight: 700; color: var(--navy-800); font-size: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 700;
}
.finder__map { min-height: 520px; background: var(--grey-100); }
.finder__map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }

/* ---------- Product cards ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product {
  background: var(--white);
  padding: 34px 28px;
  border-top: 4px solid var(--navy-800);
  transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product:hover { border-color: var(--blue-400); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(6,22,52,.08); }
.product__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-500);
  margin-bottom: 22px;
}
.product__icon svg { width: 26px; height: 26px; }
.product h3 { font-size: 20px; color: var(--navy-800); }
.product p { color: var(--grey-700); font-size: 15px; margin: 0; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--grey-100);
  color: var(--grey-700);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061634' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list strong { color: var(--navy-800); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.gallery figure { margin: 0; overflow: hidden; position: relative; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(n+4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 18px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(0deg, rgba(6,22,52,.85), transparent);
}

/* ---------- Notices ---------- */
.notices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.notice {
  display: flex;
  gap: 24px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--grey-100);
}
.notice__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--blue-400);
}
.notice__icon svg { width: 28px; height: 28px; }
.notice--alert { border-left: 4px solid #e0492f; }
.notice--alert .notice__icon { background: #fdecea; color: #c7361e; }
.notice h3 { font-size: 22px; color: var(--navy-800); }
.notice p { color: var(--grey-700); font-size: 16px; }

@media (max-width: 1100px) {
  .products { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .finder { grid-template-columns: 1fr; margin-top: -48px; }
  .finder__map, .finder__map iframe { min-height: 360px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery figure:nth-child(n+4) { grid-column: span 1; }
  .gallery figure:last-child { grid-column: span 2; }
  .notices { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .finder__panel { padding: 28px 20px; }
  .terminal-card { padding: 22px 18px; }
  .products { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery figure:first-child, .gallery figure:last-child { grid-column: auto; grid-row: auto; }
  .notice { flex-direction: column; padding: 28px 24px; }
}

/* ---------- Sub-navigation ("Jump to") ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
}
.subnav .container { display: flex; align-items: center; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav__label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.subnav a {
  flex-shrink: 0;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.subnav a:hover, .subnav a.is-active { color: var(--blue-500); border-color: var(--blue-400); }
[data-section] { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ---------- Focus areas ---------- */
.focus {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.focus__item {
  position: relative;
  background: var(--white);
  padding: 32px 24px 30px;
  border-bottom: 4px solid var(--blue-400);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.focus__item:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(6,22,52,.08); }
.focus__num {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--grey-100);
}
.focus__item .product__icon { position: relative; }
.focus__item h3 { font-size: 19px; color: var(--navy-800); }
.focus__item p { color: var(--grey-700); font-size: 15px; margin: 0; }

/* ---------- Tabs ---------- */
.tabs__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}
.tabs__btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--grey-100);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tabs__btn:hover { border-color: var(--blue-400); }
.tabs__btn[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .focus { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .subnav { top: var(--header-h); }
  .focus { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .focus { grid-template-columns: 1fr; }
}

/* ---------- Text rows (heading left, body right) ---------- */
.text-row {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--grey-100);
}
.text-row:first-child { border-top: 0; padding-top: 0; }
.text-row h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy-800); margin: 0; }
.text-row__body p { color: var(--grey-700); font-size: 18px; }
.text-row__body .link-arrow { margin-top: 6px; }

/* ---------- Info boxes ---------- */
.info-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-box { background: var(--white); padding: 40px; border-top: 4px solid var(--blue-400); }
.info-box h3 { font-size: 22px; color: var(--navy-800); margin-bottom: 20px; }
.info-box dl { margin: 0; }
.info-box dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--grey-100); }
.info-box dt { color: var(--navy-800); font-weight: 700; }
.info-box dd { margin: 0; color: var(--grey-700); text-align: right; }

.tiles--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .tiles--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .text-row { grid-template-columns: 1fr; gap: 20px; padding: 44px 0; }
  .info-boxes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tiles--4 { grid-template-columns: 1fr; }
  .info-box { padding: 28px 22px; }
  .info-box dl div { flex-direction: column; gap: 2px; }
  .info-box dd { text-align: left; }
}

/* ==========================================================================
   Service pages
   ========================================================================== */

/* ---------- Offer cards ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.offer {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-100);
  padding: 34px 32px;
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.offer:hover { border-color: var(--blue-400); box-shadow: 0 16px 36px rgba(6,22,52,.08); transform: translateY(-4px); }
.offer__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--blue-100);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.offer h3 { font-size: 22px; color: var(--navy-800); }
.offer p { color: var(--grey-700); font-size: 16px; flex: 1; }

/* ---------- Quote block ---------- */
.quote-block {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--navy-800);
  color: var(--white);
}
.quote-block img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.quote-block__body { padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.quote-block__mark { font-size: 90px; line-height: .6; color: var(--blue-400); font-weight: 900; height: 44px; }
.quote-block blockquote {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 700;
}
.quote-block cite { font-style: normal; color: rgba(255,255,255,.7); font-size: 15px; }
.quote-block cite strong { display: block; color: var(--white); font-size: 17px; }

/* ---------- Spec cards ---------- */
.spec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.spec-card { background: var(--white); padding: 36px 32px; border-top: 4px solid var(--navy-800); }
.spec-card h3 { font-size: 22px; color: var(--navy-800); margin-bottom: 16px; }
.spec-card ul { list-style: none; margin: 0; padding: 0; }
.spec-card li { padding: 10px 0; border-bottom: 1px solid var(--grey-100); color: var(--grey-700); font-size: 15px; }
.spec-card li:last-child { border-bottom: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--grey-100);
}
.steps li:last-child { border-bottom: 1px solid var(--grey-100); }
.steps li::before {
  content: "Step " counter(step, decimal-leading-zero);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-500);
  padding-top: 4px;
}
.steps h3 { font-size: 22px; color: var(--navy-800); margin-bottom: 6px; }
.steps p { color: var(--grey-700); margin: 0; }

/* ---------- Service rows ---------- */
.rows { border-top: 1px solid var(--grey-100); }
.row-link {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--grey-100);
  transition: padding .25s var(--ease), background .25s var(--ease);
}
.row-link:hover { background: var(--grey-50); padding-left: 20px; padding-right: 20px; }
.row-link__meta { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-400); }
.row-link h3 { font-size: 20px; color: var(--navy-800); margin: 0 0 4px; }
.row-link p { color: var(--grey-700); font-size: 15px; margin: 0; }
.row-link svg { width: 22px; height: 22px; color: var(--blue-500); transition: transform .25s var(--ease); }
.row-link:hover svg { transform: translateX(5px); }

/* ---------- Documents ---------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 28px;
  border: 1px solid var(--grey-100);
}
.doc__icon { width: 40px; height: 40px; color: var(--blue-500); margin-bottom: 18px; }
.doc h3 { font-size: 18px; color: var(--navy-800); margin-bottom: 4px; }
.doc span { color: var(--grey-400); font-size: 14px; flex: 1; margin-bottom: 18px; }

/* ---------- Contact cards ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  padding: 36px;
  border: 1px solid var(--grey-100);
}
.contact-card__avatar {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--blue-400);
  display: grid;
  place-items: center;
}
.contact-card__avatar svg { width: 32px; height: 32px; }
.contact-card h3 { font-size: 21px; color: var(--navy-800); margin-bottom: 6px; }
.contact-card p { color: var(--grey-700); font-size: 16px; }

@media (max-width: 960px) {
  .offers, .spec-cards, .docs { grid-template-columns: 1fr; }
  .quote-block { grid-template-columns: 1fr; }
  .quote-block img { min-height: 260px; max-height: 320px; }
  .quote-block__body { padding: 40px 28px; }
  .steps li { grid-template-columns: 1fr; gap: 8px; }
  .row-link { grid-template-columns: 1fr auto; gap: 8px 20px; }
  .row-link__meta { grid-column: 1 / -1; }
  .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-card { flex-direction: column; padding: 28px 22px; }
  .offer, .spec-card { padding: 28px 22px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.topic {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--grey-100);
  padding: 28px 26px;
  font: inherit;
  cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.topic:hover { border-color: var(--blue-400); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(6,22,52,.08); }
.topic .product__icon { margin-bottom: 18px; }
.topic h3 { font-size: 19px; color: var(--navy-800); margin-bottom: 6px; }
.topic p { color: var(--grey-700); font-size: 15px; margin: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 48px;
  align-items: start;
}

.form-card { background: var(--white); padding: 48px; box-shadow: 0 18px 50px rgba(6,22,52,.08); }
.form-card h2 { font-size: clamp(26px, 3vw, 34px); color: var(--navy-800); }
.form-card > p { color: var(--grey-700); margin-bottom: 32px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy-800); }
.field label span { color: #c7361e; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-bottom: 2px solid var(--grey-400);
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230a2150' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 44px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; background-color: var(--white); border-bottom-color: var(--blue-400); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-bottom-color: #c7361e; }
.field__error { display: none; font-size: 13px; color: #c7361e; }
.field.is-invalid .field__error { display: block; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--grey-700); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-500); flex-shrink: 0; }
.form-actions { margin-top: 28px; }
.form-actions .btn { border: 0; }
.form-actions .btn--primary:hover { background: var(--navy-800); color: var(--white); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 0 20px;
}
.form-success svg { width: 64px; height: 64px; color: var(--blue-400); margin: 0 auto 20px; }
.form-success h3 { font-size: 26px; color: var(--navy-800); }
.form-success p { color: var(--grey-700); }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

.contact-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { background: var(--navy-800); color: var(--white); padding: 36px; }
.aside-card h3 { font-size: 20px; margin-bottom: 18px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.aside-card li:first-child { border-top: 0; padding-top: 0; }
.aside-card svg { width: 22px; height: 22px; color: var(--blue-400); flex-shrink: 0; margin-top: 2px; }
.aside-card strong { display: block; font-size: 14px; color: rgba(255,255,255,.65); font-weight: 700; }
.aside-card span { font-size: 16px; }
.aside-card--light { background: var(--white); color: var(--ink); border: 1px solid var(--grey-100); border-left: 4px solid #e0492f; }
.aside-card--light h3 { color: var(--navy-800); }
.aside-card--light p { color: var(--grey-700); font-size: 15px; margin: 0; }

@media (max-width: 1100px) {
  .topics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}
@media (max-width: 640px) {
  .topics { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .aside-card { padding: 28px 22px; }
}

/* Inline contact links */
.location__list a, .form-card a:not(.btn):not(.link-arrow), .form-success a:not(.link-arrow) { color: var(--blue-500); font-weight: 700; }
.aside-card a { color: var(--white); text-decoration: underline; text-decoration-color: var(--blue-400); text-underline-offset: 3px; }
.location__list a:hover, .form-card a:not(.btn):not(.link-arrow):hover, .aside-card a:hover { color: var(--blue-400); }
.footer__contact a { word-break: break-word; }

/* ==========================================================================
   Transparent header (overlays the hero, turns solid on scroll)
   ========================================================================== */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
}
.site-header {
  position: fixed;
  top: 36px; left: 0; right: 0;
  background: transparent;
  border-bottom-color: rgba(255,255,255,.18);
  transition: background .3s var(--ease), top .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.site-header:not(.is-scrolled) .main-nav > ul > li > a { color: var(--white); }
.site-header:not(.is-scrolled) .nav-toggle span,
.site-header:not(.is-scrolled) .nav-toggle span::before,
.site-header:not(.is-scrolled) .nav-toggle span::after { background: var(--white); }

.site-header.is-scrolled {
  top: 0;
  background: var(--white);
  border-bottom-color: var(--grey-100);
}

/* Heroes now start at the very top, under the header */
.hero { min-height: min(100vh, 980px); min-height: min(100svh, 980px); }
.hero .container { padding-top: calc(var(--header-h) + 36px + 60px); }
.page-hero { min-height: calc(460px + var(--header-h)); }
.page-hero .container { padding-top: calc(var(--header-h) + 36px + 60px); }

/* Soft shade at the top of hero images so the white menu stays readable */
.hero__media::after,
.page-hero__bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(6,22,52,.6) 0%, rgba(6,22,52,0) 100%);
}

@media (max-width: 960px) {
  .site-header { top: 0; }
  .nav-open .site-header { background: var(--white); }
  .nav-open .site-header .nav-toggle span::before,
  .nav-open .site-header .nav-toggle span::after { background: var(--navy-800); }
  .nav-open .site-header .main-nav > ul > li > a { color: var(--navy-800); }
  .hero .container, .page-hero .container { padding-top: calc(var(--header-h) + 48px); }
  .page-hero { min-height: calc(380px + var(--header-h)); }
}

/* ==========================================================================
   Shared content blocks (icon grid, FAQ, data table)
   ========================================================================== */

/* ---------- Icon grid ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--grey-100); border-left: 1px solid var(--grey-100); }
.icon-grid__item {
  padding: 40px 36px;
  border-right: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
  background: var(--white);
  transition: background .25s var(--ease);
}
.icon-grid__item:hover { background: var(--grey-50); }
.section--grey .icon-grid__item:hover { background: var(--blue-100); }
.icon-grid__item .product__icon { margin-bottom: 20px; }
.icon-grid__item h3 { font-size: 20px; color: var(--navy-800); }
.icon-grid__item p { color: var(--grey-700); font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.faq-layout .section-head { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--grey-100); }
.faq details { border-bottom: 1px solid var(--grey-100); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-800);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-500); }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230077c8' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease), background-color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blue-400); }
.faq details p { color: var(--grey-700); margin: 0 0 24px; padding-right: 56px; }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; background: var(--white); box-shadow: 0 18px 50px rgba(6,22,52,.06); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.data-table th, .data-table td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
.data-table thead th { background: var(--navy-800); color: var(--white); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.data-table tbody th { color: var(--navy-800); font-weight: 700; width: 26%; }
.data-table td { color: var(--grey-700); }
.data-table tbody tr:hover { background: var(--grey-50); }
.table-note { font-size: 14px; color: var(--grey-400); margin-top: 16px; }

/* Word-based stat values (e.g. "Real-time") */
.stat__value--word { font-size: clamp(30px, 3.4vw, 44px); }

@media (max-width: 960px) {
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-head { position: static; }
}
@media (max-width: 640px) {
  .icon-grid { grid-template-columns: 1fr; }
  .icon-grid__item { padding: 28px 22px; }
  .faq summary { font-size: 16px; }
  .faq details p { padding-right: 0; }
}

/* ==========================================================================
   Blue icon sections (#0077c8)
   ========================================================================== */
.section--blue { background: var(--blue-500); color: var(--white); }
.section--blue .section-head h2 { color: var(--white); }
.section--blue .section-head p { color: rgba(255,255,255,.88); }
.section--blue .eyebrow { color: rgba(255,255,255,.8); }

/* Icon grid: open cells on the blue background */
.section--blue .icon-grid { border-color: rgba(255,255,255,.25); }
.section--blue .icon-grid__item { background: transparent; border-color: rgba(255,255,255,.25); }
.section--blue .icon-grid__item:hover { background: rgba(255,255,255,.08); }
.section--blue .icon-grid__item h3 { color: var(--white); }
.section--blue .icon-grid__item p { color: rgba(255,255,255,.85); }
.section--blue .icon-grid__item .product__icon { background: var(--white); color: var(--blue-500); }

/* Card-style icon sections: transparent cards that blend into the blue */
.section--blue .product,
.section--blue .focus__item,
.section--blue .strategy__item,
.section--blue .topic {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: none;
}
.section--blue .product { border-top: 4px solid var(--white); }
.section--blue .focus__item { border-bottom: 4px solid var(--white); }
.section--blue .strategy__item { border-bottom: 1px solid rgba(255,255,255,.3); }
.section--blue .product:hover,
.section--blue .focus__item:hover,
.section--blue .strategy__item:hover,
.section--blue .topic:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  box-shadow: none;
}
.section--blue .product:hover { border-top-color: var(--white); }
.section--blue .focus__item:hover { border-bottom-color: var(--white); }
.section--blue .strategy__item:hover { border-bottom-color: var(--white); }

.section--blue .product h3,
.section--blue .focus__item h3,
.section--blue .strategy__item h3,
.section--blue .topic h3 { color: var(--white); }
.section--blue .product p,
.section--blue .focus__item p,
.section--blue .strategy__item p,
.section--blue .topic p { color: rgba(255,255,255,.85); }

.section--blue .product__icon { background: var(--white); color: var(--blue-500); }
.section--blue .strategy__icon { background: var(--white); color: var(--blue-500); }
.section--blue .focus__num { color: rgba(255,255,255,.2); }

/* ==========================================================================
   Homepage hero: curtain reveal on page load
   ========================================================================== */
.hero__curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  /* navy fabric with soft vertical folds */
  background:
    linear-gradient(180deg, rgba(6,22,52,.55) 0%, rgba(6,22,52,0) 25%, rgba(6,22,52,0) 75%, rgba(6,22,52,.55) 100%),
    repeating-linear-gradient(90deg, #0a2150 0px, #11306e 34px, #0a2150 68px, #081a40 86px, #0a2150 102px);
  animation-duration: 10s;
  animation-delay: .6s;
  animation-timing-function: cubic-bezier(.35, 0, .65, 1);   /* even, gentle pace */
  animation-fill-mode: both;
}
.hero__curtain--left {
  left: 0;
  width: calc(50% + 1px);           /* 1px overlap so no gap shows at the seam */
  box-shadow: inset -18px 0 30px -12px rgba(0,0,0,.45);
  animation-name: curtainLeft;
  transform-origin: left center;
}
.hero__curtain--right {
  right: 0;
  box-shadow: inset 18px 0 30px -12px rgba(0,0,0,.45);
  animation-name: curtainRight;
  transform-origin: right center;
}
/* Logo split across the seam: each curtain shows one half */
.hero__curtain::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 170px; height: 205px;
  margin-top: -90px;
  background: url("logo/horizon-logo.svg") center / contain no-repeat;
  animation: curtainLogoOut 1.2s ease 2s both;
}
@keyframes curtainLogoOut { to { opacity: 0; } }
.hero__curtain--left::after { right: -84px; }
.hero__curtain--right::after { left: -85px; }
/* Light trim along the meeting edges */
.hero__curtain--left::before,
.hero__curtain--right::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--blue-400) 20%, var(--blue-400) 80%, transparent);
  opacity: .7;
}
.hero__curtain--left::before { right: 0; }
.hero__curtain--right::before { left: 0; }

@keyframes curtainLeft {
  0%   { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(-60%) scaleX(.6); }   /* edge reaches the side exactly at the end */
}
@keyframes curtainRight {
  0%   { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(60%) scaleX(.6); }
}

/* The overlapping highlight cards sit above the curtains and fade in with the hero text */
.hero:has(.hero__curtain) + .highlights { z-index: 4; animation: heroContentIn 1.2s cubic-bezier(.2,.7,.2,1) 3.4s both; }

/* Hero text and scroll cue appear early and sit above the slowly opening curtains */
.hero:has(.hero__curtain) .container { z-index: 4; }
.hero:has(.hero__curtain) .hero__scroll { z-index: 4; }
.hero:has(.hero__curtain) .hero__content { animation: heroContentIn 1.2s cubic-bezier(.2,.7,.2,1) 3s both; }
.hero:has(.hero__curtain) .hero__scroll  { animation: heroContentIn .8s ease 3.8s both; }
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
/* the scroll cue is centred with translateX, keep that during its fade */
.hero:has(.hero__curtain) .hero__scroll { animation-name: heroCueIn; }
@keyframes heroCueIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .hero__curtain::after { width: 120px; height: 145px; margin-top: -60px; }
  .hero__curtain--left::after { right: -59px; }
  .hero__curtain--right::after { left: -60px; }
}

/* No animation wanted: skip the curtains entirely */
@media (prefers-reduced-motion: reduce) {
  .hero__curtain { display: none; }
}

/* ==========================================================================
   Homepage hero: text falls like snow after the curtains open
   (index.js adds .is-snowing and splits the text into letters)
   ========================================================================== */
.hero.is-snowing .hero__content,
.hero.is-snowing .hero__scroll,
.hero.is-snowing + .highlights { animation: none; }

.snow-word { display: inline-block; white-space: nowrap; }
.snow-flake,
.snow-item {
  display: inline-block;
  opacity: 0;
  animation-name: snowFall;
  animation-timing-function: cubic-bezier(.25, .6, .35, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}
.hero.is-snowing .hero__scroll { opacity: 0; animation: heroCueIn 1.2s ease both; }

/* Each flake starts above its place (--y), drifts sideways (--x), sways back and settles */
@keyframes snowFall {
  0%   { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  12%  { opacity: 1; }
  45%  { transform: translate(calc(var(--x) * -0.55), calc(var(--y) * 0.45)) rotate(calc(var(--r) * -0.6)); }
  75%  { transform: translate(calc(var(--x) * 0.25), calc(var(--y) * 0.12)) rotate(calc(var(--r) * 0.25)); }
  100% { opacity: 1; transform: none; }
}

/* Screen readers get the full sentence instead of single letters */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.btn.snow-item { display: inline-flex; }
.highlight.snow-item { display: flex; }
/* While snowing, each card carries its own white background so no empty panel shows before they fall */
.hero.is-snowing + .highlights .highlights__grid { background: transparent; box-shadow: none; }
.hero.is-snowing + .highlights .highlight { background: var(--white); box-shadow: 0 24px 60px rgba(6,22,52,.14); }
.hero.is-snowing + .highlights .highlight:hover { background: var(--grey-50); }

/* Blue offer cards (#0077c8), e.g. "Industries we serve" on the homepage */
.offers--blue .offer {
  background: var(--blue-500);
  border-color: var(--blue-500);
}
.offers--blue .offer:hover {
  background: #0069b2;
  border-color: #0069b2;
  box-shadow: 0 16px 36px rgba(0,119,200,.3);
}
.offers--blue .offer h3 { color: var(--white); }
.offers--blue .offer p { color: rgba(255,255,255,.88); }
.offers--blue .offer__tag { background: var(--white); color: var(--blue-500); }
.offers--blue .offer .link-arrow { color: var(--white); }

/* ==========================================================================
   Masonry photo gallery (image-search style)
   ========================================================================== */
.masonry { column-count: 3; column-gap: 20px; }
.masonry__item {
  break-inside: avoid;
  margin: 0 0 24px;
  display: inline-block;   /* keeps each card whole inside its column */
  width: 100%;
}
.masonry__img {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grey-100);
  box-shadow: 0 2px 8px rgba(6,22,52,.08);
  transition: box-shadow .3s var(--ease);
}
.masonry__img img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.masonry__img:hover { box-shadow: 0 14px 34px rgba(6,22,52,.18); }
.masonry__img:hover img { transform: scale(1.04); }
/* vary heights like a real image grid, balanced so the columns end together */
.masonry__img img { object-fit: cover; }
.masonry__item:nth-child(1) .masonry__img img { aspect-ratio: 4 / 3; }
.masonry__item:nth-child(2) .masonry__img img { aspect-ratio: 1 / 1; }
.masonry__item:nth-child(3) .masonry__img img { aspect-ratio: 4 / 5; }
.masonry__item:nth-child(4) .masonry__img img { aspect-ratio: 16 / 9; }
.masonry__item:nth-child(5) .masonry__img img { aspect-ratio: 1 / 1; }
.masonry__item:nth-child(6) .masonry__img img { aspect-ratio: 4 / 3; }
.masonry figcaption { padding: 10px 2px 0; }
.masonry__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masonry__source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--grey-700);
}
.masonry__source img { width: 14px; height: auto; }

@media (max-width: 960px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

/* ==========================================================================
   Sublease location cards (terminals page)
   ========================================================================== */
.locations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.location-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 32px 28px;
  border-top: 4px solid var(--blue-500);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.location-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(6,22,52,.1); }
.location-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.location-card__code {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
}
.location-card__region {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.location-card h3 { font-size: 26px; color: var(--navy-800); margin-bottom: 4px; }
.location-card__country { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--grey-400); margin-bottom: 14px; }
.location-card__country svg { width: 16px; height: 16px; color: var(--blue-500); }
.location-card p:not(.location-card__country) { color: var(--grey-700); font-size: 15px; flex: 1; }

@media (max-width: 1100px) { .locations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .locations { grid-template-columns: 1fr; } .location-card { padding: 26px 22px; } }
/* Blue location cards (#0077c8) */
.location-card { background: var(--blue-500); border-top-color: var(--navy-800); }
.location-card:hover { background: #0069b2; box-shadow: 0 16px 36px rgba(0,119,200,.3); }
.location-card__code { background: var(--white); color: var(--blue-500); }
.location-card__region { color: rgba(255,255,255,.85); }
.location-card h3 { color: var(--white); }
.location-card__country { color: rgba(255,255,255,.8); }
.location-card__country svg { color: var(--white); }
.location-card p:not(.location-card__country) { color: rgba(255,255,255,.88); }
.location-card .link-arrow { color: var(--white); }

/* Homepage "Who we are": five service cards under the intro split */
.about-services { margin-top: 96px; }
.focus--tinted .focus__item { background: var(--grey-50); }
@media (max-width: 760px) { .about-services { margin-top: 64px; } }
