/* Fulcrum Advisors — Round 2 direction
   Source of truth: Figma "Fulcrum Advisors — Round 2 Direction", page "Round 2 — Homepage".
   Image-led rows on alternating light/dark grounds, framed photos, Playfair + Archivo. */

/* Self-hosted latin subsets (Google Fonts v25 files). Archivo is variable, so one file covers 400–600. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-400.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-400i.woff2") format("woff2");
}

:root {
  --black: #0a0a0a;
  --black-deep: #050505;
  --ink: #101010;
  --gold: #f2c718;
  --bronze: #a8844f;
  --label: #6e5229;      /* AA on all light grounds, including under the paper texture */
  --muted: #5a5750;
  --footer-muted: #bebbb4;
  --paper: #f4efe6;
  --light: #f7f6f2;
  --sand: #eae3d6;
  --white: #ffffff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 6.95vw, 100px);
  --section-y: clamp(80px, 10.4vw, 150px);
  --header-h: 80px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--black); padding: 10px 16px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section-paper :focus-visible,
.section-light :focus-visible,
.section-sand :focus-visible { outline-color: var(--label); }
/* Sections receive programmatic focus after an in-page jump; don't ring the whole block. */
[tabindex="-1"]:focus { outline: none; }

.br-lg { display: none; }
@media (min-width: 1100px) { .br-lg { display: inline; } }

/* ---------------- Type ---------------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: inherit; }

h2 {
  font-size: clamp(38px, 4.03vw, 58px);
  line-height: 1.08;
}

h3 {
  font-size: clamp(26px, 2.36vw, 34px);
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--label);
}
.eyebrow-sm { font-size: 12px; }
.eyebrow-gold { color: var(--gold); }

.rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--bronze);
}
.rule-gold { background: var(--gold); }

/* ---------------- Buttons & links ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 16px 34px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #ffd83a; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.btn-sm { min-height: 38px; padding: 11px 22px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------------- Logo ---------------- */

.logo {
  display: inline-flex;
  color: var(--white);
  text-decoration: none;
}
.logo-mark { display: block; width: 172px; height: auto; aspect-ratio: 365.86 / 83.86; }
.site-footer .logo-mark { width: 220px; }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: 28px;
  transition: background-color 0.3s ease, padding 0.3s ease;
}
/* Solid, and no filter/transform here: either would make the header the containing
   block for the fixed mobile nav and clip the open menu to the header's height. */
.site-header.scrolled {
  padding-top: 0;
  background: var(--black);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav a:not(.btn) {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 0;
  background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 6px) / 0 1px no-repeat;
  transition: background-size 0.25s ease;
}
.site-nav a:not(.btn):hover { background-size: 100% 1px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
@media (forced-colors: active) {
  .nav-toggle { border: 1px solid ButtonText; }
  .nav-toggle-bar { background: ButtonText; forced-color-adjust: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header { padding-top: 8px; }
  .site-header .logo-mark { width: 128px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: safe center;
    gap: 28px;
    padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
  }
  .site-nav a:not(.btn) { font-size: 15px; }
}

/* ---------------- Photo slots ---------------- */

/* Warm placeholder until photography lands; any <img> inside covers it. */
.photo {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #8c5e30 0%, #1a120d 100%);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-bleed { position: absolute; inset: 0; }

/* Bronze-ruled frame around inset photos (Blackstar/Stockwell cue). */
.frame {
  padding: 12px;
  border: 1px solid var(--bronze);
}
.frame-tall .photo { aspect-ratio: 520 / 620; }

/* ---------------- Sections ---------------- */

.section { padding: var(--section-y) 0; }
.section-paper { background: var(--paper); }
.section-light { background: var(--light); }
.section-sand { background: var(--sand); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  margin-bottom: clamp(56px, 7.6vw, 110px);
}

/* Image + copy rows */
.media-row {
  display: grid;
  grid-template-columns: 546fr 540fr;
  gap: clamp(48px, 7.6vw, 110px);
  align-items: center;
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 540px;
  color: var(--muted);
}
.copy h2, .copy h3 { color: var(--ink); }
.copy .lede {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
}

/* What We Do: type-only ledger. Three columns, each opened by a bronze hairline. */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(32px, 4.2vw, 60px);
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid rgba(168, 132, 79, 0.55);
  color: var(--muted);
}
.service h3 { color: var(--ink); }

/* Why Fulcrum: type only, on paper. */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6.95vw, 100px);
  align-items: center;
}
.why-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  color: var(--muted);
  font-size: 18px;
}
.why-intro h2 { color: var(--ink); }

/* Textures */
.paper { position: relative; isolation: isolate; }
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/tex-paper.webp") center / 1400px auto repeat;
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}
/* Band and Contact backgrounds are full-bleed barrel photos under their scrims. */

@media (max-width: 900px) {
  .media-row,
  .services,
  .why {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services { gap: 44px; }
  .why-intro { font-size: 17px; gap: 20px; }
  .copy { max-width: none; gap: 20px; font-size: 17px; }
  .copy .lede { font-size: 20px; }
  .frame { padding: 10px; }
  .frame-tall .photo { aspect-ratio: 4 / 5; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 100svh, 900px);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(0,0,0,.45), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,.8) 100%);
}
@media (max-width: 700px) {
  .hero-scrim {
    background:
      radial-gradient(ellipse 70% 50% at 50% 45%, rgba(0,0,0,.45), rgba(0,0,0,0)),
      linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.8) 100%);
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 100px;
}
.hero-title {
  max-width: 900px;
  font-size: clamp(46px, 6.11vw, 88px);
  line-height: 1.04;
}
.hero-sub {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}

/* ---------------- Photo band ---------------- */

.band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 38.9vw, 560px);
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.band-scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 60% 70% at center, rgba(10,10,10,.74), rgba(10,10,10,.4)); }
.band-line, .hero-inner, .contact-inner { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.band-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 96px;
}
.band-line {
  font-family: var(--serif);
  font-size: clamp(30px, 3.33vw, 48px);
  line-height: 1.3;
}
.band-line-1 { color: var(--white); font-style: italic; }
.band-line-2 { color: var(--gold); }

/* ---------------- The Model ---------------- */

.model {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 52.8vw, 760px);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.model-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.05) 100%);
}
/* Desktop: the photo sits on the right and fades into black so the group never runs under the copy. */
@media (min-width: 901px) {
  .model .photo-bleed {
    left: 42%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  }
  .model .photo-bleed img { object-position: 65% center; }
  .model-scrim { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,0) 100%); }
}
/* Mobile: no text over the photo. It sits above the copy as a strip that fades into black. */
@media (max-width: 900px) {
  .model { flex-direction: column; align-items: stretch; min-height: 0; }
  .model .photo-bleed {
    position: relative;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  }
  .model-scrim { display: none; }
  .model .container { padding-top: 8px; padding-bottom: 96px; }
}
.model .container { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 120px; }
.model-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 680px;
}
.model-copy h2,
.contact h2 { font-size: clamp(44px, 4.4vw, 64px); line-height: 1.15; }
.model-body {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.32vw, 19px);
}
.model-quote {
  max-width: 560px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 1.67vw, 24px);
  line-height: 1.4;
}

/* ---------------- Why Fulcrum ---------------- */

.gains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 60px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}
.gains li { max-width: 268px; }
.gains li::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--bronze);
}

@media (max-width: 560px) {
  .gains { grid-template-columns: 1fr; gap: 28px; margin-top: 8px; font-size: 17px; }
  .gains li { max-width: none; }
}

/* ---------------- Team ---------------- */

/* Team shares the Why ground; a bronze hairline divides them instead of a tone change. */
#team { padding-top: 0; }
#team .container::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: var(--section-y);
  background: rgba(168, 132, 79, 0.45);
}
#why { padding-bottom: calc(var(--section-y) * 0.8); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.team-card img {
  width: 100%;
  aspect-ratio: 290 / 330;
  object-fit: cover;
  object-position: center top;
  background: #ccc4b8;
  margin-bottom: 22px;
}
.team-card h3 {
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 16px;
}
.team-bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 26px; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-card { display: grid; grid-template-columns: 112px 1fr; gap: 0 18px; align-content: start; }
  .team-card img { grid-row: span 3; margin: 0; }
  .team-card h3 { font-size: 22px; margin-bottom: 6px; }
  .team-role { margin-bottom: 10px; }
  .team-bio { font-size: 15px; }
}

/* ---------------- Contact ---------------- */

.contact {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 47.2vw, 680px);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.contact-scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 50% 55% at 50% 45%, rgba(30, 18, 8, .62), rgba(10,10,10,.42) 80%, rgba(10,10,10,.6)); }
.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 120px;
}
.contact-lede {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.55;
}
.contact-email {
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  text-decoration: none;
}
.contact-email:hover { color: var(--white); text-decoration: underline; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--black-deep);
  color: var(--footer-muted);
  padding: 64px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.1;
}
.footer-email { color: var(--white); text-decoration: none; }
.footer-email:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.footer-nav a {
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: rgba(190, 187, 180, 0.7); }

@media (max-width: 900px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .site-footer .logo-mark { width: 172px; }
  .footer-nav { flex-direction: column; gap: 4px; }
  .footer-nav a { display: inline-block; padding: 10px 0; }
}

/* ---------------- Motion (armed only by html.anim) ---------------- */

.anim [data-io] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.anim [data-io].in { opacity: 1; transform: none; }

/* Hero entrance is pure CSS so the h1 (mobile LCP) never waits on a script.
   Starts at .01, not 0: Chrome never records an LCP for text first painted fully transparent. */
@keyframes rise { from { opacity: 0.01; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.anim .hero-eyebrow,
.anim .hero-title,
.anim .hero-sub,
.anim .hero-actions { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero-eyebrow { animation-delay: 0.1s; }
.anim .hero-title { animation-delay: 0.2s; animation-duration: 1.1s; }
.anim .hero-sub { animation-delay: 0.5s; }
.anim .hero-actions { animation-delay: 0.65s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .anim [data-io], .anim .hero-inner > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .site-header { position: absolute; }
}
