/* St Ives (Hunts) Golf Club, Rosa direction.
   After rosahotels.dgrees.studio: a Warm Stone loader whose mask slides up, a header that scrolls away (three links,
   the lockup, three links, a panel of image cards), a floating Menu and Book pill once it has gone, a hero film in a
   vertical ellipse that opens to full bleed as you scroll, a band of vertical links whose photo swaps, titles wiped
   in line by line, offset image compositions with drifting insets, a navy band with a stories slider, a full-bleed
   film band, a row of elliptical cards, a navy footer, and a right-hand menu panel with a photo for each link.
   Below 1100 px a solid bar replaces the header and the pill; on phones Book moves to the bottom bar.
   Brand tokens come from ../assets/st-ives.css. Transform and opacity are the only things that animate. */

:root {
  --navy: var(--sti-navy);
  --gold: var(--sti-gold);
  --gold-light: var(--sti-gold-light);
  --sky: var(--sti-sky);
  --stone: var(--sti-stone);
  --body: var(--sti-body);
  --ink: var(--sti-ink);
  --rule: var(--sti-rule);
  --font: var(--sti-font);
  --expo: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(20px, 5vw, 72px);
  --hd: 92px;
  --top: 0px;            /* height of the fixed bar above the page (0 on desktop, where the header scrolls away) */
  --inset: 12px;
  --line-light: rgba(255, 255, 255, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font-family: var(--font); font-weight: 400; font-size: var(--sti-body-size); line-height: var(--sti-body-lh); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 400; background: var(--navy); color: #fff; padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
html.locked, html.locked body { overflow: hidden; }

/* ---------- Type roles ---------- */
.title { font-weight: 300; color: var(--navy); line-height: 1.02; letter-spacing: -.02em; }
.title .line { display: block; position: relative; }
.title em { font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -.01em; }
.title--xl { font-size: clamp(44px, 6.4vw, 104px); }
.title--md { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.08; }
.label { font-weight: 600; font-size: var(--sti-label); line-height: var(--sti-label-lh); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.lede { font-weight: 300; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.4; color: var(--ink); }
.lede--sm { font-weight: 400; font-size: var(--sti-body-size); line-height: 1.6; margin-top: 1.2em; color: var(--body); }
.body { font-size: var(--sti-body-size); line-height: var(--sti-body-lh); color: var(--body); }
.body--lg { font-size: 18px; }
.tlink { color: var(--sky); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding-block: 12px; }   /* inline padding: a 44 px tall target, no change to the line */
.tlink:hover { color: var(--navy); }

/* The wipe (built by main.js): a ghost line at 20%, the ink copy uncovered left to right by two counter-moving boxes */
.wipe .ghost { display: block; opacity: .2; }
.wipe .ink-mask { position: absolute; inset: 0; overflow: hidden; }
.wipe .ink { display: block; }
.wipe .ink-mask, .wipe .ink { will-change: transform; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--sti-tap); padding: 0 1.9em; border-radius: 100px; font-weight: 600; font-size: var(--sti-label); line-height: 1; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: transform .6s var(--expo), background-color .3s, color .3s, border-color .3s; }
.btn:hover { transform: scale(.98); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--sky); }
.btn--line { border: 1px solid var(--navy); color: var(--navy); background: #fff; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--light { border: 1px solid #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--gold { background: var(--gold-light); color: var(--navy); }
.btn--gold:hover { background: var(--gold-pale, var(--sti-gold-pale)); }
.btn--big { min-height: 60px; padding: 0 2.6em; }
.sq { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); transition: transform .4s var(--expo); }
.sq--hollow { position: relative; width: 28px; height: 28px; background: transparent; border: 1px solid currentColor; }
.sq--hollow svg { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; transform: translate(-50%, -50%) rotate(-45deg); }
.sqlink { display: inline-flex; align-items: center; gap: 12px; min-height: var(--sti-tap); font-weight: 600; font-size: 15px; color: var(--sky); transition: color .3s; }
.sqlink:hover { color: var(--navy); }
.sqlink:hover .sq { transform: rotate(45deg) scale(1.35); }
.sqlink--light { color: #fff; }
.sqlink--light .sq { background: var(--gold-light); }
.bleed .sqlink--light .sq { background: #fff; }
.bleed .sqlink--light:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.sqlink--light:hover { color: var(--gold-light); }
.sqlinks { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.bars { display: flex; flex-direction: column; justify-content: space-between; width: 20px; height: 9px; }
.bars i { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--expo); }
[aria-expanded="true"] .bars i:first-child { transform: translateY(3.75px) rotate(45deg); }
[aria-expanded="true"] .bars i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Lockup: the stacked name, as the reference's stacked logo */
.lockup { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; line-height: 1; color: var(--navy); }
.lockup__1 { font-weight: 300; font-size: 30px; letter-spacing: -.01em; }
.lockup__2 { font-weight: 600; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Loader (html.intro only): Warm Stone, the crest fades in, the mask slides up. 1.08 s, CSS only ---------- */
.loader { display: none; }
html.intro .loader { display: block; position: fixed; inset: 0; z-index: 500; pointer-events: none; animation: loader-off 0s linear 1.08s forwards; }
html.intro .loader__mask { position: absolute; inset: 0; display: grid; place-items: center; background: var(--stone); animation: loader-up .55s cubic-bezier(.7, 0, .2, 1) .52s forwards; will-change: transform; }
html.intro .loader__crest { width: 112px; height: auto; opacity: 0; transform: translateY(10px); animation: crest-in .45s var(--expo) .08s forwards; }
/* main.js adds html.intro-done at 1.35 s from navigation start, a guard for a page whose first style came late */
html.intro.intro-done .loader { visibility: hidden; opacity: 0; }
@keyframes crest-in { to { opacity: 1; transform: none; } }
@keyframes loader-up { to { transform: translateY(-101%); } }
@keyframes loader-off { to { visibility: hidden; opacity: 0; } }

/* ---------- Desktop header: in the flow, scrolls away ---------- */
.hd { position: relative; z-index: 60; height: var(--hd); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gut); background: #fff; }
.hd__nav ul { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.hd__nav--r ul { justify-content: flex-end; }
.hd__item--dd { position: static; }
.hd__link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: var(--sti-tap); font-weight: 600; font-size: var(--sti-label); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.hd__link::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; background: var(--gold); transform: translateX(-50%) rotate(45deg) scale(.4); opacity: 0; transition: opacity .5s var(--expo), transform .5s var(--expo); }
.hd__link:hover::after, .hd__link:focus-visible::after, .hd__link[aria-expanded="true"]::after { opacity: 1; transform: translateX(-50%) rotate(45deg); }
.hd__chev { width: 10px; height: 7px; transition: transform .4s var(--expo); }
[aria-expanded="true"] > .hd__chev { transform: rotate(180deg); }
/* The Golf panel: full-width white, four image cards */
.dd { position: absolute; left: 0; top: 0; z-index: -1; width: 100%; padding: calc(var(--hd) + 28px) var(--gut) 44px; background: #fff; box-shadow: 0 30px 60px rgba(34, 34, 34, .08); opacity: 0; transform: translateY(-12px); transition: opacity .45s var(--expo), transform .6s var(--expo); }
.dd.is-open { opacity: 1; transform: none; }
.dd__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1240px; margin: 0 auto; }
.dd__cards a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.dd__img { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 10px; background: var(--stone); }
.dd__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--expo); }
.dd__cards a:hover img, .dd__cards a:focus-visible img { transform: scale(1.04); }
.dd__cards .label { color: var(--body); font-weight: 600; }
.dd__name { font-weight: 300; font-size: 24px; color: var(--navy); }

/* ---------- Floating pill (desktop) ---------- */
.pill { position: fixed; top: 12px; right: 12px; z-index: 110; display: flex; align-items: center; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--rule); border-radius: 60px; transform: translateY(-150%); transition: transform .8s var(--expo); }
.pill.is-on { transform: none; }
.pill__menu { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); transition: background-color .3s; }
.pill__menu:hover { background: var(--stone); }
.pill__book { min-height: 48px; }

/* ---------- Bar (tablet and phone) and the phone book bar ---------- */
.bar, .bookbar { display: none; }
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 64px; align-items: center; justify-content: space-between; padding: 0 max(16px, env(safe-area-inset-left)); background: #fff; border-bottom: 1px solid var(--rule); }
.bar__lockup { align-items: flex-start; }
.bar__lockup .lockup__1 { font-size: 24px; }
.bar__lockup .lockup__2 { font-size: 9px; margin-top: 4px; }
.bar__right { display: flex; align-items: center; gap: 8px; }
.bar__book { min-height: 44px; padding: 0 1.4em; }
.bar__menu { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 0 8px 0 12px; font-weight: 600; font-size: 15px; color: var(--navy); }
.bookbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; min-height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 600; font-size: var(--sti-label); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Menu: right-hand panel over a mask (a sheet on phones) ---------- */
.menu { position: fixed; inset: 0; z-index: 200; }
.menu[hidden] { display: none; }
.menu__mask { position: absolute; inset: 0; background: rgba(13, 48, 111, .45); opacity: 0; transition: opacity .5s ease-out; }
.menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: max(30vw, 440px); max-width: 100%; display: flex; flex-direction: column; padding: 28px 32px 32px; overflow-y: auto; overscroll-behavior: contain; background: #fff; transform: translateX(100%); transition: transform .8s var(--expo); }
.menu.is-open .menu__mask { opacity: 1; }
.menu.is-open .menu__panel { transform: none; }
.menu__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); }
.menu__close:hover { background: var(--stone); }
.menu__close svg { width: 16px; height: 16px; }
.menu__nav { padding-top: 40px; }
.menu__nav a { display: flex; align-items: center; min-height: 48px; font-weight: 300; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; color: var(--navy); transition: color .3s, transform .5s var(--expo); }
.menu__nav a:hover, .menu__nav a:focus-visible { color: var(--sky); transform: translateX(6px); }
.menu__well { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; margin: auto 0 24px; overflow: hidden; background: var(--stone); }
.menu__nav + .menu__well { margin-top: 32px; }
.menu__well img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .6s var(--expo), transform 1s var(--expo); }
.menu__well img.is-on { opacity: 1; transform: none; }
.menu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.menu__col { display: flex; flex-direction: column; }
.menu__col .label { margin-bottom: 6px; color: var(--navy); }
.menu__col a { color: var(--sky); min-height: 44px; display: flex; align-items: center; }
.menu__col a:hover { color: var(--navy); }
.menu__book { grid-column: 1 / -1; justify-self: start; }

/* ---------- Hero ---------- */
.hero { text-align: center; }
.hero__head { display: flex; flex-direction: column; align-items: center; padding: clamp(36px, 4.6vw, 72px) var(--gut) clamp(36px, 3.4vw, 52px); }
.hero__label { margin-bottom: clamp(18px, 1.8vw, 28px); }
.hero__title { max-width: 14ch; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 2.6vw, 40px); }
/* Entrance (script only): the label, title and buttons rise as the loader lifts; a 4 s fallback shows them regardless */
html.js:not(.rm) .hero__head > * { opacity: 0; transform: translateY(28px); animation: hero-show 0s linear 4s forwards; }
html.js:not(.rm) .hero.is-in .hero__head > * { opacity: 1; transform: none; transition: opacity .7s var(--expo), transform .9s var(--expo); }
html.js:not(.rm) .hero.is-in .hero__head > :nth-child(2) { transition-delay: .05s; }
html.js:not(.rm) .hero.is-in .hero__head > :nth-child(3) { transition-delay: .1s; }
@keyframes hero-show { to { opacity: 1; transform: none; } }
/* The hold: the frame is held by position: sticky while the ellipse opens; main.js scrubs the scale */
.hero__hold { position: relative; }
.hero__frame { position: relative; height: calc(100svh - var(--top)); min-height: 520px; overflow: hidden; }
.hero__mask { position: absolute; inset: 0; overflow: hidden; background: var(--stone); }
.hero__film { position: absolute; inset: 0; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .8s ease-out; }
.hero__video.is-playing { opacity: 1; }
html.js:not(.rm) .hero__hold { height: calc(210svh - var(--top)); }
html.js:not(.rm) .hero__frame { position: sticky; top: var(--top); }
html.js:not(.rm) .hero__mask { inset: 0; margin: auto; width: var(--w0); height: var(--h0); border-radius: 50%; transform-origin: 50% 50%; will-change: transform; }
html.js:not(.rm) .hero__film { inset: auto; left: 50%; top: 50%; width: var(--fw, 100vw); height: calc(var(--fh, 100svh) * 1.2); margin-left: calc(var(--fw, 100vw) * -.5); margin-top: calc(var(--fh, 100svh) * -.6); will-change: transform; }
.hero { --w0: min(calc((100svh - var(--top)) * .74), 64vw); --h0: calc(var(--w0) * 1.081); --fh: max(520px, calc(100svh - var(--top))); }   /* --fh starts at the frame's height, so main.js's measure does not shift the poster */
.hero__para { max-width: 900px; margin: 0 auto; padding: clamp(64px, 7vw, 120px) var(--gut) clamp(80px, 10vw, 150px); }

/* ---------- Everything band ---------- */
.every { position: relative; margin: 0 var(--inset); height: calc(100svh - var(--top)); min-height: 640px; overflow: hidden; color: #fff; isolation: isolate; }
.every__media { position: absolute; inset: 0; z-index: -2; background: var(--navy); }
.every__base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.every__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.every::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(34, 34, 34, 0) 28%, rgba(34, 34, 34, .5) 56%, rgba(34, 34, 34, .78) 100%); }
.every__text { position: relative; z-index: 2; text-align: center; padding: 0 var(--gut) clamp(28px, 3vw, 44px); pointer-events: none; }
.every__text .label { color: #fff; margin-bottom: 18px; }
/* A soft local shade behind each block of white copy on a photograph, so the rest of the picture stays bright */
.every__text::before, .bleed__text::before { content: ""; position: absolute; z-index: -1; inset: -56px max(-12%, -120px); background: radial-gradient(closest-side, rgba(34, 34, 34, .34), rgba(34, 34, 34, 0)); pointer-events: none; }
.every .title { color: #fff; }
.every .title em { color: #fff; }
.vlink { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; text-align: center; transition: opacity .4s ease-out; }
.vlink .label { color: #fff; font-size: 12px; }
.vlink__name { font-weight: 300; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; }
.vlink .sq--hollow { margin-top: 14px; }
.every__dots { display: none; }

/* Desktop with a mouse: one row of links over a shared photo that swaps on hover and focus */
@media (min-width: 1100px) and (hover: hover) {
  .every { display: flex; flex-direction: column; justify-content: flex-end; }
  .every__img { z-index: -2; opacity: 0; transition: opacity .8s var(--expo); }
  .every__slide.is-on .every__img { opacity: 1; }
  .every__list { display: flex; justify-content: center; padding: 0 var(--gut) clamp(48px, 6vw, 88px); }
  .vlink { position: relative; z-index: 2; }
  .every__slide { padding: 4px clamp(20px, 3vw, 48px); }
  .every__slide + .every__slide { border-left: 1px solid var(--line-light); }
  .vlink { padding: 8px 0; }
  .vlink .sq--hollow { transition: transform .4s var(--expo), background-color .3s, color .3s; }
  .vlink:hover .sq, .vlink:focus-visible .sq { transform: rotate(45deg) scale(.9); background: #fff; color: var(--navy); }
  .every__base, .every__img { will-change: transform; }
}
/* Touch and narrow screens: the reference's phone slider, one slide per link with its own photo, swiped natively */
@media (max-width: 1099px), (hover: none) {
  .every__text { position: absolute; left: 0; right: 0; bottom: 252px; }
  .every__list { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .every__list::-webkit-scrollbar { display: none; }
  .every__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--gut) 96px; isolation: isolate; }
  .every__img { z-index: -1; }
  .every__slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 34, 34, 0) 18%, rgba(34, 34, 34, .56) 46%, rgba(34, 34, 34, .8) 100%); }
  .every::after { display: none; }
  .every__base { display: none; }
  .vlink { min-width: 200px; padding: 12px 0; }
  .every__dots { display: flex; position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; justify-content: center; gap: 14px; pointer-events: none; }
  .every__dots i { width: 8px; height: 8px; border: 1px solid #fff; transform: rotate(45deg); transition: background-color .3s, transform .4s var(--expo); }
  .every__dots i.is-on { background: #fff; transform: rotate(45deg) scale(1.3); }
}

/* ---------- Big headline ---------- */
.headline { text-align: center; padding: clamp(96px, 11vw, 170px) var(--gut) clamp(56px, 6vw, 96px); }
.headline .title { max-width: 21ch; margin: 0 auto; }

/* ---------- Composition v4 ---------- */
.comp4 { padding: 2.5vw 0 0; }
.comp4__group { position: relative; width: 80vw; height: 45vw; margin: 0 auto; }
.comp4__large { position: absolute; right: 0; bottom: 0; width: 65vw; height: 40vw; overflow: hidden; background: var(--stone); }
.comp4__small { position: absolute; left: 2.5vw; top: -2.5vw; width: 20vw; height: 25vw; overflow: hidden; background: var(--stone); box-shadow: 0 0 0 2.5vw #fff; }
.comp4 img, .comp3 img { width: 100%; height: 100%; object-fit: cover; }
[data-drift] { will-change: transform; }

/* ---------- Composition v3 + text ---------- */
.comp3 { display: grid; grid-template-columns: 45vw 1fr; column-gap: 11vw; padding: clamp(80px, 9vw, 140px) var(--gut) clamp(96px, 10vw, 160px) 0; align-items: start; }
.comp3__images { padding-top: 8vw; }
.comp3__group { position: relative; width: 45vw; height: 66vw; }
.comp3__large { width: 100%; height: 100%; overflow: hidden; background: var(--stone); }
.comp3__large img { object-position: 38% 50%; }
.comp3__small { position: absolute; right: -8vw; top: 46%; width: 24vw; height: 15vw; overflow: hidden; background: var(--stone); box-shadow: 0 0 0 1.6vw #fff; }
.comp3__text { display: flex; flex-direction: column; gap: clamp(96px, 14vw, 220px); max-width: 560px; }
.tblock { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tblock .label { color: var(--navy); }
.tees { width: 100%; margin: 4px 0; }
.tees li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 16px; color: var(--body); }
.tees li:last-child { border-bottom: 1px solid var(--rule); }
.tees b { font-weight: 300; font-size: 26px; line-height: 1; color: var(--navy); margin-right: 4px; }
.tees li span:first-child { flex: none; }
.tees li span:last-child { font-weight: 600; color: var(--navy); text-align: right; }
/* The scorecard, by tee: a disclosure that continues the tees list, the tee chosen with round buttons like the card
   row's, the table in the same hairline rows */
.sc { width: 100%; margin-top: -24px; }
.sc > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 15px; color: var(--sky); cursor: pointer; list-style: none; transition: color .3s; }
.sc > summary::-webkit-details-marker { display: none; }
.sc > summary:hover { color: var(--navy); }
.sc__chev { flex: none; width: 10px; height: 7px; color: var(--navy); transition: transform .4s var(--expo); }
.sc[open] .sc__chev { transform: rotate(180deg); }
.sc__body { padding: 20px 0 4px; }
.sc__tees { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sc__tees .label { margin-right: 8px; }
.sc__tees button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--navy); color: var(--navy); font-weight: 600; font-size: 15px; transition: background-color .3s, color .3s; }
.sc__tees button:hover { background: var(--stone); }
.sc__tees button[aria-pressed="true"] { background: var(--navy); color: #fff; }
html:not(.js) .sc__tees button[aria-pressed="false"] { display: none; }
.sc__table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sc__table th, .sc__table td { padding: 6px 0; border-top: 1px solid var(--rule); text-align: right; font-weight: 400; color: var(--body); }
.sc__table th:first-child { text-align: left; }
.sc__table thead th { border-top: 0; padding: 0 0 8px; font-weight: 600; font-size: var(--sti-label); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.sc__table tbody th { font-weight: 300; font-size: 19px; line-height: 1.2; color: var(--navy); }
.sc__table tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.sc__table .sc__total > * { font-weight: 600; color: var(--navy); }
.sc__table .sc__total th { font-size: 15px; }

/* Before you come (A16): five answers as hairline disclosures, the scorecard's row and chevron, the question in navy */
.faq { width: 100%; }
.faq__title { margin: 8px 0 6px; }
.faq__item > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--navy); cursor: pointer; list-style: none; transition: color .3s; }
.faq__item:first-of-type > summary { border-top: 1px solid var(--rule); }
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary:hover { color: var(--sky); }
.faq__item[open] .sc__chev { transform: rotate(180deg); }
.faq__a { margin: 0; padding: 12px 0 18px; border-bottom: 1px solid var(--rule); }

/* Pick a day (A18): a date and 18 holes or the Back 9 rewrite the Book a tee time link below; round outlines like the tee buttons */
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; width: 100%; }
.pick__day { display: inline-flex; align-items: center; gap: 16px; margin-right: 8px; }
.pick__date { min-height: 44px; padding: 0 16px; border: 1px solid var(--navy); border-radius: 22px; background: #fff; color: var(--navy); font: 600 15px/1 var(--font); }
.pick__holes { display: inline-flex; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pick__holes label { position: relative; cursor: pointer; }
.pick__holes input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; appearance: none; border: 0; color: var(--navy); outline: 0; }   /* the ring shows on the span */
.pick__holes span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--navy); border-radius: 22px; color: var(--navy); font-weight: 600; font-size: 15px; transition: background-color .3s, color .3s; }
.pick__holes label:hover span { background: var(--stone); }
.pick__holes input:checked + span { background: var(--navy); color: #fff; }
.pick__holes input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }
html:not(.js) .pick { display: none; }

/* ---------- Navy band: a day on the course ---------- */
.day { background: var(--navy); color: #fff; padding: clamp(96px, 11vw, 170px) 0; text-align: center; overflow: hidden; }
.day .label { color: var(--gold-light); }
.day .title { color: #fff; }
.day .title em { color: var(--gold-light); }
.day__head { padding: 0 var(--gut); margin-bottom: clamp(56px, 6vw, 100px); }
.day__head .label { margin-bottom: 22px; }
.day__head .title { max-width: 16ch; margin: 0 auto; }
.day__copy { width: min(680px, 100% - 2 * var(--gut)); margin: clamp(120px, 10vw, 160px) auto 0; display: flex; flex-direction: column; gap: 1.2em; }
.day__copy .body { color: #fff; }
.day__actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 32px; margin-top: 8px; }

/* The stories slider: the centre clip, dimmed rails either side built from the posters, progress bars */
.stories { position: relative; width: 25vw; aspect-ratio: 9 / 16; margin: 0 auto; touch-action: pan-y; }
.stories__rail { position: absolute; bottom: 0; overflow: hidden; opacity: .22; pointer-events: none; aspect-ratio: 9 / 16; }
.stories__rail--l1 { right: calc(100% + 2.5vw); width: 22.5vw; }
.stories__rail--l2 { right: calc(100% + 27.5vw); width: 17.5vw; }
.stories__rail--r1 { left: calc(100% + 2.5vw); width: 22.5vw; }
.stories__rail--r2 { left: calc(100% + 27.5vw); width: 17.5vw; }
.stories__rail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--expo); }
.stories__centre { position: relative; width: 100%; height: 100%; }
.stories__clip { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.stories__track { display: flex; height: 100%; transition: transform .9s var(--expo); will-change: transform; }
.story { position: relative; flex: none; width: 100%; height: 100%; }
.story img, .story video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story video { opacity: 0; transition: opacity .5s ease-out; }
.story video.is-playing { opacity: 1; }
.story figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stories__bars { position: absolute; top: calc(100% + 4px); left: 0; right: 0; display: flex; gap: 4px; }
.stories__bars button { position: relative; flex: 1; height: 44px; }
.stories__bars button::before, .stories__bars i { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; }
.stories__bars button::before { background: rgba(255, 255, 255, .25); }
.stories__bars i { background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.stories__bars button:hover::before { background: rgba(255, 255, 255, .5); }
.stories__caption { position: absolute; top: calc(100% + 52px); left: -6vw; right: -6vw; min-height: 1.5em; font-size: 15px; color: #fff; }
.stories__nav { position: absolute; top: 50%; left: 50%; width: 60vw; transform: translate(-50%, -50%); display: flex; justify-content: space-between; pointer-events: none; }
.stories__btn, .stories__pause { pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75); color: #fff; display: grid; place-items: center; transition: transform .5s var(--expo), background-color .3s, color .3s; }
.stories__btn svg { width: 16px; height: 12px; }
.stories__btn:hover, .stories__pause:hover { background: #fff; color: var(--navy); transform: scale(.94); }
.stories__pause { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; background: rgba(13, 48, 111, .55); }
.stories__pause svg { width: 12px; height: 12px; }
.stories__pause .i-play, .stories__pause[aria-pressed="true"] .i-pause { display: none; }
.stories__pause[aria-pressed="true"] .i-play { display: block; }

/* ---------- Full-bleed film: the clubhouse ---------- */
.bleed { position: relative; margin: 0 var(--inset); min-height: calc(100svh - var(--top)); display: flex; align-items: flex-end; justify-content: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; }
.bleed__media { position: absolute; inset: -12% 0; z-index: -2; background: var(--navy); will-change: transform; }
.bleed__poster, .bleed__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed__video { opacity: 0; transition: opacity .8s ease-out; }
.bleed__video.is-playing { opacity: 1; }
.bleed__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(34, 34, 34, 0) 30%, rgba(34, 34, 34, .44) 55%, rgba(34, 34, 34, .7) 100%); }
.bleed__text { position: relative; z-index: 0; width: min(720px, 100% - 2 * var(--gut)); margin: clamp(160px, 16vw, 240px) 0 clamp(36px, 3.4vw, 52px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bleed .label { color: #fff; }
.bleed .title { color: #fff; }
.bleed .title em { color: #fff; }
.bleed .body { color: #fff; max-width: 52ch; }
.bleed__actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 6px; }

/* ---------- Cards: a row of elliptical photographs ---------- */
.more { padding: clamp(96px, 10vw, 160px) 0 0; }
.more__head { width: min(780px, 100% - 2 * var(--gut)); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.more__controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin: clamp(32px, 3.6vw, 56px) 0 24px; }
.more__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--navy); color: var(--navy); display: grid; place-items: center; transition: background-color .3s, color .3s, opacity .3s; }
.more__btn svg { width: 16px; height: 12px; }
.more__btn:hover { background: var(--navy); color: #fff; }
.more__btn:disabled { opacity: .3; cursor: default; background: none; color: var(--navy); }
.more__dots { display: flex; gap: 14px; }
.more__dots i { width: 8px; height: 8px; border: 1px solid var(--navy); transform: rotate(45deg); transition: background-color .3s, transform .4s var(--expo); }
.more__dots i.is-on { background: var(--navy); transform: rotate(45deg) scale(1.3); }
.cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overscroll-behavior-x: contain; }
.cards::-webkit-scrollbar { display: none; }
.cards.is-drag { scroll-snap-type: none; cursor: grabbing; }
.cards.is-drag a { pointer-events: none; }
@media (hover: hover) { .cards { cursor: grab; } }
.card { flex: none; width: 30vw; border-right: 1px solid var(--rule); scroll-snap-align: start; }
.card:first-child { border-left: 1px solid var(--rule); }
.card a { position: relative; display: block; padding: 2.5vw; }
.card__img { position: relative; display: block; width: 100%; aspect-ratio: 5 / 6; clip-path: ellipse(50% 50% at 50% 50%); overflow: hidden; background: var(--stone); }
.card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 34, 34, 0) 38%, rgba(34, 34, 34, .7)); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1s var(--expo); }
.card a:hover .card__img img, .card a:focus-visible .card__img img { transform: scale(1.02); }
.card__text { position: absolute; left: 0; right: 0; bottom: 4.6vw; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4vw; color: #fff; text-align: center; }
.card__name { font-weight: 300; font-size: clamp(24px, 1.9vw, 30px); line-height: 1.1; }
.card__text .label { color: #fff; font-size: 12px; }
.card__text .sq--hollow { margin-top: 10px; }

/* ---------- Footer: navy, the crest on its plate ---------- */
.ft { margin-top: clamp(96px, 10vw, 160px); background: var(--navy); color: #fff; text-align: center; padding: clamp(72px, 7vw, 110px) var(--gut) 40px; }
.ft__plate { --sti-crest-plate: 112px; margin: 0 auto 28px; }
.ft__line { font-weight: 300; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; max-width: 30ch; margin: 0 auto 28px; }
.ft__pill { display: inline-flex; align-items: center; gap: 16px; padding: 8px 8px 8px 28px; border: 1px solid var(--line-light); border-radius: 60px; }
.ft__phone { font-weight: 600; font-size: 17px; min-height: 44px; display: flex; align-items: center; }
.ft__phone:hover { color: var(--gold-light); }
.ft__cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; text-align: left; margin-top: clamp(56px, 5vw, 80px); padding-top: 40px; border-top: 1px solid var(--line-light); }
.ft__col { display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; }
.ft__col .label { color: var(--gold-light); margin-bottom: 10px; }
.ft__col a { display: flex; align-items: center; min-height: 44px; min-width: 44px; color: #fff; }
.ft__col a:hover { color: var(--gold-light); }
.ft__col p { padding: 6px 0; color: #fff; }
.ft__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 14px; color: #fff; }

/* ---------- Tablet and phone: the bar replaces the header and the pill ---------- */
@media (max-width: 1099px) {
  :root { --top: 64px; --inset: 8px; }
  .hd, .pill { display: none; }
  .bar { display: flex; }
  main { padding-top: var(--top); }
  .menu__panel { width: min(480px, 100%); }
  .comp3 { grid-template-columns: 1fr; row-gap: 0; padding: clamp(72px, 9vw, 120px) var(--gut) clamp(96px, 12vw, 140px); }
  .comp3__text { order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: none; }
  .comp3__images { order: 2; padding-top: 96px; }
  .comp3__group { width: 62vw; height: 80vw; margin-left: auto; margin-right: 4vw; }
  .comp3__small { right: auto; left: -18vw; top: 60%; width: 38vw; height: 25vw; box-shadow: 0 0 0 2.4vw #fff; }
  .stories { width: 36vw; }
  .stories__rail--l1 { right: calc(100% + 4vw); width: 30vw; }
  .stories__rail--r1 { left: calc(100% + 4vw); width: 30vw; }
  .stories__rail--l2, .stories__rail--r2 { display: none; }
  .stories__nav { width: 92vw; }
  .stories__bars { left: -6vw; right: -6vw; }
  .card { width: 42vw; }
  .card a { padding: 3vw; }
  .card__text { bottom: 7vw; padding: 0 5vw; }
  .ft__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 699px) {
  :root { --top: 56px; }
  .bar { height: 56px; }
  .bar__book { display: none; }
  .bookbar { display: flex; padding-left: 88px; padding-right: 88px; }   /* the right end clear for the AI Concierge launcher */
  main { padding-bottom: 0; }
  .ft { padding-bottom: calc(40px + 56px + env(safe-area-inset-bottom)); }
  .title--xl { font-size: clamp(40px, 11.4vw, 60px); line-height: 1.04; }
  .title--md { font-size: clamp(32px, 8.6vw, 44px); }
  .menu__panel { width: 100%; padding: 16px 24px calc(32px + env(safe-area-inset-bottom)); transform: translateY(-100%); }
  .menu__close { top: 4px; right: 8px; }
  .menu__nav { padding-top: 48px; }
  .menu__nav li { overflow: hidden; }
  .menu__nav a { transform: translateY(100%); transition: transform .7s var(--expo), color .3s; transition-delay: calc(var(--i, 0) * 40ms + 120ms); }
  .menu.is-open .menu__nav a { transform: none; }
  .menu__nav a { font-size: clamp(28px, 8vw, 34px); min-height: 52px; }
  .menu__well { display: none; }
  .menu__foot { margin-top: 32px; grid-template-columns: 1fr; }
  /* Hero: no hold on phones; the ellipse opens as the block scrolls up, from the vertical cut */
  .hero__head { padding-top: 36px; padding-bottom: 32px; }
  .hero__actions { gap: 8px; flex-wrap: nowrap; }
  .hero__actions .btn--big { min-height: 56px; padding: 0 1.25em; letter-spacing: .08em; }
  .hero { --w0: 70vw; --h0: 91vw; --fh: min(88svh, 168vw); }
  html.js:not(.rm) .hero__hold { height: auto; }
  .hero__frame, html.js:not(.rm) .hero__frame { position: relative; top: auto; height: min(88svh, 168vw); min-height: 0; }
  .hero__para { padding-top: 56px; padding-bottom: 80px; }
  .every { height: min(100svh - var(--top) - 56px, 172vw); min-height: 560px; }
  .every__slide { padding-bottom: 88px; }
  .every__dots { bottom: 36px; }
  .headline { padding-top: 96px; padding-bottom: 48px; }
  .comp4 { padding: 0 var(--gut); }
  .comp4__group { width: 100%; height: 108vw; }
  .comp4__large { width: 100%; height: 64vw; }
  .comp4__small { left: 8vw; top: 0; width: 40vw; height: 52vw; box-shadow: 0 0 0 3vw #fff; }
  .comp3__text { grid-template-columns: 1fr; gap: 72px; }
  .comp3__group { width: 72vw; height: 104vw; margin-right: 0; }
  .comp3__small { left: -18vw; width: 54vw; height: 36vw; top: 62%; box-shadow: 0 0 0 3vw #fff; }
  .comp3__images { padding-top: 72px; }
  .stories { width: 64vw; }
  .stories__rail--l1 { right: calc(100% + 5vw); width: 56vw; }
  .stories__rail--r1 { left: calc(100% + 5vw); width: 56vw; }
  .stories__nav { width: 96vw; }
  .stories__bars { left: -8vw; right: -8vw; }
  .stories__btn { width: 44px; height: 44px; }
  .stories__caption { left: -10vw; right: -10vw; }
  .day__copy { margin-top: 112px; }
  .bleed { min-height: 0; }
  .bleed__text { margin-top: 128vw; }
  .card { width: 80vw; }
  .card a { padding: 5vw; }
  .card__text { bottom: 11vw; padding: 0 8vw; }
  .ft__pill { flex-direction: column; gap: 8px; padding: 12px; border-radius: 28px; width: 100%; max-width: 360px; }
  .ft__cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

/* ---------- Gentle photo parallax (James, 24 Oct): the photo drifts slower than its frame. translate and scale are
   the individual transform properties, so they compose with any transform on the same image; main.js sets --px on
   the frame, which clips it (overflow: hidden). ---------- */
html.js:not(.rm) .px { scale: 1.08; translate: 0 var(--px, 0px); }

/* ---------- Reduced motion: a calm, complete page ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0s !important; }
  .loader { display: none !important; }
  .card__img img { transform: none; }
  html.js .px { scale: none; translate: none; }
}
