/* ---------- Tokens: Linen & Sage ---------- */
:root {
  --bg: #f4f3ec;
  --surface: #fffefa;
  --section: #eae9df;        /* alternating section background */
  --inset: #fffefa;          /* grouped list on a section */
  --fill2: #eae9df;          /* form fields, chips, arrows */
  --label: #1e2a23;
  --secondary: #5a665e;
  --tertiary: #6f7a72;
  --separator: rgba(30, 42, 35, 0.14);
  --accent: #2f6b4f;
  --accent-fill: #2f6b4f;
  --on-accent: #ffffff;
  --chrome: rgba(244, 243, 236, 0.75);
  --chrome-edge: rgba(30, 42, 35, 0.08);
  --player: rgba(255, 254, 250, 0.75);
  --player-edge: rgba(255, 255, 255, 0.5);
  --scrim: rgba(20, 28, 24, 0.35);
  --shadow-sm: 0 1px 2px rgba(30,42,35,.05), 0 4px 16px rgba(30,42,35,.06);
  --shadow-lg: 0 2px 6px rgba(30,42,35,.06), 0 24px 64px rgba(30,42,35,.18);
  --art0: linear-gradient(140deg, #5f8f6f, #2d5440);
  --art1: linear-gradient(140deg, #8a9a5b, #4a5530);
  --art2: linear-gradient(140deg, #4f7f7a, #244240);
  --art3: linear-gradient(140deg, #9a8a62, #54482c);
  --radius-lg: 28px;
  --radius-md: 20px;
  --gutter: max(16px, env(safe-area-inset-left));
  color-scheme: light;
}

/* ---------- Base & type (system font, size-specific tracking) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.locked { overflow: hidden; }
body {
  margin: 0;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.display {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0;
}
.headline { font-weight: 600; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.012em; margin: 0; }
.lede { font-size: clamp(1.1875rem, 2.2vw, 1.5rem); line-height: 1.38; letter-spacing: -0.012em; color: var(--secondary); margin: 0; }
.body { font-size: 1.0625rem; line-height: 1.53; letter-spacing: -0.006em; color: var(--secondary); }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; color: var(--accent); margin: 0 0 0.75rem; }
.caption { font-size: 0.8125rem; line-height: 1.38; letter-spacing: 0.005em; color: var(--tertiary); }
.label-strong { color: var(--label); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(5rem, 10vw, 8rem) 0; }

/* ---------- Press feedback: on pointer-down, instant ---------- */
.pressable { transition: transform 160ms cubic-bezier(.2,.8,.2,1), background-color 200ms ease, opacity 200ms ease; }
.pressable:active { transform: scale(0.97); transition-duration: 80ms; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.375rem; border-radius: 999px; border: 0;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  user-select: none; -webkit-user-select: none;
}
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-plain { background: transparent; color: var(--accent); padding: 0 .5rem; }
.btn-plain:hover { text-decoration: underline; }
.btn-small { min-height: 32px; padding: 0 .875rem; font-size: .875rem; }

/* ---------- Page wrapper (pushed back when the sheet opens) ---------- */
#page { transform-origin: 50% 0; will-change: auto; }

/* ---------- Translucent nav with scroll-edge effect ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--chrome);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none;
  background: linear-gradient(var(--chrome-edge), transparent);
  opacity: 0; transition: opacity 240ms ease;
}
.nav[data-scrolled="true"]::after { opacity: 1; }
.nav .wrap { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav .mark { font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 1.0625rem; white-space: nowrap; }
.nav ul { list-style: none; display: flex; align-items: center; gap: clamp(.875rem, 3vw, 2rem); margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: .875rem; letter-spacing: -0.005em; color: var(--label); opacity: .8; }
.nav ul a:hover { opacity: 1; }
@media (max-width: 420px) {
  .nav .hide-xs { display: none; }
  .nav .mark { font-size: .9375rem; }
  .nav ul { gap: .625rem; }
  .nav .btn-small { padding: 0 .75rem; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: 0; text-align: center; }
.hero .lede { max-width: 42ch; margin: 1.25rem auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.hero-media {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0; max-width: 1240px; padding: 0 var(--gutter);
}
.hero-media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 40%;
  border-radius: var(--radius-lg);
}
/* ---------- Shows carousel (direct manipulation + springs) ---------- */
.shows-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.shows-head .lede { max-width: 36ch; margin-top: 1rem; }
.arrows { display: flex; gap: .625rem; flex-shrink: 0; }
.arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--fill2); color: var(--label); display: grid; place-items: center;
}
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .arrows { display: none; } }

.rail { overflow: hidden; margin-top: 2.5rem; touch-action: pan-y; cursor: grab; }
.rail.dragging { cursor: grabbing; }
.rail.dragging * { user-select: none; -webkit-user-select: none; }
.track {
  display: flex; gap: 20px; will-change: transform;
  padding: 0 max(var(--gutter), calc((100vw - 1080px) / 2 + var(--gutter)));
  padding-bottom: 8px;
}
.card {
  flex: 0 0 clamp(280px, 82vw, 372px);
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 1.5rem; display: flex; flex-direction: column; min-height: 400px;
}
.card .art {
  height: 140px; border-radius: 14px; margin: -.5rem -.5rem 1.25rem; position: relative; overflow: hidden;
  display: flex; align-items: end; padding: 1rem;
}
.card .art .school { font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.92); letter-spacing: .005em; }
.card h3 { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.022em; line-height: 1.15; }
.card .placement { margin: .375rem 0 0; font-size: .9375rem; color: var(--secondary); }
.card ul { list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: .9375rem; line-height: 1.45; }
.card li { padding: .5rem 0; border-top: 1px solid var(--separator); color: var(--label); }
.card li span { color: var(--secondary); }
.card .foot { margin-top: auto; padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.play {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0;
  background: var(--accent-fill); color: var(--on-accent); display: grid; place-items: center;
}
.play svg { width: 16px; height: 16px; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.credit { font-size: .8125rem; color: var(--tertiary); }

/* ---------- Testimonial ---------- */
.quote { padding: clamp(4rem, 8vw, 6rem) 0; }
.quotes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: stretch;
  max-width: 1080px; margin: 2.5rem auto 0; padding: 0 var(--gutter);
}
.quotes blockquote {
  margin: 0; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 2rem;
}
.quotes blockquote::before {
  content: "“"; display: block; height: .5em; margin-bottom: .75rem;
  font: 700 3.5rem/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; color: var(--accent);
}
.quotes p { margin: 0; font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.01em; color: var(--label); }
.quotes p + p { margin-top: .875rem; }
.quotes footer { margin-top: auto; padding-top: 1.5rem; font-size: .9375rem; line-height: 1.45; color: var(--secondary); }
.quotes footer strong { color: var(--label); font-weight: 600; }

/* Phones: a native swipe row that snaps card to card, with the next card peeking in */
@media (max-width: 720px) {
  .quotes {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-top: 2rem; padding-bottom: 8px; align-items: flex-start;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quotes blockquote { flex: 0 0 85%; scroll-snap-align: start; padding: 1.5rem; }
}

/* ---------- Services tiles ---------- */
.grouped-bg { background: var(--section); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 3rem; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); }
.tile .num { font-size: .8125rem; font-weight: 600; color: var(--accent); margin-bottom: .75rem; }
.tile p { margin: .75rem 0 0; }

/* ---------- About + inset grouped list ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.about .body p { margin: 0 0 1rem; }
.list-head { margin: 2.5rem 0 .5rem; padding: 0 1rem; font-size: .8125rem; color: var(--secondary); letter-spacing: .005em; }
.inset-list { list-style: none; margin: 0; padding: 0; background: var(--inset); border-radius: 14px; overflow: hidden; }
.inset-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; font-size: 1rem; position: relative; }
.inset-list li + li::before { content: ""; position: absolute; left: 1rem; right: 0; top: 0; border-top: 1px solid var(--separator); }
.inset-list li span { color: var(--secondary); flex-shrink: 0; }

/* ---------- Closing CTA + footer ---------- */
.cta { text-align: center; }
.cta .lede { margin: 1rem auto 2rem; max-width: 30ch; }
footer.site { padding: 2.5rem 0 7rem; border-top: 1px solid var(--separator); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer.site a { color: var(--secondary); text-decoration: none; margin-left: 1.25rem; }
footer.site a:hover { color: var(--label); }
/* ---------- Now Playing (materializes from the button that started it) ---------- */
.player {
  position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(560px, calc(100vw - 32px)); margin-left: calc(min(560px, calc(100vw - 32px)) / -2);
  border-radius: 22px; padding: .625rem .75rem .625rem .625rem;
  background: var(--player);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--player-edge);
  display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: .75rem;
  visibility: hidden; transform-origin: 50% 50%;
}
.player .thumb { width: 44px; height: 44px; border-radius: 10px; }
.player .meta { min-width: 0; }
.player .t { font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .s { font-size: .8125rem; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrub { grid-column: 1 / -1; display: flex; align-items: center; gap: .625rem; padding: 0 .25rem .125rem; }
.scrub time { font-size: .6875rem; font-variant-numeric: tabular-nums; color: var(--secondary); min-width: 2.5em; letter-spacing: .01em; }
.scrub time:last-child { text-align: right; }
.bar { flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.bar .rail2 { position: relative; width: 100%; height: 4px; border-radius: 4px; background: var(--separator); overflow: hidden; transition: height 160ms ease; }
.bar:active .rail2, .bar.scrubbing .rail2 { height: 8px; }
.bar .fill { position: absolute; inset: 0; background: var(--label); transform-origin: 0 50%; transform: scaleX(0); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--label); }
.icon-btn:hover { background: var(--separator); }
.icon-btn svg { width: 18px; height: 18px; }
#pp .i-pause { display: none; }
#pp[aria-pressed="true"] .i-play { display: none; }
#pp[aria-pressed="true"] .i-pause { display: block; }

/* ---------- Sheet (drag to dismiss, momentum-projected) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); opacity: 0; visibility: hidden; }
.sheet {
  position: fixed; z-index: 51; left: 50%; bottom: 0;
  width: min(640px, 100vw); margin-left: calc(min(640px, 100vw) / -2);
  max-height: calc(100dvh - 40px);
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; visibility: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-grab { touch-action: none; cursor: grab; padding: .5rem 1.25rem 1rem; flex-shrink: 0; user-select: none; -webkit-user-select: none; }
.sheet-grab:active { cursor: grabbing; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--separator); margin: 0 auto .75rem; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sheet-bar h2 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 1.25rem 1.5rem; }
.field-group { background: var(--fill2); border-radius: 12px; margin-bottom: 1.25rem; overflow: hidden; }
.field { display: flex; align-items: center; gap: .75rem; padding: 0 1rem; min-height: 48px; position: relative; }
.field + .field::before { content: ""; position: absolute; left: 1rem; right: 0; top: 0; border-top: 1px solid var(--separator); }
.field label { width: 7.5rem; flex-shrink: 0; font-size: 1rem; }
.field input, .field textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--label);
  padding: .75rem 0; outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field.stack { flex-direction: column; align-items: stretch; gap: 0; padding-top: .75rem; }
.field.stack label { width: auto; font-size: .8125rem; color: var(--secondary); }
.field:focus-within { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.group-label { font-size: .8125rem; color: var(--secondary); padding: 0 1rem .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 1rem; border-radius: 999px; cursor: pointer;
  background: var(--fill2); font-size: .9375rem; user-select: none; -webkit-user-select: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms cubic-bezier(.2,.8,.2,1);
}
.chip span:active { transform: scale(0.96); transition-duration: 80ms; }
.chip input:checked + span { background: var(--accent-fill); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.sent { display: none; text-align: center; padding: 2rem 0 1rem; }
.sent .check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-fill); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; }
form.done .sent { display: block; }
form.done .form-fields { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Accessibility: reduced motion / transparency / contrast ---------- */
@media (prefers-reduced-motion: reduce) {
  .pressable:active, .chip span:active { transform: none; }
  .player, .sheet, .scrim { transition: opacity 200ms ease !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .player { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --secondary: var(--label); --separator: currentColor; }
  .nav { background: var(--bg); border-bottom: 1px solid var(--label); }
  .card, .tile, .player { border: 1px solid var(--label); }
}

/* ---------- About page ---------- */
.about-intro { padding-top: clamp(3rem, 7vw, 5rem); }
.clients { max-width: 720px; }
.nav ul a[aria-current="page"] { opacity: 1; font-weight: 600; }
@media (max-width: 720px) { .about-intro .about img { max-width: 420px; } }

/* ---------- Shows page: vertical list, alphabetical ---------- */
.page-intro { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 0; }
.page-intro .lede { max-width: 40ch; margin-top: 1rem; }
.shows-all { padding-top: clamp(2rem, 5vw, 3rem); }
.show-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.show { position: relative; }
.show + .show::before { content: ""; position: absolute; top: 0; right: 0; left: calc(1.25rem + 56px + 1rem); border-top: 1px solid var(--separator); }
.show-row { display: flex; align-items: center; gap: .75rem; padding-right: 1.25rem; transition: background-color 200ms ease; }
.show-row:hover { background: color-mix(in srgb, var(--fill2) 55%, transparent); }
.row-toggle {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem 0 1rem 1.25rem; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit;
}
.row-toggle .thumb { width: 56px; height: 56px; border-radius: 12px; }
.row-text { min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.row-title { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.016em; line-height: 1.25; }
.row-school { font-size: .9375rem; color: var(--secondary); }
.row-place { font-size: .8125rem; color: var(--tertiary); }
.chev { width: 18px; height: 18px; color: var(--tertiary); transition: transform 320ms cubic-bezier(.2,.9,.25,1); }
.show[data-open="true"] .chev { transform: rotate(180deg); }
.details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms cubic-bezier(.2,.9,.25,1); }
.show[data-open="true"] .details { grid-template-rows: 1fr; }
.details > div { overflow: hidden; }
.details-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2.5rem;
  padding: .25rem 1.25rem 1.75rem calc(1.25rem + 56px + 1rem);
  opacity: 0; transition: opacity 200ms ease;
}
.show[data-open="true"] .details-inner { opacity: 1; transition-delay: 80ms; }
.details h4 { margin: 0 0 .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--secondary); }
.rep { list-style: none; margin: 0; padding: 0; }
.rep li, .team div { padding: .5rem 0; border-top: 1px solid var(--separator); font-size: .9375rem; }
.rep li span { display: block; font-size: .8125rem; color: var(--secondary); }
.team { margin: 0; }
.team div { display: flex; justify-content: space-between; gap: 1rem; }
.team dt { color: var(--secondary); }
.team dd { margin: 0; text-align: right; }
.team .me dt, .team .me dd { color: var(--accent); font-weight: 600; }
.see-all { display: inline-flex; margin-top: 1.25rem; color: var(--accent); font-weight: 500; text-decoration: none; font-size: 1.0625rem; }
.see-all:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .details-inner { padding-left: 1.25rem; }
  .show + .show::before { left: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .details, .chev, .details-inner { transition: none; }
}

.form-error { color: var(--accent); }
.form-error:empty { display: none; }
