/* ============================================================
   FRIENDS AND ALLIES · WEBSITE 2026
   One stylesheet for every redesigned page. Same system as the
   FA-Gym app redesign (FA-Gym/redesign-2026/fa-ui.css): FA Brand
   Cheat Sheet 2025, Roboto + Futura PT Cond, FA Red / FA Blue /
   Crema plus the secondary palette, African-retro patterns.
   Register: hand-drawn 90s skater zine meets climbing-gym community.
   Rules: no emojis, no arrow glyphs, plain words. Chunky outlines,
   hard offset shadows, halftone, tape, stickers, swing tags.
   ============================================================ */

:root {
  --red: #C2162C; --blue: #008B9D; --crema: #F8E2B4;
  --mustard: #FFD050; --lightblue: #AFD8EF; --verdigris: #4DB8B1; --coral: #ED6C74;
  --naatjie: #EE7627; --mint: #D5DDAB; --jungle: #193C28; --majesty: #9972B0;
  --eucalyptus: #349868; --aubergine: #661D30; --charcoal: #232323;
  --blue-ink: #0B6F7E; --red-ink: #A5122A; --crema-2: #FBEFD3; --paper: #FFFCF4;
  --ink-soft: #4A4A4A; --ink-muted: #6E675C;

  /* the FA grading scale, bottom to top, as on the sign at the wall */
  --g1: #E2457A; --g2: #2E9E57; --g3: #2F5FB3; --g4: #F07A22; --g5: #D2202F; --g6: #F1E8D4; --g7: #4A4A4A;

  --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-cond: 'Futura PT Cond', 'Futura Condensed ExtraBold', 'Roboto Condensed', 'Roboto', sans-serif;

  --stroke: 2px; --stroke-lg: 3px;
  --shadow: 4px 4px 0 var(--charcoal); --shadow-sm: 3px 3px 0 var(--charcoal); --shadow-lg: 8px 8px 0 var(--charcoal);
  --r-sm: 6px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --wrap: 1240px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--charcoal);
  background-color: var(--crema);
  background-image: radial-gradient(rgba(35,35,35,.09) 1px, transparent 1.2px);
  background-size: 7px 7px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--crema); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { margin: 0; text-transform: uppercase; line-height: .95; }
.display { font-family: var(--font-cond); font-weight: 800; letter-spacing: .005em; font-size: clamp(3rem, 9vw, 7.2rem); }
.h1 { font-family: var(--font-cond); font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.h2 { font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.005em; line-height: 1.05; }
.h3 { font-weight: 900; font-size: 1.05rem; letter-spacing: .05em; line-height: 1.2; }
.cond { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.eyebrow--blue { color: var(--blue-ink); }
.eyebrow--crema { color: var(--mustard); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 1.5; }
.muted { color: var(--ink-muted); }
.small { font-size: .88rem; }
.money { font-family: var(--font-cond); font-weight: 800; letter-spacing: .01em; white-space: nowrap; }

/* hand-drawn marker underline */
.scribble { position: relative; display: inline-block; z-index: 0; }
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.16em; height: .4em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 40 4, 70 18, 105 9 S 165 4, 197 11' fill='none' stroke='%23C2162C' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left center;
}
.scribble--blue::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 40 4, 70 18, 105 9 S 165 4, 197 11' fill='none' stroke='%23008B9D' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.scribble--mustard::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 40 4, 70 18, 105 9 S 165 4, 197 11' fill='none' stroke='%23FFD050' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* draws itself in when revealed */
.reveal .scribble::after { transform: scaleX(0); transition: transform .7s cubic-bezier(.6,.05,.3,1) .25s; }
.reveal.is-in .scribble::after { transform: scaleX(1); }

/* ---------- layout ---------- */
/* tilted tape and pattern bleeds may hang past the edge; the page never scrolls sideways */
main { overflow-x: clip; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--s4)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(var(--wrap), 100% - 2 * var(--s6)); } }
.section { padding-block: clamp(var(--s7), 8vw, var(--s9)); position: relative; }
.section--tight { padding-block: clamp(var(--s6), 5vw, var(--s8)); }
.section--paper { background: var(--crema-2); border-block: var(--stroke-lg) solid var(--charcoal); }
.section--dark { background-color: var(--jungle); color: var(--crema); background-image: radial-gradient(rgba(248,226,180,.09) 1px, transparent 1.2px); background-size: 7px 7px; border-block: var(--stroke-lg) solid var(--charcoal); }
.section--dark a:not(.btn) { color: var(--mustard); }
.section--red { background: var(--red); color: #fff; border-block: var(--stroke-lg) solid var(--charcoal); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s6); }
.section-head > div { max-width: 62ch; }
.section-head p { margin: var(--s3) 0 0; }
.stack > * + * { margin-top: var(--s4); }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }

/* ---------- nav (masking-tape strip) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--stroke-lg) solid var(--charcoal);
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(35,35,35,.05) 22px 24px); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: var(--s5); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 2px; margin: 0 0 0 var(--s3); padding: 0; list-style: none; }
.nav__links a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 700; font-size: .84rem; letter-spacing: .07em; text-transform: uppercase; color: var(--charcoal); text-decoration: none; border: var(--stroke) solid transparent; }
.nav__links a:hover { background: rgba(35,35,35,.06); }
.nav__links a[aria-current="page"] { background: var(--charcoal); color: var(--crema); }
.nav__spacer { flex: 1; }
.nav__open { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav__open::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-muted); border: 2px solid var(--charcoal); }
.nav__open.is-open::before { background: var(--eucalyptus); box-shadow: 0 0 0 3px rgba(52,152,104,.25); }
.nav__toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: var(--stroke) solid var(--charcoal); border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--shadow-sm); }
.nav__toggle span { display: block; width: 20px; height: 2.5px; margin: 4px auto; background: var(--charcoal); border-radius: 2px; transition: transform .2s; }
@media (max-width: 1080px) { .nav__open { display: none; } }
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav .nav__cta { display: none; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: var(--s4); background: var(--paper); border-bottom: var(--stroke-lg) solid var(--charcoal); box-shadow: 0 12px 0 rgba(35,35,35,.08); transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .nav__links a { font-size: 1.25rem; padding: 14px 8px; border-bottom: 1.5px dashed rgba(35,35,35,.2); border-radius: 0; }
  .nav__links .nav__mobile-cta { display: block; margin-top: var(--s4); }
  .nav.is-open .nav__links { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
.nav__mobile-cta { display: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 50px; padding: 0 var(--s5);
  border: var(--stroke) solid var(--charcoal); border-radius: var(--r-pill); background: var(--paper); color: var(--charcoal);
  font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--charcoal); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--charcoal); }
.btn--red { background: var(--red); color: #fff; } .btn--red:hover { background: var(--red-ink); }
.btn--blue { background: var(--blue); color: #fff; } .btn--blue:hover { background: var(--blue-ink); }
.btn--mustard { background: var(--mustard); }
.btn--ghost { background: transparent; box-shadow: none; } .btn--ghost:hover { background: rgba(35,35,35,.06); box-shadow: none; transform: none; }
.btn--lg { min-height: 60px; font-size: 1rem; padding: 0 var(--s6); }
.btn--sm { min-height: 38px; font-size: .74rem; padding: 0 var(--s4); }
.btn--block { width: 100%; }
.btn--wrap { white-space: normal; text-align: center; line-height: 1.15; padding-block: 10px; }
/* long labels wrap instead of pushing past a phone screen */
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.15; padding-block: 10px; } }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- stickers, tape, pills ---------- */
.sticker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; background: var(--mustard); color: var(--charcoal);
  border: var(--stroke) solid var(--charcoal); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  font-weight: 900; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sticker--red { background: var(--red); color: #fff; } .sticker--blue { background: var(--blue); color: #fff; }
.sticker--green { background: var(--eucalyptus); color: #fff; } .sticker--coral { background: var(--coral); }
.sticker--paper { background: var(--paper); } .sticker--mint { background: var(--mint); } .sticker--naatjie { background: var(--naatjie); }
.sticker--r, .sticker--tilt { transform: rotate(-2.5deg); } .sticker--flat { transform: none; box-shadow: none; }
.tape-label { display: inline-block; padding: 4px 14px; background: var(--paper); border: var(--stroke) solid var(--charcoal);
  font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background-image: repeating-linear-gradient(90deg, transparent 0 16px, rgba(35,35,35,.07) 16px 18px); }
.pill { display: inline-block; padding: 3px 10px; border: 1.5px solid var(--charcoal); border-radius: var(--r-pill); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); }

/* scrolling tape banner */
.marquee { overflow: hidden; background: var(--mustard); border-block: var(--stroke-lg) solid var(--charcoal); position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: .03em; padding: 10px 0; white-space: nowrap; }
.marquee__track span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin: 0 22px; border: 2.5px solid var(--charcoal); border-radius: 50%; vertical-align: 2px; background: var(--red); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- surfaces ---------- */
.card { background: var(--paper); border: var(--stroke) solid var(--charcoal); border-radius: var(--r-md); box-shadow: var(--shadow); padding: var(--s5); }
.card--flat { box-shadow: none; } .card--mustard { background: var(--mustard); } .card--blue { background: var(--lightblue); }
.card--mint { background: var(--mint); } .card--coral { background: var(--coral); }
.card--dark { background: var(--jungle); color: var(--crema); }
.callout { border: var(--stroke) solid var(--charcoal); border-radius: var(--r-md); padding: var(--s4) var(--s5); background: var(--paper); box-shadow: var(--shadow-sm); }

/* taped photo snapshot */
.snap { position: relative; margin: 0; background: var(--paper); border: var(--stroke-lg) solid var(--charcoal); box-shadow: var(--shadow); padding: 10px 10px 8px; }
/* straight by default (Wes, 22 Oct: "a bit schoolroom"); tilt is an opt-in accent, one per page at most */
.snap--tilt { transform: rotate(var(--tilt, -1.5deg)); }
.snap img { width: 100%; height: auto; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; border: var(--stroke) solid var(--charcoal); }
.snap figcaption { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; margin-top: 6px; }
.snap::before { content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: rgba(255,208,80,.85); border: 1.5px solid rgba(35,35,35,.3); z-index: 1; }
.snap--blue::before { background: rgba(175,216,239,.9); }

/* zone / feature tile: photo with a tape label */
.tile { position: relative; display: block; overflow: hidden; border: var(--stroke-lg) solid var(--charcoal); border-radius: var(--r-md); box-shadow: var(--shadow); background: var(--charcoal); color: var(--crema); text-decoration: none; min-height: 240px; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25,60,40,0) 35%, rgba(25,25,25,.78) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile__body { position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4); }
.tile__title { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1; }
.tile__sub { font-size: .9rem; margin-top: 4px; opacity: .92; }
.tile .tape-label { position: absolute; top: var(--s3); left: var(--s3); color: var(--charcoal); font-size: .85rem; }

/* membership laminate (tilts toward the pointer, see fa-2026.js) */
.laminate { position: relative; display: flex; flex-direction: column; gap: var(--s3); overflow: hidden; padding: var(--s6) var(--s5) var(--s5);
  background: var(--red); color: #fff; border: var(--stroke-lg) solid var(--charcoal); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease; transform-style: preserve-3d; }
.laminate::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 38px; height: 10px; border-radius: 6px; background: var(--charcoal); opacity: .85; }
.laminate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.28), transparent 45%); }
.laminate--blue { background: var(--blue); } .laminate--jungle { background: var(--jungle); } .laminate--majesty { background: var(--majesty); }
.laminate--mustard { background: var(--mustard); color: var(--charcoal); } .laminate--paper { background: var(--paper); color: var(--charcoal); }
.laminate__name { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.laminate__price { font-family: var(--font-cond); font-weight: 800; font-size: clamp(2.6rem, 4.5vw, 3.4rem); line-height: .9; }
.laminate__price small { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-left: 4px; }
.laminate ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.laminate li { padding-left: 18px; position: relative; }
.laminate li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }
.laminate .btn { margin-top: auto; }
.laminate .sticker { position: absolute; top: 14px; right: 14px; }

/* event ticket stub */
.stub { display: grid; grid-template-columns: minmax(0, 1fr) 150px; background: var(--paper); border: var(--stroke-lg) solid var(--charcoal); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--charcoal); transition: transform .12s ease, box-shadow .12s ease; }
.stub:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--charcoal); }
.stub__main { display: grid; grid-template-columns: 42% 1fr; min-height: 220px; }
.stub__img { position: relative; border-right: var(--stroke-lg) solid var(--charcoal); background: var(--charcoal); }
.stub__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stub__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.stub__title { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: .95; }
.stub__tear { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: var(--s4); border-left: 3px dashed var(--charcoal); background: var(--mustard); text-align: center; }
.stub__tear::before, .stub__tear::after { content: ""; position: absolute; left: -14px; width: 24px; height: 24px; border-radius: 50%; background: var(--crema); border: var(--stroke-lg) solid var(--charcoal); }
.stub__tear::before { top: -14px; } .stub__tear::after { bottom: -14px; }
.stub__date { font-family: var(--font-cond); font-weight: 800; font-size: 2.6rem; line-height: .85; white-space: nowrap; }
.stub__month { font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
@media (max-width: 720px) {
  .stub { grid-template-columns: 1fr; }
  .stub__main { grid-template-columns: 1fr; }
  .stub__img { min-height: 190px; border-right: 0; border-bottom: var(--stroke-lg) solid var(--charcoal); }
  .stub__tear { flex-direction: row; gap: 12px; border-left: 0; border-top: 3px dashed var(--charcoal); }
  .stub__tear::before, .stub__tear::after { display: none; }
}

/* small event card */
.ev { display: flex; flex-direction: column; background: var(--paper); border: var(--stroke) solid var(--charcoal); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; text-decoration: none; color: var(--charcoal); transition: transform .12s ease, box-shadow .12s ease; }
.ev:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--charcoal); }
.ev img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--stroke) solid var(--charcoal); }
.ev__body { padding: var(--s4); display: grid; gap: 6px; }
.ev__title { font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1; }

/* grade scale chips */
.grades { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s2); }
.grade { display: grid; justify-items: center; gap: 8px; padding: var(--s3) var(--s2); border: var(--stroke) solid var(--charcoal); border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--shadow-sm); text-align: center; transition: transform .15s ease; cursor: default; }
.grade:hover, .grade.is-on { transform: translateY(-6px); }
.grade__hold { width: 42px; height: 38px; background: var(--c); border: var(--stroke) solid var(--charcoal); border-radius: 48% 52% 40% 60% / 60% 55% 45% 40%; position: relative; }
.grade__hold::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #bbb; border: 1.5px solid var(--charcoal); }
.grade__n { font-family: var(--font-cond); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.grade__name { font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; min-height: 2.3em; }
@media (max-width: 700px) { .grades { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* FAQ */
.faq { display: grid; gap: var(--s3); }
.faq details { background: var(--paper); border: var(--stroke) solid var(--charcoal); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s4) var(--s5); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--charcoal); border-bottom: 3px solid var(--charcoal); transform: rotate(45deg); transition: transform .2s; margin-top: -6px; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.faq details > div { padding: 0 var(--s5) var(--s5); }

/* forms */
.field { display: block; }
.field__label { display: block; font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.input { width: 100%; min-height: 52px; padding: 10px 16px; border: var(--stroke) solid var(--charcoal); border-radius: var(--r-sm); background: #fff; color: var(--charcoal); box-shadow: inset 3px 3px 0 rgba(35,35,35,.06); }
.input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.inline-form { display: flex; gap: var(--s3); flex-wrap: wrap; }
.inline-form .input { flex: 1 1 240px; }

/* footer */
.footer { background: var(--charcoal); color: var(--crema); padding: var(--s8) 0 var(--s5); border-top: var(--stroke-lg) solid var(--charcoal); position: relative; overflow: hidden; }
.footer a { color: var(--crema); text-decoration: none; }
.footer a:hover { color: var(--mustard); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.footer__logo { height: 44px; width: auto; filter: brightness(0) invert(.92) sepia(.3); }
.footer h4 { margin: 0 0 var(--s3); font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; color: var(--mustard); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); padding-top: var(--s4); border-top: 1.5px dashed rgba(248,226,180,.3); font-size: .82rem; color: rgba(248,226,180,.75); }
.footer__pattern { position: absolute; right: -60px; top: -40px; width: 260px; opacity: .14; pointer-events: none; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* pattern bleeds */
.bleed { position: absolute; pointer-events: none; z-index: 0; }
.above { position: relative; z-index: 1; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* chalk puff (spawned by fa-2026.js on primary clicks) */
.chalk { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 6px rgba(255,255,255,.8); pointer-events: none; z-index: 200; animation: chalk .7s ease-out forwards; }
@keyframes chalk { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

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

/* ---------- the 3D wall (js/fa-wall-3d.js) ---------- */
.fa-wall { position: relative; width: 100%; aspect-ratio: 1 / 1.02; max-height: 640px; }
.fa-wall__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; }
.fa-wall__fallback { position: absolute; inset: 6% 4% 10% 4%; }
.fa-wall.is-live .fa-wall__fallback { display: none; }
.fa-wall__tag { position: absolute; left: 4%; bottom: 6%; z-index: 2; display: none; align-items: center; gap: 12px; padding: 10px 16px 10px 12px;
  background: var(--paper); border: var(--stroke) solid var(--charcoal); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.fa-wall__tag::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--charcoal); background: var(--crema); }
.fa-wall.is-live .fa-wall__tag { display: inline-flex; }
.fa-wall__swatch { width: 30px; height: 26px; background: var(--c, var(--g1)); border: var(--stroke) solid var(--charcoal); border-radius: 48% 52% 40% 60% / 60% 55% 45% 40%; transition: background .3s; }
.fa-wall__tag b { display: block; font-family: var(--font-cond); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1; }
.fa-wall__tag span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.fa-wall__hint { position: absolute; right: 4%; top: 4%; z-index: 2; display: none; }
.fa-wall.is-live .fa-wall__hint { display: inline-flex; }

/* ---------- full-bleed photo hero ----------
   Wes, 22 Oct: "every page to have a massive epic hero photo". The photo fills the
   top of the page; the words sit on the darker side. Markup:
   <header class="hero-photo" style="--pos: 60% 40%">
     <picture class="hero-photo__img"><source media="(max-width: 800px)" srcset="/assets/2026/heroes/x-1200.webp"><img src="/assets/2026/heroes/x.webp" alt="..." fetchpriority="high"></picture>
     <div class="wrap hero-photo__inner"> eyebrow, .display, .lead, .hero-photo__ctas </div>
     <span class="hero-photo__credit">Photo: ...</span>
   </header>
   Add .hero-photo--right when the subject is on the left and the words go right. */
.hero-photo { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(88vh, 900px); color: #fff; background: var(--charcoal); border-bottom: var(--stroke-lg) solid var(--charcoal); overflow: hidden; }
.hero-photo--short { min-height: min(64vh, 640px); }
.hero-photo__img { position: absolute; inset: 0; z-index: -2; }
.hero-photo__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,18,18,.82) 0%, rgba(18,18,18,.5) 42%, rgba(18,18,18,0) 72%), linear-gradient(0deg, rgba(18,18,18,.6) 0%, rgba(18,18,18,0) 40%); }
.hero-photo--right::before { background: linear-gradient(270deg, rgba(18,18,18,.82) 0%, rgba(18,18,18,.5) 42%, rgba(18,18,18,0) 72%), linear-gradient(0deg, rgba(18,18,18,.6) 0%, rgba(18,18,18,0) 40%); }
.hero-photo__inner { position: relative; padding-block: calc(var(--nav-h) + var(--s7)) clamp(var(--s7), 7vw, var(--s9)); }
.hero-photo--right .hero-photo__inner > * { margin-left: auto; }
.hero-photo__copy { max-width: 640px; }
.hero-photo--right .hero-photo__copy { margin-left: auto; }
.hero-photo .eyebrow { color: var(--mustard); }
.hero-photo .display, .hero-photo .h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-photo .lead { color: rgba(255,255,255,.93); max-width: 44ch; margin: var(--s4) 0 0; }
.hero-photo__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-photo__meta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-photo__credit { position: absolute; right: var(--s4); bottom: var(--s3); font-size: .7rem; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.hero-photo .btn:not(.btn--red):not(.btn--blue):not(.btn--mustard) { background: var(--paper); color: var(--charcoal); }
@media (max-width: 800px) {
  .hero-photo { min-height: 82vh; }
  .hero-photo--short { min-height: min(70vh, 600px); }
  .hero-photo::before, .hero-photo--right::before { background: linear-gradient(0deg, rgba(18,18,18,.88) 0%, rgba(18,18,18,.55) 45%, rgba(18,18,18,.1) 80%); }
  .hero-photo--right .hero-photo__copy { margin-left: 0; }
}

/* ---------- Jen's shapes in 3D (js/fa-shapes-3d.js) ----------
   The flat pattern image inside is the fallback; it hides once the 3D version is live. */
.fa-shapes { position: relative; pointer-events: none; }
.fa-shapes.bleed { position: absolute; }
.fa-shapes > img { width: 100%; height: 100%; object-fit: contain; }
.fa-shapes.is-live > img { visibility: hidden; }
/* a section hosting an edge shape: the shape hangs off the right, content stays on top */
.has-shapes { position: relative; overflow: hidden; }
.has-shapes > .wrap { position: relative; z-index: 1; }
.shapes-edge { width: 200px; height: 480px; right: -70px; top: 50%; transform: translateY(-50%); }
.shapes-corner { width: 320px; height: 320px; right: -90px; bottom: -120px; }
@media (max-width: 900px) { .shapes-edge, .shapes-corner { opacity: .35; width: 160px; height: 300px; right: -80px; } }

/* ---------- the shape strip: a band of Jen's shapes above the footer on every page ---------- */
.shape-strip { position: relative; height: clamp(150px, 17vw, 240px); background: var(--crema-2); border-top: var(--stroke-lg) solid var(--charcoal); overflow: hidden; }
.shape-strip .fa-shapes { position: absolute; inset: 6% 2%; }
.shape-strip__flat { position: absolute; inset: 14% 4%; display: flex; justify-content: space-between; align-items: center; }
.shape-strip__flat img { height: 70%; width: auto; opacity: .55; }
.shape-strip:has(.is-live) .shape-strip__flat { display: none; }
@media (max-width: 600px) { .shape-strip__flat img:nth-child(n+3) { display: none; } }
