/* ==========================================================================
   TCL99 Australia - "Ember & Reef"
   Crimson sampled from the brand wordmark (#F90B22 / #7E0610), one sharp
   accent in reef aqua, on a graphite ink ground. No gold anywhere.
   Display: Gelasio (true italic). Body: Alexandria.
   ========================================================================== */

:root {
  /* brand - sampled from the TCL99 wordmark */
  --brand: #E01228;
  --brand-dark: #7E0610;
  --brand-light: #FF4D5C;

  /* the single accent */
  --accent: #1FD9C0;
  --accent-warm: #15B8A2;
  --accent-soft: rgba(31, 217, 192, .12);

  /* ground */
  --bg: #0D0E12;
  --bg-card: #15171D;
  --bg-elevated: #1C1F27;
  --bg-panel: #090A0D;

  /* type */
  --text: #ECEEF2;
  --text-muted: #A6AEBD;
  --text-dim: #727C8E;
  --text-on-dark: #ECEEF2;

  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --border-soft: rgba(255, 255, 255, .05);

  --font-body: "Alexandria", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Gelasio", Georgia, "Times New Roman", serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --card-radius: 18px;

  --shadow-soft: 0 6px 18px rgba(0, 0, 0, .38);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, .46), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-card-hover: 0 22px 54px rgba(0, 0, 0, .56), 0 3px 10px rgba(224, 18, 40, .18);
  --shadow-cta: 0 10px 26px rgba(224, 18, 40, .34);

  --container: 1200px;
  --container-wide: 1320px;
  --header-top-h: 2.25rem;
  --header-main-h: 4.5rem;
  --header-h: calc(var(--header-top-h) + var(--header-main-h));
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand-light); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 .7em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); line-height: 1.12; }
h2 { font-size: clamp(1.62rem, 3.3vw, 2.45rem); }
h3 { font-size: clamp(1.22rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.04rem; }
p  { margin: 0 0 1.15rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.15rem; }
li { margin-bottom: .55rem; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: 1rem; z-index: 200;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-sm); font-size: .9rem; font-weight: 500;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* ---------- the width law (D1): one pair of guide lines ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- the signature ornament: the twin bead ---------- */
/* Two touching discs, crimson leading + aqua trailing - the brand's "99". */
.bead {
  display: inline-flex; align-items: center; gap: 3px;
  vertical-align: middle; flex: none;
}
.bead::before, .bead::after {
  content: ""; border-radius: 50%; display: block;
}
.bead::before { width: 9px; height: 9px; background: var(--brand); }
.bead::after  { width: 6px; height: 6px; background: var(--accent); }

/* ---------- kickers (words only - never a tally, R13) ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.highlight {
  /* inline-block creates a break opportunity after it, so keep the word
     and any punctuation that follows together */
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  color: var(--brand-light);
  position: relative;
  line-height: 1.1;
  padding-bottom: .09em;
  display: inline-block;
}
.highlight::after {
  content: ""; position: absolute;
  left: -.04em; right: -.04em; bottom: .04em; height: .3em;
  background: rgba(224, 18, 40, .26);
  border-radius: 3px;
  z-index: -1;
}

/* ==========================================================================
   HEADER - sticky, two rows, both dark (the wordmark is light-on-black)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  background: rgba(9, 10, 13, .97);
  backdrop-filter: blur(10px);
}

.header-top {
  background: #050608;
  border-bottom: 1px solid var(--border-soft);
  font-size: .74rem;
  color: var(--text-dim);
}
.header-top .container {
  min-height: var(--header-top-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.trust-line { display: flex; align-items: center; gap: .55rem; letter-spacing: .04em; }
.trust-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(31, 217, 192, .6);
}
@media (prefers-reduced-motion: no-preference) {
  .trust-dot { animation: pulseDot 2.6s ease-out infinite; }
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(31, 217, 192, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(31, 217, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 217, 192, 0); }
}
.util-nav { display: flex; gap: 1.3rem; }
.util-nav a { color: var(--text-dim); font-size: .74rem; letter-spacing: .04em; }
.util-nav a:hover { color: var(--accent); }

.header-main .container {
  min-height: var(--header-main-h);
  display: flex; align-items: center; gap: 1.6rem;
}
.brand-mark { display: flex; align-items: center; flex: none; }
.brand-mark img { height: 42px; width: auto; object-fit: contain; }

.main-nav { margin-left: auto; position: relative; }
.main-nav ul {
  list-style: none; display: flex; gap: 1.75rem;
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--text-muted); font-size: .88rem; font-weight: 400;
  padding: .45rem 0; display: block; letter-spacing: .01em;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.nav-indicator {
  position: absolute; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), width .34s cubic-bezier(.16, 1, .3, 1), opacity .2s;
  opacity: 0; width: 0; left: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .nav-indicator { transition: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; white-space: nowrap;
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 500; letter-spacing: .01em;
  padding: .78rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }

/* three CTA colour variants */
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: #F42134; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(224, 18, 40, .46); }

.btn-accent {
  background: var(--accent); color: #07140F;
  box-shadow: 0 10px 26px rgba(31, 217, 192, .26);
}
.btn-accent:hover { background: #34EBD2; color: #07140F; transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--brand-light);
  border-color: rgba(255, 77, 92, .5);
}
.btn-ghost:hover { background: rgba(224, 18, 40, .12); color: var(--brand-light); border-color: var(--brand-light); }

.btn-sm { padding: .62rem 1.2rem; font-size: .82rem; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); cursor: pointer;
  padding: 0; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }

.header-cta { flex: none; }

/* ==========================================================================
   HERO - "the louvre"
   The art plane is cut into five vertical slats hung from the band's top
   edge at unequal depths, like a half-open blind. One photograph reads
   continuously across the gaps via per-slat background-position.
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-panel);
  padding: 3.4rem 0 0;
  overflow: hidden;
}
.hero::before {
  /* off-canvas ember glow */
  content: ""; position: absolute;
  top: -22%; right: -14%; width: 58%; height: 130%;
  background: radial-gradient(circle, rgba(224, 18, 40, .24), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute;
  bottom: -30%; left: -12%; width: 46%; height: 110%;
  background: radial-gradient(circle, rgba(31, 217, 192, .12), transparent 64%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.louvre {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  height: clamp(420px, 52vw, 560px);
  align-items: start;
}
.louvre-slat {
  position: relative;
  border-radius: 0 0 var(--r-md) var(--r-md);
  overflow: hidden;
  background-color: #11131A;
  background-repeat: no-repeat;
  /* the single photograph, stretched across all five slats */
  background-size: calc(var(--container) - 3rem) 100%;
}
.louvre-slat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(5, 6, 8, .18) 0%, rgba(5, 6, 8, .62) 58%, rgba(5, 6, 8, .9) 100%);
}
.louvre-slat:nth-child(1) { height: 72%;  background-position-x: 0; }
.louvre-slat:nth-child(2) { height: 100%; background-position-x: calc((var(--container) - 3rem) / -5 - 2px); }
.louvre-slat:nth-child(3) { height: 84%;  background-position-x: calc((var(--container) - 3rem) / -5 * 2 - 4px); }
.louvre-slat:nth-child(4) { height: 94%;  background-position-x: calc((var(--container) - 3rem) / -5 * 3 - 6px); }
.louvre-slat:nth-child(5) { height: 64%;  background-position-x: calc((var(--container) - 3rem) / -5 * 4 - 8px); }

/* the copy slab, pinned to the left guide line, overlapping the first slats */
.hero-copy {
  position: absolute;
  left: 0; bottom: 0;
  width: min(60%, 620px);
  background: linear-gradient(145deg, rgba(9, 10, 13, .96), rgba(13, 14, 18, .91));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.3rem 2.4rem 2.5rem;
  z-index: 3;
  box-shadow: var(--shadow-card);
}
.hero-copy h1 { margin-bottom: .85rem; }
.hero-sub {
  color: var(--text-muted);
  font-size: 1.03rem;
  margin-bottom: 0;
}

.hero-foot {
  border-top: 2px solid var(--brand);
  margin-top: 2.1rem;
  padding-top: 1.5rem;
  margin-bottom: 4.9rem; /* reserve room for the stat strip's negative pull */
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  position: relative; z-index: 4;
}

/* the hero foreground object: "the plumb coin" */
.plumb {
  position: absolute;
  top: 0; right: 10%;
  width: 118px; height: 210px;
  z-index: 4;
  pointer-events: none;
  transform-origin: 50% 0;
}
.plumb-line {
  position: absolute; top: 0; left: 50%;
  width: 1px; height: 132px;
  background: linear-gradient(180deg, rgba(31, 217, 192, .7), rgba(31, 217, 192, .18));
}
.plumb-coin {
  position: absolute; top: 128px; left: 50%;
  width: 76px; height: 76px; margin-left: -38px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FF5566, var(--brand) 46%, var(--brand-dark) 100%);
  border: 2px solid rgba(255, 255, 255, .22);
  box-shadow: 0 12px 30px rgba(224, 18, 40, .4), inset 0 2px 8px rgba(255, 255, 255, .22);
  display: grid; place-items: center;
}
.plumb-coin .bead::before { width: 11px; height: 11px; background: #fff; }
.plumb-coin .bead::after  { width: 8px; height: 8px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .plumb { animation: plumbSwing 7s ease-in-out infinite; }
}
@keyframes plumbSwing {
  0%, 100% { transform: rotate(-4.5deg); }
  50%      { transform: rotate(4.5deg); }
}

/* ---------- hero-bridge stat strip (normal flow, never absolute) ---------- */
.stat-strip {
  position: relative;
  z-index: 6;
  margin-top: -3.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stat-cell {
  background: var(--bg-elevated);
  padding: 1.5rem 1.3rem;
  text-align: left;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  display: block;
}
.stat-label {
  font-size: .73rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); margin-top: .45rem; display: block;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 4.6rem 0; }
.section--tight { padding: 3.2rem 0; }
.section--panel { background: var(--bg-panel); }

.section-head { margin-bottom: 2.4rem; }
.section-head h2 { margin-bottom: .6rem; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.intro-block {
  border-left: 3px solid var(--brand);
  padding: .3rem 0 .3rem 1.6rem;
  color: var(--text-muted);
  margin-bottom: 2.4rem;
}
.intro-block p:last-child { margin-bottom: 0; }

.page-meta {
  font-size: .8rem; color: var(--text-dim);
  margin: -.2rem 0 1.6rem;
  letter-spacing: .02em;
}
.page-meta-author { color: var(--text-muted); }

/* ---------- cards ---------- */
.card, .plain-card, .support-card, .floor-tile, .bento-cell, .security-cell, .step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2rem 1.9rem;
  overflow: hidden;
  transition: transform .26s cubic-bezier(.16, 1, .3, 1), box-shadow .26s ease, border-color .26s ease;
}
.card::before, .plain-card::before, .support-card::before,
.floor-tile::before, .bento-cell::before, .security-cell::before, .step-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: .9;
}
.card::after, .plain-card::after, .floor-tile::after, .bento-cell::after,
.security-cell::after, .step-card::after {
  content: attr(data-mark);
  position: absolute; right: .9rem; bottom: .2rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  font-size: 4.4rem; line-height: 1;
  color: rgba(255, 255, 255, .035);
  pointer-events: none;
  transition: color .3s ease;
}
.card:hover, .plain-card:hover, .floor-tile:hover, .bento-cell:hover,
.security-cell:hover, .step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}
.card:hover::after, .plain-card:hover::after, .floor-tile:hover::after,
.bento-cell:hover::after, .security-cell:hover::after, .step-card:hover::after {
  color: rgba(224, 18, 40, .13);
}
@media (prefers-reduced-motion: reduce) {
  .card, .plain-card, .floor-tile, .bento-cell, .security-cell, .step-card { transition: none; }
  .card:hover, .plain-card:hover, .floor-tile:hover, .bento-cell:hover,
  .security-cell:hover, .step-card:hover { transform: none; }
}

.plain-card p:last-child, .card p:last-child, .floor-tile p:last-child { margin-bottom: 0; }

/* ---------- R3 floor grids ---------- */
.floor-grid { display: grid; gap: 1.3rem; }
.floor-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.floor-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.floor-tile h3 { color: var(--text); margin-bottom: .7rem; }
.floor-tile h3 + p { color: var(--text-muted); }

/* ---------- R4b rich tiles ---------- */
.floor-grid--rich { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.floor-grid--rich .floor-tile { padding: 2.4rem; }
.floor-grid--rich .floor-tile h3 { font-size: clamp(1.3rem, 2.2vw, 1.68rem); }
.floor-grid--rich .floor-tile h4 {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--brand);
  padding-top: .95rem;
  margin: 1.9rem 0 .9rem;
}
.floor-grid--rich .floor-tile ul {
  list-style: none; padding: 0; margin: 1.1rem 0 0;
  display: grid; gap: .75rem;
}
.floor-grid--rich .floor-tile li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1rem 1.45rem;
  margin: 0;
  color: var(--text-muted);
  overflow: hidden;
}
.floor-grid--rich .floor-tile li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.floor-grid--rich .floor-tile li strong { color: var(--text); font-weight: 600; }

/* ---------- split layout ---------- */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}
.split-layout--reverse .split-media { order: -1; }
.split-media img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.split-body p { color: var(--text-muted); }
.split-body p:last-child { margin-bottom: 0; }

/* ---------- feature check-list ---------- */
.feature-check-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .85rem;
}
.feature-check-list li {
  position: relative;
  padding: .95rem 1.15rem .95rem 3.15rem;
  background: linear-gradient(100deg, rgba(224, 18, 40, .07), rgba(31, 217, 192, .04));
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  color: var(--text-muted);
  margin: 0;
}
.feature-check-list li::before {
  content: ""; position: absolute;
  left: 1.1rem; top: 1.18rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 217, 192, .16);
}
.feature-check-list li::after {
  content: ""; position: absolute;
  left: 1.47rem; top: 1.46rem;
  width: 5px; height: 9px;
  border: solid #07140F; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.feature-check-list li strong { color: var(--text); font-weight: 600; }
.feature-check-list--plain { margin-top: 1.5rem; }

/* ---------- content tables (verbatim DOCX data) ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  max-width: calc(100vw - 3rem);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  margin: 0 0 1.5rem;
  background: var(--bg-card);
}
.content-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .9rem;
}
.content-table th, .content-table td {
  padding: .95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.content-table thead th {
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--brand);
}
.content-table tbody td { color: var(--text-muted); }
.content-table tbody td:first-child { color: var(--text); font-weight: 500; }
.content-table tbody tr:last-child td { border-bottom: 0; }
.content-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }

/* ---------- image divider (R5b: a contained figure, never a banner) ---------- */
.image-divider {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: stretch;
  margin: 3rem 0;
}
.image-divider figure {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.image-divider img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.divider-aside {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 1.9rem;
  display: flex; flex-direction: column; justify-content: center;
  gap: .8rem;
  position: relative;
  overflow: hidden;
}
.divider-aside::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}
.divider-aside .kicker { margin-bottom: 0; }
.divider-aside h3 { font-size: 1.28rem; margin-bottom: 0; }
.divider-rule {
  height: 2px; width: 62px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
}

/* ==========================================================================
   HOMEPAGE BESPOKE SECTIONS
   ========================================================================== */
.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: start;
}
.intro-stack { display: grid; gap: 1rem; }
.intro-stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 1.2rem 1.35rem;
}
.intro-stack-item strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .2rem; }
.intro-stack-item span { color: var(--text-muted); font-size: .92rem; }

/* bento floor: lead cell across the top, tiles below */
.bento-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}
.bento-cell--lead { grid-column: span 3; }
.bento-cell--lead h3 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }

/* rewards bento: welcome card top-left, VIP strip spanning the bottom */
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}
.rewards-bento .bento-cell--welcome { grid-column: span 2; }
.rewards-bento .bento-cell--strip { grid-column: span 3; }

/* art-deco security grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}
.security-cell { padding: 2.1rem 1.6rem; }
.security-cell .bead { margin-bottom: 1rem; }
.security-cell h3 { font-size: 1.1rem; }
.security-cell p { color: var(--text-muted); font-size: .93rem; margin-bottom: 0; }

/* editorial support card with the oversized italic watermark */
.support-card {
  padding: 3rem 2.6rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-panel));
}
.support-card::after {
  content: "TCL99";
  position: absolute; right: 1.2rem; bottom: -1.2rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  font-size: clamp(5rem, 15vw, 11rem); line-height: 1;
  color: rgba(224, 18, 40, .07);
  pointer-events: none; letter-spacing: -.04em;
}
.support-card > * { position: relative; z-index: 1; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.8rem;
}
.support-item {
  border-top: 2px solid var(--brand);
  padding-top: 1rem;
}
.support-item h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.support-item p { color: var(--text-muted); font-size: .93rem; margin-bottom: 0; }

/* ==========================================================================
   GAME SECTION - "the vane wall"
   Portrait tiles alternately rotated about the Y axis on a shared
   perspective, so adjacent tiles meet like the vanes of a turnstile.
   ========================================================================== */
.vane-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.vane {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, border-color .35s ease;
  transform-style: preserve-3d;
}
.vane:nth-child(odd)  { transform: rotateY(-9deg); transform-origin: right center; }
.vane:nth-child(even) { transform: rotateY(9deg);  transform-origin: left center; }
.vane:hover {
  transform: rotateY(0deg) translateZ(26px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand);
  z-index: 2;
}
.vane img {
  width: 100%; aspect-ratio: 26 / 38; object-fit: cover;
  transition: filter .35s ease;
  filter: saturate(.92) brightness(.9);
}
.vane:hover img { filter: saturate(1.05) brightness(1); }
.vane-name {
  display: block;
  padding: .7rem .75rem .8rem;
  font-size: .74rem;
  line-height: 1.35;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--brand), var(--accent)) 1;
  transition: color .3s ease;
}
.vane:hover .vane-name { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .vane, .vane:nth-child(odd), .vane:nth-child(even) { transform: none; transition: none; }
  .vane:hover { transform: none; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: .9rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) { .faq-item, .faq-item[open] { transition: none; transform: none; } }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3.4rem 1.25rem 1.5rem;
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.42;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute; right: 1.4rem; top: 1.5rem;
  width: 18px; height: 18px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
.faq-answer { padding: 0 1.5rem 1.4rem; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding-top: 0;
  margin-top: 5rem;
}
.footer-cta {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--r-xl);
  padding: 3rem 2.6rem;
  overflow: hidden;
  margin-top: -3.4rem;
  margin-bottom: 3.2rem;
  box-shadow: 0 24px 54px rgba(126, 6, 16, .44);
}
.footer-cta::after {
  content: "TCL99";
  position: absolute; right: 1rem; bottom: -1.6rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  font-size: clamp(5rem, 16vw, 12rem); line-height: 1;
  color: rgba(255, 255, 255, .1);
  letter-spacing: -.04em; pointer-events: none;
}
.footer-cta > * { position: relative; z-index: 1; }
.footer-cta h2 { color: #fff; margin-bottom: .6rem; }
.footer-cta p { color: rgba(255, 255, 255, .88); margin-bottom: 1.6rem; max-width: none; }
.footer-cta .btn-accent { box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }

.footer-map {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  padding-bottom: 2.6rem;
}
.footer-brand img { height: 40px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-dim); font-size: .9rem; }
.pay-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pay-pill {
  font-size: .72rem; letter-spacing: .05em;
  padding: .36rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  background: var(--bg-card);
}
.footer-col h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.footer-col .divider-rule { margin-bottom: 1rem; width: 40px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--text-dim); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: .7rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-soft);
}
.trust-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; letter-spacing: .04em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .45rem .95rem;
}

.copyright {
  border-top: 1px solid var(--border-soft);
  padding: 1.4rem 0 2rem;
  font-size: .8rem;
  color: var(--text-dim);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ==========================================================================
   404
   ========================================================================== */
.err { text-align: left; padding: 6rem 0 5rem; }
.err p.err-code {
  font-family: var(--font-heading);
  font-style: italic; font-weight: 700;
  font-size: clamp(8vw, 16vw, 22vw);
  line-height: .86;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--brand) 10%, var(--accent) 86%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -.04em;
}
.err h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
.err p { color: var(--text-muted); max-width: none; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
/* The revealed state must not declare `transform` at all: it would outrank the
   element's own layout offset or :hover lift and silently cancel it. The
   entrance runs as an animation with fill-mode `backwards`, so nothing of it
   survives past the last frame. */
.reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  animation: reveal-in .6s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms) backwards;
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .reveal.is-visible { animation: none; }
}

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav ul { gap: 1.2rem; }
  .vane-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .hero-copy { width: min(70%, 580px); }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .nav-indicator { display: none; }

  .main-nav {
    position: fixed; inset: 0;
    background: rgba(5, 6, 8, .97);
    backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s ease;
    z-index: 95;
    margin-left: 0;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .main-nav a { font-size: 1.3rem; font-family: var(--font-heading); color: var(--text); }
  body.nav-lock { overflow: hidden; }

  .louvre { height: auto; grid-template-columns: 1fr; gap: 0; }
  .louvre-slat { display: none; }
  .louvre-slat:nth-child(2) {
    display: block; height: 260px; border-radius: var(--r-xl);
    background-size: cover; background-position: center;
  }
  .hero-copy {
    position: static; width: 100%; margin-top: 1.4rem;
    padding: 1.9rem 1.6rem 2rem;
  }
  .plumb { display: none; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .floor-grid--cols-3, .floor-grid--cols-4,
  .security-grid, .bento-floor, .rewards-bento,
  .vane-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-cell--lead, .rewards-bento .bento-cell--welcome,
  .rewards-bento .bento-cell--strip { grid-column: span 2; }
  .split-layout, .home-intro-grid, .image-divider, .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .split-layout--reverse .split-media { order: 0; }
  .section { padding: 3.4rem 0; }
}

@media (max-width: 700px) {
  .util-nav { gap: .9rem; }
  .header-top .container { font-size: .68rem; }
  .support-card { padding: 2.2rem 1.5rem; }
  .footer-cta { padding: 2.2rem 1.5rem; }
}

@media (max-width: 560px) {
  .floor-grid--cols-2, .floor-grid--cols-3, .floor-grid--cols-4,
  .security-grid, .bento-floor, .rewards-bento, .footer-map {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-cell--lead, .rewards-bento .bento-cell--welcome,
  .rewards-bento .bento-cell--strip { grid-column: span 1; }
  .vane-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
  .trust-line span { display: none; }
  .card, .plain-card, .floor-tile, .bento-cell, .security-cell, .step-card { padding: 1.5rem 1.3rem; }
  .floor-grid--rich .floor-tile { padding: 1.6rem 1.35rem; }
  .hero-foot .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .table-wrap { max-width: calc(100vw - 2rem); }
  .header-top .util-nav { display: none; }
  .copyright { flex-direction: column; gap: .5rem; }
}
