/* ============================================================
   CXC Upstream - design system
   Font: Space Grotesk   Brand: navy #12205F / light-blue #254563 / cream #F2F2F2 / orange #EB5C1E
   ============================================================ */

:root {
  /* ---- brand tokens (from Figma style guide) guide only ---- */
  --navy:        #12205F;   /* Blue */
  --light-blue:  #254563;   /* Light Blue */
  --mid-blue:    #1B3A6B;   /* Mid Blue - CTA third shade */
  --cream:       #F2F2F2;   /* Cream */
  --orange:      #EB5C1E;   /* Orange */
  --orange-dark: #cf4c12;

  --navy-deep:   #0a1838;
  --navy-mid:    #16234a;
  --navy-card:   #1b2b52;
  --white:       #ffffff;
  --off:         #f4f5f7;
  --ink:         #10203f;
  --muted:       #6b7488;
  --muted-light: #b7c0d6;
  --line:        rgba(255,255,255,0.12);
  --line-dark:   #e4e7ee;

  --maxw: 1920px;   /* max content width (design-rules.md) */
  --gutter: 40px;   /* uniform 40px side padding so header + all sections line up */
  --radius: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html { background: #091731; }

body {
  font-family: var(--font);
  background: #091731;                /* dark blue frame */
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 1920px;                  /* whole site capped at 1920 (design-rules.md), centered */
  margin: 0 auto;
  padding: 6px 4px 5px;               /* thin 4px frame (Modus-style), 6px top gap so the header floats before sticking flush */
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.main-nav a:focus-visible {
  outline: none;
}
.btn:focus-visible,
.nav-toggle:focus-visible,
.logo:focus-visible,
.cta-box:focus-visible,
.news-card:focus-visible,
.link-roll:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Tagline / eyebrow - outlined pill, transparent fill.
   Light bg: navy text + navy border.  Dark bg: reversed to light. */
.eyebrow, .pill {
  display: inline-flex; align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
}
.on-dark .eyebrow, .on-dark .pill { border-color: rgba(255,255,255,0.55); color: #fff; }
.on-light .eyebrow, .on-light .pill { border-color: var(--navy); color: var(--navy); }
.eyebrow--muted { color: var(--muted-light); }

/* pulsing dot inside the pill (Modus-style) */
.eyebrow::before, .pill::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--orange);
  animation: pillPulse 1.6s ease-in-out infinite;
}
@keyframes pillPulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(235, 92, 30, 0.55); }
  50%      { opacity: 0.3; box-shadow: 0 0 0 5px rgba(235, 92, 30, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before, .pill::before,
  .main-nav a:hover::before,
  .main-nav a:focus-visible::before,
  .main-nav a[aria-current="page"]::before,
  .feature .sq { animation: none; }
}

h1, h2, h3, h4 { font-weight: normal; line-height: 1.08; }
h2.section-title { font-size: clamp(28px, 4vw, 44px); }
body:has(.page-hero) .section-title { font-size: clamp(24px, 2.8vw, 36px); }
p { color: var(--muted-light); }

/* ---------- buttons with hover square ---------- */
/* CTA button - rounded pill. A leading orange square slides in on hover.
   Light bg (default): navy fill, white text.  Dark bg: reversed. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn .sq {
  width: 0; height: 8px;
  background: var(--orange);
  flex: none;
  transition: width 0.3s var(--ease), margin 0.3s var(--ease);
}
.btn:hover { background: transparent; color: var(--navy); }
.btn:hover .sq { width: 8px; margin-right: 12px; }

/* dark background: reverse to white fill / navy text */
.on-dark .btn { background: #fff; color: var(--navy); border-color: #fff; }
.on-dark .btn:hover { background: transparent; color: #fff; border-color: #fff; }

/* explicit light override (e.g. hero cream panel inside a dark page) */
.on-light .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.on-light .btn:hover { background: transparent; color: var(--navy); border-color: var(--navy); }

.btn--solid { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--solid:hover { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Modus-style text-roll (hero "About Us" button + secondary text links) */
.btn--roll .btn__text,
.link-roll .btn__text {
  display: grid;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25;
}
.btn--roll .btn__text > span,
.link-roll .btn__text > span {
  grid-area: 1 / 1;
  display: block;
  line-height: 1.25;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn--roll .btn__text > span:nth-child(2),
.link-roll .btn__text > span:nth-child(2) { transform: translateY(100%); }
.btn--roll:hover .btn__text > span:nth-child(1),
.link-roll:hover .btn__text > span:nth-child(1) { transform: translateY(-100%); }
.btn--roll:hover .btn__text > span:nth-child(2),
.link-roll:hover .btn__text > span:nth-child(2) { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn--roll .btn__text > span,
  .link-roll .btn__text > span { transition: none; }
}

/* secondary CTA: plain text link with the roll animation (used on What We Do cards) */
.link-roll {
  display: inline-flex; align-items: center;
  padding: 14px 6px;
  font-family: var(--font);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase;
  color: var(--navy);
}
.link-roll--light { color: #fff; }   /* text-roll link on a dark background */

/* ============================================================
   HEADER / NAVIGATION
   Cream bar (#F2F2F2), navy wordmark left, nav right.
   Active + hover items carry a leading orange square.
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(18,32,95,0.10);
  border-radius: 6px 6px 0 0;   /* floats 6px below the top with rounded top corners */
  transition: transform 0.35s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-radius 0.25s var(--ease);
}
/* once the header slides up flush against the browser top, square the corners off */
.site-header.is-flush { border-radius: 0; }
.site-header.is-scrolled {
  box-shadow: 0 8px 30px -18px rgba(10,24,56,0.55);
  background: rgba(242,242,242,0.94);
  backdrop-filter: saturate(1.1) blur(8px);
}
/* 12-column header grid: logo in first cols, nav spread across the rest */
.site-header .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  column-gap: 24px;
  min-height: 120px;             /* fits the logo */
  padding: 12px var(--gutter);
}

.logo { --logo-text: #122C5F; height: 75px; max-height: 75px; width: auto; display: inline-flex; grid-column: 1 / span 2; }
.logo svg, .logo img { height: 100%; width: auto; }

/* nav spans the remaining columns - 4 columns × 2 rows (8 items) */
.main-nav { grid-column: 3 / -1; align-self: center; }
.main-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  grid-template-rows: none;
  gap: 4px 16px;
  width: 100%;
  align-items: start;
  justify-self: start;
}
.nav-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.main-nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 0;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 400;
  transition: color 0.25s var(--ease);
}
/* leading orange circle - fixed size so the pulse stays centred */
.main-nav a::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
  align-self: center;
  margin-right: 0;
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  box-shadow: 0 0 0 0 rgba(235, 92, 30, 0.55);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), margin-right 0.3s var(--ease);
}
.main-nav a:hover::before,
.main-nav a:focus-visible::before,
.main-nav a[aria-current="page"]::before {
  margin-right: 10px;
  opacity: 1;
  transform: scale(1);
  animation: pillPulse 1.6s ease-in-out infinite;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] { color: var(--orange-dark); }
.main-nav a:focus-visible { outline: none; }

/* text toggle: the words MENU / CLOSE swap with a subtle vertical slide (Modus-style) */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  height: 22px; padding: 0; position: relative; z-index: 110;
  overflow: hidden; line-height: 22px;
  font-family: var(--font); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy);
  transition: color 0.25s var(--ease);
}
.nav-toggle:hover { color: var(--muted); }
.nav-toggle__word {
  display: block; height: 22px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
/* CLOSE stays in normal flow so the button is sized to the wider word; MENU is overlaid on top */
.nav-toggle__word--open {
  position: absolute; left: 0; top: 0;
}
.nav-toggle__word--close {
  transform: translateY(100%); opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__word--open {
  transform: translateY(-100%); opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__word--close {
  transform: translateY(0); opacity: 1;
}

/* ---------- hero : photo band + cream content panel ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 6px 6px;   /* square top (flush w/ nav), rounded bottom */
  margin-bottom: 4px;           /* 4px vertical gap between sections */
}
.hero__media {
  position: relative;
  height: clamp(600px, 66vh, 860px);
  overflow: hidden;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 56, 0.42);
  pointer-events: none;
  z-index: 1;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  transform: scale(1.02);
  animation: heroZoom 7s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__mission {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-family: inherit;
  font-size: clamp(28px, 4.8vw, 56px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 24px rgba(10, 24, 56, 0.4);
  opacity: 0;
  animation: missionFade 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
@keyframes missionFade {
  to { opacity: 1; }
}

.hero__panel { background: var(--cream); color: var(--navy); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-items: start;
}
.hero__lead {
  padding: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 56px) clamp(44px, 6vw, 84px) var(--gutter);
}
.hero__lead .eyebrow { margin-bottom: clamp(22px, 3vw, 34px); }
.hero h1 {
  color: var(--navy);
  font-size: clamp(30px, 3.4vw, 46px);
  max-width: 24ch;                       /* wraps to two lines */
  font-weight: normal;
  text-wrap: balance;
}
.hero__aside {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(44px, 6vw, 84px) clamp(30px, 3vw, 52px);
}
.hero__aside p { color: var(--navy); opacity: 0.82; margin-bottom: 26px; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; transform: none; }
  .hero__mission { animation: none; opacity: 1; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__lead,
  .hero__aside {
    padding-top: clamp(28px, 7vw, 44px);
    padding-bottom: clamp(28px, 7vw, 44px);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

/* ---------- CTA row - three equal-width boxes ---------- */
.cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;              /* 4px between boxes */
  margin-bottom: 4px;    /* 4px vertical gap to next section */
}
.cta-box {
  grid-column: auto;
  padding: 40px;         /* text aligns with the 40px content gutter above */
  min-height: 250px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.cta-row .cta-box:nth-child(2) { background: var(--light-blue); }
.cta-row .cta-box:nth-child(3) { background: var(--mid-blue); }
.cta-box--accent { background: var(--orange); }

/* title (top) with leading square that appears on hover, pushing it right */
.cta-box__title {
  display: inline-flex; align-items: center;
  font-size: 13px; text-transform: uppercase; font-weight: 500;
}
.cta-box__title::before {
  content: "";
  width: 0; height: 7px;
  flex: none;
  background: #fff;
  transition: width 0.4s var(--ease), margin-right 0.4s var(--ease);
}
.cta-box:hover .cta-box__title::before { width: 7px; margin-right: 10px; }

.cta-box p { font-size: 15px; color: rgba(255,255,255,0.85); max-width: 24ch; }  /* same width in all boxes -> 3 lines */

/* ---------- CTA pair (ESG + Investment) ---------- */
.cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 4px;
}
.cta-pair .cta-box {
  grid-column: auto;
  min-height: 180px;
  padding: 28px 32px;
  justify-content: space-between;
  gap: 20px;
}
.cta-pair .cta-box p {
  max-width: 42ch;
  margin-top: auto;
}
.cta-pair .cta-box--esg { background: var(--light-blue); }
.cta-pair .cta-box--invest { background: var(--orange); }
.cta-box__action {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* ---------- About Us : two columns ---------- */
.about { margin-bottom: 4px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-items: stretch; }

.about__left { border-radius: 6px; overflow: hidden; }
.about__left img,
.about__left video { width: 100%; height: 100%; object-fit: cover; display: block; }

.about__right { display: flex; flex-direction: column; gap: 4px; }
.about__photo { border-radius: 6px; overflow: hidden; min-height: 600px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about__box {
  flex: 1;
  background: var(--cream);
  color: var(--navy);
  border-radius: 6px;
  padding: clamp(30px, 3vw, 52px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.about__box .pill { margin-bottom: clamp(20px, 2.5vw, 32px); }
.about__box p {
  color: var(--navy); opacity: 0.85;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6;
  margin-bottom: clamp(24px, 3vw, 34px); 
}

/* ---------- section heading block ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
body:has(.page-hero) .section__head { margin-bottom: clamp(20px, 3vw, 36px); }
.section__head .eyebrow { margin-bottom: clamp(22px, 3vw, 34px); }
.section__head p { margin-top: 18px; font-size: 17px; }

/* ---------- What we do : stacking cards ---------- */
.stack { position: relative; }
.stack__item {
  position: sticky;
  top: 96px;
  margin-bottom: 40px;
}
/* two columns (content + image), flipped each row, 4px gap, each column rounded 6px */
.stack__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 670px;
  color: var(--navy);
}
.stack__item:nth-child(even) .stack__media { order: -1; }
.stack__media {
  position: relative; overflow: hidden; min-height: 260px;
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.stack__media img { width: 100%; height: 100%; object-fit: cover; }
.stack__content {
  background: var(--cream);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  padding: clamp(26px, 3vw, 46px);
  display: flex; flex-direction: column;
  color: var(--navy);
}
/* row order: title + description, then meta, then tags, then actions */
.stack__content h3 { color: var(--navy); font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 16px; }
.stack__content > p { color: var(--navy); opacity: 0.78; font-size: 15.5px; margin-bottom: 22px; }

/* primary button sits on the cream card -> navy fill, white text */
.stack__content .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.stack__content .btn:hover { background: transparent; color: var(--navy); border-color: var(--navy); }

.meta { border-top: 1px solid rgba(18,32,95,0.14); }
.meta__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(18,32,95,0.14); font-size: 12px; }
.meta__row dt { color: var(--muted); text-transform: uppercase; }
.meta__row dd { color: var(--navy); text-align: right; text-transform: uppercase; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.tag { font-size: 10.5px; text-transform: uppercase; padding: 6px 11px; border: 1px solid rgba(18,32,95,0.22); border-radius: 40px; color: var(--navy); }

.stack__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }

/* ---------- highlights (big numbers) ---------- */
.highlights { background: transparent; }                 /* no band -> content spans full width */
.highlights .section__head { max-width: none; }
.highlights .section-title { font-weight: 400; white-space: nowrap; }   /* normal weight, one line */
.hl { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px 60px; border-top: 1px solid var(--line); padding: 40px 0; align-items: center; }
.hl:last-child { border-bottom: 1px solid var(--line); }
.hl__num { font-size: clamp(64px, 7vw, 148px); line-height: 0.9; letter-spacing: -0.45rem; color: #3C475D; font-weight: 400; }
.hl__txt h3 { font-size: 15px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.hl__txt p { font-size: 15.5px; }

/* ---------- news ---------- */
/* header: centered, stacked (eyebrow -> title -> browse all) */
.news__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; margin-bottom: 48px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
/* each card: image (rounded) + 4px gap + caption box */
.news-card { display: flex; flex-direction: column; gap: 4px; }
.news-card__img { overflow: hidden; border-radius: 6px; min-height: 500px; }
.news-card__img img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; transition: transform 0.7s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }         /* zoom on hover */
.news-card__body {
  flex: 1;
  background: #122C5F;
  border-radius: 6px;
  padding: 24px 24px 30px;
  transition: background 0.4s var(--ease);
}
.news-card:hover .news-card__body { background: #254583; }               /* box -> lighter blue on hover */
.news-card__date { font-size: 11px; text-transform: uppercase; color: var(--muted-light); }
.news-card__body h3 { font-size: 18px; margin-top: 12px; line-height: 1.25; }

/* ---------- statement band (interior page CTA footer) ---------- */
.statement { background: var(--orange); color: #fff; border-radius: 6px; }
.statement .wrap { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.statement__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.statement__title {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: normal;
  line-height: 1.1;
  color: #fff;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}
.statement__text {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: #fff;
  max-width: 52ch;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.statement .btn {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.statement .btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* ---------- footer ---------- */
/* Cream card on the dark frame: navy text, three nav columns + big wordmark. */
.site-footer {
  position: relative;
  background: var(--cream);
  color: var(--navy);
  border-radius: 6px;
  margin-top: 4px;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: 80px;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: clamp(36px, 4vw, 56px);
}
.footer-brand .logo { --logo-text: var(--navy); height: 65px; max-height: 65px; }
.footer-brand p {
  margin-top: 22px;
  font-size: 13px; line-height: 1.7;
  text-transform: uppercase;
  color: var(--navy);
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 11px; text-transform: uppercase;
  color: var(--navy); opacity: 0.5;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 17px; color: var(--navy); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--orange); }

/* legal row: copyright left, legal links right, 60px above the keyline */
.footer-legal {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(18,32,95,0.12);
  padding: 24px 0 0;
}
.footer-copy { font-size: 12px; text-transform: uppercase; color: var(--navy); opacity: 0.55; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal__links a {
  font-size: 12px; text-transform: uppercase;
  color: var(--navy); opacity: 0.65;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-legal__links a:hover { opacity: 1; color: var(--orange); }

/* big wordmark logo (hidden on tablet/mobile) */
.footer-logo { padding: clamp(20px, 3vw, 44px) 0 0; }
.footer-logo img { width: 100%; height: auto; display: block; }

/* ---------- reveal on scroll (Modus-style fade + rise) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* hero text: self-contained load animation (always ends visible) */
.hero .reveal { opacity: 0; animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero .hero__lead .eyebrow.reveal { animation-delay: 0.05s; }
.hero .hero__lead h1.reveal      { animation-delay: 0.18s; }
.hero .hero__aside.reveal        { animation-delay: 0.32s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none;             clip-path: inset(0 0 -12% 0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.4s ease; transform: none; }
  .hero .reveal { animation: none; opacity: 1; }
  .content-split__media img { transform: none; transition: none; }
}

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding: clamp(70px, 10vw, 140px) 0 clamp(40px,5vw,64px); background: var(--navy-deep); border-bottom: 1px solid var(--line); }
.page-hero--plain { background: var(--light-blue); }
/* photo heroes: image layer + overlay layer for readable text */
.page-hero--photo {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-deep);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.page-hero--photo--flip .page-hero__bg { transform: scaleX(-1); }
.page-hero--photo::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: -2px;
  background:
    linear-gradient(180deg, rgba(10,24,56,.12) 0%, rgba(10,24,56,.4) 60%, rgba(10,24,56,.72) 100%),
    linear-gradient(90deg, rgba(10,24,56,.72) 0%, rgba(10,24,56,.48) 42%, rgba(10,24,56,.28) 68%, rgba(10,24,56,.18) 100%);
  box-shadow: inset 0 -1px 0 var(--line);
  z-index: 1;
  pointer-events: none;
}
.page-hero--photo .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { display: inline-flex; margin: 0 0 clamp(22px, 3vw, 34px); }
.page-hero h1 { font-size: clamp(30px, 3.4vw, 46px); max-width: 30ch; margin-top: 0; }
.page-hero p { margin-top: 22px; font-size: 18px; max-width: 60ch; }

/* generic content prose */
.prose { max-width: 68ch; }
.prose--wide { max-width: min(92ch, 100%); }
.prose p { color: #cdd6ea; font-size: 17px; margin-bottom: 20px; line-height: 1.65; }
.prose h2 { font-size: clamp(24px,3vw,34px); margin: 44px 0 16px; }

/* ---------- story / split content (Mining & interior pages) ---------- */
.content-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
}
.content-split--flip { grid-template-columns: 0.95fr 1.05fr; }
.content-split--flip .content-split__media { order: -1; }
.content-split__copy .eyebrow { margin-bottom: clamp(22px, 3vw, 34px); }
.content-split__copy h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: normal;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 22ch;
}
.content-split__copy .prose { max-width: none; }
.content-split__copy .prose p:last-child { margin-bottom: 0; }
.content-split__media {
  border-radius: 6px;
  overflow: hidden;
  height: 380px;
  background: var(--navy-mid);
}
.content-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.content-split__media.is-in img,
.content-split__media.reveal.is-in img { transform: scale(1); }

.reveal--left { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--left.is-in,
.reveal--right.is-in { transform: none; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--navy-mid);
}
.feature .sq {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pillPulse 1.6s ease-in-out infinite;
}
.feature h3 {
  font-size: 19px;
  margin: 0;
}
.feature p {
  grid-column: 1 / -1;
  font-size: 14.5px;
  margin-top: 10px;
}

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted-light); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px;
  background: var(--navy-mid); border: 1px solid var(--line); border-radius: var(--radius);
  color: #fff; transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted-light); margin-top: 6px; }
.form-status { margin-top: 16px; font-size: 14px; }
.form-status--success { color: #8fe3a6; }
.form-status--error { color: #ffb4a0; }
.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-detail { border-top: 1px solid var(--line); padding: 18px 0; }
.contact-detail dt { font-size: 11px; text-transform: uppercase; color: var(--muted-light); margin-bottom: 6px; }
.contact-detail dd { font-size: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cta-row { grid-template-columns: 1fr; }
  .cta-pair { grid-template-columns: 1fr; }
  .cta-box, .cta-box--accent { grid-column: auto; min-height: 200px; }
  .cta-pair .cta-box { min-height: 160px; }
  .cta-box p { max-width: none; }
  .about__grid { grid-template-columns: 1fr; gap: 4px; }
  .about__left { min-height: 320px; }
  .about__photo { min-height: 340px; }
  .stack__card { grid-template-columns: 1fr; min-height: 0; }
  .stack__actions { margin-top: 24px; }
  .stack__item:nth-child(even) .stack__media { order: 0; }
  .stack__item { position: static; top: auto; }
  .hl { grid-template-columns: 1fr; gap: 12px; }
  .highlights .section-title { white-space: normal; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-logo { display: none; }   /* big wordmark: desktop only */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-split,
  .content-split--flip { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .content-split--flip .content-split__media { order: 0; }
  .content-split__media { height: 260px; }

  .main-nav {
    position: fixed; inset: 72px 4px auto 4px;
    background: var(--cream);
    border-bottom: 1px solid rgba(18,32,95,0.12);
    box-shadow: 0 20px 40px -24px rgba(10,24,56,0.55);
    transform-origin: top;
    /* hidden by clipping the panel up behind the header, then it unrolls downward */
    clip-path: inset(0 0 100% 0);
    opacity: 0; visibility: hidden;
    transition: clip-path 0.45s var(--ease), opacity 0.3s var(--ease), visibility 0s linear 0.45s;
  }
  .main-nav.open {
    clip-path: inset(0 0 0 0);
    opacity: 1; visibility: visible;
    transition: clip-path 0.45s var(--ease), opacity 0.3s var(--ease), visibility 0s;
  }
  .site-header.is-hidden { transform: translateY(-100%); pointer-events: none; }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; grid-template-columns: none; min-height: 72px; padding: 10px var(--gutter); }
  .logo { grid-column: auto; height: 52px; max-height: 52px; }
  .main-nav { flex: none; margin-left: 0; grid-column: auto; }
  .main-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 18px; grid-template-columns: none; }
  .nav-col { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li + li,
  .nav-col a + a { border-top: 1px solid rgba(18,32,95,0.08); }
  .main-nav a { padding: 14px 0; font-size: 14px; }
  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a[aria-current="page"] { color: var(--muted); }
  .nav-toggle { display: inline-block; height: 20px; line-height: 20px; font-size: 11px; }
  .nav-toggle__word { height: 20px; }
}
