/* ────────────────────────────────────────────────────────────────────────
   DME Academy — Golf program page
   Layers on top of main.css. Every colour, font and spacing value comes from
   the v2 tokens already defined there; nothing new is introduced to the
   palette. Scoped under .g- so it can ship alongside the theme without
   touching any existing page.
   ──────────────────────────────────────────────────────────────────────── */

/* ── Scroll reveal ──────────────────────────────────────────────────────
   Everything is VISIBLE by default. Only a browser that has actually started
   the reveal observer opts into hiding, by putting .dme-reveal on <html>.
   So if the script fails to load, fails to parse, or is blocked, the page
   still reads in full — it just doesn't animate. Content must never depend
   on JavaScript to become visible.
   ──────────────────────────────────────────────────────────────────────── */
.g-rise { opacity: 1; transform: none; }
.dme-reveal .g-rise {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.dme-reveal .g-rise.is-in { opacity: 1; transform: none; }
.dme-reveal .g-rise[data-d="1"] { transition-delay: .08s; }
.dme-reveal .g-rise[data-d="2"] { transition-delay: .16s; }
.dme-reveal .g-rise[data-d="3"] { transition-delay: .24s; }
.dme-reveal .g-rise[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .g-rise, .dme-reveal .g-rise { opacity: 1; transform: none; transition: none; }
}

/* ── HERO ────────────────────────────────────────────────────────────── */
.g-hero {
  position: relative; min-height: 640px;
  display: flex; align-items: flex-end;
  padding: 124px 80px 56px; overflow: hidden;
  border-bottom: 4px solid var(--gold);
  background: var(--navy-dark);
}
.g-hero-media { position: absolute; inset: 0; }
.g-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%; }
/* Two scrims: a hard left wedge for the headline, a soft floor for the meta row. */
.g-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,40,90,.92) 0%, rgba(0,40,90,.76) 34%, rgba(0,40,90,.12) 62%, rgba(0,40,90,0) 80%),
    linear-gradient(to top, rgba(0,20,46,.75) 0%, rgba(0,20,46,0) 42%);
}
.g-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1360px; }
.g-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-bright);
}
.g-hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold-bright); }
.g-hero-h1 {
  font-family: var(--fh); font-weight: 800; color: #fff;
  font-size: clamp(56px, 8.2vw, 126px); line-height: .86;
  letter-spacing: -.015em; margin: 16px 0 0; text-transform: uppercase;
}
.g-hero-h1 em { font-style: normal; color: var(--gold-bright); display: block; }
.g-hero-sub {
  font-family: var(--fh); font-size: clamp(18px, 1.9vw, 26px); font-weight: 600;
  letter-spacing: .04em; color: rgba(255,255,255,.92); margin-top: 22px; text-transform: uppercase;
}
.g-hero-body {
  font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.84);
  max-width: 520px; margin-top: 16px;
}
.g-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.g-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: .07em;
  transition: filter .15s, background .15s, border-color .15s, color .15s;
}
.g-btn-gold { background: var(--gold-bright); color: var(--ink); }
.g-btn-gold:hover { filter: brightness(1.09); }
.g-btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; }
.g-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.g-btn-navy { background: var(--navy); color: #fff; }
.g-btn-navy:hover { background: var(--navy-mid); }

/* meta rail across the bottom of the hero */
.g-hero-meta {
  position: relative; z-index: 2; margin-top: 44px;
  display: flex; flex-wrap: wrap; gap: 0 40px;
  border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px;
}
.g-hero-meta span {
  font-family: var(--fh); font-size: 13px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.62);
}

/* ── INTRO: copy + two-up photography ───────────────────────────────── */
.g-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.g-intro-lede {
  font-family: var(--fh); font-size: clamp(21px, 2vw, 27px); font-weight: 500;
  line-height: 1.35; color: var(--navy); margin-top: 20px; letter-spacing: .005em;
}
.g-intro p + p { margin-top: 16px; }
.g-intro-pics { display: grid; grid-template-columns: 1.14fr 0.86fr; gap: 18px; align-items: start; }
.g-intro-pics figure { position: relative; }
.g-intro-pics img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.g-intro-pics figure:last-child { margin-top: 56px; }
.g-figcap {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-light); margin-top: 10px; font-weight: 600;
}

/* ── DEVELOPMENT MODEL — 5 numbered photo cards ─────────────────────── */
.g-model { background: var(--smoke); }
.g-model-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); margin-top: 52px;
  border: 1px solid var(--border);
}
.g-card { background: #fff; display: flex; flex-direction: column; }
.g-card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); }
.g-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
}
.g-card:hover .g-card-media img { transform: scale(1.045); }
.g-card-num {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--navy); color: #fff;
  font-family: var(--fh); font-size: 15px; font-weight: 800; letter-spacing: .1em;
  padding: 7px 14px 6px;
}
.g-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.g-card-h {
  font-family: var(--fh); font-size: 22px; font-weight: 700;
  color: var(--navy); letter-spacing: .015em; line-height: 1.1;
}
.g-card-h::after {
  content: ''; display: block; width: 34px; height: 3px;
  background: var(--gold); margin: 12px 0 14px;
}
.g-card-text { font-size: 14px; line-height: 1.72; color: var(--ink-mid); }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.g-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .05em;
  color: var(--navy); background: var(--navy-pale);
  padding: 5px 10px; border-radius: 3px;
}
/* the two cards without a photo carry the copy alone, on navy */
.g-card--solid { background: var(--navy); }
.g-card-index {
  font-family: var(--fh); font-size: 15px; font-weight: 800; letter-spacing: .1em;
  color: var(--gold-bright); margin-bottom: 14px;
}
.g-card--solid .g-card-h { color: #fff; }
.g-card--solid .g-card-text { color: rgba(255,255,255,.72); }
.g-card--solid .g-tag { color: #fff; background: rgba(255,255,255,.12); }

/* ── THE CYCLE ───────────────────────────────────────────────────────── */
.g-cycle { background: var(--navy-dark); position: relative; overflow: hidden; }
.g-cycle::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 62%, var(--navy-mid) 100%);
  opacity: .96;
}
.g-cycle > * { position: relative; z-index: 2; }
.g-cycle-rail { margin-top: 56px; position: relative; }
.g-cycle-line {
  position: absolute; left: 0; right: 0; top: 27px; height: 2px;
  background: rgba(255,255,255,.18);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
}
.g-cycle-line::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.dme-reveal .g-cycle-line::after { right: 100%; transition: right 2.2s cubic-bezier(.4,0,.2,1); }
.dme-reveal .g-cycle.is-in .g-cycle-line::after { right: 0; }
.g-cycle-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  position: relative;
}
.g-step-dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-size: 17px; font-weight: 800;
  background: var(--gold-bright); border: 2px solid var(--gold-bright); color: var(--navy-dark);
}
.dme-reveal .g-step-dot {
  background: var(--navy-dark); border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.55);
  transition: background .4s, border-color .4s, color .4s;
}
.dme-reveal .g-cycle.is-in .g-step-dot {
  background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy-dark);
}
.dme-reveal .g-cycle.is-in .g-step:nth-child(1) .g-step-dot { transition-delay: .25s; }
.dme-reveal .g-cycle.is-in .g-step:nth-child(2) .g-step-dot { transition-delay: .70s; }
.dme-reveal .g-cycle.is-in .g-step:nth-child(3) .g-step-dot { transition-delay: 1.15s; }
.dme-reveal .g-cycle.is-in .g-step:nth-child(4) .g-step-dot { transition-delay: 1.60s; }
.dme-reveal .g-cycle.is-in .g-step:nth-child(5) .g-step-dot { transition-delay: 2.05s; }
.g-step-h {
  font-family: var(--fh); font-size: 21px; font-weight: 700; color: #fff;
  letter-spacing: .04em; text-transform: uppercase; margin: 20px 0 8px;
}
.g-step-t { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.62); }
.g-cycle-loop {
  margin-top: 34px; display: flex; align-items: center; gap: 12px;
  font-family: var(--fh); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright);
}
.g-cycle-loop::before, .g-cycle-loop::after {
  content: ''; height: 1px; background: rgba(255,255,255,.18); flex: 1;
}
@media (prefers-reduced-motion: reduce) {
  .dme-reveal .g-cycle-line::after { right: 0; transition: none; }
  .dme-reveal .g-step-dot,
  .dme-reveal .g-cycle.is-in .g-step-dot {
    background: var(--gold-bright); border-color: var(--gold-bright);
    color: var(--navy-dark); transition: none;
  }
}

/* ── SPLIT (photo + copy), reversible ───────────────────────────────── */
.g-split { display: grid; grid-template-columns: 0.92fr 1fr; align-items: stretch; }
.g-split-media { position: relative; min-height: 560px; background: var(--navy); }
.g-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-split-copy { padding: 88px 80px; display: flex; flex-direction: column; justify-content: center; }
.g-split--flip .g-split-media { order: 2; }
.g-split--smoke { background: var(--smoke); }

.g-checks { list-style: none; margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 28px; }
.g-checks li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-mid); line-height: 1.5;
}
.g-checks li::before {
  content: ''; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 7px;
  background: var(--gold); transform: rotate(45deg);
}
.g-note {
  margin-top: 28px; padding: 18px 22px;
  border-left: 3px solid var(--gold); background: var(--gold-light);
  font-size: 14px; line-height: 1.7; color: var(--ink-mid);
}

/* ── TOURNAMENT — full-bleed band, copy right ───────────────────────── */
.g-band { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.g-band-media { position: absolute; inset: 0; }
.g-band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.g-band-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(260deg, rgba(0,40,90,.93) 0%, rgba(0,40,90,.8) 36%, rgba(0,40,90,.1) 68%, rgba(0,40,90,0) 86%);
}
.g-band-inner {
  position: relative; z-index: 2; margin-left: auto;
  width: min(620px, 100%); padding: 88px 80px;
}
.g-prep { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; }
.g-prep div {
  padding: 13px 0; border-top: 1px solid rgba(255,255,255,.18);
  font-family: var(--fh); font-size: 16px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.88);
}
.g-prep div:nth-child(odd) { padding-right: 20px; }

/* ── COMPLETE ATHLETE — two tall cards ──────────────────────────────── */
.g-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 52px; }
.g-duo-card { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; }
.g-duo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-duo-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,20,46,.94) 0%, rgba(0,20,46,.55) 44%, rgba(0,20,46,.08) 78%);
}
.g-duo-body { position: relative; z-index: 2; padding: 36px 34px 34px; }
.g-duo-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-bright);
}
.g-duo-h {
  font-family: var(--fh); font-size: 32px; font-weight: 800; color: #fff;
  line-height: 1.05; margin: 10px 0 12px; text-transform: uppercase; letter-spacing: .01em;
}
.g-duo-t { font-size: 14.5px; line-height: 1.72; color: rgba(255,255,255,.8); max-width: 400px; }

/* ── PERFORMANCE INTELLIGENCE ───────────────────────────────────────── */
.g-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.g-tool {
  font-family: var(--fh); font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); border: 1.5px solid var(--border);
  background: #fff; padding: 10px 16px; border-radius: 3px;
}

/* ── OUTCOMES GRID ──────────────────────────────────────────────────── */
.g-out-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); margin-top: 52px;
  border: 1px solid var(--border);
}
.g-out { background: #fff; padding: 36px 30px 34px; }
.g-out-i {
  font-family: var(--fh); font-size: 13px; font-weight: 800;
  letter-spacing: .14em; color: var(--gold-deep);
}
.g-out-h {
  font-family: var(--fh); font-size: 24px; font-weight: 700;
  color: var(--navy); line-height: 1.1; margin: 12px 0 10px;
}
.g-out-t { font-size: 14px; line-height: 1.7; color: var(--ink-mid); }

/* ── PATHWAYS ───────────────────────────────────────────────────────── */
.g-paths { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.g-path {
  display: flex; flex-direction: column; padding: 28px 24px 26px;
  border: 1px solid var(--border); background: #fff;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.g-path:hover {
  border-color: var(--navy); transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,61,130,.1);
}
.g-path-k {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px;
}
.g-path-h {
  font-family: var(--fh); font-size: 23px; font-weight: 700;
  color: var(--navy); line-height: 1.08;
}
.g-path-t { font-size: 13.5px; line-height: 1.65; color: var(--ink-mid); margin-top: 10px; flex: 1; }
.g-path-a {
  margin-top: 18px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.g-path:hover .g-path-a { color: var(--gold-deep); }

/* ── FINAL CTA — portrait + navy panel ──────────────────────────────── */
.g-final { display: grid; grid-template-columns: 0.8fr 1fr; background: var(--navy-dark); }
.g-final-media { position: relative; min-height: 600px; }
.g-final-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-final-copy {
  padding: 96px 80px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(130deg, var(--navy-dark) 0%, var(--navy) 72%, var(--navy-mid) 100%);
}
.g-final-h {
  font-family: var(--fh); font-size: clamp(40px, 4.6vw, 66px); font-weight: 800;
  color: #fff; line-height: .98; text-transform: uppercase; letter-spacing: -.005em;
}
.g-final-h span { color: var(--gold-bright); }
.g-final-t {
  font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.72);
  margin-top: 20px; max-width: 460px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .g-model-grid, .g-out-grid { grid-template-columns: repeat(2, 1fr); }
  .g-paths { grid-template-columns: repeat(3, 1fr); }
  .g-cycle-line { display: none; }
}
@media (max-width: 1000px) {
  .g-hero { padding: 120px 44px 48px; min-height: 560px; }
  .g-intro { grid-template-columns: 1fr; gap: 44px; }
  .g-split { grid-template-columns: 1fr; }
  .g-split--flip .g-split-media { order: 0; }
  .g-split-media { min-height: 380px; }
  .g-split-copy { padding: 60px 44px; }
  .g-band-inner { padding: 72px 44px; width: 100%; }
  .g-band-scrim { background: linear-gradient(to top, rgba(0,40,90,.95) 6%, rgba(0,40,90,.7) 52%, rgba(0,40,90,.35) 100%); }
  .g-duo { grid-template-columns: 1fr; }
  .g-duo-card { min-height: 420px; }
  .g-final { grid-template-columns: 1fr; }
  .g-final-media { min-height: 420px; }
  .g-final-copy { padding: 64px 44px; }
}
@media (max-width: 720px) {
  .g-hero { padding: 104px 22px 36px; min-height: 520px; }
  .g-hero-meta { gap: 0 22px; margin-top: 36px; }
  .g-hero-meta span { font-size: 11px; }
  .g-model-grid, .g-out-grid, .g-paths { grid-template-columns: 1fr; }
  .g-checks, .g-prep { grid-template-columns: 1fr; }
  .g-split-copy, .g-band-inner, .g-final-copy { padding: 52px 22px; }
  .g-intro-pics figure:last-child { margin-top: 0; }
  .g-duo-body { padding: 26px 22px 24px; }
  .g-duo-h { font-size: 27px; }
}

/* ── Carried over from the theme ────────────────────────────────────────
   main.css hides .nav-utils' three children below 1240px but leaves the
   container itself in flow, so its 1px border-left + 8px padding paint a
   stray vertical hairline in the header on every v2 page at tablet and
   phone widths. Fixed here so the golf page reads clean; the same two
   lines belong in main.css @media (max-width: 1240px) to fix it site-wide.
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .nav-utils { display: none; }
}

/* ── The cycle rail, vertical, once the steps stack ─────────────────── */
/* ── The cycle as a vertical timeline, once the five steps stack ─────────
   The horizontal rail only reads correctly across a single row, so below
   1180px the steps become one column and each step carries its own segment
   down to the next dot. The dot sits in a fixed 56px gutter and the copy
   beside it, so the rail never crosses the text — and the segments only ever
   join consecutive steps, rather than one line running down a multi-column
   grid past whatever happens to sit underneath.
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .g-cycle-steps { grid-template-columns: 1fr; gap: 0; }
  .g-step {
    position: relative;
    display: grid; grid-template-columns: 56px 1fr; gap: 0 26px;
    align-items: start; padding-bottom: 38px;
  }
  .g-step:last-child { padding-bottom: 0; }
  .g-step-dot { grid-column: 1; grid-row: 1 / span 2; position: relative; z-index: 1; }
  .g-step-h { grid-column: 2; grid-row: 1; margin: 13px 0 8px; }
  .g-step-t { grid-column: 2; grid-row: 2; }

  /* track + gold fill run from just under this dot to the top of the next */
  .g-step::before, .g-step::after {
    content: ''; position: absolute; left: 27px; top: 62px; bottom: 0; width: 2px;
  }
  .g-step::before { background: rgba(255,255,255,.18); }
  .g-step::after {
    background: linear-gradient(180deg, var(--gold), var(--gold-bright));
    transform: scaleY(1); transform-origin: top;
  }
  .dme-reveal .g-step::after {
    transform: scaleY(0); transition: transform .45s cubic-bezier(.4,0,.2,1);
  }
  .dme-reveal .g-cycle.is-in .g-step::after { transform: scaleY(1); }
  /* segments interleave with the dot stagger so the loop draws in sequence */
  .dme-reveal .g-cycle.is-in .g-step:nth-child(1)::after { transition-delay: .47s; }
  .dme-reveal .g-cycle.is-in .g-step:nth-child(2)::after { transition-delay: .92s; }
  .dme-reveal .g-cycle.is-in .g-step:nth-child(3)::after { transition-delay: 1.37s; }
  .dme-reveal .g-cycle.is-in .g-step:nth-child(4)::after { transition-delay: 1.82s; }
  /* nothing to connect to after the last one */
  .g-step:last-child::before, .g-step:last-child::after { display: none; }
}
@media (max-width: 1180px) and (prefers-reduced-motion: reduce) {
  .g-step::after, .dme-reveal .g-step::after { transform: scaleY(1); transition: none; }
}
