/* ============================================================
   TAK Holdings
   Midwest search fund — deep navy ink, forest green accent,
   warm cream paper. Georgia sets the voice; Geist does the work.
   ============================================================ */

:root {
  /* Ink */
  --navy:      #0b2435;   /* headlines, dark bands */
  --navy-deep: #081c2a;
  --ink:       #102938;   /* body copy */
  --ink-soft:  #40545b;
  --ink-mute:  #607075;

  /* Accent */
  --green:      #1b574d;
  --green-deep: #123e37;
  --sage:       #8da792;

  /* Paper */
  --cream:  #f5f1e9;
  --paper:  #fbfaf6;

  /* Lines */
  --line:       #d9ded7;
  --line-warm:  #e4dfd5;
  --hair-light: rgba(255, 255, 255, 0.16);

  /* On dark */
  --on-dark:      #ffffff;
  --on-dark-soft: #adc0c6;
  --on-dark-mute: #91a2aa;
  --on-dark-accent: #91b1a5;

  /* Type */
  --serif: Georgia, "Times New Roman", "Nimbus Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Rhythm */
  --shell:  1160px;
  --gutter: 48px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
.criteria :focus-visible,
.contact :focus-visible,
.thesis-card :focus-visible { outline-color: var(--sage); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 16px; }

.shell {
  width: min(var(--shell), calc(100% - var(--gutter)));
  margin-inline: auto;
}

/* ---------- Shared type ---------- */
.eyebrow,
.section-label,
.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--green); flex: none; }
.section-label--light { color: var(--on-dark-accent); }

h1, h2, .thesis-quote {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(3.375rem, 6.5vw, 5.875rem);
  line-height: 0.94;
  margin: 30px 0 28px;
  color: var(--navy);
}
/* Sized to sit inside a half-width column without orphaning a word. */
h2 {
  font-size: clamp(2.25rem, 4vw, 3.375rem);
  line-height: 1.06;
  margin-top: 24px;
  color: var(--navy);
}
h1 em, .thesis-quote em { font-style: italic; color: var(--green); }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 15px 20px;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.button:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-1px);
}
.button--small { padding: 11px 15px; gap: 15px; }
.button--light {
  background: #fff;
  border-color: #fff;
  color: var(--green);
  min-width: 170px;
}
.button--light:hover { background: var(--cream); border-color: var(--cream); color: var(--green); }

.text-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid rgba(27, 87, 77, 0.55);
  padding: 8px 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link:hover { color: var(--green); border-color: var(--green); }

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
}
.brand__mark { width: 42px; height: 42px; }

/* ---------- Masthead ---------- */
/* Sits above the mobile panel so the toggle stays reachable to close it. */
.masthead {
  position: relative;
  z-index: 45;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  color: #4b5c61;
}
.nav a { transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--green); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 84px 0 0 0;          /* clears the masthead */
  z-index: 40;
  background: var(--navy);
  color: #fff;
  padding: 44px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
/* `display: flex` above out-specifies the UA's [hidden] rule — restore it. */
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav a:not(.button) {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-light);
}
.mobile-nav .button { margin-top: 32px; align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  background: var(--cream);
  border-top: 1px solid var(--line-warm);
}
/* Concentric hairline rings — the mark's motif, blown up */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(27, 87, 77, 0.15);
  border-radius: 50%;
  right: -180px;
  top: -155px;
  width: 610px;
  height: 610px;
}
.hero::after { width: 410px; height: 410px; right: -70px; top: -55px; }

.hero__glow {
  position: absolute;
  inset: auto -8% -60% 45%;
  height: 600px;
  background: radial-gradient(ellipse, rgba(94, 143, 121, 0.12), transparent 67%);
  pointer-events: none;
}

/* Chicago over the lake, duotoned to a pale sage and dissolved into the
   paper — texture at the foot of the hero, not a photographic background. */
.hero__skyline {
  position: absolute;
  inset: auto 0 0 0;
  height: min(60%, 440px);
  background: url("assets/skyline.jpg") no-repeat center bottom / cover;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 46%);
  mask-image: linear-gradient(to bottom, transparent, #000 46%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 100px;
  align-items: center;
  padding: 92px 0 78px;
}
/* The skyline rises behind this column, so float the copy on a soft cream
   haze — keeps the small links legible without cropping the silhouette. */
.hero__copy { position: relative; z-index: 0; }
.hero__copy::before {
  content: "";
  position: absolute;
  inset: -60px -90px -70px -70px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 32% 58%,
    rgba(245, 241, 233, 0.97) 0%,
    rgba(245, 241, 233, 0.88) 42%,
    rgba(245, 241, 233, 0) 76%
  );
}

.hero__lede {
  max-width: 620px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.thesis-card {
  background: var(--navy);
  color: #fff;
  padding: 38px 36px;
  box-shadow: 0 25px 70px rgba(11, 36, 53, 0.17);
}
.thesis-card .card-kicker { color: #94b5aa; }
.thesis-quote {
  font-size: 28px;
  line-height: 1.34;
  letter-spacing: -0.025em;
  margin: 30px 0;
}
.thesis-quote em { color: #a8c7b6; }
.card-rule { height: 1px; background: rgba(255, 255, 255, 0.18); margin-bottom: 15px; }
.focus-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.focus-row span { color: var(--on-dark-mute); }
.focus-row strong { font-weight: 600; }

/* The skyline runs behind this band, so lay a cream scrim over it — the city
   still reads above the rule, the map glyphs stay crisp. */
.region-line {
  position: relative;
  z-index: 1;
  padding: 34px 0 30px;
  border-top: 1px solid #cfc9be;
}
.region-line::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: rgba(247, 244, 237, 0.74);
  z-index: -1;
}
.regions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 18px clamp(1.375rem, 3.6vw, 3.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.region {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
/* The five state glyphs share one viewBox and one cartographic scale, so a
   single height keeps their sizes true relative to each other. The US outline
   has its own viewBox and is fitted to the same height. */
.region__map {
  height: 44px;
  width: auto;
  fill: #4f7d70;
}
.region__map--us { fill: #9fb3a6; }
.region span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #687576;
  text-align: center;
}
.region--us {
  padding-left: clamp(1.375rem, 3.6vw, 3.25rem);
  border-left: 1px solid #dad5cc;
}

/* ============================================================
   APPROACH
   ============================================================ */
.section { padding: 120px 0; }

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: end;
}
.intro__copy {
  color: #4d6066;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}
.intro__copy p + p { margin-top: 1em; }
.intro__copy p:first-child {
  font-size: 23px;
  line-height: 1.5;
  color: var(--ink);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin-bottom: 120px;
}
.principle { padding: 42px 40px 48px 0; }
.principle + .principle { border-left: 1px solid var(--line); padding-left: 40px; }
.principle__number { font-family: var(--serif); font-size: 13px; color: var(--sage); }
.principle h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 30px 0 14px;
}
.principle p { font-size: 14px; line-height: 1.7; color: var(--ink-mute); }

/* ============================================================
   CRITERIA
   ============================================================ */
.criteria {
  background: var(--navy);
  color: #fff;
  padding: 115px 0;
}
.criteria__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 110px;
}
.criteria h2, .contact h2 { color: #fff; }
.criteria__lede {
  max-width: 430px;
  margin-top: 30px;
  color: var(--on-dark-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}
.criteria__list > div {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.criteria__list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.criteria__list span { color: #83a79b; font-family: var(--serif); font-size: 13px; }
.criteria__list p { color: #aebfc4; font-size: 14px; line-height: 1.6; }
.criteria__list strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.contact {
  background: var(--green);
  color: #fff;
  text-align: center;
}
.contact__inner {
  max-width: 790px;
  padding: 105px 0 110px;
}
.contact h2 { margin: 22px 0; }
.contact__text {
  max-width: 610px;
  margin: 0 auto 34px;
  color: #c6d8d1;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}
.footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #6d7a7d;
  font-size: 11px;
}
.footer .brand { color: var(--ink); }
.footer__legal { text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================================
   404
   ============================================================ */
.error {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.error::before {
  content: "";
  position: absolute;
  border: 1px solid rgba(27, 87, 77, 0.15);
  border-radius: 50%;
  width: 620px;
  height: 620px;
  right: -200px;
  bottom: -240px;
}
.error__top, .error__foot { position: relative; z-index: 1; }
.error__top { padding: 21px 0; }
.error__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.error__code {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: rgba(27, 87, 77, 0.18);
  margin: 24px 0 -12px;
}
.error__text {
  max-width: 460px;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.error__actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.error__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 28px 0;
  border-top: 1px solid #dad5cc;
  color: #687576;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.error__foot a:hover { color: var(--green); }

/* ============================================================
   REVEAL
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.shot .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.shot .hero { min-height: 760px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 850px) {
  .nav, .masthead > .button { display: none; }
  .menu-toggle { display: flex; }

  .hero__grid, .intro, .criteria__grid { grid-template-columns: 1fr; gap: 55px; }
  .hero__grid { padding-top: 65px; }
  .hero { min-height: auto; }
  .thesis-card { max-width: 500px; }
  .region__map { height: 38px; }
  /* Once the row wraps, a left rule just dangles. */
  .region--us { padding-left: 0; border-left: 0; }

  .principles { grid-template-columns: 1fr; }
  .principle { padding: 35px 0; }
  .principle + .principle {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  :root { --gutter: 32px; }
  .brand > span:last-child { display: none; }
  h1 { font-size: 3.375rem; }
  .hero__grid { padding: 50px 0 55px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .text-link { align-self: flex-start; }
  .region__map { height: 30px; }
  .region { gap: 9px; }
  .regions { gap: 16px 20px; }
  .region--us { padding-left: 20px; }
  .section { padding: 82px 0; }
  .principles { margin-bottom: 82px; }
  .criteria { padding: 82px 0; }
  .criteria__grid { gap: 60px; }
  .mobile-nav a:not(.button) { font-size: 28px; }
  .error__actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 34px 0;
  }
}

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