/* =========================================================
   Kobain Kulture: the whole look of the site lives here.
   Dark theme = ebony and antique gold. Light theme = parchment and bronze ink.
   ========================================================= */

/* ---------- Colours, fonts and spacing (dark theme is the base) ---------- */
:root {
  /* Page background: deep ebony, a brown-black like carved wood */
  --bg: #0e0b08;
  /* Slightly lifted surface for panels and cards */
  --surface: #17120d;
  /* Second surface step for inputs and hover */
  --surface-2: #211a12;
  /* Main text colour: warm ivory */
  --ink: #f1e8d8;
  /* Softer text for captions and details */
  --muted: #b8aa92;
  /* Antique gold, the brand's main accent */
  --gold: #c9a458;
  /* Brighter gold for hover and highlights */
  --gold-hi: #e8cd8c;
  /* Thin gold lines and borders */
  --line: rgba(201, 164, 88, 0.28);
  /* Text placed on a gold button */
  --on-gold: #140f09;
  /* Shadow tint behind lifted things */
  --shade: rgba(0, 0, 0, 0.55);
  /* Display font: Roman inscription capitals, close to the logo's lettering */
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  /* Body font: clean geometric sans for easy reading on phones */
  --font-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  /* Page side gutter that grows with the screen */
  --gutter: clamp(16px, 5vw, 64px);
  /* Widest the readable content gets */
  --max: 1320px;
  /* Height of the top bar */
  --bar-h: 72px;
  /* Shared easing curve: slow, ceremonial ease-out */
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  /* Tell the browser the default form controls should be dark */
  color-scheme: dark;
}

/* ---------- Light theme: parchment with bronze ink ---------- */
html[data-theme="light"] {
  /* Parchment background */
  --bg: #efe7d8;
  /* Slightly deeper parchment for panels */
  --surface: #e6dcc9;
  /* Inputs and hover */
  --surface-2: #ddd1ba;
  /* Ink-dark brown text */
  --ink: #1a140d;
  /* Softer brown for captions (passes 4.5:1 on parchment) */
  --muted: #5b4e3c;
  /* Deep bronze accent so gold stays readable on light paper */
  --gold: #85601e;
  /* Hover bronze */
  --gold-hi: #6b4c14;
  /* Lines */
  --line: rgba(133, 96, 30, 0.3);
  /* Text on bronze buttons */
  --on-gold: #f7f0e2;
  /* Softer shadow on paper */
  --shade: rgba(60, 40, 10, 0.18);
  /* Light form controls */
  color-scheme: light;
}

/* ---------- Basic reset ---------- */
/* Make sizes include padding and borders */
*, *::before, *::after { box-sizing: border-box; }
/* Remove default outer spacing */
html, body, h1, h2, h3, h4, p, figure, ol, ul, blockquote { margin: 0; }
/* Smooth scrolling for in-page links, and keep the theme colour behind everything */
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }
/* Page text settings */
body {
  /* Colours from the theme */
  background: var(--bg);
  color: var(--ink);
  /* Body font, size and comfortable line spacing */
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  /* Crisper text on Mac and iPhone */
  -webkit-font-smoothing: antialiased;
  /* Never allow sideways scrolling */
  overflow-x: clip;
  /* Gentle colour change when the theme switches */
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
/* Pictures and videos never spill out of their box */
img, video, svg { display: block; max-width: 100%; }
/* Images keep their shape when their height is set by CSS */
img { height: auto; }
/* Lists used for navigation have no bullets */
ul, ol { padding: 0; list-style: none; }
/* Links take the surrounding colour; underlines are added where needed */
a { color: inherit; text-decoration: none; }
/* Buttons and form fields use the site fonts */
button, input, select, textarea { font: inherit; color: inherit; }
/* Buttons look clickable */
button { cursor: pointer; background: none; border: 0; padding: 0; }
/* Hidden attribute always hides */
[hidden] { display: none !important; }

/* Clear, gold keyboard focus ring on everything you can tab to */
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* Skip link: invisible until a keyboard user tabs onto it */
.skip {
  /* Sit above everything, off screen */
  position: fixed; left: 12px; top: -60px; z-index: 200;
  /* Gold pill */
  background: var(--gold); color: var(--on-gold);
  padding: 10px 16px; font-weight: 500;
  /* Slide in */
  transition: top 0.2s;
}
/* Show it when focused */
.skip:focus { top: 12px; }

/* Text only screen readers hear */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
/* Big display headings in Cinzel capitals with wide, inscribed spacing */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  /* Grows with the screen: 2.3rem on phones up to 5.6rem on large screens */
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: 0.06em;
}
/* Section headings */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.05em;
}
/* Smaller headings for cards and panels */
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.06em;
  line-height: 1.25;
}
/* Lead paragraph: a little larger, limited width for easy reading */
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; max-width: 38em; color: var(--muted); }
/* Normal paragraph width limit */
.prose { max-width: 36em; }
/* Space between paragraphs */
.prose p + p { margin-top: 1em; }
/* Muted helper text */
.muted { color: var(--muted); }
/* Gold small text used for collection names under a heading */
.kicker { font-family: var(--font-display); color: var(--gold); letter-spacing: 0.18em; font-size: 0.82rem; }

/* ---------- Layout helpers ---------- */
/* Centre content and add side gutters */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
/* Vertical breathing room for a section */
.section { padding-block: clamp(64px, 10vw, 140px); }
/* Centred text block */
.center { text-align: center; }
/* Centre a limited-width block itself */
.center .lead, .center .prose { margin-inline: auto; }
/* Small stack spacing for headings followed by text */
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  /* Line up icon and text, centred */
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  /* At least 48px tall for easy tapping */
  min-height: 48px; padding: 0.8em 1.8em;
  /* Inscribed capitals */
  font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.18em; text-transform: uppercase;
  /* Thin gold frame */
  border: 1px solid var(--gold); color: var(--ink);
  /* Wrapped labels stay centred */
  text-align: center;
  /* Smooth hover */
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.2s var(--ease);
  /* Keeps the shine effect inside the button */
  position: relative; overflow: hidden;
}
/* Gold-filled main button */
.btn--gold { background: var(--gold); color: var(--on-gold); }
/* Hover: outline buttons fill with gold, gold buttons brighten */
.btn:hover { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-hi); }
/* Press feedback */
.btn:active { transform: scale(0.98); }
/* A single slanted sheen that crosses the button on hover, like light on a gold thread */
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 245, 220, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
/* Row of buttons that wraps on small phones */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Text link with a gold underline that draws in on hover */
.link {
  font-family: var(--font-display); letter-spacing: 0.16em; font-size: 0.84rem; text-transform: uppercase;
  /* Underline drawn with a background so it can animate */
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.link:hover { color: var(--gold-hi); background-size: 40% 1px; }

/* ---------- Top bar ---------- */
.bar {
  /* Stay at the top while scrolling */
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  /* Three columns: left links, centred logo, right icons */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  /* Starts see-through over the hero video */
  color: #f1e8d8;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
/* Pages without a full video hero, and any page once scrolled: solid themed bar */
.bar.is-solid, html:not(:has(.hero)) .bar {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
/* Bar gets a little shorter once you scroll */
.bar.is-solid { height: 60px; }
/* Left and right groups */
.bar__side { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); min-width: 0; }
.bar__side--right { justify-content: flex-end; }
/* Inline links only appear on wide screens */
.bar__links { display: none; gap: 28px; }
.bar__links a {
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding-block: 8px;
  /* Gold underline for hover and the current page */
  background: linear-gradient(var(--gold), var(--gold)) 50% 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.bar__links a:hover, .bar__links a[aria-current="page"] { background-size: 100% 1px; }
/* Centred emblem */
.bar__logo { display: block; width: 54px; transition: width 0.4s var(--ease); }
.bar.is-solid .bar__logo { width: 44px; }
/* Over the dark hero video the bar always shows the gold logo */
.logo-ink { display: none; }
html[data-theme="light"] .logo-gold { display: none; }
html[data-theme="light"] .logo-ink { display: block; }
html[data-theme="light"] .bar:not(.is-solid) .logo-gold { display: block; }
html[data-theme="light"] .bar:not(.is-solid) .logo-ink { display: none; }
html[data-theme="light"]:not(:has(.hero)) .bar .logo-gold { display: none; }
html[data-theme="light"]:not(:has(.hero)) .bar .logo-ink { display: block; }

/* Menu button: two lines plus the word Menu */
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.menu-btn__lines { display: grid; gap: 6px; width: 26px; }
.menu-btn__lines i { display: block; height: 1px; background: currentColor; transition: transform 0.4s var(--ease); }
/* Second line shorter, for a tailored look */
.menu-btn__lines i:last-child { width: 62%; }
.menu-btn__label { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }
/* Lines turn into a cross when the menu is open */
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

/* Round icon buttons (theme, WhatsApp) */
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: color 0.3s, background-color 0.3s; }
.icon-btn:hover { color: var(--gold-hi); }
/* Icon line drawing */
.ico { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* The theme button shows only the icon for the current choice */
.theme-cycle .ico { display: none; }
html[data-theme-choice="system"] .ico--system,
html[data-theme-choice="dark"] .ico--dark,
html[data-theme-choice="light"] .ico--light { display: block; }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  /* Room for the bar on top */
  padding: calc(var(--bar-h) + 24px) var(--gutter) 32px;
  overflow-y: auto;
  /* Opens with a curtain from the top */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
/* Faint emblem watermark behind the links */
.menu::before {
  content: ""; position: absolute; inset: 10% 0 0 40%;
  background: url("/assets/brand/logo-male-crown-emblem-only.webp") center / contain no-repeat;
  opacity: 0.05; pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); }
/* While the menu is open the bar uses the menu's colours */
body.menu-open .bar { color: var(--ink); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .bar .logo-gold { display: block; }
body.menu-open .bar .logo-ink { display: none; }
html[data-theme="light"] body.menu-open .bar .logo-gold { display: none; }
html[data-theme="light"] body.menu-open .bar .logo-ink { display: block; }
/* Stop the page behind from scrolling */
body.menu-open { overflow: hidden; }
.menu__inner { position: relative; max-width: var(--max); margin-inline: auto; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
/* Big menu links */
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__list a {
  display: block; padding-block: 12px;
  font-family: var(--font-display); font-size: clamp(1.4rem, 5vw, 2.6rem); letter-spacing: 0.06em;
  /* Rise into place one after another when the menu opens */
  transform: translateY(110%);
  transition: transform 0.7s var(--ease), color 0.3s, padding-left 0.4s var(--ease);
}
.menu.is-open .menu__list a { transform: none; }
/* Each link waits a little longer than the one before */
.menu__list li:nth-child(2) a { transition-delay: 0.04s, 0s, 0s; }
.menu__list li:nth-child(3) a { transition-delay: 0.08s, 0s, 0s; }
.menu__list li:nth-child(4) a { transition-delay: 0.12s, 0s, 0s; }
.menu__list li:nth-child(5) a { transition-delay: 0.16s, 0s, 0s; }
.menu__list li:nth-child(6) a { transition-delay: 0.2s, 0s, 0s; }
.menu__list li:nth-child(7) a { transition-delay: 0.24s, 0s, 0s; }
.menu__list li:nth-child(8) a { transition-delay: 0.28s, 0s, 0s; }
.menu__list li:nth-child(9) a { transition-delay: 0.32s, 0s, 0s; }
.menu__list li:nth-child(10) a { transition-delay: 0.36s, 0s, 0s; }
/* Hover and current page in gold, nudged right */
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--gold); padding-left: 12px; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* ---------- System / Dark / Light switch ---------- */
.theme-switch { display: inline-flex; border: 1px solid var(--line); padding: 3px; gap: 2px; }
.theme-switch button {
  min-height: 40px; padding: 0 14px;
  font-size: 0.85rem; letter-spacing: 0.06em; color: var(--muted);
  transition: background-color 0.3s, color 0.3s;
}
/* Selected option */
.theme-switch button[aria-checked="true"] { background: var(--gold); color: var(--on-gold); }
.theme-switch button:hover:not([aria-checked="true"]) { color: var(--ink); }
.theme-switch--small button { min-height: 36px; padding: 0 12px; font-size: 0.8rem; }

/* ---------- Video hero ---------- */
.hero {
  position: relative; isolation: isolate;
  /* Fill the screen height (with a fallback for older phones) */
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: end center;
  color: #f4ecdd; text-align: center;
  padding: calc(var(--bar-h) + 24px) var(--gutter) clamp(48px, 9vh, 96px);
  overflow: hidden; background: #0e0b08;
}
/* Shorter hero for inner pages */
.hero--short { min-height: 78vh; min-height: 78svh; }
/* Video or image fills the hero behind the text */
.hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Dark fade at the bottom so the white text always reads clearly over the video */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.55) 0%, rgba(14, 11, 8, 0.05) 30%, rgba(14, 11, 8, 0.25) 55%, rgba(14, 11, 8, 0.9) 100%);
}
/* Hero text block */
.hero__body { max-width: 60rem; }
.hero__body > * + * { margin-top: 1.2rem; }
.hero .lead { color: rgba(244, 236, 221, 0.86); margin-inline: auto; }
/* Hero buttons are always light-on-dark, whatever the theme */
.hero .btn { color: #f4ecdd; border-color: #c9a458; }
.hero .btn--gold { background: #c9a458; color: #140f09; }
.hero .btn:hover { background: #e8cd8c; color: #140f09; }
.hero .kicker { color: #e8cd8c; }
/* Pause/play control for background videos */
.vid-toggle {
  position: absolute; right: var(--gutter); bottom: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(232, 205, 140, 0.6); color: #f4ecdd;
  display: grid; place-items: center;
  background: rgba(14, 11, 8, 0.35);
}
.vid-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.vid-toggle .i-play { display: none; }
.vid-toggle.is-paused .i-play { display: block; }
.vid-toggle.is-paused .i-pause { display: none; }

/* Wordmark letters in the home hero: they rise once when the page opens */
.rise span { display: inline-block; opacity: 0; transform: translateY(0.5em); animation: rise 1.1s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- The gold thread: the site's signature motion ----------
   A thin vertical stitch, like the spear through the emblem, runs between sections.
   It sews itself downward when it scrolls into view, then a small diamond knot appears. */
.stitch { display: grid; justify-items: center; padding-block: 8px; }
.stitch__line {
  width: 1px; height: clamp(64px, 10vw, 120px);
  /* Dashed like real stitching */
  background: repeating-linear-gradient(180deg, var(--gold) 0 7px, transparent 7px 12px);
  transform-origin: top; transform: scaleY(0);
  transition: transform 1.4s var(--ease);
}
.stitch__knot {
  width: 9px; height: 9px; margin-top: 6px;
  border: 1px solid var(--gold); transform: rotate(45deg) scale(0);
  transition: transform 0.6s var(--ease) 1.1s;
}
/* When visible, the thread draws and the knot appears */
.stitch.is-in .stitch__line { transform: scaleY(1); }
.stitch.is-in .stitch__knot { transform: rotate(45deg) scale(1); }

/* ---------- Image unveil: a curtain opens from the centre, used on key images only ---------- */
.unveil { clip-path: inset(0 49.5% 0 49.5%); transition: clip-path 1.3s var(--ease); }
.unveil.is-in { clip-path: inset(0 0 0 0); }

/* ---------- Editorial blocks ---------- */
/* Image beside text, swapping sides on wide screens */
.split { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Wide variant for landscape images */
.split__media--wide img { aspect-ratio: 4 / 3; }
/* Thin gold frame offset behind feature images */
.framed::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--line); z-index: -1;
}
.framed { isolation: isolate; }
/* Caption under a picture */
.cap { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* Collection tiles: tall pictures with names over them */
.tiles { display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tile { position: relative; display: block; overflow: hidden; background: var(--surface); isolation: isolate; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
/* Fade at the bottom so the tile's name reads clearly */
.tile::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(10, 8, 5, 0.88)); z-index: 0; }
.tile__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; color: #f4ecdd; }
.tile__text .h3 { color: #f4ecdd; }
.tile__text p { font-size: 0.92rem; color: rgba(244, 236, 221, 0.8); margin-top: 4px; }
/* Slow push-in on hover */
.tile:hover img { transform: scale(1.05); }
/* Wider tile spanning two columns on big screens */
.tile--wide img { aspect-ratio: 3 / 2; }

/* Slow marquee of cultures, a quiet ribbon across the page */
.ribbon { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; }
.ribbon__track { display: flex; gap: 48px; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon__track span { font-family: var(--font-display); letter-spacing: 0.2em; color: var(--muted); white-space: nowrap; font-size: 0.95rem; }
/* Small diamonds between names */
.ribbon__track span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 48px; border: 1px solid var(--gold); transform: rotate(45deg) translateY(-2px); }
@keyframes ribbon { to { transform: translateX(-50%); } }
/* Stop the ribbon when it scrolls off screen (saves battery on phones) */
.ribbon.is-off .ribbon__track { animation-play-state: paused; }

/* Quote / statement block */
.statement { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.3; letter-spacing: 0.04em; max-width: 24em; margin-inline: auto; }

/* Three-up pillars (values) */
.pillars { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pillar { border-top: 1px solid var(--line); padding-top: 22px; }
.pillar p { color: var(--muted); margin-top: 8px; }

/* Masonry-like gallery for the lookbook */
.gallery { columns: 3 280px; column-gap: clamp(12px, 2vw, 22px); }
.gallery figure { break-inside: avoid; margin-bottom: clamp(12px, 2vw, 22px); }
.gallery button { display: block; width: 100%; overflow: hidden; }
.gallery img { width: 100%; transition: transform 1s var(--ease), filter 0.6s; }
.gallery button:hover img { transform: scale(1.03); }

/* Full-screen picture viewer */
.viewer { position: fixed; inset: 0; z-index: 120; background: rgba(8, 6, 4, 0.94); display: grid; place-items: center; padding: 56px 16px 24px; }
.viewer img { max-height: 86vh; width: auto; max-width: 100%; object-fit: contain; }
.viewer__close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; color: #f4ecdd; font-size: 2rem; line-height: 1; }
.viewer__cap { position: absolute; bottom: 16px; left: 16px; right: 16px; text-align: center; color: #d9ccb2; font-size: 0.95rem; }

/* ---------- Shop ---------- */
/* Category filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line);
  font-size: 0.88rem; letter-spacing: 0.08em; color: var(--muted);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.chip:hover { color: var(--ink); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
/* Product grid */
.grid { display: grid; gap: clamp(20px, 3vw, 40px) clamp(12px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { display: block; }
.card__img { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding-top: 14px; display: grid; gap: 4px; }
.card__name { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; line-height: 1.3; }
.card__meta { font-size: 0.9rem; color: var(--muted); }
/* Gold underline under the name on hover */
.card__name span { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); padding-bottom: 2px; }
.card:hover .card__name span { background-size: 100% 1px; }
/* Message when a filter has nothing in it */
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: clamp(28px, 5vw, 72px); padding-top: calc(var(--bar-h) + 32px); }
.pdp__img { position: relative; background: var(--surface); }
.pdp__img button { display: block; width: 100%; }
.pdp__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface); }
.pdp__info > * + * { margin-top: 1.2rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.price { font-family: var(--font-display); letter-spacing: 0.08em; color: var(--gold); }
/* Colour swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch label {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 10px;
  border: 1px solid var(--line); cursor: pointer; font-size: 0.92rem;
}
.swatch label i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); }
.swatch input:checked + label { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.swatch input:focus-visible + label { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
/* Detail list under the order button */
.details { border-top: 1px solid var(--line); }
.details li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 0.92rem; letter-spacing: 0.04em; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  transition: border-color 0.3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 1px var(--gold); }
/* Error message under a field */
.field .err { color: #e08b6d; font-size: 0.88rem; min-height: 1.2em; }
html[data-theme="light"] .field .err { color: #9b3412; }
.field [aria-invalid="true"] { border-color: #e08b6d; }
/* Two fields side by side on wider screens, stacked on phones */
.row-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
/* Box with a gold border used for forms and notes */
.panel { border: 1px solid var(--line); padding: clamp(20px, 4vw, 44px); background: var(--surface); }
.note { font-size: 0.92rem; color: var(--muted); }

/* FAQ accordion */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--font-display); letter-spacing: 0.04em; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus sign that turns into a minus */
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; transition: transform 0.3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 40em; }

/* Pattern cards on the craft page */
.patterns { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pattern img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border: 1px solid var(--line); }
.pattern h3 { margin-top: 16px; }
.pattern p { color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.foot { padding: 0 var(--gutter) 40px; text-align: center; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
/* Thread stitch that hangs down from the footer line */
.foot__stitch span { display: block; width: 1px; height: 64px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--gold) 0 7px, transparent 7px 12px); }
.foot__logo { display: block; width: 168px; margin: 20px auto 0; }
.foot__motto { font-family: var(--font-display); letter-spacing: 0.16em; color: var(--muted); margin-top: 14px; font-size: 0.95rem; }
.foot__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); max-width: 860px; margin: 48px auto 0; text-align: left; }
.foot__head { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 14px; }
.foot__cols li + li { margin-top: 6px; }
.foot__cols a { display: inline-block; padding-block: 6px; color: var(--muted); transition: color 0.3s; }
.foot__cols a:hover { color: var(--ink); }
.foot__base { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; max-width: 860px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }

/* Floating WhatsApp button, bottom right */
.float-wa {
  position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  /* Same size and height as the AI chat button on the left */
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold);
  box-shadow: 0 10px 30px var(--shade);
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.float-wa svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.float-wa:hover { transform: scale(1.06); }
/* Hidden while another WhatsApp button is visible, or during the intro */
.float-wa.is-hidden { opacity: 0; transform: scale(0.6); pointer-events: none; }

/* ---------- Intro: video, then the crowned emblem, then the site ---------- */
.intro { position: fixed; inset: 0; z-index: 150; background: #0b0806; color: #f4ecdd; display: none; }
/* Only shown when the head script decides this visit needs the intro */
html.show-intro .intro { display: block; }
html.show-intro body { overflow: hidden; }
/* Poster image behind the gate, darkened */
.intro__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; filter: saturate(0.8); }
/* The video itself: fits the whole frame on phones (letterboxed), fills on wide screens */
.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.8s var(--ease); background: #0b0806; }
.intro.is-playing .intro__video { opacity: 1; }
@media (min-aspect-ratio: 4/3) { .intro__video { object-fit: cover; } }
/* The gate: emblem, wordmark and Enter button */
.intro__gate { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(ellipse at center, rgba(11, 8, 6, 0.25), rgba(11, 8, 6, 0.85) 70%); transition: opacity 0.6s var(--ease); }
.intro.is-playing .intro__gate { opacity: 0; pointer-events: none; }
.intro__gate img { width: clamp(110px, 22vw, 180px); margin: 0 auto 22px; }
.intro__gate p { font-family: var(--font-display); letter-spacing: 0.32em; font-size: clamp(0.85rem, 2vw, 1rem); color: #e8cd8c; margin-bottom: 28px; }
.intro .btn { color: #f4ecdd; border-color: #c9a458; }
.intro .btn:hover { background: #c9a458; color: #140f09; }
/* Skip button, always reachable */
.intro__skip { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top)); z-index: 3; min-height: 44px; padding: 0 16px; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d9ccb2; border: 1px solid rgba(217, 204, 178, 0.4); }
.intro__skip:hover { color: #fff; border-color: #e8cd8c; }
/* Sound hint while the video plays */
.intro__hint { position: absolute; left: 16px; top: calc(16px + env(safe-area-inset-top)); z-index: 3; font-size: 0.85rem; color: #b8aa92; opacity: 0; transition: opacity 0.5s; }
.intro.is-playing .intro__hint { opacity: 1; }
/* Final reveal: black stage with the crowned emblem and the name */
.intro__reveal { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px; background: #0b0806; opacity: 0; pointer-events: none; transition: opacity 0.9s var(--ease); text-align: center; padding: 24px; }
.intro.is-revealing .intro__reveal { opacity: 1; }
.intro__crest { position: relative; width: clamp(150px, 30vw, 260px); overflow: hidden; }
/* A band of light sweeps across the gold emblem once */
.intro__crest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 200, 0.55) 48%, transparent 66%); transform: translateX(-130%); mix-blend-mode: overlay; }
.intro.is-revealing .intro__crest::after { animation: sheen 1.8s var(--ease) 0.5s forwards; }
@keyframes sheen { to { transform: translateX(130%); } }
.intro__crest img { transform: scale(0.92); opacity: 0; transition: transform 1.6s var(--ease), opacity 1.2s var(--ease); }
.intro.is-revealing .intro__crest img { transform: none; opacity: 1; }
.intro__name { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 3.4rem); letter-spacing: 0.22em; color: #e8cd8c; }
.intro__name span { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.intro.is-revealing .intro__name span { opacity: 1; transform: none; }
/* Words never split across lines; letters inside appear one after another */
.intro__name .w, .rise .w { display: inline-block; white-space: nowrap; }
.intro__name .w span:nth-child(1), .rise .w span:nth-child(1) { transition-delay: 0.90s; animation-delay: 0.20s; }
.intro__name .w span:nth-child(2), .rise .w span:nth-child(2) { transition-delay: 0.97s; animation-delay: 0.26s; }
.intro__name .w span:nth-child(3), .rise .w span:nth-child(3) { transition-delay: 1.04s; animation-delay: 0.32s; }
.intro__name .w span:nth-child(4), .rise .w span:nth-child(4) { transition-delay: 1.11s; animation-delay: 0.38s; }
.intro__name .w span:nth-child(5), .rise .w span:nth-child(5) { transition-delay: 1.18s; animation-delay: 0.44s; }
.intro__name .w span:nth-child(6), .rise .w span:nth-child(6) { transition-delay: 1.25s; animation-delay: 0.50s; }
.intro__name .w span:nth-child(7), .rise .w span:nth-child(7) { transition-delay: 1.32s; animation-delay: 0.56s; }
/* The second word follows the first */
.intro__name .w + .w span:nth-child(1), .rise .w + .w span:nth-child(1) { transition-delay: 1.35s; animation-delay: 0.60s; }
.intro__name .w + .w span:nth-child(2), .rise .w + .w span:nth-child(2) { transition-delay: 1.42s; animation-delay: 0.66s; }
.intro__name .w + .w span:nth-child(3), .rise .w + .w span:nth-child(3) { transition-delay: 1.49s; animation-delay: 0.72s; }
.intro__name .w + .w span:nth-child(4), .rise .w + .w span:nth-child(4) { transition-delay: 1.56s; animation-delay: 0.78s; }
.intro__name .w + .w span:nth-child(5), .rise .w + .w span:nth-child(5) { transition-delay: 1.63s; animation-delay: 0.84s; }
.intro__name .w + .w span:nth-child(6), .rise .w + .w span:nth-child(6) { transition-delay: 1.70s; animation-delay: 0.90s; }
.intro__name .w + .w span:nth-child(7), .rise .w + .w span:nth-child(7) { transition-delay: 1.77s; animation-delay: 0.96s; }
/* Whole intro fades out at the end */
.intro.is-leaving { opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }

/* ---------- Bigger screens ---------- */
@media (min-width: 720px) {
  /* Form fields side by side */
  .row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 900px) {
  /* Image and text side by side */
  .split { grid-template-columns: 1fr 1fr; }
  /* Flip the order for alternating rows */
  .split--flip .split__media { order: 2; }
  /* Product page: picture left, details right */
  .pdp { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .pdp__info { position: sticky; top: calc(var(--bar-h) + 24px); }
  /* Wide tiles take two columns */
  .tile--wide { grid-column: span 2; }
}
@media (min-width: 1100px) {
  /* Show the inline links and hide the word "Menu" duplication on wide screens */
  .bar__links { display: flex; }
  /* A taller bar suits wide screens */
  :root { --bar-h: 80px; }
}
/* Very small phones: tighten the bar */
@media (max-width: 380px) {
  .menu-btn__label { display: none; }
  .bar__side { gap: 4px; }
  .icon-btn { width: 42px; }
}

/* ---------- People who ask for less motion get a calm, still site ---------- */
@media (prefers-reduced-motion: reduce) {
  /* Turn off smooth scrolling */
  html { scroll-behavior: auto; }
  /* Make every animation and transition instant */
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  /* Show everything in its final state */
  .unveil { clip-path: none; }
  .stitch__line { transform: none; }
  .stitch__knot { transform: rotate(45deg); }
  .rise span { opacity: 1; transform: none; }
  .ribbon__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 48px; padding-inline: 16px; }
  .ribbon__track span[aria-hidden="true"] { display: none; }
}

/* ---------- Printing a product page: plain and readable ---------- */
@media print {
  .bar, .menu, .float-wa, .foot, .intro { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Spacing helpers (used instead of inline styles, which the security policy blocks) ---------- */
/* Medium gap above a block */
.mt-m { margin-top: clamp(32px, 5vw, 60px); }
/* Small gap above a block */
.mt-s { margin-top: 40px; }
/* Hero buttons sit centred under the text */
.hero .btn-row { justify-content: center; }

/* ---------- Page pieces added with the inner pages ---------- */
/* Pages without a hero start below the top bar */
.page-top { padding-top: calc(var(--bar-h) + clamp(40px, 7vw, 96px)); }
/* Narrow column for forms and long text */
.narrow { max-width: 820px; }
/* Fieldsets look like the other fields (no browser box) */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Lookbook film keeps a wide frame */
.film { position: relative; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.film__video { width: 100%; height: 100%; object-fit: cover; }
/* Emblem shown as a picture on the women and about pages */
.queen img { width: min(100%, 440px); margin-inline: auto; }
/* Numbered steps for the custom order process */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); color: var(--gold); font-size: 1.6rem; margin-bottom: 6px; }
.steps p { margin-top: 6px; }
/* Crest on the 404 and offline pages */
.lost-crest { width: 120px; margin: 0 auto 8px; }
/* Pattern sheet button fills its frame */
.sheet { display: block; width: 100%; border: 1px solid var(--line); }
/* Figure tiles reset the figure's default spacing */
figure.tile { margin: 0; }

/* Portrait photos in a hero keep the face in view */
.hero__media--top { object-position: 50% 22%; }

/* ---------- Home hero title: a gilded crest ----------
   The name is set in gold foil (a metal gradient clipped to the letters) with an engraved shadow,
   framed by the crowned emblem above and a gold rule with a diamond below.
   It opens once like a curtain from the centre, then a slow band of light travels across the gold. */
.hero--home .hero__body > * + * { margin-top: 0; }
/* Small crowned emblem above the name */
.crest-mark { width: clamp(54px, 7vw, 78px); margin: 0 auto 18px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); opacity: 0; animation: crestIn 1.2s var(--ease) 0.1s forwards; }
@keyframes crestIn { from { opacity: 0; transform: translateY(-8px) scale(0.92); } to { opacity: 1; transform: none; } }
/* The name itself */
.gilded {
  font-family: var(--font-display); font-weight: 500;
  /* Large on every screen, never wider than the screen */
  font-size: clamp(2.5rem, 9.5vw, 7rem); line-height: 1; letter-spacing: 0.08em;
  /* Plain gold for browsers that can't clip a gradient to text */
  color: #e8cd8c;
  /* Opens from the centre outward */
  clip-path: inset(0 50% 0 50%); animation: gildOpen 1.6s var(--ease) 0.35s forwards;
}
/* Gold foil: light and shadow bands like polished metal, with an engraved edge and a soft glow */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gilded {
    background: linear-gradient(100deg, #7a5518 0%, #c9a458 14%, #f7e7b4 24%, #fff8e1 28%, #d9b768 36%, #8a6420 50%, #c9a458 64%, #f7e7b4 74%, #b88a35 86%, #7a5518 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 240, 200, 0.35)) drop-shadow(0 2px 0 rgba(40, 25, 5, 0.9)) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.65));
    animation: gildOpen 1.6s var(--ease) 0.35s forwards, foil 9s linear 2s infinite;
  }
}
@keyframes gildOpen { to { clip-path: inset(0 -5% 0 -5%); } }
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }
/* Gold rule with a diamond under the name */
.crest-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 0; width: min(420px, 80%); }
.crest-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #c9a458); transform: scaleX(0); animation: ruleIn 1.2s var(--ease) 1.4s forwards; }
.crest-rule span:last-child { background: linear-gradient(90deg, #c9a458, transparent); }
.crest-rule i { width: 9px; height: 9px; border: 1px solid #e8cd8c; transform: rotate(45deg) scale(0); animation: knotIn 0.6s var(--ease) 2s forwards; }
@keyframes ruleIn { to { transform: scaleX(1); } }
@keyframes knotIn { to { transform: rotate(45deg) scale(1); } }
/* Small engraved line under the rule */
.crest-sub { font-family: var(--font-display); letter-spacing: 0.34em; font-size: clamp(0.72rem, 1.6vw, 0.9rem); color: #e8cd8c; margin-top: 14px; text-transform: uppercase; }
.hero--home .lead { margin-top: 18px; }
.hero--home .btn-row { margin-top: 26px; }
/* Calm version for people who ask for less motion: everything simply shows */
@media (prefers-reduced-motion: reduce) {
  .gilded { clip-path: none; animation: none; }
  .crest-mark { opacity: 1; animation: none; }
  .crest-rule span { transform: none; animation: none; }
  .crest-rule i { transform: rotate(45deg); animation: none; }
}
/* Spacing inside the home hero (more specific than the general hero rule above) */
.hero--home .crest-rule { margin-top: 20px; }
.hero--home .crest-sub { margin-top: 16px; }
.hero--home .lead { margin-top: 20px; }
.hero--home .btn-row { margin-top: 28px; }

/* Keep the AI chat button hidden while the intro film is showing */
html.show-intro [data-side="left"] { display: none !important; }
