:root {
  --bg: #09090a;
  --bg-2: #0e0e10;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededeb;
  --muted: #8b8b90;
  --faint: #56565b;
  --red: #be1e2d;
  --red-bright: #e0323f;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
em { font-style: italic; }

:focus-visible { outline: 1px solid var(--red-bright); outline-offset: 4px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Film grain over everything, very quiet */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(9, 9, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand img { height: 26px; width: auto; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -200px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 30, 45, 0.22) 0%, rgba(190, 30, 45, 0.06) 40%, transparent 70%);
  filter: blur(20px);
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0);
  transition: transform 1.2s var(--ease);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.hero-mark {
  position: absolute;
  z-index: -1;
  right: max(-6vw, -80px);
  top: 50%;
  height: min(118vh, 1100px);
  width: auto;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 0.18;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.hero-mark path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 3.2s var(--ease) 0.3s forwards;
}
.hero-mark path + path { animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner { padding-bottom: clamp(48px, 9vh, 96px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 0 rgba(224, 50, 63, 0.6);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 50, 63, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(224, 50, 63, 0); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.2s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title em { color: var(--muted); }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  max-width: 520px;
  margin-top: 32px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  line-height: 1.65;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn-solid:hover { color: #fff; }
.btn-solid:hover::before { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14em;
}
.section-title em { color: var(--muted); }

/* ---------- Companies ---------- */
.group-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
}
.companies { border-top: 1px solid var(--line-2); margin-bottom: 64px; }
.companies:last-child { margin-bottom: 0; }
.companies li { border-bottom: 1px solid var(--line); }

.company {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 1.3fr) 190px 44px;
  align-items: center;
  gap: 24px;
  padding: 34px 0;
  isolation: isolate;
}
.company::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(var(--gutter) * -0.5);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(190, 30, 45, 0.14), transparent 70%),
              rgba(255, 255, 255, 0.015);
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.company:hover::before { opacity: 1; }

.c-num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.c-name {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.6s var(--ease);
}
.company:hover .c-name { transform: translateX(10px); }
.c-desc { font-size: 15px; color: var(--muted); max-width: 34em; }
.c-meta { display: flex; flex-direction: column; gap: 6px; }
.c-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.c-url { font-size: 13px; color: var(--faint); transition: color 0.3s var(--ease); }
.company:hover .c-url { color: var(--muted); }

.c-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.c-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.c-arrow svg { transition: transform 0.5s var(--ease); }
.company:hover .c-arrow { background: var(--red); border-color: var(--red); }
.company:hover .c-arrow svg { transform: rotate(45deg); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-copy { display: flex; flex-direction: column; gap: 22px; padding-top: 40px; }
.about-copy p { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); line-height: 1.7; }
.about-copy p:first-child { color: var(--text); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(72px, 10vw, 128px);
}
.principle { padding: 32px 32px 8px; border-left: 1px solid var(--line); }
.principle:first-child { padding-left: 0; border-left: 0; }
.p-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--red-bright); }
.principle h3 { margin-top: 18px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.principle p { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 30em; }

/* ---------- Leadership ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 16px;
}
.person {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  transition: border-color 0.4s var(--ease), transform 0.6s var(--ease);
}
.person:hover { border-color: var(--line-2); transform: translateY(-2px); }
.initials {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
}
.p-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.p-role { margin-top: 2px; font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -520px;
  width: 1100px;
  height: 800px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(190, 30, 45, 0.16), transparent);
}
.contact .wrap { position: relative; }
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 15vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.contact-title em { color: var(--muted); }
.contact-sub { margin-top: 28px; font-size: 18px; color: var(--muted); max-width: 30em; }

.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 32px 64px;
  margin-top: clamp(64px, 9vw, 112px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.office-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.office-name { margin-top: 14px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.office-name-next { margin-top: 6px; }
.office-link { overflow-wrap: anywhere; transition: color 0.3s var(--ease); }
.office-link:hover { color: var(--red-bright); }
.office address { margin-top: 6px; font-style: normal; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}
.footer .brand { font-size: 14px; color: var(--muted); }
.footer .brand img { height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .company {
    grid-template-columns: 40px 1fr 44px;
    grid-template-areas:
      "num name arrow"
      ".   desc desc"
      ".   meta meta";
    row-gap: 14px;
    padding: 28px 0;
  }
  .c-num { grid-area: num; }
  .c-name { grid-area: name; }
  .c-desc { grid-area: desc; }
  .c-meta { grid-area: meta; flex-direction: row; align-items: center; gap: 14px; }
  .c-arrow { grid-area: arrow; }
  .people { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { gap: 20px; }
  .nav .brand span { display: none; }
  .hero-mark { right: -40%; opacity: 0.8; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; }
  .principles { grid-template-columns: 1fr; }
  .principle { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; padding-top: 0; }
  .people { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .company { grid-template-columns: 28px 1fr 40px; column-gap: 12px; }
  .c-arrow { width: 40px; height: 40px; }
}

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