/* ================================================================
   FLAMBARD WILLIAMS FAMILY OFFICE
   Design system & global styles
   ================================================================ */

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

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:              #0E0D0B;
  --bg-elevated:     #16140F;
  --bg-subtle:       #1C1A14;
  --bg-overlay:      rgba(14, 13, 11, 0.85);

  /* Text */
  --ivory:           #EAE1CC;
  --cream:           #C8C0A8;
  --muted:           #8B8474;
  --faint:           #5A5648;

  /* Accent */
  --gold:            #B89B5E;
  --gold-bright:     #D4B978;
  --gold-deep:       #8C7642;

  /* Lines */
  --hairline:        rgba(234, 225, 204, 0.09);
  --hairline-strong: rgba(234, 225, 204, 0.18);
  --hairline-gold:   rgba(184, 155, 94, 0.32);

  /* Type */
  --serif:  'Cormorant Garamond', 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --container:       1280px;
  --container-text:  720px;
  --container-wide:  1440px;

  /* Motion */
  --ease:            cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Background grain — subtle film grain across the whole site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.02;
  color: var(--ivory);
}
.display em { font-style: italic; color: var(--gold); font-weight: 300; }

.h-xxl { font-size: clamp(3.2rem, 8.5vw, 7.5rem); }
.h-xl  { font-size: clamp(2.6rem, 5.8vw, 5rem); }
.h-lg  { font-size: clamp(2rem, 4vw, 3.4rem); }
.h-md  { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.h-sm  { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.45;
  color: var(--ivory);
  max-width: 56ch;
}
.lede em { font-style: italic; color: var(--gold); }

.body { font-size: 1rem; line-height: 1.75; color: var(--cream); max-width: 62ch; }
.body p + p { margin-top: 1.1em; }
.body strong { color: var(--ivory); font-weight: 500; }

.small { font-size: 0.86rem; line-height: 1.6; color: var(--muted); }
.label { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ---------- Layout ---------- */
.container       { width: 100%; max-width: var(--container);      margin: 0 auto; padding: 0 2rem; }
.container-text  { width: 100%; max-width: var(--container-text); margin: 0 auto; padding: 0 2rem; }
.container-wide  { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 2rem; }

.section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }
.section-tight { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.split { display: grid; grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
@media (max-width: 820px) {
  .split, .split-even { grid-template-columns: 1fr; gap: 2rem; }
}

.stack-sm > * + * { margin-top: 0.75rem; }
.stack-md > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
.stack-xl > * + * { margin-top: 4rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  border: 1px solid var(--hairline-strong);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--bg); border-color: var(--gold); }
.btn:hover::before { transform: translateX(0); }
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-gold {
  color: var(--bg);
  border-color: var(--gold);
}
.btn-gold::before { transform: translateX(0); background: var(--gold); }
.btn-gold:hover { color: var(--ivory); border-color: var(--gold-bright); }
.btn-gold:hover::before { transform: translateX(101%); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-bottom: 0.4rem;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.5s var(--ease);
}
.link:hover { color: var(--gold-bright); }
.link:hover::after { transform: scaleX(0); transform-origin: right; }
.link .arrow { transition: transform 0.5s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 13, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem 0;
  border-bottom-color: var(--hairline);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--ivory); }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-mark .ring { stroke: var(--gold); }
.brand-mark .letter { fill: var(--ivory); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.brand-text .tag {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.4s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ivory); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { padding: 0.7rem 1.2rem; font-size: 0.7rem; }

/* Hamburger menu (always visible, replaces horizontal nav) */
.nav { display: none !important; }
.nav-cta-wrap { display: none !important; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ivory);
  transition: width 0.4s var(--ease), transform 0.5s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}
.menu-toggle:hover span:nth-child(1) { width: 16px; }
.menu-toggle:hover span:nth-child(3) { width: 18px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* Fullscreen overlay menu */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(11, 10, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
  padding: 2rem;
}
.menu-open .overlay-menu { opacity: 1; pointer-events: auto; }
.overlay-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.overlay-menu nav a {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  color: var(--ivory);
  letter-spacing: -0.012em;
  line-height: 1.2;
  position: relative;
  padding: 0.3rem 0;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), color 0.4s var(--ease);
}
.menu-open .overlay-menu nav a { opacity: 1; transform: translateY(0); }
.menu-open .overlay-menu nav a:nth-child(1) { transition-delay: 0.15s; }
.menu-open .overlay-menu nav a:nth-child(2) { transition-delay: 0.22s; }
.menu-open .overlay-menu nav a:nth-child(3) { transition-delay: 0.29s; }
.menu-open .overlay-menu nav a:nth-child(4) { transition-delay: 0.36s; }
.menu-open .overlay-menu nav a:nth-child(5) { transition-delay: 0.43s; }
.menu-open .overlay-menu nav a:nth-child(6) { transition-delay: 0.50s; }
.overlay-menu nav a:hover { color: var(--gold-bright); }
.overlay-menu nav a.active { color: var(--gold); }
.overlay-menu nav a.active::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
}

.overlay-menu-footer {
  position: absolute;
  bottom: clamp(2rem, 4vw, 3.5rem);
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 clamp(2rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.6s;
}
.menu-open .overlay-menu-footer { opacity: 1; }
.overlay-menu-footer .col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--cream);
}
.overlay-menu-footer .col .label {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.overlay-menu-footer a { color: var(--cream); transition: color 0.4s var(--ease); }
.overlay-menu-footer a:hover { color: var(--gold-bright); }

@media (max-width: 640px) {
  .overlay-menu-footer { flex-direction: column; align-items: flex-start; }
}

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
  border-bottom: 1px solid var(--hairline);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(184, 155, 94, 0.08), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(184, 155, 94, 0.04), transparent 50%),
    linear-gradient(180deg, #0E0D0B 0%, #16140F 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  opacity: 0.4;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8.5vw, 7.6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ivory);
  max-width: 14ch;
  margin-bottom: 2rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 820px) {
  .hero-sub { grid-template-columns: 1fr; gap: 2rem; }
  .hero-meta { flex-direction: column; gap: 0.5rem; }
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Compact page hero (sub-pages) */
.page-hero {
  padding: 12rem 0 5rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-bg { z-index: 0; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.018em;
  color: var(--ivory);
  margin: 1.6rem 0 1.5rem;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }

/* ---------- Stats bar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats.stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .stats.stats-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats.stats-3 { grid-template-columns: 1fr; } }
.stats > div {
  padding: 3rem 1.6rem;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.stats > div:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1;
  color: var(--ivory);
  letter-spacing: -0.02em;
}
.stat-num .unit { color: var(--gold); font-style: italic; }
.stat-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: none !important; border-bottom: 1px solid var(--hairline); }
  .stats > div:last-child { border-bottom: none; }
}

/* ---------- Service / capability cards ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.service {
  padding: clamp(2.4rem, 4vw, 3.6rem);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: clamp(380px, 32vw, 460px);
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 155, 94, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.service:hover { background: var(--bg-elevated); }
.service:hover::before { opacity: 1; }
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 2rem;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 1.4rem;
  max-width: 16ch;
}
.service p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--cream);
  max-width: 50ch;
}
.service .link {
  margin-top: auto;
  padding-top: 2rem;
  align-self: flex-start;
}
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
}

/* ---------- Approach / Principles list ---------- */
.principles {
  border-top: 1px solid var(--hairline);
}
.principle {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  transition: background 0.5s var(--ease);
}
.principle:hover { background: rgba(184, 155, 94, 0.025); }
.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
  color: var(--ivory);
  letter-spacing: -0.005em;
}
.principle p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--cream);
}
@media (max-width: 820px) {
  .principle { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- Editorial split (image + text feel without images) ---------- */
.editorial-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.editorial-card .glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(8rem, 22vw, 18rem);
  color: var(--gold);
  opacity: 0.18;
  letter-spacing: -0.05em;
  user-select: none;
}
.editorial-card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(14,13,11,0.92), transparent);
  z-index: 2;
}
.editorial-card .label { color: var(--gold); }
.editorial-card .title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 400;
  color: var(--ivory);
  margin-top: 0.6rem;
  line-height: 1.15;
}

/* ---------- Insights / Journal ---------- */
.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.entry {
  padding: 2.6rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: background 0.5s var(--ease);
}
.entry:hover { background: var(--bg-elevated); }
.entry .meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.entry .meta .date { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.entry .meta .dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }
.entry .meta .cat { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.entry h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ivory);
  letter-spacing: -0.005em;
}
.entry p { font-size: 0.92rem; line-height: 1.6; color: var(--cream); margin-top: 1rem; }
.entry .link { margin-top: auto; padding-top: 2rem; align-self: flex-start; }
@media (max-width: 980px) { .journal { grid-template-columns: 1fr 1fr; } .entry:nth-last-child(1) { grid-column: 1 / -1; } }
@media (max-width: 640px)  { .journal { grid-template-columns: 1fr; } .entry:nth-last-child(1) { grid-column: auto; } }

/* ---------- CTA section ---------- */
.cta {
  padding: clamp(6rem, 12vw, 11rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(184, 155, 94, 0.08), transparent 60%),
    var(--bg);
}
.cta > .container { position: relative; z-index: 2; }
.cta h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ivory);
  max-width: 18ch;
  margin: 1.6rem auto 1.6rem;
}
.cta h2 em { font-style: italic; color: var(--gold); font-weight: 300; }
.cta p { max-width: 50ch; margin: 0 auto 2.5rem; color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--hairline-strong);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand .lede-foot {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ivory);
  margin-top: 1.6rem;
  max-width: 36ch;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.footer-col ul li + li { margin-top: 0.85rem; }
.footer-col a { font-size: 0.94rem; color: var(--cream); transition: color 0.4s var(--ease); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-col .addr { font-size: 0.92rem; line-height: 1.7; color: var(--cream); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom .small { color: var(--muted); }
.footer-bottom ul { display: flex; gap: 2rem; }
.footer-bottom .small a:hover { color: var(--gold-bright); }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom ul { flex-direction: column; gap: 0.6rem; }
}

/* ---------- Forms (contact) ---------- */
.form { display: grid; gap: 1.5rem; }
.field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 0.8rem;
  transition: border-color 0.4s var(--ease);
}
.field:focus-within { border-bottom-color: var(--gold); }
.field label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ivory);
  padding: 0.4rem 0;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 6rem; font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); font-style: italic; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Quote / testimonial ---------- */
.quote {
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ivory);
  max-width: 26ch;
  margin: 0 auto 2rem;
  letter-spacing: -0.01em;
}
.quote .attr {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Logos / "trusted by" strip ---------- */
.logos {
  padding: 4rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.6;
}
.logos-row > div {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  white-space: nowrap;
}
.logos-row > div .ampersand { color: var(--gold); margin: 0 0.3rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Misc utilities ---------- */
.divider { height: 1px; background: var(--hairline); margin: 3rem 0; }
.divider-gold { height: 1px; background: var(--hairline-gold); margin: 3rem 0; max-width: 80px; }
.text-gold { color: var(--gold); }
.text-ivory { color: var(--ivory); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ================================================================
   v2 — High-end refinements
   ================================================================ */

/* ---------- Brand: new gold wordmark logo (CSS-based with gradient) ---------- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--gold);
  transition: opacity 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
  line-height: 1; /* prevent ancestor leading from compressing the lockup */
}
.brand-logo:hover { opacity: 0.85; }
.brand-logo .bl-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;       /* italic 500 isn't loaded — use 400 cleanly */
  font-size: 58px;
  line-height: 1;         /* was 0.85 — was clipping the italic letterforms */
  letter-spacing: -0.5px; /* was -2.5px — was crushing the F and W together */
  background: linear-gradient(180deg, #E5C786 0%, #C9A961 48%, #A8884A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 2px 4px 2px 0;  /* breathing room for italic ascenders/descenders */
}
/* Simple header lockup: bl-tag is a DIRECT child of brand-logo (no wordmark) */
.brand-logo > .bl-tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid rgba(184, 155, 94, 0.45);
  align-self: stretch;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Full lockup (footer): bl-tag nested inside bl-words alongside FLAMBARD WILLIAMS */
.brand-logo .bl-words {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.brand-logo .bl-name {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.12;
  letter-spacing: -0.1px;
  background: linear-gradient(180deg, #E5C786 0%, #C9A961 50%, #A8884A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-logo .bl-words .bl-tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(184, 155, 94, 0.4);
}
.site-header.scrolled .brand-logo .bl-mark { font-size: 50px; }
.site-header.scrolled .brand-logo > .bl-tag { font-size: 9px; padding-left: 12px; }
.site-header.scrolled .brand-logo .bl-words .bl-tag { font-size: 7.5px; }
@media (max-width: 640px) {
  .brand-logo { gap: 12px; }
  .brand-logo .bl-mark { font-size: 46px; }
  .brand-logo > .bl-tag { font-size: 8.5px; padding-left: 10px; letter-spacing: 0.32em; }
  .brand-logo .bl-name { font-size: 13.5px; }
  .brand-logo .bl-words .bl-tag { font-size: 7px; letter-spacing: 0.32em; }
  .site-header.scrolled .brand-logo .bl-mark { font-size: 40px; }
}
.footer-brand .brand-logo { gap: 20px; }
.footer-brand .brand-logo .bl-mark { font-size: 70px; }
.footer-brand .brand-logo .bl-name { font-size: 19px; }
.footer-brand .brand-logo .bl-words .bl-tag { font-size: 9.5px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-bright));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------- Video Hero ---------- */
.hero-video {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55) saturate(0.85) contrast(1.05);
}
.hero-video .video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(184,155,94,0.10), transparent 55%),
    linear-gradient(180deg, rgba(14,13,11,0.45) 0%, rgba(14,13,11,0.65) 60%, rgba(14,13,11,0.95) 100%);
}
.hero-video .video-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(14,13,11,0.45) 100%);
  pointer-events: none;
}
.hero-video .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-video .hero-meta {
  border-bottom: 1px solid rgba(234,225,204,0.18);
  margin-bottom: 3.5rem;
}
.hero-video h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8.4rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--ivory);
  max-width: 14ch;
  margin-bottom: 2.4rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero-video h1 em { font-style: italic; color: var(--gold-bright); font-weight: 300; }
.hero-video .lede {
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-video-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  opacity: 0.85;
}
.hero-video-scroll::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold-bright), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}

/* ---------- Image-heavy service cards (v2) ---------- */
.services-rich {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline-strong);
  border: 1px solid var(--hairline-strong);
}
.service-rich {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  min-height: clamp(440px, 38vw, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 3.5vw, 3rem);
  cursor: pointer;
  isolation: isolate;
}
.service-rich .img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
  filter: brightness(0.50) saturate(0.85) contrast(1.05);
  transform: scale(1.02);
}
.service-rich::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(14,13,11,0.4) 50%, rgba(14,13,11,0.95) 100%);
  transition: opacity 0.6s var(--ease);
}
.service-rich:hover .img { transform: scale(1.06); filter: brightness(0.6) saturate(0.95) contrast(1.05); }
.service-rich > * { position: relative; z-index: 2; }
.service-rich .service-num {
  position: absolute;
  top: clamp(2rem, 3.5vw, 3rem);
  left: clamp(2rem, 3.5vw, 3rem);
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  z-index: 2;
}
.service-rich h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ivory);
  margin-bottom: 1rem;
  max-width: 14ch;
}
.service-rich p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--cream);
  max-width: 50ch;
  margin-bottom: 1.6rem;
}
.service-rich .link {
  align-self: flex-start;
  color: var(--ivory);
}
@media (max-width: 820px) {
  .services-rich { grid-template-columns: 1fr; }
  .service-rich { min-height: 440px; }
}

/* ---------- Page hero with image background ---------- */
.page-hero-img {
  padding: 14rem 0 6rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.page-hero-img .img-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.85);
}
.page-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14,13,11,0.55), rgba(14,13,11,0.92));
}
.page-hero-img > .container { position: relative; z-index: 2; }
.page-hero-img h1 { color: var(--ivory); }

/* ---------- Team member cards (with real photos) ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.member {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  transition: background 0.5s var(--ease);
}
.member:hover { background: var(--bg-elevated); }
.member-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(0.18) contrast(1.05) brightness(0.92) saturate(0.9);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
  display: block;
}
.member:hover .member-photo {
  filter: grayscale(0) contrast(1.05) brightness(1) saturate(1);
}
.member-photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
}
.member-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14,13,11,0.4) 100%);
  pointer-events: none;
}
.member-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.member-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,155,94,0.08), transparent 65%);
}
.member-photo-placeholder span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(7rem, 18vw, 14rem);
  color: var(--gold);
  opacity: 0.45;
  line-height: 1;
  letter-spacing: -0.06em;
}
.member-meta {
  padding: 2rem clamp(1.6rem, 2vw, 2.2rem) 2.2rem;
}
.member-meta .role {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.member-meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ivory);
  margin-bottom: 1.2rem;
}
.member-meta p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--cream);
}
@media (max-width: 980px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .team { grid-template-columns: 1fr; } }

/* ---------- Image figure (editorial alongside text) ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
  aspect-ratio: 4 / 5;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.92);
  transition: filter 0.8s var(--ease), transform 1.4s var(--ease);
}
.figure:hover img { filter: brightness(1) saturate(1); transform: scale(1.02); }
.figure-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem;
  z-index: 2;
  background: linear-gradient(to top, rgba(14,13,11,0.92), transparent);
}
.figure-caption .label { color: var(--gold); }
.figure-caption .title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ivory);
  margin-top: 0.5rem;
  line-height: 1.2;
}

/* ---------- Featured banner image (full-width with text overlay) ---------- */
.banner {
  position: relative;
  height: clamp(400px, 50vh, 560px);
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.banner-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.9);
  z-index: 0;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14,13,11,0.85) 0%, rgba(14,13,11,0.45) 60%, rgba(14,13,11,0.7) 100%);
}
.banner > .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ivory);
  max-width: 18ch;
  margin: 1rem 0 1.5rem;
}
.banner h2 em { font-style: italic; color: var(--gold-bright); }
.banner p { color: var(--cream); max-width: 50ch; margin-bottom: 2rem; }

/* ---------- Reveal: clip-path image reveal ---------- */
.img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out); }
.img-reveal.in { clip-path: inset(0 0 0 0); }

/* Body needs to allow video on top */
body::before { z-index: 1; }
.site-header { z-index: 100; }
.scroll-progress { z-index: 200; }

/* ---------- AI service: abstract CSS-only treatment ---------- */
.service-rich .ai-img {
  background:
    radial-gradient(circle at 25% 30%, rgba(212, 185, 120, 0.28), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(184, 155, 94, 0.18), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 136, 74, 0.10), transparent 70%),
    linear-gradient(135deg, #16140F 0%, #0E0D0B 50%, #1A1813 100%);
  filter: brightness(0.95) saturate(1);
  position: relative;
}
.service-rich .ai-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 155, 94, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 155, 94, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at 60% 40%, black 0%, transparent 75%);
  opacity: 0.7;
}

/* ---------- Refinement: improve service-rich image base color (so AI gradient stays visible) ---------- */
.service-rich .img.ai-img { filter: brightness(0.95); }

/* ---------- Refinement: typography accent for em in display ---------- */
.display em, h2 em, h1 em { font-feature-settings: "ss01"; }

/* ---------- Hero: B&W manor (centered logo lockup) ---------- */
.hero-manor {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A0908;
}
.hero-manor-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.12) brightness(0.65);
  transform: scale(1.02);
  animation: heroManorIn 3s var(--ease-out) both;
}
@keyframes heroManorIn {
  from { transform: scale(1.08); opacity: 0; filter: grayscale(1) contrast(1.12) brightness(0.4); }
  to   { transform: scale(1.02); opacity: 1; filter: grayscale(1) contrast(1.12) brightness(0.65); }
}
.hero-manor-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(11, 10, 8, 0.55) 95%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.20) 0%, transparent 30%, transparent 70%, rgba(11, 10, 8, 0.55) 100%);
}
.hero-manor-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  animation: heroFade 2s var(--ease-out) 0.5s both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-manor-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--ivory);
}
.hero-manor-logo .hm-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(70px, 10vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
.hero-manor-logo .hm-divider {
  width: clamp(220px, 30vw, 380px);
  height: 1px;
  background: rgba(234, 225, 204, 0.55);
  border: none;
  margin: 0 auto clamp(18px, 2.2vw, 28px);
}
.hero-manor-logo .hm-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 56px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1;
}
.hero-manor-logo .hm-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(11px, 1.05vw, 14px);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-top: clamp(16px, 2vw, 22px);
  padding-left: 0.5em;
  opacity: 0.92;
}
.hero-manor-scroll {
  position: absolute;
  bottom: clamp(2rem, 4vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.85;
  text-decoration: none;
  animation: heroFade 2s var(--ease-out) 1.2s both;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.hero-manor-scroll:hover { opacity: 1; transform: translate(-50%, -2px); }
.hero-manor-scroll svg {
  width: 18px;
  height: 18px;
  stroke: var(--ivory);
  fill: none;
  stroke-width: 1;
  animation: scrollChevron 2.4s var(--ease) infinite;
}
@keyframes scrollChevron {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* On the homepage, the brand-logo in header should fade in only after scroll */
.hero-active .site-header .brand-logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.hero-active .site-header.scrolled .brand-logo {
  opacity: 1;
  pointer-events: auto;
}
.hero-active .site-header { background: transparent !important; border-bottom-color: transparent !important; }
.hero-active .site-header.scrolled {
  background: rgba(14, 13, 11, 0.78) !important;
  border-bottom-color: var(--hairline) !important;
}

/* ---------- Article / Essay page layout ---------- */
.article-hero {
  padding: 12rem 0 5rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.article-hero .breadcrumb {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.article-hero .breadcrumb a { color: var(--gold); }
.article-hero .breadcrumb a:hover { color: var(--gold-bright); }
.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.article-meta .date { color: var(--muted); }
.article-meta .cat { color: var(--gold); }
.article-meta .read-time { color: var(--muted); }
.article-meta .dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.article-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ivory);
  max-width: 22ch;
  margin: 0 0 2rem;
}
.article-title em { font-style: italic; color: var(--gold); }
.article-standfirst {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.5;
  color: var(--ivory);
  max-width: 60ch;
  font-style: italic;
}
.article-byline {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-byline .by-name { color: var(--gold); }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--cream);
  padding: clamp(4rem, 7vw, 6rem) 2rem;
}
.article-body > p:first-of-type {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.4vw, 1.32rem);
  line-height: 1.55;
  color: var(--ivory);
  margin-bottom: 2.4em;
  font-weight: 400;
}
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 4.6em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.14em 0 -0.04em;
  color: var(--gold);
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  color: var(--ivory);
  margin: 3.5rem 0 1.4rem;
  letter-spacing: -0.008em;
}
.article-body h2 em { font-style: italic; color: var(--gold); }
.article-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  line-height: 1.3;
  color: var(--ivory);
  margin: 2.5rem 0 1rem;
}
.article-body p { margin-bottom: 1.4em; color: var(--cream); }
.article-body p strong { color: var(--ivory); font-weight: 500; }
.article-body p em { color: var(--ivory); font-style: italic; }
.article-body a { color: var(--gold); border-bottom: 1px solid var(--hairline-gold); transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.article-body a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.4;
  color: var(--ivory);
  padding: 2.4rem 0;
  margin: 2.5rem 0;
  border-top: 1px solid var(--hairline-gold);
  border-bottom: 1px solid var(--hairline-gold);
  text-align: center;
  letter-spacing: -0.005em;
}
.article-body ul, .article-body ol {
  margin: 1.6em 0;
  padding-left: 1.5em;
}
.article-body ul li {
  margin-bottom: 0.7em;
  list-style: none;
  position: relative;
}
.article-body ul li::before {
  content: '—';
  position: absolute;
  left: -1.5em;
  color: var(--gold);
}
.article-body ol { padding-left: 2em; }
.article-body ol li { margin-bottom: 0.7em; }
.article-body hr {
  border: none;
  height: 1px;
  background: var(--hairline);
  margin: 3rem auto;
  width: 80px;
}
.article-end {
  text-align: center;
  margin: 4rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 50ch;
}
.article-end::before {
  content: '§';
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-style: normal;
}
.article-end .author {
  display: block;
  color: var(--gold);
  margin-top: 0.6rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Related essays */
.related {
  border-top: 1px solid var(--hairline);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--hairline);
}
@media (max-width: 820px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Insights featured image card (for insights page) ---------- */
.featured-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  overflow: hidden;
  align-items: stretch;
}
.featured-card-img {
  background-size: cover;
  background-position: center;
  min-height: 480px;
  position: relative;
}
.featured-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(14,13,11,0.35));
}
.featured-card-body {
  padding: clamp(2.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.featured-card-meta .date { color: var(--muted); }
.featured-card-meta .cat { color: var(--gold); }
.featured-card-meta .dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }
@media (max-width: 820px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-img { min-height: 320px; }
}


