@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond.woff2') format('woff2');
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Colours sampled from the Indian Freediving Centre poster */
  --surface: #0f5287;
  --sea: #11457e;
  --deep: #0a2a57;
  --abyss: #06234d;
  --paper: #f6f4ef;
  --white: #ffffff;
  --ink: #0b1f3a;
  --muted: #4a5a70;
  --line: #d9dde3;
  --foam: #e8f1f8;
  --accent: #9fd6ea;
  --error: #a4262c;

  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
@media (min-width: 860px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--surface); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.band :focus-visible, .band-paper :focus-visible { outline-color: var(--surface); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.eyebrow { font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--surface); margin-bottom: .75rem; }
.eyebrow-light { color: var(--accent); }
.lead { font-size: 1.15em; max-width: 40em; }
.small { font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }
.btn-light { background: var(--white); color: var(--deep); }
.btn-light:hover { background: var(--foam); color: var(--abyss); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-dark { background: var(--deep); color: var(--white); }
.btn-dark:hover { background: var(--abyss); color: var(--white); }
.link { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font: 600 1.15rem/1.05 var(--serif); letter-spacing: .03em; }
.brand:hover { color: var(--white); }
.brand img { width: 44px; height: auto; }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; margin-right: -12px; cursor: pointer; color: var(--white); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current='page'] { border-bottom-color: var(--accent); color: var(--white); }

/* JS adds .js to <html>; without JS the nav simply stays visible and wraps. */
@media (max-width: 859px) {
  .header-inner { flex-wrap: wrap; gap: 0 16px; }
  .brand, .nav-toggle { min-height: 68px; }
  .js .nav-toggle { display: block; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 0 16px; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-nav ul a[aria-current='page'] { border-bottom-color: rgba(255, 255, 255, .12); color: var(--accent); }
  .site-nav .btn { margin-top: 8px; }
}

/* Heroes: the poster's surface-to-deep gradient with a faint star field */
.hero, .page-hero {
  color: var(--white);
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 14%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 63% 48%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 90% 72%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 36% 86%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--sea) 35%, var(--deep) 75%, var(--abyss) 100%);
}
.hero a:not(.btn), .page-hero a:not(.btn) { color: var(--white); }
.hero { padding: clamp(48px, 9vw, 112px) 0 0; position: relative; isolation: isolate; overflow: hidden; }
/* Hero reef: behind the facts strip, fading up into the gradient and kept
   dim so the figures over it stay readable. */
.hero .reef { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(160px, 26vw, 340px); z-index: -1; opacity: .55; }
.hero-inner { display: grid; gap: 20px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-logo { position: relative; width: 120px; aspect-ratio: 1; justify-self: start; opacity: .95; order: -1; }
.hero-logo img { display: block; width: 100%; height: 100%; }
/* Caustics across the hero (src/caustics.js), over the reef. It draws the logo
   itself and marks .hero-logo lit; until then (or without JS) the plain logo shows. */
.hero-water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-logo.is-lit img { visibility: hidden; }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.5fr 1fr; }
  .hero-logo { width: 300px; order: 0; justify-self: end; }
}
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: clamp(48px, 7vw, 88px) auto 0; padding-top: 0; padding-bottom: 0; }
.facts li { padding: 22px 12px 26px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 2px; }
.facts li + li { border-left: 1px solid rgba(255,255,255,.18); padding-left: 16px; }
.facts strong { font: 600 clamp(1.1rem, 3.4vw, 2rem)/1.1 var(--serif); }
.facts span { font-size: .88rem; color: #cfe0ef; }
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero-tall { min-height: 50vh; display: flex; align-items: center; }
.page-hero .lead { color: #e6eef6; }

.crumbs { padding-top: 14px; padding-bottom: 14px; font-size: .9rem; background: var(--abyss); max-width: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 auto; padding: 0; max-width: calc(1160px - 2 * var(--gutter)); color: #cfe0ef; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--white); }

/* Sections */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-paper { background: var(--paper); }
.band-deep { background: var(--abyss); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--muted); }
.vision p:not(.eyebrow) { font-size: 1.15em; }
.more { margin-top: 28px; font-weight: 600; }

.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.band:not(.band-paper) .card { background: var(--paper); border-color: transparent; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--surface); text-decoration: underline; }
.course-card { display: flex; flex-direction: column; }
/* Label and value in two columns, so a long value wraps under itself. */
.course-card .meta { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.course-card .meta dt { font-weight: 600; color: var(--ink); }
.course-card .meta dd { margin: 0; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 400px 1fr; }
  .split-text { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .split-form { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.portrait img { border-radius: var(--radius); width: 100%; aspect-ratio: 688 / 640; object-fit: cover; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--deep); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 600 .9rem var(--sans); color: var(--surface); letter-spacing: .1em; }
.steps h3 { margin-top: 6px; }
.steps p { color: var(--muted); margin: 0; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: rotate(-45deg); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.05em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); color: var(--surface); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); max-width: 42em; }

/* Courses page */
.course-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.course-jump a { padding: 8px 16px; border-radius: 999px; background: var(--foam); color: var(--deep); text-decoration: none; font-weight: 600; font-size: .95rem; }
.course-jump a:hover { background: var(--deep); color: var(--white); }
.course-group { margin-top: 8px; }
.course-group + .on-request, .on-request + .course-group { margin-top: 56px; }
.course-group > h2 { margin-bottom: 8px; }
.course { padding: 40px 0; border-top: 1px solid var(--line); }
.course-group > h2 + .course { border-top: 0; padding-top: 24px; }
.course-head h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.price { font: 600 1.6rem/1.2 var(--serif); font-variant-numeric: lining-nums; color: var(--deep); margin: 16px 0 0; }
.price span { font: 400 .9rem var(--sans); color: var(--muted); }
.price-options { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.price-options li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.price-options .small { margin-top: 2px; }
.price-options .price { margin: 0; }
.price-label { font: 600 .8rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--surface); }
.price-options + .small { margin: 8px 0 0; }
/* Course columns: badge, name with price, the facts, then the detail. */
.course-cols { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 760px) { .course-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .course-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.course-col { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 30px); background: var(--paper); border-radius: var(--radius); scroll-margin-top: 90px; }
.course-col > p, .course-col h4 { margin: 0; }
.course-col h4 { font: 600 1.15rem/1.2 var(--serif); }
.course-col .ticks { margin: -6px 0 0; }
.course-col > .eyebrow { margin: 4px 0 -10px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.col-head h3 { font-size: 1.6rem; margin: 0; font-variant-numeric: lining-nums; }
.col-price { font: 600 1.4rem/1.1 var(--serif); font-variant-numeric: lining-nums; color: var(--deep); margin: 0; white-space: nowrap; text-align: right; }
.col-price span { font: 400 .8rem var(--sans); color: var(--muted); }
.col-price-dm { font: 600 .95rem/1.3 var(--sans); white-space: normal; max-width: 7.5em; }
.col-facts { margin: 0; display: grid; gap: 10px; }
.col-facts dt { font-weight: 600; }
.col-facts dd { margin: 0; color: var(--muted); }
.col-standards summary { cursor: pointer; font-weight: 600; color: var(--surface); }
.col-standards .standards { margin: 10px 0 8px; }
.badge { width: 92px; height: auto; display: block; }
/* Size and weight are also set on the <text> itself: tools that import the
   page (Figma) read SVG attributes, not CSS on SVG text. */
.badge text { font-family: var(--sans); letter-spacing: .02em; }
.badge-line { stroke: rgba(255, 255, 255, .55); stroke-width: 2.5; }
.badge-discover .badge-fill { fill: #2f7f8f; }
.badge-wave-1 .badge-fill { fill: var(--surface); }
.badge-lap-1 .badge-fill { fill: #3f6aa8; }
.badge-wave-2 .badge-fill { fill: var(--deep); }
.on-request .badge { width: 72px; }

.on-request { display: grid; gap: 20px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); scroll-margin-top: 90px; }
.on-request h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.on-request p:last-child { margin-bottom: 0; color: var(--muted); }
.on-request-action { display: grid; gap: 12px; justify-items: start; }
.on-request-action .price { margin: 0; }
@media (min-width: 860px) { .on-request { grid-template-columns: auto 1fr auto; gap: 32px; } .on-request-action { justify-items: end; } }
.course-head { max-width: 720px; margin-bottom: 24px; }
.course-body { display: grid; gap: 32px; }
@media (min-width: 860px) { .course-body { grid-template-columns: 1fr 1fr; gap: 56px; } }
.course-body h4 { font: 600 1.3rem/1.2 var(--serif); margin: 0 0 .5em; }
.standards { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .98rem; }
.standards th, .standards td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.standards td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 16px; }
.standards th { font-weight: 400; }
.standards thead th { font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.standards thead th:last-child { text-align: right; }
.standards abbr { text-decoration: none; color: var(--muted); font-size: .85em; margin-left: 4px; }
.facts-list { margin: 24px 0 12px; }
.facts-list div { margin-bottom: 10px; }
.facts-list dt { font-weight: 600; }
.facts-list dd { margin: 0; color: var(--muted); }

/* CTA band */
.cta { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.4fr 1fr; } .cta-actions { justify-content: flex-end; } }
.cta p { color: #d6e3ef; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact form */
.enquiry { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.enquiry input:not([type='radio']), .enquiry select, .enquiry textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #9aa6b5; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.enquiry textarea { resize: vertical; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { border-color: var(--surface); outline: 3px solid rgba(15, 82, 135, .25); outline-offset: 0; }
.enquiry [aria-invalid='true'] { border-color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 6px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; min-height: 32px; cursor: pointer; }
.choices input { width: 20px; height: 20px; accent-color: var(--deep); }
.form-error { color: var(--error); font-weight: 600; margin: 0; }
.enquiry .btn { justify-self: start; }
.form-hint { margin: 0; }
.contact-card h2 { font-size: 1.7rem; }
.contact-card .btn svg { flex: none; }

/* The poster's coral reef. The mask fades its top edge into whatever deep
   blue sits behind it, so the reef rises out of the water instead of
   starting at a hard line. */
.reef { background: url('/assets/coral.webp') center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%);
  mask-image: linear-gradient(to bottom, transparent, #000 60%); pointer-events: none; }

/* Footer reef: small corals repeated along the bottom, treated like the
   hero's: dimmed, and fading in over most of the strip's height, so the
   blue above runs down into them rather than stopping at an edge.
   The tile is the coral with its right end cross-faded into its left start
   (coral-tile.webp, tools/make-coral-tile.cjs), so tiles join without a seam. */
.coral { --tile: clamp(90px, 11vw, 150px); position: relative; height: calc(var(--tile) + 16px); background: linear-gradient(var(--abyss) 40%, #041a3a); }
/* --tile is the coral's height. The fade begins exactly at the image's top
   edge, whose own blue is a shade lighter than the band, so no edge shows. */
.coral .reef { position: absolute; inset: 0; opacity: .6;
  background-image: url('/assets/coral-tile.webp');
  background-size: auto var(--tile); background-repeat: repeat-x; background-position: left bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(100% - var(--tile)), #000 calc(100% - var(--tile) * .3), #000 calc(100% - var(--tile) * .15), transparent);
  mask-image: linear-gradient(to bottom, transparent calc(100% - var(--tile)), #000 calc(100% - var(--tile) * .3), #000 calc(100% - var(--tile) * .15), transparent); }
/* After a deep band the two are one scene: the band gives up most of its
   bottom padding and the reef's empty top slides up under it. </main> sits
   between them, so this keys off the band that ends <main>. */
/* src/sea.js: the reef sways and plankton drift, on canvases layered in here. */
.sea-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .sea-layer { z-index: -1; }
.reef.is-live { background-image: none; }
main > .band-deep:last-child { padding-bottom: clamp(24px, 3vw, 40px); }
main:has(> .band-deep:last-child) + .coral { margin-top: calc(-1 * clamp(24px, 3vw, 40px)); }
.site-footer { background: #041a3a; color: #d6e3ef; padding: 48px 0 24px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-note { margin-top: 16px; font-size: .95rem; max-width: 28em; }
.footer-h { font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.ig { display: inline-flex; align-items: center; gap: 8px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #b4c6d8; }
.footer-base p { margin: 0; }

/* Logo lab (/logo-lab/): caustics studio */
.lab-src { position: absolute; width: 0; height: 0; overflow: hidden; }
.studio { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) {
  .studio { grid-template-columns: minmax(0, 1fr) 340px; }
  .studio-view { position: sticky; top: 96px; }
}
.studio-stage { --ar: 1; position: relative; aspect-ratio: var(--ar); width: min(100%, calc(76svh * var(--ar))); margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  background: repeating-conic-gradient(#e3e6ea 0 25%, #f4f5f7 0 50%) 0 0 / 20px 20px; }
.studio-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.studio-actions .btn:disabled { opacity: .55; cursor: progress; }
.studio-rec { display: inline-flex; gap: 6px; align-items: center; }
.studio-rec select { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; font: inherit; font-size: .95rem; background: var(--white); color: var(--ink); }
.studio-status { min-height: 1.6em; margin: 12px 0 0; text-align: center; font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
.studio-panel { background: var(--white); border-radius: var(--radius); padding: 8px 20px 22px; }
.ctl-group { border: 0; margin: 0; padding: 14px 0 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.ctl-group legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--surface); }
.ctl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin-bottom: 12px; font-size: .98rem; clear: both; }
.ctl label { font-weight: 600; }
.ctl output { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.ctl input[type='range'] { grid-column: 1 / -1; width: 100%; margin: 4px 0 0; accent-color: var(--deep); }
.ctl select { grid-column: 1 / -1; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; background: var(--white); color: var(--ink); }
.ctl-colour input { width: 48px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; clear: both; margin-bottom: 10px; }
.preset { font: 600 .9rem/1.2 var(--sans); padding: .5em .95em; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.preset:hover { border-color: var(--surface); }
.preset[aria-pressed='true'] { background: var(--deep); border-color: var(--deep); color: var(--white); }
.studio-reset { margin-top: 18px; border-color: var(--line); background: transparent; color: var(--ink); }
.studio-reset:hover { border-color: var(--surface); }

/* Phones: every section is one column, so centre it. Headings, copy, buttons,
   logos and badges centre; lists of facts, tick lists, tables, the FAQ and the
   form stay left-aligned inside a centred block, because ragged-centre rows
   of label/value pairs are hard to scan. */
@media (max-width: 699px) {
  .hero-copy, .page-hero, .section-head, .vision, .card, .course-col, .course-head,
  .on-request, .cta, .split > *, .steps li, .footer-grid > *, .footer-base, .more,
  .course-group > h2, .course-group > h2 + p { text-align: center; }
  .section-head, .lead, .hero h1, .footer-note { margin-left: auto; margin-right: auto; }
  .hero-logo { justify-self: center; }
  .hero-actions, .cta-actions, .course-jump, .studio-actions { justify-content: center; }
  .facts li { align-items: center; text-align: center; padding-left: 8px; padding-right: 8px; }
  .facts li + li { padding-left: 8px; }
  .ticks, .enquiry, .standards { text-align: left; }
  /* Shrink-wrap the label/value grid and the tick lists so the block sits centred. */
  .course-card .meta { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .course-card .meta dd { margin-bottom: 8px; }
  .wrap > h2, .wrap > .eyebrow, .wrap > .section-head { text-align: center; }
  .ticks, .course-col .ticks { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
  .col-head { flex-direction: column; align-items: center; gap: 6px; }
  .col-price { text-align: center; }
  .col-price-dm { max-width: none; }
  .badge { margin: 0 auto; }
  .on-request-action { justify-items: center; }
  .price-options li { justify-items: center; text-align: center; }
  .steps li { border-top: 0; padding-top: 0; }
  .steps li::before { display: block; margin: 0 auto 8px; padding-top: 14px; width: 48px; border-top: 2px solid var(--deep); }
  .footer-grid .brand { justify-content: center; }
  .footer-links .ig { justify-content: center; }
  .enquiry .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
