:root {
  --teal-deep: #002f43;
  --teal: #005477;
  --lime: #9bc53d;
  --lime-dark: #7fa828;
  --ivory: #f3f6f7;
  --ivory-deep: #e4ecef;
  --ink: #0c2029;
  --ink-soft: #435c68;
  --line: rgba(12, 32, 41, 0.12);
  --display: "Space Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1220px, 100% - 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; font: 400 16.5px/1.64 var(--display);
  color: var(--ink); background: #fff; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--teal-deep); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; left: 16px; top: 16px; z-index: 200; background: var(--lime); color: var(--teal-deep); padding: 12px 18px; border-radius: 99px; font-weight: 700; }

/* Preloader */
.gt-loader { position: fixed; inset: 0; z-index: 100; background: var(--teal-deep); color: #fff; display: grid; place-items: center; }
.gt-loader-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.gt-loader-track { width: 160px; height: 4px; background: rgba(255,255,255,0.16); border-radius: 99px; overflow: hidden; }
.gt-loader-track span { display: block; width: 100%; height: 100%; background: var(--lime); transform-origin: left center; transform: scaleX(0); }
.gt-loader-word { font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; }

/* Header */
.gt-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 14px 0; color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s, transform 0.35s var(--ease), border-color 0.35s;
}
.gt-header.solid, .page-light .gt-header {
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px);
  color: var(--ink); border-bottom-color: var(--line);
}
.gt-header.hide { transform: translateY(-105%); }
.gt-header .wrap { display: flex; align-items: center; gap: 18px; }

.gt-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.gt-brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.gt-brand-name { line-height: 1.05; }
.gt-brand-name strong { display: block; font-size: 1.15rem; }
.gt-brand-name span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.78; }

.gt-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gt-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 99px;
}
.gt-nav a:hover, .gt-nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.gt-tel { text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: 99px; border: 0;
  background: var(--lime); color: var(--teal-deep); font: 700 0.93rem var(--display);
  text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), background-color 0.25s;
}
.btn:hover { transform: translateY(-2px); background: #add652; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.teal:hover { background: var(--teal-deep); }
.btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.42); }
.btn.ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.gt-menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; color: inherit;
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
}
.gt-menu-btn span { width: 18px; height: 2px; background: currentColor; }

/* Hero: Railway & Coordinate Grid */
.gt-hero {
  position: relative; min-height: 100svh;
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: #fff; display: flex; align-items: center; padding: 112px 0 64px; overflow: hidden;
}
.gt-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.gt-rail-svg { width: 100%; height: 100%; opacity: 0.42; }
.gt-hero-slot { position: absolute; inset: 0; opacity: 0.2; }
.gt-hero-slot img { width: 100%; height: 100%; object-fit: cover; }

.gt-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.gt-hero h1 { font-size: clamp(2.85rem, 5.8vw, 5.3rem); margin-bottom: 20px; }
.gt-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--lime); }
.gt-hero h1 .ln { display: block; overflow: hidden; }
.gt-hero h1 .ln > span { display: block; }
.gt-hero-lead { font-size: clamp(1.04rem, 1.38vw, 1.18rem); color: rgba(255,255,255,0.88); max-width: 48ch; margin-bottom: 28px; }
.gt-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.gt-ticket-panel {
  background: rgba(0, 47, 67, 0.82); border: 1px solid rgba(155, 197, 61, 0.35);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(10px);
  display: grid; gap: 14px;
}
.gt-ticket-panel h2 { font-size: 1.35rem; color: var(--lime); }
.gt-ticket-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.gt-ticket-rows li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.gt-ticket-rows li:last-child { padding-bottom: 0; border-bottom: 0; }
.gt-ticket-rows span { color: rgba(255,255,255,0.74); }

/* Statement & Stats */
.pad { padding: clamp(72px, 8.5vw, 124px) 0; }
.gt-statement { font-family: var(--serif); font-size: clamp(1.8rem, 3.3vw, 2.85rem); line-height: 1.18; max-width: 30ch; color: var(--teal-deep); }
.gt-statement .w { opacity: 0.25; transition: opacity 0.25s; }
.gt-statement .w.on { opacity: 1; }

.gt-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.gt-fact { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.gt-fact b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--teal); line-height: 1; margin-bottom: 8px; }
.gt-fact span { color: var(--ink-soft); font-size: 0.93rem; }

/* Pinned Horizontal Divisions */
.gt-hscroll {
  background: var(--teal-deep); color: #fff; padding: clamp(64px, 7vw, 96px) 0;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.gt-hhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.gt-hhead h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.gt-hhead p { max-width: 40ch; color: rgba(255,255,255,0.8); }
.gt-track { display: flex; gap: 22px; padding-left: max(20px, calc((100vw - 1220px) / 2)); padding-right: 48px; will-change: transform; }
.gt-dcard {
  flex: 0 0 clamp(290px, 31vw, 390px); background: rgba(0, 84, 119, 0.52);
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 12px; text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.gt-dcard:hover { transform: translateY(-5px); border-color: var(--lime); }
.gt-dcard h3 { font-size: 1.45rem; color: var(--lime); }
.gt-dcard p { color: rgba(255,255,255,0.84); font-size: 0.94rem; }
.gt-tbar { width: var(--wrap); margin: 28px auto 0; height: 2px; background: rgba(255,255,255,0.16); }
.gt-tbar i { display: block; width: 100%; height: 100%; background: var(--lime); transform-origin: left center; transform: scaleX(0); }

/* Pinned 1932 Heritage Timeline */
.gt-heritage { background: var(--ivory); padding: clamp(64px, 7.5vw, 108px) 0; overflow: hidden; }
.gt-her-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; }
.gt-her-box { background: var(--teal); color: #fff; border-radius: 26px; padding: 32px; }
.gt-her-box h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 12px; }
.gt-her-box p { color: rgba(255,255,255,0.88); margin-bottom: 18px; }
.gt-her-prog { width: 100%; height: 3px; background: rgba(255,255,255,0.2); border-radius: 99px; overflow: hidden; }
.gt-her-prog i { display: block; width: 100%; height: 100%; background: var(--lime); transform-origin: left center; transform: scaleX(0); }

.gt-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gt-stop { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; transition: border-color 0.3s, box-shadow 0.3s; }
.gt-stop.is-on { border-color: var(--teal); box-shadow: 0 18px 34px -24px rgba(0, 84, 119, 0.3); }
.gt-stop h3 { font-size: 1.18rem; color: var(--teal-deep); margin-bottom: 4px; }
.gt-stop p { color: var(--ink-soft); font-size: 0.93rem; }

/* CTA */
.gt-cta { background: var(--teal); color: #fff; padding: clamp(68px, 8vw, 110px) 0; }
.gt-cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.gt-cta h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 12px; }
.gt-cta p { color: rgba(255,255,255,0.88); max-width: 48ch; }
.gt-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Subpages */
.page-hero { padding: clamp(128px, 13vw, 170px) 0 clamp(50px, 6vw, 80px); background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); max-width: 17ch; color: var(--teal-deep); margin-bottom: 14px; }
.page-hero p { font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; }
.div-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.div-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
.div-card h2 { font-size: 1.38rem; color: var(--teal-deep); }
.div-card p { color: var(--ink-soft); font-size: 0.94rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.two-col p + p { margin-top: 16px; }
.side-box { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 44px; align-items: start; }
.contact-dl { display: grid; gap: 18px; margin-top: 24px; }
.contact-dl dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal); margin-bottom: 4px; }
.contact-dl dd { margin: 0; font-weight: 500; }
.contact-dl a { text-decoration: none; }
.contact-dl a:hover { text-decoration: underline; }
.form-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.form-card h2 { font-size: 1.85rem; margin-bottom: 8px; color: var(--teal-deep); }
.form-sub { color: var(--ink-soft); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1.5px solid rgba(12,32,41,0.22); border-radius: 12px; font: inherit; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.consent-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 12px 0 20px; font-size: 0.88rem; color: var(--ink-soft); }
.consent-row input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.consent-row a { color: var(--teal); font-weight: 700; }
.form-status { display: block; margin-top: 14px; font-weight: 600; font-size: 0.94rem; min-height: 1.4em; }
.form-status.ok { color: #1b6b3a; }
.form-status.err { color: #a62626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: grid; gap: 6px; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.legal-toc a { text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); }
.legal-toc a:hover { background: #fff; color: var(--ink); }
.legal-body h2 { font-size: 1.55rem; margin: 34px 0 12px; color: var(--teal-deep); }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; }

/* Footer */
.gt-footer { background: var(--teal-deep); color: rgba(255,255,255,0.82); padding: 64px 0 92px; }
.foot-word { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 5.2rem); color: #fff; line-height: 0.95; margin-bottom: 42px; }
.foot-word span { color: var(--lime); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.foot-cols h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.foot-cols a, .foot-cols p { display: block; text-decoration: none; font-size: 0.92rem; margin-bottom: 8px; color: rgba(255,255,255,0.78); }
.foot-cols a:hover { color: var(--lime); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 0.84rem; color: rgba(255,255,255,0.65); }

.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  min-height: 48px; padding: 12px 18px; border-radius: 99px;
  background: var(--lime); color: var(--teal-deep); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
}
.fab-call svg { width: 18px; height: 18px; }

html.gt-anim .rv { opacity: 0; transform: translateY(20px); }

@media (max-width: 960px) {
  .gt-hero-grid, .gt-her-grid, .gt-cta-grid, .two-col, .contact-grid, .legal-wrap { grid-template-columns: 1fr; }
  .gt-cta-actions { justify-content: flex-start; }
  .gt-facts, .foot-cols { grid-template-columns: 1fr 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 780px) {
  .gt-tel, .gt-header .btn { display: none; }
  .gt-menu-btn { display: inline-flex; margin-left: auto; }
  .gt-nav {
    position: fixed; inset: 0; background: var(--teal-deep); color: #fff;
    flex-direction: column; justify-content: center; align-items: center; gap: 14px;
    padding: 32px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
  }
  .gt-nav.open { opacity: 1; pointer-events: auto; }
  .gt-nav a { font-size: 1.45rem; padding: 12px 24px; }
  .form-row, .gt-facts, .foot-cols { grid-template-columns: 1fr; }
  .gt-heritage { padding: 48px 0 28px; }
  .gt-her-grid { gap: 16px; }
  .gt-her-box { padding: 20px; }
  .gt-her-box p { margin-bottom: 12px; font-size: 0.9rem; }
  .gt-stops { gap: 8px; }
  .gt-stop { padding: 12px 14px; }
  .gt-stop h3 { font-size: 1.04rem; }
  .gt-stop p { font-size: 0.84rem; line-height: 1.4; }
  .fab-call { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .fab-call svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .gt-loader { display: none !important; }
  .gt-statement .w { opacity: 1; }
  html.gt-anim .rv { opacity: 1; transform: none; }
}
