:root {
  --ink: #07131e;
  --ink-2: #0d2030;
  --slate: #405362;
  --mist: #e9eef0;
  --paper: #f6f3ed;
  --white: #ffffff;
  --gold: #d6aa52;
  --gold-light: #f0cf83;
  --line: rgba(7, 19, 30, 0.15);
  --radius: 4px;
  --max: 1240px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: var(--gold-light);
  color: var(--ink);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
.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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 92px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s, height 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  height: 76px;
  background: rgba(7, 19, 30, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.brand img {
  width: 49px;
  height: 51px;
  object-fit: cover;
  mix-blend-mode: screen;
}
.brand-copy { display: grid; gap: 0.14rem; }
.brand-copy strong { font-size: 0.98rem; font-weight: 650; letter-spacing: 0.17em; }
.brand-copy span { color: rgba(255,255,255,.62); font-size: 0.61rem; letter-spacing: 0.32em; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav > a:not(.nav-cta) { color: rgba(255,255,255,.76); }
.site-nav > a:not(.nav-cta):hover { color: var(--gold-light); }
.nav-cta {
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(240, 207, 131, 0.65);
  color: var(--gold-light);
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  color: var(--white);
  overflow: hidden;
}
.hero-image, .hero-scrim, .hero-grid { position: absolute; inset: 0; }
.hero-image {
  background: url("assets/hero-foak-facility.webp") center / cover no-repeat;
  transform: scale(1.015);
}
.hero-scrim {
  background:
    linear-gradient(90deg, rgba(3, 10, 16, 0.98) 0%, rgba(5, 15, 24, 0.88) 34%, rgba(5, 15, 24, 0.26) 72%, rgba(5, 15, 24, 0.45) 100%),
    linear-gradient(0deg, rgba(5, 15, 24, 0.62) 0%, transparent 42%);
}
.hero-grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 88vw);
  margin-left: max(6vw, calc((100vw - var(--max)) / 2));
  padding-top: clamp(10.5rem, 22vh, 14.5rem);
}
.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
}
.eyebrow.dark { color: #8f6b27; }
.hero h1, .section-heading h2, .perspective-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero h1 { max-width: 750px; font-size: clamp(3.35rem, 6.9vw, 6.5rem); line-height: 0.95; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-lede {
  max-width: 650px;
  margin: 2rem 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
  line-height: 1.65;
}
.hero-actions { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--ink); box-shadow: 0 14px 35px rgba(214,170,82,.2); }
.button-primary:hover { background: var(--gold-light); box-shadow: 0 18px 45px rgba(214,170,82,.3); }
.text-link {
  color: rgba(255,255,255,.84);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-underline-offset: 0.35rem;
}
.text-link:hover { color: var(--gold-light); }
.hero-proof {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  padding: 0 max(6vw, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 19, 30, 0.78);
  border-top: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
}
.hero-proof span {
  color: rgba(255,255,255,.68);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-proof span + span::before { content: "/"; margin-right: clamp(1rem, 5vw, 5rem); color: var(--gold); }

.section { padding: clamp(6rem, 10vw, 9rem) max(6vw, calc((100vw - var(--max)) / 2)); }
.expertise { background: var(--paper); }
.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8vw;
  align-items: end;
  margin-bottom: 4.5rem;
}
.section-heading h2, .perspective-copy h2 { font-size: clamp(2.6rem, 4.7vw, 4.7rem); line-height: 1.02; }
.section-heading > p {
  margin: 0 0 0.35rem;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.8;
}
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.capability-card { position: relative; min-height: 500px; padding: 2.2rem; background: rgba(255,255,255,.26); }
.capability-card + .capability-card { border-left: 1px solid var(--line); }
.capability-card:hover { background: var(--white); }
.card-number {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  color: rgba(7,19,30,.26);
  font-family: var(--display);
  font-size: 0.88rem;
}
.icon-wrap {
  width: 58px;
  height: 58px;
  margin-bottom: 4.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9e782f;
  background: rgba(214,170,82,.13);
}
.icon-wrap svg { width: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.capability-card h3 { margin: 0 0 1rem; font-family: var(--display); font-size: 1.65rem; font-weight: 600; line-height: 1.1; }
.capability-card p { min-height: 106px; margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.65; }
.capability-card ul { margin: 1.5rem 0 0; padding: 1.35rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.capability-card li { position: relative; margin: 0.7rem 0; padding-left: 1rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.03em; }
.capability-card li::before { content: ""; position: absolute; left: 0; top: .47em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.trigger-panel { margin-top: 2rem; padding: 2.3rem 2.5rem; display: grid; grid-template-columns: 0.34fr 1fr; gap: 5vw; background: var(--ink); color: var(--white); }
.trigger-label { margin: 0; color: var(--gold-light); font-family: var(--display); font-size: 1.65rem; line-height: 1.15; }
.trigger-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.trigger-list p { margin: 0; padding: 1rem 0; display: flex; gap: 1rem; color: rgba(255,255,255,.72); font-size: 0.88rem; line-height: 1.5; border-bottom: 1px solid rgba(255,255,255,.12); }
.trigger-list span { color: var(--gold); font-family: var(--display); }

.perspective { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); min-height: 960px; background: var(--ink-2); color: var(--white); }
.perspective-photo { min-height: 620px; background: url("assets/program-leadership.webp") center / cover no-repeat; }
.perspective-copy { padding: clamp(5rem, 9vw, 8.5rem) max(6vw, calc((100vw - var(--max)) / 2)) clamp(5rem, 9vw, 8rem) clamp(3.5rem, 7vw, 7rem); }
.perspective-copy h2 { max-width: 720px; }
.perspective-copy .lead { margin: 2.2rem 0 1rem; color: rgba(255,255,255,.86); font-size: 1.12rem; line-height: 1.75; }
.perspective-copy > p:not(.eyebrow):not(.lead) { color: rgba(255,255,255,.64); line-height: 1.75; }
.credential-row { margin: 2.5rem 0 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.credential-row span { padding: 1.4rem .9rem 1.4rem 0; display: grid; gap: 0.3rem; color: rgba(255,255,255,.5); font-size: 0.62rem; line-height: 1.35; }
.credential-row strong { color: var(--gold-light); font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.contact-card { padding: clamp(2rem, 4vw, 3.4rem); display: grid; grid-template-columns: 1fr auto; gap: 2.2rem; align-items: end; background: var(--gold-light); color: var(--ink); }
.contact-card .eyebrow { margin-bottom: 0.8rem; }
.contact-card h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.3vw, 3.25rem); font-weight: 500; line-height: 1; }
.contact-card p:last-child { max-width: 610px; margin: 1rem 0 0; color: rgba(7,19,30,.7); font-size: 0.88rem; line-height: 1.6; }
.button-dark { background: var(--ink); color: var(--white); white-space: nowrap; }
.button-dark:hover { background: var(--ink-2); }

.site-footer {
  min-height: 160px;
  padding: 2.5rem max(6vw, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: center;
  background: #050d14;
  color: rgba(255,255,255,.48);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 42px; height: 44px; object-fit: cover; mix-blend-mode: screen; }
.footer-brand div { display: grid; gap: .35rem; }
.footer-brand strong { color: var(--white); font-size: 0.77rem; letter-spacing: .12em; }
.footer-brand span { color: rgba(255,255,255,.38); }
.site-footer > p span { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; }
.delay-1 { transition-delay: .11s; }
.delay-2 { transition-delay: .22s; }

@media (max-width: 980px) {
  .site-header { height: 78px; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 11px;
    display: grid;
    align-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.26);
  }
  .menu-toggle span:not(.sr-only) { height: 1px; background: var(--white); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 78px 0 0;
    padding: 3rem 6vw;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: rgba(7,19,30,.99);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .site-nav .nav-cta { margin-top: 1.5rem; padding: 1rem; text-align: center; border: 1px solid var(--gold); }
  .section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: auto; }
  .capability-card + .capability-card { border-left: 0; border-top: 1px solid var(--line); }
  .icon-wrap { margin-bottom: 2.4rem; }
  .capability-card p { min-height: 0; }
  .trigger-panel { grid-template-columns: 1fr; }
  .perspective { grid-template-columns: 1fr; }
  .perspective-photo { min-height: 560px; }
  .perspective-copy { padding: 5rem 6vw; }
  .site-footer { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 1rem; }
  .brand-copy strong { font-size: .82rem; }
  .brand-copy span { font-size: .52rem; }
  .hero { min-height: 1030px; }
  .hero-content { margin-left: 1.25rem; width: calc(100vw - 2.5rem); padding-top: 9.5rem; }
  .hero h1 { font-size: clamp(3rem, 14.5vw, 4.6rem); }
  .hero-scrim { background: linear-gradient(90deg, rgba(3,10,16,.97), rgba(5,15,24,.62)), linear-gradient(0deg, rgba(5,15,24,.75), transparent 55%); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .hero-proof { height: auto; padding: 1rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
  .hero-proof span + span::before { content: none; }
  .section { padding: 5rem 1.25rem; }
  .section-heading { margin-bottom: 3rem; }
  .capability-card { padding: 1.6rem; }
  .trigger-panel { padding: 1.6rem; }
  .trigger-list { grid-template-columns: 1fr; }
  .perspective-photo { min-height: 420px; background-position: 58% center; }
  .perspective-copy { padding: 4.5rem 1.25rem; }
  .credential-row { grid-template-columns: 1fr; }
  .credential-row span + span { border-top: 1px solid rgba(255,255,255,.12); }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .button { width: 100%; }
  .site-footer { padding: 2.5rem 1.25rem; }
}

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