/* arclabgolf.com home page (WEB2, 27 Nov 2026): one page that scrolls sideways through nine screens. Sizes, spacing and
   colours are the Director's approved mockup's (arclab_site_handoff/reference/home_mockup.dc.html, 1440 x 900); the phone
   layout below 760 px is ours. Everything that moves is set from /home.js. Barlow and Barlow Condensed (SIL Open Font
   License 1.1, fonts/OFL-Barlow.txt) are served from this site. */
@font-face { font-family: Barlow; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800-italic.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0B0B0B; --yellow: #F5D90A; --yellow-hover: #FFE84D; --body: #C9C9C9; --muted: #A3A3A3; --faint: #8A8A8A;
  --line: #2E2E2E; --panel: #141414; --frame: #1A1A1A; --cell: #1D1D1D; --ink: #111111;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --text: Barlow, -apple-system, system-ui, sans-serif;
  --sw: 100vw;  /* one screen's width: the page's width without a scroll bar, set by home.js */
}
html, body { margin: 0; background: var(--bg); color: #FFFFFF; }
body { font-family: var(--text); -webkit-text-size-adjust: 100%; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-hover); }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 1 · The sideways scroll: a tall section holds a sticky frame; inside it a nine-screen track moves sideways. */
.rail { position: relative; height: 608vh; }
.frame { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; }
.scroller { height: 100%; }
.track { position: relative; display: flex; width: calc(var(--sw) * 9); height: 100%; will-change: transform; }
.screen { flex: 0 0 var(--sw); width: var(--sw); height: 100%; position: relative; z-index: 1; box-sizing: border-box; }

/* 5 · The nav, top right. */
.nav { position: absolute; z-index: 3; top: 28px; right: max(24px, calc((var(--sw) - 1192px) / 2)); left: 24px; }
.links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 32px; margin: 0; padding: 0; list-style: none;
  font: 700 17px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.links a { display: block; color: #FFFFFF; text-decoration: none; padding: 12px 0; transition: color 0.3s ease; }
.links a.on { color: var(--yellow); }
.links a:hover { color: var(--yellow-hover); }
.links .legal { display: flex; align-items: center; gap: 6px; color: var(--faint); }
.menu { display: none; }

/* 6 · The scroll arrows, bottom centre. */
.arrows { position: absolute; z-index: 2; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 2px;
  pointer-events: none; font: 700 15px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.arrows span { padding: 0 6px; }
.arrow { width: 52px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center;
  justify-content: center; cursor: pointer; pointer-events: auto; transition: opacity 0.4s ease, color 0.2s ease; }
.arrow:hover, .arrow:focus-visible { color: #FFFFFF; }
.arrow:disabled { opacity: 0; pointer-events: none; }
.arrow svg { display: block; }

@keyframes riseIn { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rise { animation: riseIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.d1 { animation-delay: 0.1s; }
.d6 { animation-delay: 0.6s; }
@keyframes nudgeR { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes nudgeL { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
.nudge-r { animation: nudgeR 1.6s ease-in-out infinite; }
.nudge-l { animation: nudgeL 1.6s ease-in-out infinite; }

/* 7 · The shot tracer on screens 0 and 1, drawn by home.js: under each screen's words, its glow (half resolution: it's a
   soft 40 px falloff) and its line and ball; over the letters, the black where the line crosses them (on screen 0 in the
   sliding wordmark itself, on screen 1 over the headline's area only). */
.fx { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.fx.over { z-index: 2; width: auto; height: auto; }
.wm-slide { position: relative; }
.fx-wm { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.s-logo { padding: 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wm-box { position: relative; z-index: 1; width: min(820px, 88%); }
.wm { display: block; width: 100%; height: auto; overflow: visible; }
.head-svg { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.badge-row { position: absolute; z-index: 1; left: 0; right: 0; top: 609px; display: flex; justify-content: center; }

/* WEB3 · Everything home.js moves each frame is its own layer, so its moves are composited on the GPU and never repaint
   the track (a repaint that missed the italic letters' lean left slivers behind). */
.wm-slide, .head-svg, .badge-row, .how-text, .how-pic, .feat-head, .device > *, .copy { will-change: transform; }
/* The italic headings lean past their own boxes (the S of YARDAGES by 3.7 px at 115 px): padding puts the ink inside
   the box, and the negative margins keep the layout where it was. */
.how-title, .feat-title, .copy h3 { padding-inline: 0.12em; margin-inline: -0.12em; }
.badge { margin: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 36px; background: var(--yellow);
  color: var(--ink); font: italic 800 26px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }

/* Eyebrows and titles */
.eyebrow { margin: 0; font: 700 16px/1 var(--display); letter-spacing: 0.14em; color: var(--yellow); text-transform: uppercase; }

/* 8 · How it works */
.s-how { padding: 96px 6vw 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.how { width: min(1240px, 100%); display: flex; align-items: center; gap: clamp(32px, 5vw, 80px); }
.how-text { flex: 1 1 0; min-width: 240px; }
.how-title { margin: 16px 0 0; font: italic 800 clamp(44px, 5.6vw, 84px)/0.94 var(--display); text-transform: uppercase; color: #FFFFFF; }
.how-ways { margin: 20px 0 0; max-width: 420px; font: 500 19px/1.6 var(--text); color: var(--body); }
.how-ways span { display: block; color: #FFFFFF; }
.how-ways span:first-child { margin-top: 6px; }
.how-pic { flex: 0 1 min(560px, 42vw, calc(100vh - 320px)); min-width: 0; }
.setup-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.setup-tab { min-width: 0; min-height: 48px; padding: 6px 4px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  text-align: center; border: 1px solid var(--line); background: var(--cell); color: #FFFFFF; font: 800 clamp(13px, 1.15vw, 16px)/1.05 var(--display);
  letter-spacing: 0.03em; text-transform: uppercase; white-space: normal; cursor: pointer; transition: background 0.25s ease, color 0.25s ease; }
.setup-tab[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.setup-pic { margin: 0; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.setup-pic picture { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.setup-pic picture.on { opacity: 1; transform: scale(1); }
.setup-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 3 · Features title */
.s-feat-title { padding: 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.feat-head { text-align: center; }
.feat-title { margin: 16px 0 0; font: italic 800 clamp(48px, 8vw, 120px)/0.92 var(--display); text-transform: uppercase; color: #FFFFFF; }

/* 9 · Feature screens: the picture and the words swap sides on each. */
.feat { padding: 96px 6vw 48px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 110px); }
.feat.flip { flex-direction: row-reverse; }
.device { flex: 0 0 auto; display: flex; justify-content: center; }
.device picture { display: block; width: 100%; height: 100%; }
.phone { height: min(74vh, 700px); aspect-ratio: 1206 / 2622; border-radius: 54px; padding: 11px; background: var(--frame); border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }
.tablet { position: relative; width: min(640px, 48vw); border-radius: 28px; padding: 14px; background: var(--frame); border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); box-sizing: content-box; }
.tablet.range { aspect-ratio: 1200 / 800; }
.tablet.course { aspect-ratio: 1384 / 779; }
.tablet img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.copy { flex: 0 1 440px; }
.kicker { margin: 0; display: flex; align-items: center; gap: 12px; font: 700 16px/1 var(--display); letter-spacing: 0.14em; color: var(--yellow); text-transform: uppercase; }
.kicker .rule { width: 32px; height: 2px; background: var(--yellow); }
.kicker .soon { margin-left: 6px; padding: 5px 8px; background: var(--yellow); color: var(--ink); letter-spacing: 0.08em; }
.copy h3 { margin: 18px 0 0; font: italic 800 clamp(36px, 4.4vw, 60px)/0.95 var(--display); text-transform: uppercase; color: #FFFFFF; }
.copy > p:last-child { margin: 20px 0 0; font: 500 19px/1.5 var(--text); color: var(--body); }

/* 10 · History's shot graph */
.graph-card { position: relative; width: min(640px, 47vw); box-sizing: border-box; padding: 18px 18px 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
.try { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); margin: 0; padding: 7px 12px; background: var(--yellow); color: var(--ink);
  font: 800 15px/1 var(--display); letter-spacing: 0.1em; white-space: nowrap; text-transform: uppercase; }
.views { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; background: var(--cell); }
.view { min-width: 0; min-height: 40px; border: 0; background: transparent; color: #FFFFFF; font: 800 16px/1 var(--display); letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; }
.view[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.graph { display: block; width: 100%; height: auto; margin-top: 8px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.graph.dragging { cursor: grabbing; }
.graph .hit { pointer-events: stroke; cursor: pointer; }
.stats { margin-top: 8px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px; }
.stats > div { background: var(--cell); padding: 9px 11px; min-width: 0; }
.stat-k { margin: 0; font: 700 13px/1 var(--display); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.stat-v { margin: 12px 0 0; font: 800 27px/1 var(--display); color: #FFFFFF; white-space: nowrap; }
.stat-v small { font-size: 13px; }
.stat-v.big { margin-top: 5px; font-size: 38px; }
.stat-v.big small { font-size: 16px; }
.chips { margin-top: 8px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.chip { position: relative; min-width: 0; min-height: 44px; padding: 4px 0 4px 3px; border: 1px solid var(--line); background: var(--cell); color: #FFFFFF;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #1EC8F5; }
.chip.i7::before { background: #9AA5FF; }
.chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.chip:focus-visible { z-index: 1; }
.chip .c { font: 700 11px/1 var(--display); letter-spacing: 0.06em; opacity: 0.8; }
.chip .y { font: 800 17px/1 var(--display); }

/* 11 · Reduced motion: no rise-ins, nudges or settles (home.js also leaves out the draw-ins, the slide-ins and the tilts). */
@media (prefers-reduced-motion: reduce) {
  .rise, .nudge-r, .nudge-l { animation: none; }
  .setup-pic picture, .setup-pic picture.on { transform: none; transition: opacity 0.45s ease; }
  .links a, .arrow { transition: none; }
}

/* Phones (below 760 px): still sideways; each feature screen stacks its picture above its words, smaller; How it works
   puts its square under its words; the nav folds into a menu button. */
@media (max-width: 759.98px) {
  .nav { top: 12px; right: 12px; left: auto; }
  .menu { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--line);
    background: rgba(11, 11, 11, 0.85); color: #FFFFFF; cursor: pointer; }
  .menu[aria-expanded="true"] { border-color: var(--yellow); color: var(--yellow); }
  .links { display: none; position: absolute; top: 52px; right: 0; min-width: 210px; flex-direction: column; flex-wrap: nowrap; gap: 0;
    padding: 6px 18px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }
  .nav.open .links { display: flex; }
  .links a { padding: 13px 0; }
  .links li + li { border-top: 1px solid #1F1F1F; }
  .arrows { bottom: 10px; }

  .badge { min-height: 48px; padding: 0 22px; font-size: 20px; }

  .s-how { padding: 68px 16px 64px; }
  .how { flex-direction: column; align-items: stretch; gap: 16px; }
  .how-text { flex: none; min-width: 0; }
  .how-title { margin-top: 10px; font-size: clamp(32px, 9.6vw, 44px); }
  .how-ways { margin-top: 12px; font-size: 16px; line-height: 1.4; }
  .how-ways span:first-child { margin-top: 4px; }
  .how-pic { flex: none; width: min(100%, calc(100svh - 430px)); align-self: center; }
  .setup-tabs { gap: 4px; margin-bottom: 8px; }
  .setup-tab { min-height: 44px; padding: 4px 3px; }

  .feat-title { font-size: clamp(44px, 14vw, 64px); }

  .feat, .feat.flip { flex-direction: column; padding: 68px 16px 64px; gap: 20px; }
  .phone { height: min(44vh, 440px); height: min(44svh, 440px); border-radius: 30px; padding: 6px; }
  .phone img { border-radius: 24px; }
  .tablet { width: min(calc(var(--sw) - 50px), 560px); border-radius: 18px; padding: 8px; }
  .tablet img { border-radius: 10px; }
  .copy { flex: none; width: 100%; max-width: 420px; }
  .kicker { font-size: 14px; gap: 10px; }
  .kicker .rule { width: 24px; }
  .copy h3 { margin-top: 10px; font-size: clamp(28px, 8.4vw, 38px); }
  .copy > p:last-child { margin-top: 10px; font-size: 16px; line-height: 1.45; }

  .feat.graph-screen { gap: 14px; }
  .graph-card { width: calc(var(--sw) - 32px); padding: 10px; border-radius: 16px; }
  .try { top: -32px; padding: 6px 10px; font-size: 14px; }
  .view { min-height: 36px; font-size: 14px; }
  .stats { gap: 4px; margin-top: 6px; }
  .stats > div { padding: 7px 8px; }
  .stat-k { font-size: 11px; letter-spacing: 0.06em; }
  .stat-v { margin-top: 8px; font-size: 21px; }
  .stat-v small { font-size: 11px; }
  .stat-v.big { margin-top: 4px; font-size: 28px; }
  .stat-v.big small { font-size: 13px; }
  .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 6px; }
  .graph-screen .copy h3 { font-size: clamp(26px, 7.6vw, 34px); }
}

/* WEB3 · Touch screens (home.js sets .swipe when the main pointer is coarse): the screens move with a sideways swipe, a
   native scroller with one snap point per screen; up and down does nothing (the page is one screen high). */
html.swipe, html.swipe body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.swipe .rail { height: 100vh; height: 100svh; }
.swipe .scroller { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.swipe .scroller::-webkit-scrollbar { display: none; }
.swipe .track { will-change: auto; }
.swipe .screen { scroll-snap-align: start; scroll-snap-stop: always; }
.swipe .graph { touch-action: none; }

/* ?debug: home.js's frame counter. */
.debug { position: fixed; z-index: 9; left: 8px; bottom: 8px; padding: 6px 8px; background: rgba(0, 0, 0, 0.8); color: #9EFF9E;
  font: 600 12px/1.35 ui-monospace, Menlo, monospace; white-space: pre; pointer-events: none; }

/* Without JavaScript the screens stack down the page. */
@media (scripting: none) {
  .rail { height: auto; }
  .frame { position: static; height: auto; overflow: visible; }
  .track { display: block; width: auto; }
  .screen { width: auto; min-height: 100vh; }
  .fx, .arrows, .head-svg, .menu, .try, .views, .graph, .stats, .chips { display: none; }
  .links { display: flex; position: static; }
  .nav { position: absolute; }
  .s-head { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 24px; text-align: center; }
  .s-head .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .s-head h1 { font: italic 800 clamp(44px, 6vw, 88px)/0.94 var(--display); text-transform: uppercase; }
  .s-head p { margin-top: 24px; font: 600 clamp(17px, 1.6vw, 23px)/1.4 var(--text); }
  .badge-row { position: static; margin-top: 32px; }
  .feat, .feat.flip { flex-wrap: wrap; }
}
