/* =====================================================================
   AGEL – agelstore.co.uk
   Colour-reactive single-product page. Mobile first.
   ===================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Roboto Slab';
  src: url('/assets/fonts/roboto-slab-latin.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
/* metric-matched fallbacks keep layout shift near zero while fonts load */
@font-face { font-family: 'Slab Fallback'; src: local('Georgia'); size-adjust: 104%; ascent-override: 92%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107%; ascent-override: 90%; }

/* ---------- Animatable colour tokens ---------- */
@property --tint   { syntax: '<color>'; inherits: true; initial-value: #ECF1FD; }
@property --tint-2 { syntax: '<color>'; inherits: true; initial-value: #DFE7FB; }
@property --stage  { syntax: '<color>'; inherits: true; initial-value: #D9E3FA; }
@property --deep   { syntax: '<color>'; inherits: true; initial-value: #1F4FC9; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #1F4FC9; }
@property --glow-c { syntax: '<color>'; inherits: true; initial-value: #1F4FC9; }
@property --deep-ink { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }

:root {
  --navy: #0B0B1A;
  --ink: #0B0B1A;
  --ink-2: #3D3E52;
  --ink-3: #5D5E72;
  --paper: #FFFFFF;
  --red: #E8174A;
  --red-hover: #CC0E3C;
  --line: rgba(11, 11, 26, 0.12);
  --line-2: rgba(11, 11, 26, 0.2);

  --font-display: 'Roboto Slab', 'Slab Fallback', Georgia, serif;
  --font-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.7vw, 2.75rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-5: clamp(2.75rem, 1.7rem + 5.2vw, 6.25rem);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --pill: 999px;

  --header-h: 64px;
  --announce-h: 36px;
  --gutter: max(16px, env(safe-area-inset-left));
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);

  --shadow-sm: 0 1px 2px rgba(11, 11, 26, 0.06), 0 2px 8px rgba(11, 11, 26, 0.05);
  --shadow: 0 10px 30px -10px rgba(11, 11, 26, 0.25);
  --glow: color-mix(in srgb, var(--glow-c) 38%, transparent);

  /* default colour = blue */
  --tint: #ECF1FD; --tint-2: #DFE7FB; --stage: #D9E3FA; --deep: #1F4FC9; --accent: #1F4FC9; --glow-c: #1F4FC9; --deep-ink: #FFFFFF;

  transition: --tint 0.8s var(--ease), --tint-2 0.8s var(--ease), --stage 0.8s var(--ease), --deep 0.8s var(--ease),
    --accent 0.8s var(--ease), --glow-c 0.8s var(--ease), --deep-ink 0.8s var(--ease);
}
:root[data-colour='black'] { --tint: #EFEFF2; --tint-2: #E4E4EA; --stage: #E0E0E7; --deep: #121216; --accent: #121216; --glow-c: #121216; --deep-ink: #FFFFFF; }
:root[data-colour='green'] { --tint: #EAF2EE; --tint-2: #DCE9E3; --stage: #D3E4DC; --deep: #1E5A4C; --accent: #1E5A4C; --glow-c: #1E5A4C; --deep-ink: #FFFFFF; }
:root[data-colour='white'] { --tint: #F8F4ED; --tint-2: #EFE8DC; --stage: #E6DBC8; --deep: #ECE4D4; --accent: #6E5E43; --glow-c: #9C8763; --deep-ink: #0B0B1A; }
:root.no-tint-transition { transition: none; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--tint);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
dialog { padding: 0; border: 0; color: inherit; background: none; max-width: none; max-height: none; }
::selection { background: var(--deep); color: var(--deep-ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
svg use { pointer-events: none; }

/* ---------- Atoms ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: rgba(255, 255, 255, 0.7); }
.section-title { font-size: var(--step-4); margin-top: 10px; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { margin-top: 16px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.section-head--center .lead { margin-inline: auto; }
.lead a { color: var(--ink); font-weight: 600; }

.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--pill); font-size: var(--step--1); font-weight: 700; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.pill--red { background: var(--red); color: #fff; box-shadow: none; }
.price-big { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--pill);
  font-weight: 700; font-size: var(--step-0); line-height: 1.1; text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.35s var(--ease), background-color 0.2s, box-shadow 0.3s var(--ease), color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.97); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(232, 23, 74, 0.7); }
.btn--primary:hover { background: var(--red-hover); box-shadow: 0 16px 30px -12px rgba(232, 23, 74, 0.8); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #24243A; }
.btn--light { background: var(--deep-ink); color: var(--deep); }
.btn--light:hover { filter: brightness(0.94); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--step--1); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: var(--step-1); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.6; cursor: not-allowed; }

.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 0; border: 0; background: none; font-size: var(--step--1); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; color: var(--ink-2); }
.link-btn svg { width: 18px; height: 18px; }
.link-btn:hover { color: var(--ink); }

.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), background 0.2s; }
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { transform: scale(1.06); }
.round-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.round-btn--ghost { background: transparent; box-shadow: none; }
.round-btn--ghost:hover { background: rgba(11, 11, 26, 0.06); }

.swatch { position: relative; display: inline-block; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(11, 11, 26, 0.18), inset 0 -6px 10px rgba(0, 0, 0, 0.18), inset 0 6px 10px rgba(255, 255, 255, 0.12); }
.swatch--sm { width: 16px; height: 16px; }
button.swatch { border: 0; padding: 0; transition: transform 0.35s var(--ease); }
button.swatch::after, .swatch-radio .swatch::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.35s var(--ease); }
button.swatch:hover { transform: scale(1.08); }
/* ring follows <html data-colour>, which is set before first paint (so deep links are right instantly) */
:root[data-colour='black'] button.swatch[data-set-colour='black']::after,
:root[data-colour='blue'] button.swatch[data-set-colour='blue']::after,
:root[data-colour='green'] button.swatch[data-set-colour='green']::after,
:root[data-colour='white'] button.swatch[data-set-colour='white']::after { opacity: 1; transform: scale(1); }

/* knit texture (cable/chevron) – tinted with currentColor */
.knit {
  position: absolute; inset: 0; pointer-events: none; color: var(--deep); opacity: 0.07;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 1l7 5 7-5M0 8l7 5 7-5M14 6l7-5 7 5M14 13l7-5 7 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 1l7 5 7-5M0 8l7 5 7-5M14 6l7-5 7 5M14 13l7-5 7 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") repeat;
}

.flag-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background:
  linear-gradient(90deg, transparent 40%, #fff 40% 60%, transparent 60%),
  linear-gradient(0deg, transparent 40%, #fff 40% 60%, transparent 60%),
  linear-gradient(90deg, transparent 44%, #C8102E 44% 56%, transparent 56%),
  linear-gradient(0deg, transparent 44%, #C8102E 44% 56%, transparent 56%),
  #012169; box-shadow: 0 0 0 1.5px #fff; }

/* ---------- Announcement marquee ---------- */
.announce { position: relative; z-index: 31; height: var(--announce-h); background: var(--navy); color: #fff; overflow: hidden; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
/* One strip moves (both halves together, so they can never drift apart), by exactly half its width:
   the halves are identical, so the loop is seamless. The server repeats the messages so each half
   is wider than even a 4K screen, and sets --marquee-dur so the speed is the same whatever the length. */
.marquee { display: flex; width: max-content; height: 100%; animation: marquee var(--marquee-dur, 60s) linear infinite; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.marquee__group { display: flex; align-items: center; flex: none; margin: 0; padding: 0; }
.marquee__group li { display: flex; align-items: center; padding-inline: 22px; white-space: nowrap; }
.marquee__group li::after { content: ''; width: 5px; height: 5px; margin-left: 44px; border-radius: 1px; background: var(--red); transform: rotate(45deg) translateX(22px); }
/* pause on mouse hover only: on touch screens :hover sticks after a tap and would freeze it */
@media (hover: hover) and (pointer: fine) { .announce:hover .marquee { animation-play-state: paused; } }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: color-mix(in srgb, var(--tint) 78%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand img { width: 112px; height: auto; }
.site-nav { display: none; gap: 28px; font-size: var(--step--1); font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--ink-2); position: relative; padding-block: 6px; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__shop { display: none; }
.basket-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.basket-btn svg { width: 22px; height: 22px; }
.basket-btn:hover { transform: scale(1.06); }
.basket-btn__count { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--pill); background: var(--red); color: #fff; font-size: 12px; font-weight: 800; transform: scale(0); transition: transform 0.35s var(--ease); }
.basket-btn.has-items .basket-btn__count { transform: scale(1); }
.basket-btn.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.2); } 60% { transform: scale(0.94); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow { position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -25vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.55; filter: blur(10px); }
.hero__bg .knit { -webkit-mask-image: none; opacity: 0.05; }
.hero__inner { position: relative; display: grid; }

/* mobile: full-bleed video with content laid over the bottom */
.hero__media { position: relative; grid-area: 1 / 1; align-self: stretch; margin-inline: calc(-1 * var(--gutter)); }
/* fills the first screen, and grows with the text if the text is taller (short or landscape phones) */
.hero__card { position: relative; height: 100%; min-height: min(calc(100svh - var(--header-h) - var(--announce-h)), 920px); overflow: hidden; background: var(--deep); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s var(--ease); }
.hero__video.is-active { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 26, 0.3) 0%, transparent 16%, transparent 26%, rgba(11, 11, 26, 0.5) 42%, rgba(11, 11, 26, 0.82) 62%, rgba(11, 11, 26, 0.94) 100%); }
.hero__tag { position: absolute; top: 16px; left: var(--gutter); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: var(--step--1); font-weight: 700; box-shadow: var(--shadow-sm); }
.hero__tag-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--deep); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.hero__tag-sep { opacity: 0.4; }
.hero__motion { position: absolute; top: 12px; right: var(--gutter); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(11, 11, 26, 0.45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__motion svg { width: 16px; height: 16px; }

.hero__content { grid-area: 1 / 1; align-self: end; position: relative; z-index: 2; padding-top: 72px; padding-bottom: 28px; color: #fff; text-shadow: 0 1px 14px rgba(11, 11, 26, 0.45); }
.hero__content .btn, .hero__content .pill { text-shadow: none; }
.hero__title { display: grid; gap: 12px; }
.hero__eyebrow { color: rgba(255, 255, 255, 0.9); font-size: 0.75rem; }
.hero__display { font-size: var(--step-5); line-height: 0.96; letter-spacing: -0.025em; }
.hero__display .w { display: inline-block; white-space: pre; }
.hero__display .w > span { display: inline-block; }
.js .hero__display .w > span { transform: translateY(105%); opacity: 0; animation: word-in 0.9s var(--ease) forwards; animation-delay: calc(0.15s + var(--i) * 0.08s); }
.hero__display .w { overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }
@keyframes word-in { to { transform: none; opacity: 1; } }
.hero__sub { margin-top: 14px; font-size: var(--step-0); line-height: 1.5; color: rgba(255, 255, 255, 0.88); max-width: 44ch; }
.hero__picker { margin-top: 20px; }
.hero__picker-label { font-size: var(--step--1); color: rgba(255, 255, 255, 0.85); margin-bottom: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatches--lg .swatch { width: 44px; height: 44px; }
.hero .swatches--lg button.swatch::after { box-shadow: 0 0 0 2px #fff; }
.hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.hero__price { display: flex; align-items: center; gap: 10px; }
.hero__buy .btn { flex: 1 1 220px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: var(--step--1); font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.hero__trust li { display: flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 18px; height: 18px; --paper: transparent; }

/* ---------- Shop ---------- */
.shop { position: relative; }
.shop__grid { display: grid; gap: 28px; }
.gallery { min-width: 0; }
.gallery__stage { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 50% 38%, rgba(255, 255, 255, 0.75), transparent 70%), var(--stage);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.gallery__stage .knit { opacity: 0.06; }
.gallery__track { position: relative; display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -4px; }
.gallery__slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide.is-cutout img { object-fit: contain; padding: 7%; filter: drop-shadow(0 26px 26px var(--glow)); transform: translate(calc(var(--ry, 0deg) * -1.2px), calc(var(--rx, 0deg) * 1.2px)); transition: transform 0.6s var(--ease); }
.gallery__slide.is-photo img { object-position: 50% 22%; }
.gallery__badge { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 7px 12px; border-radius: var(--pill); background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 8px 18px -8px rgba(232, 23, 74, 0.8); }
.gallery__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); color: var(--ink); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity 0.25s, transform 0.3s var(--ease); }
.gallery__arrow svg { width: 20px; height: 20px; }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--prev svg { transform: scaleX(-1); }
.gallery__arrow--next { right: 14px; }
.gallery__stage:hover .gallery__arrow, .gallery__arrow:focus-visible { opacity: 1; }
.gallery__arrow:hover { transform: scale(1.08); }
.gallery__arrow:disabled { opacity: 0 !important; pointer-events: none; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.gallery__thumb { position: relative; flex: 0 0 64px; height: 64px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--stage); opacity: 0.62; transition: opacity 0.2s, transform 0.3s var(--ease); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-cutout img { object-fit: contain; padding: 6px; }
.gallery__thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--ink); opacity: 0; transition: opacity 0.2s; }
.gallery__thumb[aria-current='true'] { opacity: 1; }
.gallery__thumb[aria-current='true']::after { opacity: 1; }
.gallery__thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery__dots { display: none; }

.buy { min-width: 0; }
.buy__title { font-size: var(--step-4); margin-top: 8px; }
.buy__price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.opt { position: relative; margin-top: 26px; }
.opt__legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.opt__legend strong { color: var(--ink); font-weight: 700; }
.opt__aside { position: absolute; top: -13px; right: 0; }
.opt > .swatches, .opt > .sizes { clear: both; }
.swatch-radio { position: relative; display: grid; justify-items: center; gap: 8px; width: 74px; cursor: pointer; text-align: center; }
.swatch-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-radio .swatch { width: 42px; height: 42px; transition: transform 0.35s var(--ease); }
.swatch-radio:hover .swatch { transform: scale(1.06); }
.swatch-radio input:checked + .swatch::after { opacity: 1; transform: scale(1); }
.swatch-radio input:focus-visible + .swatch { outline: 3px solid var(--red); outline-offset: 7px; }
.swatch-radio__name { font-size: 0.75rem; font-weight: 600; line-height: 1.2; color: var(--ink-2); }
.swatch-radio input:checked ~ .swatch-radio__name { color: var(--ink); }

.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size span { display: grid; place-items: center; height: 54px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.3s var(--ease); }
.size:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.size input:checked + span { background: var(--ink); color: #fff; box-shadow: none; transform: translateY(-2px); }
.size input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
.size input:disabled + span { color: var(--ink-3); background: transparent; cursor: not-allowed; background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--line-2) 50%, transparent calc(50% + 1px)); }
.size input:disabled + span::after { content: 'Sold out'; position: absolute; bottom: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sizes.shake { animation: shake 0.5s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.buy__fit { margin-top: 12px; font-size: var(--step--1); color: var(--ink-2); min-height: 1.5em; }
.buy__fit strong { color: var(--ink); }

.buy__row { display: flex; gap: 10px; margin-top: 24px; }
.qty { display: flex; align-items: center; flex: none; height: 56px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { display: grid; place-items: center; width: 42px; height: 100%; border: 0; background: none; border-radius: var(--pill); }
.qty button svg { width: 18px; height: 18px; }
.qty button:hover { background: rgba(11, 11, 26, 0.05); }
.qty input { width: 30px; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm input { width: 24px; font-size: var(--step--1); }
.buy__row .btn { flex: 1 1 auto; width: auto; min-width: 0; padding-inline: 18px; }
.btn__price { padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, 0.35); font-variant-numeric: tabular-nums; }
.buy__error { margin-top: 10px; font-size: var(--step--1); font-weight: 600; color: #B00D35; }

.buy__perks { display: grid; gap: 12px; margin-top: 24px; padding: 18px; border-radius: var(--r); background: color-mix(in srgb, var(--paper) 65%, transparent); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step--1); color: var(--ink-2); }
.buy__perks li { display: flex; gap: 12px; align-items: flex-start; }
.buy__perks svg { width: 22px; height: 22px; flex: none; color: var(--accent); --paper: transparent; }
.buy__perks strong { color: var(--ink); }
.buy__bullets { display: grid; gap: 10px; margin-top: 24px; font-size: var(--step--1); color: var(--ink-2); }
.buy__bullets li { position: relative; padding-left: 22px; }
.buy__bullets li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.buy__bullets strong { color: var(--ink); }

/* accordion */
.accordion { margin-top: 24px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px 18px 0; font-weight: 700; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before, .accordion summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0deg); }
.accordion summary:hover { color: var(--accent); }
.accordion__body { padding: 0 0 20px; color: var(--ink-2); font-size: var(--step--1); line-height: 1.65; }
.accordion__body p + p { margin-top: 10px; }
.accordion details[open] .accordion__body { animation: acc-in 0.45s var(--ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; }
.spec dt { font-weight: 600; color: var(--ink); }
.spec dd { margin: 0; }

/* ---------- Story (details) ---------- */
.section--dark { background: var(--navy); color: #fff; }
.section--dark .section-title { color: #fff; }
.story { position: relative; }
.story__grid { display: grid; gap: 0; }
.story__visual { position: sticky; top: calc(var(--header-h) + 8px); z-index: 1; padding-block: 8px 16px; background: var(--navy); }
.story__frame { position: relative; width: min(80vw, 44svh); aspect-ratio: 1; margin-inline: auto; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: radial-gradient(70% 60% at 50% 40%, rgba(255, 255, 255, 0.85), transparent 72%), var(--stage); }
.story__frame .knit { opacity: 0.07; }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.story__img.is-cutout { object-fit: contain; padding: 8%; filter: drop-shadow(0 24px 24px var(--glow)); }
.story__img.is-active { opacity: 1; transform: none; }
.story__dots { position: absolute; left: 50%; bottom: 14px; z-index: 2; display: flex; gap: 6px; transform: translateX(-50%); padding: 6px 8px; border-radius: var(--pill); background: rgba(11, 11, 26, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.story__dots li { width: 7px; height: 7px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.5); transition: width 0.4s var(--ease), background 0.3s; }
.story__dots li.is-active { width: 22px; background: #fff; }
.story__steps { position: relative; padding-bottom: 20vh; }
/* inactive steps are dimmed by colour (not opacity) so text keeps AA contrast on navy */
.story__step { position: relative; display: grid; align-content: start; min-height: 52vh; padding: 20px 0 32px 0; }
.story__num { font-family: var(--font-display); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; color: #FF5C7F; }
.story__icon { width: 30px; height: 30px; margin-top: 14px; color: rgba(255, 255, 255, 0.55); transition: color 0.5s var(--ease), transform 0.5s var(--ease); }
.story__step h3 { margin-top: 12px; font-size: var(--step-3); color: rgba(255, 255, 255, 0.58); transition: color 0.5s var(--ease); }
.story__step p { margin-top: 12px; max-width: 40ch; font-size: var(--step-1); color: rgba(255, 255, 255, 0.62); line-height: 1.5; transition: color 0.5s var(--ease); }
.story__step.is-active h3 { color: #fff; }
.story__step.is-active p { color: rgba(255, 255, 255, 0.85); }
.story__step.is-active .story__icon { color: #fff; transform: scale(1.1); }

/* ---------- Lookbook ---------- */
.looks { overflow: clip; }
.looks__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-controls { display: none; gap: 10px; margin-bottom: clamp(28px, 4vw, 56px); }
.looks__rail { --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 4px var(--pad) 24px; scrollbar-width: none; cursor: grab; }
.looks__rail::-webkit-scrollbar { display: none; }
.looks__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.looks__rail.is-dragging .look { pointer-events: none; }
.look { position: relative; flex: 0 0 74vw; max-width: 340px; aspect-ratio: 4 / 5; margin: 0; border-radius: 24px; overflow: hidden; scroll-snap-align: start; background: var(--sw); box-shadow: var(--shadow); }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.look:hover img { transform: scale(1.05); }
.look figcaption { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 8px; padding: 60px 14px 14px; background: linear-gradient(transparent, rgba(11, 11, 26, 0.75)); color: #fff; font-weight: 700; font-size: var(--step--1); }
.look__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px #fff; }
.look__shop { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--pill); background: #fff; color: var(--ink); font-size: 0.8125rem; font-weight: 700; transition: transform 0.3s var(--ease); }
.look__shop svg { width: 16px; height: 16px; }
.look__shop:hover { transform: scale(1.05); }

/* ---------- Rundown video ---------- */
.rundown { background: var(--paper); }
.rundown__grid { display: grid; gap: 40px; align-items: center; }
.video-card { position: relative; width: min(100%, 380px); aspect-ratio: 9 / 16; margin-inline: auto; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); box-shadow: 0 40px 80px -30px var(--glow), var(--shadow); }
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 28px; border: 0; background: linear-gradient(transparent 45%, rgba(11, 11, 26, 0.7)); color: #fff; text-align: center; transition: opacity 0.35s; }
.video-card__play-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 10px rgba(232, 23, 74, 0.25); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.video-card__play-icon svg { width: 30px; height: 30px; margin-left: 4px; }
.video-card__play:hover .video-card__play-icon { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(232, 23, 74, 0.2); }
.video-card__label { font-weight: 700; font-size: var(--step-1); }
.video-card__label small { display: block; margin-top: 2px; font-size: var(--step--1); font-weight: 500; opacity: 0.8; }
.video-card.is-playing .video-card__play { opacity: 0; pointer-events: none; }
.ticks { display: grid; gap: 12px; margin: 26px 0 30px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ticks svg { width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 50%; background: var(--deep); color: var(--deep-ink); }

/* ---------- Colours ---------- */
.colours__hero { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--tint-2); }
.colours__hero img { width: 100%; height: 100%; object-fit: cover; }
.colour-cards { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -32px; padding-inline: 8px; }
.colour-card { position: relative; display: grid; justify-items: start; gap: 6px; padding: 14px 14px 16px; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: var(--shadow); transition: transform 0.45s var(--ease), background-color 0.35s, color 0.35s, box-shadow 0.45s var(--ease); }
.colour-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: var(--tint); transition: transform 0.6s var(--ease); }
.colour-card__name { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); }
.colour-card__name .swatch { box-shadow: 0 0 0 1.5px currentColor; }
.colour-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); font-weight: 600; opacity: 0.75; }
.colour-card__cta svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.colour-card:hover { background: var(--sw); color: var(--sw-ink); transform: translateY(-6px); box-shadow: 0 24px 40px -18px var(--sw); }
.colour-card:hover img { transform: scale(1.04) rotate(-2deg); background: rgba(255, 255, 255, 0.9); }
.colour-card:hover .colour-card__cta svg { transform: translateX(4px); }
.colour-card[aria-current='true'] { box-shadow: 0 0 0 3px var(--ink), var(--shadow); }

/* ---------- Fit ---------- */
.fit__grid { display: grid; gap: 24px; }
.fit__diagram { margin: 0; padding: clamp(16px, 3vw, 32px); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.fit__diagram svg { width: 100%; height: auto; overflow: visible; }
.sketch__body, .sketch__collar { fill: var(--tint); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; transition: fill 0.8s; }
.sketch__collar { fill: var(--tint-2); }
.sketch__line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; fill: none; }
.sketch__pull { fill: var(--ink); }
.sketch__rib { stroke: var(--ink-3); stroke-width: 1.2; fill: none; }
.sketch__knit { stroke: var(--ink-3); stroke-width: 1.2; fill: none; opacity: 0.4; stroke-linecap: round; stroke-linejoin: round; }
.sketch__logo { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sketch__patch { fill: #012169; stroke: #C8102E; stroke-width: 2; }
.measure path { stroke: var(--red); stroke-width: 2; fill: none; stroke-linecap: round; }
.measure .measure__guide { stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.7; }
.measure text { font-family: var(--font-body); font-size: 15px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.measure__k { font-weight: 600; fill: var(--ink-2); }
.measure__v { fill: var(--red); }
.measure { transition: opacity 0.3s; }
.fit__diagram.is-focus .measure { opacity: 0.18; }
.fit__diagram.is-focus .measure.is-on { opacity: 1; }

.fit__panel { min-width: 0; }
.fit__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-width: 52px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--pill); background: none; font-weight: 700; transition: background 0.25s, color 0.25s; }
.seg button[aria-checked='true'] { background: var(--ink); color: #fff; }
.seg--sm button { min-width: 44px; }
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.size-table th, .size-table td { padding: 14px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table thead th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.size-table tbody th { font-family: var(--font-display); font-size: var(--step-0); }
.size-table tbody tr:last-child > * { border-bottom: 0; }
.size-table tr { transition: background 0.3s; }
.size-table tbody tr.is-active { background: var(--tint-2); }
.size-table tbody tr.is-active td { font-weight: 700; }
.size-table [data-col]:hover { color: var(--red); cursor: default; }
.fit__note { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); }
.matcher { margin-top: 22px; padding: 20px; border-radius: var(--r); background: var(--tint-2); }
.matcher__label { display: block; font-size: var(--step--1); color: var(--ink-2); }
.matcher__label strong { display: block; color: var(--ink); font-size: var(--step-0); margin-bottom: 2px; }
.matcher__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.matcher__field { display: flex; align-items: center; flex: 1 1 140px; height: 48px; padding: 0 16px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.matcher__field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.matcher__field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-weight: 700; }
.matcher__field span { color: var(--ink-3); font-weight: 600; }
.matcher__result { margin-top: 12px; font-size: var(--step--1); min-height: 1.4em; }
.matcher__result:empty { margin-top: 0; min-height: 0; }
.matcher__result .btn { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; gap: 8px; }
.accordion--faq { margin-top: 0; }
.accordion--faq summary { font-size: var(--step-1); font-family: var(--font-display); font-weight: 700; padding-block: 22px; }
.accordion--faq .accordion__body { font-size: var(--step-0); }
.accordion__body a { color: var(--ink); font-weight: 600; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: clip; background: var(--deep); color: var(--deep-ink); text-align: center; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 120%, rgba(255, 255, 255, 0.18), transparent 70%); pointer-events: none; }
.final__inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.final__swatches { display: flex; }
.final__swatches span { width: 44px; height: 44px; margin-inline: -4px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 3px var(--deep-ink); animation: float 4s ease-in-out infinite; }
.final__swatches span:nth-child(2) { animation-delay: -1s; }
.final__swatches span:nth-child(3) { animation-delay: -2s; }
.final__swatches span:nth-child(4) { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-6px); } }
.final__title { font-size: var(--step-5); max-width: 13ch; line-height: 0.98; }
.final__sub { font-size: var(--step-1); opacity: 0.85; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: clip; background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 64px 0 0; font-size: var(--step--1); }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 32px 24px; }
.site-footer__grid > * { flex: 1 1 130px; }
.site-footer__brand { flex: 1 1 100% !important; display: grid; align-content: start; gap: 12px; }
.legal-line { flex-basis: 100%; margin-top: 4px; font-size: 0.75rem; opacity: 0.8; }
.page-footer .legal-line { margin-top: 6px; }
.site-footer__brand img { width: 110px; }
.site-footer__col { display: grid; align-content: start; gap: 0; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 40px; justify-self: start; }
.site-footer__col h2 { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer__giant { font-family: var(--font-display); font-weight: 800; font-size: 34vw; line-height: 0.75; text-align: center; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14); margin-bottom: -0.06em; user-select: none; pointer-events: none; padding-bottom: env(safe-area-inset-bottom); }

/* ---------- Sticky mobile buy bar ---------- */
.buybar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: var(--pill); background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 18px 40px -12px rgba(11, 11, 26, 0.35), inset 0 0 0 1px var(--line); transform: translateY(140%); transition: transform 0.5s var(--ease); }
.buybar.is-visible { transform: none; }
.buybar__swatch { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--deep); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
:root[data-colour='white'] .buybar__swatch { background: #F2EEE6; }
.buybar__text { flex: 1; min-width: 0; font-size: var(--step--1); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar .btn { min-height: 46px; padding-inline: 18px; }

/* ---------- Dialogs ---------- */
dialog::backdrop, .scrim { background: rgba(11, 11, 26, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.scrim { position: fixed; inset: 0; z-index: 49; opacity: 0; transition: opacity 0.3s; }
.scrim.is-on { opacity: 1; }
.is-locked { overflow: hidden; }
.drawer { z-index: 50; }
dialog[open]::backdrop { animation: fade-in 0.3s ease; }
@keyframes fade-in { from { opacity: 0; } }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; margin: 0; }
.drawer__panel { display: flex; flex-direction: column; height: 100%; background: var(--tint); box-shadow: -20px 0 60px rgba(11, 11, 26, 0.25); }
.drawer[open] .drawer__panel { animation: drawer-in 0.5s var(--ease); }
.drawer.is-closing .drawer__panel { animation: drawer-out 0.3s var(--ease-io) forwards; }
.drawer.is-closing::backdrop { opacity: 0; transition: opacity 0.3s; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; }
.drawer__head h2 { font-size: var(--step-2); }
.drawer__count { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--ink-3); }
.drawer__nudge { margin: 0 20px 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step--1); }
.drawer__nudge strong { color: var(--red); }
.drawer__nudge .bar { height: 6px; margin-top: 10px; border-radius: var(--pill); background: var(--tint-2); overflow: hidden; }
.drawer__nudge .bar span { display: block; height: 100%; width: var(--p, 50%); border-radius: inherit; background: var(--red); transition: width 0.6s var(--ease); }
.drawer__nudge.is-done { background: #0E7A4F; color: #fff; box-shadow: none; }
.drawer__note { margin: 0 20px 8px; padding: 12px 14px; border-radius: var(--r-sm); background: #FFF4D6; box-shadow: inset 0 0 0 1px #E9D79A; font-size: var(--step--1); }
.drawer__lines { flex: 1; overflow-y: auto; padding: 4px 20px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: line-in 0.5s var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateX(20px); } }
.line__img { width: 76px; height: 76px; border-radius: 14px; background: var(--stage); object-fit: contain; padding: 6px; }
.line__name { font-weight: 700; line-height: 1.25; }
.line__meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: var(--step--1); color: var(--ink-2); }
.line__meta .swatch { width: 12px; height: 12px; }
.line__controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.line__remove { padding: 4px 0; border: 0; background: none; font-size: 0.8125rem; color: var(--ink-3); text-decoration: underline; }
.line__remove:hover { color: var(--red); }
.line__price { align-self: start; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; color: var(--ink-2); }
.drawer.has-items .drawer__empty { display: none; }
.drawer:not(.has-items) .drawer__foot, .drawer:not(.has-items) .drawer__lines { display: none; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.totals { display: grid; gap: 6px; margin: 0 0 16px; font-size: var(--step--1); }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.totals__save dd, .totals__save dt { color: #0E7A4F; font-weight: 700; }
.totals__total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--step-1); }
.totals__total dt { color: var(--ink); font-weight: 700; }
.totals__total dd { font-weight: 800; }
.checkout__buttons { min-height: 52px; }
.checkout__buttons.is-loading { border-radius: var(--pill); background: linear-gradient(90deg, var(--tint) 25%, var(--tint-2) 50%, var(--tint) 75%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.checkout__msg { font-size: var(--step--1); color: var(--ink-2); }
.checkout__msg:not(:empty) { margin-top: 10px; }
.checkout__msg.is-error { color: #B00D35; font-weight: 600; }
.checkout__notice { padding: 14px; border-radius: var(--r-sm); background: var(--tint); font-size: var(--step--1); color: var(--ink-2); }
.drawer__small { display: flex; gap: 8px; margin-top: 12px; font-size: 0.75rem; color: var(--ink-3); }
.drawer__small svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.modal { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; border-radius: var(--r-lg); }
.modal__panel { padding: 22px; background: var(--tint); border-radius: inherit; max-height: calc(100dvh - 24px); overflow-y: auto; }
.modal[open] .modal__panel { animation: modal-in 0.45s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal__head h2 { font-size: var(--step-2); }
.modal--success { width: min(460px, calc(100vw - 24px)); text-align: center; }
.modal--success .modal__panel { display: grid; justify-items: center; gap: 12px; padding: 32px 24px 26px; }
.modal--success h2 { font-size: var(--step-3); }
.success__tick { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #0E7A4F; color: #fff; animation: pop 0.6s var(--ease) 0.1s both; }
.success__tick svg { width: 36px; height: 36px; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.12); } }
.success__items { display: grid; gap: 4px; font-size: var(--step--1); font-weight: 600; }
.success__meta { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 8px; }

/* ---------- Toast & fly-to-basket ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--pill); background: var(--navy); color: #fff; font-size: var(--step--1); font-weight: 600; box-shadow: var(--shadow); transform: translate(-50%, calc(100% + 48px)); visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s 0.5s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 0.5s var(--ease); }
.fly { position: fixed; z-index: 70; width: 64px; height: 64px; border-radius: 50%; background: var(--stage) center / 80% no-repeat; box-shadow: var(--shadow); pointer-events: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- View transition: colour flood ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(root) { animation-duration: 0.75s; }

/* ---------- Simple pages (legal, 404) ---------- */
.page-footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: var(--step--1); }
.page-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.page-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.page-footer a:hover { color: #fff; text-decoration: underline; }
.prose { max-width: 740px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.prose h1 { font-size: var(--step-4); }
.prose .updated { margin-top: 12px; color: var(--ink-3); font-size: var(--step--1); }
.prose .intro { margin-top: 20px; font-size: var(--step-1); color: var(--ink-2); }
.prose h2 { font-size: var(--step-2); margin-top: 48px; }
.prose h3 { font-size: var(--step-1); margin-top: 28px; }
.prose p, .prose ul, .prose ol, .prose dl { margin-top: 14px; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.prose { overflow-wrap: break-word; }
.prose strong { color: var(--ink); }
.prose .card { margin-top: 20px; padding: 22px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.prose .card p:first-child { margin-top: 0; }
.prose .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.prose .toc a { padding: 8px 14px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: var(--step--1); }
.prose .toc a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.form-lines { display: grid; gap: 10px; margin-top: 14px; }
.form-lines span { display: block; border-bottom: 1px dashed var(--line-2); padding-bottom: 6px; }
mark.todo { background: #FFE58A; color: var(--ink); padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.notfound { min-height: calc(100svh - var(--header-h) - 80px); display: grid; place-content: center; justify-items: center; gap: 18px; padding-block: 64px; text-align: center; }
.notfound h1 { font-size: var(--step-5); }
.notfound p { max-width: 36ch; color: var(--ink-2); font-size: var(--step-1); }

/* ===================================================================
   Breakpoints
   =================================================================== */
@media (min-width: 640px) {
  .colour-cards { grid-template-columns: repeat(4, 1fr); padding-inline: 24px; margin-top: -56px; }
  .site-footer__brand { flex: 2 1 220px !important; }
  .site-footer__giant { font-size: 30vw; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { width: 124px; }
  .site-nav { display: flex; }
  .site-header__shop { display: inline-flex; }
  .section { padding-block: clamp(80px, 10vw, 140px); }

  /* hero: split layout, video in a tall card */
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 5vw, 80px); min-height: calc(100svh - var(--header-h) - var(--announce-h)); padding-block: 40px 56px; }
  .hero__media { grid-area: 1 / 2; margin: 0; width: 100%; display: grid; justify-items: center; }
  .hero__media { align-self: center; }
  .hero__content { padding-top: 0; }
  .hero__card { width: min(100%, 440px); height: auto; min-height: 0; max-height: none; aspect-ratio: 9 / 16; max-height: min(78svh, 780px); border-radius: 32px; box-shadow: 0 50px 100px -30px var(--glow), 0 30px 60px -30px rgba(11, 11, 26, 0.35); transform: rotate(1.5deg); transition: transform 0.8s var(--ease); }
  .hero__card:hover { transform: rotate(0deg) scale(1.01); }
  .hero__shade { background: linear-gradient(180deg, rgba(11, 11, 26, 0.18), transparent 25%); }
  .hero__tag { top: auto; bottom: 18px; left: 18px; }
  .hero__motion { top: auto; bottom: 18px; right: 18px; }
  .hero__content { grid-area: 1 / 1; align-self: center; padding: 0; color: var(--ink); text-shadow: none; }
  .hero__eyebrow { color: var(--accent); font-size: var(--step--1); }
  .hero__sub { color: var(--ink-2); font-size: var(--step-1); margin-top: 20px; }
  .hero__picker { margin-top: 28px; }
  .hero__picker-label { color: var(--ink-2); }
  .hero .swatches--lg button.swatch::after { box-shadow: 0 0 0 2px var(--ink); }
  .hero__buy { margin-top: 28px; }
  .hero__buy .btn { flex: none; }
  .hero__trust { color: var(--ink-2); margin-top: 26px; }
  .hero__trust svg { color: var(--accent); }
  .hero__glow { opacity: 0.6; }

  .shop__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 20px); }
  .gallery__thumb { flex-basis: 76px; height: 76px; }

  .story__grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
  .story__visual { top: calc(var(--header-h) + 8vh); align-self: start; padding: 0; background: none; }
  .story__frame { width: 100%; }
  .story__step { min-height: 72vh; padding: 0; align-content: center; }

  .rail-controls { display: flex; }
  .look { flex-basis: 340px; }
  .rundown__grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); }

  .fit__grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
  .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); }

  .buybar { display: none; }
  .modal__panel { padding: 32px; }
}

@media (min-width: 1280px) {
  .hero__card { width: 460px; }
}

@media (hover: none) {
  .gallery__arrow { display: none; }
}

/* very small or short phone screens (e.g. iPhone SE 1st gen) and phones held sideways */
@media (max-width: 899px) and (max-height: 620px) {
  .hero__sub { display: none; }
  .hero__display { font-size: clamp(2.3rem, 1.7rem + 3.6vw, 3rem); }
  .hero__picker, .hero__buy { margin-top: 14px; }
  .hero__trust { margin-top: 12px; }
}
@media (max-width: 359px) {
  .btn__price { display: none; }
  .buy__row .btn { padding-inline: 14px; }
}
@media (max-height: 620px) {
  /* basket: let the whole panel scroll so totals and PayPal stay reachable */
  .drawer__panel { overflow-y: auto; }
  .drawer__lines, .drawer__empty { flex: none; overflow: visible; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  /* reduced motion: a still row of the messages, centred when it fits, swipeable when it doesn't */
  .marquee { animation: none; margin-inline: auto; }
  .marquee__group[aria-hidden='true'], .marquee li[aria-hidden='true'] { display: none; }
  .announce { overflow-x: auto; scrollbar-width: none; }
  .announce::-webkit-scrollbar { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__display .w > span { opacity: 1; transform: none; animation: none; }
  .gallery__stage, .hero__card { transform: none !important; }
}

/* =====================================================================
   Multi-page site: brand pages (home, shop, about, help), shared menu,
   product cards and the standard product page.
   ===================================================================== */

/* ---------- Page themes ---------- */
/* brand pages: neutral AGEL colours (navy, white, red) */
:root[data-colour='brand'] { --tint: #F5F5F7; --tint-2: #ECECF1; --stage: #E7E7ED; --deep: #0B0B1A; --accent: #C4103C; --glow-c: #0B0B1A; --deep-ink: #FFFFFF; }
/* standard product pages: tinted by the chosen colour (--pc, set by the server and product.js) */
:root[data-colour='product'] {
  --tint: color-mix(in srgb, var(--pc, #0B0B1A) 7%, #F7F7F9);
  --tint-2: color-mix(in srgb, var(--pc, #0B0B1A) 12%, #F1F1F4);
  --stage: color-mix(in srgb, var(--pc, #0B0B1A) 16%, #ECECF0);
  --deep: var(--pc, #0B0B1A); --accent: var(--pc, #0B0B1A); --glow-c: var(--pc, #0B0B1A); --deep-ink: #FFFFFF;
}
:root[data-colour='product'][data-light] {
  --stage: color-mix(in srgb, var(--pc) 60%, #CFC9BD);
  --deep: color-mix(in srgb, var(--pc) 30%, #3B3426); --accent: color-mix(in srgb, var(--pc) 25%, #4A4030); --glow-c: #8A7A5C; --deep-ink: #0B0B1A;
}

/* ---------- Header: menu button + current page ---------- */
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.menu-btn:hover { background: rgba(11, 11, 26, 0.06); }
.menu-btn__bars { display: grid; gap: 6px; width: 20px; }
.menu-btn__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.site-header.is-menu-open .menu-btn__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.site-header.is-menu-open .menu-btn__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }
.site-header .brand { margin-right: auto; }
.site-nav a[aria-current='page'] { color: var(--ink); }
.site-nav a[aria-current='page']::after { transform: scaleX(1); }
.menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(11, 11, 26, 0.35); opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease); }
.menu.is-open { opacity: 1; transform: none; }
.menu__inner { padding-block: 8px 28px; }
.menu__main a { display: flex; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; text-decoration: none; }
.menu__main a[aria-current='page'] { color: var(--red); }
.menu__label { margin-top: 24px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.menu__products { display: grid; gap: 4px; margin-top: 8px; }
.menu__products a { display: flex; align-items: center; gap: 14px; min-height: 64px; font-weight: 700; text-decoration: none; }
.menu__products small { display: block; font-weight: 500; color: var(--ink-3); }
.menu__thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--stage); }
.menu__thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu__thumb.is-cutout img { object-fit: contain; padding: 4px; }
.menu__small { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 20px; font-size: var(--step--1); }
.menu__small a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
html.is-menu-locked { overflow: hidden; }

/* ---------- Atoms ---------- */
.btn--glass { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow > span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.link-arrow svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; max-width: none; }
.section-head--row > div { max-width: 720px; }
.section--flush { padding-top: 0; }
.page-title { font-size: var(--step-5); margin-top: 10px; max-width: 15ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: var(--step--1); color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { display: inline-flex; min-height: 24px; align-items: center; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs.container { padding-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.chips a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips svg { width: 18px; height: 18px; color: var(--red); --paper: transparent; }
.home-hero__title .w, .page-title .w { display: inline-block; white-space: pre; overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.home-hero__title .w > span, .page-title .w > span { display: inline-block; }
.js .home-hero__title .w > span, .js .page-title .w > span { transform: translateY(105%); opacity: 0; animation: word-in 0.9s var(--ease) forwards; animation-delay: calc(0.2s + var(--i) * 0.08s); }

/* ---------- Homepage hero ---------- */
.home-hero { position: relative; isolation: isolate; overflow: clip; background: var(--navy); color: #fff; }
.home-hero__media { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; }
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: translateY(var(--py, 0px)) scale(1.04); animation: hero-in 1.6s var(--ease) backwards; }
@keyframes hero-in { from { transform: scale(1.14); opacity: 0.3; } }
.home-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 11, 26, 0.9)); }
.home-hero__content { position: relative; margin-top: -56px; padding-block: 0 44px; }
.home-hero__eyebrow { color: #fff; }
.home-hero__title { margin-top: 12px; font-size: var(--step-5); max-width: 13ch; }
.home-hero__sub { margin-top: 16px; max-width: 46ch; font-size: var(--step-1); color: rgba(255, 255, 255, 0.84); }
.home-hero__sub strong { color: #fff; }
.home-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.home-hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: var(--step--1); font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.home-hero__trust li { display: flex; align-items: center; gap: 6px; }
.home-hero__trust svg { width: 18px; height: 18px; --paper: transparent; }

/* ---------- Product cards ---------- */
.range { background-color: color-mix(in srgb, var(--rc, #FFFFFF) 9%, #FFFFFF); transition: background-color 0.7s var(--ease); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.tile { position: relative; min-width: 0; }
.tile__link { display: block; color: inherit; text-decoration: none; }
.tile__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 42%, rgba(255, 255, 255, 0.75), transparent 72%), color-mix(in srgb, var(--c) 16%, #ECECF0); }
.tile__img, .tile__hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.tile__media.is-cutout .tile__img { object-fit: contain; padding: 9%; filter: drop-shadow(0 18px 20px color-mix(in srgb, var(--c) 35%, transparent)); }
.tile__hover { opacity: 0; object-position: 50% 22%; transform: scale(1.05); }
.tile__badge, .tile__deal { position: absolute; top: 10px; z-index: 2; padding: 5px 10px; border-radius: var(--pill); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; }
.tile__badge { left: 10px; background: var(--paper); color: var(--ink); text-transform: uppercase; }
.tile__badge--out { background: var(--ink); color: #fff; }
.tile__deal { right: 10px; background: var(--red); color: #fff; }
.tile__body { display: grid; gap: 3px; padding: 12px 2px 0; }
.tile__name { font-size: var(--step-1); }
.tile__meta { display: flex; align-items: center; gap: 7px; font-size: var(--step--1); color: var(--ink-2); }
.tile__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 11, 26, 0.2); }
.tile__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.tile.is-soldout .tile__img { opacity: 0.5; }
.tile__media.is-placeholder .tile__img { padding: 30%; opacity: 0.22; filter: none; }
.tile__link:focus-visible { outline: none; }
.tile__link:focus-visible .tile__media { outline: 3px solid var(--red); outline-offset: 3px; }
/* quick add sits over the bottom of the photo */
.tile__quick { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; padding: 10px; pointer-events: none; }
.tile__quick > * { pointer-events: auto; }
.tile__quick-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--pill); background: var(--paper); color: var(--ink); font-size: var(--step--1); font-weight: 700; box-shadow: var(--shadow-sm); transition: opacity 0.3s, transform 0.35s var(--ease), background 0.2s; }
.tile__quick-btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.tile__quick.is-open .tile__quick-btn { background: var(--ink); color: #fff; }
.tile__quick.is-open .tile__quick-btn svg { transform: rotate(45deg); }
.tile__sizes { order: -1; align-self: stretch; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow); animation: quick-in 0.3s var(--ease); }
@keyframes quick-in { from { opacity: 0; transform: translateY(8px); } }
.tile__sizes button { flex: 1 1 40px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 12px; background: var(--tint-2); font-size: var(--step--1); font-weight: 700; transition: background 0.2s, color 0.2s; }
.tile__sizes button:hover { background: var(--ink); color: #fff; }
.tile__sizes button:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; background: transparent; color: var(--ink); }
@media (max-width: 639px) {
  .tile__quick-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tile__quick-btn { width: 44px; padding: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover .has-hover .tile__hover { opacity: 1; transform: none; }
  .tile:hover .has-hover .tile__img { opacity: 0; }
  .tile:hover .tile__media:not(.has-hover) .tile__img { transform: scale(1.04); }
  .tile__quick-btn { opacity: 0; transform: translateY(6px); }
  .tile:hover .tile__quick-btn, .tile__quick-btn:focus-visible, .tile__quick.is-open .tile__quick-btn { opacity: 1; transform: none; }
}

/* ---------- Why AGEL ---------- */
.why { background: var(--paper); }
.why__grid { display: grid; gap: 32px; align-items: center; }
.why__media { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__stamp { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--navy); box-shadow: 0 10px 30px -10px rgba(11, 11, 26, 0.6); }
.why__stamp img { width: 36px; height: 36px; }
.why__text .link-arrow { margin-top: 22px; }

/* ---------- Lookbook grid ---------- */
.lookgrid__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lookgrid__item a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; }
.lookgrid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.lookgrid__item a:hover img { transform: scale(1.05); }
.lookgrid__cap { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(11, 11, 26, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: var(--step--1); font-weight: 700; line-height: 1.25; }
.lookgrid__cap svg { flex: none; width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.lookgrid__item a:hover .lookgrid__cap svg { transform: translateX(3px); }

/* ---------- Promises ---------- */
.promises { padding-block: clamp(48px, 6vw, 84px); background: var(--tint); }
.promises__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.promise svg { width: 30px; height: 30px; color: var(--red); --paper: transparent; }
.promise h3 { margin-top: 12px; font-size: var(--step-1); }
.promise p { margin-top: 6px; font-size: var(--step--1); color: var(--ink-2); }

/* ---------- Shop all / Help page heads ---------- */
.page-head { padding-block: clamp(24px, 5vw, 64px) clamp(28px, 4vw, 48px); }

/* ---------- About ---------- */
.about-hero { padding-block: clamp(24px, 5vw, 64px) clamp(40px, 6vw, 88px); }
.about-hero__grid { display: grid; gap: 32px; align-items: center; }
.about-hero__media { margin: 0; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.about-body { background: var(--paper); }
.about-secs { display: grid; gap: 32px; }
.about-sec { padding-top: 20px; border-top: 2px solid var(--ink); }
.about-sec__num { font-family: var(--font-display); font-size: var(--step--1); font-weight: 800; letter-spacing: 0.08em; color: var(--red); }
.about-sec h2 { margin-top: 8px; font-size: var(--step-3); }
.about-sec p { margin-top: 10px; max-width: 52ch; font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }
.about-sec a { color: var(--ink); font-weight: 600; }
.about-cta { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Help ---------- */
.help__grid { display: grid; gap: 32px; align-items: start; }
.help .accordion { margin-top: 0; }
.help__contact { padding: 24px; border-radius: var(--r-lg); background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.help__contact h2 { font-size: var(--step-2); color: #fff; }
.help__contact p { margin-top: 10px; }
.help__email { margin-top: 18px; background: #fff; color: var(--ink); overflow-wrap: anywhere; }
.help__email:hover { background: var(--tint-2); }
.help__wa { margin-top: 10px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.help__wa:hover { background: rgba(255, 255, 255, 0.08); }
.help__wa svg, .site-footer__wa svg { color: #25D366; }
.site-footer__wa { gap: 8px; }
.site-footer__wa svg { width: 18px; height: 18px; flex: none; }
.help__addr { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: var(--step--1); }
.help__addr h3 { font-family: var(--font-body); font-size: var(--step-0); color: #fff; }
.help__addr p { margin-top: 6px; }
.help__small a { color: #fff; font-weight: 600; }

/* ---------- Standard product page ---------- */
.shop--std { padding-top: 12px; }
.shop--std .sizes { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.buy__tagline { margin-top: 8px; font-size: var(--step-1); color: var(--ink-2); }
.preview-note { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #FFF4D6; color: #5C4300; font-size: var(--step--1); }
.swatch-radio.is-out .swatch { opacity: 0.45; }
.gallery__slide.is-placeholder img { padding: 28%; opacity: 0.18; filter: none; }
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart caption { margin-bottom: 8px; text-align: left; font-size: var(--step--1); color: var(--ink-3); }
.chart th, .chart td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.chart thead th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.chart tbody th { text-align: left; }
.chart tr.is-active { background: var(--paper); }
.chart tr.is-active th { color: var(--red); }
.related { background: var(--paper); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Basket lines (shared drawer) ---------- */
a.line__img { display: block; overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.line__img.is-cutout img { object-fit: contain; border-radius: 0; }
.line__out { color: #B00D35; font-weight: 600; }

/* ---------- Breakpoints for the above ---------- */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 18px; }
}
@media (min-width: 900px) {
  .menu-btn, .menu { display: none !important; }
  .site-header .brand { margin-right: 0; }
  .home-hero { display: grid; align-items: end; min-height: min(calc(100svh - var(--header-h) - var(--announce-h)), 920px); }
  .home-hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .home-hero__img { object-position: 50% 20%; }
  .home-hero__shade { background: linear-gradient(90deg, rgba(11, 11, 26, 0.78) 0%, rgba(11, 11, 26, 0.42) 32%, rgba(11, 11, 26, 0) 55%), linear-gradient(0deg, rgba(11, 11, 26, 0.75) 0%, rgba(11, 11, 26, 0.25) 38%, rgba(11, 11, 26, 0) 60%); }
  .home-hero__content { margin: 0 auto; padding-block: 120px clamp(40px, 5vw, 72px); } /* lines up with the logo */
  /* keep the words low and left, so they sit over the jumpers rather than anyone's face */
  .home-hero__title { font-size: clamp(2.6rem, 1.2rem + 3.4vw, 4.6rem); max-width: 11ch; }
  .home-hero__sub { max-width: 40ch; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
  .why__grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
  .lookgrid__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .lookgrid__item:nth-child(even) { margin-top: 56px; }
  .promises__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .about-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); }
  .about-secs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; }
  .help__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 80px); }
  .help__contact { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .home-hero__title .w > span, .js .page-title .w > span { opacity: 1; transform: none; animation: none; }
  .home-hero__img { animation: none; transform: none; }
}

/* ---------- Sale prices ---------- */
.price-was { color: var(--ink-3); font-weight: 600; }
.price-was s { text-decoration-thickness: 1.5px; }
.buy__price .price-was, .hero__price .price-was { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; }
.hero__price .price-was { color: inherit; opacity: 0.7; }
.price-now.is-sale, .price-big:has(+ .price-was) { color: #C4103C; }
.hero .price-big:has(+ .price-was) { color: inherit; }
.pill--sale { background: #C4103C; color: #fff; box-shadow: none; }
.tile__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.tile__price .price-was { font-size: var(--step--1); font-weight: 500; }
.tile__badge--sale { background: #C4103C; color: #fff; }
.menu__products small .price-was { margin-left: 6px; }
.line__was { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); text-align: right; }
@media (min-width: 900px) {
  .hero .price-big:has(+ .price-was) { color: #C4103C; }
  .hero__price .price-was { color: var(--ink-3); opacity: 1; }
}

.checkout__test { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #FFF4D6; color: #5C4300; font-size: 0.8125rem; font-weight: 600; }

/* ---------- Stock messages (real stock and real sales only: see src/stock.js) ---------- */
.stock-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--step--1); font-weight: 700; color: #7A4B00; }
.stock-note::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #E08A00; box-shadow: 0 0 0 0 rgba(224, 138, 0, 0.5); animation: stock-pulse 2s ease-out infinite; }
.stock-note[hidden] { display: none; }
@keyframes stock-pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 138, 0, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(224, 138, 0, 0); } }
.hot-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--step--1); color: var(--ink-2); }
.hot-note::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hot-note strong { color: var(--ink); }
.hot-note[hidden] { display: none; }
.size span[data-left]::after { content: attr(data-left); position: absolute; bottom: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #8A5300; }
.size input:checked + span[data-left]::after { color: #FFD27A; }
.tile__flag { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 5px 10px; border-radius: var(--pill); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.tile__flag--low { background: #FFF1D6; color: #7A4B00; }
.tile__flag--hot { background: var(--ink); color: #fff; }
.tile__flag--hot::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.tile__sizes button.is-low { position: relative; }
.tile__sizes button.is-low::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #E08A00; }
.line__low { color: #7A4B00; font-weight: 700; }
.qty button[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .stock-note::before { animation: none; } }

/* ---------- Cookie banner + Cookie settings (public/assets/js/consent.js) ---------- */
/* "Reject all" and "Accept all" look exactly the same: the UK regulator (ICO) expects refusing to be as easy as accepting. */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: grid; gap: 14px; max-width: 520px; padding: 18px; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -16px rgba(11, 11, 26, 0.45), inset 0 0 0 1px var(--line); animation: consent-in 0.5s var(--ease); }
.consent__title { font-family: var(--font-display); font-size: var(--step-1); }
.consent__text { margin-top: 6px; font-size: var(--step--1); line-height: 1.5; color: var(--ink-2); }
.consent__text a { color: var(--ink); font-weight: 700; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn { width: 100%; background: var(--ink); color: #fff; }
.consent__btn:hover { background: #24243A; }
.consent__btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.consent__btn--line:hover { background: rgba(11, 11, 26, 0.06); }
.consent__manage { grid-column: 1 / -1; justify-self: center; min-height: 40px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(24px); } }
@media (min-width: 700px) { .consent { left: auto; right: 24px; bottom: 24px; padding: 22px; } }

.consent-modal { width: min(560px, calc(100vw - 24px)); }
.consent-modal__intro { font-size: var(--step--1); line-height: 1.5; color: var(--ink-2); }
.consent-modal__intro a { color: var(--ink); font-weight: 700; }
.consent-cats { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.consent-cat { padding: 14px 16px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.consent-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.consent-cat h3 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; }
.consent-cat p { margin-top: 6px; font-size: var(--step--1); line-height: 1.5; color: var(--ink-2); }
.consent-cat__always { font-size: 0.8125rem; font-weight: 700; color: #1E6B3A; }
.consent-switch { position: relative; display: inline-flex; flex: none; }
.consent-switch input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; margin: 0; border-radius: var(--pill); background: #C9CAD4; cursor: pointer; transition: background 0.2s; }
.consent-switch input:checked { background: var(--ink); }
.consent-switch input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.consent-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); pointer-events: none; transition: transform 0.25s var(--ease); }
.consent-switch input:checked + span { transform: translateX(22px); }
.consent-modal__id { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-3); }
.consent-modal__id code { font-size: 0.8125rem; color: var(--ink-2); user-select: all; }
.consent-modal__actions { display: grid; gap: 10px; margin-top: 16px; }
.consent-modal__actions .btn { width: 100%; }
@media (min-width: 560px) { .consent-modal__actions { grid-template-columns: 1fr 1fr 1.3fr; } }

.site-footer__btn { justify-self: start; min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.site-footer__btn:hover { color: #fff; text-decoration: underline; }

.cookie-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--step--1); }
.cookie-table th, .cookie-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cookie-table thead th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.cookie-table tbody tr:last-child > * { border-bottom: 0; }
.cookie-table code { font-size: 0.8125rem; white-space: nowrap; }
.prose .table-wrap { margin-top: 16px; }
.prose .consent-open { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } .consent-switch input, .consent-switch span { transition: none; } }
