/* Studio W Fitness. The colours are the studio's own: black, orange and amber, as on its cards. */
:root {
  --ink: #0d0d0f;
  --ink-2: #17171b;
  --line: #2a2a31;
  --paper: #f7f3ec;
  --paper-2: #efe9de;
  --text: #1b1b1f;
  --muted: #5d5a55;
  --on-dark: #f3f1ed;
  --on-dark-muted: #b9b6b0;
  --orange: #ff7a00;
  --amber: #ffab00;
  --orange-ink: #a84c00;
  --radius: 14px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; padding-bottom: 76px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 7.2vw, 3.5rem); font-weight: 900; text-transform: uppercase; font-style: italic; letter-spacing: -.025em; }
h1 em { color: var(--orange); font-style: inherit; }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.25rem); font-weight: 850; }
h3, .h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: rgba(13, 13, 15, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.brand-w {
  font-weight: 900; font-style: italic; font-size: 1.9rem; line-height: 1; padding-right: 2px;
  background: linear-gradient(180deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-size: 1.05rem; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { font-size: .68rem; color: var(--on-dark-muted); letter-spacing: .08em; text-transform: uppercase; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--on-dark); text-decoration: none; font-weight: 650; font-size: .92rem; padding: 10px 10px; border-radius: 8px; }
.top nav a:hover { background: var(--ink-2); color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px;
  border-radius: 12px; background: linear-gradient(180deg, var(--amber), var(--orange)); color: #1a0e00;
  font-weight: 800; font-size: 1.02rem; text-decoration: none; border: 0; text-align: center; line-height: 1.2;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.actions .btn { flex: 1 1 240px; }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46px; background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-grid { display: grid; gap: 28px; padding: 40px 0 0; }
.hero-copy { padding-bottom: 8px; }
.tag, .kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 12px; }
.kicker { color: var(--orange-ink); }
.lead { font-size: 1.14rem; color: var(--on-dark-muted); margin-top: 16px; max-width: 58ch; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 16px; border-left: 3px solid var(--orange); color: var(--on-dark-muted); font-size: .98rem; }
.facts b { color: var(--on-dark); font-weight: 850; }
.hero-photo { margin: 0; justify-self: center; align-self: end; width: min(78%, 320px); }
.hero-photo img { border-radius: 18px 18px 0 0; width: 100%; }
.hero.slim { padding: 34px 0 78px; }
.hero.slim h1 { font-size: clamp(1.7rem, 6vw, 2.8rem); max-width: 22ch; }
.crumb { font-size: .86rem; color: var(--on-dark-muted); margin-bottom: 14px; }
.crumb a { color: var(--on-dark-muted); }

/* Sections */
.sec { padding: 58px 0; }
.sec.alt { background: var(--paper-2); }
.sub { color: var(--muted); max-width: 62ch; margin-top: 12px; }
.two { display: grid; gap: 34px; }
.band { background: var(--ink); color: var(--on-dark); padding: 50px 0 54px; margin-top: -1px; }
.band .kicker { color: var(--amber); }
.band .sub { color: var(--on-dark-muted); }
.marks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
.marks div { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; display: grid; gap: 2px; }
.marks div:last-child { grid-column: 1 / -1; }
.marks span { font-size: .8rem; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.marks b { font-size: 1.9rem; font-weight: 900; font-style: italic; color: var(--amber); line-height: 1.1; }
.marks small { color: var(--on-dark-muted); font-size: .86rem; }

/* Exam cards */
.exams { display: grid; gap: 12px; margin-top: 26px; }
.exam {
  display: grid; gap: 6px; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark);
  text-decoration: none; border-left: 5px solid var(--orange); min-height: 132px; align-content: start;
}
.exam:hover { background: var(--ink-2); }
.exam-k { font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: var(--amber); }
.exam h3 { font-size: 1.35rem; font-style: italic; text-transform: uppercase; font-weight: 900; }
.exam p { margin: 0; color: var(--on-dark-muted); font-size: .96rem; }
.more { font-weight: 750; font-size: .93rem; color: var(--amber); margin-top: 6px; }
.more::after { content: " →"; }
.exam.small { min-height: 0; }

/* Steps, services */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: #fff; border-radius: var(--radius); border: 1px solid #e3dccf; }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 12px; width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--amber); font-weight: 900; font-style: italic; display: grid; place-items: center;
}
.services { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.services li { background: #fff; border: 1px solid #e3dccf; border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--orange); }
.services p { margin: 6px 0 0; color: var(--muted); font-size: .97rem; }
.who { display: grid; gap: 20px; align-items: center; }
.who img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; border: 4px solid var(--orange); }
address { font-style: normal; font-size: 1.12rem; font-weight: 650; margin: 14px 0; }

/* FAQ */
.faq { margin-top: 14px; display: grid; gap: 8px; }
details { background: #fff; border: 1px solid #e3dccf; border-radius: 12px; }
summary { cursor: pointer; padding: 16px 44px 16px 16px; font-weight: 750; list-style: none; position: relative; min-height: 54px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 11px; font-size: 1.5rem; font-weight: 500; color: var(--orange-ink); }
details[open] summary::after { content: "–"; }
details p { padding: 0 16px 16px; margin: 0; color: var(--muted); }

/* Exam pages */
article h2 { margin-top: 44px; margin-bottom: 14px; }
article .sec.alt h2, article .narrow > h2:first-of-type { margin-top: 0; }
.status { background: #fff; border-left: 5px solid var(--orange); border-radius: 0 12px 12px 0; padding: 14px 16px; margin-bottom: 30px; }
.table-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid #e3dccf; background: #fff; }
.marks-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.marks-table caption { text-align: left; padding: 12px 16px; font-size: .86rem; color: var(--muted); caption-side: bottom; border-top: 1px solid #e3dccf; }
.marks-table thead th { background: var(--ink); color: var(--on-dark); text-align: left; padding: 12px 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.marks-table tbody th { text-align: left; padding: 14px 16px; font-weight: 750; }
.marks-table td { padding: 14px 16px; font-variant-numeric: tabular-nums; }
.marks-table tbody tr + tr { border-top: 1px solid #ece6da; }
.source { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.rules { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.rules li::marker { color: var(--orange); }
.callout { background: var(--ink); color: var(--on-dark); border-radius: 18px; padding: 26px 22px; margin-top: 44px; }
.callout h2 { margin-top: 0; }
.callout p { color: var(--on-dark-muted); }
.callout .btn { margin-top: 6px; width: 100%; }

/* Footer and floating button */
.foot { background: var(--ink); color: var(--on-dark-muted); padding: 44px 0 28px; font-size: .95rem; }
.foot a { color: var(--on-dark); }
.foot-grid { display: grid; gap: 26px; }
.foot-name { font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--on-dark); font-size: 1.1rem; }
.foot-h { font-weight: 800; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot li a { display: inline-block; padding: 7px 0; }
.foot-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; }
.float {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; border-radius: 14px; background: #1faa53; color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

/* Small phones: the marks table becomes one card per test */
@media (max-width: 620px) {
  .marks-table thead { position: absolute; left: -9999px; }
  .marks-table, .marks-table tbody, .marks-table tr, .marks-table th, .marks-table td { display: block; }
  .marks-table tbody th { padding-bottom: 6px; font-size: 1.05rem; }
  .marks-table td { padding: 4px 16px; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .marks-table td::before { content: attr(data-label); color: var(--muted); font-size: .86rem; text-align: left; flex: 0 1 46%; }
  .marks-table caption { display: block; }
  .marks-table td:last-child { padding-bottom: 14px; }
  .top nav a { padding: 10px 6px; font-size: .84rem; white-space: nowrap; }
  .top { padding-inline: 14px; }
  .brand-text small { display: none; }
}
@media (min-width: 700px) {
  .marks { grid-template-columns: repeat(5, 1fr); }
  .marks div:last-child { grid-column: auto; }
  .exams { grid-template-columns: repeat(2, 1fr); }
  .exams.three { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .who { grid-template-columns: auto 1fr; }
  .callout { padding: 34px; }
  .callout .btn { width: auto; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; align-items: end; padding-top: 64px; }
  .hero-copy { padding-bottom: 96px; }
  .two { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .exams { grid-template-columns: repeat(4, 1fr); }
  .float { left: auto; right: 22px; bottom: 22px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
