/* XOTIQA — natural quartz blocks. One stylesheet for all five pages.
   Design notes: research/04-brand-and-design-direction.md */

/* ========== Font ========== */
/* Inter (variable, weights 400–700, Latin), served from the site itself; licence in assets/fonts/OFL.txt.
   Apple devices use their own SF Pro first (see --display and --text). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ========== Design tokens ========== */
:root {
  /* Light surfaces and text */
  --bone: #f2eee7; /* page background */
  --paper: #faf8f4; /* raised panels and form fields */
  --ink: #1b1714; /* main text, never pure black */
  --ink-2: #4a433d; /* secondary text */
  --muted: #6e665f; /* labels and notes */
  --line: rgba(27, 23, 20, .14); /* hairline rules */
  --line-strong: rgba(27, 23, 20, .32); /* outlines of chips, tags and fields */
  /* Dark "pit" surfaces and text on them */
  --pit: #15110f;
  --pit-2: #201b18; /* behind photos while they load */
  --on-pit: #ede7df;
  --on-pit-muted: #a89e94;
  --line-pit: rgba(237, 231, 223, .16);
  /* The one accent colour, taken from the violet stone */
  --wine: #5a2f3e;
  /* Brochure gold: hairlines and frames (--gold), and a darker shade for small labels (--gold-ink) */
  --gold: #b08a55;
  --gold-ink: #7d5f33;

  /* Apple-style type: SF Pro on Apple devices, Inter elsewhere */
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

  /* Layout and motion */
  --wrap: 1320px; /* widest content column */
  --gutter: clamp(16px, 4vw, 48px); /* side padding, narrower on phones */
  --section: clamp(72px, 11vw, 160px); /* space between sections */
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1); /* ease-out used by every transition */

  color-scheme: light;
}

/* ========== Base elements ========== */
/* Sizes include padding and borders. */
*, *::before, *::after { box-sizing: border-box; }
/* Anchored headings stop below the sticky header; themed caret, form accents, scrollbar and tap flash. */
html {
  -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px);
  caret-color: var(--wine); accent-color: var(--wine); scrollbar-color: #9a9087 var(--bone); -webkit-tap-highlight-color: rgba(90, 47, 62, .14);
}
/* Page background, body text and no sideways scroll. */
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Images never overflow their box. */
img { display: block; max-width: 100%; height: auto; }
/* Links keep the surrounding colour with a fine underline. */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
/* Controls use the page font; buttons skip the double-tap zoom delay. */
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
/* Selected text and keyboard focus in the accent colour; light ring on dark areas. */
::selection { background: var(--wine); color: #fff; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.on-pit :focus-visible, .site-header.is-over :focus-visible { outline-color: var(--on-pit); }

/* ========== Type ========== */
/* Headings: tight, heavy, balanced line breaks; sizes scale with the screen. */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.028em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
/* The second half of a heading (<em>) in a quieter tone, light or dark. */
h1 em, h2 em, h3 em { font-style: normal; color: var(--muted); }
:is(.on-pit, .varieties) :is(h1, h2, h3) em { color: var(--on-pit-muted); }
/* Paragraphs avoid a lone last word. */
p { margin: 0 0 1em; text-wrap: pretty; }
/* Intro paragraph under a heading. */
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
h2 + .lede { margin-top: 24px; }
/* Small notes, such as a figure's source line. */
.small { font-size: .875rem; color: var(--muted); }
.table-wrap + .small { margin-top: 20px; }
/* Hidden on screen, still read by screen readers. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ========== Layout ========== */
/* The content column with equal side padding. */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
/* Section spacing; back-to-back sections of the same colour share one gap. */
.section { padding-block: var(--section); }
.section + .section, .section--after-head { padding-top: 0; }
/* Where the colour changes (light band, dark band, or the plain section after one), the top gap comes back. */
.section + .section:is(.group, .turn, .on-pit), :is(.group, .turn, .on-pit) + .section { padding-top: clamp(48px, 6vw, 96px); }
/* A snug section (About's group sections): a smaller gap above and below, whatever comes before it. */
.section.section--snug, .section + .section.section--snug, :is(.group, .turn, .on-pit) + .section.section--snug { padding-block: clamp(40px, 5vw, 72px); }
/* Keyboard "Skip to content" link, shown only when focused. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Two-column split on a 12-column grid; wide-a widens the left, wide-b the right. */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.split > .a { grid-column: 1 / span 6; }
.split > .b { grid-column: 8 / span 5; }
.split--wide-a > .a { grid-column: 1 / span 7; }
.split--wide-a > .b { grid-column: 9 / span 4; }
.split--wide-b > .a { grid-column: 1 / span 4; }
.split--wide-b > .b { grid-column: 6 / span 7; }
.split--center { align-items: center; }
/* Tablets and phones: the two columns stack in a single column (twelve columns' gaps alone overflow a 320 px phone). */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .a, .split > .b, .split--wide-a > .a, .split--wide-a > .b, .split--wide-b > .a, .split--wide-b > .b { grid-column: 1 / -1; }
}

/* Section heading row: heading left, short text right. */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { max-width: 16ch; }
.section-head p { max-width: 44ch; margin: 0; color: var(--ink-2); }

/* Plain inner page heading (Contact): a short gap under the header. */
.page-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-head h1 { max-width: 13ch; }
.page-head .lede { margin-top: 28px; }
/* Inner page opening (About, Products, Process): heading top-left, a 3D stage right, both starting just under the header. */
.page-hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start;
  padding-block: clamp(20px, 3vw, 40px);
}
.page-hero h1 { max-width: 12ch; margin-top: clamp(8px, 2vw, 32px); }
/* The stage fits within the first screen. */
.page-hero .stage { max-height: calc(100svh - var(--header-h) - 64px); }
.page-hero .lede { margin-top: 24px; }
/* Tablets and phones: heading above the stage, no forced height. */
@media (max-width: 900px) { .page-hero { grid-template-columns: 1fr; } }

/* A row of buttons. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========== Photos ========== */
/* Photo frame: crops to its shape, dark while loading; the photo zooms slightly when its card or link is hovered. */
.figure { display: block; margin: 0; overflow: hidden; background: var(--pit-2); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
:is(a, button):hover > .figure img, .figure:hover img { transform: scale(1.025); }
/* Frame shape: widescreen. */
.figure--wide { aspect-ratio: 16 / 9; }
/* Photo opening (About, Uses): a photo fills the screen below the menu, with the content on a dark fade at its foot. */
.opening { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: calc(100svh - var(--header-h)); }
.opening__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.opening::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21, 17, 15, .94) 0%, rgba(21, 17, 15, .72) 50%, rgba(21, 17, 15, .12) 100%); }
.opening__content { padding-block: clamp(96px, 12vh, 160px) clamp(32px, 5vw, 64px); }
.opening h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); } /* heading size, as the section it replaced */
/* Figures on the dark photo: light rules and labels. */
.opening .facts { border-top-color: rgba(237, 231, 223, .55); }
.opening .facts div + div { border-left-color: var(--line-pit); }
.opening .facts dt, .opening .facts dd small { color: var(--on-pit-muted); }

/* ========== Buttons and links ========== */
/* Solid button: dark, turns wine on hover, presses in on click. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 22px;
  font: 500 .95rem/1 var(--text); letter-spacing: .01em;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--wine); border-color: var(--wine); }
.btn:active { transform: scale(.98); }
/* Small button for tight spots such as a stage caption. */
.btn--small { min-height: 40px; padding: 0 14px; font-size: .85rem; }
/* Outline button, filled on hover. */
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Both buttons inverted on dark sections and dark 3D stages. */
:is(.on-pit, .stage--dark) .btn { background: var(--on-pit); color: var(--pit); border-color: var(--on-pit); }
:is(.on-pit, .stage--dark) .btn:hover { background: #fff; border-color: #fff; }
:is(.on-pit, .stage--dark) .btn--ghost { background: transparent; color: var(--on-pit); }
:is(.on-pit, .stage--dark) .btn--ghost:hover { background: var(--on-pit); color: var(--pit); }
/* The arrow inside a button nudges right on hover. */
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
/* Text link with an underline that slides away on hover. */
.link {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); }

/* ========== Header ========== */
/* Sticky bar, frosted where the browser supports blur. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(242, 238, 231, .94);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: saturate(1.2) blur(10px); background: rgba(242, 238, 231, .86); } }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Home: see-through over the hero, dark once scrolled (is-scrolled is set by pages.js). */
.site-header.is-over { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; color: var(--on-pit); backdrop-filter: none; }
.site-header.is-over.is-scrolled { background: rgba(21, 17, 15, .82); border-color: var(--line-pit); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-over.is-scrolled { backdrop-filter: blur(12px); } }

/* XOTIQA Quartz wordmark: spaced capitals, with "Quartz" lighter and softer. */
.wordmark {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  font: 600 1.02rem/1 var(--text); letter-spacing: .34em; margin-right: -.34em;
  text-decoration: none; text-transform: uppercase;
}
.wordmark span { font-weight: 400; opacity: .72; }
/* Nav links with an underline that draws in on hover and stays under the current page. */
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .95rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
/* The smaller Enquire button in the nav; light over the Home hero. */
.nav .btn { min-height: 40px; padding: 0 16px; font-size: .9rem; margin-left: 6px; }
.nav .btn::after { display: none; }
.site-header.is-over .nav .btn { background: var(--on-pit); color: var(--pit); border-color: var(--on-pit); }

/* Phone menu button: two lines that turn into an X when open. */
.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; cursor: pointer; position: relative;
}
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Phones and small tablets: the nav becomes a full-screen dark menu with large links. */
@media (max-width: 1000px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--pit); color: var(--on-pit);
    visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  .nav a { font: 600 clamp(2rem, 9vw, 2.8rem)/1.2 var(--display); min-height: 56px; width: 100%; border-bottom: 1px solid var(--line-pit); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--on-pit-muted); }
  .nav .btn { margin: 28px 0 0; width: 100%; min-height: 52px; font: 500 1rem/1 var(--text); background: var(--on-pit); color: var(--pit); border-color: var(--on-pit); }
  /* While open: menu shown, header light, page behind does not scroll, wordmark stays visible. */
  .menu-open .nav { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
  .menu-open .site-header { color: var(--on-pit); }
  .menu-open { overflow: hidden; }
  .menu-open .wordmark { position: relative; z-index: 2; }
}

/* ========== Dark sections ========== */
/* Dark background with light text. */
.on-pit { background: var(--pit); color: var(--on-pit); }
.on-pit .lede, .on-pit p { color: var(--on-pit-muted); }
.on-pit h2, .on-pit h3 { color: var(--on-pit); }
/* Location band heading. */
.location h2 { max-width: 14ch; }
/* The head office address in large type, under a small "Head Office" label (never the quarry's place). SOT:QUARRY_LOCATION */
.place { font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--display); letter-spacing: .02em; color: var(--on-pit); margin: 22px 0 28px; }
.place small { display: block; margin-bottom: 8px; font: 500 .78rem/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--on-pit-muted); }

/* ========== Home: hero ========== */
/* Full-screen dark hero with the content at the bottom. */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  background: var(--pit); color: var(--on-pit); isolation: isolate; overflow: hidden;
}
/* The slab photo fills the hero behind everything. */
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; } /* the photo is cropped to the slab alone, so no edge shows */
/* Dark shading on the left and bottom so the white text stays readable over white veins. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(21,17,15,.86) 0%, rgba(21,17,15,.62) 38%, rgba(21,17,15,.12) 72%, rgba(21,17,15,0) 100%),
    linear-gradient(180deg, rgba(21,17,15,.5) 0%, rgba(21,17,15,0) 20%, rgba(21,17,15,0) 55%, rgba(21,17,15,.7) 100%);
}
/* Phones: text spans the full width, so the shading runs top to bottom instead. */
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(21,17,15,.55) 0%, rgba(21,17,15,.2) 25%, rgba(21,17,15,.72) 50%, rgba(21,17,15,.92) 100%); }
}
/* The wire-saw cut on load: a bright line sweeps down, revealing the slab, then the text rises in. SOT:MOTION_AT_REST */
.hero__media { animation: xq-cut 1.6s var(--ease) both; }
.hero__wire { position: absolute; inset: 0; z-index: 1; pointer-events: none; animation: xq-wire 1.6s var(--ease) both; }
.hero__wire::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.95); box-shadow: 0 0 14px 1px rgba(255,255,255,.7); }
.hero__inner > * { animation: xq-rise .9s var(--ease) both; animation-delay: 1s; }
.hero__inner > * + * { animation-delay: 1.15s; }
@keyframes xq-cut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes xq-wire { from { transform: translateY(0); opacity: 1; } 90% { opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
@keyframes xq-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Hero headline: "Natural Quartz Blocks," always on one line (it is 9.5em wide, so 8.2vw keeps it inside even the
   narrowest phone), then the warm-grey second half starting on the line below. */
.hero__inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(32px, 6vh, 64px); }
.hero h1 { font-size: clamp(1.8rem, min(8.2vw, 11.5vh), 6rem); line-height: 1.02; } /* capped by screen height too, so the whole hero fits */
.hero__lead { white-space: nowrap; }
.hero h1 em { display: block; max-width: 13ch; color: #cfc4b8; }
/* Stone highlights under the headline: small pills with a warm dot, on a dark tint so they read over the photo. */
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: clamp(16px, 2.4vw, 28px) 0 0; padding: 0; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(237, 231, 223, .35); border-radius: 999px; background: rgba(21, 17, 15, .55); color: var(--on-pit); font-size: .8rem; font-weight: 500; letter-spacing: .01em; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e7c9a0; }
/* Bottom row: the photo's caption left, buttons right (stacked on phones). */
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  margin-top: clamp(28px, 4vh, 48px); padding-top: 24px; border-top: 1px solid var(--line-pit);
}
.hero__caption { max-width: 46ch; margin: 0; color: var(--on-pit-muted); font-size: .88rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ========== Home: the group (Kumar Group of Industries) ========== */
/* A full-width light band straight after the hero (no outer box): logo, heading and story on the left,
   the headquarters photo filling the right at the same height. */
.group { padding-block: clamp(48px, 6vw, 96px); background: var(--paper); border-bottom: 1px solid var(--line); }
.group__panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); }
.group__text { display: flex; flex-direction: column; } /* starts at the top, level with the photo */
/* The photo takes the text's height, cropped to fit: contain: size and aspect-ratio: auto stop its own tall shape
   (and the width/height in the HTML) from stretching the row. */
.group__photo { width: 100%; min-height: 420px; align-self: stretch; contain: size; aspect-ratio: auto; object-fit: cover; border-radius: 20px; }
/* The logo file is white line art; filter turns it to the site's dark ink on the light panel. */
.group__logo { display: block; width: clamp(110px, 10vw, 150px); height: auto; filter: brightness(0); opacity: .88; transition: opacity .2s var(--ease); }
/* The logo is a link to the group site: on hover or keyboard focus it darkens and a small label appears beneath it. */
.group__logo-link { position: relative; align-self: flex-start; }
.group__logo-link:is(:hover, :focus-visible) .group__logo { opacity: 1; }
.group__logo-link::after {
  content: attr(data-tip); position: absolute; left: 50%; top: 100%; z-index: 2; translate: -50% 10px; white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: .78rem; line-height: 1.2;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), translate .2s var(--ease);
}
.group__logo-link:is(:hover, :focus-visible)::after { opacity: 1; translate: -50% 4px; }
/* Logo and "About Our Group" side by side on one line, a hairline between them. */
.group__head { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.group__head h2 { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line-strong); font-size: clamp(1.6rem, 3vw, 2.6rem); }
/* The story sits in a softer inner box. */
.group__story { margin-top: clamp(20px, 2.4vw, 32px); padding: clamp(20px, 2.4vw, 32px); background: var(--bone); border-radius: 20px; }
.group__story p { margin: 0; color: var(--ink-2); }
.group strong { color: var(--ink); font-weight: 600; }
/* Tablets and phones: text first, then the photo, in one column. */
@media (max-width: 900px) {
  .group__panel { grid-template-columns: minmax(0, 1fr); }
  .group__photo { min-height: 0; max-height: 560px; aspect-ratio: 4 / 5; contain: none; } /* not too tall on tablets */
}
/* Sectors as small tags, matching the hero highlights. */
.group__sectors { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
/* Each sector is a link to its group company's site, shown as a tag that darkens on hover. */
.group__sectors a {
  display: block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; color: var(--ink); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.group__sectors a:is(:hover, :focus-visible) { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ========== Home: statement ========== */
.statement h2 { max-width: 15ch; }
.statement .lede { margin-top: 28px; }
/* "Deal directly with the quarry owner" and the Connect button, under a hairline. */
.connect { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.connect p { margin: 0; font-weight: 500; }
/* Connect: a button dressed as a polished quartz block, with the hero slab as its face, chamfered corners like a
   dressed block, a bevel of light and shade, and a sheen that passes over it every few seconds. */
.quartz-btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .6em;
  min-height: 56px; padding: 0 32px; color: #fff; font: 600 1rem/1 var(--text); letter-spacing: .06em; text-decoration: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  background: linear-gradient(135deg, rgba(90, 47, 62, .5), rgba(21, 17, 15, .3)), url("../img/slab-1.webp") 30% 40% / 360px auto;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease), background-position 1.2s var(--ease);
}
.quartz-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; translate: -120% 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  animation: quartz-sheen 4s var(--ease) infinite;
}
@keyframes quartz-sheen { 0% { translate: -120% 0; } 45%, 100% { translate: 120% 0; } }
/* Hover drifts the stone face and nudges the arrow; a press sinks it; focus draws a ring inside (the cut corners clip an outline). */
.quartz-btn:hover { background-position: 60% 60%; }
.quartz-btn:active { transform: scale(.98); }
.quartz-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--wine); }
.quartz-btn .arrow { transition: transform .2s var(--ease); }
.quartz-btn:hover .arrow { transform: translateX(4px); }

/* ========== Stone panels (Home and Products) ========== */
/* Dark panels side by side, one per stone; stacked on tablets and phones. */
.varieties { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; background: var(--pit); color: var(--on-pit); }
.variety { position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.variety .figure { aspect-ratio: 5 / 4; }
.variety__body { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line-pit); }
.variety + .variety .variety__body { border-left: 1px solid var(--line-pit); }
.variety p { color: var(--on-pit-muted); margin: 0; max-width: 44ch; }
@media (max-width: 900px) {
  .varieties { grid-template-columns: 1fr; }
  .variety + .variety .variety__body { border-left: 0; }
}

/* Section heading kept to one line on wider screens (Home: "Diverse range of colours & patterns."). */
.section-head h2.one-line { max-width: none; }
@media (min-width: 901px) { .section-head h2.one-line { white-space: nowrap; } }

/* ========== Home: 3D block ========== */
/* Light band with a short gap above; heading and model both start at the top. */
.turn { background: var(--paper); border-block: 1px solid var(--line); }
.section.turn, .section + .section.turn { padding-top: clamp(32px, 4vw, 56px); }
.turn .split { align-items: start; }
/* The left column runs the full height of the model: heading and block ID at the top, the stone's name large and
   centred in the space below, then the link to its photos. */
.turn .split > .a { align-self: stretch; display: flex; flex-direction: column; }
.turn [data-turn-details] { flex: 1; display: flex; flex-direction: column; }
.turn__id { font: 600 clamp(2rem, 3vw, 2.6rem)/1 var(--display); letter-spacing: -.02em; margin: 18px 0 0; font-variant-numeric: tabular-nums; }
.turn__stone { flex: 1; display: grid; place-items: center; margin: 24px 0; font: 600 clamp(3rem, 6vw, 5.5rem)/1 var(--display); letter-spacing: -.04em; color: var(--wine); text-align: center; }
/* Desktop: the whole section fits one screen, so the block buttons are always in view: small block buttons and a
   stage sized to the screen height (the block itself keeps its full size). */
@media (min-width: 901px) {
  /* A set height, never under 500 px, so even the largest block clears the cards below at every turn and tilt
     (short screens scroll a little). */
  .turn .stage { aspect-ratio: auto; max-height: none; height: clamp(500px, calc(100svh - var(--header-h) - 270px), 540px); }
}
/* Tablets and phones: heading, then the model and picker, then the details, so a tap and its result stay together. */
@media (max-width: 900px) {
  .turn .split > .a { display: contents; }
  .turn .split > .a > * { grid-column: 1 / -1; }
  .turn .split > .b { order: 1; }
  .turn [data-turn-details] { order: 2; }
}
/* Block picker: an even 3 × 3 grid of rounded tiles, all the same size; the block on show is outlined in wine. */
.block-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 28px; }
.pick {
  display: grid; grid-template-columns: 32px 1fr; column-gap: 9px; align-content: center; min-height: 44px; padding: 5px 9px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bone); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* Thumbnail on the left across both lines; ID above the weight on the right. */
.pick img { grid-row: span 2; width: 32px; height: 26px; object-fit: cover; border-radius: 5px; align-self: center; }
.pick__id { font-size: .84rem; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pick__mt { font-size: .7rem; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
.pick:hover { border-color: var(--ink); }
.pick[aria-pressed="true"] { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
/* Phones: three tiles still fit a row, so each stacks its thumbnail above the ID and weight. */
@media (max-width: 520px) {
  .pick { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 6px; padding: 10px 6px; }
  .pick img { grid-row: auto; width: 100%; max-width: 72px; }
}

/* The stage the model sits on: draggable, with a soft shadow underneath. */
.stage {
  position: relative; aspect-ratio: 4 / 3; max-height: 520px; width: 100%;
  display: grid; place-items: center; cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.stage:active { cursor: grabbing; }
.stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 17%; height: 26px; background: radial-gradient(closest-side, rgba(27,23,20,.28), transparent); filter: blur(6px); z-index: 0; }
/* Wrapper that gives a model its 3D perspective (faded during a Home swap); --base is the full-scale size of the largest block. */
.model-wrap { --base: min(68vw, 420px); position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; perspective: 1400px; }
/* A block model: --len, --wid and --hei (set by pages.js) scale its sides from the block's recorded size. */
.cube { --w: calc(var(--base) * var(--len, .96)); --h: calc(var(--base) * var(--hei, .5)); --d: calc(var(--base) * var(--wid, .5)); position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-32deg); }
/* Each face: centred, photo-covered, with a faint light sheen. */
.cube__face { position: absolute; left: 50%; top: 50%; background-size: cover; background-position: center; backface-visibility: hidden; }
.cube__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.12)); }
/* Face sizes and photos: front/back, sides and top/bottom (photos come from --face-* set by pages.js). */
.cube__face--front, .cube__face--back { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); background-image: var(--face-front); }
.cube__face--left, .cube__face--right { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); background-image: var(--face-side); }
.cube__face--top, .cube__face--bottom { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); background-image: var(--face-top); }
/* Fold each face into place; sides darker and top lighter, as if lit from above. */
.cube__face--front { transform: translateZ(calc(var(--d) / 2)); }
.cube__face--back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.cube__face--right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.82); }
.cube__face--left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.82); }
.cube__face--top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); filter: brightness(1.08); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); filter: brightness(.6); }
/* "Drag to turn" hint and the pause button in the corner. */
.stage__hint { position: absolute; bottom: 4%; left: 0; right: 0; text-align: center; font-size: .82rem; color: var(--muted); }
.stage__pause {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; display: grid; place-items: center;
}
.stage__pause svg { width: 14px; height: 14px; fill: currentColor; }
/* Dark stage for the inner-page openings: lit from above, light controls, no floor shadow; models are clipped to the frame. */
.stage--dark { background: radial-gradient(120% 90% at 50% 25%, #2b2421, var(--pit) 70%); color: var(--on-pit); overflow: hidden; }
.stage--dark::after { display: none; }
.stage--dark .stage__hint { color: var(--on-pit-muted); }
.stage--dark .stage__pause { background: transparent; border-color: var(--line-pit); color: var(--on-pit); }
/* Phones: a taller frame so the caption sits above the scene instead of over it. */
@media (max-width: 700px) { .stage--dark { aspect-ratio: 4 / 5; max-height: none; } .stage--dark .model-wrap { padding-top: 22%; } }

/* Caption pinned to the top-left of a stage (scene notes, the belt's block details). */
.stage__caption { position: absolute; top: 14px; left: 16px; right: 72px; z-index: 2; margin: 0; font-size: .88rem; color: var(--on-pit-muted); }
.stage__caption strong { color: var(--on-pit); font-size: 1.05rem; }
/* While paused (pause button or reduced motion), every scene animation holds still. */
.stage.is-paused * { animation-play-state: paused !important; }

/* ========== 3D scenes (About, Products, Process) ========== */
/* Scene positions are plain numbers so they can be animated (CSS keyframes and Motion); each element keeps its own. */
@property --x { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --y { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --z { syntax: "<number>"; inherits: false; initial-value: 0; }
/* The ground: 100 units wide (--u is one unit), red laterite earth, lying flat and turned by pages.js. */
.scene { --u: calc(min(76vw, 680px) / 100); position: relative; width: calc(100 * var(--u)); height: calc(80 * var(--u)); transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-24deg); background: radial-gradient(70% 70% at 45% 45%, #8a4b30, #5e3121 80%); box-shadow: 0 0 0 1px rgba(237, 231, 223, .08); }
/* The belt scene is a narrow strip of dark factory floor. */
.scene--belt { height: calc(40 * var(--u)); background: radial-gradient(60% 80% at 50% 50%, #3a322d, #1d1916); }
/* A group of parts (person, lorry, belt) sits at its spot; its parts are placed from there. People are drawn 1.5× true size so they read at this scale. */
.part { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); transform-style: preserve-3d; transform: translateZ(calc(var(--z) * var(--u))); }
.person { scale: 1.5 1.5 1.5; }
/* Every box and block in a scene: centred on its spot, standing on the ground at height z. */
.scene .cube { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); transform: translate(-50%, -50%) translateZ(calc(var(--z) * var(--u) + var(--d) / 2)); }
/* A coloured box: size in units (bw × bd footprint, bh tall), painted with its colour. */
.box { --w: calc(var(--bw) * var(--u)); --h: calc(var(--bd) * var(--u)); --d: calc(var(--bh) * var(--u)); }
.box .cube__face { background-color: var(--c); }
.box .cube__face::after { display: none; }
/* A real block lying on the ground: length along x, width along y, height upward; its top photo faces the sky. */
.stone { --base: calc(var(--scale) * var(--u)); --h: calc(var(--base) * var(--wid)); --d: calc(var(--base) * var(--hei)); }
.stone .cube__face--front, .stone .cube__face--back { background-image: var(--face-top); }
.stone .cube__face--top, .stone .cube__face--bottom { background-image: var(--face-front); }
/* Light from above: lids brightest, the side facing the viewer a little darker, the far side darkest. */
.scene .cube__face--front { filter: brightness(1.12); }
.scene .cube__face--bottom { filter: brightness(.86); }
.scene .cube__face--top { filter: brightness(.66); }

/* The hill: contour rings stacked as rock terraces, centred on its spot; --rise (anime.js) lifts them from flat on load. */
@property --rise { syntax: "<number>"; inherits: true; initial-value: 1; }
.hill { --rise: 1; --step: calc(1.6 * var(--u)); position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--size) * var(--u)); aspect-ratio: 6 / 5; transform: translate(-50%, -50%); transform-style: preserve-3d; }
.hill__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(calc(var(--level) * var(--step) * var(--rise))); }
.hill__layer path { fill: color-mix(in oklab, #b9aca4 calc(var(--level) * 11%), #5f534e); stroke: rgba(255, 250, 244, .28); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* A pool of light on the ground: blue under the buyer, warm around the block he is shown, white under the belt lamp. */
.glow { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--size) * var(--u)); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) translateZ(calc(var(--z) * var(--u) + 1px)); background: radial-gradient(closest-side, var(--glow), transparent); animation: glow-pulse 2.4s ease-in-out infinite; pointer-events: none; }
.glow--buyer { --glow: rgba(70, 140, 255, .85); }
.glow--stone { --glow: rgba(255, 226, 170, .55); }
.glow--lamp { --glow: rgba(255, 243, 220, .6); animation: none; }
@keyframes glow-pulse { 50% { scale: 1.18; opacity: .7; } }
/* The buyer's shirt glows blue so he stands out in the group. */
.person--buyer .box:nth-child(2) .cube__face { box-shadow: 0 0 10px 2px rgba(70, 140, 255, .8); }
/* The inspection lamp glows warm white. */
.lamp .cube__face { box-shadow: 0 0 22px 6px rgba(255, 236, 200, .55); }

/* Belt surface: ridges that run left to right. */
.belt .cube__face--front { background-image: repeating-linear-gradient(90deg, #3d3530 0 5px, #29231f 5px 11px); animation: belt-run .8s linear infinite; }
@keyframes belt-run { to { background-position: 11px 0; } }
/* The block passing under the lamp glows, fading in and out as it rides through the light. */
.belt-block .cube__face { transition: box-shadow .6s var(--ease); }
.belt-block.is-lit .cube__face { box-shadow: 0 0 18px 2px rgba(255, 236, 200, .35); }

/* About: the lorry on the road drives past, left to right, again and again. */
.drive-by { animation: drive-by 16s linear infinite; }
@keyframes drive-by { from { --x: -20; } to { --x: 122; } }

/* Process: the wire saw runs down the back of the block, then the freed block slides out and the next is cut. */
.saw-wire { animation: saw-down 9s linear infinite; }
.saw-wire .cube__face { box-shadow: 0 0 10px 3px rgba(255, 236, 200, .8); }
@keyframes saw-down { 0% { --z: 6.6; scale: 1; } 48% { --z: 0.1; scale: 1; } 50%, 100% { --z: 0.1; scale: 0; } }
.cut-block { animation: cut-out 9s ease-in-out infinite; }
@keyframes cut-out { 0%, 50% { --y: 0; scale: 1; } 78% { --y: 7; scale: 1; } 86%, 96% { --y: 7; scale: 0; } 100% { --y: 0; scale: 0; } }
/* Process: three blocks ride the belt down to the loading point, a third of a trip apart. */
.ride { animation: ride 9s linear infinite; }
.ride--2 { animation-delay: -3s; }
.ride--3 { animation-delay: -6s; }
@keyframes ride { 0% { --x: 50; scale: 0; } 6% { scale: 1; } 92% { --x: 81; scale: 1; } 100% { --x: 82; scale: 0; } }
/* Process: a lorry drives in, waits while it is loaded, and drives off with the block. */
.haul { animation: haul 12s ease-in-out infinite; }
@keyframes haul { 0% { --x: -24; } 25%, 60% { --x: 84; } 100% { --x: 126; } }
.haul .truck__load { animation: load-on 12s step-end infinite; }
@keyframes load-on { 0% { scale: 0; } 38% { scale: 1; } }
/* The excavator arm dips as if lifting. */
.excavator__arm { animation: arm-dip 5s ease-in-out infinite; }
@keyframes arm-dip { 50% { translate: 0 0 calc(-0.8 * var(--u)); } }
/* The hilltop crane stands on the top terrace (rising with the hill) and swings its jib slowly to and fro. */
.hill__top { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--level) * var(--step) * var(--rise))); }
.crane { animation: crane-slew 12s ease-in-out infinite alternate; }
@keyframes crane-slew { from { rotate: z -35deg; } to { rotate: z 35deg; } }

/* Phones: optional scene parts (a parked lorry, an onlooker) are left out so cheaper phones keep up. */
@media (max-width: 700px) { .scene-extra { display: none; } }

/* Reduced motion: scenes stand still in their resting layout. SOT:MOTION_AT_REST */
@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
}

/* ========== Spec list (3D block and photo dialog) ========== */
/* Label left, value right, hairline between rows. */
.spec { margin: 28px 0 0; border-top: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }

/* ========== Block cards (Products) ========== */
/* 3 per row, 2 on tablets, 1 on phones. */
.blocks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
/* The card itself (a button): lifts 2px on hover, presses on click; hidden when filtered out. */
.block-card { grid-column: span 4; display: flex; flex-direction: column; text-decoration: none; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; transition: transform .2s var(--ease); }
.block-card:hover { transform: translateY(-2px); }
.block-card:active { transform: translateY(0) scale(.99); }
.block-card[hidden] { display: none; }
/* Columns per card: these come after the base rule so they override it. */
@media (max-width: 1000px) { .block-card { grid-column: span 6; } }
@media (max-width: 560px) { .block-card { grid-column: span 12; } }
.block-card .figure { aspect-ratio: 4 / 3; }
/* Under the photo: ID and weight on one line, stone and size below, then cut tags. */
.block-card__meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 16px; border-top: 1px solid var(--ink); margin-top: 14px; }
.block-card__id { font: 600 1.9rem/1 var(--display); letter-spacing: -.01em; }
.block-card__mt { font-size: 1rem; font-variant-numeric: tabular-nums; align-self: end; }
.block-card__dims { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; margin-top: 6px; }
.tag { font-size: .76rem; letter-spacing: .02em; padding: 3px 8px; border: 1px solid var(--line-strong); color: var(--ink-2); }

/* ========== Products: cut labels ========== */
/* Three columns: label and plain meaning (stacked on phones). */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--ink); }
.uses div { padding: 20px 24px 0 0; }
.uses div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.uses dt { font-weight: 600; margin-bottom: 8px; }
.uses dd { margin: 0; color: var(--ink-2); max-width: 36ch; }
@media (max-width: 760px) {
  .uses { grid-template-columns: 1fr; }
  .uses div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
}

/* ========== Products: filters ========== */
/* Filter bar that sticks under the header while scrolling the cards (not on phones). */
.filters { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; padding: 18px 0; border-block: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); position: sticky; top: var(--header-h); background: var(--bone); z-index: 5; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filters legend { float: left; margin-right: 10px; font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Filter button; the pressed one turns wine. */
.chip {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: .9rem; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
/* "5 of 9 photographed blocks" on the right, and the note when nothing matches. */
.filters__count { margin-left: auto; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty-note { padding: 40px 0; color: var(--muted); }
@media (max-width: 700px) {
  .filters { position: static; }
  .filters__count { margin-left: 0; width: 100%; }
}

/* ========== Products: register table ========== */
/* Scrolls sideways on phones; relative so the hidden column label stays inside the scroll area. */
.table-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--ink); }
table.register { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.register th, .register td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.register th { font-weight: 500; font-size: .85rem; color: var(--muted); }
/* Block ID column set large; weight column right-aligned. */
.register td:first-child { font: 600 1.35rem/1.1 var(--display); }
.register td.r, .register th.r { text-align: right; }
/* "Photos" button styled as an underlined link. */
.register button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; min-height: 32px; }

/* ========== Products: photo dialog ========== */
/* Modal box over a dark backdrop; scrolling inside it does not scroll the page. */
dialog.block-dialog {
  width: min(1180px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
dialog.block-dialog::backdrop { background: rgba(21, 17, 15, .78); }
/* Photo column left, details right (stacked on smaller screens). */
.dlg { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
@media (max-width: 820px) { .dlg { grid-template-columns: 1fr; } }
/* Main photo shown whole on dark, with a row of thumbnails under it. */
.dlg__media { background: var(--pit); display: flex; flex-direction: column; }
.dlg__main { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.dlg__main img { width: 100%; height: 100%; object-fit: contain; }
.dlg__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.dlg__thumbs button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .6; transition: opacity .2s; }
.dlg__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--on-pit); }
.dlg__thumbs button:hover { opacity: 1; }
.dlg__thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* Details column: ID, view label, description, spec, and the Enquire button at the bottom. */
.dlg__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.dlg__body h2 { font-size: clamp(2.6rem, 4vw, 3.6rem); }
.dlg__view { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.dlg__body .spec { margin-bottom: 28px; }
.dlg__body .btn { margin-top: auto; }
/* × close button in the top-right corner. */
.dlg__close { position: absolute; top: 8px; right: 8px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--paper); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.dlg__close:hover { background: var(--bone); }

/* ========== Process ========== */
/* Seven steps with a thin line on the left that fills with wine as you scroll (pages.js). */
.steps { position: relative; }
.steps__list { list-style: none; margin: 0; padding: 0; }
.steps__line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: var(--wine); transform-origin: top; transform: scaleY(1); }
/* One step: text and photo side by side, a small diamond marker on the line (stacked on phones). */
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); padding: 0 0 clamp(64px, 8vw, 120px) clamp(24px, 4vw, 56px); position: relative; align-items: start; }
.step::before { content: ""; position: absolute; left: -4px; top: 14px; width: 9px; height: 9px; background: var(--bone); border: 1px solid var(--wine); transform: rotate(45deg); }
.step h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 18px; }
.step p { color: var(--ink-2); max-width: 46ch; }
.step .figure { aspect-ratio: 3 / 2; }
.step__aside { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; max-width: 46ch; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; } }

/* Home: the four short process steps in a row (2×2 on tablets, stacked on phones). */
.process-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); padding: 0; margin: 0; }
.process-row li { list-style: none; padding: 22px 24px 0 0; }
.process-row li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process-row h3 { font-size: 1.6rem; margin-bottom: 10px; }
.process-row p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 900px) {
  .process-row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .process-row li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .process-row { grid-template-columns: 1fr; }
  .process-row li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
}

/* Closing band with the next actions. */
.cta-band { padding-block: clamp(72px, 10vw, 140px); }
.cta-band h2 { max-width: 16ch; }
.cta-band .actions { margin-top: 36px; }

/* ========== About ========== */
/* Three company figures in a row (two, then one across, on tablets and phones), each centred in its column:
   label, then the number with a line icon to its right, then a small unit under some. */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); text-align: center; }
.facts div { padding: 22px 20px 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.facts dd { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .3em; margin: 0; font: 600 clamp(2.2rem, 4vw, 3.4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.facts__icon { width: .62em; height: .62em; fill: none; stroke: #e7c9a0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.facts dd small { flex-basis: 100%; font: 400 .95rem/1.4 var(--text); color: var(--ink-2); margin-top: 8px; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .facts div:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
}
/* ========== About: the Kumar Group (as in the brochure) ========== */
/* Intro: logo and heading left, the story right; the group's figures beneath on a gold rule. */
.kg__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.kg__logo { display: inline-block; margin-bottom: 24px; }
.kg__logo:hover .group__logo { opacity: 1; }
.kg h2 { max-width: 14ch; }
.kg h2 em { color: var(--muted); }
.kg .lede { margin: 0; }
.kg strong { color: var(--ink); font-weight: 600; }
.kg__figures { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; border-top: 1px solid var(--gold); }
.kg__figures li { display: grid; gap: 6px; padding: 22px 16px 0; }
.kg__figures li + li { border-left: 1px solid var(--line); }
/* The number with its gold line icon to the right (icon shape shared with the opening figures), then the label. */
.kg__num { display: flex; align-items: center; gap: .3em; font: 600 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kg .facts__icon { stroke: var(--gold); }
.kg__figures li > span:last-child { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .kg__intro { grid-template-columns: minmax(0, 1fr); }
  .kg__figures { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .kg__figures li:nth-child(odd) { border-left: 0; }
  .kg__figures li:last-child { grid-column: 1 / -1; }
}

/* Promoters: the chairman's photo with a polished Viola slab offset behind it (the brochure's frame), his text beside it. */
.promoters h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.chairman { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.chairman__photo { position: relative; margin: 0 14px 14px 0; }
.chairman__photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: url("../img/slab-1.webp") center / cover; transition: inset .6s var(--ease); }
.chairman__photo:hover::before { inset: 22px -22px -22px 22px; }
.chairman__photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 30%; outline: 1px solid var(--gold); }
.promoters h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.promoters .role { margin: 6px 0 16px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.promoters p { color: var(--ink-2); }
@media (max-width: 900px) { .chairman { grid-template-columns: minmax(0, 1fr); } }
/* Honours: as many a row as fit (six on a wide screen), each year on its own stretch of gold line marked with a
   diamond (one column on phones). */
.honours { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 40px 20px; list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; }
.honours li { position: relative; display: grid; align-content: start; gap: 6px; padding-top: 22px; border-top: 1px solid var(--gold); font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.honours li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; rotate: 45deg; background: var(--paper); border: 1px solid var(--gold); }
.honours b { font: 600 1.1rem/1 var(--display); color: var(--ink); }
@media (max-width: 900px) {
  .honours { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 1px solid var(--gold); margin-left: 5px; }
  .honours li { padding: 0 0 20px 22px; border-top: 0; }
  .honours li::before { top: 4px; left: -5px; }
}
/* Directors: round photos in a gold ring beside their text, two side by side (stacked on phones). */
.directors { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.director { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: start; }
.director img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center 22%; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold); transition: box-shadow .4s var(--ease); }
.director:hover img { box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold); }
@media (max-width: 900px) { .directors { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .director { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; } .director img { width: 80px; height: 80px; } }
/* The group's values over a pale wash of real stone. */
.values { margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3vw, 36px); border-top: 1px solid var(--gold);
          background: linear-gradient(rgba(250, 248, 244, .86), rgba(250, 248, 244, .86)), url("../img/blocks/t9-11-1-sm.webp") center / cover; }
.values p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.values ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 14px 0 0; padding: 0; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.values li { display: inline-flex; align-items: center; gap: 22px; }
.values li + li::before { content: ""; width: 6px; height: 6px; rotate: 45deg; border: 1px solid var(--gold); }

/* Group companies: photo cards that lift on hover, four a row (two on tablets, one on phones). */
.companies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.company { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; transition: transform .3s var(--ease); }
.company:hover { transform: translateY(-4px); }
.company .figure { aspect-ratio: 3 / 2; margin-bottom: 8px; border-bottom: 2px solid var(--gold); }
.company__sector { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.company h3 { font-size: 1.15rem; }
.company h3 span { display: inline-block; transition: transform .2s var(--ease); }
.company:hover h3 span { transform: translate(3px, -3px); }
.company p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.companies__also { margin: clamp(32px, 4vw, 48px) 0 0; padding-top: 16px; border-top: 1px solid var(--gold); font-size: .92rem; color: var(--ink-2); }
@media (max-width: 1000px) { .companies { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .companies { grid-template-columns: minmax(0, 1fr); } }

/* ========== Visit band (Home and About) ========== */
/* The quarry photo fills a wide band under a dark fade: a large "Arrange a Visit" link on the left, the head
   office address on the right (stacked on phones). The photo eases in a little while the link is hovered. */
.visit { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(380px, 48vw, 600px); }
.visit__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.visit::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21, 17, 15, .92) 0%, rgba(21, 17, 15, .4) 60%, rgba(21, 17, 15, .15) 100%); }
.visit__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; padding-block: clamp(40px, 6vw, 80px); }
.visit__action { display: grid; gap: 12px; color: var(--on-pit); text-decoration: none; }
.visit__label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-pit-muted); }
.visit__title {
  display: inline-flex; align-items: center; gap: .3em; padding-bottom: 10px;
  font: 600 clamp(2.4rem, 6vw, 5rem)/1 var(--display); letter-spacing: -.03em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size .4s var(--ease);
}
.visit__title .arrow { transition: transform .3s var(--ease); }
.visit__action:hover .visit__title { background-size: 40% 2px; }
.visit__action:hover .arrow { transform: translateX(12px); }
.visit:has(.visit__action:hover) .visit__photo { transform: scale(1.04); }
.visit .place { margin: 0; }

/* ========== Contact ========== */
/* Two-column form (one column on phones); full-width fields span both. */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
/* Labels, with "(optional)" in a lighter weight. */
.field label { font-size: .9rem; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--muted); }
/* Inputs: square, 50 px tall, darker border on hover, wine border on focus, red when invalid. */
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 0; font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.field [aria-invalid="true"] { border-color: #9b2c2c; }
.field .err { color: #9b2c2c; font-size: .85rem; min-height: 0; }
/* Block tick-boxes: one row of small tags per stone, under the stone's name; a ticked block fills in wine.
   The real tick-box stays in place for keyboards and screen readers but is invisible; its tag shows the state. */
.block-checks { margin: 0; padding: 0; border: 0; min-width: 0; }
.block-checks legend { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 500; }
.block-checks legend .opt { font-weight: 400; color: var(--muted); }
.block-checks__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.block-checks__stone { flex-basis: 100%; margin: 0 0 2px; font-size: .8rem; color: var(--muted); }
.check { position: relative; cursor: pointer; }
.check input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); font-size: .9rem; font-variant-numeric: tabular-nums; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.check:hover span { border-color: var(--ink); }
.check input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.check input:checked + span::before { content: "✓"; font-size: .8rem; }
.check input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

/* Send button row and the status message after sending. */
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form__status { font-size: .95rem; color: var(--ink-2); }
/* Contact details list: label column and value column. */
.contact-list { margin: 0; border-top: 1px solid var(--ink); }
.contact-list div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-list dt { color: var(--muted); font-size: .9rem; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

/* ========== Footer ========== */
/* Dark footer: three columns (stacked on phones) and a bottom line. */
.site-footer { border-top: 1px solid var(--line-pit); background: var(--pit); color: var(--on-pit-muted); padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer .wordmark { color: var(--on-pit); font-size: 1.3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-pit); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid p { max-width: 36ch; margin-top: 16px; }
.footer-grid h2 { font: 500 .85rem/1 var(--text); letter-spacing: .02em; color: var(--on-pit); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.footer-grid a:hover { color: var(--on-pit); text-decoration: underline; }
.footer-grid address { font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .85rem; }

/* ========== Uses ========== */
/* Opening: a small label over the heading, and a note that the interior photographs are illustrations. SOT:ILLUSTRATION_PHOTOS */
.eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
/* The photo is mirrored so its subject stands on the right, and the fade darkens the left, behind the text
   (phones keep the fade from the bottom, as the text spans the width). */
.opening--side .opening__photo { scale: -1 1; object-position: 25% 50%; } /* 25% before mirroring: the tub side stays in view on phones */
@media (min-width: 761px) {
  .opening--side::after { background: linear-gradient(90deg, rgba(21, 17, 15, .92) 0%, rgba(21, 17, 15, .65) 38%, rgba(21, 17, 15, .05) 72%); }
}
.uses-opening h1 { max-width: 16ch; }
.uses-opening .lede { max-width: 46ch; }
.uses-opening .lede { margin-top: 20px; }
.photo-note { margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
/* The uses as a photo mosaic: two wide cards beside a tall one, then three tall cards in a row; each photo has its
   number, use and line on a dark fade at its foot, and zooms in slowly on hover. */
.use-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 22vw, 320px); gap: clamp(12px, 1.6vw, 20px); }
.use { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; margin: 0; border-radius: 20px; background: var(--pit-2); }
.use--wide { grid-column: span 7; }
.use--tall { grid-column: span 5; grid-row: span 2; }
.use--third { grid-column: span 4; grid-row: span 2; }
.use img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.use:hover img { transform: scale(1.05); }
.use::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21, 17, 15, .88) 0%, rgba(21, 17, 15, .4) 40%, rgba(21, 17, 15, 0) 68%); }
.use figcaption { padding: clamp(18px, 2.2vw, 28px); color: var(--on-pit); }
.use h3 { color: var(--on-pit); }
.use p { margin: 8px 0 0; max-width: 40ch; font-size: .95rem; color: rgba(237, 231, 223, .82); }
/* The small gold number before each use (also on Backlit panels). */
.use__no { display: block; margin-bottom: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; color: #e7c9a0; }
/* Tablets: two columns, gaps filled in order; phones: one card a row. */
@media (max-width: 900px) {
  .use-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; grid-auto-flow: dense; }
  .use--wide { grid-column: 1 / -1; }
  .use--tall, .use--third { grid-column: span 1; }
}
@media (max-width: 560px) {
  .use-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 320px; }
  .use--tall, .use--third { grid-row: span 1; }
}
/* Backlit panels: our slab sits dark until its light is on (pages.js bindBacklight); then it brightens, a warm glow
   blooms through it and gently breathes, and a soft halo spreads around the frame. */
.backlit .btn { margin-top: 28px; }
.backlight { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; background: #000; transition: box-shadow 1.6s var(--ease); }
/* The slab is zoomed towards its right side, which keeps a window's reflection on the polish out of the frame. */
.backlight img { width: 100%; height: 100%; object-fit: cover; scale: 1.6; transform-origin: 85% 50%; filter: brightness(.35) saturate(.7); transition: filter 1.6s var(--ease); }
.backlight::after {
  content: ""; position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; transition: opacity 1.6s var(--ease);
  background: radial-gradient(60% 70% at 50% 50%, rgba(255, 222, 190, .6), rgba(255, 170, 150, .18) 55%, transparent 80%);
}
.backlight.is-lit { box-shadow: 0 0 90px 12px rgba(231, 160, 170, .22); }
.backlight.is-lit img { filter: brightness(1.15) saturate(1.3) contrast(1.05); }
.backlight.is-lit::after { opacity: 1; animation: backlight-breathe 4s ease-in-out 1.6s infinite alternate; }
@keyframes backlight-breathe { to { opacity: .6; } }
/* Which block for which use: three columns under gold rules (stacked on tablets and phones). */
.match { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.match li { padding-top: 22px; border-top: 1px solid var(--gold); }
.match h3 { margin-bottom: 10px; font-size: 1.3rem; }
.match p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .match { grid-template-columns: minmax(0, 1fr); } }

/* ========== Reduced motion ========== */
/* Visitors who ask for less motion get every animation and transition finished instantly. SOT:MOTION_AT_REST */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
}
