/* ============================================================
   Briton Ferry Musical Theatre Company
   Brand palette taken straight from the logo:
     blue  #55A8DB   pink #EC6FBF   white #FFFFFF   black #050507
   ============================================================ */

:root {
  --blue: #55a8db;
  --blue-bright: #7cc2ec;
  --pink: #ec6fbf;
  --pink-bright: #f594d2;

  --ink: #050507;
  --ink-2: #0c0d12;
  --ink-3: #14161d;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);

  --text: #f4f5f8;
  --muted: #a8adba;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --wrap: 1180px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;              /* native form controls follow the dark theme */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--pink-bright); }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--blue); color: #04121b;
  padding: .7rem 1.2rem; border-radius: 0 0 10px 10px;
  font-weight: 600; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; color: #04121b; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn-primary {
  background: linear-gradient(120deg, var(--blue) 0%, var(--pink) 100%);
  color: #06121a;
  box-shadow: 0 10px 30px rgba(85, 168, 219, .28);
}
.btn-primary:hover {
  color: #06121a;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(236, 111, 191, .34);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--blue);
  background: rgba(85, 168, 219, .10);
  transform: translateY(-2px);
}

.btn-sm { padding: .62rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 500; font-size: .93rem;
  color: var(--blue-bright);
}
.link-arrow::after { content: '\2192'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 5, 7, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-stuck {
  background: rgba(5, 5, 7, .93);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
}

.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: .15rem; line-height: 1.1; }
.brand-wordmark { width: 122px; height: auto; }
.brand-sub {
  font-size: .46rem; font-weight: 500;
  letter-spacing: .125em; text-transform: uppercase;
  color: var(--muted);
}

.primary-nav ul {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a:not(.btn) {
  color: var(--text);
  font-size: .92rem; font-weight: 400;
  position: relative; padding: .35rem 0;
}
.primary-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.primary-nav a:not(.btn):hover { color: #fff; }
.primary-nav a:not(.btn):hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }
.nav-cta .btn-primary { color: #06121a; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: 12px; padding: .55rem .6rem; cursor: pointer;
}
.nav-toggle-box { display: block; width: 22px; }
.nav-toggle-box span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-box span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 820px);
  display: flex; align-items: center;
  padding: 2.4rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #10131c 0%, #050507 62%),
    var(--ink);
  text-align: center;
}

.stage-lights { position: absolute; inset: -20% -10% auto -10%; height: 130%; pointer-events: none; }
.beam {
  position: absolute; top: -30%;
  width: 46vmax; height: 130vmax;
  filter: blur(60px); opacity: .30;
  transform-origin: top center;
  animation: sway 14s ease-in-out infinite alternate;
}
.beam-blue {
  left: -8%;
  background: conic-gradient(from 200deg at 50% 0%, transparent 0deg, rgba(85,168,219,.55) 18deg, transparent 36deg);
  transform: rotate(14deg);
}
.beam-pink {
  right: -8%;
  background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(236,111,191,.5) 18deg, transparent 36deg);
  transform: rotate(-14deg);
  animation-delay: -5s;
}
.beam-white {
  left: 50%; margin-left: -23vmax;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(255,255,255,.16) 14deg, transparent 28deg);
  opacity: .5;
  animation-delay: -9s;
}
@keyframes sway {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}

.curtain {
  position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, var(--ink) 12%, rgba(5,5,7,0) 100%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-logo {
  width: min(340px, 64vw);
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 0 44px rgba(85, 168, 219, .35));
}

.hero-kicker {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.9rem, 3.7vw, 2.85rem);
  margin: 0 auto .8rem;
  max-width: 22ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--blue-bright), var(--pink));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lede {
  max-width: 58ch; margin: 0 auto 1.9rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center;
  margin-bottom: 2.4rem;
}

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem;
  list-style: none; margin: 0; padding: 0;
}
.hero-stats li {
  flex: 1 1 190px; max-width: 260px;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  backdrop-filter: blur(6px);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem; color: #fff;
}
.stat-label {
  display: block;
  font-size: .8rem; color: var(--muted);
  letter-spacing: .02em;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px; z-index: 3;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 9px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--blue-bright);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(14px); opacity: .1; }
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
section[id] { scroll-margin-top: 5.5rem; }
.section-alt {
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(85, 168, 219, .07), transparent 60%),
    radial-gradient(80% 60% at 90% 100%, rgba(236, 111, 191, .07), transparent 60%),
    var(--ink-2);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 62ch; margin-bottom: 3rem; }
.eyebrow {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .8rem;
}
.section-lede { color: var(--muted); margin-bottom: 0; }

/* ---------- cards (what's on) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  /* the next-production card takes the full row, media beside copy */
  .cards .card-feature {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
  }
  .cards .card-feature .card-media {
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .cards .card-feature .card-media-poster { aspect-ratio: auto; }
  .cards .card-feature .card-body { padding: 2.6rem 2.8rem; justify-content: center; }
  .cards .card-feature h3 { font-size: 1.95rem; }
  .cards .card-feature .licence-note {
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .68rem;
  line-height: 1.6;
  color: var(--muted);
}
.licence-note a { color: var(--muted); text-decoration: underline; }

.card-meta { font-size: .95rem; }
}

.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 168, 219, .45);
  box-shadow: var(--shadow);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(236, 111, 191, .30), transparent 65%),
    radial-gradient(70% 90% at 20% -10%, rgba(85, 168, 219, .30), transparent 60%),
    #0a0b10;
  display: grid;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-media {
  position: relative;
  margin: 0;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;   /* keeps faces in frame when the panel crops */
}
.card-media-poster {
  background:
    radial-gradient(80% 80% at 50% 20%, rgba(236, 111, 191, .12), transparent 70%),
    #0a0b10;
  aspect-ratio: 4 / 5;              /* portrait artwork, never cropped */
}
.card-media-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.3rem;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, .5));
}
.card-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.2rem .9rem;
  background: linear-gradient(to top, rgba(4, 4, 6, .88), transparent);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: #e9ecf3;
}

.card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .2rem; }
.card-body p:last-of-type { margin-bottom: 1.1rem; }
.card-body .btn, .card-body .link-arrow { align-self: flex-start; margin-top: auto; }

.card-tag {
  display: inline-block; width: fit-content;
  font-size: .66rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}
.tag-live      { background: rgba(236, 111, 191, .16); color: var(--pink-bright); border: 1px solid rgba(236, 111, 191, .35); }
.tag-audition  { background: rgba(85, 168, 219, .14);  color: var(--blue-bright); border: 1px solid rgba(85, 168, 219, .34); }
.tag-rehearsal { background: rgba(255, 255, 255, .06); color: var(--muted);       border: 1px solid var(--line-strong); }

.card-meta {
  font-size: .85rem; color: var(--muted);
  letter-spacing: .02em; margin-bottom: .8rem;
}

/* ---------- cast ---------- */
.card-cast { grid-column: 1 / -1; }
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem 2.2rem;
  margin-top: .6rem;
}
.cast-group h4 {
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 .7rem;
}
.cast-group h4 + ul + h4 { margin-top: 1.4rem; }
.cast-group ul { list-style: none; margin: 0; padding: 0; }
.cast-group li {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .32rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.cast-group li:last-child { border-bottom: 0; }
.cast-role {
  flex: 0 0 7.2rem;
  font-size: .8rem; color: var(--muted);
}
.cast-group li em { font-style: italic; color: var(--blue-bright); font-size: .88rem; }
.cast-group--chorus p { color: var(--text); font-size: .95rem; margin: 0; line-height: 1.8; }

/* ---------- sponsors ---------- */
.sponsor-strip {
  margin-top: 2.6rem;
  padding: 2rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(85,168,219,.08), rgba(236,111,191,.08));
}
.sponsor-strip h3 { margin-bottom: 1.2rem; }
.sponsor-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem .8rem;
}
.sponsor-list li {
  padding: .45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: .88rem; font-weight: 500; color: var(--text);
}
.sponsor-note { margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-copy h2 { max-width: 18ch; }
.about-copy p { color: var(--muted); }

.tick-list { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.tick-list li {
  position: relative;
  padding-left: 2rem; margin-bottom: .8rem;
  color: var(--text); font-size: .97rem;
}
.tick-list li::before {
  content: '\2713';
  position: absolute; left: 0; top: -1px;
  width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center;
  font-size: .72rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #06121a; font-weight: 700;
}

.about-panel {
  padding: 1.6rem 1.6rem 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(85, 168, 219, .12), transparent 60%),
    var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}
.panel-photo {
  margin: 0 0 1.6rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.panel-photo img { width: 100%; }
.panel-photo figcaption {
  padding: .7rem 1rem;
  background: rgba(255, 255, 255, .03);
  border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--muted);
}
.panel-photo figcaption em { color: var(--text); font-style: italic; }
.about-panel blockquote { margin: 0; }
.about-panel blockquote p {
  font-family: var(--font-display);
  font-style: italic; font-size: 1.22rem;
  color: #fff; line-height: 1.45;
}
.about-panel cite {
  font-style: normal; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.gallery-item {
  grid-column: span 2;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.gallery-wide { grid-column: span 3; }
.gallery-item img {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-full { grid-column: 1 / -1; }
.gallery-full img { aspect-ratio: auto; }
.gallery-full figcaption {
  padding: .8rem 1.1rem;
  font-size: .82rem; color: var(--muted);
  border-top: 1px solid var(--line);
}
.card-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.card-meta a:hover { color: var(--blue-bright); }

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .gallery-item { grid-column: span 1; }
  .gallery-wide,
  .gallery-item:last-child { grid-column: span 2; }
}

/* ---------- join ---------- */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.join-card {
  padding: 1.9rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.join-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 111, 191, .4);
  background: var(--ink-3);
}
.join-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(85,168,219,.22), rgba(236,111,191,.22));
  border: 1px solid var(--line-strong);
  font-size: 1.1rem; color: #fff;
}
.join-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.join-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2.5rem; padding: 1.8rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(85,168,219,.12), rgba(236,111,191,.12));
}
.join-cta p { margin: 0; font-size: 1.05rem; }

/* ---------- support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.support-card {
  padding: 2rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  transition: transform .35s var(--ease), border-color .35s;
}
.support-card:hover { transform: translateY(-5px); border-color: rgba(85, 168, 219, .45); }
.support-card p { color: var(--muted); font-size: .96rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy p { color: var(--muted); }

.msg-actions {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-top: 1.8rem;
}
.msg-note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }
.form-lead {
  font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.4rem;
}

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label {
  flex: 0 0 6.5rem;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); padding-top: .2rem;
}

.contact-form {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink-2);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; margin-bottom: .4rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: #08090d;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit; font-size: .97rem;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(85, 168, 219, .18);
}
.form-note {
  margin: .9rem 0 0; min-height: 1.2rem;
  font-size: .86rem; color: var(--blue-bright);
}
.form-note.is-error { color: var(--pink-bright); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand img { width: 190px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }

.social-row { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, background .25s, color .25s;
}
.social-btn:hover {
  color: #fff;
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(85,168,219,.25), rgba(236,111,191,.25));
  transform: translateY(-3px);
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: var(--text); font-size: .93rem; }
.site-footer a:hover { color: var(--blue-bright); }

.footer-base {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.footer-base p { margin: 0; font-size: .82rem; color: var(--muted); }
.footer-made { opacity: .8; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero-lede { font-size: 1rem; }
  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed; inset: 0 0 auto 0;
    padding: 5.6rem 1.5rem 2rem;
    background: #07080c;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-102%);
    transition: transform .38s var(--ease);
    z-index: -1;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav li:last-child { border-top: 0; padding-top: 1.2rem; }
  .primary-nav a:not(.btn) { display: block; padding: .95rem 0; font-size: 1.05rem; }
  .primary-nav a:not(.btn)::after { display: none; }
  .nav-cta .btn { width: 100%; }

  .hero { min-height: auto; padding: 2.4rem 0 4rem; }
  .hero-stats li { flex-basis: 100%; max-width: none; }
  .join-cta { text-align: center; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-label { flex-basis: 100%; }
}

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

/* ---------- contact form fallback ----------
   Shown only when the mailto: link may not have worked, so the visitor
   always has a way to get the message to us. */
.form-fallback {
  margin-top: 1.1rem;
  padding: 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.form-fallback-lead {
  margin: 0 0 .8rem;
  font-size: .9rem; color: var(--muted);
}
.form-fallback-text {
  width: 100%;
  margin-bottom: .8rem;
  padding: .75rem .85rem;
  font: 400 .88rem/1.55 var(--font-body);
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
}
.form-fallback-text:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
