/* ============================================================
   Clean Genius Dry Cleaning — design system

   Palette and photography are taken from the existing brand:
     · gold  — sampled from the logo's hanger and frame (#C39A4E)
     · navy-black / slate-grey — headings and body text
     · white — the existing page background
     · navy — the logo's card ground, for dark sections

   Everything is scoped under .cg so it cannot collide with Divi,
   WordPress core, or any plugin stylesheet.
   ============================================================ */

/* ---------- Tokens ---------- */
.cg {
  /* Brand colour */
  --white:      #FFFFFF;   /* page background — matches the current site */
  --mist:       #F5F7FA;   /* alternate band — a breath of the navy */
  --mist-deep:  #E8ECF3;
  --ink:        #0C1726;   /* headings — navy-black */
  --ink-soft:   #5A6880;   /* body copy — the site's grey */
  --gold:       #C39A4E;   /* the logo gold — lines, marks, dark grounds */
  --gold-deep:  #8C6A1C;   /* gold darkened for text on white — 5.0:1 */
  --deep:       #0E2038;   /* dark sections — the logo's navy */
  --deep-2:     #071426;
  --on-deep:    #EDF1F7;   /* text on dark grounds */

  --line:       rgba(12, 23, 38, 0.12);
  --line-soft:  rgba(12, 23, 38, 0.06);
  --line-dark:  rgba(237, 241, 247, 0.16);

  /* Type */
  --display: "Playfair Display", "Iowan Old Style", Palatino, Georgia, serif;
  --body:    "Lora", Georgia, "Times New Roman", serif;
  --tag:     "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-hero:  clamp(2.4rem, 5.6vw, 4.9rem);
  --t-h2:    clamp(1.9rem, 4.2vw, 3.6rem);
  --t-h3:    clamp(1.1rem, 1.85vw, 1.55rem);
  --t-lead:  clamp(1.02rem, 1.45vw, 1.3rem);
  --t-body:  clamp(0.98rem, 1.05vw, 1.08rem);
  --t-tag:   clamp(0.66rem, 0.78vw, 0.76rem);

  /* Rhythm */
  --gutter:  clamp(1.25rem, 5vw, 5.5rem);
  --section: clamp(4.5rem, 11vh, 9rem);
  --max:     1320px;

  --ease: cubic-bezier(0.22, 0.65, 0.24, 1);

  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Local reset ----------
   Wrapped in :where() so the reset carries ZERO specificity. Without it a
   type selector like `.cg button` outranks `.cg-btn--solid` and silently
   cancels the component styles. */
.cg *,
.cg *::before,
.cg *::after { box-sizing: border-box; }

:where(.cg) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; padding: 0; }
:where(.cg) :where(ul, ol) { list-style: none; }
:where(.cg) :where(img, svg) { display: block; max-width: 100%; }
:where(.cg) :where(a) { color: inherit; text-decoration: none; }
:where(.cg) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.cg) :where(input, textarea, select) { font: inherit; color: inherit; }

/* The block is designed to sit flush. In the standalone preview files the
   UA's default body margin insets it by 8px; :has() scopes this to the case
   where .cg is a direct child of body, so it never fires inside Divi. */
body:has(> .cg) { margin: 0; }

/* Neutralise Divi's module padding when this block lives in a Code module */
.cg-host .et_pb_code_inner,
.et_pb_module.cg-host,
.et_pb_code.cg-host { padding: 0 !important; }

/* Full-bleed escape hatch if the theme container constrains width */
.cg-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- Shared primitives ---------- */
.cg-wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.cg-section { padding-block: var(--section); position: relative; }

.cg-tag {
  font-family: var(--tag);
  font-size: var(--t-tag);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.cg-tag::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.cg-tag.is-plain::before { display: none; }

.cg-h2 {
  font-family: var(--display);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  max-width: 18ch;
  text-wrap: balance;
}

.cg-h3 {
  font-family: var(--display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.004em;
}

.cg-lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}

.cg-head {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

/* Buttons */
.cg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.5em;
  font-family: var(--tag);
  font-size: var(--t-tag);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.cg-btn .cg-arrow { transition: transform 0.35s var(--ease); }
.cg-btn:hover .cg-arrow { transform: translateX(4px); }

.cg-btn--solid { background: var(--ink); color: var(--white); }
.cg-btn--solid:hover { background: var(--deep); }

.cg-btn--line { border-color: var(--line); color: var(--ink); }
.cg-btn--line:hover { border-color: var(--ink); background: rgba(12, 23, 38, 0.04); }

.cg-btn--gold { background: var(--gold); color: var(--deep-2); }
.cg-btn--gold:hover { background: #D8B36A; }

.cg-btn--ondark { border-color: var(--line-dark); color: var(--on-deep); }
.cg-btn--ondark:hover { border-color: var(--on-deep); background: rgba(237, 241, 247, 0.08); }

/* Focus — visible everywhere, never removed */
.cg :focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.cg-ondark :focus-visible { outline-color: var(--gold); }

.cg-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.8em 1.2em;
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cg-skip:focus { left: 0; }

.cg-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll reveal ---------- */
.cg-rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.cg-rise.is-in { opacity: 1; transform: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.cg-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.cg-nav.is-stuck { border-bottom-color: rgba(195, 154, 78, 0.5); }

.cg-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: clamp(66px, 8vh, 84px);
}

/* Brand lock-up: the real logo badge plus a legible wordmark */
.cg-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.cg-logo__badge {
  width: clamp(38px, 4vw, 46px);
  height: clamp(38px, 4vw, 46px);
  border-radius: 50%;
  flex-shrink: 0;
}
.cg-logo__type {
  display: grid;
  line-height: 1;
  gap: 0.22em;
}
.cg-logo__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  letter-spacing: 0.005em;
}
.cg-logo__sub {
  font-family: var(--tag);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.cg-nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2rem); }
.cg-nav__links a {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.4em;
  white-space: nowrap; /* a label must never break across two lines */
  transition: color 0.3s var(--ease);
}
.cg-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.cg-nav__links a:hover { color: var(--ink); }
.cg-nav__links a:hover::after { transform: scaleX(1); }

.cg-nav__cta { display: flex; align-items: center; gap: 0.9rem; }
.cg-nav__tel {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}

.cg-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.cg-burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; }
.cg-burger span::before, .cg-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.cg-burger span::before { top: -6px; }
.cg-burger span::after { top: 6px; }
.cg-burger[aria-expanded="true"] span { background: transparent; }
.cg-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.cg-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* The phone number is redundant with the CTA button — drop it first when
   the bar gets tight, before falling back to the burger. */
@media (max-width: 1280px) { .cg-nav__tel { display: none; } }

/* Six links plus a button need roughly 1120px before they crowd */
@media (max-width: 1120px) {
  .cg-nav__links {
    position: fixed;
    inset: clamp(66px, 8vh, 84px) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem var(--gutter) 2rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }
  .cg-nav__links.is-open { clip-path: inset(0 0 0 0); }
  .cg-nav__links a { font-size: 0.95rem; letter-spacing: 0.06em; padding-block: 0.65em; }
  .cg-burger { display: flex; }
  .cg-nav__tel { display: none; }
}

/* ============================================================
   HERO — copy on the left, the brand's own photograph on the right
   ============================================================ */
.cg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  min-height: min(90svh, 860px);
  border-bottom: 1px solid var(--line);
}

.cg-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 4vw, 4.5rem)
           clamp(3rem, 8vh, 6rem) var(--gutter);
}

.cg-hero h1 {
  font-family: var(--display);
  font-size: var(--t-hero);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.014em;
  margin-block: clamp(1.1rem, 2.4vw, 1.8rem) clamp(1.1rem, 2.2vw, 1.7rem);
  text-wrap: balance;
}
/* The one phrase in italic against an otherwise upright headline */
.cg-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

/* Word-by-word entrance */
/* Padding gives descenders and the italic overhang room inside the clip;
   the matching negative margin keeps the line spacing unchanged. */
.cg-word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: 0 0.06em 0.2em; margin: 0 -0.06em -0.2em;
}
.cg-word > span {
  display: inline-block;
  transform: translateY(105%);
  animation: cg-word-up 1s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}
@keyframes cg-word-up { to { transform: translateY(0); } }

.cg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

.cg-hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.cg-hero__fact dt {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.cg-hero__fact dd { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.5; }
.cg-hero__fact dd strong { color: var(--ink); font-weight: 500; }

/* --- The media panel --- */
.cg-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  min-height: clamp(320px, 46svh, 520px);
}
.cg-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A warm cast ties the photograph to the brand gold and navy */
.cg-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(195, 154, 78, 0.07), rgba(14, 32, 56, 0.10));
  pointer-events: none;
}

@media (max-width: 980px) {
  .cg-hero { grid-template-columns: 1fr; min-height: 0; }
  .cg-hero__copy { padding-inline: var(--gutter); order: 2; }
  .cg-hero__media { order: 1; min-height: 38svh; }
}
/* The nav CTA duplicates the one in the hero — drop it before it crowds
   the burger */
@media (max-width: 560px) {
  .cg-nav__cta .cg-btn { display: none; }
}

/* ---------- Marquee strip ---------- */
.cg-strip {
  border-bottom: 1px solid var(--line);
  background: var(--mist);
  overflow: hidden;
  padding-block: 0.95rem;
}
.cg-strip__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: cg-marquee 46s linear infinite;
}
.cg-strip:hover .cg-strip__track,
.cg-strip:focus-within .cg-strip__track { animation-play-state: paused; }
.cg-strip__track li {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
}
.cg-strip__track li::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes cg-marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SIGNATURE — the hotel cutaway
   ============================================================ */
.cg-property {
  background: var(--deep);
  color: var(--on-deep);
  position: relative;
  overflow: hidden;
}
.cg-property::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 70% at 50% 0%, rgba(195, 154, 78, 0.11), transparent 62%);
  pointer-events: none;
}
.cg-property .cg-tag { color: var(--gold); }
.cg-property .cg-lead { color: rgba(237, 241, 247, 0.68); }

.cg-property__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* The building */
.cg-building {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  overflow: hidden;
  min-height: clamp(400px, 58vh, 580px);
  background: rgba(7, 20, 38, 0.4);
}

.cg-floor {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  width: 100%;
  text-align: left;
  padding: clamp(0.85rem, 1.6vh, 1.35rem) clamp(1rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--line-dark);
  flex: 1 1 0;
  transition: flex-grow 0.65s var(--ease), background-color 0.45s var(--ease);
}
.cg-floor:last-child { border-bottom: 0; }
.cg-floor:hover { background: rgba(237, 241, 247, 0.05); }
.cg-floor[aria-selected="true"] {
  flex-grow: 2.1;
  background: rgba(195, 154, 78, 0.10);
}

/* Cyan rail marking the active floor */
.cg-floor::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s var(--ease);
}
.cg-floor[aria-selected="true"]::before { transform: scaleY(1); }

.cg-floor__no {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.1em;
  color: rgba(237, 241, 247, 0.42);
  transition: color 0.4s var(--ease);
}
.cg-floor[aria-selected="true"] .cg-floor__no { color: var(--gold); }

.cg-floor__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.04rem, 1.55vw, 1.32rem);
  letter-spacing: 0;
  line-height: 1.2;
  flex: 1;
}

/* Windows light up on the selected floor */

/* The readout panel */
.cg-readout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.9rem, 1.8vw, 1.3rem);
  padding: clamp(1.2rem, 2.5vw, 2rem) 0;
}

/* Stacked photographs — all present, cross-faded, so switching
   floors never shows a loading gap */
.cg-readout__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 3px;
  background: var(--deep-2);
  border: 1px solid var(--line-dark);
}
.cg-readout__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.cg-readout__media img.is-on { opacity: 1; transform: none; }
.cg-readout__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 20, 38, 0.05), rgba(7, 20, 38, 0.5));
  pointer-events: none;
}

.cg-readout__index {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.cg-readout__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.cg-readout__body { color: rgba(237, 241, 247, 0.72); max-width: 46ch; }

.cg-readout__items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cg-readout__items li {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 0.5em 0.85em;
  color: rgba(237, 241, 247, 0.82);
}

.cg-readout__handled {
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(0.8rem, 1.8vw, 1.2rem);
  display: grid;
  gap: 0.35rem;
}
.cg-readout__handled dt {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 241, 247, 0.45);
}
.cg-readout__handled dd { margin: 0; color: var(--on-deep); font-size: 0.98rem; }

/* Text swap animation — the photograph cross-fades independently */
.cg-readout > *:not(.cg-readout__media) { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.cg-readout.is-swapping > *:not(.cg-readout__media) { opacity: 0.25; transform: translateY(6px); }

@media (max-width: 980px) {
  .cg-property__layout { grid-template-columns: 1fr; }
  .cg-building { min-height: 0; }
  .cg-floor { flex: 0 0 auto; }
  .cg-floor[aria-selected="true"] { flex-grow: 0; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.cg-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
/* Six cards want two rows of three — auto-fit would make four thin columns */
@media (min-width: 940px) {
  .cg-services__grid { grid-template-columns: repeat(3, 1fr); }
  /* An odd card left alone on the last row spans it */
  .cg-services__grid > .cg-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}

.cg-card {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  gap: 0.85rem;
  align-content: start;
  transition: background-color 0.45s var(--ease);
  overflow: hidden;
}
.cg-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.cg-card:hover { background: var(--mist); }
.cg-card:hover::after { transform: scaleX(1); }

.cg-card__no { font-family: var(--tag); font-size: var(--t-tag); letter-spacing: 0.14em; color: var(--gold-deep); }
.cg-card p { color: var(--ink-soft); font-size: 0.98rem; }
.cg-card__meta {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 0.2rem;
}

/* ============================================================
   PROCESS — a genuine sequence, so it is genuinely numbered
   ============================================================ */
.cg-process { background: var(--mist); border-block: 1px solid var(--line); }
.cg-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
}
.cg-step { display: grid; gap: 0.7rem; align-content: start; position: relative; padding-top: 1.6rem; }
.cg-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.cg-step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 1px;
  background: var(--gold);
}
.cg-step__no { font-family: var(--tag); font-size: var(--t-tag); letter-spacing: 0.14em; color: var(--gold-deep); }
.cg-step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   THE STAGE DECK — the seven stages a garment passes through.

   Built as a deck: the section is made tall in JS, a panel pins to the
   viewport, and each stage is a full-viewport slide that cross-fades as
   you scroll. Every stage carries a live diagram drawn from geometry,
   not illustration.

   Motion is a shared vocabulary (.v-draw / .v-pip / .v-pulse / .v-spin /
   .v-rise / .v-flat / .v-scan / .v-shrink) rather than per-stage
   one-offs, so seven different diagrams still read as one system.
   Animations only run on the active stage.

   Below 981px, and under reduced motion, nothing pins: the stages
   become a plain stacked list with the diagrams held at rest.
   ============================================================ */
.cg-deck {
  --stage-scroll: 0.65;      /* viewports of scroll per stage */
  background: var(--deep);
  color: var(--on-deep);
  position: relative;
}

.cg-deck__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Atmosphere: a hairline grid and a gold bloom, both inert */
.cg-deck__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(237, 241, 247, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 241, 247, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 25%, transparent 78%);
}
.cg-deck__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 78% 42%, rgba(195, 154, 78, 0.16), transparent 65%),
    radial-gradient(ellipse 70% 50% at 12% 88%, rgba(195, 154, 78, 0.07), transparent 70%);
}

.cg-deck__head {
  position: relative;
  z-index: 3;
  /* The nav is sticky at top: 0 as well, so clear its height before
     anything in the pinned panel starts — otherwise the heading slides
     underneath it. The first clamp mirrors .cg-nav__inner's min-height. */
  padding-top: calc(clamp(66px, 8vh, 84px) + clamp(0.8rem, 2.5vh, 1.8rem));
  display: grid;
  gap: clamp(0.5rem, 1.4vh, 0.9rem);
  flex-shrink: 0;
}
.cg-deck__head .cg-tag { color: var(--gold); }
.cg-deck__head .cg-h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  max-width: 22ch;
}

/* ---- The stack: seven slides in the same box ---- */
.cg-deck__stack {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
}

.cg-stg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease),
              visibility 0s linear 0.6s;
}
.cg-stg.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease),
              visibility 0s linear 0s;
}
/* The stage just left slides up rather than down, so the deck reads
   as moving in one direction */
.cg-stg.is-past { transform: translateY(-26px); }

/* The oversized stage numeral, ghosted into the ground */
.cg-stg__ghost {
  position: absolute;
  right: clamp(0.5rem, 3vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(9rem, 26vw, 22rem);
  line-height: 0.75;
  color: rgba(237, 241, 247, 0.045);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

.cg-stg__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  width: 100%;
}

.cg-stg__copy { display: grid; gap: clamp(0.6rem, 1.6vh, 1.1rem); align-content: center; }

.cg-stg__label {
  font-family: var(--tag);
  font-size: var(--t-tag);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.cg-stg__label::before {
  content: "";
  width: 2.2em;
  height: 1px;
  background: currentColor;
}

.cg-stg__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.cg-stg__body {
  color: rgba(237, 241, 247, 0.74);
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  line-height: 1.55;
  max-width: 46ch;
}

.cg-stg__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}
.cg-stg__meta li {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 0.45em 0.8em;
  color: rgba(237, 241, 247, 0.8);
}

/* ---- The diagram frame ---- */
.cg-stg__viz {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(42vh, 420px);
  margin-inline: auto;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 45%, rgba(195, 154, 78, 0.09), transparent 68%),
    rgba(7, 20, 38, 0.42);
}
/* corner ticks — a measuring frame, not decoration for its own sake */
.cg-stg__viz::before,
.cg-stg__viz::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}
.cg-stg__viz::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.cg-stg__viz::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.cg-viz { width: 86%; height: 86%; overflow: visible; }
.cg-viz [stroke] { vector-effect: non-scaling-stroke; }
.cg-viz .s     { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cg-viz .s-dim { fill: none; stroke: rgba(237, 241, 247, 0.26); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cg-viz .f     { fill: var(--gold); stroke: none; }
.cg-viz .f-dim { fill: rgba(237, 241, 247, 0.22); stroke: none; }

/* ============================================================
   Shared motion vocabulary — only runs on the active stage
   ============================================================ */
.cg-viz .v-draw   { stroke-dasharray: 100; stroke-dashoffset: 100; }
.cg-viz .v-pip,
.cg-viz .v-pulse,
.cg-viz .v-rise,
.cg-viz .v-fade   { opacity: 0; }
.cg-viz .v-pulse,
.cg-viz .v-spin,
.cg-viz .v-flat,
.cg-viz .v-shrink { transform-box: fill-box; transform-origin: center; }

.cg-stg.is-on .cg-viz .v-draw {
  animation: v-draw 1.15s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes v-draw { to { stroke-dashoffset: 0; } }

.cg-stg.is-on .cg-viz .v-pip {
  animation: v-pip 2.6s cubic-bezier(0.55, 0, 0.45, 1) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes v-pip {
  0%   { offset-distance: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.cg-stg.is-on .cg-viz .v-pulse {
  animation: v-pulse 2.8s ease-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes v-pulse {
  0%   { transform: scale(0.3); opacity: 0.85; }
  100% { transform: scale(2.8); opacity: 0; }
}

.cg-stg.is-on .cg-viz .v-spin { animation: v-spin 7s linear infinite; }
@keyframes v-spin { to { transform: rotate(360deg); } }

.cg-stg.is-on .cg-viz .v-rise {
  animation: v-rise 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes v-rise {
  0%   { transform: translateY(6px);   opacity: 0; }
  22%  { opacity: 0.9; }
  100% { transform: translateY(-52px); opacity: 0; }
}

.cg-stg.is-on .cg-viz .v-flat {
  animation: v-flat 3s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes v-flat {
  0%, 14%   { transform: scaleY(1); }
  52%, 78%  { transform: scaleY(0.07); }
  100%      { transform: scaleY(1); }
}

.cg-stg.is-on .cg-viz .v-scan { animation: v-scan 3s var(--ease) infinite; }
@keyframes v-scan {
  0%   { transform: translateY(-4px);  opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(126px); opacity: 0; }
}

.cg-stg.is-on .cg-viz .v-shrink { animation: v-shrink 2.8s var(--ease) infinite; }
@keyframes v-shrink {
  0%, 12%   { transform: scale(1); opacity: 0.9; }
  68%, 100% { transform: scale(0); opacity: 0; }
}

.cg-stg.is-on .cg-viz .v-fade {
  animation: v-fade 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0.6s);
}
@keyframes v-fade { to { opacity: 1; } }

/* ============================================================
   Progress rail across the foot
   ============================================================ */
.cg-deck__rail {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  padding-bottom: clamp(1.2rem, 3.5vh, 2.4rem);
  padding-top: clamp(0.6rem, 2vh, 1.2rem);
}
.cg-deck__rail ol {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(0.3rem, 1vw, 0.8rem);
  border-top: 1px solid var(--line-dark);
  padding-top: 0.85rem;
}
.cg-deck__tick {
  display: grid;
  gap: 0.5rem;
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.1em;
  color: rgba(237, 241, 247, 0.38);
  transition: color 0.4s var(--ease);
  position: relative;
}
.cg-deck__tick i {
  display: block;
  height: 2px;
  background: var(--line-dark);
  position: relative;
  overflow: hidden;
}
.cg-deck__tick i::after {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--gold);
  transition: right 0.5s var(--ease);
}
.cg-deck__tick.is-done i::after { right: 0; }
.cg-deck__tick.is-on { color: var(--gold); }
.cg-deck__tick.is-on i::after { right: 0; }
.cg-deck__tick span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
@media (max-width: 1180px) { .cg-deck__tick span:last-child { display: none; } }

/* ---- Short viewports: shed the least important parts first ---- */
@media (max-height: 760px) {
  .cg-stg__viz { max-width: min(34vh, 300px); }
  .cg-stg__meta { display: none; }
}
@media (max-height: 620px) {
  .cg-deck__head .cg-h2 { display: none; }
  .cg-stg__ghost { display: none; }
}

/* ---- Stacked fallback: no pinning, diagrams at rest ---- */
@media (max-width: 980px), (prefers-reduced-motion: reduce) {
  .cg-deck { height: auto !important; }
  .cg-deck__sticky {
    position: static;
    height: auto;
    overflow: visible;
    display: block;
    padding-block: var(--section);
  }
  .cg-deck__grid, .cg-deck__glow { position: absolute; }
  .cg-deck__stack { position: static; }
  .cg-stg {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    display: block;
    padding-block: clamp(1.6rem, 5vw, 2.6rem);
    border-top: 1px solid var(--line-dark);
  }
  .cg-stg__ghost { display: none; }
  .cg-stg__inner {
    grid-template-columns: 1fr;
    gap: clamp(1.2rem, 4vw, 2rem);
  }
  .cg-stg__viz {
    order: -1;
    max-width: 260px;
    margin-inline: 0;
  }
  .cg-stg__meta { display: flex; }
  .cg-deck__rail { display: none; }
  /* Hold every diagram at its resting state — no infinite loops
     running seven at once down a phone screen. Anything whose whole
     meaning is the movement (travelling pips, pulses, rising bubbles,
     the scanning pass) is dropped rather than frozen mid-gesture. */
  .cg-viz .v-draw { stroke-dashoffset: 0; }
  .cg-viz .v-fade { opacity: 1; }
  .cg-viz .v-pip,
  .cg-viz .v-pulse,
  .cg-viz .v-rise,
  .cg-viz .v-scan { display: none; }
}

/* ============================================================
   STANDARDS
   ============================================================ */
.cg-standards__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.cg-standards__list > li { border-top: 1px solid var(--line); }
.cg-standards__list > li:last-child { border-bottom: 1px solid var(--line); }
.cg-standard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.4rem;
  padding-block: clamp(1.2rem, 2.4vw, 1.8rem);
  align-items: baseline;
}
.cg-standard__key {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  min-width: 3ch;
}
.cg-standard__body { display: grid; gap: 0.4rem; }
.cg-standard__body p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 900px) { .cg-standards__layout { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIAL — over the brand's own photograph
   ============================================================ */
.cg-quote {
  position: relative;
  color: var(--on-deep);
  overflow: hidden;
  isolation: isolate;
}
.cg-quote__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cg-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(7, 20, 38, 0.92) 30%, rgba(14, 32, 56, 0.72));
}
.cg-quote__inner { position: relative; max-width: 62ch; }
.cg-quote blockquote p {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.45rem, 3.2vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.006em;
  text-wrap: balance;
}
.cg-quote figcaption {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.cg-stars { display: inline-flex; gap: 3px; margin-bottom: 1.2rem; color: var(--gold); }
.cg-stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   FAQ — native <details>, crawlable and keyboard-native
   ============================================================ */
.cg-faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.cg-faq__list { border-top: 1px solid var(--line); }
.cg-faq__item { border-bottom: 1px solid var(--line); }
.cg-faq__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.1rem, 2.2vw, 1.5rem);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.35;
  transition: color 0.3s var(--ease);
}
.cg-faq__item > summary::-webkit-details-marker { display: none; }
.cg-faq__item > summary:hover { color: var(--gold-deep); }
.cg-faq__sign { flex-shrink: 0; width: 14px; height: 14px; position: relative; margin-top: 0.35em; }
.cg-faq__sign::before, .cg-faq__sign::after {
  content: "";
  position: absolute;
  background: var(--gold-deep);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cg-faq__sign::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.cg-faq__sign::after  { left: 6px; top: 0; width: 1.5px; height: 14px; }
.cg-faq__item[open] .cg-faq__sign::after { transform: rotate(90deg); opacity: 0; }
.cg-faq__answer {
  padding-bottom: clamp(1.2rem, 2.4vw, 1.7rem);
  max-width: 62ch;
  color: var(--ink-soft);
  display: grid;
  gap: 0.8rem;
}
.cg-faq__answer a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.cg-faq__answer strong { color: var(--ink); font-weight: 600; }
.cg-faq__item[open] .cg-faq__answer { animation: cg-fade 0.45s var(--ease) both; }
@keyframes cg-fade { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 900px) { .cg-faq__layout { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.cg-contact { background: var(--mist); border-top: 1px solid var(--line); }
.cg-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: start;
}

.cg-form { display: grid; gap: 1.1rem; }
.cg-field { display: grid; gap: 0.45rem; }
.cg-field label {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cg-field input, .cg-field select, .cg-field textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85em 1em;
  font-size: 0.98rem;
  width: 100%;
  transition: border-color 0.3s var(--ease);
}
.cg-field input:focus, .cg-field select:focus, .cg-field textarea:focus { border-color: var(--ink); }
.cg-field textarea { resize: vertical; min-height: 110px; }
.cg-field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .cg-field--pair { grid-template-columns: 1fr; } }

.cg-form__note { font-size: 0.86rem; color: var(--ink-soft); }
/* Netlify honeypot: never shown, never focusable, never announced. */
.cg-hp { display: none; }
.cg-form__status { font-size: 0.92rem; color: var(--gold-deep); min-height: 1.4em; }

.cg-details > div { border-top: 1px solid var(--line); padding-block: clamp(1rem, 2vw, 1.4rem); }
.cg-details > div:last-child { border-bottom: 1px solid var(--line); }
.cg-details dt {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.cg-details dd { margin: 0; font-size: 1.02rem; line-height: 1.5; overflow-wrap: anywhere; }
.cg-details a:hover { color: var(--gold-deep); }

@media (max-width: 900px) { .cg-contact__layout { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.cg-footer {
  background: var(--deep-2);
  color: rgba(237, 241, 247, 0.72);
  padding-block: clamp(3rem, 7vh, 5rem) clamp(1.6rem, 3vh, 2.4rem);
}
.cg-footer a { color: rgba(237, 241, 247, 0.72); transition: color 0.3s var(--ease); }
.cg-footer a:hover { color: var(--gold); }
.cg-footer .cg-logo__name { color: var(--on-deep); }
.cg-footer .cg-logo__sub { color: var(--gold); }
.cg-footer .cg-logo__badge { --deep: #112B49; }  /* lift the disc off the darker footer */

.cg-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.4rem);
}
.cg-footer__col h3 {
  font-family: var(--tag);
  font-size: var(--t-tag);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
/* The email address is one unbreakable 240px string and the columns can get
   narrower than that — let it break rather than push the page sideways. */
.cg-footer__col li { margin-bottom: 0.55rem; font-size: 0.95rem; overflow-wrap: anywhere; }
.cg-footer__blurb { max-width: 34ch; margin-top: 1rem; font-size: 0.95rem; line-height: 1.6; }

.cg-footer__base {
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(1.2rem, 2.5vw, 1.8rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(237, 241, 247, 0.45);
}

/* ============================================================
   Scroll rail
   ============================================================ */
.cg-rail {
  position: fixed;
  right: clamp(0.9rem, 1.6vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: grid;
  gap: 0.85rem;
}
.cg-rail button { width: 22px; height: 22px; display: grid; place-items: center; }
.cg-rail button i {
  display: block;
  width: 6px; height: 6px;
  border: 1px solid var(--ink);
  opacity: 0.28;
  border-radius: 50%;
  transition: all 0.4s var(--ease);
}
.cg-rail button[aria-current="true"] i {
  opacity: 1;
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.35);
}
.cg-rail.is-ondark button i { border-color: var(--on-deep); }
.cg-rail.is-ondark button[aria-current="true"] i { background: var(--gold); border-color: var(--gold); }
@media (max-width: 1100px), (max-height: 620px) { .cg-rail { display: none; } }

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.cg-pagehead {
  position: relative;
  overflow: hidden;
  color: var(--on-deep);
  padding-block: clamp(4rem, 12vh, 8rem) clamp(3rem, 8vh, 5.5rem);
  isolation: isolate;
}
.cg-pagehead__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cg-pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 20, 38, 0.93) 35%, rgba(14, 32, 56, 0.7));
}
.cg-pagehead .cg-tag { color: var(--gold); }
.cg-pagehead .cg-lead { color: rgba(237, 241, 247, 0.75); }
.cg-pagehead h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.014em;
  margin-block: 1.2rem;
  max-width: 17ch;
  text-wrap: balance;
}
.cg-pagehead h1 em { font-style: italic; font-weight: 500; color: var(--gold); }

.cg-crumbs {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 241, 247, 0.6);
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.cg-crumbs a:hover { color: var(--gold); }
.cg-crumbs span[aria-current] { color: var(--gold); }

/* Answer block — a short, quotable definition for AI answer engines */
.cg-answer {
  border-left: 2px solid var(--gold);
  padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.2rem, 2.4vw, 1.8rem);
  background: var(--mist);
  max-width: 70ch;
  display: grid;
  gap: 0.7rem;
}
.cg-answer p { font-size: 1.04rem; line-height: 1.6; }
.cg-answer strong { font-weight: 600; }

/* Prose */
.cg-prose { display: grid; gap: 1.1rem; max-width: 68ch; }
.cg-prose p { color: var(--ink-soft); }
.cg-prose ul { display: grid; gap: 0.55rem; }
.cg-prose ul li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.cg-prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.cg-prose strong { color: var(--ink); font-weight: 600; }
.cg-prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Figures */
.cg-figure { display: grid; gap: 0.7rem; }
.cg-figure img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.cg-figure figcaption {
  font-family: var(--tag);
  font-size: var(--t-tag);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Split feature rows */
.cg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.4rem);
  border-top: 1px solid var(--line);
  align-items: center;
}
.cg-split--flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .cg-split { grid-template-columns: 1fr; }
  .cg-split--flip > :first-child { order: 0; }
}

/* CTA band */
.cg-cta { background: var(--deep); color: var(--on-deep); text-align: center; }
.cg-cta .cg-h2 { max-width: 20ch; margin-inline: auto; }
.cg-cta .cg-lead { color: rgba(237, 241, 247, 0.68); margin-inline: auto; }
.cg-cta .cg-tag { color: var(--gold); }
.cg-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cg *, .cg *::before, .cg *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cg-rise { opacity: 1; transform: none; }
  .cg-word > span { transform: none; }
  .cg-strip__track { animation: none; }
  .cg-readout__media img { transform: none; }
}

/* ============================================================
   GOLD FRAME
   The logo sits inside a thin gold rule. The navy sections carry
   the same inset hairline so the page and the mark read as one
   system. Decorative only: pointer-events are off and the line
   never sits over copy, which keeps the gutters clear of it.
   ============================================================ */
.cg-property,
.cg-cta { position: relative; }

.cg-property::after,
.cg-cta::after {
  content: "";
  position: absolute;
  inset: clamp(0.85rem, 2.2vw, 1.9rem);
  border: 1px solid rgba(195, 154, 78, 0.35);
  pointer-events: none;
}

/* Print */
@media print {
  .cg-nav, .cg-rail, .cg-strip { display: none !important; }
  .cg { background: #fff; color: #000; }
  .cg-property, .cg-quote, .cg-cta, .cg-footer, .cg-pagehead { background: #fff !important; color: #000 !important; }
  .cg-quote__bg, .cg-pagehead__bg { display: none !important; }
}
