/* ── TOKENS ── */
:root {
  --peak:   #EEF3F8;
  --ice:    #DDEAF5;
  --steel:  #8AAFC8;
  --diani:  #185FA5;
  --mid:    #1A3A5C;
  --deep:   #042C53;
  --base:   #081524;
  --foot:   #050E1A;
  --white:  #FFFFFF;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Barlow', sans-serif;
  --cond:   'Barlow Condensed', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--foot); color: var(--white); overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── SHARED ── */
.section-label {
  font-family: var(--cond);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--diani);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 0.5px;
  background: currentColor;
}
.section-label.light { color: var(--steel); }

.section-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--deep);
  margin-bottom: 0;
}
.section-heading em { font-style: italic; color: var(--diani); }
.section-heading.light { color: var(--ice); }
.section-heading.light em { color: var(--steel); }

/* ── RIDGE (legacy — keep for certs→contact only) ── */
.ridge {
  display: block;
  width: 100%;
  line-height: 0;
  background: var(--base);
  margin-top: -2px;
  position: relative;
}
.ridge svg { display: block; width: 100%; }

/* SNOW LAYER 3: snow tracing the ridge — strongest accumulation.
   This is the summit. Snow sits on the mountain edge exactly as it would
   on a real alpine ridge. clip-path mirrors the SVG polygon points.
   Ancient, settled. No animation. */
.ridge::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 22px;
  background: linear-gradient(
    to bottom,
    rgba(238,243,248,0.88),
    rgba(238,243,248,0.0)
  );
  clip-path: polygon(
    0% 70%,
    13.9% 56%,
    29.2% 64%,
    44.4% 40%,
    50% 52%,
    55.6% 32%,
    70.8% 48%,
    87.5% 27%,
    100% 43%,
    100% 100%,
    0% 100%
  );
  pointer-events: none;
  z-index: 2;
  filter: blur(1.5px);
}

/* ── SILVER LINE DIVIDERS ── */
.silver-line {
  position: relative;
  height: 1px;
  margin: 0;
  border: none;
  background: linear-gradient(
    90deg,
    transparent          0%,
    rgba(210,220,230,0.06) 15%,
    rgba(255,255,255,0.28) 50%,
    rgba(210,220,230,0.06) 85%,
    transparent          100%
  );
}

/* ── NAVBAR ── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.4s, padding 0.3s, backdrop-filter 0.4s;
}
#site-nav.scrolled {
  background: rgba(8,21,36,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 48px;
  border-bottom: 0.5px solid rgba(138,175,200,0.12);
}
.nav-logo-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
/* CHANGE 1: logo height increased from 36px → 42px for more authority */
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo-img:hover { opacity: 0.8; }
.nav-logo-main {
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo-sub {
  font-family: var(--cond);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ── DESKTOP NAV LINKS ── */
.nav-links-desktop {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-links-desktop a {
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}
.nav-links-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links-desktop a:hover { color: var(--white); }
.nav-links-desktop a:hover::after { width: 100%; }
.nav-links-desktop a[data-active="true"] { color: var(--white); }
.nav-links-desktop a[data-active="true"]::after { width: 100%; }

/* ── MOBILE OVERLAY — hidden on desktop ── */
#nav-overlay { display: none; }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--foot);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  overflow: hidden;
}
/* inner wrapper receives the zoom — outer clip contains it */
.hero-slide-inner {
  position: absolute;
  inset: -4%;   /* slight oversize so zoom never shows edges */
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,14,26,0.25) 0%,
    rgba(5,14,26,0.1)  35%,
    rgba(5,14,26,0.45) 70%,
    rgba(5,14,26,0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeUp 1.8s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-eyebrow {
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
  animation: fadeUp 1.8s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 110px);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 22px;
  animation: fadeUp 1.8s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-title em { font-style: italic; color: var(--ice); }
.hero-company {
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: fadeUp 1.8s 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeUp 1.8s 0.7s cubic-bezier(0.22,1,0.36,1) both;
  z-index: 2;
}
.hero-scroll span {
  font-family: var(--cond);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.scroll-line {
  width: 0.5px; height: 44px;
  background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: rgba(255,255,255,0.55);
  animation: scrollDrop 2s ease-in-out infinite;
}
.hero-dots {
  position: absolute;
  bottom: 36px; right: 48px;
  display: flex; gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 20px; height: 1.5px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.hero-dot.active { background: var(--white); width: 36px; }

/* ── STORY ── */
#story {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--base);
}

/* full-bleed background image */
.story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* CHANGE 2: increased grayscale + reduced brightness so image behaves as atmosphere,
   not a competing element. Text is the hero. */
.story-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(55%) contrast(1.02) brightness(0.72);
}

/* dark gradient — heavy left, fades right */
.story-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(5,14,26,0.94) 0%,
    rgba(5,14,26,0.80) 38%,
    rgba(5,14,26,0.45) 65%,
    rgba(5,14,26,0.15) 100%
  );
}

/* floating text — left-anchored */
.story-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  padding: 100px 0 100px 72px;
}

/* centrepiece quote — carved stone feel */
.story-centerquote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--white);
  border: none;
  margin: 22px 0 32px;
  padding: 0;
}

.story-intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(220,235,245,0.78);
  max-width: 380px;
  margin-bottom: 0;
}

/* ── STORY PILLARS ── */
.story-pillars-block {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
  max-width: 440px;
  border-top: 0.5px solid rgba(138,175,200,0.12);
}
.pillar {
  padding: 24px 0 22px;
  border-bottom: 0.5px solid rgba(138,175,200,0.10);
}
.pillar-label {
  font-family: var(--cond);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
  display: block;
}
.pillar-body {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(238,243,248,0.88);
  max-width: 320px;
}

/* ── INTERLUDE ── */
.interlude {
  background: var(--base);
  padding: 88px 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.interlude-line {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 300;
  color: var(--ice);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.interlude-line.italic {
  font-style: italic;
  color: var(--steel);
  margin-bottom: 0;
}

/* CHANGE 3: thin divider */
.interlude-divider {
  width: 60px;
  height: 1px;
  background: rgba(138,175,200,0.18);
  margin: 34px auto 30px;
}

/* Proof paragraphs — evidence of work, not a service list */
.interlude-proof {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: rgba(220,235,245,0.78);
}

.interlude-proof-sub {
  max-width: 620px;
  margin: 26px auto 0;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(138,175,200,0.72);
}

/* ── FIELDS OF WORK ── */
#portfolio {
  background: var(--base);
  padding: 0 0 80px;
}

.fields-header {
  padding: 88px 72px 48px;
}
.fields-intro {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: rgba(138,175,200,0.5);
  margin-top: 12px;
}

/* ── THREE PEAKS COMPOSITION ── */
.peaks-composition {
  display: grid;
  grid-template-columns: 1fr 1.28fr 1fr;
  align-items: end;
  gap: 6px;
  padding: 0 6px;
}

/* ── SHARED PEAK STYLES ── */
.peak {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.peak-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.peak-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(25%) contrast(1.06);
  will-change: transform;
  transition: filter 0.6s ease;
}
.peak:hover .peak-bg img {
  filter: grayscale(10%) contrast(1.08);
}

.peak-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(5,14,26,0.92) 0%,
    rgba(5,14,26,0.45) 50%,
    rgba(5,14,26,0.12) 100%
  );
  transition: background 0.5s ease;
}
.peak:hover .peak-overlay {
  background: linear-gradient(
    to top,
    rgba(5,14,26,0.86) 0%,
    rgba(5,14,26,0.38) 50%,
    rgba(5,14,26,0.15) 100%
  );
}

.peak-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 0 32px 40px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.peak:hover .peak-content {
  transform: translateY(-4px);
}

.peak-num {
  font-family: var(--cond);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--steel);
  opacity: 0.6;
  margin-bottom: 12px;
}

.peak-title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.peak-disciplines {
  font-family: var(--cond);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(138,175,200,0.55);
  margin-bottom: 20px;
  line-height: 1.7;
}

.peak-cta {
  font-family: var(--cond);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.35s ease, gap 0.4s cubic-bezier(0.22,1,0.36,1);
}
.peak:hover .peak-cta { opacity: 1; gap: 14px; }
.peak-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.peak:hover .peak-arrow { transform: translateX(5px); }

/* ── INDIVIDUAL PEAK HEIGHTS (the mountain) ── */
.peak-left   { height: 480px; }
.peak-summit { height: 640px; }
.peak-right  { height: 520px; }

/* ── SNOW LAYER 1: peak deposits ──
   Mineral-white accumulation caught on upper ledges.
   Not snowflakes — geology. Ancient and settled.
   mix-blend-mode: screen lifts off the dark image naturally. */
.peak::before {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 110px;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(18px);
}

/* each peak: different position, width, opacity — irregularity = realism */
.peak-left::before {
  left: 8%;
  width: 48%;
  height: 90px;
  background: radial-gradient(
    ellipse at top left,
    rgba(238,243,248,0.18) 0%,
    rgba(238,243,248,0.07) 45%,
    transparent 72%
  );
}
.peak-summit::before {
  left: 18%;
  width: 56%;
  height: 130px;
  background: radial-gradient(
    ellipse at top center,
    rgba(238,243,248,0.22) 0%,
    rgba(238,243,248,0.09) 42%,
    transparent 70%
  );
  filter: blur(22px);
}
.peak-right::before {
  left: 28%;
  width: 44%;
  height: 80px;
  background: radial-gradient(
    ellipse at top right,
    rgba(238,243,248,0.14) 0%,
    rgba(238,243,248,0.05) 50%,
    transparent 76%
  );
  filter: blur(16px);
}

/* ── INDIVIDUAL PEAK TYPOGRAPHY SIZING ── */
.peak-summit .peak-title { font-size: clamp(36px, 3.8vw, 58px); }
.peak-left   .peak-title { font-size: clamp(28px, 2.8vw, 42px); }
.peak-right  .peak-title { font-size: clamp(28px, 2.8vw, 42px); }

/* ── CERTIFICATIONS ── */
/* Softer dark — "foggy coastal steel blue."
   Not the heavy base navy; a lifted mineral mid-tone that gives the eye
   relief without breaking the site's identity. */
#certifications {
  background: linear-gradient(180deg, #12283C 0%, #102132 100%);
  padding: 100px 72px 120px;
  position: relative;
  overflow: hidden;
}

/* SNOW LAYER 2: frost haze at the top of certifications.
   Alpine atmosphere — elevation, cold, breathing space.
   Sits above the texture, below the content. */
#certifications::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -10%;
  width: 120%;
  height: 220px;
  background: radial-gradient(
    ellipse at center top,
    rgba(238,243,248,0.07) 0%,
    rgba(220,235,245,0.03) 40%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
}

/* texture removed — clean steel blue is stronger without the grid */
.certs-texture { display: none; }

/* CHANGE 4: reduced from 1160px → 980px.
   Luxury layouts breathe inward — narrower feels more curated. */
.certs-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

/* header */
.certs-header { margin-bottom: 56px; }
.certs-header .section-heading { margin-top: 8px; }

/* ── ACCREDITATION RAIL ── */
.certs-rail {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 72px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid rgba(138,175,200,0.08);
}
.rail-label {
  font-family: var(--cond);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(138,175,200,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.rail-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.rail-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.8) opacity(0.35);
  transition: filter 0.3s ease;
}
.rail-logo:hover {
  filter: grayscale(100%) brightness(2.2) opacity(0.55);
}

/* ── MONUMENT BLOCKS ── */
.monuments {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 3px;
  align-items: end;
}

/* shared monument — cards emerge softly from the steel-blue ground */
.monument {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 36px 32px 40px;
  position: relative;
  overflow: hidden;
}
.monument::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1.5px;
  height: 0;
  background: var(--diani);
  transition: height 0.5s cubic-bezier(0.22,1,0.36,1);
}
.monument:hover::before { height: 100%; }

.monument-logo {
  /* stone plate behind logo — creates contrast, institutional stamp feel */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: #EEF3F8;
  border-radius: 2px;
  margin-bottom: 34px;
}
.monument-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  /* white plate provides separation — no need for extreme brightness */
  filter: grayscale(100%) contrast(1.05) opacity(0.82);
  transition: filter 0.4s ease;
}
.monument:hover .monument-logo img {
  filter: grayscale(100%) contrast(1.1) opacity(0.95);
}

.monument-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--ice);
  line-height: 1.3;
  margin-bottom: 18px;
}
.monument-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(220,235,245,0.70);
}

/* ── INDIVIDUAL MONUMENT SIZING ── */

/* A: NCA — large anchor, spans 2 rows */
.monument-a {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 48px 36px 52px;
  background: rgba(24,95,165,0.06);
  border-color: rgba(24,95,165,0.14);
}
.monument-a .monument-title { font-size: 22px; }
.monument-a .monument-logo img { height: 56px; }

/* B: KRA — medium, sits high */
.monument-b {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

/* C: County — tall, right */
.monument-c {
  grid-column: 3;
  grid-row: 1 / span 2;
  background: rgba(255,255,255,0.02);
}

/* monument-d: stone plaque anchoring bottom-right */
.monument-d {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: end;
  background: rgba(138,175,200,0.02);
  padding: 22px 20px;
}
.monument-d .monument-title {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(238,243,248,0.6);
  margin-bottom: 10px;
}
.monument-d .monument-text {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(138,175,200,0.4);
}

/* ── CTA SECTION ── */
/* Final emotional moment — invitation after proof.
   Quieter, softer, more spacious than everything above it. */
#cta {
  background: var(--base);
  padding: 120px 48px 110px;
  text-align: center;
}
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}
.cta-label {
  font-family: var(--cond);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: 0.6;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cta-label::before,
.cta-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: currentColor;
}
.cta-heading {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.cta-heading em {
  font-style: italic;
  color: var(--steel);
}
.cta-sub {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(220,235,245,0.68);
  margin-bottom: 48px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--diani);
  border: none;
  border-radius: 2px;
  color: var(--white);
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, gap 0.3s cubic-bezier(0.22,1,0.36,1);
}
.cta-btn:hover {
  background: #1a72c2;
  gap: 18px;
}
.cta-btn-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.cta-btn:hover .cta-btn-arrow { transform: translateX(4px); }

/* ── CONTACT RAIL ── */
/* ── CONTACT RAIL ── */
/* Quiet infrastructure — minimal, strong, architectural */
#contact-rail {
  background: linear-gradient(to bottom, #081524 0%, #0a1827 100%);
  border-top: 1px solid rgba(138,175,200,0.08);
  padding: 34px 48px;
}

.rail-inner {
  max-width: 1180px;
  margin: 0 auto;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.rail-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;

  font-family: var(--cond);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: rgba(238,243,248,0.78);

  transition:
    color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.rail-item svg {
  opacity: 0.42;
  flex-shrink: 0;
}

.rail-item:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.rail-item:hover svg {
  opacity: 0.7;
}

/* subtle separators */
.rail-item:not(:last-child)::after {
  content: '';
  width: 18px;
  height: 1px;
  background: rgba(138,175,200,0.14);
  margin-left: 14px;
}

/* mobile */
@media (max-width: 768px) {
  #contact-rail {
    padding: 28px 22px;
  }

  .rail-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .rail-item {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .rail-item::after {
    display: none;
  }
}

/* ── MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,14,26,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-end;        /* slides up from bottom on mobile */
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
@media (min-width: 769px) {
  .modal-backdrop { align-items: center; padding: 24px; }
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: #0E1F30;
  border: 0.5px solid rgba(138,175,200,0.15);
  border-radius: 3px 3px 0 0;
  width: 100%;
  max-width: 480px;
  /* No scroll on mobile — form is short enough */
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
@media (min-width: 769px) {
  .modal {
    border-radius: 3px;
    transform: translateY(20px);
    /* Only desktop gets the scroll safety net */
    max-height: 92svh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}
.modal-backdrop.open .modal { transform: translateY(0); }

/* Sticky close bar — always visible while scrolling */
.modal-close-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 0;
  background: #0E1F30;
}
.modal-close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  color: #fff; font-size: 18px; font-weight: 300;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.14); transform: scale(1.05); }
.modal-close:active { transform: scale(0.95); }

.modal-body { padding: 10px 28px 36px; }

.modal-label {
  font-family: var(--cond);
  font-size: 9px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel); opacity: 0.55;
  margin-bottom: 10px;
}
.modal-heading {
  font-family: var(--serif);
  font-size: 26px; font-weight: 300;
  color: var(--ice); line-height: 1.2;
  margin-bottom: 28px;
}
.modal-heading em { font-style: italic; color: var(--steel); }

/* Spinner for loading state */
.spinner {
  width: 14px; height: 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-submit.loading .spinner { display: block; }
.form-submit.loading .btn-text { opacity: 0.75; }

/* ── INTENT BUTTONS ── */
.modal-intent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.intent-btn {
  font-family: var(--cond);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(138,175,200,0.6);
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(138,175,200,0.15);
  border-radius: 2px;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.intent-btn:hover {
  color: var(--white);
  border-color: rgba(138,175,200,0.35);
  background: rgba(24,95,165,0.08);
}
.intent-btn.active {
  color: var(--white);
  background: rgba(24,95,165,0.18);
  border-color: rgba(24,95,165,0.5);
}

/* form inside modal — reuse existing form styles */
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-form .form-field { display: flex; flex-direction: column; gap: 6px; }
.modal-form .form-label {
  font-family: var(--cond);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(138,175,200,0.45);
}
.modal-form .form-input,
.modal-form .form-select,
.modal-form .form-textarea {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(138,175,200,0.12);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--ice);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.modal-form .form-input:focus,
.modal-form .form-select:focus,
.modal-form .form-textarea:focus {
  border-color: rgba(24,95,165,0.5);
  background: rgba(24,95,165,0.04);
}
.modal-form .form-select { appearance: none; cursor: pointer; }
.modal-form .form-textarea { resize: none; height: 90px; line-height: 1.6; }

/* form footer — submit + whatsapp side by side */
.modal-form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.modal-form .form-submit {
  padding: 13px 32px;
  background: var(--diani);
  border: none;
  border-radius: 2px;
  color: var(--white);
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.modal-form .form-submit:hover  { background: #1a72c2; }
.modal-form .form-submit:active { transform: scale(0.98); }

.modal-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--cond);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(138,175,200,0.55);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.modal-whatsapp:hover { color: var(--steel); }

.modal-success {
  display: none;
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-top: 8px;
}
.modal-success.show { display: block; }

/* ── FLOATING CONTACT DOCK ── */
/* Architectural concierge — not a chatbot bubble */
.floating-contact {
  position: fixed;
  right: 32px;
  bottom: 28px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(8,18,31,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(138,175,200,0.12);
  text-decoration: none;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.28);
}
.floating-contact:hover {
  transform: translateY(-3px);
  border-color: rgba(138,175,200,0.26);
  background: rgba(10,24,40,0.96);
}
.floating-contact-label {
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220,232,244,0.82);
}
.floating-contact-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138,175,200,0.14);
  color: var(--white);
  font-size: 14px;
  flex-shrink: 0;
}

/* ── MOBILE: CTA + RAIL ── */
@media (max-width: 768px) {
  #cta { padding: 88px 28px 80px; }
  .cta-heading { font-size: 36px; }
  .cta-sub { font-size: 13px; }

  #contact-rail { padding: 36px 20px; }
  .rail-inner { grid-template-columns: 1fr; gap: 10px; }
  .rail-item { padding: 18px; border-radius: 14px; }
  .rail-value { font-size: 14px; }
  .rail-icon  { width: 40px; height: 40px; }

  .modal { padding: 72px 22px 32px; }
  .modal-close {
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 24px;
    background: rgba(8,21,36,0.92);
    border: 1px solid rgba(138,175,200,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .modal-form .form-row { grid-template-columns: 1fr; }
  .modal-intent { gap: 6px; }
  .intent-btn { font-size: 9px; padding: 7px 12px; }
  .modal-form-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .floating-contact {
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
    gap: 10px;
  }
  .floating-contact-label { font-size: 10px; letter-spacing: 0.14em; }
  .floating-contact-icon  { width: 30px; height: 30px; }
}

/* ── FOOTER ── */
#site-footer {
  background: linear-gradient(to bottom, #07111c 0%, #050d17 100%);
  border-top: 1px solid rgba(138,175,200,0.08);
  padding: 32px 28px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(244,248,252,0.92);
  line-height: 1;
}
.footer-copy {
  font-family: var(--cond);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220,233,245,0.46);
  line-height: 1.8;
  text-align: right;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDrop {
  0%   { top: -100%; }
  100% { top: 200%; }
}

/* Hero slide slow cinematic zoom */
@keyframes heroZoom {
  from { transform: scale(1);    }
  to   { transform: scale(1.07); }
}
.hero-slide.active .hero-slide-inner {
  animation: heroZoom 18s linear forwards;
}

/* ── GPU PROMOTION ── */
.story-bg img,
.story-overlay,
.story-content,
.peak-bg img,
.peak,
.monument {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* ── UNIFIED REVEAL HIDDEN STATE ──
   Slow, architectural — 1.4s premium easing.
   All elements share one hidden state; .visible is the only trigger. */
.reveal,
.pillar,
.interlude-line,
.interlude-divider,
.interlude-services,
.peak,
.monument,
#cta .cta-inner > * {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity  1.4s cubic-bezier(0.22,1,0.36,1),
    transform 1.4s cubic-bezier(0.22,1,0.36,1);
  will-change: transform, opacity;
}

.reveal.visible,
.pillar.visible,
.interlude-line.visible,
.interlude-divider.visible,
.interlude-services.visible,
.peak.visible,
.monument.visible,
#cta .cta-inner > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA children: add fog blur on top of base hidden state */
#cta .cta-inner > * {
  filter: blur(6px);
  transition:
    opacity  1.4s cubic-bezier(0.22,1,0.36,1),
    transform 1.4s cubic-bezier(0.22,1,0.36,1),
    filter   1.4s cubic-bezier(0.22,1,0.36,1);
}
#cta .cta-inner > *.visible {
  filter: blur(0);
}

/* ── PEAK INDIVIDUAL DELAYS + TRAVEL ──
   Mountain rises progressively: left first, summit last.
   Different translateY values so each peak feels like
   it's emerging from a different depth. */
.peak-left   { transition-delay: 0s;    transform: translateY(60px);  }
.peak-summit { transition-delay: 0.18s; transform: translateY(80px);  }
.peak-right  { transition-delay: 0.32s; transform: translateY(70px);  }

.peak-left.visible,
.peak-summit.visible,
.peak-right.visible { transform: translateY(0); transition-delay: 0s; }

/* ── PEAK IMAGE PARALLAX — JS-driven ── */
.peak-bg img { transition: filter 0.6s ease; }
.peak:hover .peak-bg img { filter: grayscale(10%) contrast(1.08); }

/* ── PEAK HOVER LIGHT SWEEP ── */
.peak::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(238,243,248,0.055) 50%,
    transparent 70%
  );
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.4s ease, transform 0s;
  pointer-events: none;
}
.peak:hover::after {
  opacity: 1;
  transform: translateX(100%);
  transition: opacity 0.15s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

/* ── MONUMENT LOGO HOVER GLOW ── */
.monument-logo img { transition: filter 0.4s ease; }
.monument:hover .monument-logo img {
  filter: grayscale(0%) brightness(1.08)
          drop-shadow(0 0 18px rgba(255,255,255,0.08));
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 350;
  flex-shrink: 0;
}
.ham-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              opacity   0.25s ease,
              width     0.3s ease;
}

/* X state when open */
#site-nav.menu-open .ham-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#site-nav.menu-open .ham-bar:nth-child(2) { opacity: 0; width: 0; }
#site-nav.menu-open .ham-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  #site-nav { padding: 18px 24px; }
  #site-nav.scrolled { padding: 12px 24px; }

  /* hide desktop links on mobile */
  .nav-links-desktop { display: none; }

  .nav-hamburger { display: flex; margin-left: auto; }

  /* ── MOBILE OVERLAY ──
     Lives in <body> — escapes nav stacking context entirely.
     Nav is z-index: 500, overlay is 400, hamburger is 350 but nav
     is its parent at 500 so hamburger (being inside nav) sits above overlay. */
  #nav-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(5,14,26,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
    align-items: center;
    justify-content: center;
  }

  #nav-overlay.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  #nav-overlay .nav-links-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    list-style: none;
    width: 100%;
  }

  #nav-overlay .nav-links-mobile li {
    width: 100%;
    text-align: center;
    border-bottom: 0.5px solid rgba(138,175,200,0.08);
  }
  #nav-overlay .nav-links-mobile li:first-child {
    border-top: 0.5px solid rgba(138,175,200,0.08);
  }

  #nav-overlay .nav-links-mobile a {
    display: block;
    padding: 22px 24px;
    font-family: var(--cond);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s, background 0.2s;
  }
  #nav-overlay .nav-links-mobile a:hover {
    color: var(--white);
    background: rgba(24,95,165,0.06);
  }

  #hero { min-height: 100svh; }
  .hero-dots { display: none; }

  #story { min-height: 100svh; }
  .story-overlay {
    background: linear-gradient(
      to bottom,
      rgba(5,14,26,0.92) 0%,
      rgba(5,14,26,0.75) 60%,
      rgba(5,14,26,0.88) 100%
    );
  }
  .story-content {
    padding: 80px 28px 72px;
    max-width: 100%;
  }
  .story-centerquote { font-size: 20px; }
  .pillar-body { font-size: 17px; max-width: 100%; }

  .fields-header { padding: 60px 28px 36px; }
  .fields-intro { font-size: 15px; }
  .peaks-composition {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0 4px;
  }
  /* summit first on mobile */
  .peak-summit { order: -1; height: 72vw; }
  .peak-left   { height: 56vw; }
  .peak-right  { height: 56vw; }
  .peak-content { padding: 0 24px 32px; }
  .peak-summit .peak-title { font-size: 32px; }
  .peak-left   .peak-title,
  .peak-right  .peak-title { font-size: 26px; }
  .peak-cta { opacity: 0.7; }

  #certifications { padding: 64px 24px 72px; }
  .certs-rail { padding: 0 0 40px; }

  /* Mobile: clean vertical stack — desktop stagger resets entirely */
  .monuments {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .monument-a,
  .monument-b,
  .monument-c,
  .monument-d {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    padding: 30px 24px;
  }

  /* Importance order: NCA → County → KRA → Trust */
  .monument-a { order: 1; }
  .monument-c { order: 2; }
  .monument-b { order: 3; }
  .monument-d { order: 4; padding: 22px 20px; }

  #site-footer { padding: 28px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-logo  { font-size: 24px; }
  .footer-copy  { text-align: left; font-size: 9px; line-height: 1.7; }
}