/*
 * ClubSpec Golf — site styles (enqueued from functions.php; the theme header lives in /style.css)
 */

/* ==========================================================================
   Tokens — values measured from the 1512px Figma frame
   ========================================================================== */
:root {
  --c-bg: #000;
  --c-surface: #050505;
  --c-surface-2: #0c0f0e;
  --c-line: #3d3d3d;
  --c-line-soft: #1f2120;
  --c-text: #f2f2f2;
  --c-body: #e4e4e4;
  --c-muted: #9c9c9c;
  --c-green: #3cde81;
  --c-green-hover: #5ae896;
  --c-green-ink: #04140a;
  --c-error: #ff7a6b;

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --gutter: 20px;
  --container: 1200px;
  --header-h: 64px;

  /* type scale (desktop values reached at the 1512 frame) */
  --fs-hero: clamp(44px, 3.6vw + 10px, 64px);
  --fs-h2: clamp(30px, 2.2vw + 7px, 40px);
  --fs-eyebrow: 14px;
  --fs-body-lg: clamp(16px, .25vw + 13px, 17px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-body);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

::selection { background: var(--c-green); color: var(--c-green-ink); }

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px;
  background: var(--c-green); color: var(--c-green-ink);
  font-weight: 600; border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

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

/* ==========================================================================
   Type
   ========================================================================== */
.eyebrow {
  font-family: var(--f-display);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--c-text);
  text-wrap: balance;
}

.section-lead {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 46px;
  padding: 0 27px;
  border-radius: 3px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  /* Hover/press effects use the standalone `scale`/`translate` properties, never `transform`, and
     opacity is not transitioned: GSAP owns `transform`/`opacity` on animated elements, and a CSS
     transition on either corrupts the values GSAP reads back. */
  transition: background-color .2s, color .2s, scale .2s var(--ease-out), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}

.btn span[aria-hidden] { transition: transform .25s var(--ease-out); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { scale: .98; }

.btn--primary { background: var(--c-green); color: var(--c-green-ink); }
.btn--primary:hover { background: var(--c-green-hover); box-shadow: 0 8px 28px -10px rgba(60, 222, 129, .7); }

.btn--ghost { color: var(--c-text); border: 1px solid var(--c-line); }
.btn--ghost:hover { border-color: var(--c-muted); }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--tall { min-height: 56px; }

.btn[aria-disabled="true"] {
  background: transparent;
  color: var(--c-text);
  box-shadow: none;
  cursor: not-allowed;
}
.btn[aria-disabled="true"] span[aria-hidden] { display: none; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-green);
  padding: 8px 0;
}
.link-cta span[aria-hidden] { transition: transform .25s var(--ease-out); }
.link-cta:hover span[aria-hidden] { transform: translateX(4px); }

/* Ring icon — the brand's target mark (images/SVG.svg) */
.ring-icon {
  flex: none;
  width: 28px; height: 28px;
  background: url("../../images/SVG.svg") center / contain no-repeat;
}
.ring-icon--lg { width: 50px; height: 50px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s;
}
.site-header.is-scrolled,
.site-header.is-open { background: rgba(0, 0, 0, .85); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { flex: none; }
.brand img { width: 130px; }
@media (min-width: 768px) { .brand img { width: 200px; } }

.site-header__actions { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 6px;
  border-radius: var(--radius);
}
.nav-toggle__bar {
  display: block; width: 22px; height: 2px;
  background: var(--c-text);
  transition: transform .3s var(--ease-out);
}
.nav-toggle__bar { transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav: drop-down sheet */
.primary-nav {
  position: absolute;
  top: var(--header-h);
  inset-inline: 0;
  background: rgba(0, 0, 0, .96);
  border-bottom: 1px solid var(--c-line-soft);
  padding: 8px var(--gutter) 24px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .4s var(--ease-out), visibility 0s .4s;
}
.site-header.is-open .primary-nav {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .4s var(--ease-out);
}
.primary-nav__list { list-style: none; margin: 0; padding: 0; }
.primary-nav__list a {
  display: block;
  padding: 14px 0;
  font-family: var(--f-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line-soft);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
  .primary-nav {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    background: none; border: 0; padding: 0;
    clip-path: none; visibility: visible;
  }
  .primary-nav__list { display: flex; gap: 34px; }
  .primary-nav__list a {
    position: relative;
    padding: 6px 0;
    font-family: var(--f-body);
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--c-text);
    border: 0;
    transition: color .2s;
  }
  .primary-nav__list a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--c-green);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease-out);
  }
  .primary-nav__list a:hover,
  .primary-nav__list a[aria-current="true"] { color: #fff; }
  .primary-nav__list a:hover::after,
  .primary-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
}

/* ==========================================================================
   Hero — 760px tall at 1512, content vertically centred
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 48px;
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 30%, rgba(0,0,0,.8) 68%, #000 100%);
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-text);

}
.hero__line { display: block; }

.hero__intro {
  margin: 29px 0 28px;
  max-width: 440px;
  font-size: var(--fs-body-lg);
  line-height: 1.56;
  color: var(--c-body);
}

@media (min-width: 768px) {
  .hero { min-height: clamp(560px, 50.3vw, 860px); align-items: flex-start; padding: clamp(140px, 13.5vw, 204px) 0 64px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero__media img { position: absolute; left: -13%; top: -11%; width: 126%; max-width: none; height: 126%; object-position: center top; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,0) 65%),
      linear-gradient(180deg, transparent 0%, transparent 72%, #000 100%);
  }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: clamp(26px, 3vw, 26px) 0 0; }
.about .eyebrow { margin-bottom: 11px; }
.about__grid { display: grid; gap: 36px; }
.about__copy .section-title { margin-bottom: 14px; }
.about__copy p:not(.eyebrow) {
  font-size: var(--fs-body-lg);
  line-height: 1.53;
  color: var(--c-body);
}

.feature-grid { display: grid; gap: 14px; }

.feature-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-height: 111px;
  padding: 22px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  transition: border-color .3s, translate .3s var(--ease-out);
}
.feature-card:hover { border-color: rgba(60, 222, 129, .55); translate: 0 -2px; }
.feature-card .ring-icon { margin-top: 3px; }
.feature-card__title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 6px;
}
.feature-card p { font-size: 12.5px; line-height: 1.6; color: var(--c-body); }

@media (min-width: 560px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 29px 31px; } }
@media (min-width: 1000px) {
  .about__grid { grid-template-columns: minmax(0, 518px) minmax(0, 571px); justify-content: space-between; column-gap: 40px; padding-right: calc(var(--gutter) + 56px); }
  .about__copy { padding-top: 0; }
  .feature-grid { align-self: start; margin-top: 41px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding-top: clamp(80px, 11.8vw, 178px); }
.services .eyebrow { margin-bottom: 2px; }
.services .section-lead { margin-top: 24px; }
.services .section-head { margin-bottom: clamp(40px, 3.8vw, 57px); }
.services .section-title { margin-top: 0; }

.service-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 17px; } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 398 / 279;
  min-width: 0;
  overflow: hidden;
  background: var(--c-surface);
  isolation: isolate;
}
.service-card__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale .8s var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.92) 100%);
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .3s;
}
.service-card:hover .service-card__img { scale: 1.05; }
.service-card:hover::after,
.service-card:focus-within::after { border-color: rgba(60, 222, 129, .6); }

.service-card__body { padding: 0 17px 16px 26px; }
.service-card__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-text);
}
.service-card__text {
  margin-top: 3px;
  max-width: 290px;
  font-size: 14px;
  line-height: 1.57;
  color: var(--c-body);
}
.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.service-card__price {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-green);
}

/* ==========================================================================
   Workshop — full-bleed 1512×505 banner, then highlight tiles
   ========================================================================== */
.workshop { padding-top: clamp(80px, 11vw, 166px); }
.workshop__banner {
  position: relative;
  display: grid;
  overflow: hidden;
  isolation: isolate;
}
.workshop__img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: 72% center;
  z-index: -2;
}
.workshop__content { grid-area: 2 / 1; padding-top: 28px; }
.workshop__content .section-title { font-size: clamp(32px, 2.1vw + 10px, 42px); line-height: 1; }
.workshop__content p:not(.eyebrow) {
  margin: 18px 0 25px;
  max-width: 400px;
  font-size: 16px;
  line-height: 1.56;
  color: var(--c-body);
}

@media (min-width: 900px) {
  .workshop__banner { width: 100%; aspect-ratio: 1512 / 505; min-height: 460px; max-height: 620px; }
  .workshop__banner::before {
    content: "";
    grid-area: 1 / 1;
    z-index: -1;
    background:
      linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 35%, transparent 55%),
      linear-gradient(180deg, #000 0%, transparent 14%, transparent 86%, #000 100%);
  }
  .workshop__img { min-height: 0; object-position: right center; }
  .workshop__content { grid-area: 1 / 1; align-self: center; padding-top: 0; padding-left: calc(var(--gutter) + 19px); margin-top: -20px; }
  .workshop__content .btn { margin-left: -6px; padding-inline: 24px; }
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 140px;
  padding: 20px 12px;
  text-align: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--c-text);
  transition: border-color .3s, translate .3s var(--ease-out);
}
.highlight:hover { border-color: rgba(60, 222, 129, .55); translate: 0 -3px; }

@media (min-width: 768px) {
  .highlight-grid--wide { max-width: calc(1270px + var(--gutter) * 2); }
  .highlight-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 29px; }
  .highlight { min-height: 156px; padding: 30px 12px 10px; font-size: 15px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: clamp(56px, 3.8vw, 58px) 0 0; }
.contact .eyebrow { margin-bottom: 3px; }
.contact__grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 608px); gap: 48px; align-items: start; }
}
.contact .section-title { margin-bottom: 0; }
.contact .section-lead { max-width: 380px; font-size: 16px; line-height: 1.53; color: #a6a6a6; margin-top: 12px; }

.contact-list { display: grid; gap: 18px; margin-top: 40px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-list__icon {
  flex: none;
  width: 19px; height: 19px;

  fill: none; stroke: var(--c-green); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-list a, .contact-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-text);
}
.contact-list a:hover { color: var(--c-green); }
.contact-list span { display: block; margin-top: 1px; font-size: 12px; color: #b3b3b3; }

.contact-form { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 36px; padding-top: 20px; }
  .field--full { grid-column: 1 / -1; }
}
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ==========================================================================
   Form fields (shared by contact + booking)
   ========================================================================== */
.field { display: grid; gap: 8px; align-content: start; }
.field label {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.field input,
.field textarea {
  width: 100%;
  height: 45px;
  padding: 10px 14px;
  line-height: 1.4;
  background: var(--c-surface-2);
  border: 1px solid #1f2322;
  border-radius: 3px;
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; height: 112px; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #5e6863; }
.field input:hover, .field textarea:hover { border-color: #3a3f3d; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(60, 222, 129, .18);
}
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field__error { font-size: 13px; color: var(--c-error); }

.form-status { font-size: 14px; color: var(--c-green); }
.form-status.is-error { color: var(--c-error); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 56px 0 48px; }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.site-footer .brand img { width: 205px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 27px; list-style: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 1.5; }
.footer-nav a, .footer-nav button { color: #bdbdbd; padding: 6px 0; transition: color .2s; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--c-green); }
.site-footer__tag {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.site-footer__tag span { color: var(--c-green); }

@media (min-width: 768px) {
  .site-footer { padding: 60px 0 72px; }
  .site-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; text-align: left; }
  .site-footer__inner .brand { justify-self: start; }
  .site-footer__tag { justify-self: end; }
}

/* ==========================================================================
   Mobile — values taken straight from the 402px mobile design frame
   ========================================================================== */
@media (max-width: 767px) {
  :root { --header-h: 76px; }

  /* Header: logo, 117×52 Book now (no arrow), three-bar menu */
  .site-header { background: rgba(0, 0, 0, .78); }
  .site-header__inner { padding-inline: 18px 30px; }
  .brand img { width: 140px; }
  .site-header .btn--sm { min-height: 40px; padding: 0 22px; font-size: 16px; margin-right: 16px; }
  .site-header .btn--sm span[aria-hidden] { display: none; }
  .nav-toggle { width: 30px; gap: 8px; margin-right: -2px; }
  .nav-toggle__bar { width: 26px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(10px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-10px) rotate(-45deg); }

  /* Hero: one word per line, 48px / 68px */
  .hero { min-height: 0; align-items: flex-start; padding: 182px 0 25px; }
  .hero .container { padding-inline: 22px; }
  .hero .eyebrow { margin: 0 0 6px 6px; }
  .hero__title { font-size: 48px; line-height: 58px; max-width: 240px; }
  .hero__intro { margin: 1px 0 23px; max-width: 360px; font-size: 17px; line-height: 26.5px; }
  .hero .btn { min-height: 44px; }
  .hero__media::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.55) 100%); }

  /* About */
  .about { padding-top: 48px; }
  .about .container { padding-inline: 30px 32px; }
  /* 40px at the 402 frame; shrinks on narrower phones so it stays on one line */
  .about__copy .section-title { font-size: min(40px, calc((100vw - 64px) / 8.3)); margin-bottom: 4px; white-space: nowrap; }
  .about__copy p:not(.eyebrow) { padding-left: 2px; font-size: 17px; line-height: 26.4px; }
  .about__grid { gap: 37px; }
  .feature-grid { gap: 13px; max-width: 322px; margin-left: 2px; }
  .feature-card p { max-width: 190px; }

  /* Services */
  .services { padding-top: 50px; }
  .services .container { padding-inline: 34px 21px; }
  .services .eyebrow { margin-bottom: 4px; }
  .services .section-title { font-size: 29px; line-height: 30px; max-width: 200px; }
  .services .section-lead { margin-top: 7px; max-width: 320px; font-size: 15px; line-height: 24px; }
  .services .section-head { margin-bottom: 40px; }
  .service-grid { gap: 16px; padding-left: 1px; }
  .service-card { min-height: 0; }
  .service-card__body { padding: 0 22px 14px 23px; }
  .service-card__text { margin-top: 0; line-height: 21px; }
  .service-card__meta { margin-top: 10px; }

  /* Workshop: cropped banner, content below */
  .workshop { padding-top: 12px; }
  .workshop .eyebrow { margin-bottom: 2px; }
  .workshop__banner { display: block; }
  .workshop__img { height: 255px; min-height: 0; object-position: 67% center; }
  .workshop__banner::after {
    content: "";
    position: absolute; left: 0; right: 0; top: 155px; height: 100px;
    background: linear-gradient(180deg, transparent, #000);
    pointer-events: none;
  }
  .workshop__content { padding: 56px 40px 0; }
  .workshop__content .section-title { font-size: 42px; line-height: 45px; }
  .workshop__content p:not(.eyebrow) { margin: 15px 0 20px; font-size: 16px; line-height: 25px; }
  .workshop__content .btn { min-height: 45px; padding-inline: 24px; }
  .highlight-grid--wide { padding-inline: 40px 22px; }
  .highlight-grid { gap: 14px; margin-top: 26px; max-width: 340px; }
  .highlight { min-height: 155px; padding: 27px 8px 12px; gap: 8px; font-size: 15px; line-height: 22px; }

  /* Contact */
  .contact { padding-top: 62px; }
  .contact .container { padding-inline: 34px 14px; }
  .contact .eyebrow { margin-bottom: 3px; padding-left: 4px; }
  .contact .section-title { font-size: 40px; }
  .contact .section-title, .contact .section-lead { padding-left: 4px; }
  .contact .section-lead { margin-top: 11px; max-width: 290px; font-size: 16px; line-height: 25px; }
  .contact-list { margin-top: 30px; gap: 20px; }
  .contact__grid { gap: 60px; }
  .contact-form { gap: 19px; }
  .contact-form .field { gap: 4px; }
  .contact-form .field label { font-size: 13px; }
  .contact-form .btn { min-height: 44px; padding-inline: 27px; margin-top: 2px; }

  /* Footer: logo, tagline, links — stacked and centred */
  .site-footer { padding: 100px 0 80px; }
  .site-footer__inner { gap: 0; }
  .site-footer__tag { order: 2; margin-top: 10px; font-size: 13px; }
  .site-footer__inner nav { order: 3; margin-top: 22px; }
  .footer-nav { gap: 6px 24px; max-width: 300px; font-size: 14px; }
}

/* ==========================================================================
   Wide desktop — offsets taken straight from the 1512px design frame
   ========================================================================== */
.hero .btn { padding-inline: 18px; }

/* 1280–1360px screens: every section's content is exactly 1200px wide and centred
   (the design-frame offsets below only start above 1360px). */
@media (min-width: 1280px) and (max-width: 1360px) {
  .highlight-grid--wide { max-width: calc(var(--container) + var(--gutter) * 2); }
  .about__grid { padding-right: var(--gutter); }
}

@media (min-width: 1361px) {
  .site-header__inner { padding-left: calc(var(--gutter) + 7px); padding-right: calc(var(--gutter) + 64px); }
  .service-grid { grid-template-columns: repeat(3, 398px); margin-right: -28px; }
  .service-card { aspect-ratio: auto; height: 279px; }
  .highlight-grid--wide { padding-left: calc(var(--gutter) + 11px); padding-right: calc(var(--gutter) - 11px); }
  .site-footer__inner { grid-template-columns: 436px auto 1fr; }
  .primary-nav { left: calc(50% - 39px); }
}

/* ==========================================================================
   Booking page (book.html) — a normal scrolling page under the site header.
   Mobile-first: the action button sticks to the bottom of the screen;
   on desktop the form is a centred column with the button underneath.
   ========================================================================== */
.booking {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  color: var(--c-body);
}

.booking__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100svh - var(--header-h));
  margin-inline: auto;
}

.booking__head { padding: 22px var(--gutter) 6px; }
.booking__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-muted);
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 0 10px;
  margin: 0;
}
.stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stepper__dot {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--c-green);
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--c-text);
  transition: background-color .3s, color .3s, transform .3s var(--ease-out);
}
.stepper__label {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color .3s;
}
.stepper__step.is-current .stepper__dot { background: var(--c-green); color: var(--c-green-ink); transform: scale(1.06); }
.stepper__step.is-current .stepper__label { color: var(--c-text); }
.stepper__step.is-done .stepper__dot { background: transparent; }

.stepper__track { position: relative; height: 3px; background: var(--c-line); }
.stepper__fill {
  position: absolute; inset: 0 auto 0 0;
  width: 33.333%;
  background: var(--c-green);
  transition: width .5s var(--ease-out);
}
.booking.is-done .stepper,
.booking.is-done .stepper__track { display: none; }

.booking__form {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.booking__body {
  flex: 1;
  padding: 24px var(--gutter) 24px;
}
.booking__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking__step[data-step="3"] { display: grid; gap: 22px; }
/* Booking fields per mockup: black fill, visible grey outline, white labels */
.booking .field label { font-size: 14px; color: var(--c-text); letter-spacing: .06em; }
.booking .field input,
.booking .field textarea { background: #000; border-color: #4a4d4c; border-radius: 6px; }
.booking .field textarea { height: 140px; }

.booking__step-title {
  display: block;
  width: 100%;
  margin-bottom: 18px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-muted);
}
.booking__step-title span { font-size: .85em; }
.booking__hint { margin-top: 18px; font-size: 13px; color: var(--c-muted); text-align: center; }

/* Security question (printed by the ClubSpec Bookings plugin) */
.field--check {
  padding: 16px;
  border: 1px dashed var(--c-line);
  border-radius: 6px;
}
.field--check label span { color: var(--c-green); letter-spacing: .04em; }
.booking .field--check input { max-width: 120px; text-align: center; font-family: var(--f-display); font-size: 20px; }

.booking__error {
  padding: 12px 14px;
  border-left: 2px solid var(--c-error);
  background: rgba(255, 122, 107, .08);
  color: var(--c-text);
  font-size: 14px;
}

.booking__foot {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  /* Solid black: iOS Safari tints its toolbar from the background colour of the element
     pinned to the bottom of the screen — without one it picked up the green button. */
  background: #000;
}
/* Soft fade above the bar so content doesn't end with a hard edge */
.booking__foot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  height: 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0), #000);
  pointer-events: none;
}
/* Thank-you step: button sits under the summary, as in the mockup */
.booking.is-done .booking__foot {
  position: static;
  justify-content: center;
  background: none;
  padding-top: 32px;
}
.booking.is-done .booking__foot .btn { width: min(240px, 100%); }
.booking.is-done .booking__foot::before { display: none; }
@media (min-width: 720px) { .booking__foot::before { display: none; } }
.booking.is-done .booking__body { flex: 0 0 auto; }
.booking__foot .btn { min-height: 48px; font-size: 16px; }
.booking__back { flex: none; padding: 0 18px; }

/* Service options (step 1) */
.service-options { display: grid; gap: 14px; }

.service-option {
  position: relative;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-bg);
  transition: border-color .25s, background-color .25s;
}
.service-option:hover { border-color: #5a605d; }
.service-option.is-selected { border-color: var(--c-green); background: rgba(60, 222, 129, .04); }

.service-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-option__label {
  display: block;
  padding: 18px 18px 4px;
  cursor: pointer;
}
.service-option__input:focus-visible + .service-option__label {
  outline: 2px solid var(--c-green);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}
.service-option__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.service-option__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-text);
}
.service-option__price {
  flex: none;
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--c-green);
}
.service-option__summary { margin-top: 6px; font-size: 15px; color: var(--c-body); line-height: 1.5; }

.service-option__more {
  overflow: hidden;
  padding-inline: 18px;
}
.service-option__more ul {
  margin: 0;
  padding: 8px 0 2px 20px;
  font-size: 15px;
  color: var(--c-body);
}
.service-option__more li { padding: 2px 0; }
.service-option__more li::marker { color: var(--c-green); }

.service-option__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 18px 12px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--c-muted);
  transition: color .2s;
}
.service-option__toggle:hover { color: var(--c-text); }
.service-option__toggle svg {
  width: 14px; height: 14px;
  fill: none; stroke: var(--c-green); stroke-width: 2;
  transition: transform .3s var(--ease-out);
}
.service-option__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Calendar (step 2) */
.calendar {
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 14px 12px 12px;
}
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.calendar__month {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-text);
}
.calendar__nav {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--c-green);
  transition: background-color .2s, opacity .2s;
}
.calendar__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.calendar__nav:hover:not(:disabled) { background: var(--c-surface-2); }
.calendar__nav:disabled { color: var(--c-line); cursor: not-allowed; }

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__dow {
  padding: 6px 0 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.calendar__day {
  aspect-ratio: 1;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--c-text);
  transition: border-color .2s, background-color .2s, color .2s, transform .15s var(--ease-out);
}
.calendar__day:hover:not(:disabled) { border-color: #5a605d; }
.calendar__day:active:not(:disabled) { transform: scale(.94); }
.calendar__day:disabled { color: #4a4e4c; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.12); }
.calendar__day.is-today { color: #6c7370; text-decoration: none; }
.calendar__day[aria-pressed="true"] { border-color: var(--c-green); background: rgba(60, 222, 129, .1); color: var(--c-green); }
.calendar__pad { aspect-ratio: 1; }

.calendar__picked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  min-height: 44px;
  font-size: 14px;
  color: var(--c-muted);
}
.calendar__picked strong { font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--c-green); }
.calendar__clear { font-size: 13px; color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.calendar__clear:hover { color: var(--c-text); }

@media (min-width: 720px) {
  .calendar { padding: 18px 20px 16px; }
  .calendar__grid { gap: 6px; }
  .calendar__day { aspect-ratio: auto; height: 44px; font-size: 20px; }
  .calendar__pad { aspect-ratio: auto; height: 44px; }
}

/* Done */
.booking__done { text-align: center; padding-top: 24px; outline: none; }
.booking__done-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 14px;
}
.booking__done p { max-width: 70ch; margin: 0 auto 10px; }
.booking__done strong { color: var(--c-text); font-weight: 500; word-break: break-all; }
.booking__ref span { font-family: var(--f-display); font-size: 18px; color: var(--c-green); letter-spacing: .04em; }
.booking__summary-title {
  margin: 36px 0 12px;
  text-align: left;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-muted);
}
.booking__summary {
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 4px 20px;
  text-align: left;
}
.booking__summary div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
}
.booking__summary div + div { border-top: 1px solid var(--c-line-soft); }
.booking__summary dt { color: var(--c-body); }
.booking__summary dd { font-family: var(--f-display); font-size: 18px; color: var(--c-green); text-align: right; }

/* Desktop: centred 680px column, page scrolls normally, button under the form */
@media (min-width: 720px) {
  .booking { padding-bottom: 72px; }
  .booking__panel { width: min(680px, 100% - 48px); min-height: 0; }
  .booking__head { padding: 48px 0 12px; }
  .booking__title { font-size: 28px; }
  .booking__body { flex: 0 0 auto; padding: 32px 0 8px; }
  .booking__foot { position: static; padding: 24px 0 0; background: none; }
  .booking__summary-title { margin-top: 28px; }
}

/* ==========================================================================
   Content pages (page.html template: terms, privacy, any WP page) + 404
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: clip;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--c-line-soft);
  background: radial-gradient(120% 140% at 85% 0%, rgba(60, 222, 129, .07), transparent 55%), #000;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 4vw + 16px, 64px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-text);
}
.page-hero__lead { margin-top: 18px; max-width: 60ch; font-size: var(--fs-body-lg); color: var(--c-muted); }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--c-muted);
}
.page-hero__meta strong { color: var(--c-text); font-weight: 500; }
.page-hero .line-art--contours { width: 560px; left: auto; right: -160px; top: -140px; stroke-opacity: .07; }

.page-body { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); }
.page-layout { display: grid; gap: 40px; }
.page-layout > * { min-width: 0; } /* let wide tables scroll inside .table-wrap instead of widening the page */
@media (min-width: 1000px) {
  .page-layout--toc { grid-template-columns: 240px minmax(0, 720px); gap: 80px; }
}

/* "On this page" — built from the h2s by main.js */
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.toc__label {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 14px;
}
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--c-line-soft); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-muted);
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--c-text); }
.toc a[aria-current="true"] { color: var(--c-text); border-left-color: var(--c-green); }

/* Prose: styles for the_content() — headings, lists, links, tables, notes */
.prose { max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--c-body); }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  margin-top: 56px;
  padding-top: 8px;
  font-family: var(--f-display);
  font-size: clamp(24px, 1vw + 18px, 30px);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--c-text);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; font-family: var(--f-display); font-size: 19px; font-weight: 500; color: var(--c-text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--c-green); }
.prose a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--c-green-hover); }
.prose strong { color: var(--c-text); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--c-line-soft); margin: 48px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--c-line-soft); text-align: left; vertical-align: top; }
.prose th { font-family: var(--f-display); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--c-line-soft); border-radius: var(--radius); }
.prose .table-wrap table th, .prose .table-wrap table td { white-space: normal; min-width: 140px; }
.prose blockquote, .prose .note {
  padding: 16px 20px;
  border-left: 2px solid var(--c-green);
  background: rgba(60, 222, 129, .05);
  color: var(--c-text);
}
.prose .note--draft { border-left-color: #e6b84a; background: rgba(230, 184, 74, .07); }

/* 404 */
.error-page {
  position: relative;
  overflow: clip;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) 0 64px;
  text-align: center;
}
.error-page .container { position: relative; z-index: 1; }
.error-page__shot { width: min(420px, 86vw); margin: 0 auto 28px; overflow: visible; fill: none; stroke-linecap: round; }
.error-page__shot .ground { stroke: rgba(255, 255, 255, .18); }
.error-page__shot .flight { stroke: var(--c-green); stroke-width: 1.5; }
.error-page__shot .flight-ghost { stroke: rgba(60, 222, 129, .25); stroke-dasharray: 2 6; }
.error-page__shot .pin { stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; }
.error-page__shot .flag { fill: var(--c-green); }
.error-page__shot .hole { stroke: rgba(255, 255, 255, .45); }
.error-page__shot .stake { stroke: #fff; stroke-width: 2; }
.error-page__shot .ball { fill: #fff; }
.error-page__shot .ob { fill: var(--c-muted); font-family: var(--f-display); font-size: 11px; letter-spacing: .14em; }
/* The shot draws itself, then the ball drops in beyond the stakes */
.error-page__shot .flight { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ob-flight 1.4s .3s cubic-bezier(.45, 0, .55, 1) forwards; }
.error-page__shot .ball { opacity: 0; animation: ob-ball .3s 1.65s ease-out forwards; }
@keyframes ob-flight { to { stroke-dashoffset: 0; } }
@keyframes ob-ball { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.error-page .line-art--contours { width: 640px; left: -240px; top: auto; bottom: -220px; stroke-opacity: .06; }
.error-page__code {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-green);
}
.error-page__title {
  margin-top: 10px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 5vw + 16px, 80px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-text);
}
.error-page__text { margin: 18px auto 32px; max-width: 46ch; font-size: var(--fs-body-lg); color: var(--c-muted); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.error-page__links { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 14px; }
.error-page__links a { color: var(--c-muted); }
.error-page__links a:hover { color: var(--c-green); }

/* ==========================================================================
   Background line art — thin golf drawings behind sections (never affects layout)
   ========================================================================== */
.has-art { position: relative; overflow: clip; isolation: isolate; }
.has-art > .container,
.has-art > .workshop__banner { position: relative; z-index: 1; }

.line-art {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  fill: none;
  stroke: #fff;
  stroke-opacity: .09;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.line-art path, .line-art ellipse, .line-art line { vector-effect: non-scaling-stroke; }

/* Hero: launch-monitor ball-flight tracers over the photo */
.line-art--tracers {
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--c-green);
  stroke-opacity: .32;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.line-art--tracers .tracer-label {
  fill: var(--c-green);
  fill-opacity: .55;
  stroke: none;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .12em;
}
.hero > .line-art { z-index: 0; }
.hero__content { position: relative; z-index: 1; }

/* About: topographic green with the pin, bleeding off the left edge */
.line-art--contours { width: 720px; left: -260px; top: -60px; }
/* Contact: dimpled ball, cropped bottom right */
.line-art--ball { width: 560px; right: -200px; bottom: -260px; opacity: .07; }

@media (max-width: 767px) {
  .line-art--contours { width: 460px; left: -200px; top: 10px; }
  .line-art--ball { width: 380px; right: -170px; bottom: -150px; }
  .line-art--tracers { stroke-opacity: .22; }
  .line-art--tracers .tracer-label { display: none; }
}

/* ==========================================================================
   Page loader (homepage) — a tee shot lands in the hole, then the panel lifts
   ========================================================================== */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #000;
  /* failsafe: if scripts never run, get out of the way */
  animation: loader-failsafe 0s 6s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }
.js.is-loading { overflow: hidden; }

/* Hidden until home.js has put every piece in its start position — otherwise the finished
   drawing shows for a moment while GSAP downloads, then "blinks" back to the start. */
.loader__inner { display: grid; justify-items: center; gap: 22px; width: min(340px, 80vw); opacity: 0; }

/* Programmatic focus after a menu jump shouldn't draw an outline around the whole section */
section[tabindex="-1"]:focus { outline: none; }
.loader__shot { width: 100%; overflow: visible; fill: none; stroke-linecap: round; }
.loader__ground { stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.loader__tracer { stroke: var(--c-green); stroke-width: 1.5; }
.loader__trace-ghost { stroke: rgba(60, 222, 129, .14); stroke-width: 1; stroke-dasharray: 2 6; }
.loader__pin { stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; }
.loader__flag { fill: var(--c-green); stroke: none; }
.loader__hole { stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.loader__ball { fill: #fff; }

.loader__readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  color: var(--c-muted);
}
.loader__readout strong {
  min-width: 3.2ch;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.loader__logo { width: 150px; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .loader { display: none; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
/* Hide reveal targets only when JS + Motion will animate them (class set in main.js) */
.motion-ready [data-reveal],
.motion-ready [data-reveal-item],
.motion-ready [data-hero-item] { opacity: 0; }

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