/* THE TRAIL · concept page in the landonorris.com structure, restated in the
   Kyler brand system: Sequoia palette, Space Grotesk + Hanken Grotesk,
   topographic contour lines where he uses squiggles. Interactive like his:
   scroll reveals, hover states, hero parallax, all vanilla,
   all disabled under prefers-reduced-motion. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-italic.woff2") format("woff2");
}

:root {
  --fog: #E5E9EA;
  --paper: #F2F4F4;
  --charcoal: #1B2A20;
  --deep-pine: #244836;
  --pine: #3C6149;
  --sage: #4F6C59;
  --moss: #799583;
  --ink: #36433E;
  --muted: #60696A;
  --line: rgba(27, 42, 32, 0.14);
  --line-dark: rgba(229, 233, 234, 0.16);
  --head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fog); color: var(--ink);
  font-family: var(--body); font-size: clamp(16.5px, 1.05vw, 18px);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
/* pine reads on fog and charcoal alike; charcoal-on-charcoal was invisible */
::selection { background: var(--pine); color: var(--fog); }

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

/* topo contour layer behind every section */
.topo { position: relative; }
.topo > * { position: relative; z-index: 1; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("/trail/img/topo-dark.svg?v=2") 50% 0 / 1320px 860px repeat;
  pointer-events: none;
}
.topo-light::before { background-image: url("/trail/img/topo-light.svg?v=2"); }

/* ---- scroll reveals ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- fixed controls: pill left, nav right (desktop), burger (mobile) ---- */
.pill {
  position: fixed; top: 18px; left: 18px; z-index: 40;
  display: inline-block; padding: 13px 20px;
  background: var(--deep-pine); color: var(--fog);
  font-family: var(--head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.25s ease;
}
.pill:hover { background: var(--pine); }
/* bare links; difference blend keeps them legible on fog and charcoal alike */
.nav {
  position: fixed; top: 18px; right: clamp(18px, 3vw, 40px); z-index: 40;
  display: flex; align-items: center; gap: 26px;
  padding: 13px 0; mix-blend-mode: difference;
}
.nav a {
  font-family: var(--head); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  color: var(--fog); transition: opacity 0.2s ease;
}
.nav a:hover { opacity: 0.55; }
.burger {
  position: fixed; top: 18px; right: 18px; z-index: 60;
  width: 46px; height: 46px; padding: 0; cursor: pointer;
  background: none; border: 0;
  display: none; place-items: center;
  mix-blend-mode: difference;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger span { display: block; width: 20px; height: 1.5px; background: var(--fog); margin: 2px 0; transition: transform 0.25s ease, opacity 0.2s ease; }
/* slips away on scroll down, returns on the first scroll up */
.burger-hide .burger { transform: translateY(-160%); opacity: 0; pointer-events: none; }
.menu-open .burger { transform: none; opacity: 1; pointer-events: auto; mix-blend-mode: normal; }
.menu-open .burger span { background: var(--fog); }
.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
}

/* ---- mobile menu overlay ---- */
.menu { position: fixed; inset: 0; z-index: 50; display: none;
  background: var(--charcoal); color: var(--fog); overflow-y: auto; }
.menu-open .menu { display: block; }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad); }
.menu-kicker { font-family: var(--head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--moss); }
.menu-main { list-style: none; margin: 18px 0 0; padding: 0; }
.menu-main a { display: block; padding: 16px 0; text-decoration: none;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 8vw, 3.2rem); line-height: 1.05;
  border-bottom: 1px solid var(--line-dark); }
.menu-main a small { display: block; font-family: var(--body); font-weight: 400;
  text-transform: none; font-size: 0.95rem; color: rgba(229,233,234,0.72); margin-top: 6px; }
.menu-rest { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.menu-rest a { font-family: var(--head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: rgba(229,233,234,0.78); }

/* ---- kickers, mixed type ---- */
.kicker { font-family: var(--head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); }
.dark .kicker { color: var(--moss); }
.serif { font-weight: 500; }

/* ---- HERO: full viewport, giant cutout over the name ---- */
/* z-index 0 isolates the hero's stacking: the sections that follow paint
   over anything that leaks past its bottom edge, so the figure is clipped
   exactly at the top of the green page. */
.hero {
  height: 92vh; height: 92svh; min-height: 580px;
  display: flex; flex-direction: column;
  padding-top: clamp(80px, 10vh, 112px);
  z-index: 0;
}
.hero-stage { position: relative; flex: 1; min-height: 0; margin-top: clamp(8px, 1.2vh, 18px); }
/* the wordmark, at architectural scale: same face, weight, and tracking as
   the site header KYLER */
.hero-name {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0;
  margin: 0; text-align: center;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(4rem, 13.5vw, 12.5rem); line-height: 0.96; letter-spacing: 0.06em;
  color: var(--charcoal); white-space: nowrap;
}
/* The figure runs past the hero's bottom edge, and the dark section that
   follows paints over the excess: the body is cut exactly at the top of the
   green page, as if he continues behind it. */
.hero-cut {
  position: absolute; z-index: 1; left: 50%;
  bottom: calc(-1 * clamp(56px, 11vh, 130px));
  transform: translateX(-50%);
  height: min(114%, 980px); aspect-ratio: 1502 / 2190;
  max-width: 88vw;
  will-change: transform;
}
.hero-cut img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }

/* the next-climb element: no box, just a quiet stack pinned lower-left */
.hero-next {
  position: absolute; left: clamp(18px, 4vw, 56px); bottom: clamp(22px, 5vh, 54px);
  z-index: 2; text-decoration: none; display: block; max-width: 210px;
}
.hero-next .emblem { display: block; width: 74px; height: auto; margin: 12px 0 10px; }
.hero-next strong { display: block; font-family: var(--head); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--charcoal); }
.hero-next em { display: block; margin-top: 3px; font-style: normal;
  font-family: var(--head); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.hero-next .go { display: inline-block; margin-top: 10px; font-family: var(--head);
  font-weight: 600; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--deep-pine); border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color 0.2s ease; }
.hero-next:hover .go { color: var(--pine); }

/* the role line: pinned lower-right, balancing the next-climb stack */
.hero-roles {
  position: absolute; right: clamp(18px, 4vw, 56px); bottom: clamp(22px, 5vh, 54px);
  z-index: 2; text-align: right;
  font-family: var(--head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-roles { animation: soft-in 0.7s ease 1.3s both; }
}
@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; }
  .hero-stage { display: flex; flex-direction: column; min-height: 72svh; }
  .hero-name { position: static; order: 1; }
  .hero-next { position: static; order: 2; margin: 26px auto 0; text-align: center; }
  .hero-next .emblem { margin-inline: auto; }
  .hero-roles { position: static; order: 3; margin: 18px auto 0; text-align: center; }
  .hero-cut { position: static; order: 4; transform: none;
    margin: 6vw auto calc(-1 * clamp(40px, 9vw, 80px));
    height: auto; width: min(76vw, 420px); aspect-ratio: auto; z-index: 1; }
  .hero-cut img { width: 100%; height: auto; }
}

/* ---- hero entrance choreography ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-name { overflow: hidden; }
  .hero-name .line { display: inline-block;
    animation: name-up 1s cubic-bezier(0.16, 0.8, 0.24, 1) 0.12s both; }
  @keyframes name-up {
    from { transform: translateY(110%); }
    to   { transform: none; }
  }
  .hero-cut img { animation: cut-rise 1.1s cubic-bezier(0.16, 0.8, 0.24, 1) 0.45s both; }
  @keyframes cut-rise {
    from { opacity: 0; transform: translateY(70px); }
    to   { opacity: 1; transform: none; }
  }
  .hero-next { animation: soft-in 0.7s ease 1.15s both; }
  @keyframes soft-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- scroll-lit statement: words catch light as the page moves ---- */
.statement { color: rgba(229, 233, 234, 0.16); }
.statement .w, .statement .w.serif { color: rgba(229, 233, 234, 0.16); transition: color 0.4s ease; }
.statement .w.lit { color: var(--fog); }
.statement .w.serif.lit { color: var(--moss); }

/* ---- message ---- */
.dark { background: var(--charcoal); color: rgba(229, 233, 234, 0.85); }
.message { padding: clamp(72px, 9vw, 120px) 0; }
.msg-grid { display: grid; grid-template-columns: 1fr minmax(0, 340px) 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center; }
.msg-figure img { transition: transform 0.5s ease; }
.msg-figure:hover img { transform: scale(1.02); }
.msg-side { max-width: 40ch; }
.msg-side p { margin: 0 0 1em; }
.statement {
  margin: clamp(48px, 6vw, 84px) auto 0; max-width: 24ch; text-align: center;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.4vw, 3.8rem); line-height: 1.12; letter-spacing: 0.01em;
  color: var(--fog); text-wrap: balance;
}
.statement .serif { color: var(--moss); }
@media (max-width: 900px) {
  .msg-grid { display: block; }
  .msg-figure { width: min(70vw, 330px); margin-inline: auto; }
  .msg-side { margin: 26px auto 0; text-align: center; }
}

/* ---- the route: staggered journal ---- */
.route { padding: clamp(76px, 10vw, 140px) 0; }
.route-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 18px 40px; margin-bottom: clamp(48px, 6vw, 80px); }
h2.section {
  margin: 0; font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 6.4vw, 5.2rem); line-height: 0.96; letter-spacing: 0.01em;
  color: var(--charcoal);
}
h2.section .serif { display: block; color: var(--pine); font-size: 0.9em; }
.section-note { max-width: 34ch; font-size: 0.98rem; color: var(--muted); margin: 0; }
.dark h2.section { color: var(--fog); }
.dark h2.section .serif { color: var(--moss); }
.dark .section-note { color: rgba(229, 233, 234, 0.66); }

.leg { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 28px;
  align-items: center; margin-top: clamp(44px, 6vw, 90px); }
.leg figure { grid-column: 1 / span 5; overflow: hidden; }
.leg .leg-body { grid-column: 7 / span 6; }
.leg.flip figure { grid-column: 8 / span 5; grid-row: 1; }
.leg.flip .leg-body { grid-column: 1 / span 6; grid-row: 1; }
.leg figcaption { margin-bottom: 10px; }
.leg figure img { transition: transform 0.6s ease; }
.leg figure:hover img { transform: scale(1.03); }
.leg-cap { font-family: var(--head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.leg-cap b { color: var(--pine); font-weight: 600; }
/* the year sits behind the text like a mile marker carved into the page */
.leg .leg-body { position: relative; padding-top: clamp(2.4rem, 4.6vw, 4rem); }
.leg-year { position: absolute; top: 0; left: -0.04em; z-index: -1;
  font-family: var(--head); font-weight: 700; font-size: clamp(5rem, 10.5vw, 9rem);
  line-height: 0.82; letter-spacing: -0.03em; color: var(--pine); opacity: 0.16;
  user-select: none; }
.leg h3 { margin: 10px 0 0; font-family: var(--head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.02rem; color: var(--pine); }
.leg p { margin: 12px 0 0; max-width: 46ch; }
/* landscape photos earn a wider frame; portraits keep the tall column */
.leg.wide figure { grid-column: 1 / span 6; }
.leg.wide .leg-body { grid-column: 8 / span 5; }
.leg.flip.wide figure { grid-column: 7 / span 6; }
.leg.flip.wide .leg-body { grid-column: 1 / span 5; }

/* the spine: the route already hiked is solid, the route ahead stays dashed */
.route-legs { position: relative; }
.route-legs > .leg, .route-legs > .route-quote { position: relative; z-index: 1; }
.route-spine { position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible; }
.route-spine .rs-track { fill: none; stroke: var(--pine); opacity: 0.24;
  stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.route-spine .rs-draw { fill: none; stroke: var(--pine); stroke-width: 2.5;
  stroke-linecap: round; }
.route-spine .rs-wp circle { transition: fill 0.35s ease, opacity 0.35s ease; }
.route-spine .rs-wp .rs-dot { fill: var(--fog); stroke: var(--pine); stroke-width: 2; }
.route-spine .rs-wp .rs-ring { fill: none; stroke: var(--pine); stroke-width: 1;
  opacity: 0.25; }
.route-spine .rs-wp.lit .rs-dot { fill: var(--pine); }
.route-spine .rs-wp.lit .rs-ring { opacity: 0.55; }
.route-spine .rs-peak { fill: none; stroke: var(--pine); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0;
  transition: opacity 0.45s ease; }
.route-spine .rs-peak.lit { opacity: 1; }

@media (max-width: 760px) {
  .leg, .leg.flip { display: block; }
  .leg figure { max-width: min(80vw, 420px); }
  .leg.flip figure { margin-left: auto; }
  .leg .leg-body { margin-top: 18px; }
  .route-spine { display: none; }
}

/* the brand pull quote: Space Grotesk 500 on a moss rule */
.route-quote {
  margin: clamp(70px, 9vw, 130px) auto 0; max-width: 40ch; text-align: center;
  font-family: var(--head); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 2.9vw, 2.3rem); line-height: 1.3; color: var(--deep-pine);
}
.route-quote strong { font-weight: 700; }

/* ---- case studies: hall-of-fame grid, hover like the helmets ---- */
.cases { padding: clamp(76px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 34px); }
.case { display: block; text-decoration: none; border: 1px solid var(--line-dark);
  padding: clamp(14px, 1.8vw, 22px); transition: border-color 0.3s ease, background-color 0.3s ease; }
.case:hover { border-color: rgba(229, 233, 234, 0.45); background: rgba(229, 233, 234, 0.03); }
.case figure { overflow: hidden; }
.case img { width: 100%; filter: grayscale(1) contrast(1.02);
  transition: filter 0.45s ease, transform 0.45s ease; }
.case:hover img { filter: none; transform: scale(1.03); }
.case-row { display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-top: 16px; }
.case-row b { font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: clamp(0.85rem, 1.2vw, 1.05rem); color: var(--fog); }
.case-row span { font-family: var(--head); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--moss); text-align: right; }
.case-cta { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---- field notes: a broken editorial grid. Flat plates, no frames, sizes
   and offsets deliberately uneven, photos allowed to overlap, and each one
   drifts at its own speed while the page scrolls. ---- */
.socials { padding: clamp(76px, 10vw, 140px) 0; overflow: hidden; }
.socials-head { display: flex; flex-wrap: wrap; align-items: end;
  justify-content: space-between; gap: 24px 40px;
  margin-bottom: clamp(44px, 6vw, 84px); }
.socials-follow { text-align: right; padding-bottom: 6px; }
.follow-line { margin: 0; font-family: var(--head); font-weight: 500;
  letter-spacing: -0.01em; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--deep-pine); }
.follow-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 12px 26px; margin: 10px 0 0; padding: 0; }
.follow-links a { font-family: var(--head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  transition: color 0.2s ease; }
.follow-links a:hover { color: var(--pine); }
.dark .follow-line { color: var(--moss); }
.dark .follow-links a { color: rgba(229, 233, 234, 0.85); }
.dark .follow-links a:hover { color: var(--fog); }
.collage { display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 28px); align-items: start; }
.collage figure { will-change: transform; }
.collage .reveal { overflow: hidden; }
.collage img { width: 100%; transition: transform 0.6s ease; }
.collage figure:hover img { transform: scale(1.03); }
.c1 { grid-column: 1 / span 4; margin-top: clamp(36px, 5vw, 90px); }
.c2 { grid-column: 5 / span 8; }
.c3 { grid-column: 1 / span 3; margin-top: calc(-1 * clamp(8px, 1.6vw, 30px)); }
.c4 { grid-column: 4 / span 4; margin-top: calc(-1 * clamp(44px, 7vw, 130px)); position: relative; z-index: 2; }
.c5 { grid-column: 9 / span 4; margin-top: clamp(18px, 2.6vw, 48px); }
@media (max-width: 760px) {
  .socials-head { display: block; }
  .socials-follow { text-align: left; margin-top: 18px; }
  .follow-links { justify-content: flex-start; }
  .collage { display: block; }
  .collage figure { margin: 0 0 7vw; }
  .c1 { width: 58%; margin-top: 0; }
  .c2 { width: 100%; }
  .c3 { width: 54%; margin: -16vw 0 7vw auto; position: relative; z-index: 2; }
  .c4 { width: 62%; margin-top: 0; }
  .c5 { width: 84%; margin-left: auto; }
}

/* ---- footer ---- */
.foot-wrap { padding: 26px var(--pad); }

/* the ridgeline footer: full bleed, the card's top edge is a mountain profile */
.foot-wrap.ridge { position: relative; padding: clamp(48px, 7vw, 110px) 0 0; }

/* the north star above the ridge. if you know, you know. */
.north-star { position: absolute; top: clamp(4px, 1.6vw, 22px); left: 13%;
  width: 44px; height: 44px; display: grid; place-items: center;
  color: rgba(27, 42, 32, 0.16); z-index: 2; }
.north-star svg { width: 19px; height: 19px;
  transition: transform 0.45s ease, color 0.3s ease; }
.north-star:hover, .north-star:focus-visible { color: var(--pine); }
.north-star:hover svg { transform: rotate(20deg) scale(1.12); }
.foot-wrap.ridge .foot { max-width: none; }
.foot-ridge { display: block; width: 100%; height: clamp(56px, 9vw, 124px);
  margin-bottom: -1px; }
.foot { max-width: var(--max); margin-inline: auto; background: var(--charcoal);
  color: rgba(229, 233, 234, 0.8); padding: clamp(56px, 8vw, 100px) var(--pad) 34px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.foot-col { font-size: 0.9rem; }
.foot-col .kicker { display: block; margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li + li { margin-top: 8px; }
.foot-col a { text-decoration: none; font-family: var(--head); font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease; }
.foot-col a:hover { color: var(--moss); border-color: var(--moss); }
.foot-col:last-child { text-align: right; }
.foot-center { text-align: center; }
.giant { margin: 0; font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; color: var(--fog); }
.giant .serif { color: var(--moss); }
.foot-photo { width: clamp(240px, 30vw, 400px); margin: 26px auto 0; overflow: hidden; }
.foot-photo img { transition: transform 0.5s ease; }
.foot-photo:hover img { transform: scale(1.04); }
.btn { display: inline-block; margin-top: 30px; padding: 16px 28px;
  background: var(--fog); color: var(--charcoal); text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.25s ease; }
.btn:hover { background: var(--moss); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: clamp(44px, 6vw, 70px); padding-top: 22px;
  border-top: 1px solid var(--line-dark); font-size: 0.8rem;
  color: rgba(229, 233, 234, 0.6); }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { color: var(--fog); }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; text-align: center; }
  .foot-col:last-child { text-align: center; }
}

/* ---- shared form + modal system (studio apply, school waitlist, contact) ---- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(27, 42, 32, 0.78); }
.modal-panel { position: relative; z-index: 1; max-width: 800px;
  margin: 4vh auto; max-height: 92vh; overflow-y: auto;
  background: var(--fog); padding: clamp(28px, 4.5vw, 56px); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--head); font-size: 1.1rem; color: var(--charcoal); }
.modal-close:hover { border-color: var(--charcoal); }
.modal h2 { margin: 0 0 6px; font-family: var(--head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: var(--charcoal); }
.modal h2 .serif { color: var(--pine); }
.modal .join-lede { margin: 10px 0 0; max-width: 52ch; color: var(--muted); }
.join-lede { color: var(--muted); }

.jform { margin-top: clamp(26px, 3vw, 40px); display: grid; gap: 22px; }
.jrow { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .jrow { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2336433E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--deep-pine); outline-offset: 0; border-color: var(--deep-pine); }
.field .err { display: none; font-size: 0.8rem; color: #a4574a; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a4574a; }
.field.has-error .err { display: block; }
.formnote { font-size: 0.9rem; min-height: 1.2em; margin: 0; color: var(--muted); }
.formnote.error { color: #a4574a; }
.formnote.ok { color: var(--pine); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jform .btn-dark { justify-self: start; border: 0; cursor: pointer; }
.join-done { display: none; margin-top: clamp(26px, 3vw, 40px); max-width: 52ch; }
.join-done h3 { margin: 0; font-family: var(--head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--charcoal); }
.join-done p { color: var(--muted); }

.btn-dark { display: inline-block; padding: 16px 28px;
  background: var(--deep-pine); color: var(--fog); text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.25s ease; }
.btn-dark:hover { background: var(--pine); }

/* ---- field notes on mobile: a fanned deck instead of a stack. Tap a photo
   and it comes front and center; tap again to tuck it back in. ---- */
@media (max-width: 760px) {
  .collage { display: block; position: relative; height: 128vw; max-height: 560px; }
  .collage .c1, .collage .c2, .collage .c3, .collage .c4, .collage .c5 {
    position: absolute; left: 50%; top: 50%; width: 60vw; max-width: 270px; margin: 0;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
  }
  .collage img { aspect-ratio: 4 / 5; object-fit: cover; }
  .c1 { transform: translate(-50%, -50%) translate(-38%, -5%) rotate(-13deg); z-index: 1; }
  .c2 { transform: translate(-50%, -50%) translate(-19%, 1%) rotate(-6deg); z-index: 2; }
  .c3 { transform: translate(-50%, -50%) rotate(0deg); z-index: 3; }
  .c4 { transform: translate(-50%, -50%) translate(19%, 1%) rotate(6deg); z-index: 4; }
  .c5 { transform: translate(-50%, -50%) translate(38%, -5%) rotate(13deg); z-index: 5; }
  .collage figure.active { transform: translate(-50%, -50%) scale(1.24) rotate(0deg); z-index: 10; }
}

/* footer social icons */
.foot-social { list-style: none; display: flex; justify-content: center;
  gap: 26px; margin: 32px 0 0; padding: 0; }
.foot-social a { display: block; width: 24px; height: 24px; color: var(--fog);
  transition: color 0.2s ease; }
.foot-social a:hover { color: var(--moss); }
.foot-social svg { display: block; width: 100%; height: 100%; }

/* ---- folklore on mobile: one card at a time, swipe sideways like reels ---- */
@media (max-width: 900px) {
  .case-grid { display: flex; max-width: none; margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad); overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 14px; scrollbar-width: none; }
  .case-grid::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 84%; scroll-snap-align: center; }
  .case img { filter: none; }
}

/* product mark in the page hero: the icon carries the name */
.st-mark { margin: 0; }
.st-mark img { width: clamp(300px, 44vw, 580px); height: auto; }
