/* SmartStack page mockup: base.css
   Tokens, reset, type, layout, themes, nav, footer and the shared components.
   The page must read properly with this file alone: css/motion.css only adds animation start states.
   Section styles live in css/sections/<id>.css, every selector scoped under #<id>. */

/* ------------------------------------------------------------------ tokens (brief 6) */
:root {
  /* dark surfaces, a stepped ladder */
  --ink: #0b0b0d; --ink-2: #141416; --ink-3: #1c1c20; --ink-4: #26262b;
  /* light surfaces */
  --paper: #f5f2ed; --paper-2: #ece7df; --paper-3: #e2dcd2;
  --paper-lift: #fbf9f5;                 /* a raised card on light and studio */
  --studio-floor: #f3ebe0;               /* bottom edge of the hero frames */
  --yellow: #FFCB3E;                     /* the only accent */
  --yellow-hover: #ffd561;
  --yellow-ink: #8a6400;                 /* yellow-family text on light, 4.7:1 on paper */
  --line-light: rgba(11,11,13,.12); --line-dark: rgba(255,255,255,.12);
  --muted-light: rgba(11,11,13,.58); --muted-dark: rgba(255,255,255,.62);
  --glass-light: rgba(245,242,237,.62); --glass-dark: rgba(20,20,22,.55);
  /* the Kingdom website's look (31 Oct 2026): square corners and light shadows, as on kingdomfurniture.co.za */
  --shadow-float: 0 0 0 1px rgba(11,11,13,.05), 0 22px 48px -12px rgba(11,11,13,.16);
  --shadow-soft: 0 10px 28px rgba(11,11,13,.08);
  --r-card: 0px; --r-media: 0px; --r-pill: 0px;
  --gutter: clamp(16px, 5.128vw, 88px);

  /* type */
  /* the website's type (31 Oct 2026): Avenir Next throughout, light headings, labels in spaced capitals (no mono) */
  --font-sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: var(--font-sans);
  --fs-xl: clamp(36px, 3.7vw, 56px);
  --fs-l: clamp(30px, 3vw, 46px);
  --fs-m: clamp(20px, 1.7vw, 26px);
  --fs-body-l: 18px;
  --fs-body: 16px;
  --fs-label: 11px;
  --fs-caption: 12.5px;

  /* layout */
  --max: 1440px;
  --col-gap: 24px;
  --section-pad: clamp(96px, 14vh, 180px);
  --nav-top: 0px; --nav-h: 72px;          /* the website's header bar (64px on phones) */
  --nav-clear: 84px;                     /* keep content in pinned sections below this */

  /* motion (JS uses SS.motion: power3.out 0.8 s, scrub 0.6) */
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  --dur-hover: .3s;
  --dur-theme: .6s;

  /* theme defaults (light), so components work outside any [data-theme] */
  --bg: var(--paper); --fg: var(--ink); --muted: var(--muted-light); --line: var(--line-light);
  --card: var(--paper-lift); --card-hover: #fff; --media-bg: var(--paper-3);
  --accent-ink: var(--yellow-ink); --focus: var(--ink);
  --glow-fill: rgba(255,196,46,.34); --glow-ring: rgba(226,160,0,.95);
  --grid-line: rgba(11,11,13,.10);
  --grid-mark-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cpath d='M66.5 72.5h12M72.5 66.5v12' fill='none' stroke='%230b0b0d' stroke-opacity='.42' stroke-width='1'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ themes: each sets --bg --fg --muted --line for its content */
[data-theme="light"], [data-theme="studio"], [data-theme="paper"] {
  --fg: var(--ink); --muted: var(--muted-light); --line: var(--line-light);
  --card: var(--paper-lift); --card-hover: #fff; --media-bg: var(--paper-3);
  --accent-ink: var(--yellow-ink); --focus: var(--ink);
  --glow-fill: rgba(255,196,46,.34); --glow-ring: rgba(226,160,0,.95);
  --grid-line: rgba(11,11,13,.10);
  --grid-mark-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cpath d='M66.5 72.5h12M72.5 66.5v12' fill='none' stroke='%230b0b0d' stroke-opacity='.42' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: light;
}
[data-theme="light"]  { --bg: var(--paper); }
[data-theme="studio"] { --bg: var(--studio-floor); }
[data-theme="paper"]  { --bg: var(--paper-2); --card: var(--paper); --card-hover: var(--paper-lift); --media-bg: var(--paper-3); }
[data-theme="dark"] {
  --bg: var(--ink); --fg: var(--paper); --muted: var(--muted-dark); --line: var(--line-dark);
  --card: var(--ink-2); --card-hover: var(--ink-3); --media-bg: var(--ink-3);
  --accent-ink: var(--yellow); --focus: var(--yellow);
  --glow-fill: rgba(255,203,62,.20); --glow-ring: rgba(255,203,62,.85);
  --grid-line: rgba(255,255,255,.10);
  --grid-mark-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cpath d='M66.5 72.5h12M72.5 66.5v12' fill='none' stroke='%23ffffff' stroke-opacity='.45' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* scroll-padding keeps whatever the browser scrolls into view (focus, a failed form check, scrollIntoView) clear
   of the fixed nav and off the bottom edge; window.scrollTo ignores it, so core's jumps, the pins and ?seek do not move.
   30px under the bar: a field's label (22px above the field) then clears the bar by 8px */
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-top) + var(--nav-h) + 30px); scroll-padding-bottom: 18vh;
}
body {
  min-height: 100vh;
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55; font-weight: 400;
  color: var(--ink); background-color: var(--studio-floor);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur-theme) ease, color var(--dur-theme) ease;
}
/* The page background follows the section crossing 55% of the viewport (core.js sets data-page-theme). */
body[data-page-theme="studio"] { background-color: var(--studio-floor); color: var(--ink); }
body[data-page-theme="light"]  { background-color: var(--paper); color: var(--ink); }
body[data-page-theme="paper"]  { background-color: var(--paper-2); color: var(--ink); }
body[data-page-theme="dark"]   { background-color: var(--ink); color: var(--paper); }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: 400; }
p, h1, h2, h3, h4, h5, h6, li, dd, dt { overflow-wrap: break-word; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ type */
.t-xl, .t-l, .t-m, .t-stat { font-family: var(--font-sans); text-wrap: balance; font-kerning: normal; }
.t-xl   { font-size: var(--fs-xl); line-height: 1.08; font-weight: 300; letter-spacing: -0.01em; }
.t-l    { font-size: var(--fs-l);  line-height: 1.12; font-weight: 300; letter-spacing: -0.008em; }
.t-m    { font-size: var(--fs-m);  line-height: 1.25; font-weight: 400; letter-spacing: 0; }
.t-stat { font-size: var(--fs-l);  line-height: 1.05; font-weight: 300; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.t-body-l { font-size: var(--fs-body-l); line-height: 1.6; font-weight: 400; letter-spacing: 0; max-width: 52ch; text-wrap: pretty; color: color-mix(in srgb, var(--fg) 84%, transparent); }
.t-body   { font-size: var(--fs-body); line-height: 1.6; font-weight: 400; text-wrap: pretty; }
.t-label  {
  font-family: var(--font-sans); font-size: var(--fs-label); line-height: 1.25; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
}
/* captions sit in the shadows of floating frames, so they are a touch stronger than --muted (4.5:1 there) */
.caption { font-size: var(--fs-caption); line-height: 1.45; font-weight: 400; letter-spacing: 0; color: color-mix(in srgb, var(--fg) 66%, transparent); max-width: 64ch; }
.t-muted { color: var(--muted); }
.t-accent { color: var(--accent-ink); }
[data-count] { font-variant-numeric: tabular-nums; }
.link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--dur-hover) ease;
}
.link:hover { text-decoration-color: currentColor; }
@media (max-width: 767.98px) {
  .t-body-l { font-size: 17px; }
}

/* Masked line reveal (SS.revealLines). The mask is padded so descenders are not clipped, and pulled back by the
   same amount, so a split heading is exactly as tall as the plain one. Between two masks the negative margins
   collapse to the larger one (-.18em), so the second rule restores the full -.28em; without it each line break
   gained .1em and everything below a heading jumped when its reveal ended and the split was undone. */
.ss-line-mask { display: block; overflow: clip; padding-block: .1em .18em; margin-block: -.1em -.18em; }
.ss-line-mask + .ss-line-mask { margin-top: -.28em; }
.ss-line { display: block; }

/* ------------------------------------------------------------------ eyebrow
   <p class="eyebrow"><span class="eyebrow__num">01</span><span class="eyebrow__text">The range</span></p> */
/* since 31 Oct 2026 the website's kicker: small spaced capitals in grey, the number in the accent */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-sans); font-size: var(--fs-label); line-height: 1.2; font-weight: 600;
  text-transform: uppercase; letter-spacing: .36em; color: var(--muted);
}
.eyebrow__num { display: inline-flex; align-items: center; color: var(--accent-ink); letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ layout */
main { display: block; overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.col-1 { grid-column: auto / span 1; }   .col-2 { grid-column: auto / span 2; }   .col-3 { grid-column: auto / span 3; }
.col-4 { grid-column: auto / span 4; }   .col-5 { grid-column: auto / span 5; }   .col-6 { grid-column: auto / span 6; }
.col-7 { grid-column: auto / span 7; }   .col-8 { grid-column: auto / span 8; }   .col-9 { grid-column: auto / span 9; }
.col-10 { grid-column: auto / span 10; } .col-11 { grid-column: auto / span 11; } .col-12 { grid-column: 1 / -1; }
.start-1 { grid-column-start: 1; }   .start-2 { grid-column-start: 2; }   .start-3 { grid-column-start: 3; }
.start-4 { grid-column-start: 4; }   .start-5 { grid-column-start: 5; }   .start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }   .start-8 { grid-column-start: 8; }   .start-9 { grid-column-start: 9; }
.start-10 { grid-column-start: 10; } .start-11 { grid-column-start: 11; } .start-12 { grid-column-start: 12; }
@media (max-width: 767.98px) {
  .grid-12 { row-gap: var(--col-gap); }
  .grid-12 > * { grid-column: 1 / -1; }  /* phones: everything stacks */
}

/* A section paints its own --bg, fading to transparent over --theme-edge at its top and bottom, so its content
   always sits on its own colour while the body colour (which follows the section crossing 55% of the viewport)
   eases through the joins between sections. --theme-edge stays smaller than the section padding.
   Where a light section (studio, light, paper) meets a dark one, core.js marks both sides data-edge-*="hard":
   that edge is solid, so the join is one clean line instead of a grey band (--edge-top / --edge-bottom, which a
   section's own background can use too). Joins between close tones keep the soft fade.
   .ss-section--solid: a hard edge. .ss-section--clear: fully transparent (the body colour shows through). */
.ss-section {
  --theme-edge: clamp(56px, 9vh, 128px);
  --edge-top: var(--theme-edge); --edge-bottom: var(--theme-edge);
  position: relative; padding-block: var(--section-pad); color: var(--fg);
  background: linear-gradient(to bottom, transparent, var(--bg) var(--edge-top), var(--bg) calc(100% - var(--edge-bottom)), transparent);
}
.ss-section[data-edge-top="hard"] { --edge-top: 0px; }
.ss-section[data-edge-bottom="hard"] { --edge-bottom: 0px; }
.ss-section--solid { background: var(--bg); }
.ss-section--clear { background: none; }

/* ------------------------------------------------------------------ buttons
   <a class="btn btn--yellow" href="#enquire">Request group pricing</a>
   <a class="btn btn--ghost" href="assets/SmartStack-brochure.pdf">Download the brochure</a>
   optional icon: <svg class="btn__icon" viewBox="0 0 16 16" aria-hidden="true">...</svg> */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 26px; border-radius: 0; border: 1.5px solid transparent;
  font-family: var(--font-sans); font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: .03em;
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.btn--yellow { background: var(--yellow); color: #111; border-color: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn--yellow:active { background: #f2bd2c; border-color: #f2bd2c; }
.btn--ghost { background: transparent; color: var(--fg); border-color: color-mix(in srgb, currentColor 70%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 7%, transparent); border-color: currentColor; }
.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: 13.5px; }
.btn__icon { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform var(--dur-hover) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ media: rounded, inset, never edge to edge
   <figure class="media media--float media--4x3"><img src="assets/img/x.jpg" alt="..." data-parallax="0.08"></figure> */
.media { position: relative; overflow: hidden; border-radius: var(--r-media); background: var(--media-bg); isolation: isolate; }
.media > img, .media > video, .media > canvas, .media > picture, .media > picture > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.media--float { box-shadow: var(--shadow-float); }
.media--soft { box-shadow: var(--shadow-soft); }
.media--16x9 { aspect-ratio: 16 / 9; }  .media--16x10 { aspect-ratio: 16 / 10; } .media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }    .media--1x1 { aspect-ratio: 1; }          .media--4x5 { aspect-ratio: 4 / 5; }
.media--3x4 { aspect-ratio: 3 / 4; }

/* Notched card (SS.applyNotch sets a clip-path, which also clips box-shadow): wrap it in .notch-shadow
   for a drop shadow that follows the notch, and put the label in the notch on the section background.
   <div class="notch"><div class="notch-shadow"><div class="media" id="..."><video ...></video></div></div>
     <p class="notch__label t-label">01 / Stacks</p></div> */
.notch { position: relative; }
.notch-shadow { filter: drop-shadow(0 28px 36px rgba(11,11,13,.22)) drop-shadow(0 8px 12px rgba(11,11,13,.10)); }
[data-theme="dark"] .notch-shadow { filter: none; }
.notch__label { position: absolute; left: 0; top: 0; display: flex; align-items: center; height: 44px; padding-left: 4px; color: var(--fg); }

/* ------------------------------------------------------------------ cards and the cursor glow (brief 8.6)
   <article class="card" data-glow><p class="t-label">01</p><h3 class="t-m">...</h3>
     <div class="card__detail"><p>one-line detail, opens on hover</p></div></article> */
.card { position: relative; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 2.2vw, 32px); }
[data-glow] {
  position: relative; isolation: isolate; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line);
  transition: background-color var(--dur-hover) ease, border-color var(--dur-hover) ease;
}
[data-glow]:hover, [data-glow].is-active { background: var(--card-hover); }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow-fill), transparent 60%);
  opacity: 0; transition: opacity var(--dur-hover) ease;
}
[data-glow]::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--glow-ring), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity var(--dur-hover) ease;
}
[data-glow]:hover::before, [data-glow]:hover::after, [data-glow]:focus-visible::before, [data-glow]:focus-visible::after,
[data-glow]:focus-within::before, [data-glow]:focus-within::after, [data-glow].is-active::before, [data-glow].is-active::after { opacity: 1; }
.card__detail {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows var(--dur-hover) var(--ease-out), opacity var(--dur-hover) ease;
}
.card__detail > * { overflow: hidden; min-height: 0; }
[data-glow]:hover .card__detail, [data-glow]:focus-within .card__detail, [data-glow].is-active .card__detail { grid-template-rows: 1fr; opacity: 1; }
@media (hover: none) { .card__detail { grid-template-rows: 1fr; opacity: 1; } }

/* ------------------------------------------------------------------ chips (colourways, filters)
   <button class="chip" data-glow aria-pressed="true"><span class="chip__dots"><i class="chip__dot" style="--c:#2b2b2e"></i>
     <i class="chip__dot" style="--c:#b9b4ac"></i></span>Stainless steel and black oak</button> */
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); color: var(--fg);
  font-size: 14px; line-height: 1.2; font-weight: 400; letter-spacing: -.005em; text-align: left;
  transition: background-color var(--dur-hover) ease, border-color var(--dur-hover) ease;
}
.chip[data-glow] { border-radius: var(--r-pill); }
.chip:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { border-color: color-mix(in srgb, var(--fg) 62%, transparent); background: var(--card-hover); }
.chip__dots { display: inline-flex; flex: none; }
.chip__dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--paper-3)); box-shadow: inset 0 0 0 1px rgba(11,11,13,.16); }
.chip__dot + .chip__dot { margin-left: -4px; }

/* ------------------------------------------------------------------ perspective grid with + marks (brief 8.5)
   Put it in a positioned container that clips: <div class="grid-stage"><div class="grid-plane" aria-hidden="true"></div>...</div>
   To drift the floor, put the pattern on a child of the plane and move that child with a plain transform, wrapped
   to one 72px cell (the range's old cards did this, see _source/Replaced sections). Tweening --grid-x / --grid-y works
   but makes Chrome repaint and re-raster the big masked, tilted plane on every frame. */
.grid-stage { position: relative; overflow: clip; }
.grid-plane {
  --grid-size: 72px; --grid-x: 0px; --grid-y: 0px; --grid-tilt: 74deg; --grid-persp: 900px;
  position: absolute; left: 50%; bottom: -8%; width: 180vmax; height: 90vmax;
  transform: translateX(-50%) perspective(var(--grid-persp)) rotateX(var(--grid-tilt)); transform-origin: 50% 100%;
  background-image:
    var(--grid-mark-img),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: calc(var(--grid-size) * 2) calc(var(--grid-size) * 2), var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
  background-position: var(--grid-x) var(--grid-y);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mix-blend-mode: multiply; pointer-events: none;
}
[data-theme="dark"] .grid-plane { mix-blend-mode: screen; }
.grid-plane--flat { left: 0; right: 0; top: 0; bottom: 0; width: auto; height: auto; transform: none; }

/* ------------------------------------------------------------------ nav: the Kingdom website's header (31 Oct 2026)
   A solid #111 bar across the top, as on kingdomfurniture.co.za: the white Kingdom logo, the website's pages with
   SmartStack in yellow (the page you are on) and "Contact us" in a yellow outline, which jumps to the enquiry form.
   Core.js still sets body[data-nav-theme] as edges pass the bar's centre line; the solid bar no longer follows it. */
.nav {
  --nav-fg: #fff; --nav-line: rgba(255,255,255,.14); --focus: var(--yellow);
  position: fixed; z-index: 1000; top: var(--nav-top); left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 40px;
  background: #111; color: var(--nav-fg);
}
.nav__brand { display: inline-flex; align-items: center; flex: none; height: 100%; }
.nav__logo { display: block; width: auto; height: 19px; }
.nav__links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13.5px; line-height: 1; color: rgba(255,255,255,.72); }
.nav__links a { position: relative; padding-block: 10px; transition: color var(--dur-hover) ease; }
.nav__links a:hover { color: #fff; }
.nav .nav__here { color: var(--yellow); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__cta.btn {
  --btn-h: 38px; padding: 0 16px; border-color: var(--yellow); background: transparent; color: var(--yellow);
  font-size: 13.5px; letter-spacing: 0;
}
.nav__cta.btn:hover { background: var(--yellow); color: #111; }
.nav__menu {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.3); color: var(--nav-fg);
}
.nav__menu-icon { position: relative; display: block; width: 16px; height: 7px; }
.nav__menu-icon::before, .nav__menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--dur-hover) var(--ease-out), top var(--dur-hover) var(--ease-out);
}
.nav__menu-icon::before { top: 0; }
.nav__menu-icon::after { top: 5.5px; }
.nav__menu[aria-expanded="true"] .nav__menu-icon::before { top: 2.75px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon::after { top: 2.75px; transform: rotate(-45deg); }
/* the menu drops from the bar, full width, on the same #111. It never runs past the screen (a phone on its side):
   it scrolls inside itself instead */
.nav__panel {
  position: absolute; top: 100%; left: 0; right: 0; padding: 4px 24px 14px;
  max-height: calc(100vh - var(--nav-top) - var(--nav-h));
  max-height: calc(100svh - var(--nav-top) - var(--nav-h));
  overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--nav-line); background: #111; color: var(--nav-fg);
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.5);
}
.nav__panel:not([hidden]) { animation: ss-nav-panel .3s var(--ease-out); }
.nav__panel a {
  display: block; padding: 15px 0; font-size: 17px; line-height: 1.2; color: rgba(255,255,255,.8);
  border-bottom: 1px solid var(--nav-line);
}
.nav__panel a:last-child { border-bottom: 0; }
@keyframes ss-nav-panel { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-height: 480px) {
  .nav__panel a { padding: 10px 0; font-size: 16px; }
}
/* under the open menu (core.js shows it): takes the tap that closes the menu, so that tap reaches nothing else */
.nav-scrim { position: fixed; inset: 0; z-index: 999; }
@media (max-width: 1099.98px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__actions { margin-left: auto; }
  /* 48px hit areas round the 40px menu button and the button beside it, with no change in look */
  .nav__menu, .nav__cta { position: relative; }
  .nav__menu::after, .nav__cta::after { content: ""; position: absolute; inset: -4px; }
}
@media (max-width: 599.98px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 16px; gap: 10px; }
  .nav__logo { height: 15px; }
  .nav__cta.btn { --btn-h: 36px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 379.98px) {
  .nav__logo { height: 13px; }
}

/* ------------------------------------------------------------------ footer: the Kingdom website's footer (31 Oct 2026)
   Black, the white logo with the company line, the website's pages and its contact details, as on kingdomfurniture.co.za */
.site-footer { position: relative; background-color: #000; color: rgba(255,255,255,.6); padding: 60px 0 36px; font-size: 13.5px; line-height: 1.5; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.site-footer__logo { display: block; width: auto; height: 19px; }
.site-footer__line { margin-top: 20px; max-width: 340px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.6); text-wrap: pretty; }
.site-footer__head { margin-bottom: 14px; font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #fff; }
.site-footer__col a, .site-footer__col span { display: block; line-height: 2; }
.site-footer__col a { transition: color var(--dur-hover) ease; }
.site-footer__col a:hover { color: #fff; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
}
.site-footer__copy { font-size: 12px; color: rgba(255,255,255,.6); }
@media (max-width: 767.98px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ------------------------------------------------------------------ test hooks */
/* ?seek (html.seek-mode): no CSS transitions, no CSS animation time, no smooth scrolling, so a headless
   screenshot shows the settled state. */
html.seek-mode { scroll-behavior: auto !important; }
html.seek-mode *, html.seek-mode *::before, html.seek-mode *::after {
  transition-duration: 0s !important; transition-delay: 0s !important;
  animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
}
/* ?debug=1 or ?seek: errors collected into a red box, hidden when empty */
#ss-errors {
  position: fixed; left: 12px; bottom: 12px; z-index: 2147483647; margin: 0;
  max-width: min(760px, calc(100vw - 24px)); max-height: 42vh; overflow: auto;
  padding: 12px 14px; border-radius: 10px; background: #b00020; color: #fff;
  font: 12px/1.45 ui-monospace, Menlo, monospace; white-space: pre-wrap; box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* ------------------------------------------------------------------ reduced motion and no GSAP (html.is-static)
   Core adds html.is-static and removes html.has-motion, so motion.css start states never apply.
   Sections add their own "html.is-static #<id> ..." rules to lay pinned content out as normal flow. */
html.is-static *, html.is-static *::before, html.is-static *::after {
  transition-duration: 0s !important; transition-delay: 0s !important;
  animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}
