/* ==========================================================================
   FinoviaResearch — Design System
   Palette: Rich Mahogany · Muted Olive Green · Warm Champagne ·
            Soft Linen White · Dark Graphite
   Editorial financial-education aesthetic.
   ========================================================================== */

:root {
  /* Core palette */
  --mahogany:        #6E2C22;
  --mahogany-dark:   #4C1D16;
  --mahogany-soft:   #8A3B2E;
  --olive:           #6B7150;
  --olive-dark:      #4F5539;
  --olive-light:     #9AA078;
  --champagne:       #E4D2AC;
  --champagne-soft:  #EFE4CB;
  --linen:           #FAF6EE;
  --linen-warm:      #F3EBDD;
  --graphite:        #26241F;
  --graphite-soft:   #514D45;
  --graphite-line:   #DED5C4;

  /* Semantic */
  --bg:              var(--linen);
  --bg-alt:          var(--linen-warm);
  --ink:             var(--graphite);
  --ink-soft:        var(--graphite-soft);
  --accent:          var(--mahogany);
  --accent-2:        var(--olive);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(38, 36, 31, 0.06);
  --shadow-md: 0 18px 45px -22px rgba(38, 36, 31, 0.35);
  --shadow-lg: 0 40px 80px -30px rgba(38, 36, 31, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
/* Branded placeholder so a slow/failed image never shows a blank or broken gap */
.hero-media, .split-media, .analysis-media, .insight .thumb,
.team-card .photo, .office .top { background: var(--linen-warm); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--champagne); color: var(--mahogany-dark); }

/* --------------------------- Typography ------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--graphite);
}
.display {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 460;
  line-height: 1.02;
}
h2.section-title { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mahogany-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--mahogany-soft);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.65;
}
.muted { color: var(--ink-soft); }
.serif-accent { font-family: var(--font-display); font-style: italic; }

/* ---------------------------- Layout ---------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--graphite); color: var(--champagne-soft); }
.bg-dark h2, .bg-dark h3 { color: var(--linen); }
.bg-mahogany { background: var(--mahogany-dark); color: var(--champagne-soft); }
.bg-mahogany h1, .bg-mahogany h2, .bg-mahogany h3 { color: #fff; }

.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.1rem; }

/* ---------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--mahogany);
  color: var(--linen);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--mahogany-dark); transform: translateY(-3px); }
.btn-ghost {
  border-color: var(--graphite-line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--mahogany); color: var(--mahogany); transform: translateY(-3px); }
.btn-light {
  background: var(--champagne);
  color: var(--mahogany-dark);
}
.btn-light:hover { background: var(--champagne-soft); transform: translateY(-3px); }
.btn-outline-light {
  border-color: rgba(239, 228, 203, 0.4);
  color: var(--champagne-soft);
}
.btn-outline-light:hover { border-color: var(--champagne); color: #fff; transform: translateY(-3px); }

/* ============================ HEADER =================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.4s;
}
.site-header.scrolled {
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(38,36,31,0.07);
  padding-block: 0.7rem;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--graphite);
}
.brand .mark {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mahogany), var(--mahogany-dark));
  display: grid;
  place-items: center;
  color: var(--champagne);
  box-shadow: var(--shadow-sm);
}
.brand .mark svg { width: 21px; height: 21px; }
.brand b { font-weight: 600; }
.brand span.thin { font-weight: 400; opacity: 0.75; }

/* Transparent header sitting over a dark hero */
.site-header.over-hero:not(.scrolled) .brand { color: var(--linen); }
.site-header.over-hero:not(.scrolled) .nav-links a { color: rgba(250,246,238,0.9); }
.site-header.over-hero:not(.scrolled) .nav-links a:hover,
.site-header.over-hero:not(.scrolled) .nav-links a.active { color: #fff; }
.site-header.over-hero:not(.scrolled) .nav-links a::after { background: var(--champagne); }
.site-header.over-hero:not(.scrolled) .nav-toggle { border-color: rgba(250,246,238,0.4); background: rgba(255,255,255,0.08); }
.site-header.over-hero:not(.scrolled) .nav-toggle span { background: var(--linen); }
.site-header.over-hero:not(.scrolled) .btn-ghost { border-color: rgba(250,246,238,0.4); color: var(--linen); }
.site-header.over-hero:not(.scrolled) .btn-ghost:hover { border-color: #fff; color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--mahogany);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--mahogany); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--mahogany); }

.nav-cta { display: inline-flex; align-items: center; gap: 1.2rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--graphite-line);
  border-radius: 12px;
  background: rgba(250,246,238,0.6);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -7px); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 5px); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============================ HERO ==================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(38,29,22,0.92) 0%, rgba(76,29,22,0.72) 38%, rgba(38,36,31,0.35) 72%, rgba(38,36,31,0.15) 100%);
}
.hero-inner { max-width: 760px; padding-block: 8rem 6rem; }
.hero .eyebrow { color: var(--champagne); margin-bottom: 1.6rem; }
.hero .eyebrow::before { background: var(--champagne); }
.hero h1 {
  color: #fff;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero h1 em { font-style: italic; color: var(--champagne); }
.hero p {
  color: rgba(250,246,238,0.9);
  max-width: 560px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-scroll {
  position: absolute;
  left: var(--gutter); bottom: 2rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: rgba(250,246,238,0.7);
  font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.hero-scroll .line {
  width: 44px; height: 1.5px; background: rgba(250,246,238,0.5);
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content:""; position:absolute; inset:0; background: var(--champagne);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }

.hero-stats {
  position: absolute;
  right: var(--gutter); bottom: 2.4rem;
  display: flex; gap: 2.5rem;
  color: var(--linen);
}
.hero-stats .stat b {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 500;
  display: block; line-height: 1;
  color: var(--champagne);
}
.hero-stats .stat span { font-size: 0.82rem; opacity: 0.8; letter-spacing: 0.04em; }

/* ---- Inner-page banner ---- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: flex-end;
  padding-top: 7rem;
  overflow: hidden;
}
.page-hero .hero-media img { object-position: center 40%; }
.page-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(38,29,22,0.55) 0%, rgba(38,29,22,0.35) 40%, rgba(38,36,31,0.85) 100%);
}
.page-hero .inner { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 780px; }
.page-hero .eyebrow { color: var(--champagne); margin-bottom: 1.1rem; }
.page-hero .eyebrow::before { background: var(--champagne); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.page-hero p { color: rgba(250,246,238,0.9); margin-top: 1.1rem; max-width: 620px; font-size: 1.15rem; }
.breadcrumb { display:flex; gap:.5rem; align-items:center; color: rgba(250,246,238,0.7); font-size:.85rem; margin-bottom:1.4rem; }
.breadcrumb a:hover { color: var(--champagne); }

/* ============================ CARDS =================================== */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--graphite-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--mahogany), var(--olive));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--linen-warm);
  color: var(--mahogany);
  margin-bottom: 1.5rem;
  transition: background 0.4s, color 0.4s;
}
.card:hover .icon { background: var(--mahogany); color: var(--champagne); }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .index {
  position: absolute; right: 1.6rem; top: 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem; color: var(--graphite-line);
}

/* Feature card with tag list */
ul.check { margin-top: 1.2rem; display: grid; gap: 0.6rem; }
ul.check li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.92rem; color: var(--ink-soft);
}
ul.check li svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--olive); margin-top: 4px; }

/* ============================ SPLIT =================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.2;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.tall { aspect-ratio: 4 / 4.6; }
.split-badge {
  position: absolute; left: 1.4rem; bottom: 1.4rem;
  background: rgba(250,246,238,0.94);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}
.split-badge b { font-family: var(--font-display); font-size: 1.8rem; color: var(--mahogany); display:block; line-height:1; }
.split-badge span { font-size: 0.82rem; color: var(--ink-soft); }
.split-body .eyebrow { margin-bottom: 1.2rem; }
.split-body h2 { margin-bottom: 1.2rem; }
.split-body p + p { margin-top: 1rem; }
.split-body .btn { margin-top: 1.8rem; }

/* ============================ STATS =================================== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(239,228,203,0.18); border-radius: var(--radius-lg); overflow: hidden; }
.bg-dark .stats-band { background: rgba(239,228,203,0.12); }
.stat-cell {
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
  background: var(--graphite);
}
.stat-cell b {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 500;
  color: var(--champagne);
  display: block; line-height: 1;
}
.stat-cell span { display:block; margin-top: 0.7rem; font-size: 0.9rem; color: rgba(239,228,203,0.72); letter-spacing: 0.03em; }

/* ============================ QUOTE =================================== */
.quote-section { position: relative; overflow: hidden; }
.quote-mark {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 16rem);
  line-height: 0.7;
  color: var(--champagne);
  opacity: 0.5;
  position: absolute;
  left: 50%; top: 2rem;
  transform: translateX(-50%);
  pointer-events: none;
}
.quote-body { max-width: 900px; margin-inline: auto; text-align: center; position: relative; }
.quote-body blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.28;
  font-weight: 460;
  color: var(--graphite);
}
.bg-mahogany .quote-body blockquote { color: #fff; }
.bg-mahogany .quote-mark { color: rgba(228,210,172,0.25); }
.quote-cite { margin-top: 2rem; display: inline-flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.quote-cite b { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em; }
.quote-cite span { font-size: 0.85rem; color: var(--ink-soft); }
.bg-mahogany .quote-cite span { color: var(--champagne); opacity: 0.85; }

/* ============================ INSIGHTS =============================== */
.insights-grid { grid-template-columns: repeat(3, 1fr); }
.insight {
  background: #fff;
  border: 1px solid var(--graphite-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.insight:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.insight .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.insight .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.insight:hover .thumb img { transform: scale(1.06); }
.insight .body { padding: 1.6rem 1.7rem 1.9rem; display:flex; flex-direction:column; flex:1; }
.tag {
  display:inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--olive-dark);
  background: rgba(107,113,80,0.1);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  margin-bottom: 1rem; align-self: flex-start;
}
.insight h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.insight p { font-size: 0.94rem; color: var(--ink-soft); flex: 1; }
.insight .meta { margin-top: 1.3rem; display:flex; align-items:center; gap:.6rem; font-size:.82rem; color: var(--ink-soft); }
.insight .read { margin-top: 1.2rem; font-weight: 600; font-size: 0.9rem; color: var(--mahogany); display:inline-flex; gap:.4rem; align-items:center; }
.insight .read svg { width:16px; height:16px; transition: transform .4s var(--ease); }
.insight:hover .read svg { transform: translateX(4px); }

/* ============================ TIMELINE =============================== */
.timeline { position: relative; margin-top: 2rem; }
.timeline::before {
  content:""; position:absolute; left: 24px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--mahogany), var(--olive));
}
.tl-item { position: relative; padding-left: 72px; padding-bottom: clamp(2rem, 4vw, 3rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 0;
  width: 50px; height: 50px; border-radius: 14px;
  background: #fff; border: 1px solid var(--graphite-line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--mahogany);
  box-shadow: var(--shadow-sm);
}
.bg-alt .tl-dot { background: var(--linen); }
.tl-item h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.tl-item p { color: var(--ink-soft); font-size: 0.98rem; max-width: 620px; }
.tl-step { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive-dark); font-weight: 600; margin-bottom: 0.4rem; }

/* ============================ TEAM =================================== */
.team-card {
  background: #fff; border: 1px solid var(--graphite-line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.team-card .photo { aspect-ratio: 1 / 1; overflow: hidden; }
.team-card .photo img { width:100%; height:100%; object-fit: cover; transition: transform .7s var(--ease); filter: saturate(1.02); }
.team-card:hover .photo img { transform: scale(1.05); }
.team-card .body { padding: 1.5rem 1.6rem 1.8rem; }
.team-card h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.team-card .role { color: var(--mahogany); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; }
.team-card p { font-size: 0.92rem; color: var(--ink-soft); }
.team-card .socials { margin-top: 1.1rem; display:flex; gap:.6rem; }
.team-card .socials a { width: 34px; height:34px; border-radius: 9px; display:grid; place-items:center; background: var(--linen-warm); color: var(--graphite-soft); transition: .3s; }
.team-card .socials a:hover { background: var(--mahogany); color: var(--champagne); }
.team-card .socials svg { width:16px; height:16px; }

/* ============================ ANALYSIS ARTICLES ===================== */
.analysis {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.analysis.reverse .analysis-media { order: 2; }
.analysis-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 5 / 4;
  position: relative;
}
.analysis-media img { width:100%; height:100%; object-fit: cover; }
.analysis-media .float-quote {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: rgba(38,36,31,0.82); backdrop-filter: blur(6px);
  color: var(--champagne-soft); border-radius: 14px; padding: 1rem 1.2rem;
  font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.4;
}
.analysis-body .tag { margin-bottom: 1rem; }
.analysis-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.analysis-body p { color: var(--ink-soft); }
.analysis-body p + p { margin-top: 0.9rem; }

.tips {
  margin-top: 1.6rem; background: var(--linen-warm);
  border-radius: 16px; padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--olive);
}
.tips h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive-dark); margin-bottom: 0.8rem; }
.tips ul { display: grid; gap: 0.6rem; }
.tips li { display:flex; gap:.6rem; align-items:flex-start; font-size: 0.95rem; }
.tips li svg { width: 18px; height:18px; color: var(--olive); flex:0 0 auto; margin-top: 3px; }

.highlight-box {
  margin-top: 1.6rem;
  background: linear-gradient(120deg, var(--mahogany-dark), var(--mahogany));
  color: var(--champagne-soft);
  border-radius: 16px; padding: 1.5rem 1.7rem;
  position: relative; overflow: hidden;
}
.highlight-box::before { content:"\201C"; font-family: var(--font-display); font-size: 5rem; position:absolute; right: 1rem; top: -0.5rem; opacity: 0.18; }
.highlight-box p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.4; color: #fff; position: relative; }

.takeaways {
  margin-top: 1.6rem; border: 1px dashed var(--graphite-line);
  border-radius: 16px; padding: 1.4rem 1.6rem;
}
.takeaways h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mahogany-soft); margin-bottom: 0.8rem; }
.takeaways ol { margin: 0; padding-left: 1.2rem; display:grid; gap:.5rem; }
.takeaways li { font-size: 0.95rem; color: var(--ink); }
.takeaways li::marker { color: var(--mahogany); font-family: var(--font-display); }

/* ============================ CONTACT =============================== */
.contact-card {
  background:#fff; border:1px solid var(--graphite-line); border-radius: var(--radius-lg);
  padding: 2rem; text-align:center; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card .icon { width: 58px; height:58px; border-radius: 16px; margin: 0 auto 1.2rem; display:grid; place-items:center; background: var(--linen-warm); color: var(--mahogany); }
.contact-card .icon svg { width: 26px; height:26px; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: 0.96rem; }
.contact-card a:hover { color: var(--mahogany); }

.office-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.office {
  background:#fff; border:1px solid var(--graphite-line); border-radius: var(--radius-lg); overflow: hidden;
}
.office .top { aspect-ratio: 16/10; overflow:hidden; }
.office .top img { width:100%; height:100%; object-fit: cover; }
.office .body { padding: 1.5rem 1.6rem 1.8rem; }
.office h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.office p { font-size: 0.94rem; color: var(--ink-soft); }
.office .hours { margin-top: 1rem; font-size: 0.88rem; color: var(--olive-dark); font-weight: 600; }

.socials-row { display:flex; flex-wrap:wrap; gap: 1rem; justify-content:center; }
.social-pill {
  display:inline-flex; align-items:center; gap:.7rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  background:#fff; border:1px solid var(--graphite-line);
  font-weight: 600; font-size: 0.92rem; transition:.35s var(--ease);
}
.social-pill svg { width: 20px; height:20px; }
.social-pill:hover { transform: translateY(-4px); border-color: var(--mahogany); color: var(--mahogany); box-shadow: var(--shadow-sm); }

/* ============================ CTA BAND ============================== */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.8rem, 6vw, 5rem);
  background: linear-gradient(120deg, var(--mahogany-dark) 0%, var(--mahogany) 60%, var(--mahogany-soft) 100%);
  color: var(--champagne-soft);
  text-align: center;
}
.cta-band::before, .cta-band::after {
  content:""; position:absolute; border-radius:50%;
  background: radial-gradient(circle, rgba(228,210,172,0.22), transparent 70%);
}
.cta-band::before { width: 380px; height:380px; top:-140px; right:-100px; }
.cta-band::after { width: 320px; height:320px; bottom:-160px; left:-80px; }
.cta-band > * { position: relative; }
.cta-band h2 { color:#fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-band p { max-width: 620px; margin: 0 auto 2rem; color: rgba(239,228,203,0.9); font-size: 1.1rem; }

/* ============================ FOOTER =============================== */
.site-footer { background: var(--graphite); color: rgba(239,228,203,0.72); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer-top { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(239,228,203,0.12); }
.footer-brand .brand { color: var(--linen); margin-bottom: 1.2rem; }
.footer-brand p { max-width: 320px; font-size: 0.94rem; line-height: 1.7; }
.footer-brand .socials { margin-top: 1.5rem; display:flex; gap:.7rem; }
.footer-brand .socials a { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background: rgba(239,228,203,0.08); color: var(--champagne-soft); transition:.3s; }
.footer-brand .socials a:hover { background: var(--mahogany); color:#fff; transform: translateY(-3px); }
.footer-brand .socials svg { width:17px; height:17px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne); margin-bottom: 1.2rem; }
.footer-col ul { display:grid; gap: 0.7rem; }
.footer-col a { font-size: 0.93rem; transition: color .25s; }
.footer-col a:hover { color: var(--champagne); }
.footer-bottom { display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; padding-block: 1.8rem; font-size: 0.85rem; }
.footer-bottom .legal { display:flex; gap: 1.5rem; flex-wrap:wrap; }
.footer-bottom .legal a:hover { color: var(--champagne); }
.footer-note { font-size: 0.78rem; color: rgba(239,228,203,0.4); padding-bottom: 2rem; max-width: 900px; line-height: 1.6; }

/* ============================ LEGAL PAGES ========================== */
.legal-wrap { display:grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items:start; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing:.14em; text-transform:uppercase; color: var(--mahogany-soft); margin-bottom: 1rem; }
.legal-toc ul { display:grid; gap: .55rem; }
.legal-toc a { font-size: 0.9rem; color: var(--ink-soft); transition: color .25s; }
.legal-toc a:hover { color: var(--mahogany); }
.legal-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.4rem 0 0.9rem; scroll-margin-top: 100px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; display:grid; gap:.5rem; }
.legal-content ul li::marker { color: var(--mahogany); }
.legal-content .updated { display:inline-block; background: var(--linen-warm); padding: .5rem 1rem; border-radius: 999px; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* ============================ COOKIE BANNER ======================== */
.cookie {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 200%);
  z-index: 200;
  width: min(100% - 2rem, 940px);
  background: var(--graphite); color: rgba(239,228,203,0.85);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.6rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items:center;
  transition: transform 0.6s var(--ease);
  border: 1px solid rgba(239,228,203,0.12);
}
.cookie.show { transform: translate(-50%, 0); }
.cookie .ck-text b { color: var(--champagne); font-family: var(--font-display); font-size: 1.05rem; display:block; margin-bottom: .3rem; }
.cookie .ck-text p { font-size: 0.88rem; line-height: 1.55; }
.cookie .ck-text a { color: var(--champagne); text-decoration: underline; }
.cookie .ck-actions { display:flex; gap: .7rem; flex-wrap:wrap; }
.cookie .btn { padding: 0.7rem 1.4rem; font-size: 0.88rem; }
.ck-decline { background: transparent; border:1.5px solid rgba(239,228,203,0.3); color: var(--champagne-soft); }
.ck-decline:hover { border-color: var(--champagne); }

/* ============================ REVEAL ANIM ========================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .hero-scroll .line::after { animation: none; }
}

/* ============================ RESPONSIVE =========================== */
@media (max-width: 980px) {
  .grid-3, .insights-grid, .office-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header { background: rgba(250,246,238,0.9); backdrop-filter: saturate(160%) blur(14px); }
  .site-header .brand.on-dark { color: var(--graphite); }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    background: var(--linen);
    padding: 6rem var(--gutter) 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    display: flex; flex-direction: column;
    overflow-y: auto;
  }
  body.nav-open .mobile-menu { transform: none; }
  body.nav-open { overflow: hidden; }
  .mobile-menu a.m-link {
    font-family: var(--font-display); font-size: 2rem;
    padding: 1rem 0; border-bottom: 1px solid var(--graphite-line);
    display:flex; justify-content:space-between; align-items:center;
    color: var(--graphite);
  }
  .mobile-menu a.m-link span { color: var(--graphite-line); font-size: 1rem; }
  .mobile-menu .m-cta { margin-top: auto; }
  .mobile-menu .m-cta .btn { width: 100%; justify-content: center; margin-top: 2rem; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

@media (max-width: 760px) {
  /* Anchor hero content to the top so tall content never rises under the fixed header */
  .hero { align-items: flex-start; padding-top: 0; min-height: auto; }
  .hero-inner { padding-block: 7rem 3.5rem; }
  .split, .analysis, .analysis.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media, .analysis.reverse .analysis-media { order: 0; }
  .stats-band, .grid-3, .grid-2, .grid-4, .insights-grid, .office-grid { grid-template-columns: 1fr; }
  .stats-band { border-radius: var(--radius-lg); }
  .hero-stats { display: none; }
  .hero-scroll { display: none; }
  .cookie { grid-template-columns: 1fr; text-align: left; }
  .cookie .ck-actions .btn { flex: 1; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.2rem; }
  .hero-inner { padding-block: 6.5rem 3rem; }
  .btn { padding: 0.85rem 1.5rem; }
}
