/* ==========================================================================
   PICKLEBALL AS USUAL — STYLESHEET
   Palette and type pulled from the @pickleballasusual Instagram identity.
   ========================================================================== */

:root {
  /* Brand palette */
  --espresso:    #3B2A20;
  --espresso-dk: #241811;
  --ink:         #150E09;
  --brown-mid:   #5A4436;
  --brown-soft:  #6E5645;
  --sky:         #8ECAE0;
  --sky-bright:  #A8DCEE;
  --cyan:        #6FE0F5;   /* the electric cyan from the key visual */
  --sky-deep:    #5FA8C4;
  --cream:       #F2EDE6;
  --cream-dim:   rgba(242, 237, 230, 0.62);
  --cream-faint: rgba(242, 237, 230, 0.20);

  /* Type */
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --script:  'Instrument Serif', Georgia, serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* Layout */
  --max:     1240px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --nav-h:   72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--espresso-dk);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--sky);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ utilities -- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
}

.section {
  padding-block: clamp(4rem, 10vw, 8rem);
  position: relative;
}

/* Keep anchor jumps clear of the fixed nav */
[id] { scroll-margin-top: calc(var(--nav-h) + 1.25rem); }
.section--tint { background: var(--espresso); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  font-size: clamp(2rem, 6vw, 3.75rem);
  margin-top: 0.5rem;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--cream-dim);
  max-width: 56ch;
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------- rules -- */
.rule {
  height: 1px;
  background: var(--cream-faint);
  border: 0;
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
              color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}

.btn--primary { background: var(--sky); color: var(--ink); font-weight: 600; }
.btn--primary:hover { background: var(--sky-bright); transform: translateY(-2px); }

.btn--ghost { border-color: var(--cream-faint); color: var(--cream); }
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }

.btn[aria-disabled="true"] {
  background: transparent;
  border-color: var(--cream-faint);
  color: var(--cream-dim);
  cursor: not-allowed;
  pointer-events: none;
}

.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(21, 14, 9, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--cream-faint);
}

.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--cream-faint);
}
.nav__name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current] { color: var(--cream); }
.nav__link:hover::after,
.nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; padding: 0.5rem; }
.nav__toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.nav__toggle span + span { margin-top: 5px; }
.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); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(21, 14, 9, 0.97);
    backdrop-filter: blur(16px);
    padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--cream-faint);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav__link { font-size: 1rem; padding-block: 0.9rem; width: 100%; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

/* Canva-designed court artwork, animated with a slow parallax drift */
/* Layer 1 — the blue court plate.
   The plate and the cutout below MUST share identical sizing rules, or the
   player will not land exactly on top of himself. Do not add a transform,
   inset or animation to one without adding it to the other. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Layer 3 — the same player, background keyed out, sitting ON TOP of the
   headline so he passes in front of the letters. */
.hero__cutout {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero__cutout img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.6%, -1.2%, 0); }
}

/* Warm brown grade + bottom fade so text always stays readable */
/* Layer 2 — just enough shading for the nav and the foot copy to stay legible
   on the bright court, without muddying the blue. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(21, 14, 9, 0.52) 0%, transparent 28%),
    linear-gradient(to top, rgba(21, 14, 9, 0.80) 0%, rgba(21, 14, 9, 0.24) 32%, transparent 58%),
    radial-gradient(125% 105% at 50% 48%, transparent 48%, rgba(21, 14, 9, 0.46) 100%);
}

/* A sweep of light that travels across the court, echoing the gym window */
.hero__sweep {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(142, 202, 224, 0.09) 48%,
    rgba(168, 220, 238, 0.16) 52%,
    transparent 62%
  );
  background-size: 260% 100%;
  animation: heroSweep 11s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroSweep {
  0%, 100% { background-position: 130% 0; }
  50%      { background-position: -30% 0; }
}

/* 35mm grain */
.hero::after {
  content: '';
  position: absolute; inset: -50%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(1.5rem, 6vh, 4rem)) var(--gutter)
           clamp(2.5rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Giant thin headline. z-index 2 puts it above the court but below the player
   cutout (z-index 3), which is what produces the occlusion. */
.hero__title {
  position: relative;
  z-index: 2;
  margin-top: clamp(0.5rem, 5vh, 3rem);
  font-family: var(--display);          /* Anton — same as every heading on the site */
  font-weight: 400;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 0.84;
  letter-spacing: -0.005em;
  font-size: clamp(2.9rem, 12.5vw, 10.5rem);
  text-shadow: 0 6px 48px rgba(21, 14, 9, 0.55);
}

/* Foot of the hero: secondary line at the left, glass cards at the right */
.hero__bottom {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
}

.hero__sub {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3.9vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: rgba(242, 237, 230, 0.52);
}

.hero__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: stretch;
}

/* Frosted cards, as on the reference */
.gcard {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem 0.8rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  color: #fff;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.gcard:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }

.gcard__thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Event logos are dark line art, so they sit on a cream chip rather than
   directly on the glass — keeps the artwork's own colours untouched. */
.gcard__thumb--logo {
  width: 58px; height: 58px;
  object-fit: contain;
  padding: 6px;
  background: var(--cream);
  border-radius: 11px;
}
.gcard__label {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.25rem;
}
.gcard__title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.25;
  max-width: 22ch;
}
.gcard__big {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

@media (max-width: 620px) {
  .hero__cards { width: 100%; }
  .gcard { flex: 1 1 100%; }
}

.hero__stat {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.hero__stat strong { color: var(--sky); font-weight: 600; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%      { transform: translate(-50%, 7px); opacity: 1; }
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ------------------------------------------------------- next-up banner -- */
.nextup {
  background: var(--sky);
  color: var(--ink);
}
.nextup__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.35rem;
}
.nextup__text {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.nextup__text strong { font-weight: 700; }
.nextup__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease);
}
.nextup__cta:hover { gap: 0.85rem; }

/* ----------------------------------------------------------- event grid -- */
.events {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px)  { .events { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .events { grid-template-columns: repeat(3, 1fr); } }

.event {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, rgba(90,68,54,0.42), rgba(36,24,17,0.5));
  border: 1px solid var(--cream-faint);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease),
              background-color 0.45s var(--ease);
}
.event::before {
  content: '';
  position: absolute; inset: 0 auto 0 0;
  width: 2px;
  background: var(--sky);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.event:hover { transform: translateY(-4px); border-color: rgba(142,202,224,0.4); }
.event:hover::before { transform: scaleY(1); transform-origin: top; }

.event.is-past { opacity: 0.62; }
.event.is-past:hover { opacity: 0.85; }

.event__status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.25rem;
}
.event__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky);
}
.event.is-live .event__dot { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(142,202,224,0.7); }
  100% { box-shadow: 0 0 0 9px rgba(142,202,224,0); }
}
.event.is-past .event__status { color: var(--cream-dim); }
.event.is-past .event__dot { background: var(--cream-dim); }

.event__date {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.event__name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.02;
  margin: 0.5rem 0 0.25rem;
}
.event__edition {
  font-family: var(--script);
  font-style: italic;
  text-transform: none;
  color: var(--sky);
  font-size: 0.62em;
  margin-left: 0.3rem;
}

.event__venue {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 1rem;
}

.event__summary { color: var(--cream-dim); font-size: 0.95rem; }

.event__meta {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.event__meta div { display: flex; gap: 0.75rem; }
.event__meta dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  min-width: 6.5rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.event__meta dd { margin: 0; }

.event__tba {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 0.6rem 0.85rem;
  border: 1px dashed var(--cream-faint);
  border-radius: 4px;
  display: inline-block;
}

.event__highlights {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.event__highlights li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
}
.event__highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border: 1px solid var(--sky);
  border-radius: 50%;
}

.event__actions {
  margin-top: auto;
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.event__actions .btn { padding: 0.75rem 1.35rem; font-size: 0.7rem; }

/* -------------------------------------------------------------- gallery -- */
/* Masonry columns — posters keep their full aspect ratio and stay readable,
   which a fixed-row grid would crop. */
.gallery {
  column-count: 1;
  column-gap: 0.9rem;
}
@media (min-width: 560px)  { .gallery { column-count: 2; } }
@media (min-width: 900px)  { .gallery { column-count: 3; } }
@media (min-width: 1200px) { .gallery { column-count: 4; } }

.shot {
  position: relative;
  margin: 0 0 0.9rem;
  break-inside: avoid;
  page-break-inside: avoid;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--cream-faint);
  background: var(--espresso);
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92);
}
.shot:hover img { transform: scale(1.05); filter: saturate(1.05); }

.shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 0.9rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(to top, rgba(21,14,9,0.92), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.shot:hover figcaption,
.shot:focus-within figcaption { opacity: 1; transform: none; }

@media (hover: none) {
  .shot figcaption { opacity: 1; transform: none; }
}

/* A single framed photo, used inside prose columns */
.photo {
  margin: 0;
  border-radius: 6px;
  border: 1px solid var(--cream-faint);
  overflow: hidden;
  background: var(--espresso);
}
.photo img { width: 100%; display: block; filter: saturate(0.95); }
.photo figcaption {
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-top: 1px solid var(--cream-faint);
}

/* -------------------------------------------------------------- details -- */
.detail {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) { .detail { grid-template-columns: 1.4fr 1fr; } }

.spec {
  border-top: 1px solid var(--cream-faint);
}
.spec div {
  display: flex;
  gap: 1.5rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--cream-faint);
}
.spec dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  min-width: 8rem;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.spec dd { margin: 0; font-size: 1.02rem; }
.spec .tbd { color: var(--cream-dim); font-style: italic; }

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--cream-dim);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  border: 1px solid var(--sky);
  border-radius: 50%;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--cream-faint);
  border-radius: 6px;
  background: rgba(90, 68, 54, 0.2);
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
@media (max-width: 939px) { .panel { position: static; } }

.panel__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

/* -------------------------------------------------------------- pagehead -- */
.pagehead {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(4rem, 12vh, 8rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--cream-faint);
  overflow: hidden;
}
.pagehead::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 380px at 82% -10%, rgba(142,202,224,0.13), transparent 65%),
    linear-gradient(180deg, var(--espresso) 0%, var(--espresso-dk) 100%);
  z-index: -1;
}
.pagehead__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  font-size: clamp(2.5rem, 9vw, 6rem);
  margin-top: 0.75rem;
  position: relative;
}
.pagehead__script {
  font-family: var(--script);
  font-style: italic;
  text-transform: none;
  color: var(--sky);
  font-size: 0.48em;
  margin-left: 0.4rem;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------- about -- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.stat-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 3rem;
}
.stat {
  border-top: 1px solid var(--sky);
  padding-top: 1rem;
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  color: var(--cream);
}
.stat__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------- contact -- */
.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.contact-card {
  padding: 1.75rem;
  border: 1px solid var(--cream-faint);
  border-radius: 6px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.contact-card:hover { border-color: var(--sky); transform: translateY(-3px); }
.contact-card__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.6rem;
}
.contact-card__value { font-size: 1.02rem; word-break: break-word; }

/* -------------------------------------------------------------- footer -- */
.footer {
  border-top: 1px solid var(--cream-faint);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--ink);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.footer__word {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1;
  max-width: 12ch;
}
.footer__word em {
  font-family: var(--script);
  font-style: italic;
  text-transform: none;
  color: var(--sky);
}
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
}
.footer__coltitle {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.9rem;
}
.footer__list li { margin-bottom: 0.55rem; }
.footer__list a {
  font-size: 0.92rem;
  color: var(--cream-dim);
  transition: color 0.3s var(--ease);
}
.footer__list a:hover { color: var(--sky); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--cream-faint);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* ------------------------------------------------------ scroll reveals -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------- reduced motion resp. -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero::after { display: none; }
}

/* ------------------------------------------------------------ printing -- */
@media print {
  .nav, .hero__scroll, .hero__sweep, .footer { display: none; }
  body { background: #fff; color: #000; }
}
