/* Hallmark · shape: Standing order (hero, proof, problem, the floor, three rounds, questions, visit) · genre: editorial · theme: Sport (deal 1/3, seed rock-solid-gym-bradford-f735·bf69b9e5·2026-12-04·r0), recoloured to the Rock Solid black and gold · job: visit · draw: manual
 * hero: split stage, ink panel beside their ring, two members cut out and breaking over the seam · nav: frosted ink bar, their own wordmark, four links, call button · footer: Djenius secure panel then a plain meta line · imagery: their own photographs, true colour · signature: three rounds, a round clock counts each step down from 3:00 to the bell
 * axes: light/display-condensed/chromatic-gold · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the theme's single volt became their logo gold and a rope red, by the owner's standing rule that sites stay colourful and true to the brand */
/* waive 48b: second accent (rope red) is the gym's own ring colour; Djenius standing rule keeps sites colourful and on-brand */
/* waive 67: hero call link set in caps by the owner's standing Hiser hero format (caps headline, caps button, caps link) */
/* waive 63: "Secure this website · £300" is the Djenius standing button label, required word for word */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --color-paper: oklch(97% 0.004 250); --color-paper-2: oklch(93.5% 0.006 250); --color-paper-3: oklch(89% 0.008 250);
  --color-ink: oklch(17% 0.012 260); --color-ink-2: oklch(24% 0.014 260); --color-muted: oklch(45% 0.015 255);
  --color-rule: oklch(80% 0.008 250); --color-rule-2: oklch(30% 0.014 260);
  --color-accent: oklch(76% 0.095 84); --color-accent-ink: oklch(17% 0.012 260); --color-accent-deep: oklch(52% 0.08 80);
  --color-accent-2: oklch(76% 0.11 84);
  --color-red: oklch(46% 0.165 25); --color-red-2: oklch(40% 0.15 25); --color-red-3: oklch(52% 0.16 25);
  --color-on-dark: oklch(97% 0.004 250); --color-on-dark-2: oklch(80% 0.01 250);
  --color-focus: oklch(62% 0.12 84);
  --color-glass: color-mix(in oklab, oklch(17% 0.012 260) 72%, transparent);
  --color-scrim: color-mix(in oklab, oklch(17% 0.012 260) 70%, transparent);
  --concept-h: 44px; --nav-h: 68px;
}

/* type */
h1, h2, h3 { text-transform: uppercase; line-height: 1.02; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: var(--rule-bar) solid transparent; border-radius: var(--radius-card); padding: var(--space-sm) var(--space-lg); font: var(--display-weight) var(--text-md)/1.2 var(--font-display); text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn--secondary { border-color: var(--color-ink); color: var(--color-ink); background: transparent; }
.btn--secondary:hover { background: var(--color-ink); color: var(--color-paper); }
.on-dark .btn--secondary { border-color: var(--color-on-dark); color: var(--color-on-dark); }
.on-dark .btn--secondary:hover { background: var(--color-on-dark); color: var(--color-ink); }
.textlink { font: var(--display-weight) var(--text-lg)/1.2 var(--font-display); text-transform: uppercase; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; text-decoration-color: var(--color-accent); padding: var(--space-xs) 0; }
.textlink:hover { text-decoration-color: currentColor; }
.textlink:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* concept bar + secured */
.concept { background: var(--color-ink); color: var(--color-on-dark-2); }
.concept .container { display: flex; align-items: center; justify-content: center; min-height: var(--concept-h); padding-block: var(--space-xs); }
.concept p { font-size: var(--text-sm); text-align: center; }
.concept a { color: var(--color-on-dark); }
.secured { display: none; padding: var(--space-sm) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); text-align: center; font-weight: 500; }
.secured.show { display: block; }

/* nav: frosted glass (R11) */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-on-dark) 14%, transparent); color: var(--color-on-dark); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.nav .brand { display: block; padding: var(--space-xs) 0; }
.nav .brand img { width: 196px; height: auto; }
.nav ul { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--color-on-dark); text-decoration: none; font-size: var(--text-sm); font-weight: 500; padding: var(--space-xs) 0; background-image: linear-gradient(var(--color-accent), var(--color-accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--dur-short) var(--ease-out); }
.nav ul a:hover { background-size: 100% 2px; }
.nav ul a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.nav .btn { min-height: 44px; padding-inline: var(--space-md); }

/* ---------- HERO ---------- */
.hero { background: var(--color-ink); color: var(--color-on-dark); }
.hero .stage { position: relative; height: calc(100svh - var(--nav-h)); min-height: 600px; overflow: clip; display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
.hero .copy { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: var(--space-xl); padding: var(--space-2xl) var(--space-xl) var(--space-3xl) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.hero h1 { font-size: clamp(3rem, 4.6vw + 0.6rem, 5.6rem); max-width: 11ch; line-height: 0.98; }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.hero .acts .textlink { color: var(--color-on-dark); }
.hero .tagline { position: absolute; left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: var(--space-xl); z-index: 4; font: var(--display-weight) var(--text-md)/1.2 var(--font-display); text-transform: uppercase; color: var(--color-accent); max-width: 30ch; }
.hero .photo { position: relative; z-index: 2; container-type: size; }
.hero .plate-wrap { position: absolute; inset: 0; overflow: clip; }
.scene { position: absolute; left: 0; top: 50%; width: max(100cqw, 133.34cqh); aspect-ratio: 4 / 3; transform: translateY(-50%); }
.scene .plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 18.75% 86%; transform: scale(calc(1.02 + var(--sc-p, 0) * 0.04)); }
.scene--front { pointer-events: none; }
.scene .cut { position: absolute; left: 0; top: 50%; width: 62.5%; height: 50%; transform-origin: 30% 72%; transform: scale(calc(1.02 + var(--sc-p, 0) * 0.1)); }
.scene .cut img { width: 100%; height: 100%; }

/* ---------- PROOF (gold) ---------- */
.proof { background: var(--color-accent); color: var(--color-accent-ink); padding-block: var(--section-gap-s); }
.proof .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: start; }
.score { display: grid; gap: var(--space-xs); }
.score .figure { font: var(--display-weight) clamp(7rem, 12vw, 11rem)/0.82 var(--font-display); font-variant-numeric: tabular-nums; }
.score p { font-size: var(--text-lead); font-weight: 500; max-width: 18ch; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-2xl); margin: 0; padding: 0; list-style: none; }
.quotes li { border-top: var(--rule-bar) solid var(--color-accent-ink); padding-top: var(--space-md); display: grid; gap: var(--space-sm); }
.quotes blockquote { margin: 0; font: var(--display-weight) var(--text-xl)/1.15 var(--font-display); text-transform: uppercase; }
.quotes cite { font-style: normal; font-size: var(--text-sm); font-weight: 500; }

/* ---------- PROBLEM (paper) ---------- */
.problem { background: var(--color-paper); padding-block: var(--section-gap); }
.problem .container { display: grid; justify-items: center; text-align: center; gap: var(--space-2xl); }
.problem h2 { font-size: clamp(2.6rem, 5vw + 0.5rem, 5rem); max-width: 16ch; }
.costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 1080px; margin: 0; padding: 0; list-style: none; text-align: left; border-top: var(--rule-bar) solid var(--color-rule-2); }
.costs li { padding: var(--space-lg) var(--space-lg) 0; display: grid; gap: var(--space-xs); }
.costs li + li { border-left: var(--rule-hair) solid var(--color-rule); }
.costs h3 { font-size: var(--text-xl); }
.costs p { color: var(--color-muted); }

/* ---------- THE FLOOR (ink) ---------- */
.floor { background: var(--color-ink); color: var(--color-on-dark); padding-block: var(--section-gap); }
.floor .head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
.floor .head p { color: var(--color-on-dark-2); max-width: 36ch; }
.floor .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.rooms { list-style: none; margin: 0; padding: 0; border-top: var(--rule-bar) solid var(--color-accent); }
.rooms li { border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-on-dark) 18%, transparent); }
.rooms button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-sm) var(--space-md); padding: var(--space-lg) var(--space-md); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.rooms button:hover { background: var(--color-ink-2); }
.rooms button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.rooms .n { font: 500 var(--text-md)/1.4 var(--font-outlier); color: var(--color-accent); }
.rooms h3 { font-size: var(--text-2xl); }
.rooms p { grid-column: 2; color: var(--color-on-dark-2); max-width: 44ch; display: none; }
.rooms [aria-selected="true"] { background: var(--color-ink-2); }
.rooms [aria-selected="true"] p { display: block; }
.rooms [aria-selected="true"] h3 { color: var(--color-accent); }
.viewer { position: sticky; top: calc(var(--nav-h) + var(--space-lg)); margin: 0; }
.viewer .frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: clip; background: var(--color-ink-2); }
.viewer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.viewer img.on { opacity: 1; }
.viewer .badge-pane { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); background: var(--color-ink-2); }
.viewer .badge-pane.on { opacity: 1; }
.viewer .badge-pane img { position: static; opacity: 1; width: min(46%, 260px); height: auto; }
.viewer figcaption { margin-top: var(--space-sm); color: var(--color-on-dark-2); font-size: var(--text-sm); }

/* ---------- THREE ROUNDS (concrete) ---------- */
.rounds { background: var(--color-paper-2); }
.rounds .stage { height: calc(100svh - var(--nav-h)); min-height: 620px; display: grid; align-content: center; }
.rounds .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.clock { display: grid; gap: var(--space-md); }
.clock h2 { font-size: var(--text-section); }
.clock .time { font: 500 clamp(5rem, 10vw, 9.5rem)/0.9 var(--font-outlier); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.clock .bar { height: 10px; background: var(--color-paper-3); border-radius: var(--radius-card); overflow: clip; }
.clock .bar i { display: block; height: 100%; width: 100%; background: var(--color-red); transform-origin: 0 50%; transform: scaleX(var(--left, 1)); }
.clock .label { font-weight: 500; color: var(--color-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.steps li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-lg); padding: var(--space-lg); background: var(--color-paper); border-radius: var(--radius-card); transition: background-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out); }
.steps .rd { font: var(--display-weight) var(--text-xl)/1 var(--font-display); text-transform: uppercase; }
.steps h3 { font-size: var(--text-2xl); margin-bottom: var(--space-xs); }
.steps p { color: var(--color-muted); max-width: 46ch; transition: color var(--dur-long) var(--ease-out); }
.steps li.live { background: var(--color-accent); }
.steps li.live p { color: var(--color-accent-ink); }

/* ---------- QUESTIONS (rope red) ---------- */
.faq { background: var(--color-red); color: var(--color-on-dark); padding-block: var(--section-gap); }
.faq .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: start; }
.faq h2 { position: sticky; top: calc(var(--nav-h) + var(--space-xl)); }
.qs { display: grid; gap: var(--space-xs); }
.qs details { background: var(--color-red-2); border-radius: var(--radius-card); }
.qs details:nth-child(even) { background: var(--color-red-3); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-lg); font: var(--display-weight) var(--text-xl)/1.15 var(--font-display); text-transform: uppercase; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; font: 500 var(--text-xl)/1 var(--font-outlier); color: var(--color-accent); flex-shrink: 0; }
.qs details[open] summary::after { content: "−"; }
.qs summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.qs details p { padding: 0 var(--space-lg) var(--space-lg); color: var(--color-on-dark); max-width: 60ch; }
.qs details p a, .qs details p button { color: var(--color-on-dark); }
.inline-btn { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.inline-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---------- VISIT (paper, split with photo) ---------- */
.visit { background: var(--color-paper); }
.visit .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 80svh; }
.visit .pic { position: relative; overflow: clip; }
.visit .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.visit .txt { display: flex; flex-direction: column; justify-content: center; gap: var(--space-xl); padding: var(--section-gap-s) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) var(--section-gap-s) var(--space-2xl); }
.visit h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.visit .phone { font: var(--display-weight) clamp(2.4rem, 4.4vw, 4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-ink); text-decoration: none; }
.visit .phone:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; }
.visit .phone:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-sm) var(--space-lg); margin: 0; border-top: var(--rule-bar) solid var(--color-rule-2); padding-top: var(--space-md); }
.facts dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; padding-top: var(--space-3xs); }
.facts dd { margin: 0; }
.visit .acts { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ---------- Djenius close + footer ---------- */
.dj-end { background: var(--color-ink); color: var(--color-on-dark); }
.dj-end .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-2xl); }
.dj-end p { font: var(--display-weight) var(--text-2xl)/1.1 var(--font-display); text-transform: uppercase; max-width: 22ch; }
.dj-end .acts { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.meta { background: var(--color-ink); color: var(--color-on-dark-2); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-on-dark) 14%, transparent); }
.meta .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-lg); font-size: var(--text-sm); }
.meta a { color: var(--color-on-dark); }

/* dialogs */
dialog { max-width: min(30rem, calc(100% - 2 * var(--space-md))); margin: auto; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); }
dialog::backdrop { background: var(--color-scrim); }
.dlg { position: relative; display: grid; gap: var(--space-md); padding: var(--space-xl) var(--space-lg) var(--space-lg); }
.dlg h2 { font-size: var(--text-2xl); padding-right: var(--space-xl); }
.dlg .acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.dlg .x { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 44px; height: 44px; border: 0; background: transparent; color: var(--color-ink); font-size: var(--text-xl); cursor: pointer; border-radius: var(--radius-card); }
.dlg .x:hover { background: var(--color-paper-2); }
.dlg .x:focus-visible { outline: 2px solid var(--color-focus); }

/* scrollcraft mechanism, restated (engine css not loaded) */
.js [data-sc-in] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.js [data-sc-in].sc-in { opacity: 1; transform: none; }
.rounds[data-sc-act] .stage, .hero[data-sc-act] .stage { position: sticky; top: var(--nav-h); }

/* ---------- tablet ---------- */
@media (max-width: 70rem) {
  .nav ul { display: none; }
  .proof .container, .floor .grid, .rounds .container, .faq .container { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .faq h2 { position: static; }
  .viewer { position: relative; top: 0; order: -1; }
  .floor .head { flex-direction: column; align-items: start; }
}

/* ---------- phone (R14: the photo leads, an ink sheet with the badge notch rises over it) ---------- */
@media (max-width: 60rem) {
  :root { --nav-h: 60px; }
  .nav .brand img { width: 150px; }
  .hero .stage { display: flex; flex-direction: column; height: auto; min-height: 0; overflow: visible; }
  .hero .photo { order: 0; }
  .hero .copy { order: 1; }
  .hero[data-sc-act] .stage { position: relative; top: 0; }
  .hero .photo { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); width: 100%; z-index: 1; }
  .scene { left: 50%; top: 0; width: 170cqh; transform: translate(-40%, -42%); }
  .hero .copy { margin-top: -50svh; z-index: 3; background: var(--color-ink); color: var(--color-on-dark); padding: var(--space-2xl) var(--gutter) var(--space-2xl); gap: var(--space-lg); min-height: 50svh; }
  .hero .copy::before { content: ""; position: absolute; left: 50%; top: 0; width: 112px; height: 112px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--color-ink); }
  .hero .badge-mark { position: absolute; left: 50%; top: 0; width: 92px; transform: translate(-50%, -50%); z-index: 1; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); position: relative; }
  .hero .tagline { position: static; left: auto; bottom: auto; padding: 0; }
  .hero .copy > *:not(.badge-mark) { position: relative; }
  .steps { gap: var(--space-2xl); }
  .scene .cut { transform: scale(calc(1.02 + var(--sc-p, 0) * 0.08)); }
  .costs { grid-template-columns: minmax(0, 1fr); }
  .costs li + li { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .costs li { padding: var(--space-lg) 0; }
  .rounds .stage { height: auto; min-height: 0; padding-block: var(--section-gap-s); }
  .rounds[data-sc-act] .stage { position: relative; top: 0; }
  .clock { position: sticky; top: var(--nav-h); z-index: 2; background: var(--color-paper-2); padding-block: var(--space-md); }
  .clock .time { font-size: clamp(3.6rem, 18vw, 5rem); }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .visit .wrap { grid-template-columns: minmax(0, 1fr); }
  .visit .pic { min-height: 60svh; }
  .visit .txt { padding: var(--section-gap-s) var(--gutter); }
  .dj-end .container { padding-block: var(--space-xl); }
}
@media (min-width: 60.01rem) { .hero .badge-mark { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .scene .plate, .scene .cut { transform: scale(1.02); }
  .js [data-sc-in] { opacity: 1; transform: none; }
  .viewer img, .viewer .badge-pane { transition: none; }
}
