/* ============================================================
   Sterling Solicitors — Shared Stylesheet v2 (Mobile-First)
   WebSage Creative
   ============================================================ */

:root {
  --cream:   #f2efe9;
  --cream-2: #ebe7df;
  --cream-3: #e2ddd5;
  --stone:   #b5a99a;
  --ink:     #1c1b19;
  --ink-2:   #2e2c29;
  --ink-lt:  #3a3835;
  --accent:  #8b7355;
  --gold:    #a08050;
  --muted:   #776e65;
  --line:    rgba(181,169,154,0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.1; }
p { line-height: 1.85; }
a { color: inherit; }

/* ════════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  background: rgba(242,239,233,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 24px rgba(28,27,25,0.08); }

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .lw {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-logo .ls {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.48rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--accent);
}

#nav-links {
  display: none; /* hidden on mobile */
  gap: 32px;
  list-style: none;
}
#nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.63rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-lt);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
#nav-links a:hover,
#nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-cta {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--stone);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.nav-cta:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Burger */
#nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
}
#nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}
#nav-toggle span:last-child { width: 15px; }
#nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 22px; }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 22px; }

/* Mobile drawer */
#nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 20px 20px 28px;
  z-index: 199;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 32px rgba(28,27,25,0.1);
}
#nav-mobile.open { display: flex; }
#nav-mobile a {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-lt);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
#nav-mobile a:last-child { border-bottom: none; padding-bottom: 0; }
#nav-mobile a:hover, #nav-mobile a.active { color: var(--accent); }

/* ════════════════════════════════════════════
   HERO (index only)
════════════════════════════════════════════ */
.home-hero {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.home-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 20px 48px;
  background: var(--cream);
  position: relative;
  order: 2;
}
.home-hero-right {
  position: relative;
  overflow: hidden;
  background: var(--cream-3);
  order: 1;
  height: 55vw;
  min-height: 240px;
  max-height: 420px;
}
.home-hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.home-hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--cream) 0%, transparent 15%);
  z-index: 1;
  pointer-events: none;
}
.hero-vert-rule {
  display: none; /* only on desktop */
}

/* ════════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════════ */
.page-hero {
  padding-top: 100px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 1;
}
.page-hero-inner {
  position: relative;
  padding: 72px 20px 60px;
  z-index: 2;
}
.page-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.ph-line { width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }
.ph-tag {
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  line-height: 1.06;
  color: var(--cream);
  margin-bottom: 18px;
}
.page-hero p {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  max-width: 520px;
}

/* ════════════════════════════════════════════
   SECTION TAGS & LABELS
════════════════════════════════════════════ */
.sec-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.sec-tag-line { width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }
.sec-tag-txt {
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ════════════════════════════════════════════
   LINKS
════════════════════════════════════════════ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow .arr { transition: transform 0.2s; display: inline-block; }
.link-arrow:hover .arr { transform: translateX(4px); }

.link-arrow-lt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid rgba(181,169,154,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow-lt:hover { color: var(--cream); border-color: var(--stone); }
.link-arrow-lt .arr { transition: transform 0.2s; display: inline-block; }
.link-arrow-lt:hover .arr { transform: translateX(4px); }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s;
  white-space: nowrap;
}
.btn-fill:hover { background: var(--ink-2); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s;
  white-space: nowrap;
}
.btn-accent:hover { background: var(--gold); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--stone);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-ghost-lt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid rgba(181,169,154,0.3);
  color: var(--stone);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-ghost-lt:hover { border-color: var(--stone); color: var(--cream); }

/* ════════════════════════════════════════════
   STATS RIBBON
════════════════════════════════════════════ */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--ink);
}
.stat {
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.stat:nth-child(2n) { border-right: none; }
.stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.stat:hover::after { transform: scaleX(1); }
.stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-l {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ════════════════════════════════════════════
   SECTION LAYOUT
════════════════════════════════════════════ */
.sec { padding: 60px 20px; }
.sec-sm { padding: 44px 20px; }

/* Two-col: stacks on mobile, side-by-side on desktop */
.split-section {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.split-section .split-col {
  padding: 60px 20px;
  width: 100%;
}
.split-section .split-col.has-border {
  border-bottom: 1px solid var(--line);
}
.split-section .split-col.img-col {
  padding: 0;
  overflow: hidden;
  min-height: 280px;
}
.split-section .split-col.img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.sec-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}
.sec-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--ink);
  margin-top: 6px;
}
.sec-h-lt {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--cream);
  margin-top: 6px;
}

/* ════════════════════════════════════════════
   PRACTICE ROWS
════════════════════════════════════════════ */
.pr-list { display: flex; flex-direction: column; }
.pr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s, padding-left 0.25s;
}
.pr:first-child { border-top: 1px solid var(--line); }
.pr:hover { color: var(--accent); padding-left: 8px; }
.pr-left { display: flex; align-items: center; gap: 14px; }
.pr-num { font-family: 'Jost', sans-serif; font-size: 0.58rem; color: var(--stone); min-width: 18px; }
.pr-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 400; }
.pr-arr { font-size: 0.82rem; opacity: 0.4; transition: opacity 0.2s, transform 0.2s; flex-shrink: 0; }
.pr:hover .pr-arr { opacity: 1; transform: translateX(4px); }

/* ════════════════════════════════════════════
   TEAM CARDS
════════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.person-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream-3);
  cursor: pointer;
}
.person-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.person-card:hover img { transform: scale(1.04); }
.person-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,27,25,0.78) 0%, rgba(28,27,25,0.08) 45%, transparent 70%);
  z-index: 1;
}
.person-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 24px; height: 24px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0; z-index: 3;
  transition: opacity 0.3s;
}
.person-card:hover::before { opacity: 0.8; }
.person-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px 20px;
  z-index: 2;
}
.p-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 3px;
}
.p-role {
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,239,233,0.6);
}

/* ════════════════════════════════════════════
   PEOPLE GRID (our-people page)
════════════════════════════════════════════ */
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.people-grid .person-card { aspect-ratio: 2/3; }

.filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn.active,
.filter-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ════════════════════════════════════════════
   INSIGHTS CARDS
════════════════════════════════════════════ */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.insight-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-2);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  overflow: hidden;
}
.insight-card:hover { background: var(--cream-3); }
.ic-img { width: 100%; overflow: hidden; }
.ic-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.insight-card.featured .ic-img img { aspect-ratio: 3/2; }
.insight-card:hover .ic-img img { transform: scale(1.05); }
.ic-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.ic-tag {
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.ic-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
}
.ic-excerpt {
  font-family: 'Jost', sans-serif;
  font-size: 0.83rem;
  line-height: 1.8;
  color: var(--muted);
}
.ic-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* ════════════════════════════════════════════
   SERVICES GRID
════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.service-card {
  padding: 40px 28px;
  background: var(--cream-2);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card:hover { border-bottom-color: var(--accent); background: var(--cream-3); }
.sc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: rgba(28,27,25,0.07);
  line-height: 1;
  margin-bottom: -4px;
}
.sc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
}
.sc-body {
  font-family: 'Jost', sans-serif;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--muted);
}
.sc-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.sc-list li {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-lt);
  padding-left: 14px;
  position: relative;
}
.sc-list li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}

/* ════════════════════════════════════════════
   VALUES GRID
════════════════════════════════════════════ */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.value-card {
  padding: 36px 28px;
  background: var(--cream-2);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.value-card:hover { border-bottom-color: var(--accent); background: var(--cream-3); }
.vc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(28,27,25,0.07);
  line-height: 1;
  margin-bottom: -6px;
}
.vc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.vc-body {
  font-family: 'Jost', sans-serif;
  font-size: 0.83rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ════════════════════════════════════════════
   TIMELINE
════════════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid;
  grid-template-columns: 60px 1px 1fr;
  gap: 0 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.tl-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  padding-top: 2px;
}
.tl-line { background: var(--line); position: relative; }
.tl-line::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.tl-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 5px;
}
.tl-content p {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ════════════════════════════════════════════
   ABOUT PHOTO GRID
════════════════════════════════════════════ */
.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.apg-main { height: 65vw; max-height: 400px; overflow: hidden; }
.apg-sm   { height: 44vw; max-height: 260px; overflow: hidden; }
.apg-main img, .apg-sm img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ════════════════════════════════════════════
   CAREERS
════════════════════════════════════════════ */
.perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.perk-card { padding: 36px 28px; background: var(--cream-2); }
.perk-icon { font-size: 1.7rem; margin-bottom: 14px; display: block; }
.perk-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.perk-body {
  font-family: 'Jost', sans-serif;
  font-size: 0.83rem;
  line-height: 1.8;
  color: var(--muted);
}

.job-list { display: flex; flex-direction: column; }
.job-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.job-item:first-child { border-top: 1px solid var(--line); }
.job-item:hover { color: var(--accent); }
.job-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s;
}
.job-item:hover .job-title { color: var(--accent); }
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.job-tag {
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.job-tag.highlight { color: var(--accent); }
.job-arr { font-size: 1rem; opacity: 0.4; }

/* ════════════════════════════════════════════
   CTA STRIP
════════════════════════════════════════════ */
.cta-strip {
  padding: 60px 20px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.cta-strip h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
}
.cta-strip p {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 10px;
}
.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cta-btns a { width: 100%; text-align: center; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
#footer {
  background: var(--ink-2);
  padding: 60px 20px 36px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}
.f-brand { grid-column: 1 / -1; } /* brand col spans full width on mobile */
.f-logo-w {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
}
.f-logo-s {
  font-family: 'Jost', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
  margin-bottom: 14px;
}
.f-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.74rem;
  line-height: 1.8;
  color: rgba(181,169,154,0.5);
}
.f-col-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.f-col ul { list-style: none; }
.f-col ul li { margin-bottom: 10px; }
.f-col ul li a {
  font-family: 'Jost', sans-serif;
  font-size: 0.77rem;
  font-weight: 300;
  color: rgba(181,169,154,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.f-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f-copy, .f-reg {
  font-family: 'Jost', sans-serif;
  font-size: 0.63rem;
  font-weight: 300;
  color: rgba(181,169,154,0.28);
}

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; animation: fadeUp 0.75s ease both; }
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.15s; }
.anim-3 { animation-delay: 0.25s; }
.anim-4 { animation-delay: 0.35s; }
.anim-5 { animation-delay: 0.45s; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   TABLET  ≥ 640px
════════════════════════════════════════════ */
@media (min-width: 640px) {
  .stats-ribbon       { grid-template-columns: repeat(4, 1fr); }
  .stat               { border-bottom: none; }
  .stat:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.06); }
  .stat:last-child    { border-right: none; }

  .value-grid   { grid-template-columns: repeat(2, 1fr); }
  .perks-grid   { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid  { grid-template-columns: repeat(3, 1fr); }

  .footer-top   { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand      { grid-column: auto; }

  .cta-btns     { flex-direction: row; width: auto; }
  .cta-btns a   { width: auto; }

  .job-item { flex-direction: row; align-items: center; }
  .job-arr  { margin-left: auto; }
}

/* ════════════════════════════════════════════
   DESKTOP  ≥ 960px
════════════════════════════════════════════ */
@media (min-width: 960px) {
  #nav { padding: 0 52px; height: 72px; }
  #nav-links { display: flex; }
  .nav-cta   { display: inline-flex; }
  #nav-toggle { display: none; }

  .home-hero {
    flex-direction: row;
    min-height: 100svh;
  }
  .home-hero-left {
    width: 52%;
    padding: 100px 72px 100px 52px;
    order: 1;
  }
  .home-hero-right {
    width: 48%;
    order: 2;
    height: auto;
    max-height: none;
  }
  .home-hero-right::before {
    background: linear-gradient(90deg, var(--cream) 0%, transparent 18%);
  }
  .hero-vert-rule { display: block; }

  .page-hero-inner { padding: 100px 52px 90px; }
  .home-hero { padding-top: 108px; }
  .page-hero { padding-top: 108px; }
  .page-hero h1    { font-size: clamp(3rem, 5.5vw, 5.2rem); }

  .sec    { padding: 100px 52px; }
  .sec-sm { padding: 70px 52px; }

  /* Split sections become side-by-side */
  .split-section { flex-direction: row; }
  .split-section .split-col { width: 50%; padding: 100px 52px; }
  .split-section .split-col.has-border { border-bottom: none; border-right: 1px solid var(--line); }
  .split-section .split-col.img-col { min-height: 500px; }
  .split-section .split-col.padded-left { padding-left: 72px; }

  .sec-header { flex-direction: row; align-items: flex-end; margin-bottom: 56px; }

  /* Grids expand */
  .team-grid    { grid-template-columns: repeat(3, 1fr); }
  .people-grid  { grid-template-columns: repeat(4, 1fr); }
  .value-grid   { grid-template-columns: repeat(3, 1fr); }
  .perks-grid   { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .insights-grid { grid-template-columns: 2fr 1fr 1fr; }
  .insight-full-grid { grid-template-columns: repeat(3, 1fr); }

  /* About photo grid becomes 2-col */
  .about-photo-grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .apg-main { grid-row: 1 / 3; height: 100%; max-height: none; }
  .apg-sm   { height: auto; max-height: none; aspect-ratio: 4/3; }

  /* Footer */
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
  .f-brand    { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  /* CTA */
  .cta-strip { flex-direction: row; align-items: center; padding: 80px 52px; gap: 48px; }
  .cta-btns  { flex-direction: row; }
  .cta-btns a { width: auto; }
}

/* ════════════════════════════════════════════
   WIDE  ≥ 1280px
════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .stat-n { font-size: 3.2rem; }
}

/* ════════════════════════════════════════════
   TOPBAR
════════════════════════════════════════════ */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 201;
  height: 36px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  gap: 20px;
}

.tb-contact {
  display: none; /* hidden on small mobile, shown ≥480px */
  align-items: center;
  gap: 20px;
}

.tb-contact a {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  white-space: nowrap;
}
.tb-contact a:hover { color: var(--cream); }

.tb-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.1);
}

.tb-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 1px solid rgba(181,169,154,0.25);
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tb-login:hover {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}
.tb-login svg { flex-shrink: 0; }

/* Shift nav and mobile drawer down by topbar height */
#nav { top: 36px; }
#nav-mobile { top: calc(36px + 64px); }

@media (min-width: 480px) {
  .tb-contact { display: flex; }
}

@media (min-width: 960px) {
  #topbar { padding: 0 52px; gap: 24px; }
  #nav-mobile { top: calc(36px + 72px); }
}
