/* =========================================================
   Baron Securities — styles
   Palette: ivory / ink / copper, with a deep-navy band
   Type: Fraunces (display serif) + Instrument Sans (text)
   ========================================================= */

:root {
  --ivory: #f4f1ea;
  --ivory-2: #ece8de;
  --ink: #141a23;
  --ink-soft: #2a3140;
  --slate: #59616e;
  --copper: #c25e1f;
  --copper-deep: #9e4a14;
  --navy: #0f1622;
  --navy-2: #161f30;
  --paper-light: #f9f7f2;
  --line: rgba(20, 26, 35, 0.14);
  --line-light: rgba(244, 241, 234, 0.16);
  --serif: "Fraunces", georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --ticker-h: 52px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  padding-bottom: var(--ticker-h);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--copper); color: var(--ivory); }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(84px, 11vw, 160px); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }

em {
  font-style: italic;
  font-weight: 340;
  color: var(--copper);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--copper);
  border-radius: 50%;
  flex: none;
}

.eyebrow-light { color: rgba(244, 241, 234, 0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 10px 30px -12px rgba(20, 26, 35, 0.45);
}
.btn-primary:hover {
  background: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(194, 94, 31, 0.55);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(249, 247, 242, 0.6);
}
.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper-deep);
  transform: translateY(-2px);
}

.btn-small { padding: 10px 20px; font-size: 0.85rem; background: var(--ink); color: var(--ivory); }
.btn-small:hover { background: var(--copper); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.45s var(--ease-out), background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }

/* Stacked wordmark plaque — see brand.html for colourway rules */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
  padding: 9px 16px 8px;
  border-radius: 8px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.brand:hover .wordmark { transform: translateY(-1px); }

.wm-1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}

.wm-2 {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 0.495rem;
  letter-spacing: 0.31em;
  text-indent: 0.31em; /* balances the trailing letter-space so it centres */
  margin-top: 0.5em;
}

.wordmark-navy { background: var(--navy); }
.wordmark-navy .wm-1 { color: var(--ivory); }
.wordmark-navy .wm-2 { color: var(--copper); }

.wordmark-bone { background: var(--ivory); }
.wordmark-bone .wm-1 { color: var(--ink); }
.wordmark-bone .wm-2 { color: var(--copper-deep); }

.nav-links { display: flex; gap: clamp(18px, 2.6vw, 36px); }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(249, 247, 242, 0.7);
  cursor: pointer;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 16px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

body.menu-open .menu-toggle span:first-child { transform: translateY(3.8px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }

.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }

.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 420;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}

.mobile-menu nav a:hover { color: var(--copper); padding-left: 10px; }

.mobile-menu-foot { margin-top: 40px; color: var(--slate); font-size: 0.95rem; }
.mobile-menu-foot a { color: var(--copper-deep); font-weight: 600; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(110% 80% at 18% 38%, rgba(244, 241, 234, 0.92) 0%, rgba(244, 241, 234, 0.55) 38%, rgba(244, 241, 234, 0) 68%),
    linear-gradient(to bottom, rgba(244, 241, 234, 0.85), rgba(244, 241, 234, 0) 26%, rgba(244, 241, 234, 0) 70%, rgba(244, 241, 234, 0.9));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(110px, 16vh, 170px);
}

.hero-title {
  font-size: clamp(2.7rem, 7.2vw, 6rem);
  max-width: 13ch;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.hero-title .word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-sub {
  max-width: 56ch;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--ink-soft);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-foot {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: calc(var(--ticker-h) + clamp(28px, 4vh, 52px));
  margin-top: auto;
  padding-top: 40px;
}

.hero-fact {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  min-width: 120px;
}

.hero-fact span {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 480;
  color: var(--ink);
  margin-bottom: 2px;
}

.reg-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 22px;
  background: rgba(249, 247, 242, 0.6);
}

.reg-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin-bottom: 6px;
}

.reg-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero-scroll {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.hero-scroll-line {
  width: 44px; height: 1px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: translateX(-100%);
  animation: scrollSweep 2.4s var(--ease-out) infinite;
}

@keyframes scrollSweep {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* =========================================================
   Ticker
   ========================================================= */
.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.ticker-track { display: flex; width: max-content; will-change: transform; }

.ticker-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.ticker-group span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 420;
  color: var(--ink-soft);
}

.ticker-group i {
  font-style: normal;
  font-size: 0.5rem;
  color: var(--copper);
}

/* =========================================================
   The Firm
   ========================================================= */
.firm { background: var(--ivory); }

.firm-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.firm-statement {
  font-size: clamp(1.7rem, 3.3vw, 2.9rem);
  line-height: 1.16;
}

.firm-copy {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  padding-top: 8px;
}

.firm-stats {
  margin-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.firm-stats--centered {
  text-align: center;
}

.firm-stats--centered .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.firm-stats--centered .stat-num {
  justify-content: center;
}

.stat {
  padding: clamp(20px, 2.6vw, 36px) clamp(16px, 2vw, 28px) 0 0;
  border-right: 1px solid var(--line);
  padding-right: clamp(16px, 2vw, 28px);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 420;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
}

.stat-num sup {
  font-size: 0.45em;
  color: var(--copper);
  margin-top: 0.18em;
}

.stat p {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--slate);
  max-width: 26ch;
}

/* =========================================================
   Section heads
   ========================================================= */
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
}

.section-lede {
  max-width: 38ch;
  color: var(--slate);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  padding-bottom: 6px;
}

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--paper-light); }

.service-list { list-style: none; border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 80px 320px 1fr 60px;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(26px, 3.4vw, 44px) clamp(8px, 1.4vw, 20px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease-out);
}

.service-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--copper);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

.service-row:hover { background: rgba(194, 94, 31, 0.05); }
.service-row:hover::before { transform: scaleY(1); }

.service-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--copper);
}

.service-row h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  transition: color 0.3s;
}

.service-row:hover h3 { color: var(--copper-deep); }

.service-row p {
  color: var(--slate);
  font-size: 0.97rem;
  max-width: 60ch;
}

.service-arrow {
  justify-self: end;
  font-size: 1.3rem;
  color: var(--copper);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}

.service-row:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* =========================================================
   Lifecycle (dark band, horizontal scroll)
   ========================================================= */
.lifecycle {
  background:
    radial-gradient(80% 120% at 85% -10%, rgba(194, 94, 31, 0.16) 0%, rgba(194, 94, 31, 0) 55%),
    var(--navy);
  color: var(--ivory);
  overflow: hidden;
  padding-block: clamp(84px, 10vw, 140px);
}

.lifecycle-head {
  width: 100%;
  padding-inline: var(--pad);
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.lifecycle-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.lifecycle-head h2 { color: var(--ivory); }

.lifecycle-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 6px;
}

.lifecycle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--ivory);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.lifecycle-btn:hover { background: rgba(244, 241, 234, 0.08); border-color: var(--copper); }
.lifecycle-btn:disabled { opacity: 0.3; cursor: default; }

.lifecycle-viewport {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  overflow: hidden;
}

.lifecycle-track {
  --card-gap: clamp(16px, 2vw, 28px);
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lifecycle-track::-webkit-scrollbar { display: none; }

/* desktop click-and-drag */
.lifecycle-track { cursor: grab; }
.lifecycle-track.dragging { cursor: grabbing; user-select: none; }
.lifecycle-track.dragging, .lifecycle-track.settling { scroll-snap-type: none; }
.lifecycle-track.dragging .phase-card { pointer-events: none; }

.phase-card {
  scroll-snap-align: start;
  /* exactly three tiles per view, aligned to the site column */
  width: calc((100% - 2 * var(--card-gap)) / 3);
  flex: none;
  background: var(--navy-2);
  border: 1px solid var(--line-light);
  border-radius: 18px;
  padding: clamp(26px, 2.6vw, 40px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.phase-card:hover { border-color: rgba(194, 94, 31, 0.55); transform: translateY(-4px); }

@media (max-width: 1140px) and (min-width: 901px) {
  .phase-card { width: calc((100% - var(--card-gap)) / 2); }
}

.phase-card::after {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(194, 94, 31, 0.35);
  background: radial-gradient(circle, rgba(194, 94, 31, 0.14), transparent 70%);
}

.phase-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper);
  font-size: 1.05rem;
  display: block;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.phase-card h3 {
  font-size: clamp(1.4rem, 1.9vw, 1.75rem);
  color: var(--ivory);
  margin-bottom: 14px;
}

.phase-card p {
  color: rgba(244, 241, 234, 0.66);
  font-size: 0.95rem;
}

/* =========================================================
   Platform / Offices
   ========================================================= */
.platform { background: var(--ivory); }

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.office {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 2.6vw, 38px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.office:hover {
  transform: translateY(-5px);
  border-color: rgba(194, 94, 31, 0.45);
  box-shadow: 0 24px 48px -28px rgba(20, 26, 35, 0.35);
}

.office-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.office-clock {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.office-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 18px;
}

.office-tz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--copper);
}

.office-tz::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  animation: livePulse 2.4s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 94, 31, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(194, 94, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 94, 31, 0); }
}

.office h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 0; }

.office-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--copper);
}

.office p { color: var(--slate); font-size: 0.95rem; }

.office-addr {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem !important;
}

/* =========================================================
   Team
   ========================================================= */
.team { background: var(--ivory-2); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.person {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 2.4vw, 34px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.person:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -28px rgba(20, 26, 35, 0.35);
}

.person-tile {
  width: 76px; height: 76px;
  border-radius: 16px;
  background:
    repeating-radial-gradient(circle at 75% 25%, transparent 0 7px, rgba(244, 241, 234, 0.12) 7px 8px),
    linear-gradient(135deg, var(--ink) 0%, var(--navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.person-tile span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ivory);
}

.person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.person h3 { font-size: 1.45rem; }

.person-li {
  color: var(--slate);
  transition: color 0.3s, transform 0.3s var(--ease-out);
  flex: none;
}

.person-li:hover { color: var(--copper); transform: translateY(-2px); }

.person-role {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--copper-deep);
  margin: 6px 0 16px;
}

.person-bio { color: var(--slate); font-size: 0.92rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact {
  background:
    radial-gradient(70% 100% at 15% 0%, rgba(194, 94, 31, 0.18) 0%, rgba(194, 94, 31, 0) 55%),
    var(--navy);
  color: var(--ivory);
}

.contact-title {
  color: var(--ivory);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  color: var(--ivory);
  position: relative;
  padding-bottom: 8px;
  transition: color 0.35s;
  overflow-wrap: anywhere;
}

.contact-mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--copper);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.contact-mail:hover { color: var(--copper); }
.contact-mail:hover::after { transform: scaleX(1.0) translateY(2px); background: var(--ivory); }

/* ---- Contact form ---- */
.contact-intro {
  color: rgba(244, 241, 234, 0.7);
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* two-column: form left, office/map right */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

.contact-form {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-grid .contact-form { max-width: none; }

/* office card */
.contact-side { display: flex; }

.office-card {
  width: 100%;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(244, 241, 234, 0.05);
  display: flex;
  flex-direction: column;
}

.office-map {
  /* crop the top strip of the embed to hide Google's "Open in Maps"
     button, while keeping the map centred and the bottom attribution */
  --map-h: clamp(170px, 20vw, 230px);
  --map-crop: 46px;
  line-height: 0;
  overflow: hidden;
  height: var(--map-h);
}

.office-map iframe {
  display: block;
  width: 100%;
  height: calc(var(--map-h) + var(--map-crop));
  margin-top: calc(var(--map-crop) * -1);
  border: 0;
}

.office-card-body {
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.office-card h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--ivory);
  margin-bottom: 14px;
}

.office-address {
  font-style: normal;
  color: rgba(244, 241, 234, 0.7);
  font-size: 1rem;
  line-height: 1.7;
}

.map-link {
  margin-top: auto;
  padding-top: 26px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copper);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s var(--ease-out), color 0.3s;
}

.map-link:hover { color: var(--ivory); gap: 12px; }
.map-arrow { width: 15px; height: 15px; flex: none; }

.form-row { display: flex; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.82);
}

.field label span { color: rgba(244, 241, 234, 0.45); font-weight: 400; }

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ivory);
  background: rgba(244, 241, 234, 0.05);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.3s, background 0.3s;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(244, 241, 234, 0.09);
}

.btn-form {
  align-self: flex-start;
  background: var(--copper);
  color: var(--ivory);
  border: none;
  cursor: pointer;
}

.btn-form:hover { background: var(--ivory); color: var(--ink); transform: translateY(-2px); }

/* honeypot — visually hidden, off-screen */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.contact-alt { margin-top: 28px; color: rgba(244, 241, 234, 0.6); font-size: 0.95rem; }
.contact-alt a { color: var(--copper); font-weight: 600; }
.contact-alt a:hover { color: var(--ivory); }

.form-feedback {
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 28px 30px;
  max-width: 660px;
  background: rgba(244, 241, 234, 0.05);
}
.form-feedback h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ivory); margin-bottom: 8px; }
.form-feedback p { color: rgba(244, 241, 234, 0.7); }
.form-feedback.error h3 { color: var(--copper); }

.contact-offices {
  margin-top: clamp(52px, 7vw, 90px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.contact-offices .office {
  background: rgba(244, 241, 234, 0.04);
  border-color: var(--line-light);
}

.contact-offices .office h3 { color: var(--ivory); }

.contact-offices .office-clock { color: var(--ivory); }

.contact-offices .office-tag { color: var(--copper); }

.contact-offices .office p { color: rgba(244, 241, 234, 0.66); }

.contact-offices .office-addr { color: rgba(244, 241, 234, 0.4); border-top-color: var(--line-light); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--navy);
  color: rgba(244, 241, 234, 0.66);
  border-top: 1px solid var(--line-light);
  padding-block: clamp(32px, 4vw, 48px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a {
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--copper); }

.footer-reg { font-size: 0.8rem; text-align: right; line-height: 1.7; }

/* =========================================================
   Reveal defaults (pre-GSAP state set in JS)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .service-row { grid-template-columns: 56px 240px 1fr; }
  .service-arrow { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-small { display: none; }
  .menu-toggle { display: flex; }

  .firm-grid { grid-template-columns: 1fr; }
  .firm-stats { grid-template-columns: repeat(2, 1fr); border-top: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: none; }

  .office-grid, .team-grid { grid-template-columns: 1fr; }

  .lifecycle-track { padding-bottom: 18px; }
  .phase-card { width: min(82vw, 360px); }

  .contact-offices { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-reg { text-align: left; }
}

@media (max-width: 640px) {
  .hero-foot { flex-wrap: wrap; gap: 18px; }
  .hero-fact { min-width: calc(50% - 18px); }
  .hero-scroll { display: none; }
  .hero-actions .btn { width: 100%; }
  .bk { display: none; }
}
