/* ============================================================
   MERIDIAN ORIGINATION: single-page site
   Palette: cream #FFFEF0 · navy #001639 · orange #E94B27 · beige #F2F1DA
   Type: Codec Pro (Bold/Regular) · PT Serif Italic (accent)
   Structure: the hero stays a full-bleed inset rounded card with a
   background video and a carousel strip along its bottom edge. Every
   section below it is an OPEN section on the cream page field (no card
   wrapper), each with a deliberately different layout so the page reads
   as a rhythm: split, cinematic band, navy overlay band.
   ============================================================ */

@font-face {
  font-family: 'Codec Pro';
  src: url('fonts/CodecPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Codec Pro';
  src: url('fonts/CodecPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'PT Serif';
  src: url('fonts/PT_Serif-Web-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #FFFEF0;
  --navy: #001639;
  --orange: #E94B27;
  --beige: #F2F1DA;
  --navy-soft: rgba(0, 22, 57, 0.72);
  --card-inset: clamp(10px, 1.6vw, 22px);   /* gap between hero card and viewport edge */
  --card-radius: clamp(14px, 2vw, 26px);
  --card-pad: clamp(1.6rem, 4.5vw, 4.5rem);
  --container: 1240px;                      /* content cap for the open sections */
  --flow-gutter: 40px;                      /* side gutter for the open sections + footer */
  --flow-space: clamp(4rem, 9vw, 7.5rem);   /* vertical rhythm between open sections */
  --media-radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Codec Pro', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --- page pattern, anchored to the document (not viewport) --- */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/pattern.png') center top / 1400px auto repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
main { position: relative; z-index: 1; }

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

/* ============================================================
   INTRO OVERLAY
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s var(--ease);
}
.intro.intro-exit { transform: translateY(-100%); }
.intro.intro-done { display: none; }
.intro-pattern {
  position: absolute;
  inset: 0;
  background: url('img/pattern.png') center / 1400px auto repeat;
  opacity: 0.6;
}
.intro-lockup { position: relative; width: min(46vw, 420px); }
.intro-lockup svg { width: 100%; height: auto; display: block; }
.intro-lockup .lg-icon {
  opacity: 0;
  transform: scale(0.9);
  transform-origin: center 30%;
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease);
}
.intro-lockup .lg-word {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease) 0.55s, transform 0.9s var(--ease) 0.55s;
}
.intro.intro-play .lg-icon { opacity: 1; transform: scale(1); filter: blur(0); }
.intro.intro-play .lg-word { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER (fixed, translucent cream once scrolled)
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* symmetric inset: the pill on the right clears the viewport edge by the
     same distance the logo clears it on the left */
  padding: 0.85rem calc(var(--card-inset) + 1.6rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.header.scrolled {
  background: rgba(255, 254, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 22, 57, 0.08);
}
.header-brand { display: flex; align-items: center; }
.header-logo { height: 32px; width: auto; display: block; }

/* ============================================================
   BUTTONS: Harrington icon-disc pill
   pill + leading circular disc with arrow; hover: lift, disc swells,
   arrow slides. Two variants: light pill (on video cards), navy pill.
   ============================================================ */
.btn-pill {
  font-family: 'Codec Pro', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem 1.5rem 0.42rem 0.42rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill:active { transform: translateY(0) scale(0.98); }

.btn-disc {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.35s var(--ease), background 0.35s ease;
}
.btn-disc svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn-pill:hover .btn-disc { transform: scale(1.08); }
.btn-pill:hover .btn-disc svg { transform: translateX(3px); }

/* light pill: cream body, orange disc. This is Meridian's primary button
   anatomy and it is now used everywhere, including the header. */
.btn-pill-light {
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(0, 22, 57, 0.16);
}
.btn-pill-light .btn-disc { background: var(--orange); color: var(--cream); }
.btn-pill-light:hover { background: var(--navy); color: var(--cream); box-shadow: 0 14px 32px rgba(0, 22, 57, 0.24); }

/* hairline modifier: same pill, plus a 1px navy edge so it stays defined
   when it sits on the cream page field or the scrolled translucent-cream
   header instead of on a video card */
.btn-pill-edge { border: 1px solid rgba(0, 22, 57, 0.12); }
.btn-pill-edge:hover { border-color: rgba(0, 22, 57, 0.28); }

/* navy pill: CURRENTLY UNUSED. Kept for a future dark-surface button; the
   header moved to .btn-pill-light + .btn-pill-edge. */
.btn-pill-navy {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.85rem;
  padding: 0.34rem 1.2rem 0.34rem 0.34rem;
}
.btn-pill-navy .btn-disc { width: 32px; height: 32px; background: var(--orange); color: var(--cream); }
.btn-pill-navy:hover { background: var(--orange); }
.btn-pill-navy:hover .btn-disc { background: var(--cream); color: var(--navy); }

/* ============================================================
   CARD SECTION: hero only
   The hero is the one section that still uses the inset card wrapper.
   ============================================================ */
.card-section { padding: var(--card-inset); }

.card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--beige);
  box-shadow: 0 30px 70px rgba(0, 22, 57, 0.10);
}

/* media layer inside any card */
.card-media { position: absolute; inset: 0; }
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* placeholder look until Shane's clips land. Shared by the open sections'
   media blocks, which set their own aspect ratio and radius. */
.media-placeholder {
  background:
    linear-gradient(145deg, rgba(0, 22, 57, 0.05), rgba(0, 22, 57, 0.13)),
    url('img/pattern.png') center / 1100px auto repeat,
    var(--beige);
}
.media-placeholder .media-mark {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: clamp(70px, 10vw, 140px);
  opacity: 0.35;
}

/* veils for text legibility over motion */
.card-veil { position: absolute; inset: 0; pointer-events: none; }
.hero-veil {
  --veil: 0.33;
  background:
    linear-gradient(180deg, rgba(255,254,240,0.9) 0%, rgba(255,254,240,0) 22%, rgba(255,254,240,0) 72%, rgba(255,254,240,0.9) 100%),
    rgba(255, 254, 240, var(--veil));
}

/* ============================================================
   HERO CARD
   ============================================================ */
.hero-card {
  min-height: calc(100vh - 2 * var(--card-inset));
  min-height: calc(100svh - 2 * var(--card-inset));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1160px;
  padding: 7rem var(--card-pad) 7rem;  /* carousel gone, so bottom matches top */
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.6rem;
}
/* H1: weight dropped a notch (700 -> 400), size down ~10px */
.hero-title {
  font-weight: 400;
  font-size: clamp(2.3rem, 6.2vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero-title .line { display: block; }
.hero-title .accent-serif { font-size: 1.05em; }
.accent-serif {
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}
.hero-descriptor {
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.hero-descriptor .accent-serif { font-size: 1.05em; }
/* subhead: wider + weight up a notch */
.hero-sub {
  margin: 1.7rem auto 2.4rem;
  max-width: 780px;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 700;
  color: var(--navy-soft);
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.microline { font-size: 0.82rem; color: var(--navy-soft); letter-spacing: 0.02em; }
.navy-microline { display: block; margin-top: 0.9rem; color: rgba(255, 254, 240, 0.65); }

/* LinkedIn button, bottom right of the hero card (replaced the carousel strip
   2026-08-13). Same pill language as the CTAs: cream disc, navy mark, orange
   on hover. */
.hero-social {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 254, 240, 0.88);
  box-shadow: 0 6px 20px rgba(0, 22, 57, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.hero-social svg { width: 20px; height: 20px; display: block; }
.hero-social:hover {
  background: var(--orange);
  color: var(--cream);
  transform: translateY(-2px);
}
.hero-social:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ============================================================
   OPEN SECTIONS: shared shell
   Everything below the hero sits directly on the cream page field:
   no card wrapper, content capped at --container, one unit of vertical
   rhythm above each section. All headings are set left.
   ============================================================ */
.flow-section {
  position: relative;
  padding: var(--flow-space) var(--flow-gutter) 0;
}
.flow-inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* heading block: orange eyebrow over a navy H2, always set left. The
   per-section modifiers below only change how wide it is allowed to run. */
.section-head { max-width: 100%; }

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
/* weight matches .hero-title (400): all titles share the hero's weight per Shane 2026-08-13 */
.section-title {
  font-weight: 400;
  font-size: clamp(2rem, 3.75vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.section-body {
  color: var(--navy-soft);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

/* shared media block chrome: the aspect ratio is set per section */
.split-media,
.band-media {
  position: relative;
  border-radius: var(--media-radius);
  overflow: hidden;
}
.split-media video,
.band-media video,
.split-media .media-fill,
.band-media .media-fill {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================================
   SECTION 1: SPLIT LAYOUT
   Heading across the top left, then a tall media block on the left
   with the paragraph and CTA sitting at the foot of the right column.
   ============================================================ */
.split-head { max-width: 52%; }
.split-row {
  display: flex;
  align-items: stretch;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.split-media {
  flex: 0 1 55%;
  min-width: 0;
  aspect-ratio: 6 / 5;
}
.split-copy {
  flex: 1 1 37%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;   /* copy hangs off the bottom of the media */
  gap: 1.9rem;
  padding-bottom: 0.4rem;
}

/* ============================================================
   SECTION 2: CINEMATIC BAND LAYOUT
   Wider heading, one full-container cinematic media band, then the
   paragraph and CTA split left and right beneath it.
   ============================================================ */
.band-head { max-width: 57%; }
.band-media {
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
  /* 2:1, not the old 27:10. That ultra-wide ratio was cut for the cinematic
     city video; a portrait photo in it crops through the subject's head. */
  aspect-ratio: 2 / 1;
}
/* Portrait source in a landscape band: bias the crop up so the face sits in
   frame instead of the centre line cutting it. */
.band-media .media-fill {
  object-position: 50% 30%;
}
.band-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2rem;
}
.band-foot-text { max-width: 66%; }

/* ============================================================
   SECTION 3: NAVY OVERLAY BAND (CTA)
   Full-container rounded navy band. Optional background video sits
   under a navy veil so the cream text stays readable, with the wave
   pattern over it and the brand mark clipped by the right edge.
   ============================================================ */
.navy-band {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  padding: clamp(3rem, 6vw, 5rem);
  box-shadow: 0 30px 70px rgba(0, 22, 57, 0.16);
}
.navy-band video,
.navy-band .media-fill {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.navy-band-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 57, 0.78);
  pointer-events: none;
}
.navy-band-pattern {
  position: absolute;
  inset: 0;
  background: url('img/pattern.png') center / 1100px auto repeat;
  opacity: 0.07;
  pointer-events: none;
}
/* decorative only: brand mark, low opacity, clipped by the band edge */
.navy-band-mark {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: clamp(240px, 32%, 460px);
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
}
.navy-band-inner {
  position: relative;
  z-index: 1;
  max-width: 55%;
}
.navy-band-title {
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.navy-band-text {
  color: rgba(255, 254, 240, 0.8);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  max-width: 92%;              /* lands near 50% of the band width */
  margin-bottom: 1.9rem;
}

/* ============================================================
   FOOTER: light, on the cream field (no dark block)
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 6.5rem) var(--flow-gutter) 2.2rem;
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  /* brand column narrowed so the three office columns are wide enough to
     hold a full email address on one line at 1280px */
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 2.3fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
  padding-bottom: 3.4rem;
}
.footer-logo { width: min(210px, 60%); }
.footer-tagline {
  margin-top: 1rem;
  color: var(--navy-soft);
  font-size: 0.92rem;
  max-width: 300px;
}
/* three columns at desktop. The 225px floor is what keeps a full email
   address on one line: below that the grid drops to two columns rather
   than letting an address spill out of its column. */
.footer-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.office-region {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.45rem;
}
.office-city {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
/* email addresses stay on one line: never break mid-address */
.office a {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--navy-soft);
  transition: color 0.25s ease;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
.office a:hover { color: var(--orange); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(0, 22, 57, 0.12);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--navy-soft);
}
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
/* whole blocks rise as one unit: the navy band, and any card carrying
   data-reveal (CURRENTLY UNUSED on .card, the hero staggers its own children) */
.card[data-reveal],
.navy-band[data-reveal] { transform: translateY(40px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* every open section stacks: heading, media, paragraph, CTA, full width */
  .split-head,
  .band-head { max-width: 100%; }

  .split-row { flex-direction: column; gap: 1.8rem; }
  .split-media,
  .split-copy { flex: 1 1 auto; width: 100%; }
  .split-copy { justify-content: flex-start; padding-bottom: 0; gap: 1.5rem; }

  /* 27/10 is a sliver at phone width, so the band opens out to 16/9 */
  .band-media { aspect-ratio: 16 / 9; }
  .band-foot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .band-foot-text { max-width: 100%; }

  .navy-band-inner { max-width: 100%; }
  .navy-band-text { max-width: 100%; }
  .navy-band-mark { display: none; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-offices { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .hero-inner { padding: 6rem 1.4rem 6.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .intro-lockup { width: 62vw; }
  .hero-social { width: 42px; height: 42px; }
  .btn-pill { font-size: 0.85rem; }
  .header { padding: 0.7rem calc(var(--card-inset) + 0.9rem); }
  .flow-section { padding-left: 16px; padding-right: 16px; }
  .split-media,
  .band-media { border-radius: 16px; }
  .navy-band { border-radius: 18px; padding: 2.4rem 1.4rem; }
  .footer { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .hero-social { transition: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .intro-lockup .lg-icon, .intro-lockup .lg-word { opacity: 1; transform: none; filter: none; }
}
