/* Original Flint — styles
   Palette and type are defined once here; everything else reads from them. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/newsreader-latin.v1.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("../assets/fonts/newsreader-italic-latin.v1.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin.v1.woff2") format("woff2");
}

:root {
  --bone: #ebe4d6;
  --bone-deep: #e0d6c4;
  --charcoal: #25211d;
  --tobacco: #77502f;
  --oxblood: #642828;
  --stone: #a59c90;      /* warm gray, on dark grounds */
  --stone-ink: #5c554d;  /* warm gray, on light grounds */
  --ivory: #f3eee5;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 34rem;
  --section: clamp(6rem, 14vw, 12rem);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--charcoal);
}
*, *::before, *::after { box-sizing: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
img, svg { max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:focus-visible, .skip:focus {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ivory); color: var(--charcoal);
  padding: .6rem 1rem; font-size: .875rem;
}
.skip:focus { top: 1rem; }

.wrap { padding-inline: var(--gutter); max-width: 92rem; margin-inline: auto; }

/* Small, widely spaced labels — used only for navigation and section names */
.label, .nav a, .wordmark {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.label { color: var(--stone-ink); margin: .55rem 0 0; }

.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 350;
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Two-column editorial grid: label in a narrow left column, content right */
.grid {
  display: grid;
  grid-template-columns: minmax(9rem, 3fr) 9fr;
  column-gap: var(--gutter);
}
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; row-gap: 1.75rem; }
}

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) 0;
  position: relative;
  z-index: 2;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 450;
  letter-spacing: .34em;
  text-decoration: none;
  margin: 0;
}
.nav {
  display: flex; flex-wrap: wrap; gap: .4rem 2.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  color: var(--stone);
  text-decoration: none;
  padding: .35rem 0;
  transition: color .25s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--ivory); }

.ripples {
  position: absolute;
  right: 0; bottom: 0;
  width: min(92vw, 62rem);
  height: auto;
  color: var(--stone);
  opacity: .32;
  z-index: -1;
}
.ripples circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hero-body {
  margin-top: auto;
  padding: 18vh var(--gutter) clamp(3rem, 9vh, 6rem);
}
.statement {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 330;
  font-size: clamp(2.6rem, 7.6vw, 7.75rem);
  line-height: .98;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin: 0;
}
.statement .line { display: block; }
.statement .turn { padding-left: 1.4em; color: var(--bone-deep); }

.hero-note {
  max-width: 27rem;
  margin: clamp(2.5rem, 6vh, 4.5rem) 0 0 auto;
  margin-right: clamp(0rem, 8vw, 9rem);
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.65;
  border-top: 1px solid rgba(165,156,144,.35);
  padding-top: 1.25rem;
}

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-body { margin-top: 0; padding-top: clamp(4.5rem, 16vh, 8rem); padding-bottom: clamp(4rem, 10vh, 5.5rem); }
  .masthead { flex-direction: column; gap: 1.1rem; }
  .nav { gap: .25rem 1.1rem; }
  .nav a { font-size: .6875rem; letter-spacing: .16em; }
  .statement { max-width: none; font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .statement .turn { padding-left: .6em; }
  .hero-note { margin-left: 0; margin-right: 0; }
  .ripples { width: 150vw; right: -40vw; opacity: .4; }
}

/* Load sequence: the strike, then the words. Only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .ripples circle { animation: strike 2.4s cubic-bezier(.2,.7,.2,1) both; }
  .js .ripples circle:nth-child(2) { animation-delay: .08s; }
  .js .ripples circle:nth-child(3) { animation-delay: .16s; }
  .js .ripples circle:nth-child(4) { animation-delay: .24s; }
  .js .ripples circle:nth-child(5) { animation-delay: .32s; }
  .js .ripples circle:nth-child(6) { animation-delay: .40s; }
  .js .ripples circle:nth-child(7) { animation-delay: .48s; }
  .js .ripples circle:nth-child(8) { animation-delay: .56s; }
  .js .ripples circle:nth-child(9) { animation-delay: .64s; }
  .js .statement .line { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both .5s; }
  .js .statement .turn { animation-delay: .8s; }
  .js .hero-note { animation: fade 1.2s ease both 1.4s; }
}
@keyframes strike { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ───────────── What we believe ───────────── */
.belief { padding: var(--section) 0 calc(var(--section) * .8); }
.belief-body { max-width: 44rem; }
.belief-body .display { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.belief-body p:not(.display) {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.45;
  font-weight: 350;
  max-width: 32ch;
}
.belief-body p:nth-of-type(2) { margin-left: clamp(0rem, 8vw, 7rem); }
.belief-body .triad { margin-left: clamp(0rem, 16vw, 14rem); color: var(--tobacco); }

.coda {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: right;
  margin-top: clamp(4rem, 9vw, 8rem);
  margin-bottom: 0;
  color: var(--oxblood);
}

/* ───────────── Ventures ───────────── */
.ventures { padding-top: calc(var(--section) * .6); border-top: 1px solid rgba(37,33,29,.18); }
.ventures-head { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.venture { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.venture-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  column-gap: var(--gutter);
  align-items: end;
}
.venture-copy { max-width: var(--measure); }
.venture-copy p { margin-bottom: 1em; }
.tagline {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 1rem 0 0;
}

/* Westside Adjacent: warm, domestic, set in a quiet italic serif */
.wa { background: var(--bone-deep); }
.wa-name { line-height: 0; }
.wa-name img { display: block; width: min(100%, 38rem); height: auto; }
.wa .tagline { color: var(--tobacco); }
.wa .venture-copy { color: #3b352f; }

/* KHOAS: outward-bound, set in wide tracked sans on oxblood */
.khoas { background: var(--oxblood); color: var(--ivory); }
.khoas .venture-grid { grid-template-columns: 5fr 7fr; }
.khoas .venture-id { order: 2; text-align: right; }
.khoas .venture-copy { order: 1; color: #e7d9cf; }
.khoas-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 9rem);
  letter-spacing: .14em;
  line-height: .9;
  margin-right: -.14em; /* optically align tracked caps to the right edge */
}
.khoas .tagline { font-style: italic; }
.where {
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d4bfb3;
  margin-top: 2rem;
}

.out {
  display: inline-block;
  font-size: .9375rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .15rem;
  margin-top: 1rem;
  transition: color .25s ease;
}
.out:hover { color: var(--tobacco); }
.khoas .out { color: var(--ivory); margin-top: .25rem; }
.khoas .out:hover { color: #d4bfb3; }

@media (max-width: 760px) {
  .venture-grid, .khoas .venture-grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .khoas .venture-id { order: 0; text-align: left; }
  .khoas-name { margin-right: 0; }
}

/* ───────────── How we work ───────────── */
.approach { padding: var(--section) 0 calc(var(--section) * .8); }
.approach-body .display { margin-bottom: clamp(2rem, 4vw, 3rem); }
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem var(--gutter);
  max-width: 54rem;
}
.cols p { margin: 0; }
.pull {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  font-weight: 350;
  max-width: 24ch;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--oxblood);
}
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 1.1em; } }

/* ───────────── Founder ───────────── */
.founder { padding: 0 0 var(--section); }
.founder .grid { border-top: 1px solid rgba(37,33,29,.18); padding-top: clamp(4rem, 8vw, 7rem); }
.founder-body { max-width: var(--measure); }
.founder-body .display { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.founder-close {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  font-weight: 350;
  margin-top: 1.75rem;
}
.founder-links { margin: 2rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .85rem; color: var(--stone-ink); }
.founder-links a {
  color: var(--charcoal);
  font-size: .9375rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding: .35rem 0 .15rem;
  transition: color .25s ease;
}
.founder-links a:hover { color: var(--tobacco); }

/* ───────────── Contact & footer ───────────── */
.close { background: var(--charcoal); color: var(--ivory); }
.contact { padding-top: var(--section); padding-bottom: calc(var(--section) * .8); }
.contact .display { max-width: 14ch; font-size: clamp(2.4rem, 6.4vw, 5.75rem); }
.contact p { color: var(--stone); max-width: 30rem; margin-top: 2rem; }
.email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  padding-bottom: .2rem;
  transition: border-color .25s ease;
}
a.email:hover { border-color: var(--ivory); }

.colophon {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 1rem 2.5rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(165,156,144,.3);
  color: var(--stone);
  font-size: .875rem;
}
.colophon p { margin: 0; }
.colophon .wordmark { color: var(--ivory); font-size: .8125rem; }
.motto { font-family: var(--serif); font-style: italic; font-size: 1rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.foot-links a { display: inline-block; padding: .4rem 0; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease; }
.foot-links a:hover { color: var(--ivory); border-color: currentColor; }

@media (max-width: 760px) {
  .colophon { grid-template-columns: 1fr; gap: .6rem; }
  .colophon .copy { margin-top: 1rem; }
}

@media print {
  .hero, .close, .khoas { background: none; color: #000; }
  .ripples, .nav { display: none; }
}

[tabindex="-1"]:focus { outline: none; }
