/* ==========================================================================
   Westside Badminton — site styles
   Palette taken from the logo / original site:
     blue   #6699CC (logo feathers #70ABC4)
     orange #FF6633 (logo shuttle cork #F73600)
     ink    #1E1715 (logo wordmark)
   ========================================================================== */

/* Barlow & Barlow Condensed (SIL Open Font License), latin subset, self-hosted */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  --blue: #6699cc;
  --blue-soft: #e8f0f8;
  --blue-deep: #2f5d8a;
  --orange: #ff6633;
  --orange-deep: #f73600;
  --ink: #1e1715;
  --ink-2: #2b2422;
  --text: #3d3735;
  --muted: #6e6866;
  --line: #e7e2e0;
  --paper: #ffffff;
  --paper-warm: #f6f3f2;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(30 23 21 / 6%), 0 8px 24px rgb(30 23 21 / 8%);
  --shadow-lg: 0 2px 4px rgb(30 23 21 / 6%), 0 20px 48px rgb(30 23 21 / 14%);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --header-h: 72px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--orange-deep);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--warm {
  background: var(--paper-warm);
}

.section--blue {
  background: var(--blue-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
}

.lead {
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  --btn-bg: #ff7a4d;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgb(255 255 255 / 70%);
}

.btn--ghost:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: #fff;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgb(30 23 21 / 6%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: clamp(190px, 22vw, 240px);
  height: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.15s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--orange-deep);
}

.site-nav a[aria-current="page"] {
  color: var(--blue-deep);
  box-shadow: inset 0 -3px 0 var(--orange);
  border-radius: 0;
}

.site-nav .nav-cta {
  margin-left: 0.75rem;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 0.5rem var(--gutter) 2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgb(30 23 21 / 12%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav a:not(.btn) {
    padding: 1rem 0.25rem;
    font-size: 1.3rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
  }

  .site-nav .nav-cta {
    margin: 1.25rem 0 0;
    border-top: 0 !important;
  }

  .site-nav .nav-cta .btn {
    width: 100%;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 760px);
  padding-block: clamp(6rem, 14vw, 9rem) clamp(3.5rem, 8vw, 6rem);
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgb(20 16 15 / 88%) 0%, rgb(20 16 15 / 62%) 45%, rgb(20 16 15 / 15%) 100%),
    linear-gradient(0deg, rgb(20 16 15 / 55%) 0%, transparent 45%);
}

.hero__content {
  max-width: 760px;
}

.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero .lead {
  color: rgb(255 255 255 / 88%);
  max-width: 560px;
  margin-bottom: 2rem;
}

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 11vw, 8rem) clamp(3rem, 7vw, 5rem);
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgb(20 16 15 / 90%) 0%, rgb(20 16 15 / 70%) 55%, rgb(20 16 15 / 35%) 100%);
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero .eyebrow {
  color: #fff;
}

.page-hero .lead {
  color: rgb(255 255 255 / 85%);
  max-width: 620px;
}

/* ---------- Affiliation strip ---------- */

.affiliation {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.affiliation__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding-block: 1.75rem;
  text-align: left;
}

.affiliation img {
  width: clamp(140px, 22vw, 200px);
  flex: none;
}

.affiliation p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

@media (max-width: 560px) {
  .affiliation__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Split (text + image) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split__media::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -18px;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-lg);
  background: var(--blue);
  opacity: 0.35;
}

.split--reverse .split__media::after {
  right: auto;
  left: -18px;
  background: var(--orange);
  opacity: 0.25;
}

/* ---------- Coaches ---------- */

.coach-card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.coach-card__names {
  margin-bottom: 1.25rem;
}

.coach-card__names span {
  color: var(--orange-deep);
}


/* ---------- Programs ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.card:nth-child(2) .card__icon {
  background: #ffe9e1;
  color: #c33a10;
}

.card:nth-child(3) .card__icon {
  background: var(--ink);
  color: #fff;
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
}

/* ---------- Values band ---------- */

.values {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.values::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(102 153 204 / 28%), transparent 65%);
  pointer-events: none;
}

.values__list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: value;
}

@media (min-width: 820px) {
  .values__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.values__list li {
  counter-increment: value;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(0rem, 2vw, 2rem);
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.values__list li:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 820px) {
  .values__list li {
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 14%);
  }

  .values__list li:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

.values__list li::before {
  content: "0" counter(value);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
}

.values__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}

.values__list strong span {
  color: var(--blue);
}

/* ---------- CTA band ---------- */

.cta-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgb(255 255 255 / 22%), transparent 50%),
    linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
}

@media (min-width: 820px) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

.cta-band h2 {
  margin-bottom: 0.4rem;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgb(255 255 255 / 88%);
}

/* ---------- Locations ---------- */

.venues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.venue {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.venue__head {
  padding: 1.75rem 1.75rem 1.25rem;
  border-top: 5px solid var(--blue);
}

.venue:nth-child(2) .venue__head {
  border-top-color: var(--orange);
}

.venue:nth-child(3) .venue__head {
  border-top-color: var(--ink);
}

.venue__suburb {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.venue h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.sessions {
  flex: 1;
  margin: 0;
  padding: 0 1.75rem;
  list-style: none;
}

.sessions li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.sessions__day {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 6.5rem;
}

.sessions__time {
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.1em;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.tag--adults {
  background: #ffe9e1;
  color: #b23510;
}

.venue__foot {
  padding: 1.25rem 1.75rem 1.75rem;
}

.venue__foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.venue__foot a:hover {
  text-decoration: underline;
}

.venue__foot svg {
  width: 18px;
  height: 18px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-item:hover {
  color: var(--ink);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item small {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Photos / Instagram ---------- */

.insta-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.insta-handle {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.insta-handle:hover {
  color: var(--ink);
}

.insta-handle__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 200deg, var(--orange), var(--orange-deep), var(--blue), var(--orange));
}

.insta-handle__avatar img {
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.insta-handle strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
}

.insta-handle small {
  color: var(--muted);
}

/* Instagram's embed.js swaps the blockquote for an iframe and sizes its height */
.insta {
  max-width: calc(760px + 2 * var(--gutter));
}

.insta-embed {
  min-height: calc(min(100vw - 2 * var(--gutter), 760px) * 0.667 + 150px);
}

.insta-embed .instagram-media {
  display: grid;
  place-items: center;
  min-height: inherit;
  border-radius: var(--radius);
}

.insta-embed iframe {
  border-radius: var(--radius) !important;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.4rem, 1.2vw, 0.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  background: var(--paper-warm);
}

.gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.lightbox {
  width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(15 12 11 / 88%);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 15%);
  color: #fff;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgb(255 255 255 / 28%);
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 75%);
  padding-top: clamp(3.5rem, 7vw, 5rem);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand img {
  width: 230px;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 340px;
}

.site-footer h2 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.socials svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.9rem;
  color: rgb(255 255 255 / 55%);
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: var(--section-y);
  text-align: center;
}

.not-found__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.not-found__code span {
  color: var(--orange);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
