/*
Theme Name: Trestle Gaming v3
Theme URI: https://www.trestlegaming.com/
Author: Trestle Gaming
Description: Custom theme for Trestle Gaming — casino game manufacturer. Rebuilt to the old site's design: Quantify lettering, fire and particle backdrops, hand-placed collages, whole game screens, scroll motion. No page builder, no jQuery, no plugin dependencies.
Version: 3.2.21
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trestle-gaming
Tags: custom-theme, dark, one-column, custom-menu, featured-images
*/

/* ==========================================================================
   1. Tokens + the logo face
   ========================================================================== */
@font-face {
  font-family: "Quantify";
  src: url("assets/fonts/quantify-bold.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}

:root {
  --tg-red: #ED1C24;          /* brand red: buttons, links */
  --tg-red-dark: #C5121A;
  --tg-red-lit: #D40000;      /* the old site's own red for text (measured); fills keep --tg-red */
  --tg-card-red: #FF0000;     /* value-card headings on the old site */
  --tg-logo-red: #D40000;     /* the wordmark's red: hero lettering. Measured on the live site. */
  --tg-hot: #FF1E1E;          /* the old cards' headings */
  --tg-ink: #141416;          /* the live site's own surface colour (rgb 20,20,22) */
  --tg-ink-2: #111115;
  --tg-ink-3: #232328;
  --tg-fg: #F4F4F4;
  --tg-fg-muted: #E3E4EA;
  --tg-grey: #8E8E93;

  --tg-q: "Quantify", "Poppins", "Helvetica Neue", Arial, sans-serif;
  --tg-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --tg-wrap: 1260px;
  --tg-gutter: 24px;
  --tg-radius: 10px;
  --tg-nav-h: 76px;
  --tg-ease: cubic-bezier(.4, 0, .2, 1);
  --tg-out: cubic-bezier(.16, 1, .3, 1);
  --tg-pop: cubic-bezier(.34, 1.56, .64, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--tg-nav-h); overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--tg-ink); color: var(--tg-fg);
  font: 400 16px/1.65 var(--tg-q);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
/* the old site sets h1 at 700 and everything below it at 400 (measured) */
h1, h2, h3, h4 { font-family: var(--tg-q); font-weight: 400; margin: 0 0 .5em; line-height: 1.12; color: var(--tg-fg); }
h1 { font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--tg-red-lit); text-decoration: none; transition: color .18s var(--tg-ease); }
a:hover { color: #fff; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--tg-red); outline-offset: 3px; }
[hidden] { display: none !important; }

.tg-skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--tg-red); color: #fff; padding: .7rem 1.1rem; }
.tg-skip:focus { left: 8px; top: 8px; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.tg-wrap { width: 100%; max-width: var(--tg-wrap); margin-inline: auto; padding-inline: var(--tg-gutter); }

.tg-eyebrow { font: 400 .85rem/1 var(--tg-q); letter-spacing: .12em; text-transform: uppercase; color: var(--tg-red-lit); margin: 0 0 1rem; }
.tg-lede { font-size: 1.1rem; color: var(--tg-fg-muted); max-width: 62ch; }
.tg-subtitle { font: 700 clamp(1.05rem, 2vw, 1.3rem)/1.35 var(--tg-q); color: #fff; max-width: 42ch; margin: -.2em 0 1rem; }
.tg-breadcrumb { font-size: .8rem; letter-spacing: .06em; color: #cfcfd4; margin: 0 0 1rem; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.tg-breadcrumb a { color: #cfcfd4; }
.tg-breadcrumb a:hover { color: var(--tg-red); }
.tg-sec { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* ==========================================================================
   3. Buttons — the old site's: near-black, a thin white outline, 5px corners
   ========================================================================== */
.tg-btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 .95rem/1 var(--tg-q); letter-spacing: .02em;
  padding: .95rem 1.7rem; border-radius: 5px;
  background: rgba(20, 20, 22, .82); color: #fff; border: 1px solid #fff; cursor: pointer;
  transition: background-color .2s var(--tg-ease), border-color .2s var(--tg-ease), color .2s var(--tg-ease), transform .2s var(--tg-ease);
}
.tg-btn:hover { background: var(--tg-red); border-color: var(--tg-red); color: #fff; transform: translateY(-1px); }
.tg-btn:active { transform: translateY(1px); }
/* --primary is what inc/contact-form.php puts on the Submit button. It was never
   defined here, so that button fell back to the plain outline and read as disabled. */
.tg-btn--red,
.tg-btn--primary { background: linear-gradient(180deg, #ED1C24 0%, #C5121A 100%); border-color: #FF6A6E; box-shadow: 0 0 18px rgba(237,28,36,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.tg-btn--red:hover,
.tg-btn--primary:hover { background: linear-gradient(180deg, #ED1C24 0%, #C5121A 100%); border-color: #FFB0B4; box-shadow: 0 0 32px rgba(237,28,36,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.tg-btn[disabled] { opacity: .55; cursor: default; transform: none; }
.tg-btn--line { background: transparent; }
.tg-btn--out { background: transparent; border-color: var(--tg-red); color: var(--tg-red); }
.tg-btn--out:hover { background: var(--tg-red); color: #fff; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.tg-nav { position: sticky; top: 0; z-index: 60; background: linear-gradient(180deg, rgba(30,30,38,.92) 0%, rgba(18,18,24,.92) 100%); backdrop-filter: blur(10px) saturate(1.25); border-bottom: 1px solid rgba(237,28,36,.5); box-shadow: 0 1px 22px rgba(237,28,36,.16); }
.tg-nav__in { display: flex; align-items: center; gap: 2rem; min-height: var(--tg-nav-h); }
.tg-nav__logo img { height: 48px; width: auto; }
.tg-nav ul { display: flex; gap: 2.1rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.tg-nav a { font: 400 14px/1 var(--tg-q); letter-spacing: normal; text-transform: uppercase; color: #fff; }
.tg-nav a:hover, .tg-nav .current-menu-item > a, .tg-nav .current_page_item > a, .tg-nav .current-menu-parent > a { color: var(--tg-red-lit); }
.tg-nav__cta .tg-btn { padding: .8rem 1.3rem; font-size: 14px; background: #141416; }
.tg-nav__cta .tg-btn:hover { background: var(--tg-red); }

/* The header's "Get Started" button needs no modifier: measured on the live
   trestlegaming.com it is #141416 + 1px #fff + 5px radius, which is what
   `.tg-nav__cta .tg-btn` above already produces. */

.tg-burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; position: relative; background: none; border: 1px solid #333; border-radius: 5px; cursor: pointer; }
.tg-burger span, .tg-burger span::before, .tg-burger span::after { position: absolute; left: 50%; width: 20px; height: 2px; background: #fff; transform: translateX(-50%); transition: transform .2s var(--tg-ease); }
.tg-burger span { top: 50%; margin-top: -1px; }
.tg-burger span::before { content: ""; top: -6px; left: 0; transform: none; }
.tg-burger span::after { content: ""; top: 6px; left: 0; transform: none; }
.tg-burger[aria-expanded="true"] span { background: transparent; }
.tg-burger[aria-expanded="true"] span::before { transform: rotate(45deg) translateY(6px); }
.tg-burger[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-6px); }

@media (max-width: 1080px) { .tg-nav ul { gap: 1.4rem; } .tg-nav a { font-size: .78rem; } }
@media (max-width: 960px) {
  .tg-burger { display: block; order: 3; margin-left: 0; }
  .tg-nav__cta { order: 2; margin-left: auto; }
  .tg-nav__cta .tg-btn { padding: .65rem 1rem; font-size: .74rem; }
  .tg-nav__in { gap: .8rem; }
  .tg-nav__logo img { height: 40px; }
  .tg-nav nav { position: fixed; inset: var(--tg-nav-h) 0 auto 0; background: linear-gradient(180deg, #23232B 0%, #17171D 100%); border-bottom: 1px solid rgba(237,28,36,.45); max-height: 0; overflow: hidden; transition: max-height .28s var(--tg-ease); }
  .tg-nav nav.is-open { max-height: 80vh; overflow-y: auto; }
  .tg-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--tg-gutter) 1.5rem; }
  .tg-nav li { border-bottom: 1px solid #1f1f23; }
  .tg-nav a { display: block; padding: 1.05rem 0; font-size: 1rem; }
}

/* ==========================================================================
   5. Motion — scroll entrances, as the old site's float-ins and slide-ins.
      Hidden states apply only once site.js has marked the page (.tg-js), so
      nothing is ever invisible without the script.
   ========================================================================== */
.tg-js [data-anim] {
  opacity: 0;
  transition: opacity 1s var(--tg-out) var(--d, 0s), transform 1.1s var(--tg-out) var(--d, 0s);
}
.tg-js [data-anim="up"]    { transform: translate3d(0, 56px, 0); }
.tg-js [data-anim="left"]  { transform: translate3d(-80px, 0, 0); }
.tg-js [data-anim="right"] { transform: translate3d(80px, 0, 0); }
.tg-js [data-anim="zoom"]  { transform: scale(.82); }
.tg-js [data-anim="drop"]  { transform: translate3d(0, -110px, 0) rotate(-35deg); transition-timing-function: var(--tg-out), var(--tg-pop); }
.tg-js [data-anim].is-in   { opacity: 1; transform: none; }
.tg-reveal-all [data-anim], .tg-reveal-all .tg-bit, .tg-reveal-all .tg-rot__copy > * { opacity: 1 !important; transform: none !important; }

/* Ken Burns on every backdrop, so no banner is ever a dead still */
@keyframes tg-kb {
  0%   { transform: scale(1.03) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1.6%, -1.2%, 0); }
}
.tg-kb { animation: tg-kb 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }

/* idle life for placed art */
@keyframes tg-bob   { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -9px, 0); } }
@keyframes tg-sway  { 0%, 100% { transform: rotate(-2deg) translate3d(0, 0, 0); } 50% { transform: rotate(2deg) translate3d(0, -7px, 0); } }
@keyframes tg-coin  { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, 8px, 0) rotate(8deg); } }
@keyframes tg-twinkle { 0%, 100% { opacity: .75; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); filter: brightness(1.35); } }
@keyframes tg-flare { 0%, 100% { opacity: .55; transform: rotate(0deg) scale(1); } 50% { opacity: .95; transform: rotate(8deg) scale(1.08); } }

/* the lens flare the old banners carried */
.tg-flare { position: absolute; z-index: 2; pointer-events: none; mix-blend-mode: screen; animation: tg-flare 7s ease-in-out infinite; }
.tg-flare--hero { width: min(360px, 34vw); right: 6%; top: 8%; }
.tg-flare--feat { width: min(420px, 38vw); left: 34%; top: 2%; opacity: .7; }

/* ==========================================================================
   6. Backdrops: fire loop, particle globe
   ========================================================================== */
.tg-fire { position: relative; overflow: hidden; background: #0b0406; isolation: isolate; }
.tg-fire__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tg-fire__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) saturate(1.3); }
.tg-fire__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--tg-ink) 0%, transparent 12%, transparent 88%, var(--tg-ink) 100%);
}
/* the old pages ran this same clip at 20% over black behind a game's features and a
   state's series (measured: the Wix video container sits at opacity .2 on black),
   and at full strength everywhere else */
.tg-gfeat, .tg-series { background: #000; }
.tg-gfeat .tg-fire__media video, .tg-series .tg-fire__media video { opacity: .2; filter: none; }

.tg-globe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 118%; aspect-ratio: 1; pointer-events: none; z-index: 0; }

/* crossfading stack: the first child sets the height, the rest lie on top */
.tg-fade { position: relative; display: grid; }
.tg-fade > img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s var(--tg-ease); }
.tg-fade > img.is-active { opacity: 1; }

/* ==========================================================================
   7. Collages — hand-placed art from the old pages
   ========================================================================== */
.tg-collage { position: relative; width: 100%; }
/* each piece keeps the box it had on the old page; where Wix cropped the
   picture to that box, it is shown whole inside it instead */
.tg-bit { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); pointer-events: none; }
.tg-bit img { width: 100%; height: 100%; object-fit: var(--fit, cover); object-position: var(--pos, 50% 50%); filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
.tg-bit--logo img, .tg-bit--char img { animation: tg-bob 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.83s); }
.tg-bit--coin img { animation: tg-coin 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.tg-bit--gem img { animation: tg-twinkle 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); filter: drop-shadow(0 0 8px rgba(120,200,255,.8)); }
.tg-bit--main img { animation: tg-bob 8s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }

/* entrances: played when the collage scrolls in, or its slide becomes active */
.tg-js .tg-bit { opacity: 0; transition: opacity .8s var(--tg-out), transform 1s var(--tg-pop); transition-delay: calc(.25s + var(--i) * .045s); }
.tg-js .tg-bit--main { transform: translate3d(-9%, 0, 0); transition: opacity 1.1s var(--tg-out) .15s, transform 1.3s var(--tg-out) .15s; }
.tg-js .tg-bit--logo { transform: scale(.35); }
.tg-js .tg-bit--char { transform: translate3d(0, 28%, 0) scale(.85); }
.tg-js .tg-bit--coin { transform: translate3d(0, -140%, 0) rotate(-50deg); }
.tg-js .tg-bit--gem  { transform: scale(0); }
.tg-js .tg-collage.is-in .tg-bit,
.tg-js .is-active .tg-collage .tg-bit { opacity: 1; transform: none; }
/* nothing idles unless it can be seen */
.tg-collage:not(.is-in) .tg-bit img, .tg-rot__slide:not(.is-active) .tg-bit img { animation-play-state: paused; }

/* ==========================================================================
   8. Home — the rotating hero
   ========================================================================== */
.tg-rot { position: relative; overflow: hidden; background: #040406; }
.tg-rot__track { display: grid; }
.tg-rot__slide {
  grid-area: 1 / 1; position: relative; min-height: clamp(560px, 56vw, 840px);
  opacity: 0; visibility: hidden; transition: opacity 1.2s var(--tg-ease), visibility 0s linear 1.2s;
}
.tg-js .tg-rot__slide.is-unseen { content-visibility: hidden; }
.tg-rot__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s var(--tg-ease); }
.tg-rot__bg { position: absolute; inset: 0; overflow: hidden; }
.tg-rot__bg img, .tg-rot__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-rot__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  /* the old slides put nothing between the picture and the words (measured 2026-10-02) */
  background: linear-gradient(0deg, rgba(12,6,9,.8) 0%, transparent 18%);
}
/* slide one: the fire loop rising out of deep space (the old slide's planet was Wix stock) */
.tg-rot__space { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 26%, #ffd9c9 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 81% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 48%, #fff 50%, transparent 51%),
    radial-gradient(90% 80% at 70% 60%, #2a0a0a 0%, #0a0510 55%, #030306 100%);
}
.tg-rot__fire { z-index: 1; }
.tg-rot__fire video { opacity: .9; mix-blend-mode: screen; }
/* the flames rise behind the cabinets; the lettering sits on dark space, as the
   old slide's red title sat on a dark planet */
.tg-rot__fire { -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,.45) 38%, #000 62%); mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,.45) 38%, #000 62%); }
.tg-rot__fire::after { display: none; }
/* Carlos's own clip behind slide one (the "world", 2026-09-25) is a square with the globe in
   the middle. Stretched edge to edge it showed a blown-up slab of it; it is drawn whole instead,
   right of centre and filling the right side, as the old slide showed its planet. */
.tg-rot__clip { -webkit-mask-image: none; mask-image: none; }
.tg-rot__bg .tg-rot__clip video { opacity: 1; mix-blend-mode: normal; filter: none; }
@media (min-width: 901px) {
  .tg-rot__bg .tg-rot__clip--world video {
    inset: auto; top: 50%; right: -7%; width: auto; height: 128%; aspect-ratio: 1; transform: translateY(-50%);
    -webkit-mask-image: radial-gradient(circle closest-side at 47% 45%, #000 95%, transparent 100%);
            mask-image: radial-gradient(circle closest-side at 47% 45%, #000 95%, transparent 100%);
  }
  /* slide two's gold Buddha: the face right of centre, clear of the words */
  .tg-rot__bg .tg-rot__clip--buddha video,
  .tg-rot__bg .tg-rot__clip--world2 video { width: 128%; max-width: none; right: auto; }   /* world2: the 16:9 re-export, globe right of centre */
  /* Buddha (second clip): only just right of centre — at 128% the cabinets hid half his face
     (Carlos, 2026-10-02). 105% puts the face midway between the end of the title and the cabinets. */
  .tg-rot__slide:nth-child(2) .tg-rot__bg img,
  .tg-rot__bg .tg-rot__clip--buddha2 video { width: 105%; max-width: none; right: auto; }
}

.tg-rot__in {
  position: relative; z-index: 3; min-height: inherit;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 1rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.tg-rot__title {
  font: 700 clamp(1.9rem, 4.05vw, 3.65rem)/1.12 var(--tg-q); text-transform: uppercase;
  color: var(--tg-logo-red); margin: 0 0 .9rem;
  /* 2026-10-02, Carlos's decision (supersedes "flat red as the old site"): the headline wears the
     logo's colours — first line red, the rest metallic silver — with a slow sheen, and a soft drop
     shadow so the silver reads on the gold and orange slides. */
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)) drop-shadow(0 0 16px rgba(0,0,0,.35));
}
@keyframes tg-sheen { 0%, 55% { background-position: 160% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
.tg-rot__line {
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  background-repeat: no-repeat; background-size: 250% 100%, 100% 100%; background-position: 160% 0, 0 0;
  animation: tg-sheen 5.5s ease-in-out infinite;
  background-image: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.92) 50%, rgba(255,255,255,0) 58%),
                    linear-gradient(180deg, #ff5a52 0%, #e8140f 34%, #b00000 60%, #d40000 82%, #8d0000 100%);
}
.tg-rot__line:nth-child(n+2) {
  animation-delay: .5s;
  background-image: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 58%),
                    linear-gradient(180deg, #ffffff 0%, #e3e6ea 26%, #8f959e 52%, #eef0f3 70%, #a9aeb6 100%);
}
.tg-rot__line { display: block; position: relative; width: max-content; max-width: 100%; }
.tg-rot__spark { position: absolute; left: 100%; top: 50%; width: 2.4em; max-width: none; transform: translate(-40%, -45%); mix-blend-mode: screen; pointer-events: none; }
@media (min-width: 901px) { .tg-rot__line, .tg-rot__sub { white-space: nowrap; max-width: none; } }   /* the old lines ran past the text column */
/**
 * The headline keeps the wordmark's own #D40000: at clamp()'s 30px floor it is
 * large text, which needs 3:1, and it measures 3.4-3.8:1.
 *
 * The subtitle cannot. It bottoms out at 16.8px, just under the 18.66px where
 * bold counts as large, so it needs 4.5:1 and #D40000 gives about 3.5:1. Only
 * this one line is lifted; the headline above stays authentic.
 */
.tg-rot__sub {
  font: 400 clamp(1.05rem, 2.15vw, 1.94rem)/1.3 var(--tg-q); color: #e6e8ec;   /* silver, to sit with the logo-coloured headline */
  margin: 0 0 2rem; text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 14px rgba(0,0,0,.45);
}
/* Entrance, as recorded frame by frame on the old site (2026-10-02): when a slide comes in, the
   headline travels 120px left-to-right, the sub-line, the button and the art 60px (the art 120px on
   slides two and three), all fading in together over 1.2s, ease-in-out. It plays on page load too.
   The outgoing slide only fades — its words and art do not move. */
@keyframes tg-rot-in { from { opacity: 0; transform: translate3d(var(--from, -60px), 0, 0); } to { opacity: 1; transform: none; } }
.tg-js .tg-rot__slide.is-active .tg-rot__copy > *,
.tg-js .tg-rot__slide.is-active .tg-rot__art { animation: tg-rot-in 1.2s cubic-bezier(.45, 0, .55, 1) both; }
.tg-js .tg-rot__slide.is-active .tg-rot__title { --from: -120px; }
.tg-js .tg-rot__slide.is-active:nth-child(n+2) .tg-rot__art { --from: -120px; }
/* Slide two (Carlos, 2026-10-02): the Buddha laughs on his own first, then the cabinets slide in —
   every time the slide comes up. The art waits 1.8s (hidden by the animation's backwards fill). */
.tg-js .tg-rot__slide.is-active:nth-child(2) .tg-rot__art { animation-delay: 1.8s; }
/* the art arrives as one piece, as the old slide's did (no piece-by-piece pop in the hero) */
.tg-js .tg-rot .tg-bit { opacity: 1; transform: none; transition: none; }
.tg-rot__art { position: relative; align-self: center; }
@media (min-width: 901px) {
  .tg-rot__slide:nth-child(1) .tg-rot__art { align-self: end; margin-bottom: -8vh; }
  .tg-rot__slide:nth-child(1) .tg-collage--rot { width: min(112%, calc(min(80vh, 750px) * var(--ar))); margin-right: -10%; }
}
@media (min-width: 901px) { .tg-rot__copy { position: relative; z-index: 2; width: 132%; } }
/* a collage never outgrows the screen: capped by height, then by its column */
.tg-collage--rot { width: min(100%, calc(min(78vh, 730px) * var(--ar))); margin-left: auto; }
/* the pyramid slide's collage runs off the right edge, as it did on the old site */
@media (min-width: 901px) {
  .tg-rot__slide:nth-child(3) .tg-collage--rot { width: min(142%, calc(min(92vh, 860px) * var(--ar))); margin-right: -10%; }
}
.tg-collage--lib { width: min(112%, calc(min(84vh, 780px) * var(--ar))); margin-inline: auto -4%; }
.tg-collage--accel { width: min(103%, calc(min(72vh, 640px) * var(--ar))); margin-left: auto; }

.tg-rot__arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center; padding: 0;
  background: transparent; border: 0; color: #fff; cursor: pointer; opacity: .8;
  transition: opacity .2s var(--tg-ease), transform .2s var(--tg-ease);
}
.tg-rot__arrow svg { width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.8)); }
.tg-rot__arrow:hover { opacity: 1; }
.tg-rot__arrow--prev { left: 10px; }
.tg-rot__arrow--next { right: 10px; }
.tg-rot__dots { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; }
/* where the copy reaches the screen edge, the arrows drop down beside the dots */
@media (max-width: 1340px) { .tg-rot__arrow { top: auto; bottom: 6px; transform: none; } .tg-rot__arrow svg { width: 30px; height: 30px; } .tg-rot__dots { bottom: 24px; } }
.tg-rot__dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; }
.tg-rot__dots button[aria-selected="true"] { background: #fff; }

/* ==========================================================================
   9. Home — value cards over the fire, "Accelerate", the map
   ========================================================================== */
.tg-props-sec { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.tg-props { display: grid; gap: 1.4rem; grid-template-columns: repeat(4, 1fr); }
.tg-prop {
  background: linear-gradient(180deg, rgba(38,35,46,.95) 0%, rgba(24,23,30,.96) 100%); border: 1px solid rgba(255,255,255,.18); border-radius: var(--tg-radius);
  padding: 2rem 1.6rem 2.2rem; box-shadow: 0 24px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.16), 0 0 34px rgba(237,28,36,.20); backdrop-filter: blur(3px);
  transition: transform .25s var(--tg-ease), border-color .25s var(--tg-ease);
}
.tg-prop:hover { transform: translateY(-6px); border-color: rgba(237,28,36,.55); }
.tg-prop__icon { display: block; width: 58px; height: 58px; margin-bottom: 1.3rem; color: var(--tg-red); }
.tg-prop__icon img, .tg-prop__icon svg { width: 100%; height: 100%; object-fit: contain; }
.tg-prop h3 { font: 400 17px/1.3 var(--tg-q); color: var(--tg-card-red); }
.tg-prop p { font-size: .94rem; line-height: 1.6; color: #fff; margin: 0; }

.tg-accel { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5rem) 0; background: #07070a; }
/* the old section's dotted particle field, drawn instead of shipped */
.tg-accel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 30% 50%, #000 0%, transparent 75%);
}
/* the old band ran nearly the full window (1425px of 1440), not the 1260 wrap */
.tg-accel > .tg-wrap { max-width: 1440px; }
.tg-accel__grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tg-accel__orb { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.tg-accel__orb .tg-globe { width: 100%; }
.tg-accel__fade { position: relative; z-index: 1; width: 80%; }
.tg-accel__collage-link { display: block; }
.tg-accel__blurb { font-size: 1rem; line-height: 1.65; color: #fff; margin: 1.8rem 0 1.4rem; max-width: 64ch; }

.tg-map { position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 5.5rem) 0; text-align: center; background: #120405; }
.tg-map__bg { position: absolute; inset: 0; overflow: hidden; }
.tg-map__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.tg-map__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,8,.85), rgba(6,6,8,.35) 30%, rgba(6,6,8,.45) 70%, rgba(6,6,8,.92)); }
.tg-map > .tg-wrap { position: relative; }
.tg-map__title { font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: normal; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
/* North America in the old site's dark glass panel, pins on the states */
.tg-map__na { position: relative; max-width: 780px; margin: 2rem auto 2.8rem; padding: clamp(.8rem, 2vw, 1.4rem);
  background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.tg-map__na > img { width: 100%; }
.tg-map__na .tg-pin { margin: clamp(.8rem, 2vw, 1.4rem); }
.tg-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center; }
.tg-pin__dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 0 18px 6px rgba(255,210,120,.75); animation: tg-pulse 2.2s ease-in-out infinite; }
.tg-pin--ext .tg-pin__dot { background: #ffb3b3; }
.tg-pin__label {
  position: absolute; bottom: 150%; white-space: nowrap; pointer-events: none;
  font: 700 .72rem/1 var(--tg-q); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,.85); border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: .45rem .6rem;
  opacity: 0; transform: translateY(6px); transition: opacity .2s var(--tg-ease), transform .2s var(--tg-ease);
}
.tg-pin:hover .tg-pin__label, .tg-pin:focus-visible .tg-pin__label { opacity: 1; transform: none; }
@keyframes tg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.tg-shapes-sec { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); background: #141416; }
.tg-shapes { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.6rem 1.5rem; max-width: 1180px; }
.tg-shape { display: grid; justify-items: center; gap: .7rem; color: #fff; }
.tg-shape img { height: clamp(96px, 12vw, 170px); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255,40,40,.45)); transition: transform .25s var(--tg-pop), filter .25s var(--tg-ease); }
.tg-shape:hover img { transform: translateY(-6px) scale(1.06); filter: drop-shadow(0 0 22px rgba(255,60,60,.8)); }
.tg-shape__name { font: 700 .86rem/1.2 var(--tg-q); letter-spacing: .08em; text-transform: uppercase; }
.tg-shape__note { font-size: .7rem; color: #ffb3b3; margin-top: -.4rem; }
.tg-map__note { max-width: 80ch; margin: 0 auto; font-size: .92rem; color: #eee; text-shadow: 0 1px 8px rgba(0,0,0,.8); }

/* ==========================================================================
   10. Screens — gameplay in a lit frame, and whole tall game screens
   ========================================================================== */
.tg-screen {
  position: relative; z-index: 1; border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 70px rgba(0,0,0,.7), 0 0 0 6px rgba(0,0,0,.35), 0 0 70px rgba(237,28,36,.35);
}
.tg-screen video, .tg-screen img { width: 100%; }
.tg-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%); }
.tg-screen--vertical { width: min(100%, 330px); }
.tg-screen--dual { width: min(100%, 560px); }
.tg-screen__logo { position: relative; padding: 18%; object-fit: contain; }
.tg-screen__bg { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.1); }
.tg-screen:has(.tg-screen__bg) { aspect-ratio: 9 / 16; display: grid; place-items: center; }
.tg-screen--dual:has(.tg-screen__bg) { aspect-ratio: 16 / 10; }
.tg-live { display: inline-flex; align-items: center; gap: .45rem; font: 700 .7rem/1 var(--tg-q); letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: .8; }
.tg-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tg-red); animation: tg-pulse 1.6s ease-in-out infinite; }

.tg-shots { display: grid; gap: clamp(1rem, 2.2vw, 2rem); }
.tg-shots--vertical { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tg-shots--dual { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tg-shots--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg-shot { position: relative; display: flex; flex-direction: column; }
.tg-shot__frame {
  position: relative; display: block; overflow: hidden; border-radius: 6px; background: #000;
  aspect-ratio: 9 / 16; box-shadow: 0 16px 34px rgba(0,0,0,.55);
  transition: transform .3s var(--tg-ease), box-shadow .3s var(--tg-ease);
}
.tg-shot--dual .tg-shot__frame { aspect-ratio: 2 / 3; }
.tg-shot__frame > img, .tg-shot__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-shot__frame > video { z-index: 2; opacity: 0; transition: opacity .35s var(--tg-ease); }
.tg-shot__frame.is-playing > video { opacity: 1; }
.tg-shot--dual .tg-shot__frame > video { object-fit: contain; }
.tg-shot:hover .tg-shot__frame, .tg-shot__frame:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(0,0,0,.6), 0 0 0 2px var(--tg-red), 0 0 36px rgba(237,28,36,.45); }
.tg-shot__stand-in { position: absolute; inset: 0; display: grid; place-items: center; }
.tg-shot__stand-in > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-shot__logo { position: relative; width: 82%; filter: drop-shadow(0 8px 20px rgba(0,0,0,.8)); }
.tg-shot__play { position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.6); color: #fff; transition: opacity .25s var(--tg-ease), transform .25s var(--tg-ease); }
.tg-shot__play svg { width: 18px; height: 18px; margin-left: 2px; }
.tg-shot__frame.is-playing .tg-shot__play { opacity: 0; transform: scale(.7); }
.tg-shot__name { margin: .95rem 0 .25rem; font: 700 .9rem/1.25 var(--tg-q); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.tg-shot__name a { color: #fff; }
.tg-shot__name a:hover { color: var(--tg-red); }
.tg-shot__more { align-self: center; font: 700 .74rem/1 var(--tg-q); letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.tg-shot__more:hover { color: var(--tg-hot); }
.tg-shot--soon .tg-shot__frame { box-shadow: 0 0 40px rgba(255,120,40,.35); }
.tg-shot--soon .tg-shot__name { color: #ffb070; }

/**
 * The band behind grids of screens and the document lists.
 *
 * This copied the old site's flat slate panels (#4d4d50 -> #3c3c3f), which read as
 * dead grey next to the artwork on either side. It burns instead: embers rising off
 * the floor, brand red through the middle, and two plumes drifting over the top at
 * different speeds so the band is never static.
 *
 * `isolation` keeps the plumes' screen blend inside this section, and lets them sit
 * above the section's own background but under its content.
 */
.tg-gray {
  position: relative; isolation: isolate;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(125% 80% at 50% 114%, rgba(255,198,96,.50) 0%, rgba(255,124,28,.38) 26%, rgba(214,38,24,.30) 50%, transparent 78%),
    radial-gradient(90% 62% at 10% -10%, rgba(237,28,36,.30), transparent 68%),
    radial-gradient(82% 56% at 93% 2%, rgba(255,138,40,.20), transparent 70%),
    linear-gradient(180deg, #170B0F 0%, #280D0D 44%, #43110B 76%, #5C1808 100%);
}
.tg-gray::before,
.tg-gray::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none; mix-blend-mode: screen;
}
.tg-gray::before {
  background:
    radial-gradient(44% 72% at 21% 120%, rgba(255,216,124,.55), rgba(255,120,20,.28) 40%, transparent 72%),
    radial-gradient(38% 66% at 69% 124%, rgba(255,186,80,.48), rgba(226,54,18,.24) 44%, transparent 74%);
  animation: tg-ember 9s ease-in-out infinite alternate;
}
.tg-gray::after {
  background:
    radial-gradient(30% 60% at 45% 128%, rgba(255,240,184,.38), transparent 66%),
    radial-gradient(34% 54% at 87% 120%, rgba(255,150,40,.34), transparent 70%);
  animation: tg-ember 13s ease-in-out infinite alternate-reverse;
}
@keyframes tg-ember {
  0%   { transform: translate3d(-2%, 0, 0) scaleY(1);      opacity: .72; }
  50%  { transform: translate3d(1.5%, -2%, 0) scaleY(1.12); opacity: 1; }
  100% { transform: translate3d(3%, 1%, 0) scaleY(.96);    opacity: .8; }
}
/* the grid and the doc list must stay above the plumes */
.tg-gray > * { position: relative; z-index: 1; }
.tg-gray__title, .tg-lib__title, .tg-related__title { text-align: center; font-weight: 400; letter-spacing: normal; font-size: clamp(1.2rem, 2vw, 1.5rem); color: #fff; margin-bottom: .35rem; }
.tg-gray__title { margin-bottom: 2.4rem; }

/* ==========================================================================
   11. Game page
   ========================================================================== */
.tg-ghero { position: relative; overflow: hidden; background: #050507; min-height: clamp(560px, 50vw, 780px); display: grid; align-items: center; }
.tg-ghero__bg, .tg-lhero__bg, .tg-chero__bg, .tg-phero__bg { position: absolute; inset: 0; overflow: hidden; }
.tg-ghero__bg img, .tg-lhero__bg img, .tg-chero__bg img, .tg-phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.tg-ghero__bg img { object-position: var(--bgpos, 50% 50%); }
.tg-ghero__bg::after, .tg-lhero__bg::after, .tg-chero__bg::after, .tg-phero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 42%, rgba(0,0,0,.12) 75%),
              linear-gradient(0deg, var(--tg-ink) 0%, transparent 26%);
}
/* the old game banners were bright; darken only behind the words */
.tg-ghero__bg::after { background: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,0) 68%), linear-gradient(0deg, var(--tg-ink) 0%, transparent 22%); }
.tg-ghero__grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.tg-ghero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: #F4F4F4; text-shadow: 0 3px 24px rgba(0,0,0,.8); }
.tg-ghero__story { font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.6; color: #fff; max-width: 34em; text-shadow: 0 1px 12px rgba(0,0,0,.85); }
.tg-ghero__cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }
.tg-ghero__media { position: relative; display: grid; place-items: center; min-height: 360px; }
.tg-ghero__media .tg-globe { width: 125%; max-width: 780px; }
.tg-ghero__live { position: relative; z-index: 1; margin-top: 1rem; text-align: center; }

.tg-gfeat { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 6vw, 5rem); }
.tg-gfeat__grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.1fr) minmax(0, .8fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.tg-gfeat__grid--solo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.tg-gfeat__cab img { width: 100%; max-height: 640px; object-fit: contain; filter: drop-shadow(0 30px 44px rgba(0,0,0,.7)); }
.tg-gfeat__logo img { width: auto; max-width: min(100%, 440px); max-height: 240px; object-fit: contain; margin-inline: auto; filter: drop-shadow(0 14px 30px rgba(0,0,0,.75)); animation: tg-bob 7s ease-in-out infinite; }
.tg-gfeat__type { margin: 1.4rem 0 .6rem; font: 700 .9rem/1 var(--tg-q); letter-spacing: .14em; color: #fff; }
.tg-feats { list-style: none; margin: 0; padding: 0; }
.tg-feats li { position: relative; padding: .42rem 0 .42rem 1.5rem; font-size: .98rem; line-height: 1.45; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.tg-feats li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: 7px; height: 7px; border-radius: 50%; background: var(--tg-red); box-shadow: 0 0 10px rgba(237,28,36,.9); }
.tg-gfeat__cast { position: relative; align-self: stretch; min-height: 480px; }
.tg-cast { position: absolute; display: block; max-width: var(--nat, none); }   /* --nat: the upload's own width */
.tg-cast img { width: 100%; max-height: 420px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 18px 30px rgba(0,0,0,.65)); animation: tg-sway 7s ease-in-out infinite; }
.tg-cast--0 { top: 0; right: 0; width: 82%; }
.tg-cast--1 { top: 40%; left: 0; width: 64%; }
.tg-cast--1 img { animation-delay: -2.3s; }
.tg-cast--2 { bottom: 0; right: 4%; width: 58%; }
.tg-cast--2 img { animation-delay: -4.1s; }
.tg-cast--3 { top: 6%; left: 4%; width: 44%; }
.tg-cast--3 img { animation-delay: -5.6s; }
.tg-prop-bit { position: absolute; width: 24%; }
.tg-prop-bit img { width: 100%; animation: tg-coin 4.6s ease-in-out infinite; }
.tg-prop-bit--gem img { animation-name: tg-twinkle; }
.tg-prop-bit--0 { top: 30%; right: 6%; }
.tg-prop-bit--1 { top: 58%; right: 30%; width: 13%; }
.tg-prop-bit--1 img { animation-delay: -1.2s; }
.tg-prop-bit--2 { top: 12%; left: 8%; width: 12%; }
.tg-prop-bit--2 img { animation-delay: -2.4s; }
.tg-prop-bit--3 { bottom: 12%; left: 20%; }
.tg-prop-bit--4 { bottom: 30%; right: 2%; width: 14%; }
.tg-prop-bit--5 { top: 4%; left: 42%; width: 12%; }

.tg-related { position: relative; z-index: 3; margin-top: clamp(3rem, 7vw, 5rem); }
.tg-related__title { margin-bottom: 2rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ==========================================================================
   12. Game Library
   ========================================================================== */
.tg-lhero { position: relative; overflow: hidden; background: #12052a; min-height: clamp(620px, 74vw, 1080px); display: grid; align-items: center; }
.tg-lhero__bg::after { background: linear-gradient(90deg, rgba(8,0,24,.7) 0%, rgba(8,0,24,.35) 45%, rgba(8,0,24,0) 70%), linear-gradient(0deg, #3d3d40 0%, transparent 18%); }
.tg-lhero__grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
@media (min-width: 901px) {
  /* the art holds the box it held on the old page — measured there at 1440:
     1066 x 768, starting 415 across and 285 down — so the words keep the
     clear channel the old banner gave them */
  .tg-lhero__grid { position: static; grid-template-columns: minmax(0, 1fr); }
  .tg-lhero__art { position: absolute; left: 28.8%; top: 26.7%; width: 74%; z-index: 1; margin: 0; pointer-events: none; }
  .tg-lhero__art .tg-collage--lib { width: 100%; margin: 0; }
  .tg-lhero__copy { position: relative; z-index: 2; max-width: 790px; }   /* the old h1 ran 772px, two lines */
  .tg-lhero h1 { max-width: 690px; }   /* breaks after "Selection", as the old one did */
  /* the old page set the headline 455 down and left ~100 before the paragraph,
     which is what keeps both clear of the art */
  .tg-lhero { align-items: start; }
  .tg-lhero__grid { padding-block: 29.6vw 0; }
  .tg-lhero__text { margin-top: 7.9vw; }
}
.tg-lhero h1 { font-size: clamp(2rem, 3.8vw, 3.35rem); text-shadow: 0 3px 22px rgba(0,0,0,.7); }
@media (min-width: 901px) {
  /* the old banners ran their headline wide, over the start of the art */
  .tg-lhero__copy, .tg-chero:not(.tg-chero--single) .tg-chero__copy { position: relative; z-index: 2; }
  .tg-chero:not(.tg-chero--single) h1 { width: 178%; max-width: 15em; }
  .tg-chero:not(.tg-chero--single) h1 { width: 150%; }
}
.tg-lhero__text { color: #fff; font-size: 1.125rem; line-height: 1.45; max-width: 708px; margin-bottom: 2rem; text-shadow: 0 2px 14px rgba(0,0,0,.9); }

.tg-lib { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); background: linear-gradient(180deg, #3d3d40 0%, #4a4a4d 30%, #3b3b3e 100%); }
.tg-lib__group + .tg-lib__group { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.tg-lib__hint { text-align: center; font: 700 .76rem/1 var(--tg-q); letter-spacing: .3em; text-transform: uppercase; color: #fff; opacity: .85; margin: 0 0 2rem; }
.tg-hint--touch { display: none; }
@media (hover: none) { .tg-hint--hover { display: none; } .tg-hint--touch { display: inline; } }
.tg-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.tg-filter { font: 700 .82rem/1 var(--tg-q); padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(20,20,22,.6); color: #fff; cursor: pointer; transition: all .18s var(--tg-ease); }
.tg-filter:hover { border-color: var(--tg-red); }
.tg-filter[aria-pressed="true"] { background: var(--tg-red); border-color: var(--tg-red); }
.tg-filter__count { opacity: .7; font-size: .8em; margin-left: .35em; }
.tg-search { margin-left: auto; min-width: 230px; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(10,10,12,.7); color: #fff; font: 400 .92rem var(--tg-body); }
.tg-count { font-size: .85rem; color: #ddd; margin: 0 0 2rem; min-height: 1.2em; }
.tg-empty { color: #eee; padding: 2rem 0; text-align: center; }

/* ==========================================================================
   13. Cabinets
   ========================================================================== */
.tg-chero { position: relative; overflow: hidden; background: #070a1e; min-height: clamp(600px, 56vw, 860px); display: grid; align-items: center; }
.tg-chero__bg::after { background: linear-gradient(90deg, rgba(2,4,16,.5) 0%, rgba(2,4,16,.2) 45%, rgba(2,4,16,0) 70%), linear-gradient(0deg, var(--tg-ink) 0%, transparent 18%); }
/* the old cabinet pages showed only the starry top of this artwork */
.tg-chero__bg img { object-position: 50% 0; transform-origin: 50% 0; }
.tg-chero__grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.tg-chero h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); text-shadow: 0 3px 22px rgba(0,0,0,.7); }
.tg-chero__text { color: #fff; font-size: 1.05rem; line-height: 1.6; max-width: 34em; margin-bottom: 2rem; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.tg-chero__art { position: relative; display: grid; place-items: center; }
.tg-chero__art > img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.65)); }
.tg-globe--wide { width: 90%; }
/* the series banner's line-up runs large, off the right edge, as it did */
@media (min-width: 901px) {
  .tg-chero:not(.tg-chero--single) .tg-chero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .tg-chero:not(.tg-chero--single) .tg-chero__art > img { width: 118%; max-width: none; margin-right: -18%; }
}
.tg-chero--single h1 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.tg-chero--single .tg-chero__grid { align-items: start; }
.tg-chero--single .tg-chero__art { align-self: start; justify-items: end; margin-top: clamp(.5rem, 2vh, 2rem); }
.tg-chero__logo img { width: min(100%, 420px); margin-bottom: 1.2rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.tg-feats--specs { margin: 1rem 0 0; }
.tg-chero__cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }
.tg-chero__slides { position: relative; z-index: 1; width: min(100%, 580px); max-height: 690px; }
.tg-chero__slides > img { max-height: 690px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }

.tg-cabcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.6rem); max-width: 1180px; margin-inline: auto; }
.tg-cabcard { margin: 0; display: grid; gap: 1.1rem; justify-items: center; }
.tg-cabcard__pic { display: grid; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.45); background: #111; transition: transform .3s var(--tg-ease), box-shadow .3s var(--tg-ease); }
.tg-cabcard__pic { grid-template-rows: 100%; }
.tg-cabcard__pic > img { height: 100%; min-height: 0; object-fit: cover; }
.tg-cabcard__pic--cutout { background: radial-gradient(circle at 50% 62%, #e0161e 0%, #8a0008 45%, #2a0003 100%); }
.tg-cabcard__pic--cutout > img { object-fit: contain; padding: 5% 0 3%; filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
.tg-cabcard:hover .tg-cabcard__pic { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(0,0,0,.55), 0 0 0 2px var(--tg-red); }
.tg-cabcard .tg-btn { font-size: .82rem; padding: .8rem 1.3rem; }

/* ==========================================================================
   14. Page banners, markets, state pages
   ========================================================================== */
.tg-phero { position: relative; overflow: hidden; background: #0a0508; min-height: clamp(420px, 44vw, 680px); display: grid; align-items: center; }
.tg-phero--flat { min-height: 0; padding-top: 2rem; }
.tg-phero__in { position: relative; z-index: 3; padding-block: clamp(3rem, 6vw, 5rem); }
.tg-phero__grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; }
.tg-phero__grid .tg-phero__in { padding-block: clamp(3rem, 6vw, 5rem); }
.tg-phero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); text-shadow: 0 3px 22px rgba(0,0,0,.75); }
body.single-tg_market .tg-phero h1 { text-transform: uppercase; }
.tg-phero__text { color: #fff; font-size: 1.02rem; line-height: 1.65; max-width: 62ch; text-shadow: 0 1px 12px rgba(0,0,0,.85); }
.tg-phero__slogan { font-size: clamp(1.05rem, 1.8vw, 1.4rem); color: #fff; max-width: 34em; text-shadow: 0 1px 12px rgba(0,0,0,.85); }
.tg-phero__clip { position: relative; justify-self: center; width: min(100%, 300px); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 60px rgba(237,28,36,.3); }
.tg-phero__clip video { width: 100%; }
.tg-phero__orb { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
/* the old contact/support banner was bright: the karst mountains in pink light */
.tg-phero--contact .tg-phero__bg::after { background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,.05) 75%), linear-gradient(0deg, var(--tg-ink) 0%, transparent 22%); }
.tg-phero__banner img { width: 100%; max-width: 620px; margin-inline: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.tg-phero__orb .tg-globe { width: 100%; }
.tg-phero__orb .tg-fade { position: relative; z-index: 1; width: 78%; }

.tg-series { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.tg-series__grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.tg-series__cab img { width: 100%; max-height: 640px; object-fit: contain; filter: drop-shadow(0 30px 44px rgba(0,0,0,.7)); }
.tg-series__logo img { width: min(100%, 380px); margin-bottom: 1.2rem; filter: drop-shadow(0 10px 30px rgba(0,0,0,.7)); animation: tg-bob 7s ease-in-out infinite; }
.tg-series__lists h2 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 1.6rem 0 .8rem; }
.tg-series__lists h2:first-child { margin-top: 0; }
.tg-series__lists ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.tg-series__lists li { break-inside: avoid; position: relative; padding: .3rem 0 .3rem 1.2rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.tg-series__lists li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 6px; height: 6px; border-radius: 50%; background: var(--tg-red); }
.tg-series__lists li a { color: #fff; }
.tg-series__lists li a:hover { color: var(--tg-red); }
.tg-series__lists p { color: #fff; }
.tg-series__cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }

/* ==========================================================================
   15. About, Terms
   ========================================================================== */
.tg-rows { padding: clamp(2rem, 4vw, 3rem) 0; background: var(--tg-ink); }
.tg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.tg-row__pic { position: relative; margin: 0; min-height: clamp(280px, 32vw, 460px); overflow: hidden; }
.tg-row__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s var(--tg-ease); }
.tg-row:hover .tg-row__pic img { transform: scale(1.06); }
.tg-row__pic figcaption { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); }
.tg-row__pic figcaption h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.3rem); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.9), 0 0 2px #000; }
.tg-row__text { padding: clamp(2rem, 5vw, 4rem); display: grid; align-content: center; background: #0b0b0e; font-family: var(--tg-q); font-size: .95rem; line-height: 1.85; color: #f0f0f2; }
.tg-row__text h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.tg-row--flip .tg-row__pic { order: 2; }

.tg-partners { padding: clamp(3rem, 6vw, 4.5rem) 0; background: #0b0b0e; border-top: 1px solid #1c1c21; }
.tg-partners h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tg-partners__list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3.5rem; }
.tg-partners__list img { height: var(--tg-logo-h, 88px); width: auto; }

.tg-terms { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); background: var(--tg-ink); }
.tg-terms .tg-wrap { max-width: 1060px; }
.tg-terms__rules { margin: 0 0 1.4em; padding-left: 1.4em; }
.tg-terms__rules li { margin: 0 0 .7em; }
.tg-terms__cond { padding-left: 2em; }
.tg-terms__banner { position: relative; border-radius: 6px 6px 0 0; overflow: hidden; min-height: clamp(200px, 26vw, 320px); display: grid; align-items: end; background: #0a0a14; }
.tg-terms__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.tg-terms__banner h1 { position: relative; margin: 0; padding: clamp(1.4rem, 3vw, 2rem); font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.85); }
.tg-terms__paper { background: #fff; color: #222; border-radius: 0 0 6px 6px; padding: clamp(1.6rem, 4vw, 3rem); font: 400 .95rem/1.7 var(--tg-body); }
.tg-terms__paper h2 { font: 600 1.125rem/1.35 "Poppins", var(--tg-body); color: #141416; margin: 1.8em 0 .6em; }
.tg-terms__paper h2:first-child { margin-top: 0; }
.tg-terms__paper a { color: var(--tg-red-dark); text-decoration: underline; }
.tg-terms__paper a[href$=".pdf"] { display: inline-block; margin: 1rem 0; padding: .9rem 1.4rem; background: var(--tg-red); color: #fff; text-decoration: none; border-radius: 5px; font: 700 .9rem/1.2 var(--tg-q); }
.tg-terms__paper a[href$=".pdf"]:hover { background: var(--tg-red-dark); }

/* ==========================================================================
   16. Prose, docs, forms, panels
   ========================================================================== */
.tg-prose { max-width: 70ch; font-family: var(--tg-body); }
.tg-prose > * + * { margin-top: 1.1em; }
.tg-prose h2 { margin-top: 2.2em; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.tg-prose ul li { margin-bottom: .4em; color: var(--tg-fg-muted); }
.tg-prose a { text-decoration: underline; text-underline-offset: 3px; }
.tg-prose--wide { max-width: 92ch; }

.tg-docs-sec .tg-docs { margin-inline: 0; }
.tg-docs-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tg-docs__side { display: grid; gap: 1.2rem; justify-items: center; }
.tg-docs__line { font: 700 clamp(1.05rem, 1.6vw, 1.35rem)/1.4 var(--tg-q); text-transform: uppercase; letter-spacing: .04em; text-align: center; color: #fff; max-width: 18ch; }
@media (max-width: 900px) { .tg-docs-grid { grid-template-columns: minmax(0, 1fr); } .tg-docs__side { order: 2; } }
.tg-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; max-width: 760px; }
.tg-doc { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; background: rgba(12,12,14,.8); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: #fff; font: 700 1rem var(--tg-q); transition: border-color .2s var(--tg-ease), transform .2s var(--tg-ease); }
.tg-doc:hover { border-color: var(--tg-red); color: #fff; transform: translateX(4px); }
.tg-doc__icon { flex: 0 0 auto; color: var(--tg-red); font: 700 .7rem var(--tg-q); letter-spacing: .08em; border: 1px solid currentColor; padding: .25rem .45rem; border-radius: 3px; }
.tg-doc__meta { margin-left: auto; font: 400 .8rem var(--tg-body); color: #bbb; }

.tg-form { display: grid; gap: 1.1rem; max-width: 620px; font-family: var(--tg-body); }
.tg-contact__form .tg-form { max-width: none; }
.tg-field { display: grid; gap: .4rem; }
.tg-field label { font: 700 .88rem var(--tg-q); color: #fff; }
.tg-req { color: var(--tg-red-lit); }
.tg-field input, .tg-field textarea { width: 100%; padding: .85rem 1rem; background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.30); border-radius: 5px; font: 400 1rem/1.5 var(--tg-body); transition: border-color .18s var(--tg-ease); }
.tg-field input:focus, .tg-field textarea:focus { border-color: var(--tg-red); outline: none; }
.tg-field ::placeholder { color: #9a9aa2; opacity: 1; }
.tg-field textarea { min-height: 150px; resize: vertical; }
.tg-field--error input, .tg-field--error textarea { border-color: var(--tg-red); }
.tg-field__err { font-size: .8rem; color: #FF9292; }
.tg-check { display: flex; align-items: flex-start; gap: .6rem; }

/* The submit row. inc/contact-form.php wraps the button in a bare <div> with no
   class, and nothing in this file matched it, so the intake form simply stopped:
   the button hung off the last field and the panel had no bottom edge. */
.tg-form > div:last-child:not(.tg-field):not(.tg-check) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: .5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.tg-check input { width: auto; margin-top: .3rem; }
.tg-check label { font: 400 .9rem var(--tg-body); color: var(--tg-fg-muted); }
.tg-hp { position: absolute; left: -9999px; }
.tg-notice { padding: 1rem 1.2rem; border-radius: 5px; margin-bottom: 1.5rem; font-size: .95rem; }
.tg-notice--ok { background: rgba(40,160,90,.14); border: 1px solid rgba(40,160,90,.4); color: #8BE0AC; }
.tg-notice--err { background: rgba(237,28,36,.12); border: 1px solid rgba(237,28,36,.4); color: #FF9292; }
.tg-contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .tg-contact-grid { grid-template-columns: .9fr 1.1fr; grid-template-areas: "side form" "aside form"; align-items: start; }
  .tg-contact__side { grid-area: side; }
  .tg-contact__form { grid-area: form; }
  .tg-contact-grid > aside { grid-area: aside; }
}
.tg-contact { background: radial-gradient(95% 72% at 16% 10%, rgba(237,28,36,.30) 0%, rgba(141,0,0,.16) 45%, transparent 74%), radial-gradient(70% 60% at 95% 88%, rgba(141,0,0,.26), transparent 66%), linear-gradient(180deg, #221C28 0%, var(--tg-ink) 72%); }
.tg-contact__form { background: linear-gradient(180deg, rgba(42,38,52,.95) 0%, rgba(25,24,32,.96) 100%); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12), 0 0 56px rgba(237,28,36,.18); }
.tg-contact__side .tg-phero__orb { max-width: 420px; margin-inline: auto; }
.tg-panel { background: var(--tg-ink-2); border: 1px solid #25252b; border-radius: var(--tg-radius); padding: 1.6rem; }
.tg-panel dt { font: 700 .74rem var(--tg-q); letter-spacing: .12em; text-transform: uppercase; color: var(--tg-red); margin-top: 1.2rem; }
.tg-panel dt:first-of-type { margin-top: 0; }
.tg-panel dd { margin: .25rem 0 0; font-size: 1.05rem; }
.tg-panel dd a { color: #fff; }
.tg-panel dd a:hover { color: var(--tg-red); }
.tg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.tg-gallery img { border-radius: 5px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.tg-gallery--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; align-items: center; }
.tg-gallery--wide img { aspect-ratio: auto; object-fit: contain; width: auto; max-height: 540px; margin-inline: auto; }

/* ==========================================================================
   17. CTA band + footer (the old footer's charcoal)
   ========================================================================== */
.tg-cta { background: linear-gradient(100deg, #8D0000 0%, #3a0406 45%, var(--tg-ink) 80%); border-top: 1px solid #2a0a0c; }
.tg-cta__in { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: clamp(2rem, 5vw, 3rem); }
.tg-cta h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }

.tg-footer { background: linear-gradient(180deg, #414144 0%, #2e2e31 100%); color: #eee; padding: clamp(2.5rem, 5vw, 3.4rem) 0 1.4rem; }
.tg-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tg-footer img.tg-footer__logo { height: 68px; width: auto; margin-bottom: 1rem; filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 10px rgba(255,255,255,.12)); }
.tg-footer p, .tg-footer li { font-size: .92rem; color: #e6e6e8; }
.tg-footer h2 { font: 700 .76rem var(--tg-q); letter-spacing: .16em; text-transform: uppercase; color: #bdbdc2; margin-bottom: 1rem; }
.tg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.tg-footer a { color: #fff; }
.tg-footer a:hover { color: #fff; text-decoration: underline; }   /* brand red on charcoal read at ~2.3:1 */
.tg-social { display: flex; gap: .6rem; margin-top: 1rem; }
.tg-social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #2e2e31; transition: background-color .2s var(--tg-ease), color .2s var(--tg-ease), transform .2s var(--tg-ease); }
.tg-social a:hover { background: var(--tg-red); color: #fff; transform: translateY(-2px); }
.tg-social svg { width: 18px; height: 18px; }
.tg-panel .tg-social a { background: #fff; }
.tg-footer__bar { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .8rem; color: #bdbdc2; }
.tg-footer__compliance { margin-top: 1.5rem; font-size: .8rem; color: #c9c9ce; max-width: 95ch; }
body:has(.tg-map__note) .tg-footer__compliance { display: none; }

.tg-404 { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.tg-404__code { font: 700 clamp(4rem, 16vw, 9rem)/1 var(--tg-q); color: var(--tg-red); margin: 0; }

/* The old slideshow had arrows but no dots. */
.tg-rot__dots { display: none; }

/* ==========================================================================
   18. Narrow screens
   ========================================================================== */
@media (max-width: 1100px) {
  .tg-props { grid-template-columns: repeat(2, 1fr); }
  .tg-gfeat__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .tg-gfeat__cast { grid-column: 1 / -1; min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .tg-cast, .tg-prop-bit { position: relative; inset: auto; width: 180px; }
  .tg-prop-bit { width: 90px; }
}

@media (max-width: 900px) {
  .tg-rot__in, .tg-ghero__grid, .tg-lhero__grid, .tg-chero__grid, .tg-accel__grid, .tg-phero__grid, .tg-series__grid, .tg-row { grid-template-columns: minmax(0, 1fr); }
  .tg-collage--lib, .tg-collage--accel { width: 100%; margin-inline: 0; }
  .tg-accel > .tg-wrap { max-width: var(--tg-wrap); }
  .tg-rot__slide { min-height: 0; }
  .tg-rot__in { padding-block: 2.2rem 3.5rem; gap: 1.5rem; }
  .tg-rot__bg::after { background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.2) 70%, rgba(4,4,6,.9) 100%); }
  .tg-rot__arrow { top: auto; bottom: 8px; transform: none; }
  .tg-rot__arrow svg { width: 30px; height: 30px; }
  .tg-rot__dots { bottom: 26px; }
  .tg-ghero__media { min-height: 0; margin-top: 1rem; }
  .tg-ghero__media .tg-globe { width: 110%; }
  .tg-gfeat__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .tg-gfeat__cab img { max-height: 460px; margin-inline: auto; }
  .tg-feats { text-align: left; max-width: 34rem; margin-inline: auto; }
  .tg-shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-cabcards { grid-template-columns: 1fr; }
  .tg-shapes { grid-template-columns: repeat(3, 1fr); }
  .tg-row--flip .tg-row__pic { order: 0; }
  .tg-phero__orb, .tg-accel__orb { max-width: 380px; }
  .tg-series__lists ul { columns: 1; }
  .tg-lhero__art { order: 2; }
  .tg-ghero__bg::after, .tg-lhero__bg::after { background: linear-gradient(0deg, var(--tg-ink) 0%, rgba(0,0,0,.62) 30%, rgba(0,0,0,.66) 100%); }
  .tg-ghero .tg-eyebrow, .tg-lhero .tg-eyebrow { color: #ff5a5f; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
  .tg-chero__art { order: 2; }
}

@media (max-width: 600px) {
  :root { --tg-gutter: 18px; --tg-nav-h: 68px; }
  .tg-props { grid-template-columns: 1fr; }
  .tg-shots--vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-shots--dual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-shot__name { font-size: .78rem; letter-spacing: .06em; }
  .tg-shapes { grid-template-columns: repeat(2, 1fr); }
  .tg-shape img { height: 96px; }
  .tg-search { margin-left: 0; width: 100%; min-width: 0; }
  .tg-filter { flex: 1 1 auto; }
  .tg-cta__in { flex-direction: column; align-items: flex-start; }
  .tg-cta__in .tg-btn { width: 100%; justify-content: center; }
  .tg-footer__bar { flex-direction: column; gap: .4rem; }
  .tg-flare--hero { width: 46vw; right: -6%; }
  .tg-gfeat__cast .tg-cast { width: 140px; }
  .tg-map__na { margin-inline: -8px; }
  .tg-pin__dot { width: 10px; height: 10px; }
  .tg-map__na .tg-pin { display: none; }
  .tg-rot__copy, .tg-rot__in { text-align: center; }
  .tg-rot__copy .tg-btn { margin-inline: auto; }
  .tg-collage--rot .tg-bit--tiny { display: none; }
  .tg-phero--state .tg-phero__in, .tg-phero--contact .tg-phero__in {
    background: rgba(6,6,8,.62); border-radius: 8px; padding: 1rem 1.1rem;
  }
}

/* ==========================================================================
   19. Motion preferences + print
   ========================================================================== */
/* 3.2.19: slides, clips and entrances play even with the system "reduce motion" setting
   on (it froze the home page on Carlos's Windows PC) — only smooth scrolling yields. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .tg-nav, .tg-footer, .tg-cta, .tg-filters, .tg-burger, video, canvas, .tg-flare { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   Phones — Carlos's review of 2026-10-02 (screenshots from his iPhone)
   ========================================================================== */
@media (max-width: 700px) {
  /* the words centred as one block (the lines were left, the sub-line centred) */
  .tg-rot__line { margin-inline: auto; white-space: normal; }
  /* slides one and two: smaller cabinets, sitting at the bottom, so the world and the Buddha show */
  .tg-rot__slide { display: grid; }                       /* so the slide's content fills the slide */
  .tg-rot__in { grid-template-rows: auto 1fr; align-items: start; min-height: 100%; }
  .tg-rot__art { align-self: end; }
  /* sizes: 100% was too big, 58% / 50% too small (Carlos, 2026-10-02: "find a sweet spot") */
  .tg-rot__slide:nth-child(-n+2) .tg-collage--rot { width: 74%; margin-inline: auto; }
  /* (3.2.15's taller slide with half-width cabinets on the Buddha's chest was tried and dropped the
     same day: it also made slide one's cabinets look smaller. Sizes are back to the "sweet spot".) */
  .tg-rot__slide:nth-child(2) .tg-collage--rot { width: 64%; }
  /* slide three and the library banner: each logo a third larger. The pieces are pulled in from
     the sides (x * .74) and the box is half as tall again, so nothing is cut and nothing piles up. */
  .tg-rot__slide:nth-child(3) .tg-collage--rot, .tg-collage--lib { aspect-ratio: calc(var(--ar) / 1.5) !important; width: 100%; margin-inline: 0; }
  .tg-rot__slide:nth-child(3) .tg-collage--rot .tg-bit, .tg-collage--lib .tg-bit { left: calc(var(--x) * .74); width: calc(var(--w) * 1.35); height: auto; }
  /* the library banner's top row sits three abreast, so it grows less or the logos pile up */
  .tg-collage--lib { aspect-ratio: calc(var(--ar) / 1.3) !important; }
  .tg-collage--lib .tg-bit { left: calc(var(--x) * .86); width: calc(var(--w) * 1.16); }
  .tg-rot__slide:nth-child(3) .tg-collage--rot .tg-bit img, .tg-collage--lib .tg-bit img { height: auto; object-fit: contain; }
}
