/* =========================================================
   MR23 FOUNDATION LANE — styles for /foundation only
   FIELD MODERN re-skin, November 2026.

   This file used to be the previous site's "Road Log" stylesheet
   (1,768 lines, two extra fonts, cream-and-rust palette). It now
   holds only the layout for the foundation page, written on the
   site tokens (src/styles/tokens.css) and on the global primitives
   the shared Layout loads on every page: .container, .section,
   .section--plate, .section-head, .t-display, .t-h3, .t-data,
   .btn, .u-link, .media, .reveal.

   Rules for editing:
   · Everything is scoped under .fnd (the wrapper in
     src/data/foundation-main.html). Nothing here can reach the
     shared Nav or Footer, and every rule out-ranks the global
     sheet whichever order the two files load in.
   · New classes start with fnd-.
   · This file is NOT fingerprinted and /assets/* is cached for a
     year: bump ?v= in src/pages/foundation.astro on every edit.
   · One accent (blaze), square corners, 1px hairlines, no shadows,
     no gradients except image scrims. Mono (.t-data) is for true
     data only: places, dates, counts.
   ========================================================= */

.fnd ol,
.fnd dl,
.fnd dd,
.fnd figure { margin: 0; padding: 0; }
.fnd ol { list-style: none; }

/* Label voice: Barlow caps for things that are not data
   (section names, form labels). Data stays in .t-data. */
.fnd .fnd-label {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-70);
}
.fnd .section--plate .fnd-label { color: var(--plate-ink-64, rgba(15, 19, 17, 0.64)); }
/* phones: labels and eyebrows read at 14px */
@media (max-width: 767px) {
  .fnd .fnd-label { font-size: 0.875rem; }
}

/* ---------- section heads: name above, headline, data on the right ---------- */
.fnd .section-head { align-items: flex-end; }
.fnd .fnd-head { display: grid; gap: var(--sp-1); min-width: 0; }
.fnd .fnd-head h2 { text-wrap: balance; }
.fnd .fnd-nowrap { white-space: nowrap; }
.fnd .fnd-meta-line { display: block; }
.fnd .fnd-head-meta { padding-bottom: 0.5em; text-align: right; }
@media (max-width: 900px) {
  .fnd .section-head { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .fnd .fnd-head-meta { padding-bottom: 0; text-align: left; }
}

/* =========================================================
   HERO — a plate: name, line, then the camp, edge to edge
   ========================================================= */
.fnd .fnd-hero { position: relative; }
.fnd .fnd-hero-copy {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 4vw, 56px) clamp(32px, 3vw, 40px);
}
.fnd .fnd-hero-copy > .container { position: relative; }
.fnd .fnd-hero-text { position: relative; z-index: 1; }

/* The foundation emblem, large and faded. It sits behind the headline
   on the open field, never over the photograph. */
.fnd .fnd-hero-mark {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: var(--gutter);
  height: 116%;
  aspect-ratio: 1240 / 1469;
  max-width: none;
  transform: translateY(-50%);
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
}
.fnd .fnd-hero-mark img { width: 100%; height: 100%; object-fit: contain; }
/* Wide screens: the headline's first line runs most of the way across, so
   the emblem sits low in the corner, beside the lede and the buttons,
   instead of under the slab type. */
@media (min-width: 1100px) {
  .fnd .fnd-hero-mark {
    top: auto;
    bottom: 0;
    height: 68%;
    transform: none;
  }
}

.fnd .fnd-eyebrow { color: var(--bone); }
.fnd .fnd-h1 {
  margin-top: var(--sp-2);
  font-size: clamp(2.6rem, 13.4vw, 3.75rem);
  /* with wider letter spacing a long word breaks instead of running off the column */
  overflow-wrap: anywhere;
}
.fnd .fnd-h1 span { display: block; }
.fnd .fnd-lede {
  margin-top: var(--sp-3);
  max-width: 54ch;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--bone);
}
.fnd .fnd-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.fnd .fnd-ctas .btn { min-height: 48px; }

@media (min-width: 560px) {
  .fnd .fnd-h1 { font-size: clamp(3.4rem, 9.6vw, 6.5rem); }
}
/* short laptop screens: keep the camp in view under the headline */
@media (min-width: 1100px) and (max-height: 820px) {
  .fnd .fnd-hero-copy { padding-block: var(--sp-4) var(--sp-3); }
  .fnd .fnd-h1 { font-size: 5.5rem; }
  .fnd .fnd-lede { margin-top: var(--sp-2); }
  .fnd .fnd-ctas { margin-top: var(--sp-3); }
}
@media (max-width: 767px) {
  .fnd .fnd-hero-mark {
    top: 40%;
    height: auto;
    width: min(60vw, 300px);
    opacity: 0.1;
  }
}

/* The camp photograph. Full bleed, cropped by aspect ratio per width;
   aspect-ratio and object-fit sit on the img itself. */
.fnd .fnd-hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--field-800);
}
.fnd .fnd-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 48% 50%;
}
@media (min-width: 561px) {
  .fnd .fnd-hero-photo img { aspect-ratio: 3 / 2; }
}
@media (min-width: 768px) {
  .fnd .fnd-hero-photo img { aspect-ratio: 2 / 1; object-position: 48% 84%; }
}
@media (min-width: 1100px) {
  .fnd .fnd-hero-photo img { aspect-ratio: 2.8 / 1; max-height: 720px; object-position: 48% 75%; }
}
/* image scrim: only under the caption, on the gym floor */
.fnd .fnd-hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(15, 19, 17, 0) 0%, rgba(15, 19, 17, 0.82) 100%);
  pointer-events: none;
}
.fnd .fnd-hero-cap {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  padding-block: var(--sp-2);
}
@media (prefers-reduced-motion: no-preference) {
  .fnd .fnd-hero-photo img { animation: fnd-settle 1100ms ease-out both; }
}
@keyframes fnd-settle {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

/* =========================================================
   MISSION — words and four true figures, one portrait
   ========================================================= */
.fnd .fnd-split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 720px) {
  .fnd .fnd-split { grid-template-columns: 1fr; }
}
/* Mission: words at the top of the column, the four figures on the
   portrait's bottom edge. */
.fnd .fnd-split--mission { align-items: stretch; }
.fnd .fnd-mission-copy { display: grid; align-content: space-between; gap: var(--sp-6); }
.fnd .fnd-prose { display: grid; gap: var(--sp-3); max-width: 56ch; }
.fnd .fnd-prose p { color: var(--bone-70); }
.fnd .fnd-prose .fnd-lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--bone);
}

.fnd .fnd-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4) var(--sp-3);
}
.fnd .fnd-fig {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--sp-1);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--steel-25);
}
.fnd .fnd-fig dd {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800;
  font-synthesis-weight: none;
  font-size-adjust: var(--display-adjust);
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  line-height: var(--display-leading);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bone);
}

.fnd .fnd-figure { width: 100%; }
.fnd .fnd-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* =========================================================
   OUR STORY — the page's one light section
   ========================================================= */
.fnd .fnd-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.fnd .fnd-story-figure {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-3));
  order: 2;
  background: rgba(15, 19, 17, 0.06);
}
@media (max-width: 760px) {
  .fnd .fnd-story-grid { grid-template-columns: 1fr; }
  .fnd .fnd-story-figure { position: static; order: 0; }
  /* stacked: a wide crop from the top keeps the raised hand and his face */
  .fnd .fnd-story-figure img { aspect-ratio: 4 / 3; }
}

.fnd .fnd-timeline { border-top: 1px solid var(--plate-ink-35, rgba(15, 19, 17, 0.35)); }
.fnd .fnd-row {
  display: grid;
  grid-template-columns: clamp(104px, 11vw, 136px) minmax(0, 1fr);
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--steel-25);
}
.fnd .fnd-row:last-child { border-bottom-color: var(--plate-ink-35, rgba(15, 19, 17, 0.35)); }
.fnd .fnd-when { display: grid; gap: 6px; align-content: start; }
.fnd .fnd-year {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800;
  font-synthesis-weight: none;
  font-size-adjust: var(--display-adjust);
  font-size: clamp(2.2rem, 3.6vw, 2.75rem);
  line-height: var(--display-leading);
  letter-spacing: 0.01em;
  color: var(--plate-ink);
}
/* No font-size-adjust (Safari 16, older Chrome): the same fallback as
   .t-display in src/styles/global.css (~0.74 scale, real 1.03 leading). */
@supports not (font-size-adjust: 0.41) {
  .fnd .fnd-fig dd,
  .fnd .fnd-year { zoom: 0.74; }
}
.fnd .fnd-row-body { display: grid; gap: var(--sp-1); align-content: start; }
.fnd .fnd-row-body h3 { color: var(--plate-ink); }
.fnd .fnd-row-body p {
  max-width: 58ch;
  color: var(--plate-ink-72, rgba(15, 19, 17, 0.72));
}
/* marks the rows that belong to the foundation, not the career */
.fnd .fnd-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--plate-ink-85, rgba(15, 19, 17, 0.85));
}
.fnd .fnd-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
}
@media (max-width: 640px) {
  .fnd .fnd-row { grid-template-columns: 1fr; gap: var(--sp-2); padding-block: var(--sp-3); }
  .fnd .fnd-when { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: var(--sp-2); }
}

/* =========================================================
   CAMP PHOTOS — one card per gallery, each with its camp photo
   ========================================================= */
.fnd .fnd-camp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6) var(--sp-4);
}
@media (max-width: 760px) {
  .fnd .fnd-camp-grid { grid-template-columns: 1fr; }
}
.fnd .fnd-camp {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  align-content: start;
  justify-items: start;
}
.fnd .fnd-camp-media { width: 100%; }
.fnd .fnd-camp-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.fnd .fnd-camp-name { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.fnd .fnd-camp-blurb { max-width: 46ch; color: var(--bone-70); }
.fnd .fnd-camp-go { min-height: 48px; margin-top: var(--sp-1); }
/* the whole card opens the gallery page; one link, one tab stop */
.fnd .fnd-camp-go::after { content: ""; position: absolute; inset: 0; }
.fnd .fnd-camp--live:hover .fnd-camp-media img { transform: scale(1.02); }
.fnd .fnd-camp--live:hover .fnd-camp-go { border-color: var(--bone-70); }
.fnd .fnd-camp-off {
  width: 100%;
  margin-top: var(--sp-1);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--steel-25);
  color: var(--bone-70);
}
.fnd .fnd-note {
  max-width: 60ch;
  margin-top: var(--sp-6);
  font-size: 0.95rem;
  color: var(--bone-70);
}
.fnd .fnd-note a,
.fnd .fnd-follow a {
  color: var(--bone);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* =========================================================
   CONNECT — form on the field
   ========================================================= */
.fnd .fnd-connect { border-top: 1px solid var(--steel-12); }
/* The form needs its width: this split stacks earlier than the mission
   one, and the full-length portrait becomes a band (head to shin). */
@media (max-width: 900px) {
  .fnd .fnd-split--form { grid-template-columns: 1fr; }
  .fnd .fnd-split--form .fnd-figure img { aspect-ratio: 3 / 2; object-position: 50% 70%; }
}
.fnd .fnd-connect-intro { max-width: 46ch; color: var(--bone-70); }
.fnd .fnd-form {
  display: grid;
  gap: var(--sp-3);
  max-width: 560px;
  margin-top: var(--sp-4);
}
.fnd .fnd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 560px) {
  .fnd .fnd-grid-2 { grid-template-columns: 1fr; gap: var(--sp-3); }
}
.fnd .fnd-field { display: grid; gap: var(--sp-1); }
.fnd .fnd-field input,
.fnd .fnd-field select,
.fnd .fnd-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--bone);
  background-color: var(--field-800);
  border: 1px solid var(--bone-45);
  border-radius: var(--r-btn);
}
.fnd .fnd-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23EDEAE3' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.fnd .fnd-field textarea { min-height: 144px; resize: vertical; }
.fnd .fnd-field input::placeholder,
.fnd .fnd-field textarea::placeholder { color: var(--bone-70); }
.fnd .fnd-field input:hover,
.fnd .fnd-field select:hover,
.fnd .fnd-field textarea:hover { border-color: var(--bone-70); }
.fnd .fnd-field [aria-invalid="true"],
.fnd .fnd-field [aria-invalid="true"]:hover { border-color: var(--bone); }
.fnd .fnd-form .btn { min-height: 48px; justify-self: start; }
/* "Sending" and "Message sent" are states to read, not a dimmed control */
.fnd .fnd-form .btn:disabled { opacity: 1; cursor: default; background: var(--field-700); color: var(--bone); }
.fnd .fnd-form-note { min-height: 1.5em; font-size: 0.95rem; color: var(--bone); }
/* focused by script after a send, so the reader's place stays in the form */
.fnd .fnd-form-note:focus { outline: none; }
/* Honeypot: off screen, out of the tab order (see the markup) */
.fnd .fnd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fnd .fnd-follow {
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--steel-12);
  max-width: 560px;
  color: var(--bone-70);
}

@media (prefers-reduced-motion: reduce) {
  .fnd .fnd-camp--live:hover .fnd-camp-media img { transform: none; }
}
