*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1c1512;
  --red: #8f1621;
  --red-light: #b52233;
  --red-deep: #180908;
  --brass: #a9873f;
  --grey: #6b6560;
  --line: rgba(28,21,18,0.13);
  --paper: #ffffff;
  --paper-alt: #f6f4f1;
  --cream: #f1ead9;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Urbanist', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--grey); background: var(--paper); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 700; text-wrap: balance; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
section { padding-block: clamp(56px, 8vw, 100px); }

.kicker { font-family: var(--sans); font-size: 0.92rem; font-weight: 700; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.rule { width: 46px; height: 3px; background: var(--red); border: none; margin: 14px 0 22px; }
.rule.center { margin-inline: auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; }
.section-head p { margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 32px; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  border: 1px solid transparent; border-radius: 0;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-light); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); padding: 12px 22px; font-size: 0.92rem; }
.btn-outline:hover { background: var(--red); color: #fff; }

/* ── TOPBAR ── */
.topbar { background: var(--ink); color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 10px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── NAV ── */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-row { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.crest {
  width: 88px; height: 88px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; border: 2px solid var(--brass);
}
img.crest { object-fit: cover; }
.brand-name { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1.1; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-size: 0.92rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--ink); padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--red); border-color: var(--red); }
.nav-links .btn { padding: 13px 24px; font-size: 0.92rem; }

.burger-toggle { display: none; }
.burger-label { display: none; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: 96px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .18s ease, opacity .18s ease;
  }
  .nav-links a:not(.btn) { padding-block: 15px; border-top: 1px solid var(--line); border-bottom: none; }
  .nav-links .btn { margin-block: 16px 4px; align-self: flex-start; }
  .burger-label {
    display: flex; width: 42px; height: 42px; border: 1px solid var(--line);
    align-items: center; justify-content: center; cursor: pointer; flex-direction: column; gap: 5px;
  }
  .burger-label span { display: block; width: 20px; height: 2px; background: var(--ink); }
  .burger-toggle:checked ~ .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* ── HERO ── */
.hero { position: relative; overflow: hidden; min-height: clamp(440px, 62vw, 640px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
img.hero-media { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,4,3,0.78) 0%, rgba(10,4,3,0.5) 38%, rgba(10,4,3,0.1) 72%);
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0.6;
}
.hero-arrow.prev { left: 24px; } .hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.85); }
.hero-dots span:not(:first-child) { background: rgba(255,255,255,0.4); }
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-family: 'Oswald', sans-serif; color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 0.98; text-transform: uppercase; max-width: 16ch; }
.hero p { max-width: 44ch; font-size: 1.05rem; margin-top: 18px; color: rgba(255,255,255,0.88); }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Royal Stewart tartan sett, standing in for a real photo until one is supplied */
.tartan {
  background-color: #b7121c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Crect width='96' height='96' fill='%23b7121c'/%3E%3Crect x='22' width='2' height='96' fill='%23141414'/%3E%3Crect x='24' width='2' height='96' fill='%23ede7dc'/%3E%3Crect x='26' width='2' height='96' fill='%23141414'/%3E%3Crect x='36' width='14' height='96' fill='%231f6b34'/%3E%3Crect x='58' width='2' height='96' fill='%23141414'/%3E%3Crect x='60' width='2' height='96' fill='%23c9a227'/%3E%3Crect x='62' width='2' height='96' fill='%23141414'/%3E%3Crect x='72' width='6' height='96' fill='%2322306e'/%3E%3Crect x='86' width='2' height='96' fill='%23141414'/%3E%3Crect x='88' width='2' height='96' fill='%23c9a227'/%3E%3Crect x='90' width='2' height='96' fill='%23141414'/%3E%3Cg fill-opacity='.6'%3E%3Crect y='22' width='96' height='2' fill='%23141414'/%3E%3Crect y='24' width='96' height='2' fill='%23ede7dc'/%3E%3Crect y='26' width='96' height='2' fill='%23141414'/%3E%3Crect y='36' width='96' height='14' fill='%231f6b34'/%3E%3Crect y='58' width='96' height='2' fill='%23141414'/%3E%3Crect y='60' width='96' height='2' fill='%23c9a227'/%3E%3Crect y='62' width='96' height='2' fill='%23141414'/%3E%3Crect y='72' width='96' height='6' fill='%2322306e'/%3E%3Crect y='86' width='96' height='2' fill='%23141414'/%3E%3Crect y='88' width='96' height='2' fill='%23c9a227'/%3E%3Crect y='90' width='96' height='2' fill='%23141414'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}

/* ── ABOUT ── */
.about { position: relative; overflow: hidden; }
.about-watermark {
  position: absolute; left: -60px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; border: 44px solid var(--paper-alt); border-radius: 50%; z-index: 0;
}
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.95fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); }
.about-grid p { max-width: 54ch; margin-bottom: 14px; }
.about-grid strong { color: var(--ink); }
.about-grid p.note { font-size: 0.85rem; font-style: italic; opacity: 0.75; margin-top: 16px; }
.photo-frame { aspect-ratio: 4/3; background: var(--paper-alt); overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── THE BAND (corps) ── */
.corps { background: var(--paper-alt); }
.corps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.corps-card { background: var(--paper); padding: 40px 32px; }
.corps-card svg { width: 38px; height: 38px; color: var(--red); margin-bottom: 20px; }
.corps-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.corps-card p { font-size: 0.94rem; }

/* ── EVENTS ── */
.events-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.events-head h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); }
table.events { width: 100%; border-collapse: collapse; }
table.events th { text-align: left; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); padding: 0 0 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
table.events td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.events td.date { font-family: var(--display); font-size: 1.6rem; color: var(--ink); font-weight: 600; width: 140px; white-space: nowrap; }
table.events td.date small { display: block; font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-top: 2px; font-weight: 700; }
table.events td.what strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--ink); margin-bottom: 3px; }
table.events td.what span { font-size: 1.02rem; }
.fine-note { margin-top: 22px; font-size: 0.85rem; font-style: italic; opacity: 0.7; }

/* ── BAND LEADERS ── */
.leaders-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 40px; max-width: 520px; margin-inline: auto; }
.leaders-grid .leader-card { flex: 0 0 calc(50% - 20px); }
@media (max-width: 480px) { .leaders-grid { gap: 28px 20px; } .leaders-grid .leader-card { flex-basis: calc(50% - 10px); } }
.leader-photo { aspect-ratio: 4/5; background: var(--paper-alt); border: 1px solid var(--line); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; color: var(--red); }
.leader-photo svg { width: 40px; height: 40px; opacity: 0.5; }
.leader-card { text-align: center; }
.leader-card h3 { font-size: 1.3rem; }
.leader-card span { font-size: 0.82rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── MEDIA ── */
.media { background: var(--paper-alt); }
.carousel { position: relative; }
.car-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track img { height: clamp(230px, 28vw, 340px); width: auto; flex: none; scroll-snap-align: start; display: block; background: var(--ink); }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(28,21,18,0.78); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
}
.car-btn:hover { background: var(--red); }
.car-btn.prev { left: 12px; } .car-btn.next { right: 12px; }
@media (max-width: 760px) { .car-btn { width: 40px; height: 40px; font-size: 1.3rem; } }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-thumb { aspect-ratio: 16/10; background: var(--paper-alt); margin-bottom: 20px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 10px; }
.news-card p { font-size: 0.92rem; margin-bottom: 18px; }

/* ── ARTICLE (news sub-pages) ── */
.article-hero { aspect-ratio: 21/9; background: var(--paper-alt); overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-head { max-width: 760px; margin: 0 auto 36px; }
.article-head .kicker { margin-bottom: 14px; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body p { margin-bottom: 18px; }
.article-body p.note { font-size: 0.85rem; font-style: italic; opacity: 0.75; }
.article-back { display: inline-block; margin-bottom: 28px; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--red); }
.article-back:hover { text-decoration: underline; }

/* ── SPONSORS ── */
.sponsor-row { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; }
.sponsor-row span { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); opacity: 0.55; letter-spacing: 0.02em; }

/* ── JOIN BANNER (photo banner + form, in the "Delivering Positive Change" slot) ── */
.join-banner { position: relative; overflow: hidden; color: #fff; }
.join-banner .hero-scrim { background: linear-gradient(100deg, rgba(10,4,3,0.9) 0%, rgba(10,4,3,0.68) 55%, rgba(10,4,3,0.45) 100%); }
.join-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.join-grid .kicker { color: var(--brass); }
.join-grid h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 12ch; }
.join-grid .rule { background: var(--brass); }
.join-grid > div > p { max-width: 42ch; color: rgba(255,255,255,0.88); }
form.enquiry { display: flex; flex-direction: column; gap: 14px; }
form.enquiry label { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 6px; display: block; }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 13px 14px; font-family: var(--sans); font-size: 0.95rem;
}
form.enquiry input::placeholder, form.enquiry textarea::placeholder { color: rgba(255,255,255,0.5); }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
form.enquiry textarea { resize: vertical; min-height: 90px; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
footer { background: var(--paper); padding-block: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-col p, .footer-col a { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--grey); text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--red); }
.footer-col h4 { font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 16px; font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-watermark { display: none; }
  .corps-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  table.events td.date { width: auto; }
  .events-head { flex-direction: column; align-items: flex-start; }
}
