/* ============================================================
   STOIAN & PARTNERS — Editorial-legal design system
   Royal · Juridic · Strategic · Sharp · Steadfast
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — sampled from the logo */
  --burgundy:        #800020;
  --burgundy-bright: #9c1c33;
  --burgundy-deep:   #56091a;
  --burgundy-ink:    #3d0814;
  --bronze:          #9c7b54;
  --bronze-soft:     #b89a78;
  --rose:            #c07070;
  --rose-dust:       #e7cfcf;

  /* Neutrals — warm paper */
  --ink:     #211a1c;
  --ink-soft:#5a4f51;
  --paper:   #f7f2ec;
  --paper-2: #fdfbf7;
  --cream:   #efe7dc;
  --line:    #e0d4c5;

  /* Type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --serif:   'Spectral', Georgia, serif;
  --sans:    'Hanken Grotesk', system-ui, sans-serif;

  /* Rhythm */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4.5rem, 9vw, 9rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.12rem);
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;            /* clips stray horizontal overflow WITHOUT breaking position:sticky on mobile */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--burgundy); color: var(--paper-2); }

/* Paper grain + faint vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Layout helpers ---------- */
.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.shell--wide { width: min(100% - 2 * var(--gutter), 1440px); }
section { position: relative; z-index: 2; }
.pad { padding-block: var(--section); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: .85em;
}
.eyebrow::before {
  content: "";
  width: 1.9rem; height: 1px;
  background: var(--bronze);
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--bronze-soft); }
.eyebrow--light::before { background: var(--bronze); }

/* ---------- Headings ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.h-xl   { font-size: clamp(2.9rem, 7vw, 6rem); font-weight: 600; }
.h-lg   { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.h-md   { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.lead {
  font-size: clamp(1.18rem, 1.4vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 300;
}
em, .ital { font-style: italic; }
.accent { color: var(--burgundy); }
.bronze { color: var(--bronze); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--burgundy);
  --fg: var(--paper-2);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding: 1.05em 1.9em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  transition: color .4s var(--ease), background .4s var(--ease);
}
.btn span { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .7em; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--burgundy-ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--bronze);
}
.btn--ghost::after { background: var(--burgundy); }
.btn--ghost:hover { color: var(--paper-2); border-color: var(--burgundy); }
.btn--light {
  --bg: transparent; --fg: var(--paper-2);
  border-color: rgba(255,255,255,.32);
}
.btn--light::after { background: var(--paper-2); }
.btn--light:hover { color: var(--burgundy-deep); border-color: var(--paper-2); }

/* Text link with underline sweep */
.tlink {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -.4em;
  width: 100%; height: 1px; background: var(--bronze);
  transform: scaleX(.001); transform-origin: left;
  transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arr { transition: transform .4s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), padding .4s var(--ease);
}
.site-header.is-stuck {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding-block: 1.15rem;
  transition: padding .4s var(--ease);
}
.is-stuck .nav { padding-block: .7rem; }
.brand { display: flex; align-items: center; }
.brand img { height: 84px; width: auto; transition: height .4s var(--ease); }
.is-stuck .brand img { height: 60px; }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none; padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: .4rem;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--burgundy);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--burgundy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }
.lang {
  font-family: var(--sans); font-weight: 600; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .35em; white-space: nowrap;
}
.lang a { color: var(--ink-soft); transition: color .3s var(--ease); padding-block: .2rem; }
.lang a:hover { color: var(--burgundy); }
.lang a[aria-current="true"] { color: var(--burgundy); font-weight: 700; }
.lang .sep { opacity: .4; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; height: 1.5px; width: 100%;
  background: var(--ink); transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav-toggle span:nth-child(1){ top: 2px; }
.nav-toggle span:nth-child(2){ top: 10px; }
.nav-toggle span:nth-child(3){ top: 18px; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(156,28,51,.10), transparent 55%),
    radial-gradient(80% 70% at -5% 105%, rgba(156,123,84,.12), transparent 60%);
}
/* Oversized watermark emblem */
.hero-crest {
  position: absolute; right: clamp(1.5rem, 9vw, 12rem); top: 50%; translate: 0 -50%;
  width: clamp(360px, 46vw, 720px); z-index: 0;
  opacity: .06; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 8rem);
  max-width: 60rem;
}
.hero h1 { margin-top: 1.5rem; }
.hero .lead { margin-top: 1.8rem; max-width: 40rem; }
.hero-actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-meta div { max-width: 16rem; }
.hero-meta dt {
  font-family: var(--display); font-size: 2.4rem; color: var(--burgundy); line-height: 1;
}
.hero-meta dd {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: .5rem;
}

/* Motto bar */
.motto {
  background: var(--burgundy-ink);
  color: var(--rose-dust);
  position: relative; z-index: 2;
}
.motto .shell {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, 5vw, 3.5rem);
  padding-block: 1.4rem;
}
.motto span {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: var(--paper-2);
  display: inline-flex; align-items: center; gap: clamp(1rem,5vw,3.5rem);
}
.motto span::after { content: "·"; color: var(--bronze); }
.motto span:last-child::after { content: none; }
.motto b { color: var(--rose); font-weight: 500; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 46rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: 1.1rem; }
.sec-head p { margin-top: 1.3rem; }

/* ============================================================
   ABOUT / SPLIT
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-body p + p { margin-top: 1.2rem; }
.split-body .eyebrow { margin-bottom: 1.1rem; }
.split-body h2 { margin-bottom: 1.4rem; }
.split-actions { margin-top: 2rem; }

/* Framed media with crest seal */
.framed {
  position: relative; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-deep) 60%, var(--burgundy-ink) 100%);
  overflow: hidden;
}
.framed::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(184,154,120,.4);
  z-index: 2; pointer-events: none;
}
.framed-crest {
  position: absolute; inset: 0; margin: auto;
  width: 58%; opacity: .9; z-index: 1;
}
.framed-tag {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  padding: 1.6rem 1.8rem;
  font-family: var(--display); font-style: italic;
  font-size: 1.5rem; color: var(--paper-2);
}
.framed--photo { background: var(--cream); }
.framed--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Real logo usage ---- */
img.hero-crest { object-fit: contain; width: clamp(150px, 22vw, 400px); opacity: .07; }
.framed-logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 1; width: 76%; max-width: 320px;
  background: var(--paper-2); padding: 1.5rem 1.45rem;
  box-shadow: 0 34px 72px -26px rgba(61, 8, 20, .6);
}
.framed-logo img { width: 100%; height: auto; display: block; }
.footer-logo {
  display: block; background: var(--paper-2);
  padding: .95rem 1.2rem; border-radius: 6px;
  width: max-content; max-width: 280px; height: auto;
}

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 3.5rem; }
.pillar { background: var(--paper); padding: 2.2rem 1.8rem; }
.pillar .num {
  font-family: var(--display); font-size: 1.1rem; color: var(--bronze);
  display: block; margin-bottom: 1rem;
}
.pillar h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.pillar p { font-size: .98rem; color: var(--ink-soft); }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 3.5rem; border: 1px solid var(--line); }
.svc-card {
  background: var(--paper-2); padding: 2.4rem 2rem 2.6rem;
  position: relative; transition: background .4s var(--ease);
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--burgundy); transition: width .45s var(--ease);
}
.svc-card:hover { background: var(--paper); }
.svc-card:hover::before { width: 100%; }
.svc-ico { width: 40px; height: 40px; color: var(--burgundy); margin-bottom: 1.5rem; }
.svc-card h3 { font-size: 1.65rem; margin-bottom: .85rem; }
.svc-card p { font-size: .98rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.svc-card .tlink { font-size: .72rem; }

/* Expertise chips */
.exp-wrap { margin-top: 3.5rem; columns: 2; column-gap: 4rem; }
.exp-item {
  break-inside: avoid;
  display: flex; gap: 1.3rem; align-items: baseline;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line);
}
.exp-item .idx { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; color: var(--bronze); min-width: 2rem; }
.exp-item h3 { font-size: 1.35rem; }
.exp-item p { font-size: .92rem; color: var(--ink-soft); margin-top: .35rem; }

/* ============================================================
   FEATURE STRIP (dark)
   ============================================================ */
.dark {
  background: var(--burgundy-ink); color: var(--rose-dust);
  position: relative; overflow: hidden;
}
.dark .eyebrow { color: var(--bronze-soft); }
.dark h2 { color: var(--paper-2); }
.dark .lead { color: var(--rose-dust); }
.dark-crest {
  position: absolute; right: -6%; bottom: -12%; width: 40%;
  opacity: .07; pointer-events: none;
}
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; margin-top: 3.5rem; }
.value h3 { color: var(--paper-2); font-size: 1.5rem; margin-bottom: .7rem; display: flex; gap: .8rem; align-items: baseline; }
.value h3 .k { font-family: var(--sans); font-size: .72rem; letter-spacing:.14em; color: var(--bronze); }
.value p { font-size: .98rem; color: var(--rose-dust); opacity: .85; }
.value + .value { border-left: 1px solid rgba(184,154,120,.22); padding-left: 2.5rem; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3.5rem; }
.member { }
.member-photo {
  aspect-ratio: 3/4; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--cream), var(--paper));
}
.member-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(61,8,20,.55), transparent 50%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.member:hover .member-photo::after { opacity: 1; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) saturate(.9); transition: transform .6s var(--ease); }
.member:hover .member-photo img { transform: scale(1.04); }
.member-mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 4rem; color: var(--bronze); opacity: .5;
}
.member h3 { font-size: 1.5rem; margin-top: 1.2rem; }
.member .role { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); margin-top: .35rem; }
.member p { font-size: .94rem; color: var(--ink-soft); margin-top: .8rem; }

/* ============================================================
   INSIGHTS
   ============================================================ */
.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; margin-top: 3.5rem; }
.insight { display: flex; flex-direction: column; height: 100%; border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.insight .cat { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.insight .date { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; color: var(--ink-soft); float: right; }
.insight h3 { font-size: 1.55rem; margin-top: 1.1rem; line-height: 1.15; transition: color .3s var(--ease); }
.insight:hover h3 { color: var(--burgundy); }
.insight p { font-size: .96rem; color: var(--ink-soft); margin-top: .8rem; flex: 1; }
.insight .tlink { margin-top: 1.4rem; font-size: .72rem; }

/* Featured insight */
.insight-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); margin-top: 3.5rem; overflow: hidden;
}
.insight-feature .media { background: linear-gradient(160deg, var(--burgundy), var(--burgundy-ink)); position: relative; min-height: 22rem; }
.insight-feature .media .framed-crest { width: 50%; opacity: .85; }
.insight-feature .body { padding: clamp(2rem,4vw,3.5rem); display: flex; flex-direction: column; justify-content: center; }
.insight-feature h3 { font-size: clamp(1.8rem,2.6vw,2.6rem); margin: 1.1rem 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,5rem); margin-top: 3.5rem; }
.contact-info dl { display: grid; gap: 1.6rem; }
.contact-info dt { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: .4rem; }
.contact-info dd { font-size: 1.1rem; }
.contact-info dd a:hover { color: var(--burgundy); }
.contact-info .divider { height: 1px; background: var(--line); }

/* Form */
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .5rem; }
.field label { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: .95rem 1.1rem; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(128,0,32,.08);
}
.field textarea { resize: vertical; min-height: 7rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: .3rem; }

.map-embed { margin-top: 0; border: 1px solid var(--line); aspect-ratio: 16/7; width: 100%; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--burgundy); color: var(--paper-2); position: relative; overflow: hidden; text-align: center; }
.cta-band .dark-crest { opacity: .08; }
.cta-band h2 { color: var(--paper-2); max-width: 26ch; margin: 1.2rem auto 0; }
.cta-band .lead { color: var(--rose-dust); max-width: 44ch; margin: 1.4rem auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 2.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--burgundy-ink); color: var(--rose-dust); position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3.5rem,7vw,5.5rem); }
.footer-brand .fmark { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.footer-brand .fmark svg { width: 44px; }
.footer-brand .fmark .wm { font-family: var(--display); font-size: 1.7rem; color: var(--paper-2); }
.footer-brand .fmark .wm b { color: var(--bronze-soft); font-weight: 500; }
.footer-brand p { font-size: .96rem; color: var(--rose-dust); opacity: .8; max-width: 26rem; }
.footer-brand .footer-ident { line-height: 1.85; opacity: .9; }
.footer-brand .footer-ident strong { display: inline-block; margin-bottom: .15rem; font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: .01em; color: var(--paper-2); opacity: 1; }
.footer-brand .motto-mini { margin-top: 1.3rem; font-family: var(--display); font-style: italic; color: var(--rose); }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-soft); margin-bottom: 1.3rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .8rem; }
.footer-col a { font-size: .98rem; color: var(--rose-dust); opacity: .85; transition: opacity .3s var(--ease), color .3s var(--ease); }
.footer-col a:hover { opacity: 1; color: var(--paper-2); }
.footer-bottom {
  border-top: 1px solid rgba(184,154,120,.22);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: .76rem; letter-spacing: .04em; color: var(--bronze-soft);
}
.footer-bottom a:hover { color: var(--paper-2); }
.social { display: flex; gap: 1rem; }
.social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(184,154,120,.3); border-radius: 50%; transition: background .3s var(--ease), color .3s var(--ease); }
.social a:hover { background: var(--bronze); color: var(--burgundy-ink); }
.social svg { width: 15px; height: 15px; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .hero-crest { opacity: .05; }
.page-hero-inner { padding-block: clamp(3.5rem,7vw,6rem) clamp(2.5rem,5vw,4rem); position: relative; z-index: 2; max-width: 52rem; }
.page-hero h1 { margin-top: 1.2rem; }
.page-hero p { margin-top: 1.4rem; max-width: 40rem; }
.crumbs { font-family: var(--sans); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: .6rem; align-items: center; }
.crumbs a:hover { color: var(--burgundy); }
.crumbs span { color: var(--bronze); }

/* Pull quote */
.pullquote { max-width: 40rem; margin: 0 auto; text-align: center; }
.pullquote blockquote { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem,3vw,2.4rem); line-height: 1.3; color: var(--ink); }
.pullquote .mark { font-size: 3rem; color: var(--bronze); line-height: 0; }
.pullquote cite { display: block; margin-top: 1.6rem; font-family: var(--sans); font-style: normal; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
/* Pullquote on dark (burgundy) background — ensure readable contrast */
.dark .pullquote blockquote { color: var(--paper-2); }
.dark .pullquote cite { color: var(--bronze-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 60;
  right: clamp(1rem, 3vw, 2.2rem); bottom: clamp(1rem, 3vw, 2.2rem);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--burgundy); color: var(--paper-2);
  border: 1px solid var(--bronze-soft);
  box-shadow: 0 16px 34px -12px rgba(61, 8, 20, .55);
  cursor: pointer;
  opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .35s var(--ease);
}
.to-top::after {                 /* refined inner hairline ring */
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--burgundy-ink); transform: translateY(-3px); }
.to-top:active { transform: translateY(-1px) scale(.97); }
.to-top:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.to-top svg { width: 18px; height: 18px; position: relative; z-index: 1; }
@media (max-width: 460px) { .to-top { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s; transform: none; }
  .to-top.show { transform: none; }
  .to-top:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Large logo coexists with a tighter menu on laptops */
@media (max-width: 1280px) {
  .brand img { height: 68px; }
  .is-stuck .brand img { height: 54px; }
  .nav-links { gap: 1.35rem; }
  .nav-links a { font-size: .72rem; letter-spacing: .1em; }
  .nav-cta { gap: 1rem; }
  .nav-cta .btn { padding: .85em 1.25em; font-size: .72rem; }
}
/* Collapse to hamburger early so the logo can stay big */
@media (max-width: 1200px) {
  .nav { gap: 1rem; }
  .brand img { height: 58px; }
  .is-stuck .brand img { height: 48px; }
  .nav-cta { gap: .9rem; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
  }
  .site-header.menu-open .nav-links li { width: 100%; }
  .site-header.menu-open .nav-links a {
    display: block; width: 100%; padding-block: 1rem; font-size: .95rem;
    border-bottom: 1px solid var(--line);
  }
  .site-header.menu-open .nav-links li:last-child a { border-bottom: none; }
  .site-header.menu-open .nav-links a::after { content: none; }   /* no desktop hover-underline inside the mobile dropdown */
}
@media (max-width: 960px) {
  .split, .contact-grid, .insight-feature { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .svc-grid, .pillars, .team-grid, .insight-grid, .values { grid-template-columns: 1fr 1fr; }
  .values .value + .value { border-left: none; padding-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav { gap: .75rem; }
  .nav-cta { gap: .75rem; }
  .brand img { height: 74px; }
  .is-stuck .brand img { height: 60px; }
  .svc-grid, .pillars, .team-grid, .insight-grid, .values, .exp-wrap, .form .row { grid-template-columns: 1fr; columns: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 2rem; }
  /* watermark: smaller and tucked into the corner, never glued to the edge */
  img.hero-crest { width: clamp(120px, 38vw, 200px); opacity: .05; right: 1.25rem; top: 30%; translate: 0 0; }
  .framed-logo { width: 82%; }
  .insight-feature .media { min-height: 15rem; }
  .motto .shell { gap: 1.4rem; padding-block: 1.1rem; }
}
@media (max-width: 460px) {
  :root { --section: clamp(3.5rem, 12vw, 5rem); }
  .brand img { height: 64px; }
  .is-stuck .brand img { height: 56px; }
  .hero-actions, .split-actions { width: 100%; }
  .hero-actions .btn, .cta-band .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta dt { font-size: 2rem; }
  .motto span { font-size: 1.1rem; gap: 1rem; }
  .framed-tag { font-size: 1.2rem; padding: 1.1rem 1.2rem; }
  img.hero-crest { opacity: .04; }
}

/* ============================================================
   WORDPRESS THEME ADDITIONS — Stoian & Partners
   (single Sinteză article, gallery, blocks, pagination, forms)
   ============================================================ */

/* WP alignment helpers inside article body */
.aligncenter { margin-inline: auto; }
.alignright { float: right; margin: .4rem 0 1rem 1.6rem; }
.alignleft  { float: left;  margin: .4rem 1.6rem 1rem 0; }
figure { margin: 0; }

/* ---------- SINTEZĂ — single article ---------- */
.article-hero {
  position: relative; overflow: hidden;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.article-hero .hero-crest { opacity: .05; }
.article-hero-inner {
  padding-block: clamp(3rem,6vw,5rem) clamp(2rem,4vw,3rem);
  position: relative; z-index: 2; max-width: 56rem;
}
.article-hero .cat {
  font-family: var(--sans); font-weight: 600; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy);
}
.article-hero .date { color: var(--ink-soft); margin-left: .9rem; }
.article-hero h1 { margin-top: 1.2rem; font-size: clamp(2.3rem, 5vw, 4rem); }
.article-hero .lead { margin-top: 1.4rem; max-width: 42rem; }

.article-figure { margin: 0 0 0; }
.article-figure img {
  width: 100%; max-height: 30rem; object-fit: cover;
  border: 1px solid var(--line);
}

.article-wrap { display: grid; grid-template-columns: minmax(0,1fr); }
.article-body {
  max-width: 44rem; margin-inline: auto;
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.18rem); line-height: 1.78;
}
.article-body > * + * { margin-top: 1.4rem; }
.article-body h2 {
  font-family: var(--display); font-size: clamp(1.8rem,3vw,2.4rem);
  margin-top: 2.8rem; margin-bottom: .2rem; line-height: 1.1;
}
.article-body h3 {
  font-family: var(--display); font-size: clamp(1.4rem,2.2vw,1.8rem);
  margin-top: 2.2rem; line-height: 1.15;
}
.article-body p { color: var(--ink); }
.article-body a { color: var(--burgundy); text-decoration: underline; text-underline-offset: .18em; text-decoration-color: var(--bronze); }
.article-body a:hover { text-decoration-color: var(--burgundy); }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: .5rem; }
.article-body img { border: 1px solid var(--line); }
.article-body figure img { width: 100%; }
.article-body figcaption {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .04em;
  color: var(--ink-soft); margin-top: .6rem; text-align: center;
}
.article-body blockquote {
  border-left: 2px solid var(--bronze);
  padding: .2rem 0 .2rem 1.6rem; margin-block: 2rem;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.4rem,2.4vw,1.9rem); line-height: 1.3; color: var(--ink);
}
.article-body blockquote p { color: inherit; }
.article-body .wp-block-pullquote {
  border: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 2rem 0; text-align: center;
}
.article-body hr, .article-body .wp-block-separator {
  border: none; height: 1px; background: var(--line); margin-block: 2.6rem;
}

/* Gallery (optional) */
.article-body .wp-block-gallery,
.sp-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-block: 2rem; list-style: none; padding: 0;
}
.article-body .wp-block-gallery.columns-3 { grid-template-columns: repeat(3,1fr); }
.sp-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); }

/* Article footer / back link / share */
.article-foot {
  max-width: 44rem; margin: 3rem auto 0; padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center;
}

/* ---------- Sinteze archive: make cards clickable links ---------- */
a.insight { color: inherit; }
.insight-thumb {
  aspect-ratio: 16/10; overflow: hidden; margin-bottom: 1.1rem;
  background: linear-gradient(160deg, var(--burgundy), var(--burgundy-ink));
  position: relative;
}
.insight-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.insight:hover .insight-thumb img { transform: scale(1.04); }
.insight-thumb .insight-thumb-crest {
  position: absolute; inset: 0; margin: auto; width: 46%; opacity: .8;
}
.insight-grid .insight { border-top: 1px solid var(--ink); }
.insight-grid a.insight { display: flex; flex-direction: column; }

/* Category filter pills */
.cat-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.cat-filter a {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem 1.1rem; border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.cat-filter a:hover, .cat-filter a.is-active { border-color: var(--burgundy); color: var(--burgundy); }

/* ---------- Pagination ---------- */
.sp-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 4rem; flex-wrap: wrap; }
.sp-pagination .page-numbers {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .05em;
  min-width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); padding-inline: .6rem;
  transition: all .3s var(--ease);
}
.sp-pagination .page-numbers.current { background: var(--burgundy); color: var(--paper-2); border-color: var(--burgundy); }
.sp-pagination a.page-numbers:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* ---------- Form feedback (WP) ---------- */
.sp-form-feedback {
  padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size: .96rem;
  border: 1px solid var(--bronze); background: var(--paper-2); color: var(--burgundy-deep);
}
.sp-form-feedback.is-error { border-color: var(--burgundy); }
.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Featured image on team/service if present ---------- */
.member-photo img { display: block; }

/* ---------- Empty-state ---------- */
.sp-empty { text-align: center; color: var(--ink-soft); padding-block: 4rem; }

/* ---------- WP admin bar safety for sticky header ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Block editor content width parity (front) ---------- */
.article-body .alignwide { width: min(100%, 52rem); margin-inline: auto; }
.article-body .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* ---------- Lead paragraph block style (Sinteze intro) ---------- */
.is-style-lead {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
  line-height: 1.4;
  color: var(--ink-soft);
  font-style: italic;
}
.article-body .is-style-lead { margin-bottom: .4rem; }

/* Editor parity: lead style preview in the block editor */
.editor-styles-wrapper .is-style-lead {
  font-family: var(--display); font-style: italic; color: var(--ink-soft);
}
