/* howiesoong.com: base tokens (deck look: black, white bold type, thin green accent). */
:root {
  --bg: #000;
  --ink: #fff;
  --muted: #8e8e93;      /* deck grey ("for good.", subtitles) */
  --dim: #5c5c60;
  --line: #2a2a2d;       /* deck hairlines / pitch circle */
  --green: #70E2A4;      /* sampled from the deck covers' accent dash */
  --font: "Helvetica Neue", Helvetica, "Nimbus Sans", Arial, "Liberation Sans", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
a { color: inherit; }
.g { color: var(--green); }
.m { color: var(--muted); }
.dash { display: block; width: 44px; height: 3px; background: var(--green); border: 0; margin: 0 0 18px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--green); margin: 0 0 10px; }
.kicker.caps { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.foot { padding: 28px var(--pad) 32px; color: var(--dim); font-size: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
h1, h2, h3 { text-wrap: balance; }

/* ======== Layout: hero, pinned My Vision story, Soccer SI, CTA ======== */
.wrap { max-width: 1040px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 12px; }
.name::before { content: ""; width: 28px; height: 3px; background: var(--green); }
.nw { white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 70%, #000 100%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: clamp(40px, 9vh, 110px); }
.statement { margin: clamp(32px, 7vh, 80px) 0 0; font-size: clamp(46px, 9vw, 112px); line-height: 1.0; letter-spacing: -0.025em; font-weight: 700; }
.sub { margin: 18px 0 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.35; color: #c9c9cd; }
.cue { position: absolute; z-index: 1; left: 50%; bottom: 26px; width: 1px; height: 44px; background: linear-gradient(var(--green), transparent); }

/* Jump nav */
.jump { display: inline-flex; margin-top: clamp(28px, 5vh, 56px); border-bottom: 1px solid rgba(255,255,255,.14); }
.jump a { padding: 12px 4px; margin-right: 24px; font-size: clamp(16px, 1.9vw, 19px); font-weight: 700; color: #8e8e93; text-decoration: none; position: relative; }
.jump a[aria-current=true] { color: var(--ink); }
.jump a[aria-current=true]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); }
.jump a:focus-visible, .cta:focus-visible { outline: 1px solid var(--green); outline-offset: 4px; }

/* Section label + progress dots */
.story-head { display: flex; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 6px; }
.sec-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.sec-label::before { content: ""; width: 28px; height: 3px; background: var(--green); }
.story-dots { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 8px; }
.story-dots li { width: 6px; height: 6px; border-radius: 50%; background: #3a3a3e; transition: background .3s, transform .3s; }
.story-dots li.on { background: var(--green); transform: scale(1.25); }

/* Beats (stacked by default: no JS / reduced motion) */
.beat { position: relative; overflow: hidden; }
.beat-in { position: relative; z-index: 1; padding-top: clamp(48px, 9vh, 96px); padding-bottom: clamp(48px, 9vh, 96px); }
.beat.has-img { min-height: 70vh; }
.beat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beat-desk .beat-img { object-position: 42% 50%; }
.beat-pitch .beat-img { object-position: 58% 50%; }
.beat.has-img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 34%, rgba(0,0,0,.25) 64%, rgba(0,0,0,.85) 100%),
              linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 60%); }
.beat-k { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.beat-h { margin: 0; font-size: clamp(36px, 7vw, 80px); line-height: 1.04; letter-spacing: -0.022em; font-weight: 700; }
.beat-s { margin: 18px 0 0; font-size: clamp(17px, 2.1vw, 23px); line-height: 1.4; color: #b8b8bd; max-width: 28em; }
.beat-s + .beat-s { margin-top: 10px; }

/* Soccer SI */
.soccer { padding-top: clamp(40px, 8vh, 96px); }
.big { margin: 18px 0 0; font-size: clamp(36px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.022em; font-weight: 700; }
.quartet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; margin-top: clamp(36px, 6vh, 64px); }
.pt { border-top: 1px solid #2a2a2d; padding-top: 18px; }
.pt-k { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.pt-h { margin: 0; font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; line-height: 1.25; }
.closer { margin: clamp(56px, 10vh, 112px) 0 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }

/* CTA */
.cta-sec { padding-top: clamp(72px, 14vh, 160px); padding-bottom: clamp(40px, 8vh, 80px); }
.cta-sec .big { margin-top: 0; }
.cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 15px 24px; border: 1.5px solid var(--green); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: clamp(16px, 1.8vw, 19px); }
.cta:hover { background: var(--green); color: #000; }
.foot { max-width: 1040px; margin: 0 auto; }

@media (max-width: 600px) {
  .quartet { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .jump a { margin-right: 16px; }
  .hero-img { object-position: 50% 64%; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0) 70%, #000 100%); }
}
@media (orientation: portrait) {
  .beat.has-img::after { background: linear-gradient(180deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.75) 32%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.8) 100%); }
}

/* ======== Reveal on scroll (only once JS has added html.js-reveal) ======== */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); transition-delay: var(--rd, 0ms); }
html.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ======== Pinned My Vision story (only once JS has added html.js-pin) ======== */
html.js-pin .story-track { height: var(--track, 400vh); position: relative; }
html.js-pin .story-stage { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.js-pin .story .story-head { position: absolute; z-index: 3; left: 0; right: 0; top: 0; }
html.js-pin .story-dots { display: flex; }
html.js-pin .beats { position: absolute; inset: 0; }
html.js-pin .beat { position: absolute; inset: 0; min-height: 0; opacity: 0; visibility: hidden; will-change: opacity; }
html.js-pin .beat-in { padding-top: clamp(96px, 24vh, 280px); padding-bottom: 0; will-change: transform; transition: none; }
html.js-pin .beat-img { will-change: transform; }
html.js-pin .soccer { position: relative; z-index: 2; } /* sits above the leaving stage it overlaps */
/* scroll.js sets opacity on .beat and transform on .beat-in / .beat-img straight from scroll position */

/* Reduced motion: splash without fade (timing unchanged), no reveal, no pinning (scroll.js never adds js-pin). */
@media (prefers-reduced-motion: reduce) {
  .hk-splash { transition: none; }
  .hk-splash-name { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}
