:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --ink: #1c2420;
  --muted: #5b635e;
  --accent: #2f4a3a;
  --gold: #94743f;
  --gold-light: #d6bd8e;
  --rule: #d9d5cb;
  --dark: #1f2e26;
  --darker: #17221c;
  --dark-ink: #ecebe4;
  --dark-muted: #a9b3ac;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
p { margin: 0 0 1em; }
::selection { background: var(--gold-light); color: var(--ink); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }

/* Header: transparent over the hero, solid after scrolling */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-solid {
  background: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 24px rgba(28, 36, 32, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span {
  white-space: nowrap; font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: #fff; letter-spacing: 0.01em; transition: color 0.35s ease;
}
.mark {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.18);
}
.nav { display: flex; gap: 30px; }
.nav a {
  position: relative; text-decoration: none; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); transition: color 0.35s ease; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }
.is-solid .brand span { color: var(--ink); }
.is-solid .mark { box-shadow: 0 0 0 1px var(--rule); }
.is-solid .nav a { color: var(--muted); }
.is-solid .nav a:hover, .is-solid .nav a[aria-current="page"] { color: var(--accent); }
.is-solid .nav a::after { background: var(--gold); }

/* Eyebrow labels */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold-light); }

/* Hero */
.hero-media { position: relative; min-height: min(100vh, 940px); display: flex; align-items: flex-end; overflow: hidden; background: var(--dark); color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 23, 0.45) 0%, rgba(20, 28, 23, 0.1) 30%, rgba(20, 28, 23, 0.8) 100%); }
.hero-content { position: relative; padding-top: 180px; padding-bottom: 120px; width: 100%; }
.hero h1, .page-hero h1 { font-size: clamp(46px, 7.4vw, 96px); max-width: 13ch; font-weight: 500; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 50ch; margin-top: 28px; color: rgba(255, 255, 255, 0.88); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -56px; width: 1px; height: 56px; background: var(--gold-light); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 56px; } }

.rise { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) 0.15s forwards; }
.rise-2 { animation-delay: 0.3s; }
.rise-3 { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.tenets .reveal:nth-child(2), .beliefs .reveal:nth-child(2), .motion-grid .reveal:nth-child(2), .team .reveal:nth-child(2) { transition-delay: 0.12s; }
.tenets .reveal:nth-child(3), .beliefs .reveal:nth-child(3), .motion-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.motion-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(34px, 4.4vw, 52px); font-weight: 500;
  margin-bottom: 64px; padding-bottom: 24px; border-bottom: 1px solid var(--rule);
}

.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.tenets .num { display: block; font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 18px; }
.tenets h3 { font-size: 29px; margin-bottom: 14px; }
.tenets p { color: var(--muted); }

/* Photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg); }
.mosaic figure { position: relative; margin: 0; height: 520px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption, .motion-tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 96px 30px 28px; color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, transparent, rgba(20, 28, 23, 0.8)); font-size: 14px; letter-spacing: 0.02em;
}
.mosaic figcaption span, .motion-tile figcaption span { display: block; font-family: var(--serif); font-size: 32px; color: #fff; line-height: 1.1; margin-bottom: 6px; }

/* Purpose */
.purpose-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
.purpose-lead {
  position: sticky; top: 120px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(32px, 3.8vw, 48px); line-height: 1.2; color: var(--accent); margin: 0;
}
.beliefs { list-style: none; margin: 0; padding: 0; counter-reset: belief; }
.beliefs li { counter-increment: belief; position: relative; padding: 32px 0 32px 72px; border-top: 1px solid var(--rule); }
.beliefs li:last-child { border-bottom: 1px solid var(--rule); }
.beliefs li::before {
  content: "0" counter(belief); position: absolute; left: 0; top: 34px;
  font-family: var(--serif); font-size: 26px; color: var(--gold);
}
.beliefs h3 { font-size: 28px; margin-bottom: 10px; }
.beliefs p { color: var(--muted); margin: 0; }

/* What drives us */
.miracle { position: relative; overflow: hidden; background: var(--darker); color: var(--dark-ink); padding: 150px 0; text-align: center; }
.miracle-emblem {
  position: absolute; width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: invert(1); mix-blend-mode: screen; opacity: 0.07; pointer-events: none;
}
.miracle-inner { position: relative; }
.miracle .eyebrow { justify-content: center; }
.miracle .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.miracle blockquote { margin: 12px 0 36px; }
.miracle blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(34px, 4.8vw, 60px); line-height: 1.15; color: #fff; margin: 0;
}
.miracle blockquote p::before { content: "\201C"; display: block; font-size: 1.6em; line-height: 0.6; color: var(--gold-light); margin-bottom: 18px; font-style: normal; }
.miracle-body { font-size: 19px; color: var(--dark-muted); max-width: 56ch; margin: 0 auto; }

/* Approach */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.kicker { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.criteria { list-style: none; padding: 0; margin: 0; }
.criteria li { padding: 18px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.criteria li:last-child { border-bottom: 1px solid var(--rule); }
.criteria strong { color: var(--ink); font-weight: 500; }
.inline-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 20px; }

/* Comparison */
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .section-title { border-color: rgba(255, 255, 255, 0.15); }
.compare-row {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--dark-muted);
}
.compare-head { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 0; }
.compare-row [role="rowheader"] { font-family: var(--serif); font-size: 24px; color: var(--dark-ink); line-height: 1.25; }
.compare-row .us { color: #fff; }
.compare-head .us { color: var(--gold-light); }

/* Industries in motion */
.motion-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.motion-head .section-title { margin: 0; padding: 0; border: 0; }
.motion-head p { color: var(--muted); margin: 0; }
.motion-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 300px 300px; gap: 6px; }
.motion-tile { position: relative; margin: 0; overflow: hidden; background: var(--dark); }
.motion-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease); }
.motion-tile:hover video { transform: scale(1.05); }
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.motion-foot { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 40px; }
.sector-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sector-chips li { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 16px; font-size: 13px; color: var(--muted); }

/* Banners */
.banner, .page-hero { position: relative; background-size: cover; background-position: center; color: #fff; }
.banner { padding: 160px 0; background-attachment: fixed; }
.banner-shade { position: absolute; inset: 0; background: rgba(20, 28, 23, 0.62); }
.page-hero .banner-shade { background: linear-gradient(180deg, rgba(20, 28, 23, 0.45), rgba(20, 28, 23, 0.15) 35%, rgba(20, 28, 23, 0.8)); }
.banner-content, .page-hero-content { position: relative; }
.statement { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.4; }
.statement-lg { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; font-style: italic; margin-bottom: 24px; }
.banner-body { font-size: 19px; color: rgba(255, 255, 255, 0.85); max-width: 52ch; }
.page-hero { min-height: 68vh; display: flex; align-items: flex-end; }
.page-hero-content { padding-top: 160px; padding-bottom: 96px; width: 100%; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 16px 30px;
  background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.button span { transition: transform 0.3s var(--ease); }
.button:hover { background: var(--ink); }
.button:hover span { transform: translateX(4px); }
.button-light { background: #fff; color: var(--accent); }
.button-light:hover { background: var(--gold-light); color: var(--ink); }

/* Sector grid (experience page) */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 40px; }
.sector-media { overflow: hidden; margin-bottom: 22px; }
.sector-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease); }
.sector:hover .sector-media img { transform: scale(1.06); }
.sector h3 { font-size: 30px; margin-bottom: 8px; }
.sector h3::after { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin-top: 12px; transition: width 0.5s var(--ease); }
.sector:hover h3::after { width: 64px; }
.sector p { color: var(--muted); margin: 12px 0 0; }

/* Focus panels (experience page) */
.focus { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.focus + .focus { margin-top: 120px; }
.focus-reverse { grid-template-columns: 1fr 1.35fr; }
.focus-reverse .focus-media { order: 2; }
.focus-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.focus-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-text h3 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 16px; }
.focus-text p { color: var(--muted); }
.focus-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 28px; }
.focus-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* Team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.person { display: grid; grid-template-columns: 168px 1fr; gap: 40px; align-items: start; }
.headshot {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover; object-position: center 25%; display: block;
  box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 7px var(--gold), 0 18px 40px rgba(28, 36, 32, 0.18);
  transition: transform 0.6s var(--ease);
}
.person:hover .headshot { transform: translateY(-4px); }
.person h3 { font-size: 36px; }
.person-email a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.person-email a:hover { color: var(--gold); }
.role { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 8px 0 20px; }
.person p:not(.role) { color: var(--muted); }
.associates { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 21px; }

/* Contact */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.contacts > div { padding: 28px; border: 1px solid var(--rule); background: #fff; transition: border-color 0.3s ease, transform 0.4s var(--ease); }
.contacts > div:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-name { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.contacts a { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 26px); color: var(--accent); text-decoration: none; word-break: break-word; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.footer-logo { height: 72px; width: auto; mix-blend-mode: multiply; }
.footer-inner > div { justify-self: end; text-align: right; }
.disclaimer { max-width: 70ch; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero-media { background: var(--dark) url('media/1607358049845.jpg') center / cover; }
  .rise, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .scroll-cue { display: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .banner { background-attachment: scroll; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 112px; }
  .header-inner { height: auto; flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; gap: 8px; }
  .nav { flex-wrap: wrap; gap: 4px 18px; }
  .tenets, .split, .team, .purpose-grid, .motion-head, .focus, .focus-reverse { grid-template-columns: 1fr; gap: 48px; }
  .focus-reverse .focus-media { order: 0; }
  .purpose-lead { position: static; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic figure { height: 340px; }
  .motion-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 240px 240px; }
  .tile-tall { grid-row: span 1; }
  .tile-wide { grid-column: span 1; }
  .motion-foot { flex-direction: column; align-items: flex-start; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .compare-row [role="cell"]::before {
    content: attr(data-label) " — ";
    font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark-muted);
  }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner > div { justify-self: start; text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a { font-size: 11px; letter-spacing: 0.08em; }
  .eyebrow { font-size: 11px; letter-spacing: 0.14em; gap: 10px; }
  .eyebrow::before { width: 24px; }
  .brand span { font-size: 22px; }
  .mark { width: 36px; height: 36px; }
  .hero-content { padding-top: 150px; padding-bottom: 96px; }
  .section { padding: 80px 0; }
  .banner { padding: 104px 0; }
  .miracle { padding: 104px 0; }
  .miracle-emblem { width: 420px; height: 420px; }
  .section-title { margin-bottom: 40px; }
  .sector-grid { grid-template-columns: 1fr; gap: 56px; }
  .person { grid-template-columns: 1fr; gap: 28px; }
  .headshot { width: 144px; height: 144px; }
  .contacts { grid-template-columns: 1fr; gap: 16px; }
  .mosaic figure { height: 280px; }
  .motion-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .beliefs li { padding-left: 52px; }
}
