/* ==========================================================================
   Light / dark theme.  Dark is the default (tokens in main.css :root).
   Light is switched on with <html data-theme="light">.
   ========================================================================== */

html[data-theme="light"]{
  color-scheme:light;
  --fg-rgb:22,18,12; --bg-rgb:248,244,236; --gold-rgb:160,128,60;
  --black:#f8f4ec; --ink:#efe8d9; --char:#ffffff;
  --line:rgba(22,18,12,.14); --line-d:rgba(22,18,12,.14);
  --white:#16120c; --ivory:#f6f2ea; --mute:#6f695d; --on-gold:#0a0a0a;
  --gold:#a8843a; --gold-l:#7d5f22; --gold-d:#7d5f22;
}

/* These areas are dark in BOTH themes: the hero video, page banners, project hero, closing band,
   footer, full-screen menu, lightbox and the header while it floats over a dark banner.
   They get the dark token set back, so everything inside renders as in the dark theme. */
.hero,.trust,.pdx-hero,.page-hero--royal,.cta-band,.footer,.menu,.lb,.curtain,.pn,
.header:not(.is-stuck),body.menu-open .header{
  --fg-rgb:255,255,255; --bg-rgb:10,10,10; --gold-rgb:200,169,106;
  --black:#0a0a0a; --ink:#111111; --char:#1b1b1b;
  --line:rgba(255,255,255,.14); --line-d:rgba(10,10,10,.14);
  --white:#ffffff; --mute:#8d8a84; --on-gold:#0a0a0a;
  --gold:#c8a96a; --gold-l:#e8d5a6; --gold-d:#9c7f45;
  color:var(--white);
}

body,.section,.header{transition:background-color .45s ease,color .45s ease,border-color .45s ease}

/* ---- Light-theme touch-ups ---------------------------------------------------------- */
/* photos keep a dark scrim and light text on them, whatever the theme */
html[data-theme="light"] .card__tag{background:rgba(10,10,10,.65);color:#e8d5a6;border-color:rgba(255,255,255,.25)}
html[data-theme="light"] .card__img::after{background:linear-gradient(180deg,transparent 55%,rgba(10,10,10,.5))}
html[data-theme="light"] .tile figcaption{color:#e8d5a6}
html[data-theme="light"] .tile img,
html[data-theme="light"] .case img,
html[data-theme="light"] .commercial__media img{filter:none}
html[data-theme="light"] .commercial__small{border-color:var(--black)}
html[data-theme="light"] .marquee__track span{-webkit-text-stroke-color:rgba(125,95,34,.65)}
html[data-theme="light"] .marquee:hover .marquee__track span{color:rgba(125,95,34,.9)}
html[data-theme="light"] .footer__mega{-webkit-text-stroke-color:rgba(200,169,106,.28)}
html[data-theme="light"] .bento__item:hover img{filter:brightness(.75)}
html[data-theme="light"] .bento__zoom,html[data-theme="light"] .ep__play{background:#c8a96a;color:#0a0a0a;border-color:#c8a96a}
html[data-theme="light"] .ep__play{background:rgba(10,10,10,.45);color:#e8d5a6;border-color:#e8d5a6}
html[data-theme="light"] .ep:hover .ep__play{background:#c8a96a;color:#0a0a0a}
html[data-theme="light"] .ep:hover .ep__img img{filter:brightness(.7)}
html[data-theme="light"] .btn--gold:hover{color:var(--gold)}
html[data-theme="light"] .pn__item img{opacity:.5}
html[data-theme="light"] .hero__stats{background:none}

/* ---- Header tools: theme switch + language switch ------------------------------------- */
.tool{height:42px;min-width:42px;padding:0;border-radius:999px;border:1px solid rgba(var(--fg-rgb),.3);background:none;
  display:inline-grid;place-items:center;color:var(--white);cursor:pointer;font:500 .72rem/1 var(--sans);letter-spacing:.14em;
  transition:background .4s,color .4s,border-color .4s,transform .6s var(--ease)}
.tool:hover{background:var(--gold);border-color:var(--gold);color:var(--on-gold);transform:translateY(-3px)}
.tool--lang{padding:0 16px}
.tool svg{width:18px;height:18px}
.tool--theme .ico-sun{display:none}
html[data-theme="light"] .tool--theme .ico-moon{display:none}
html[data-theme="light"] .tool--theme .ico-sun{display:block}
.header__cta{gap:12px}
@media (max-width:1180px){.tool{height:38px;min-width:38px}.tool--lang{padding:0 12px}.header__cta{gap:8px}}
@media (max-width:420px){.brand__text{display:none}}

/* Bodoni Moda draws ever thinner hairlines as the text gets bigger (its "optical size" axis).
   Capping it keeps the elegant contrast but stops letters such as the V, W and the italic
   hairlines in the headlines from fading away. */
.hero__title,.h1,.h2,.h3,h1,h2,h3,em,
.stat b,.hero__stats b,.footer__line,.pdx-keybar dd,.ptable__name,.facts dd,.fact b,.plan__head span,
.marquee__track span,.step__n,.gain__n,.hl__n,.hl p,.pn__txt b,.case__result,.contact-line,.menu__link,
.mega__card b,.mega__intro h4,.drop a b,.card h3,.post h3,.ep h3,.service h3,.gain h3{
  font-variation-settings:"opsz" 24;
}
