/* Ultimate Kami — "Load the bar". Competition plate colours on gym-floor rubber,
   set in Archivo stretched wide like plate lettering. */
:root {
  --rubber: #121212;
  --iron: #111111;
  --chalk: #f4f2ec;
  --red: #d42a2a;
  --blue: #1b56c9;
  --yellow: #f3c316;
  --green: #17914c;
  --white: #ecebe6;
  --steel: #c6cacf;
  --icon-blue: #3fb8ff;

  --f: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .9, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rubber);
  color: var(--chalk);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--icon-blue); outline-offset: 3px; }

h1, h2 {
  margin: 0; font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.9;
}
h2 { font-size: clamp(2.2rem, 4.5vw, 4.9rem); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.nav a { pointer-events: auto; }
.nav-mark { font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1rem; }
.nav-store { font-weight: 600; font-size: .9rem; border: 1.5px solid currentColor; border-radius: 99px; padding: 8px 16px; }

/* ---------- App Store badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px 12px 18px; border-radius: 12px;
  background: var(--chalk); color: var(--iron);
  transition: transform .3s var(--ease);
}
.badge:hover { transform: translateY(-3px) rotate(-1deg); }
.badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.25rem; font-weight: 700; }
.badge small { font-size: .68rem; font-weight: 500; }
.badge-xl { padding: 18px 34px 18px 26px; border-radius: 16px; }
.badge-xl span { font-size: 1.7rem; }
.badge-xl svg { width: 36px; height: 36px; }

/* ---------- Rotato placeholders ----------
   Each .rotato has data-video="videos/name". script.js swaps in
   videos/name.webm or videos/name.mp4 as soon as one exists. */
.rotato {
  position: relative; aspect-ratio: 9 / 19.5; width: 100%;
  border-radius: 14% / 6.5%;
  background: linear-gradient(165deg, #2a2d33, #101114);
  border: 7px solid #1a1b1e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -24px rgba(0,0,0,.55);
  overflow: hidden; display: grid; place-items: center;
}
.rotato::before { content: ""; position: absolute; top: 2.6%; left: 50%; translate: -50% 0; width: 31%; height: 3.4%; border-radius: 99px; background: #000; }
.rotato::after {
  content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 6%; text-align: center;
  font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35);
}
.rotato-mark { width: 46%; border-radius: 24%; }
.rotato.has-video { background: none; border: 0; box-shadow: none; border-radius: 0; }
.rotato.has-video::before, .rotato.has-video::after, .rotato.has-video > :not(video) { display: none; }
.rotato video { width: 100%; height: 100%; object-fit: contain; }

/* ---------- HUD: the bar being loaded ---------- */
.hud {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px 10px 20px; border-radius: 99px;
  background: rgba(14,14,14,.92); color: var(--chalk);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: translate(-50%, 140%); transition: transform .6s var(--ease);
}
.hud.show { transform: translate(-50%, 0); }
.hud-kg { font-stretch: 125%; font-weight: 800; font-size: .9rem; white-space: nowrap; min-width: 6.2ch; }
.hud-kg b { font-size: 1.55rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.bar { display: flex; align-items: center; width: 250px; height: 38px; }
.sleeve { flex: 0 0 34%; height: 100%; display: flex; align-items: center; gap: 1px; position: relative; }
.sleeve::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; translate: 0 -50%; background: #8d9196; border-radius: 2px; }
.sleeve-l { flex-direction: row-reverse; }
.shaft { flex: 1; height: 3px; background: #b9bdc2; position: relative; }
.shaft::before, .shaft::after { content: ""; position: absolute; top: 50%; width: 3px; height: 14px; translate: 0 -50%; background: #b9bdc2; }
.shaft::before { left: 0; } .shaft::after { right: 0; }
.p {
  position: relative; z-index: 1; flex: none; height: 100%; border-radius: 2px;
  opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
.sleeve-l .p { transform: translateX(-26px); }
.sleeve-r .p { transform: translateX(26px); }
.p.on { opacity: 1; transform: none; }
.p[data-kg="25"] { width: 9px; background: var(--red); }
.p[data-kg="20"] { width: 8px; background: var(--blue); }
.p[data-kg="15"] { width: 7px; background: var(--yellow); }
.p[data-kg="10"] { width: 6px; background: var(--green); }
.p[data-kg="5"] { width: 5px; height: 64%; background: var(--white); }
.p[data-kg="2.5"] { width: 6px; height: 40%; background: var(--steel); border-radius: 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto auto; padding: 84px var(--gutter) 28px;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(63,184,255,.12), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--rubber);
}
.hero-title {
  font-size: clamp(3.4rem, 12.6vw, 13.5rem); line-height: .84; letter-spacing: -0.04em;
  display: flex; flex-direction: column; position: relative; z-index: 3; pointer-events: none;
}
.hero-title span:last-child { align-self: flex-end; color: var(--icon-blue); }
.hero-barbell {
  position: absolute; left: 0; right: 0; top: 56%; height: 34px; translate: 0 -50%;
  display: flex; align-items: center; z-index: 0;
}
.hb-sleeve { flex: 0 0 12%; height: 18px; background: linear-gradient(#a7abb0, #6f7378); border-radius: 3px; }
.hb-collar { flex: none; width: 14px; height: 34px; background: linear-gradient(#cfd3d7, #8a8e93); border-radius: 3px; }
.hb-shaft { flex: 1; height: 8px; background: repeating-linear-gradient(90deg, #9da1a6 0 2px, #868a8f 2px 4px); }
.hero-phone {
  position: absolute; left: 50%; top: 56%; translate: -50% -50%; z-index: 2;
  width: clamp(160px, min(19vw, 34vh), 270px);
}
.hero-foot {
  position: relative; z-index: 3; grid-row: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.hero-foot p { margin: 0; max-width: 26em; font-size: clamp(1rem, 1.3vw, 1.15rem); color: #c9c6be; }
.hero-cue { grid-row: 4; margin: 26px 0 0; font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: .8rem; letter-spacing: .02em; color: #8c8a84; text-align: center; position: relative; z-index: 3; }

/* ---------- Loading sections (each one is a plate) ---------- */
.load {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 3vw;
  padding: 110px var(--gutter) 120px;
  background: var(--bg); color: var(--fg);
}
.load-copy { position: relative; z-index: 2; }
.load-copy p { font-size: clamp(1.05rem, 1.35vw, 1.22rem); max-width: 27em; margin: 32px 0 0; line-height: 1.55; font-weight: 450; }
.plate-wrap { position: relative; width: min(46vw, 82vh); aspect-ratio: 1; justify-self: center; }
.plate { position: absolute; inset: 0; will-change: transform; }
.plate svg { width: 100%; height: 100%; overflow: visible; }
.plate-phone { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 33%; z-index: 2; }
.plate-wrap-small { width: min(32vw, 56vh); }

.load-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.rack { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--fg); align-self: center; }
.rack li {
  font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.4vw, 3.3rem); line-height: 1; padding: 14px 0;
  border-bottom: 3px solid var(--fg); display: flex; justify-content: space-between; align-items: center;
}
.rack li::after { content: "×"; font-weight: 400; font-stretch: 100%; opacity: .6; }

.load-price { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.spec { margin: 0; border-top: 3px solid var(--fg); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1.5px solid rgba(17,17,17,.25); font-weight: 600; }
.spec dd { margin: 0; font-stretch: 125%; text-transform: uppercase; font-size: .86rem; font-weight: 800; align-self: center; }
.spec .spec-main { padding: 24px 0; border-bottom: 3px solid var(--fg); }
.spec .spec-main dt, .spec .spec-main dd { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; }

/* ---------- Loaded ---------- */
.loaded {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px var(--gutter) 160px; background: var(--rubber);
}
.loaded-kg {
  margin: 0; display: flex; align-items: baseline; justify-content: center; gap: .04em;
  font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -0.05em; color: var(--icon-blue);
  font-size: clamp(2.4rem, 7vw, 6.5rem);
}
.loaded-kg span { font-size: 3.6em; font-variant-numeric: tabular-nums; }
.loaded h2 { margin: 36px 0 48px; }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 28px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,.08); color: #8c8a84; font-size: .85rem;
}
.footer img { border-radius: 10px; }
.footer p { margin: 0; }
.footer p:last-child { margin-left: auto; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-line { display: block; opacity: 0; transform: translateY(30%); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .hero.ready .reveal-line { opacity: 1; transform: none; }
.js .hero.ready .reveal-line:last-child { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-line { opacity: 1; transform: none; transition: none; }
  .p, .hud { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .load, .load-list, .load-price { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 96px 120px; }
  .plate-wrap { width: min(88vw, 520px); }
  .plate-wrap-small { width: min(60vw, 340px); }
  .hero-phone { top: 52%; width: min(40vw, 28vh); }
  .hero-barbell { top: 52%; }
  .hb-sleeve { flex-basis: 9%; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .footer p:last-child { margin-left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hud { gap: 12px; padding: 8px 16px 8px 14px; }
  .hud-kg b { font-size: 1.25rem; }
  .bar { width: 170px; height: 30px; }
  .loaded-kg { font-size: 2rem; }
}
