/* ──────────────────────────────────────────────────────────────────────────
   Oficina Bisonó — Design System
   Editorial Luxury · Warm Ivory + Deep Ink + Bronze
   Fraunces (variable serif) · Geist (sans) · Geist Mono (eyebrow)
   ────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,30..100,0..1&family=Geist:wght@300..700&family=Geist+Mono:wght@400;500&display=swap');

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  /* Palette — Editorial Luxury */
  --bg:           #F7F2E9;        /* warm ivory paper */
  --bg-2:         #EFE8DB;        /* card surface, warmer */
  --bg-3:         #E6DDC9;        /* deeper tan */
  --ink:          #0E1A2D;        /* deep navy-ink */
  --ink-2:        #2A3344;        /* secondary ink */
  --ink-3:        #5C6373;        /* tertiary ink */
  --ink-4:        #8E94A1;        /* placeholder ink */
  --accent:       #9C7A3D;        /* refined bronze */
  --accent-2:     #C0A368;        /* lighter bronze */
  --accent-3:     #6F5728;        /* deep bronze */
  --hairline:     rgba(14, 26, 45, 0.10);
  --hairline-2:   rgba(14, 26, 45, 0.06);
  --ivory-on-ink: rgba(247, 242, 233, 0.92);
  --ink-on-dark:  #F7F2E9;

  /* Typography */
  --serif: 'Fraunces', 'PP Editorial New', Georgia, serif;
  --sans:  'Geist', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Scale (fluid) */
  --t-mono:   clamp(.625rem, .58rem + .25vw, .75rem);
  --t-body-s: clamp(.8125rem, .78rem + .15vw, .9375rem);
  --t-body:   clamp(.9375rem, .9rem + .25vw, 1.0625rem);
  --t-lead:   clamp(1.0625rem, 1rem + .5vw, 1.25rem);
  --t-h6:     clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --t-h5:     clamp(1.25rem, 1.15rem + .6vw, 1.625rem);
  --t-h4:     clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --t-h3:     clamp(1.875rem, 1.6rem + 1.6vw, 2.75rem);
  --t-h2:     clamp(2.25rem, 1.8rem + 2.6vw, 3.875rem);
  --t-h1:     clamp(2.875rem, 2rem + 4.5vw, 5.5rem);
  --t-display:clamp(3.5rem, 2.2rem + 6vw, 7rem);

  /* Spacing */
  --page-x:   clamp(1.25rem, 1rem + 2vw, 2.5rem);
  --section-y: clamp(5rem, 3rem + 7vw, 9rem);
  --section-y-lg: clamp(7rem, 4rem + 9vw, 12rem);

  /* Radii */
  --r-xs: .5rem;
  --r-sm: .75rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-2xl: 2.5rem;
  --r-pill: 999px;

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:cubic-bezier(0.32, 0.72, 0, 1);
  --ease-haptic:cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast:    220ms;
  --d-med:     440ms;
  --d-slow:    760ms;
  --d-x-slow:  1100ms;

  /* Shadow / glow */
  --shadow-soft:   0 1px 1px rgba(14,26,45,0.04), 0 12px 30px -16px rgba(14,26,45,0.18);
  --shadow-card:   0 1px 1px rgba(14,26,45,0.04), 0 22px 48px -28px rgba(14,26,45,0.25);
  --shadow-lift:   0 1px 1px rgba(14,26,45,0.04), 0 40px 80px -40px rgba(14,26,45,0.35);
  --inset-hl:      inset 0 1px 0 rgba(255,255,255,0.45);
  --inset-hl-dark: inset 0 1px 0 rgba(255,255,255,0.10);

  /* Container */
  --max:  76rem;
  --max-wide: 86rem;
  --max-prose: 42rem;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
}

/* Film-grain overlay — fixed, pointer-events:none */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 70;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.045;
  mix-blend-mode: multiply;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h1 { font-size: var(--t-h1); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: var(--t-h2); line-height: 1.0; letter-spacing: -0.04em; }
h3 { font-size: var(--t-h3); line-height: 1.04; letter-spacing: -0.035em; }
h4 { font-size: var(--t-h4); line-height: 1.1; }
h5 { font-size: var(--t-h5); line-height: 1.15; }
h6 { font-size: var(--t-h6); line-height: 1.2; }

.display {
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 320;
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

p { font-family: var(--sans); color: var(--ink-2); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }
.ink-3 { color: var(--ink-3); }

em, .ital { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

/* Eyebrow tag */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.25rem; height: 1px;
  background: var(--accent);
}
.eyebrow.center::before { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: .4rem .75rem;
  border-radius: var(--r-pill);
  background: rgba(14,26,45,0.04);
  border: 1px solid var(--hairline-2);
  color: var(--ink-2);
  font-weight: 500;
}
.pill .dot { width: 5px; height: 5px; border-radius: 99px; background: var(--accent); display:inline-block; }

/* PLACEHOLDER ribbon */
.placeholder-mark {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: .25rem .5rem;
  border-radius: var(--r-pill);
  background: rgba(156, 122, 61, 0.10);
  color: var(--accent-3);
  border: 1px dashed rgba(156, 122, 61, 0.35);
}

/* ── Layout primitives ───────────────────────────────────────────────────── */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--page-x); width: 100%; }
.container-wide { max-width: var(--max-wide); margin-inline: auto; padding-inline: var(--page-x); width: 100%; }
.container-prose { max-width: var(--max-prose); margin-inline: auto; padding-inline: var(--page-x); width: 100%; }

.section { padding-block: var(--section-y); position: relative; }
.section-lg { padding-block: var(--section-y-lg); position: relative; }

.section-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head h2 + p { margin-top: 1.25rem; max-width: 38rem; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  width: 100%;
}

/* ── Double-Bezel Card ───────────────────────────────────────────────────── */
.bezel {
  position: relative;
  background: rgba(14,26,45,0.025);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  padding: 6px;
  box-shadow: var(--shadow-soft);
}
.bezel > .bezel-core {
  background: var(--bg);
  border-radius: calc(var(--r-2xl) - 7px);
  box-shadow: var(--inset-hl);
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.bezel.dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.bezel.dark > .bezel-core { background: #0E1A2D; box-shadow: var(--inset-hl-dark); color: var(--ivory-on-ink); }
.bezel.dark h1,.bezel.dark h2,.bezel.dark h3,.bezel.dark h4,.bezel.dark h5,.bezel.dark h6 { color: #FBF6EC; }
.bezel.dark p { color: rgba(247,242,233,0.78); }

.card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform var(--d-med) var(--ease-haptic), box-shadow var(--d-med) var(--ease-haptic), border-color var(--d-med) var(--ease-haptic);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: rgba(14,26,45,0.18); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: var(--t-body-s); font-weight: 500;
  letter-spacing: -0.005em;
  padding: .85rem 1.1rem .85rem 1.35rem;
  border-radius: var(--r-pill);
  transition: transform var(--d-fast) var(--ease-spring), background-color var(--d-med) var(--ease-out), color var(--d-med) var(--ease-out), box-shadow var(--d-med) var(--ease-out);
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: scale(0.98); }
.btn .icon-pill {
  width: 1.85rem; height: 1.85rem; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--d-med) var(--ease-haptic), background-color var(--d-med) var(--ease-out);
}
.btn .icon-pill svg { width: 14px; height: 14px; }
.btn:hover .icon-pill { transform: translate(2px, -1px) scale(1.06); }

.btn-primary { background: var(--ink); color: var(--ink-on-dark); box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 14px 30px -14px rgba(14,26,45,0.55); }
.btn-primary .icon-pill { background: rgba(255,255,255,0.14); }
.btn-primary:hover { background: #1B2A42; }
.btn-primary:hover .icon-pill { background: rgba(255,255,255,0.22); }

.btn-accent { background: var(--accent); color: #FBF6EC; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 30px -14px rgba(156,122,61,0.5); }
.btn-accent .icon-pill { background: rgba(255,255,255,0.18); }
.btn-accent:hover { background: var(--accent-3); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost .icon-pill { background: rgba(14,26,45,0.06); }
.btn-ghost:hover { background: rgba(14,26,45,0.04); border-color: rgba(14,26,45,0.18); }

.btn-light { background: rgba(255,255,255,0.10); color: var(--ink-on-dark); border: 1px solid rgba(255,255,255,0.14); }
.btn-light .icon-pill { background: rgba(255,255,255,0.14); }
.btn-light:hover { background: rgba(255,255,255,0.16); }

.btn-sm { padding: .65rem .85rem .65rem 1rem; font-size: 13px; }
.btn-sm .icon-pill { width: 1.5rem; height: 1.5rem; }
.btn-sm .icon-pill svg { width: 12px; height: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 500; font-size: var(--t-body-s);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  transition: color var(--d-med) var(--ease-out), border-color var(--d-med) var(--ease-out), gap var(--d-med) var(--ease-haptic);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--d-med) var(--ease-haptic); }
.link-arrow:hover { gap: .85rem; border-color: var(--accent); color: var(--accent-3); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ── Navigation (Fluid Island) ───────────────────────────────────────────── */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  padding-top: 1.25rem;
  z-index: 60;
  pointer-events: none;
  transition: transform var(--d-slow) var(--ease-spring);
}
.nav {
  pointer-events: auto;
  margin-inline: auto;
  width: max-content; max-width: calc(100% - 2rem);
  display: flex; align-items: center; gap: .25rem;
  padding: .55rem .55rem .55rem 1.25rem;
  border-radius: var(--r-pill);
  background: rgba(247, 242, 233, 0.70);
  border: 1px solid var(--hairline);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 1px rgba(14,26,45,0.04), 0 18px 40px -22px rgba(14,26,45,0.30);
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-right: 1rem;
  margin-right: .25rem;
  border-right: 1px solid var(--hairline);
}
.brand .mark {
  width: 1.6rem; height: 1.6rem;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--accent-3), var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #FBF6EC;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 10px -4px rgba(156,122,61,.55);
}
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--ink-2);
  padding: .55rem .85rem;
  border-radius: var(--r-pill);
  transition: color var(--d-med) var(--ease-out), background-color var(--d-med) var(--ease-out);
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--ink); background: rgba(14,26,45,0.05); }
.nav-links a.active { color: var(--ink); background: rgba(14,26,45,0.06); }
.nav-cta { margin-left: .35rem; }

.nav-toggle {
  display: none;
  width: 2.4rem; height: 2.4rem; border-radius: 99px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; background: var(--ink-on-dark);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--d-med) var(--ease-haptic), opacity var(--d-fast) var(--ease-out);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
.nav-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(247, 242, 233, 0.86);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  opacity: 0; pointer-events: none;
  transition: opacity var(--d-med) var(--ease-out);
  z-index: 55;
  display: flex; align-items: center; justify-content: center;
  padding: var(--page-x);
}
.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
.nav-overlay-inner { text-align: left; width: 100%; max-width: 30rem; }
.nav-overlay-inner a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 360;
  letter-spacing: -0.04em;
  line-height: 1.05;
  padding: .35rem 0;
  color: var(--ink);
  opacity: 0; transform: translateY(40px) ;
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-spring);
}
.nav-open .nav-overlay-inner a { opacity: 1; transform: translateY(0); }
.nav-open .nav-overlay-inner a:nth-child(1) { transition-delay: 120ms; }
.nav-open .nav-overlay-inner a:nth-child(2) { transition-delay: 170ms; }
.nav-open .nav-overlay-inner a:nth-child(3) { transition-delay: 220ms; }
.nav-open .nav-overlay-inner a:nth-child(4) { transition-delay: 270ms; }
.nav-open .nav-overlay-inner a:nth-child(5) { transition-delay: 320ms; }
.nav-open .nav-overlay-inner a:nth-child(6) { transition-delay: 370ms; }
.nav-overlay-inner em { color: var(--accent); font-style: italic; }
.nav-overlay-cta { margin-top: 2rem; opacity: 0; transform: translateY(20px); transition: all var(--d-slow) var(--ease-out) 450ms; }
.nav-open .nav-overlay-cta { opacity: 1; transform: translateY(0); }

/* When nav hidden on scroll-down */
.nav-hidden .nav-wrap { transform: translateY(-110%); }

@media (max-width: 880px) {
  .nav { padding: .45rem .45rem .45rem 1rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .brand { padding-right: .25rem; border-right: none; margin-right: 0; }
}

/* ── Reveal (scroll-in) ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity var(--d-x-slow) var(--ease-out), transform var(--d-x-slow) var(--ease-spring), filter var(--d-x-slow) var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 9rem;
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  left: -10%; top: -20%;
  width: 70%; height: 70%;
  background: radial-gradient(circle at center, rgba(192, 163, 104, 0.22), transparent 60%);
  filter: blur(40px);
}
.hero-bg::after {
  content: "";
  position: absolute;
  right: -15%; bottom: -25%;
  width: 80%; height: 80%;
  background: radial-gradient(circle at center, rgba(14, 26, 45, 0.16), transparent 60%);
  filter: blur(50px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  align-items: end;
}
.hero h1 { font-weight: 320; }
.hero h1 em { color: var(--accent); font-style: italic; font-weight: 360; }
.hero-eyebrow { margin-bottom: 2rem; }
.hero-sub { margin-top: 2rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

.hero-side { position: relative; }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-meta .meta {
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}
.hero-meta .meta .label { font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .2em; color: var(--ink-3); margin-bottom: .5rem; }
.hero-meta .meta .val { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); font-weight: 320; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.hero-meta .meta .sub { font-size: 13px; color: var(--ink-3); margin-top: .35rem; }

.hero-portrait {
  margin-top: 1.5rem;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(192,163,104,0.30), transparent 60%),
    linear-gradient(160deg, #1a2a44 0%, #0E1A2D 60%, #050C1A 100%);
  box-shadow: var(--shadow-card);
  display: flex; align-items: flex-end; padding: 1.25rem;
}
.hero-portrait .badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(247,242,233,0.8);
  padding: .4rem .65rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.hero-portrait .badge .dot { width: 6px; height: 6px; background: var(--accent-2); border-radius: 99px; }

.hero-marquee {
  margin-top: clamp(4rem, 3rem + 3vw, 6rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 3rem;
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 11px;
  color: var(--ink-3);
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-marquee-track { display: inline-flex; gap: 3rem; animation: marquee 38s linear infinite; }
.hero-marquee span { display: inline-flex; align-items: center; gap: 3rem; }
.hero-marquee span::after { content: "✦"; color: var(--accent); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-side { order: -1; }
  .hero-portrait { aspect-ratio: 16 / 12; margin-top: 1rem; }
}

/* ── Stats Strip ─────────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.stats .stat {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
}
.stats .stat .val { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem); font-weight: 320; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.stats .stat .label { margin-top: .65rem; font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .22em; color: var(--ink-3); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Practice Areas Bento ─────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}
.bento .tile {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1.2rem + .8vw, 2.25rem);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-med) var(--ease-haptic), border-color var(--d-med) var(--ease-out), box-shadow var(--d-med) var(--ease-out);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px;
}
.bento .tile:hover { transform: translateY(-3px); border-color: rgba(14,26,45,0.20); box-shadow: var(--shadow-card); }
.bento .tile .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--ink-4);
  text-transform: uppercase;
}
.bento .tile h3 { font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); font-weight: 340; margin-top: 1rem; }
.bento .tile h3 em { color: var(--accent); font-style: italic; font-weight: 360; }
.bento .tile p { margin-top: .9rem; color: var(--ink-2); font-size: var(--t-body-s); max-width: 32rem; }
.bento .tile .area-statutes {
  margin-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.bento .tile .statute {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  padding: .3rem .55rem;
  border-radius: var(--r-pill);
  background: rgba(14,26,45,0.04);
  border: 1px solid var(--hairline-2);
}
.bento .tile .icon-frame {
  width: 2.75rem; height: 2.75rem; border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-3);
  box-shadow: var(--inset-hl);
  align-self: flex-start;
}
.bento .tile .icon-frame svg { width: 22px; height: 22px; stroke-width: 1.25; }

.bento .tile .tile-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px dashed var(--hairline);
}
.bento .tile .read { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: .5rem; }
.bento .tile .arrow-circle {
  width: 2rem; height: 2rem; border-radius: 99px;
  background: rgba(14,26,45,0.04);
  border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform var(--d-med) var(--ease-haptic), background-color var(--d-med) var(--ease-out);
}
.bento .tile:hover .arrow-circle { transform: translate(2px, -2px); background: var(--ink); color: var(--bg); }

/* default spans */
.bento .tile { grid-column: span 4; }
.bento .tile.wide { grid-column: span 6; }
.bento .tile.tall { grid-row: span 2; }
.bento .tile.full { grid-column: span 12; }
.bento .tile.feature {
  grid-column: span 6;
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(192,163,104,0.18), transparent 60%),
    linear-gradient(160deg, #1a2a44 0%, #0E1A2D 50%, #050C1A 100%);
  color: var(--ivory-on-ink);
  border-color: rgba(255,255,255,0.08);
}
.bento .tile.feature h3 { color: #FBF6EC; }
.bento .tile.feature p { color: rgba(247,242,233,0.78); }
.bento .tile.feature .icon-frame { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: var(--accent-2); box-shadow: var(--inset-hl-dark); }
.bento .tile.feature .arrow-circle { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.14); color: var(--ivory-on-ink); }
.bento .tile.feature .statute { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: rgba(247,242,233,0.78); }
.bento .tile.feature .read, .bento .tile.feature .num { color: rgba(247,242,233,0.60); }
.bento .tile.feature .tile-bottom { border-top-color: rgba(255,255,255,0.10); }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .tile, .bento .tile.wide, .bento .tile.feature { grid-column: span 3; }
  .bento .tile.full { grid-column: span 6; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; gap: .75rem; }
  .bento .tile, .bento .tile.wide, .bento .tile.feature, .bento .tile.full { grid-column: span 1; }
}

/* ── Why Choose (Pillars) ────────────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.pillars .pillar {
  padding: 2rem 1.75rem 2.25rem;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.pillars .pillar::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .6;
}
.pillars .pillar .pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.pillars .pillar h4 { margin-top: 1rem; font-size: var(--t-h5); font-weight: 360; }
.pillars .pillar p { margin-top: .9rem; color: var(--ink-2); font-size: var(--t-body-s); }
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.testimonials .quote {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  min-height: 280px;
}
.testimonials .quote p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  font-weight: 360;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
}
.testimonials .quote .open-quote {
  font-family: var(--serif); font-style: italic;
  color: var(--accent);
  font-size: 3rem; line-height: .5;
  margin-bottom: 1rem;
}
.testimonials .quote .attrib {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--hairline);
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center;
}
.testimonials .quote .attrib strong { font-weight: 500; color: var(--ink); }
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }

/* ── Big CTA / Closing band ──────────────────────────────────────────────── */
.cta-band {
  position: relative;
  border-radius: var(--r-2xl);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1rem + 3vw, 4.5rem);
  background:
    radial-gradient(80% 80% at 80% 0%, rgba(192,163,104,0.2), transparent 60%),
    radial-gradient(60% 60% at 10% 100%, rgba(192,163,104,0.10), transparent 60%),
    linear-gradient(160deg, #1a2a44 0%, #0E1A2D 60%, #050C1A 100%);
  color: var(--ivory-on-ink);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06; pointer-events: none;
}
.cta-band .eyebrow { color: rgba(247,242,233,0.72); }
.cta-band .eyebrow::before { background: var(--accent-2); }
.cta-band h2 { color: #FBF6EC; max-width: 22ch; }
.cta-band h2 em { color: var(--accent-2); font-style: italic; }
.cta-band p { color: rgba(247,242,233,0.78); max-width: 38rem; margin-top: 1.25rem; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--bg);
  padding-top: clamp(4rem, 3rem + 3vw, 6rem);
  padding-bottom: 3rem;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 { font-size: var(--t-h5); font-weight: 340; }
.footer-brand p { margin-top: 1rem; font-size: var(--t-body-s); max-width: 26rem; color: var(--ink-3); }
.footer-col h6 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-3); font-weight: 500; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-col a { font-size: 14px; color: var(--ink-2); transition: color var(--d-med) var(--ease-out); }
.footer-col a:hover { color: var(--accent-3); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--ink-3);
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom .demo-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .2em;
  padding: .4rem .7rem; border-radius: var(--r-pill);
  background: rgba(156, 122, 61, 0.12);
  color: var(--accent-3);
  border: 1px dashed rgba(156, 122, 61, 0.40);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ── Page Headers (interior pages) ───────────────────────────────────────── */
.page-head {
  position: relative;
  padding-top: 9rem;
  padding-bottom: clamp(3rem, 2rem + 2vw, 4.5rem);
  overflow: hidden;
}
.page-head .eyebrow { margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.5rem, 1.8rem + 4vw, 4.75rem); max-width: 16ch; }
.page-head h1 em { color: var(--accent); font-style: italic; }
.page-head p.lead { margin-top: 1.75rem; max-width: 40rem; }
.page-head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

/* ── About Page ──────────────────────────────────────────────────────────── */
.firm-narrative {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 1rem + 3vw, 5rem);
  align-items: start;
}
.firm-narrative .meta-col { position: sticky; top: 7rem; }
.firm-narrative .meta-col .pill { margin-bottom: 1rem; }
.firm-narrative .meta-col .meta-list {
  margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.firm-narrative .meta-col .meta-list .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--hairline); }
.firm-narrative .meta-col .meta-list .row:last-child { border-bottom: none; padding-bottom: 0; }
.firm-narrative .meta-col .meta-list .label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.firm-narrative .meta-col .meta-list .val { font-family: var(--serif); font-size: 1.05rem; font-weight: 380; color: var(--ink); text-align: right; }
.firm-narrative .prose-col p { font-size: var(--t-body); line-height: 1.7; color: var(--ink-2); margin-bottom: 1.5rem; }
.firm-narrative .prose-col p:first-of-type::first-letter {
  font-family: var(--serif); font-style: italic; font-weight: 320;
  float: left; font-size: 4.5em; line-height: .85; margin-right: .15em; margin-top: .1em;
  color: var(--accent);
}
.firm-narrative .prose-col blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 360;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem);
  line-height: 1.35; letter-spacing: -0.02em;
  margin: 2.5rem 0; padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
}
@media (max-width: 880px) {
  .firm-narrative { grid-template-columns: 1fr; }
  .firm-narrative .meta-col { position: static; }
}

.attorney-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.attorney {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  align-items: start;
}
.attorney-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(80% 80% at 50% 20%, rgba(192,163,104,0.30), transparent 60%),
    linear-gradient(160deg, #1a2a44 0%, #0E1A2D 60%, #050C1A 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 1rem;
}
.attorney-portrait .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 320;
  font-size: clamp(3rem, 2rem + 3vw, 5rem); color: rgba(247,242,233,0.18);
  letter-spacing: -0.04em;
}
.attorney-portrait .badge { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(247,242,233,0.8); padding: .35rem .65rem; border-radius: var(--r-pill); background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(8px); z-index: 1; }
.attorney-body .name { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 340; letter-spacing: -0.03em; }
.attorney-body .title { margin-top: .35rem; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-3); }
.attorney-body .bio { margin-top: 1.25rem; color: var(--ink-2); font-size: var(--t-body-s); line-height: 1.7; }
.attorney-body .bio p + p { margin-top: .85rem; }
.attorney-body .focus { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--hairline); }
.attorney-body .focus h6 { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: .6rem; }
.attorney-body .focus .focus-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.attorney-body .focus .focus-tags span { font-size: 11.5px; font-family: var(--sans); padding: .35rem .65rem; border-radius: var(--r-pill); background: rgba(14,26,45,0.04); border: 1px solid var(--hairline-2); color: var(--ink-2); }
.attorney-body .edu { margin-top: 1.25rem; }
.attorney-body .edu ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.attorney-body .edu li { font-size: 13.5px; color: var(--ink-2); padding-left: 1rem; position: relative; }
.attorney-body .edu li::before { content: "—"; color: var(--accent); position: absolute; left: 0; }
@media (max-width: 720px) {
  .attorney { grid-template-columns: 1fr; }
  .attorney-portrait { aspect-ratio: 5/4; }
}

/* ── Practice Areas (detail page) ────────────────────────────────────────── */
.area {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 1rem + 3vw, 5rem);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.area:last-child { border-bottom: none; }
.area .area-num {
  font-family: var(--serif); font-style: italic; font-weight: 320;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}
.area h3 { margin-top: 1rem; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.625rem); font-weight: 340; }
.area .area-headline { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); font-weight: 360; color: var(--accent-3); max-width: 24ch; line-height: 1.4; }
.area .area-prose p { color: var(--ink-2); font-size: var(--t-body); line-height: 1.7; }
.area .area-prose p + p { margin-top: 1rem; }
.area .area-prose .statutes { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px dashed var(--hairline); }
.area .area-prose .statutes h6 { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: .85rem; }
.area .area-prose .statutes .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.area .area-prose .statutes .chip { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .65rem; border-radius: var(--r-pill); background: rgba(156,122,61,0.10); color: var(--accent-3); border: 1px solid rgba(156,122,61,0.20); }
@media (max-width: 880px) {
  .area { grid-template-columns: 1fr; }
}

/* ── FAQ Accordion ───────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--d-med) var(--ease-out), box-shadow var(--d-med) var(--ease-out), background-color var(--d-med) var(--ease-out);
}
.faq-item:hover { border-color: rgba(14,26,45,0.18); }
.faq-item.open { box-shadow: var(--shadow-soft); border-color: rgba(14,26,45,0.18); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  font-family: var(--serif); font-size: clamp(1.05rem, 1rem + .4vw, 1.375rem);
  font-weight: 360; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--ink);
}
.faq-q .plus {
  flex: 0 0 auto;
  width: 2.25rem; height: 2.25rem; border-radius: 99px;
  background: rgba(14,26,45,0.05);
  border: 1px solid var(--hairline);
  position: relative;
  transition: transform var(--d-med) var(--ease-haptic), background-color var(--d-med) var(--ease-out);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform var(--d-med) var(--ease-haptic);
}
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .plus { background: var(--ink); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after { background: var(--bg); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-med) var(--ease-haptic);
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a .body {
  padding: 0 1.75rem 1.75rem;
  color: var(--ink-2); font-size: var(--t-body); line-height: 1.7;
  max-width: 56ch;
}
.faq-a .body .placeholder-mark { margin-top: 1rem; }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.5rem);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform var(--d-med) var(--ease-haptic), box-shadow var(--d-med) var(--ease-out), border-color var(--d-med) var(--ease-out);
  position: relative; overflow: hidden;
  min-height: 320px;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: rgba(14,26,45,0.18); }
.blog-card .blog-meta { display: flex; gap: 1rem; align-items: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-3); }
.blog-card .blog-meta .cat { color: var(--accent-3); }
.blog-card h3 { margin-top: 1.25rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 340; line-height: 1.15; }
.blog-card p { margin-top: 1rem; color: var(--ink-2); font-size: var(--t-body-s); }
.blog-card .blog-bottom { margin-top: auto; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Blog post (article) */
.post-head { padding-top: 9rem; padding-bottom: 2.5rem; }
.post-head .post-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 1.25rem; display: inline-block; }
.post-head h1 { font-size: clamp(2.25rem, 1.7rem + 3vw, 4rem); font-weight: 340; max-width: 22ch; }
.post-head .post-meta { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); display: flex; gap: 2rem; font-size: 13px; color: var(--ink-3); }
.post-body { padding-bottom: 4rem; }
.post-body p, .post-body li { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.post-body p + p { margin-top: 1.25rem; }
.post-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); margin-top: 3rem; margin-bottom: 1.25rem; font-weight: 340; }
.post-body h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin-top: 2rem; margin-bottom: 1rem; font-weight: 380; }
.post-body ul, .post-body ol { margin: 1rem 0 1rem 1.25rem; }
.post-body li + li { margin-top: .5rem; }
.post-body blockquote { font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1.4; padding-left: 1.5rem; border-left: 2px solid var(--accent); margin: 2rem 0; color: var(--ink); }

/* ── Contact Page ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  align-items: start;
}
.locations { display: flex; flex-direction: column; gap: 1.25rem; }
.location-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.location-card .loc-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 1rem; }
.location-card h4 { font-size: var(--t-h5); font-weight: 360; }
.location-card .loc-addr { margin-top: 1rem; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.location-card .loc-rows { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--hairline); display: flex; flex-direction: column; gap: .75rem; font-size: 13.5px; color: var(--ink-2); }
.location-card .loc-rows .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.location-card .loc-rows .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.location-card .loc-rows .val { text-align: right; color: var(--ink); }

.inquiry-form {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem);
  box-shadow: var(--shadow-soft);
}
.inquiry-form h4 { font-size: var(--t-h5); font-weight: 360; }
.inquiry-form p.helper { margin-top: .75rem; font-size: 14px; color: var(--ink-3); }
.form-row { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.5rem; }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row.split > div { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.form-row input, .form-row textarea, .form-row select {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--d-med) var(--ease-out), background-color var(--d-med) var(--ease-out);
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-actions { margin-top: 1.75rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.form-disclaimer { margin-top: 1.25rem; font-size: 12px; color: var(--ink-3); line-height: 1.55; padding: 1rem; background: rgba(14,26,45,0.03); border: 1px dashed var(--hairline); border-radius: var(--r-md); }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Chat Widget ─────────────────────────────────────────────────────────── */
.chat-launcher {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 50;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .65rem .75rem .65rem 1.15rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--ink-on-dark);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 24px 50px -20px rgba(14,26,45,0.55);
  font-size: 13.5px; font-weight: 500;
  transition: transform var(--d-med) var(--ease-haptic), background-color var(--d-med) var(--ease-out);
}
.chat-launcher:hover { background: #1B2A42; transform: translateY(-2px); }
.chat-launcher:active { transform: scale(.98); }
.chat-launcher .pulse {
  width: 8px; height: 8px; border-radius: 99px; background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(192,163,104,0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.chat-launcher .icon-pill { width: 1.7rem; height: 1.7rem; background: rgba(255,255,255,0.14); }
.chat-launcher .icon-pill svg { width: 12px; height: 12px; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(192,163,104,0.55); }
  100% { box-shadow: 0 0 0 14px rgba(192,163,104,0); }
}

.chat-panel {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(640px, calc(100dvh - 2rem));
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: 0 1px 1px rgba(14,26,45,0.04), 0 60px 100px -40px rgba(14,26,45,0.4);
  overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.98); pointer-events: none;
  transition: opacity var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-spring);
  z-index: 51;
}
.chat-open .chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-open .chat-launcher { opacity: 0; transform: translateY(20px); pointer-events: none; }

.chat-head {
  padding: 1.15rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(192,163,104,0.10), transparent 60%),
    var(--bg);
}
.chat-head .ident { display: flex; align-items: center; gap: .75rem; }
.chat-head .ident .avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 10px;
  background: linear-gradient(150deg, var(--accent-3), var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #FBF6EC;
  font-family: var(--serif); font-style: italic; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.chat-head .name { font-family: var(--serif); font-size: 1.05rem; font-weight: 380; line-height: 1; }
.chat-head .role { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: .25rem; }
.chat-head .close {
  width: 2rem; height: 2rem; border-radius: 99px;
  background: rgba(14,26,45,0.06); display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background-color var(--d-med) var(--ease-out);
}
.chat-head .close:hover { background: rgba(14,26,45,0.12); }

.chat-disclaimer {
  padding: .75rem 1.25rem;
  background: rgba(156,122,61,0.08);
  border-bottom: 1px solid var(--hairline);
  font-size: 11.5px; line-height: 1.45;
  color: var(--accent-3);
  display: flex; gap: .5rem; align-items: flex-start;
}
.chat-disclaimer svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.chat-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  display: flex; flex-direction: column; gap: 1rem;
  scroll-behavior: smooth;
}
.chat-msg { max-width: 88%; }
.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 14px 14px 14px 4px;
  padding: .85rem 1rem;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
}
.chat-msg.bot strong { color: var(--ink); font-weight: 500; }
.chat-msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--ink-on-dark);
  border-radius: 14px 14px 4px 14px;
  padding: .85rem 1rem;
  font-size: 14px; line-height: 1.5;
}
.chat-msg.bot.deferral {
  background: linear-gradient(180deg, rgba(156,122,61,0.10), rgba(156,122,61,0.04));
  border-color: rgba(156,122,61,0.30);
}
.chat-typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px; align-items: center;
  padding: .75rem .95rem; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 14px 14px 14px 4px;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 99px; background: var(--ink-3);
  animation: typing 1.2s var(--ease-in-out) infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 150ms; }
.chat-typing span:nth-child(3) { animation-delay: 300ms; }
@keyframes typing {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.chat-suggestions {
  padding: 0 1.25rem 1rem;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.chat-suggestions .chip {
  font-size: 12.5px;
  padding: .55rem .85rem;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--d-med) var(--ease-out), border-color var(--d-med) var(--ease-out), transform var(--d-fast) var(--ease-spring);
  display: inline-flex; align-items: center; gap: .35rem;
  text-align: left;
}
.chat-suggestions .chip:hover { background: var(--bg-2); border-color: rgba(14,26,45,0.20); }
.chat-suggestions .chip:active { transform: scale(.97); }
.chat-suggestions .chip.warn { color: var(--accent-3); border-color: rgba(156,122,61,0.30); background: rgba(156,122,61,0.06); }
.chat-suggestions .chip svg { width: 11px; height: 11px; opacity: .6; }

.chat-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
  display: flex; gap: .5rem; align-items: center;
}
.chat-foot .input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  padding: .65rem .85rem;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-4);
  pointer-events: none;
}
.chat-foot .demo-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); padding: 0 .5rem; }
.chat-foot .send {
  width: 2rem; height: 2rem; border-radius: 99px;
  background: var(--ink); color: var(--ink-on-dark);
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* small handoff card inside chat */
.chat-handoff {
  align-self: stretch;
  margin-top: .25rem;
  padding: 1rem;
  border: 1px dashed rgba(156,122,61,0.45);
  background: rgba(156,122,61,0.08);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: .5rem;
}
.chat-handoff .h { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-3); }
.chat-handoff .row { display: flex; align-items: center; gap: .6rem; font-size: 13px; color: var(--ink); }
.chat-handoff .row svg { width: 14px; height: 14px; color: var(--accent-3); }
.chat-handoff .h-actions { display: flex; gap: .4rem; margin-top: .25rem; flex-wrap: wrap; }
.chat-handoff .h-actions a {
  font-size: 12px; font-weight: 500;
  padding: .5rem .8rem;
  border-radius: var(--r-pill);
  background: var(--ink); color: var(--ink-on-dark);
}
.chat-handoff .h-actions a.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }

@media (max-width: 480px) {
  .chat-panel { right: .5rem; bottom: .5rem; width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  .chat-launcher { right: .75rem; bottom: .75rem; }
}

/* ── A11y ────────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
