/* ==========================================================================
   Chinhan Tech, sections below the hero (v2)
   Wide uppercase sans, dark stage, copper light. Everything lives under .fg
   so it can sit inside Elementor HTML widgets.
   ========================================================================== */

:root {
  --fg-bg: #0a0a0a;
  --fg-bg-2: #111110;
  --fg-card: #121211;
  --fg-ink: #f3f2ef;
  --fg-ink-2: #c9c7c2;
  --fg-ink-3: #8c8a86;
  --fg-dim: #3b3935;
  --fg-accent: #c07a4c;
  --fg-accent-2: #e8b48a;
  --fg-line: rgba(255, 255, 255, 0.12);
  --fg-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* titles: the tighter cut of the same face */
  --fg-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fg-gutter: clamp(24px, 6.4vw, 112px);
  --fg-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* forged carbon: a seamless 2048px tile rendered for this site (shown at 1536px, so it stays sharp) */
  --fg-carbon: url("../img/forged-carbon.webp");
}

html.cht-page ::selection { background: var(--fg-accent); color: #140c07; }

/* While Lenis is stopped (the opening loader, the open menu) its own CSS sets overflow: clip on <html>, which takes the
   scrollbar away: the page grows 15px wider and everything centred, the header first, jumps sideways when it comes
   back. Hidden + a stable gutter still blocks scrolling but keeps the scrollbar's room, so nothing moves. */
html.cht-page.lenis.lenis-stopped { overflow: hidden; scrollbar-gutter: stable; }
/* the kept gutter is painted with the root's own background, which the theme leaves white: make it the page's dark */
html.cht-page { background-color: var(--fg-bg); }

/* No sideways drift. The demo banner is 100vw wide, which includes the scrollbar,
   so it is wider than the page; with the theme's overflow-x: hidden the page could
   still be pushed sideways and leave a white strip down the right of every section.
   html/body clip anything wider (the banner keeps its own 100vw width: its parents
   have no width of their own, so 100% would collapse it). */
/* ---------------------------------------------------------------- opening loader
   The logo sits dim and fills from the left with the page's progress; a counter and a copper line keep time.
   If the script never runs, the loader still clears itself after 8 s. */
.cht-loader { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: var(--fg-bg); animation: cht-loader-bail 0.6s ease 8s forwards; }
@keyframes cht-loader-bail { to { opacity: 0; visibility: hidden; } }
.cht-loader__logo { position: relative; width: min(340px, 50vw); }
.cht-loader__logo img { display: block; width: 100%; height: auto; opacity: 0.12; }
.cht-loader__logo .cht-loader__fill { position: absolute; inset: 0; opacity: 1; clip-path: inset(0 100% 0 0); }
.cht-loader__tag, .cht-loader__count { position: absolute; margin: 0; }
.cht-loader__tag { left: var(--fg-gutter); bottom: 44px; font: 600 10px/1 var(--fg-sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-ink-3); }
.cht-loader__count { right: var(--fg-gutter); bottom: 40px; font: 300 clamp(30px, 2.7vw, 52px)/0.8 var(--fg-display); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--fg-ink); }
.cht-loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg-accent-2); transform: scaleX(0); transform-origin: 0 50%; }

html.cht-page, html:has(#fg), html.cht-page body, html:has(#fg) body { overflow-x: clip; }

/* the client asked for a clean page: no slide bar under the banner (pause, progress lines, 03 / 03)
   and no theme scroll-to-top button */
#cht-hero-carousel .chtc-bottom { display: none !important; }
#ast-scroll-top { display: none !important; }
/* On WordPress the sections live in an Elementor HTML widget inside a row flex container, which would shrink the
   widget to its content's width; it has to span the page like the header and hero */
.elementor-widget:has(> .fg) { flex: 1 1 100%; width: 100%; max-width: 100%; }

/* Directional light segments: a single amber sweep on interaction. */
#cht-hero-carousel .chtc-control.fx-ctl {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  color: #aaa9a5;
  transition: color .2s ease;
}
#cht-hero-carousel .chtc-control.fx-ctl:hover { background: transparent; border: 0; transform: translateY(-50%); }
#cht-hero-carousel .chtc-control.fx-ctl > span { display: none; }
/* no loop: the arrow at the end of the row rests, dimmed */
#cht-hero-carousel .chtc-prev.fx-ctl { left: 28px; }
#cht-hero-carousel .chtc-next.fx-ctl { right: 28px; }
#cht-hero-carousel .fx-arw-wrap { display: grid; place-items: center; font-style: normal; }
#cht-hero-carousel .fx-arw { width: 36px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#cht-hero-carousel .chtc-prev .fx-arw { transform: scaleX(-1); }
#cht-hero-carousel .fx-arw path { transition: stroke .18s ease; }
#cht-hero-carousel .fx-arw path:nth-child(1) { --signal-delay: 0ms; opacity: .55; }
#cht-hero-carousel .fx-arw path:nth-child(2) { --signal-delay: 70ms; opacity: .78; }
#cht-hero-carousel .fx-arw path:nth-child(3) { --signal-delay: 140ms; }
@media (hover: hover) and (pointer: fine) {
  #cht-hero-carousel .chtc-control.fx-ctl:hover .fx-arw path { stroke: #d69a5c; animation: cht-signal-sweep 260ms var(--signal-delay) both; }
}
#cht-hero-carousel .chtc-control.fx-ctl:focus-visible { outline: 1px solid #d69a5c; outline-offset: -8px; }
#cht-hero-carousel .chtc-control.fx-ctl:focus-visible .fx-arw path { stroke: #d69a5c; }
#cht-hero-carousel .chtc-control.fx-ctl.is-signaling .fx-arw path { stroke: #e8b48a; animation: cht-signal-click 260ms var(--signal-delay) both; }
@keyframes cht-signal-sweep { 0% { stroke: #aaa9a5; } 55% { stroke: #ffe0b2; } 100% { stroke: #d69a5c; } }
@keyframes cht-signal-click { 0% { stroke: #aaa9a5; } 55% { stroke: #ffe0b2; } 100% { stroke: #d69a5c; } }
@media (max-width: 767px) {
  #cht-hero-carousel .chtc-control.fx-ctl { width: 48px; height: 48px; transform: none; }
  #cht-hero-carousel .chtc-control.fx-ctl:hover { transform: none; }
  #cht-hero-carousel .chtc-prev.fx-ctl { left: 16px; }
  #cht-hero-carousel .chtc-next.fx-ctl { right: 16px; }
  #cht-hero-carousel .fx-arw { width: 30px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #cht-hero-carousel .chtc-control.fx-ctl .fx-arw path { animation: none !important; transition: none; }
}

.fg {
  position: relative;
  /* transparent so the pinned banner shows through the opening gap; every section brings its own background */
  background: transparent;
  color: var(--fg-ink);
  font-family: var(--fg-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* the theme colours links and headings directly, and animates every link */
:where(.fg) h1, :where(.fg) h2, :where(.fg) h3, :where(.fg) p, :where(.fg) a { color: inherit; }
:where(.fg) a { transition: none; text-decoration: none; }
/* keep the theme's blue link hover off these sections */
.fg a:hover, .fg a:focus, .fg a:focus-visible { color: inherit; }
.fg img, .fg video, .fg canvas { display: block; max-width: none; }
.fg figure { margin: 0; }
.fg :focus-visible { outline: 1px solid var(--fg-ink); outline-offset: 6px; }
.fg p { margin: 0; }
.fg ul, .fg ol { margin: 0; padding: 0; list-style: none; }

/* ---------- type ---------- */
.fx-title {
  margin: 0;
  font: 300 clamp(36.8px, 14.4px + 3.1vw, 73.6px)/1.08 var(--fg-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-ink);
}
.fg .fx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 600 11px/1.2 var(--fg-sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-ink-2);
}
.fx-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--fg-accent); }
.fx-lead { font: 300 clamp(20.8px, 14.4px + 1vw, 32px)/1.5 var(--fg-sans); letter-spacing: -0.005em; color: var(--fg-ink); }

/* text link with a drawn arrow */
.fx-link { display: inline-flex; align-items: center; gap: 16px; font: 600 11px/1 var(--fg-sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-ink); }
.fx-link i { position: relative; width: 36px; height: 1px; background: currentColor; transition: width 0.7s var(--fg-ease), background-color 0.7s var(--fg-ease); }
.fx-link i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.fx-link:hover i, .fx-card:hover .fx-link i { width: 58px; background-color: var(--fg-accent-2); }
.fx-link:hover i::after, .fx-card:hover .fx-link i::after { border-color: var(--fg-accent-2); }

/* ---------- button: a bone fill wipes in from the left, the label turns dark ---------- */
.fg-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  height: 54px;
  padding: 0 34px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(8, 8, 8, 0.5);
  color: var(--fg-ink);
  font: 600 11px/1 var(--fg-sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fg-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--fg-ink);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.75s var(--fg-ease);
}
.fg .fg-btn { transition: color 0.45s var(--fg-ease), border-color 0.6s var(--fg-ease); }
.fg-btn:hover, .fg-btn:focus-visible { border-color: var(--fg-ink); }
.fg-btn:hover::after, .fg-btn:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.fg .fg-btn:focus { color: var(--fg-ink); }
.fg .fg-btn:hover, .fg .fg-btn:focus-visible { color: #0b0b0b; }

/* brand logos */
.fg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.fg-chips img { width: calc(var(--w) * 0.22px); height: auto; opacity: 0.6; transition: opacity 0.6s var(--fg-ease); }

/* ==========================================================================
   1 opening
   - the demo banner stays put (sticky, class added by the script), zooms and
     dissolves into the textured stage
   - the about text rises on the same texture
   - the photo opens from the centre of the screen; headline, logos and numbers
     sit on it the way Forge lays out its approach section
   ========================================================================== */
.fx-hero-pin { position: sticky; top: 0; z-index: 0; min-height: 100vh; overflow: hidden; background: var(--fg-bg); }
.fg { z-index: 1; }
/* the stage sits right over the banner from the first pixel (nothing slides up over it); it stays
   transparent until the photo opens, so the zooming banner and then the texture show through */
.fx-open { position: relative; margin-top: -100vh; }
/* 120vh for the banner's three slides (one scroll gesture moves one slide), then 300vh for the opening */
.fx-open__run { height: 420vh; }
.fx-open__stage { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; background: transparent; pointer-events: none; }
/* the opening lies over the banner, so it must let clicks through to the banner's arrows and dots */
.fg, .fx-open, .fx-open__run { pointer-events: none; }
.fg > :not(.fx-open), .fx-open__rail, .fx-open__side { pointer-events: auto; }
/* on WordPress the sections sit inside Elementor containers that rise over the pinned banner as it scrolls through its
   slides; like .fg they must let clicks through to the banner's arrows */
.e-con:has(.fg), .elementor-widget:has(> .fg) { pointer-events: none; }

/* the big line sits dead centre on the screen; the eyebrow rides above it (equal rows above and below the line) */
.fx-about { position: absolute; z-index: 1; inset: 0; display: grid; grid-template-rows: 1fr auto auto auto 1fr; justify-items: center; padding: 0 var(--fg-gutter) 4vh; text-align: center; }
.fx-about .fx-eyebrow { grid-row: 2; margin-bottom: 40px; }
/* eyebrow, title, paragraph (as on berjaya.com's "Who we are"): the three as one block, centred and lifted a little (padding-bottom 4vh) */
.fg .fx-about__title { grid-row: 3; margin: 0; max-width: 92vw; white-space: nowrap; font: 300 clamp(38.4px, 16px + 3.1vw, 73.6px)/1.12 var(--fg-display); letter-spacing: -0.025em; color: var(--fg-ink); text-wrap: balance; }
.fg .fx-about__text { grid-row: 4; align-self: start; max-width: 54em; margin-top: 36px; font: 300 clamp(17px, 13px + 0.42vw, 21px)/1.7 var(--fg-sans); color: var(--fg-ink-2); text-wrap: balance; }  /* title on one line, these words on three */

.fx-hero__media { position: absolute; z-index: 2; inset: 0; clip-path: inset(50% 50% 50% 50%); will-change: clip-path; }
.fx-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); }
.fx-hero__shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.08) 36%, rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 58%);
}
.fx-hero__top { position: absolute; z-index: 3; left: var(--fg-gutter); top: calc(92px + 7vh); display: grid; gap: 28px; justify-items: start; }
.fx-hero__title { font-size: clamp(38.4px, 16px + 3.1vw, 73.6px); line-height: 1.06; letter-spacing: 0.02em; }
.fx-hero__title span { display: block; }

/* brand logos across the lower left, button on the right, as Forge does it */
.fx-open__rail { position: absolute; z-index: 3; left: 0; width: 62%; bottom: 32vh; --fg-logo-k: 0.34; }
.fx-open__side { position: absolute; z-index: 3; left: 67.8%; top: calc(66vh - 40px); width: min(340px, 25vw); display: grid; gap: 30px; justify-items: start; }
.fx-open__side p { font-size: 17px; line-height: 1.55; color: var(--fg-ink); }
.fx-hero-pin .chtc-track { will-change: filter; }

.fx-specs { position: absolute; z-index: 3; left: var(--fg-gutter); right: var(--fg-gutter); bottom: 7vh; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3vw; }
.fx-spec { display: flex; align-items: flex-end; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.fx-spec__n { font: 300 clamp(44.8px, 16px + 3.3vw, 80px)/0.86 var(--fg-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg-ink); }
.fx-spec__l { display: grid; gap: 7px; padding-bottom: 5px; font: 500 10px/1.2 var(--fg-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-ink-3); }
.fx-spec__l b { font-weight: 600; letter-spacing: 0.28em; color: var(--fg-ink); }

/* brand rail: drift, drag, lean, give way */
.fg-rail {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 82%, transparent 100%);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.fg-rail.is-dragging { cursor: grabbing; }
.fg-rail__track { display: flex; width: max-content; will-change: transform; }
/* the trailing space keeps the gap where the list meets its copy (.fg ul would reset it, hence .fg in front) */
.fg .fg-rail__list { display: flex; align-items: center; gap: clamp(56px, 6vw, 96px); padding: 0 clamp(56px, 6vw, 96px) 0 0; }
.fg-rail__list li { will-change: transform; }
.fg-rail__list img { width: calc(var(--w) * var(--fg-logo-k) * 1px); height: auto; opacity: 0.8; pointer-events: none; }

/* ==========================================================================
   2 why: feature cards that travel sideways while the section is pinned
   ========================================================================== */
/* One chapter per screen, with generous letterbox-like breathing room. */
/* no outer padding: it left a plain dark strip above and below the blurred room */
.fx-why { position: relative; height: 360vh; padding-block: 0; background: var(--fg-bg); }
.fx-why__pin { position: sticky; top: 0; height: 100svh; box-sizing: border-box; padding: clamp(64px, 11vh, 120px) var(--fg-gutter); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); }
.fx-why__head { width: 100%; max-width: 1320px; margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.fx-why__head > div { display: grid; gap: 20px; }
/* same size as the opening headline (BUILT ON TRUST.) */
.fx-why__title { font-size: clamp(38.4px, 16px + 3.1vw, 73.6px); line-height: 1.06; letter-spacing: 0.02em; text-wrap: balance; }
.fx-why__progress { display: flex; align-items: center; gap: 16px; padding-bottom: 6px; font: 500 12px/1 var(--fg-sans); letter-spacing: .2em; color: var(--fg-ink-3); font-variant-numeric: tabular-nums; }
.fx-why__progress i { width: clamp(64px, 9vw, 150px); height: 1px; overflow: hidden; background: var(--fg-line); }
.fx-why__progress b { display: block; height: 100%; background: var(--fg-accent); transform: scaleX(.3333); transform-origin: left; }
.fx-why__n { color: var(--fg-ink); }
/* the script sizes the track to the photo, so the whole block sits centred with equal room above and below */
.fx-why__track { position: relative; flex: 0 0 auto; height: 56vh; min-height: 0; width: 100%; max-width: 1320px; margin-inline: auto; }
.fx-card { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; opacity: 0; visibility: hidden; }
.fx-card:first-child { opacity: 1; visibility: visible; }
/* photo on the left, words on the right (as Forge lays its chapters out) */
.fx-card__media { grid-column: 1; grid-row: 1; position: relative; width: auto; height: 100%; max-width: 100%; aspect-ratio: 3 / 2; transform-origin: 50% 50%; justify-self: start; overflow: hidden; background: #151515; }
.fx-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); filter: brightness(.85); }
.fx-card__sheen { display: none; }
.fx-card__body { grid-column: 2; grid-row: 1; display: grid; justify-items: start; gap: clamp(16px, 2.8vh, 28px); }
.fx-card__idx { font: 300 18px/1 var(--fg-sans); color: var(--fg-accent-2); font-variant-numeric: tabular-nums; }
.fx-card__idx span { font-size: 11px; letter-spacing: .16em; color: var(--fg-ink-3); }
.fx-card__title { margin: 0; font: 300 clamp(32px, 3vw, 57.6px)/1.1 var(--fg-display); letter-spacing: .015em; text-transform: uppercase; }
.fx-card__text { max-width: 38ch; color: var(--fg-ink-2); font-size: clamp(15px, 1.1vw, 18px); line-height: 1.65; }
.fx-card .fx-link { margin-top: 8px; }
/* the room behind the frame: the current photo, blurred and dimmed, as Forge does it */
.fx-why__pin { isolation: isolate; }
/* Forge's own values: 24px blur, the layer at 40% over black, barely larger than the screen */
.fx-why__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0.9; }
/* lifted into a soft haze (raised blacks), so the dark photos read as a window in front of it; --lift evens the three out */
.fx-why__bg img { position: absolute; inset: -100px; width: calc(100% + 200px); height: calc(100% + 200px); object-fit: cover; filter: blur(44px) brightness(var(--lift, 1.45)) contrast(0.72) saturate(1.05); opacity: 0; visibility: hidden; }
.fx-why__bg img:first-child { opacity: 1; visibility: visible; }
/* sits on the photo (JS sizes it to the frame): a soft shadow under it and a faint hairline around it */
.fx-why__frame { position: absolute; left: 0; top: 0; z-index: 0; height: 100%; aspect-ratio: 3 / 2; pointer-events: none; outline: 1px solid rgba(243, 242, 239, 0.12); box-shadow: 0 40px 110px -24px rgba(0, 0, 0, 0.9); }
@media (max-width: 1100px), (max-height: 420px) {
  .fg .fx-why { height: auto; }
  .fg .fx-why__pin { position: relative; height: auto; overflow: visible; padding: 64px var(--fg-gutter); gap: 40px; }
  .fx-why__head { display: block; }
  .fg .fx-why__progress { display: none; }
  .fg .fx-why__track { display: grid; gap: 64px; height: auto; }
  .fx-card { position: relative; inset: auto; grid-template-columns: minmax(0, 1fr); gap: 24px; opacity: 1; visibility: visible; }
  .fx-card__media { grid-column: 1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .fx-card__body { grid-column: 1; grid-row: 2; gap: 16px; }
  .fx-card__text { max-width: 48ch; }
  .fx-why__bg, .fx-why__frame { display: none; }
}

/* ==========================================================================
   3 statement: the speaker, lit by a band of light that moves with the scroll
   ========================================================================== */
.fx-state { position: relative; height: 100vh; min-height: 680px; overflow: hidden; background: #000; }
.fx-state__media { position: absolute; inset: 0; }
.fx-state__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transform: scale(1.18); }
.fx-state__beam { position: absolute; inset: -20% -50%; background: linear-gradient(100deg, transparent 43%, rgba(255, 222, 190, 0.2) 50%, transparent 57%); transform: translateX(-60%); mix-blend-mode: screen; pointer-events: none; }
.fx-state__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0) 72%), linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 38%); }
.fx-state__copy { position: absolute; z-index: 2; left: var(--fg-gutter); top: 44%; transform: translateY(-50%); width: min(780px, 58vw); display: grid; gap: 30px; }
.fx-state__title { font-size: clamp(35.2px, 14.4px + 3vw, 70.4px); line-height: 1.12; }
.fx-state__title .fx-w { color: var(--fg-dim); }
.fx-state__sub { font: 300 clamp(17.6px, 14.4px + 0.6vw, 24px)/1.5 var(--fg-sans); letter-spacing: 0.02em; color: var(--fg-accent-2); }
.fx-state__foot { position: absolute; z-index: 2; left: var(--fg-gutter); right: var(--fg-gutter); bottom: 8vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 30px; border-top: 1px solid var(--fg-line); }
.fx-state__foot p { max-width: 540px; color: var(--fg-ink-2); }
/* one scene: the statement sits on the why pin (JS adds .is-scene and sets the section's length),
   and chapter 3's photo opens out into its background */
.fx-why.is-scene > .fx-state { position: sticky; top: 0; z-index: 2; height: 100svh; min-height: 0; margin-top: -100svh; background: transparent; pointer-events: none; }
.fx-why.is-scene > .fx-state .fx-state__foot { pointer-events: auto; }

/* ==========================================================================
   3b highlight recap, on bone: the films stay on the left (sticky) while their stories scroll up past them on the
   right, one story to a screen, each exactly as tall as the film; the script wipes each next film up over the last
   ========================================================================== */
/* every colour inside reads these tokens: dark ink and a deeper copper on bone */
.fx-reel { --fg-ink: #11100e; --fg-ink-2: #4b4843; --fg-ink-3: #8a8780; --fg-accent: #b0703f; --fg-accent-2: #a8653a; --reel-line: rgba(17, 16, 14, 0.14); --reel-h: 80vh; position: relative; display: grid; grid-template-columns: calc(var(--reel-h) * 0.75) minmax(0, 560px); justify-content: center; column-gap: clamp(80px, 8.4vw, 160px); background: #f3f2ef; }
.fx-reel__films { grid-column: 1; grid-row: 1; }
.fx-reel__stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.fx-reel__frame { position: relative; width: 100%; height: var(--reel-h); box-shadow: 0 60px 100px -60px rgba(17, 16, 14, 0.6); }
.fx-reel__media { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #1a1917; }
.fx-reel__media ~ .fx-reel__media { clip-path: inset(100% 0 0 0); }   /* only the first shows until the script runs */
.fx-reel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.fx-reel__stories { grid-column: 2; grid-row: 1; }
/* a story fills a screen, its words (the count just above the kind line) in the middle of it */
.fx-reel__story { box-sizing: border-box; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.fg .fx-reel__count { margin-bottom: 24px; font: 300 clamp(26px, 1.8vw, 34px)/1 var(--fg-display); letter-spacing: 0.02em; color: var(--fg-ink-3); font-variant-numeric: tabular-nums; }
.fx-reel__count b { font-weight: 300; color: var(--fg-ink); }
.fx-reel__kind { display: flex; align-items: center; gap: 16px; font: 600 11px/1.4 var(--fg-sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-ink-3); }
.fx-reel__kind span { display: inline-flex; align-items: center; gap: 16px; color: var(--fg-accent-2); }
.fx-reel__kind span::before { content: ""; width: 28px; height: 1px; background: var(--reel-line); }
.fg .fx-reel__title { margin: 22px 0 0; font: 300 clamp(40px, 12px + 2.9vw, 72px)/1.04 var(--fg-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-ink); text-wrap: balance; }
.fg .fx-reel__text { margin-top: 28px; max-width: 28em; color: var(--fg-ink-2); font: 300 clamp(16px, 1vw, 19px)/1.6 var(--fg-sans); }
@media (max-width: 1100px), (max-height: 420px) {
  .fx-reel { --reel-h: 52vh; grid-template-columns: minmax(0, 1fr); padding-inline: var(--fg-gutter); }
  .fx-reel__films { grid-area: 1 / 1; z-index: 1; }
  .fx-reel__stick { height: auto; padding-block: 24px; justify-content: center; background: #f3f2ef; }
  .fx-reel__frame { width: auto; aspect-ratio: 3 / 4; }
  .fx-reel__stories { grid-area: 1 / 1; padding-top: calc(var(--reel-h) + 48px); }
  .fx-reel__story { height: auto; min-height: 70vh; padding-block: 40px; justify-content: flex-start; gap: 28px; }
}

/* ==========================================================================
   4 insights: article rows beside a sticky photo column
   ========================================================================== */
/* Forge's services layout: the left half is one 100vh row per article over the carbon texture; the right half is
   a sticky photo column where each next photo is revealed from the bottom edge, in step with its row */
.fx-news { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--fg-bg); }
/* the texture holds still while the words scroll: a fixed layer, clipped to the left column */
.fx-news__rows { position: relative; clip-path: inset(0); padding-inline: var(--fg-gutter) clamp(32px, 5vw, 96px); }
.fx-news__rows::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--fg-bg) var(--fg-carbon); background-size: 1536px; pointer-events: none; }
.fx-news__row { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.fx-news__body { display: grid; justify-items: start; max-width: 720px; }
.fx-news__label { font: 600 10px/20px var(--fg-sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-ink-3); }
.fg .fx-news__title { margin: 22px 0 0; font: 300 clamp(38.4px, 16px + 3.1vw, 73.6px)/1.06 var(--fg-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-ink); text-wrap: balance; }
.fg .fx-news__text { margin-top: 22px; max-width: 30em; font: 300 clamp(16px, 1.05vw, 18px)/1.5 var(--fg-sans); color: var(--fg-ink-2); }
.fg .fx-news__meta { margin-top: 30px; display: flex; align-items: center; gap: 18px; font: 600 10px/1 var(--fg-sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-ink-3); }
.fx-news__meta span + span::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 18px; vertical-align: middle; background: currentColor; opacity: 0.6; }
.fg .fx-news .fg-btn { margin-top: 40px; }
.fx-news__aside { position: relative; }
.fx-news__panel { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.fx-news__pic { position: absolute; inset: 0; margin: 0; overflow: hidden; background: #0c0c0c; }
.fx-news__pic + .fx-news__pic { clip-path: inset(100% 0% 0% 0%); }
.fx-news__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
@media (max-width: 767px) {
  .fx-news { grid-template-columns: minmax(0, 1fr); }
  .fx-news__aside { display: none; }
  .fx-news__row { min-height: 0; padding-block: 72px; }
}
/* handovers: every section lies above the one before so it can slide over it (the script moves the one
   before at half speed); a soft shadow marks the edge */
.fx-open { z-index: 1; }
.fx-why { z-index: 2; }
.fx-reel { z-index: 3; }
.fx-why, .fx-reel, .fx-news { box-shadow: 0 -40px 90px -20px rgba(0, 0, 0, 0.65); }
/* the close lies over the footer, with a soft shadow on its lower edge */
.fg-close { z-index: 7; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.65); }
/* for screen readers only */
.fg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ==========================================================================
   5 ordinary sound ... ends here: a flat line turns into a full waveform
   ========================================================================== */
/* it slides over the insights (which keep rising at half speed, see the script), with a soft shadow on its edge */
/* ordinary sound lies above the dealer + store tiles too: they come out from behind it, under its lower shadow */
.fx-wave { position: relative; z-index: 5; height: 270vh; background: var(--fg-bg); box-shadow: 0 -40px 90px -20px rgba(0, 0, 0, 0.65), 0 40px 90px -20px rgba(0, 0, 0, 0.65); }
.fx-wave__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--fg-bg); }
.fx-wave__before {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: 21vh;
  text-align: center;
  font-size: clamp(41.6px, 16px + 4vw, 89.6px);
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 242, 239, 0.6);
}
/* letter by letter, a faint outline fills in to solid as the section arrives (the script tweens --f and --s) */
/* the variable font builds letters from overlapping parts (the R's leg runs into its bowl, the A's bar into its
   legs), and an outline would show those joins. So each letter is three layers: a 2px outline, a copy in the ground
   colour that covers its inner half and the joins, and the fill on top */
.fx-wave__before .fx-c { --f: 0; --s: 0.28; position: relative; color: transparent; -webkit-text-stroke: 2px rgba(243, 242, 239, var(--s)); }
.fx-wave__before .fx-c::before, .fx-wave__before .fx-c::after { content: attr(data-c); position: absolute; left: 0; top: 0; -webkit-text-stroke: 0; }
.fx-wave__before .fx-c::before { color: var(--fg-bg); }
.fx-wave__before .fx-c::after { color: rgba(243, 242, 239, var(--f)); }
.fx-wave__svg { position: absolute; left: 0; top: 50%; width: 100%; height: 42vh; transform: translateY(-46%); overflow: visible; filter: drop-shadow(0 0 10px rgba(232, 180, 138, 0.35)); }
.fx-wave__line { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fx-wave__line--1 { stroke: url(#fxw-copper); stroke-width: 2; }
.fx-wave__line--2 { stroke: rgba(243, 242, 239, 0.34); stroke-width: 1; }
.fx-wave__line--3 { stroke: rgba(192, 122, 76, 0.4); stroke-width: 1; }
.fx-wave__after { position: absolute; z-index: 2; inset: 21vh 0 13vh; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; visibility: hidden; opacity: 0; }
.fx-wave__end {
  font-size: clamp(41.6px, 16px + 4vw, 89.6px);
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #f3f2ef 0%, #e8b48a 50%, #f3f2ef 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.fx-wave__cap { max-width: 40ch; color: var(--fg-ink-2); font-size: 16px; }

/* ==========================================================================
   6 dealer + store: two tiles side by side
   ========================================================================== */
/* the two tiles run edge to edge, split by a thin black line, on the same black as the close below (no grey frame) */
.fx-duo { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0; background: #000; }
.fx-tile { position: relative; height: 92vh; min-height: 620px; overflow: hidden; isolation: isolate; background: #111; }
.fx-tile__media { position: absolute; inset: -8% 0; overflow: hidden; }
.fx-tile__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: brightness(0.78); transition: transform 1.8s var(--fg-ease), filter 1.2s var(--fg-ease); }
.fx-tile:hover .fx-tile__media img { transform: scale(1.1); filter: brightness(0.95); }
.fx-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.3) 46%, rgba(0, 0, 0, 0.08) 100%); pointer-events: none; }
.fx-tile__light { position: absolute; inset: 0; z-index: 1; opacity: 0; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 214, 176, 0.17), rgba(255, 214, 176, 0) 62%); mix-blend-mode: screen; transition: opacity 0.9s var(--fg-ease); pointer-events: none; }
.fx-tile.is-lit .fx-tile__light { opacity: 1; }
.fx-tile__copy { position: absolute; z-index: 2; left: clamp(28px, 3.6vw, 56px); right: clamp(28px, 3.6vw, 56px); bottom: clamp(36px, 6vh, 64px); display: grid; justify-items: start; gap: 22px; }
.fx-tile__title { font-size: clamp(32px, 14.4px + 2.3vw, 57.6px); }
.fx-tile__copy p:not(.fx-eyebrow) { max-width: 40ch; color: var(--fg-ink-2); }
.fx-tile__copy .fg-btn { margin-top: 6px; }

/* ==========================================================================
   7 close: a light that follows the pointer
   ========================================================================== */
.fg-close { position: relative; height: 100vh; min-height: 720px; overflow: hidden; background: #000; }
.fg-close__media { position: absolute; inset: 0; }
.fg-close__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; filter: sepia(0.3) saturate(0.8) brightness(0.62); }
.fg-close__gl { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.fg-close.is-gl .fg-close__gl { visibility: visible; }
.fg-close.is-gl .fg-close__img { visibility: hidden; }
.fg-close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.4) 100%); pointer-events: none; }
.fg-close__copy { position: absolute; z-index: 2; left: 0; right: 0; top: 18vh; display: grid; justify-items: center; text-align: center; gap: 30px; }
.fg-close__copy .fx-eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--fg-accent); }
.fg-close__title { font-size: clamp(44.8px, 16px + 4.3vw, 96px); line-height: 1.04; letter-spacing: 0.02em; }
.fg-close__copy .fg-btn { margin-top: 14px; }

/* ==========================================================================
   8 footer: it lies under the close and comes out from behind it at half speed (the script). The brand and three
   columns of links, then the name across the page (a copper light glides across it), then the base line.
   ========================================================================== */
.fg-foot { --fg-arw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M2 10 10 2M3.5 2H10v6.5'/%3E%3C/svg%3E"); position: relative; z-index: 6; min-height: 100vh; display: flex; background: radial-gradient(110% 70% at 8% 0%, rgba(192, 122, 76, 0.1), transparent 55%), var(--fg-bg); }
.fg-foot__inner { flex: 1; display: flex; flex-direction: column; padding: clamp(96px, 15vh, 150px) var(--fg-gutter) 0; }
.fg-foot__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; padding-bottom: 96px; }
.fg-foot__logo { display: inline-block; }
.fg-foot__logo img { width: 210px; height: auto; }
.fg .fg-foot__lead { margin-top: 36px; max-width: 24em; font: 300 20px/1.55 var(--fg-sans); color: var(--fg-ink-2); }
.fg-foot__facts { display: flex; gap: 64px; margin: 48px 0 0; }
.fg-foot__facts dt { font: 600 10px/1 var(--fg-sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-ink-3); }
.fg-foot__facts dd { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font: 400 16px/1.2 var(--fg-sans); color: var(--fg-ink); }
.fg-foot__facts dd i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-accent); box-shadow: 0 0 12px rgba(232, 180, 138, 0.6); }
.fg .fg-foot__facts a:hover, .fg .fg-foot__facts a:focus-visible { color: var(--fg-accent-2); }
.fg-foot__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.fg .fg-foot__label { padding-bottom: 22px; font: 600 11px/1 var(--fg-sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-accent); }
.fg .fg-foot__list { border-top: 1px solid var(--fg-line); }
.fg-foot__link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--fg-line); font: 400 16px/1.3 var(--fg-sans); color: var(--fg-ink-2); }
.fg-foot__link span { transition: transform 0.6s var(--fg-ease), color 0.5s var(--fg-ease); }
.fg-foot__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg-accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.7s var(--fg-ease); }
.fg-foot__link:hover span, .fg-foot__link:focus-visible span { transform: translateX(8px); color: var(--fg-ink); }
.fg-foot__link:hover::after, .fg-foot__link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
/* the arrow leaves to the top right while a new one comes in from the bottom left */
.fg-foot__arw { position: relative; flex: 0 0 auto; width: 11px; height: 11px; overflow: hidden; color: var(--fg-ink-3); transition: color 0.5s var(--fg-ease); }
.fg-foot__arw::before, .fg-foot__arw::after { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--fg-arw) center / contain no-repeat; mask: var(--fg-arw) center / contain no-repeat; transition: transform 0.6s var(--fg-ease); }
.fg-foot__arw::after { transform: translate(-110%, 110%); }
.fg-foot__link:hover .fg-foot__arw, .fg-foot__link:focus-visible .fg-foot__arw { color: var(--fg-accent-2); }
.fg-foot__link:hover .fg-foot__arw::before, .fg-foot__link:focus-visible .fg-foot__arw::before { transform: translate(110%, -110%); }
.fg-foot__link:hover .fg-foot__arw::after, .fg-foot__link:focus-visible .fg-foot__arw::after { transform: translate(0, 0); }
/* the name: as wide as the page (the script fits it; the vw size is the fallback), drawn as a hairline outline */
.fg .fg-foot__mark { position: relative; margin-top: auto; font: 300 12.4vw/0.8 var(--fg-display); letter-spacing: 0.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(243, 242, 239, 0.22); user-select: none; }
/* the variable font builds letters from overlapping parts (the bar of the A runs into its legs), and an outline
   would show those joins. So the outline is drawn 2px wide and a copy of the letters in the ground colour covers
   its inner half, leaving a clean 1px line outside */
.fg-foot__mark::before { content: attr(data-text); position: absolute; inset: 0; color: var(--fg-bg); -webkit-text-stroke: 0; }
/* the light: a copper copy of the name that shows only inside a soft round light, which the script glides from the
   left edge to the right and round again while the footer is on screen (off to the left, so dark, without it) */
.fg-foot__mark::after { content: attr(data-text); position: absolute; inset: 0; -webkit-text-stroke: 0; background: radial-gradient(circle 340px at var(--mx, -20%) 50%, rgba(232, 180, 138, 0.95), rgba(192, 122, 76, 0.4) 45%, rgba(192, 122, 76, 0) 100%); -webkit-background-clip: text; background-clip: text; }
.fg-foot__base { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 28px; padding: 28px 0 36px; border-top: 1px solid var(--fg-line); font: 600 10px/1.4 var(--fg-sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-ink-3); }
.fg-foot__credit { position: relative; color: var(--fg-ink-2); }
.fg-foot__credit::after { content: ""; position: absolute; left: 0; right: 0.3em; bottom: -6px; height: 1px; background: var(--fg-accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.6s var(--fg-ease); }
.fg .fg-foot__credit:hover, .fg .fg-foot__credit:focus-visible { color: var(--fg-ink); }
.fg-foot__credit:hover::after, .fg-foot__credit:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (max-width: 1100px) {
  .fg-foot__top { grid-template-columns: minmax(0, 1fr); gap: 72px; }
}
@media (max-width: 1100px) {   /* phones and tablets (cht-mobile.css) */
  .fg-foot { min-height: 0; }
  .fg-foot__nav { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fg-foot__base { flex-direction: column; align-items: flex-start; }
}

/* reduced motion: the scroll story still plays (see cht-forge.js); only the slow zoom on the banner is dropped */
@media (prefers-reduced-motion: reduce) {
  #cht-hero-carousel .chtc-art, #cht-hero-carousel .is-active .chtc-art { transform: translate(-50%, -50%); }
}
}

/* Independent hero brand artwork aligned to the original 1920 x 1080 canvas. */
#cht-hero-carousel .chtc-slide { container-type: size; }
#cht-hero-carousel .chtc-art { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.777778cqh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(1.035); transition: transform 7s cubic-bezier(.22,1,.36,1); }
#cht-hero-carousel .is-active .chtc-art { transform: translate(-50%, -50%) scale(1); }
#cht-hero-carousel .chtc-slide .chtc-art .chtc-scene { width: 100%; height: 100%; transform: none; transition: none; }
#cht-hero-carousel .chtc-art { container-type: inline-size; }
#cht-hero-carousel .chtc-copy { position: absolute; left: 10.9375%; top: 22%; width: 44%; color: #f3f2ef; }
#cht-hero-carousel .chtc-slide .chtc-art .chtc-brand { position: static; width: 26%; height: auto; object-fit: contain; transform: none; transition: none; filter: drop-shadow(2px 4px 8px rgba(0,0,0,.4)); }
#cht-hero-carousel .chtc-slide[data-label="Harman Kardon"] .chtc-brand { width: 34%; }
/* 2026-10-15 banners carry their brand logo in the image (at 10.94% / 22%, up to 29.6% down), so the slide has only
   the tagline, set just under the tallest logo so every slide's words sit in the same place */
#cht-hero-carousel .chtc-copy--baked { top: 32%; }
#cht-hero-carousel .chtc-copy--baked .chtc-tagline { margin-top: 0; font-size: clamp(40px, 14px + 3.6cqw, 76px); }  /* 76px keeps "Own the Moment." clear of the Mini */
#cht-hero-carousel .chtc-tagline { margin: 1.25cqw 0 0; font-family: var(--fg-display); font-size: clamp(44px, 16px + 4.2cqw, 88px); font-weight: 300; line-height: 1.02; letter-spacing: -.025em; color: #f3f2ef; text-wrap: balance; }
@media (max-width: 1100px) {
  #cht-hero-carousel .chtc-copy { left: calc((100% - 100vw) / 2 + clamp(24px, 6vw, 64px)); width: min(58vw, 560px); }
  #cht-hero-carousel .chtc-tagline { font-size: clamp(32px, 5.4vw, 56px); }
}


