/* ==========================================================================
   tiguarfitness.com — brand hub prototype
   Design system. One stylesheet, no dependencies, no external requests.
   Accent #e30613 is tiguar's own EU4YA brand red (source: eu4ya.pl tokens).
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, variable, Polish diacritics verified) --- */
@font-face {
  font-family: "Clash Display";
  src: url("../assets/fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../assets/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------------------------------------------------- */
:root {
  /* surfaces */
  --ink:        #0a0a0b;
  --ink-2:      #141417;
  --ink-3:      #1c1c20;
  --ink-4:      #26262b;
  --paper:      #f5f4f2;
  --paper-2:    #ffffff;
  --paper-3:    #eae8e4;
  --paper-4:    #ddd9d3;

  /* brand */
  --accent:     #e30613;
  --accent-hot: #ff2032;
  --accent-deep:#b8030d;
  /* #e30613 as SMALL text only reaches ~4.4:1 on either base — under AA.
     These two are the accent shifted just far enough to clear 4.5:1.
     Fills, buttons and rules keep the true brand red. */
  --accent-txt-light: #b8030d;  /* small accent text on paper  → 6.2:1 */
  --accent-txt-dark:  #ff4d57;  /* small accent text on ink    → 6.0:1 */

  /* text */
  --on-dark:    #f5f4f2;
  --on-dark-2:  rgba(245, 244, 242, 0.64);
  --on-dark-3:  rgba(245, 244, 242, 0.42);
  --on-light:   #0a0a0b;
  --on-light-2: rgba(10, 10, 11, 0.62);
  --on-light-3: rgba(10, 10, 11, 0.40);

  /* lines */
  --line-d:     rgba(245, 244, 242, 0.13);
  --line-d-2:   rgba(245, 244, 242, 0.24);
  --line-l:     rgba(10, 10, 11, 0.13);
  --line-l-2:   rgba(10, 10, 11, 0.24);

  /* type */
  --display: "Clash Display", "Arial Black", sans-serif;
  --body:    "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* metrics */
  --shell:   1360px;
  --gutter:  clamp(1.25rem, 4vw, 3.5rem);
  --nav-h:   72px;
  --bar-h:   34px;

  /* motion */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur:       0.6s;

  --radius:  14px;
  --radius-s: 8px;
}

/* ---------- 3. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-light);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.028em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- 4. Layout primitives ----------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1680px; }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.dark  { background: var(--ink);   color: var(--on-dark); }
.dark-2{ background: var(--ink-2); color: var(--on-dark); }
.light { background: var(--paper); color: var(--on-light); }
.light-2 { background: var(--paper-2); color: var(--on-light); }

/* ---------- 5. Type ------------------------------------------------------ */
.d1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.85rem, 7.4vw, 5.75rem); line-height: 0.96; letter-spacing: -0.035em; }
.d2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.65rem); line-height: 1.0;  letter-spacing: -0.032em; }
.d3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.9vw, 2.4rem);  line-height: 1.06; letter-spacing: -0.028em; }
.d4 { font-family: var(--display); font-weight: 600; font-size: clamp(1.22rem, 1.8vw, 1.5rem); line-height: 1.14; letter-spacing: -0.022em; }

.lead { font-size: clamp(1.06rem, 1.5vw, 1.28rem); line-height: 1.55; font-weight: 400; max-width: 46ch; }
.body-copy { max-width: 68ch; }
.muted   { color: var(--on-light-2); }
.dark .muted, .dark-2 .muted { color: var(--on-dark-2); }

.label {
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-light-3);
}
.dark .label, .dark-2 .label { color: var(--on-dark-3); }

/* small accent text needs the readable variants, not the fill red */
.label--accent { color: var(--accent-txt-light); }
.dark .label--accent, .dark-2 .label--accent, .hero .label--accent { color: var(--accent-txt-dark); }

.rule { height: 1px; background: var(--line-l); border: 0; margin: 0; }
.dark .rule, .dark-2 .rule { background: var(--line-d); }

/* section head: heading + optional side note */
.s-head { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .s-head { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
  .s-head__aside { padding-bottom: 0.3rem; }
}
.s-head__label { margin-bottom: 1rem; display: block; }

/* ---------- 6. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.006em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.32s var(--ease), color 0.32s var(--ease),
              border-color 0.32s var(--ease), transform 0.32s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--accent-hot); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__arrow { transition: transform 0.32s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--on-light); border-color: var(--line-l-2); }
.btn--ghost:hover { --btn-bg: var(--on-light); --btn-fg: var(--paper); border-color: var(--on-light); }
.dark .btn--ghost, .dark-2 .btn--ghost { --btn-fg: var(--on-dark); border-color: var(--line-d-2); }
.dark .btn--ghost:hover, .dark-2 .btn--ghost:hover { --btn-bg: var(--on-dark); --btn-fg: var(--ink); border-color: var(--on-dark); }

.btn--solid-light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--solid-light:hover { --btn-bg: #fff; }
.btn--solid-dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--solid-dark:hover { --btn-bg: var(--ink-3); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* text link with animated underline */
.tlink {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; font-size: 0.95rem;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s var(--ease);
}
.tlink:hover { background-size: 100% 1px; }
.tlink svg { transition: transform 0.35s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }
.tlink--accent { color: var(--accent-txt-light); }
.dark .tlink--accent, .dark-2 .tlink--accent, .hero .tlink--accent, .gate .tlink--accent { color: var(--accent-txt-dark); }

/* ---------- 7. Top bar + nav --------------------------------------------- */
.ecobar {
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: 0.75rem;
  height: var(--bar-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line-d);
  position: relative; z-index: 60;
}
.ecobar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.ecobar__set { display: flex; align-items: center; gap: 1.25rem; }
.ecobar a { transition: color 0.25s var(--ease); white-space: nowrap; }
.ecobar a:hover { color: var(--on-dark); }
.ecobar__here { color: var(--on-dark); font-weight: 600; }
.ecobar__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 0.45rem; vertical-align: 1px; }
@media (max-width: 620px) { .ecobar__set--right { display: none; } }

.nav {
  position: sticky; top: 0; z-index: 55;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-d);
  color: var(--on-dark);
  transition: background 0.4s var(--ease);
}
.nav.is-solid { background: rgba(10, 10, 11, 0.94); }
.nav__in { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.brand__mark { height: 26px; width: auto; }
.brand__sub {
  font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-3); padding-left: 0.7rem; margin-left: 0.1rem;
  border-left: 1px solid var(--line-d-2); line-height: 1.1;
}
@media (max-width: 1080px) { .brand__sub { display: none; } }

.nav__menu { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
@media (max-width: 1180px) { .nav__menu { display: none; } }
.nav__link {
  position: relative;
  padding: 0.5rem 0.7rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--on-dark-2);
  border-radius: 7px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--on-dark); background: rgba(255,255,255,0.06); }
.nav__link.is-active { color: var(--on-dark); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.1rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}
/* the deliberately highlighted item (Eleiko pattern) */
.nav__link--flag {
  color: #fff; background: var(--accent); font-weight: 600;
  padding-inline: 0.95rem;
}
.nav__link--flag:hover { background: var(--accent-hot); color: #fff; }

.nav__right { display: flex; align-items: center; gap: 0.6rem; margin-left: 1rem; flex: none; }
.nav__cta { white-space: nowrap; }
@media (max-width: 1180px) { .nav__right { margin-left: auto; } }
@media (max-width: 720px) { .nav__cta { display: none; } }

/* language switcher */
.lang { display: flex; align-items: center; gap: 1px; position: relative; }
.lang__btn {
  padding: 0.36rem 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--on-dark-3); border-radius: 6px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang__btn:hover { color: var(--on-dark); background: rgba(255,255,255,0.07); }
.lang__btn.is-on { color: var(--ink); background: var(--on-dark); }
/* aria-disabled rather than disabled: a truly disabled button swallows pointer
   events, which would make the "Part of phase V3" tooltip undiscoverable. */
.lang__btn[disabled], .lang__btn[aria-disabled="true"] { color: rgba(245,244,242,0.34); cursor: help; }
.lang__btn[disabled]:hover, .lang__btn[aria-disabled="true"]:hover { background: rgba(255,255,255,0.05); color: rgba(245,244,242,0.5); }

/* market-edition marker — lives in the top bar, not the nav row */
.edition {
  font-size: 0.75rem; letter-spacing: 0.02em; cursor: help;
  color: var(--on-dark-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-bottom: 1px dotted var(--line-d-2); padding-bottom: 1px;
}
.edition::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 620px) { .edition { display: none; } }

/* burger + mobile drawer */
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-d-2); }
@media (max-width: 1180px) { .burger { display: inline-flex; } }
.burger span { display: block; width: 17px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor;
  transition: transform 0.35s var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after  { top: 5.5px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-5.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 54;
  background: var(--ink); color: var(--on-dark);
  padding: calc(var(--nav-h) + var(--bar-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 0.2rem;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
.drawer a {
  font-family: var(--display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line-d);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer a small { font-family: var(--body); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 500; }
.drawer__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }

/* ---------- 8. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  /* fills exactly what is left under the fixed chrome, never more */
  min-height: min(calc(100vh - var(--nav-h) - var(--bar-h)), 860px);
  display: flex; align-items: flex-end;
  background: var(--ink); color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: min(calc(74vh - var(--nav-h)), 620px); }

/* ghost buttons sit on photography here — they need their own surface */
.hero .btn--ghost, .stickybar .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero .btn--ghost:hover, .stickybar .btn--ghost:hover {
  background: var(--on-dark); color: var(--ink); border-color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroDrift 26s var(--ease-soft) forwards;
}
@keyframes heroDrift { from { transform: scale(1.09); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media img, .hero__media video { animation: none; } }

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10,10,11,0.94) 0%, rgba(10,10,11,0.62) 38%, rgba(10,10,11,0.28) 68%, rgba(10,10,11,0.55) 100%),
    linear-gradient(to right, rgba(10,10,11,0.72) 0%, rgba(10,10,11,0.10) 62%);
}
.hero__in { width: 100%; padding-block: clamp(2rem, 4vw, 3rem) 0; }
.hero h1 { max-width: 15ch; }
.hero__sub { margin-top: 1.15rem; max-width: 48ch; color: var(--on-dark-2); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.55; }
.hero__cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* hero stat rail — full-width strip along the bottom of the hero.
   Right padding keeps it clear of the fixed advisor launcher. */
.hero__rail {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: 1.3rem; padding-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
  border-top: 1px solid var(--line-d);
  display: flex; gap: clamp(1.75rem, 4vw, 3.5rem); flex-wrap: wrap;
}
@media (min-width: 900px) { .hero__rail { padding-right: 210px; } }
/* on mobile the fixed advisor launcher sits over the bottom of every hero — keep clear of it */
@media (max-width: 899px) {
  .hero__in { padding-bottom: 4.75rem; }
  .hero__rail { padding-bottom: 0.5rem; }
}
.hero__stat { min-width: 86px; }
.hero__stat b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1; letter-spacing: -0.03em; }
.hero__stat span { display: block; margin-top: 0.4rem; font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--on-dark-3); }

/* ---------- 9. Cards ----------------------------------------------------- */
/* gateway card — facility paths */
.gate {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2); color: var(--on-dark);
  min-height: 420px;
  isolation: isolate;
}
.gate__img { position: absolute; inset: 0; z-index: -2; }
.gate__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gate:hover .gate__img img { transform: scale(1.055); }
.gate::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(10,10,11,0.97) 0%, rgba(10,10,11,0.93) 26%,
    rgba(10,10,11,0.72) 46%, rgba(10,10,11,0.34) 72%, rgba(10,10,11,0.12) 100%);
  transition: background 0.5s var(--ease);
}
.gate:hover::after {
  background: linear-gradient(to top,
    rgba(10,10,11,0.97) 0%, rgba(10,10,11,0.9) 26%,
    rgba(10,10,11,0.64) 50%, rgba(10,10,11,0.3) 76%, rgba(10,10,11,0.1) 100%);
}
.gate__body { position: relative; margin-top: auto; padding: clamp(1.4rem, 2.2vw, 1.9rem); display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.gate__n { position: absolute; top: clamp(1.2rem, 2vw, 1.7rem); left: clamp(1.4rem, 2.2vw, 1.9rem); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--on-dark-3); }
.gate h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.gate p { margin-top: 0.6rem; color: var(--on-dark-2); font-size: 0.94rem; line-height: 1.5; max-width: 34ch; }
.gate__go { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.875rem; color: var(--accent-txt-dark); }
.gate__go svg { transition: transform 0.4s var(--ease); }
.gate:hover .gate__go svg { transform: translateX(5px); }
.gate--tall { min-height: 460px; }

/* product story card */
.pcard { display: flex; flex-direction: column; }
.pcard__frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-3); aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.dark .pcard__frame, .dark-2 .pcard__frame { background: var(--ink-3); }
/* Packshots ship on white. multiply drops that white into the frame tint
   so the product sits on the surface instead of inside a paler rectangle.
   Absolutely positioned on purpose: against a grid area sized by aspect-ratio,
   a percentage height is indefinite, so `height:100%` collapsed to the image's
   own square and clipped 25% off the bottom of every packshot. */
.pcard__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; padding: 7%;
  transition: transform 0.9s var(--ease);
  mix-blend-mode: multiply;
}
.dark .pcard__frame img, .dark-2 .pcard__frame img { mix-blend-mode: screen; filter: invert(1) brightness(1.9); }
.packshot { mix-blend-mode: multiply; object-fit: contain !important; background: transparent; padding: 7%; }
.pcard:hover .pcard__frame img { transform: scale(1.05); }
.pcard__tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-size: 0.625rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
  padding: 0.32rem 0.6rem; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.pcard__body { padding-top: 1.15rem; }
.pcard h3 { font-size: 1.32rem; }
.pcard p { margin-top: 0.5rem; font-size: 0.94rem; line-height: 1.55; color: var(--on-light-2); max-width: 38ch; }
.dark .pcard p, .dark-2 .pcard p { color: var(--on-dark-2); }
.pcard__go { margin-top: 0.9rem; }

/* case-study card */
.case { display: block; }
.case__frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.case__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case:hover .case__frame img { transform: scale(1.05); }
.case__meta { position: absolute; left: 0.9rem; bottom: 0.9rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.34rem 0.65rem; border-radius: 999px;
  background: rgba(10,10,11,0.72); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip--accent { background: var(--accent); }
.case { display: flex; flex-direction: column; height: 100%; }
.case__body { padding-top: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.case h3 { font-size: 1.28rem; }
.case__row {
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line-l);
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap;
}
.dark .case__row, .dark-2 .case__row { border-color: var(--line-d); }
.case__val { font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.02em; white-space: nowrap; }

/* article card */
.art { display: flex; flex-direction: column; height: 100%; }
.art__frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--paper-3); }
.art__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.art:hover .art__frame img { transform: scale(1.05); }
.art__body { padding-top: 1rem; display: flex; flex-direction: column; flex: 1; }
.art h3 { font-size: 1.12rem; line-height: 1.2; }
.art__meta { margin-top: auto; padding-top: 0.7rem; font-size: 0.78rem; color: var(--on-light-3); display: flex; gap: 0.8rem; }
.dark .art__meta { color: var(--on-dark-3); }

/* team card */
.person { text-align: left; }
.person__frame {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3);
  display: grid; place-items: center; position: relative;
}
.person__frame svg { width: 46%; height: auto; opacity: 0.22; }
.person__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), transparent 58%);
}
.person__body { padding-top: 1rem; }
.person h3 { font-size: 1.1rem; }
.person__role { margin-top: 0.3rem; font-size: 0.84rem; color: var(--on-dark-2); }
.person__contact { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; }
.person__contact span { display: flex; align-items: center; gap: 0.5rem; color: var(--on-dark-2); }
.person__contact svg { flex: none; opacity: 0.55; }

/* ---------- 10. Grids ---------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11. Stat band ------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-d); border-block: 1px solid var(--line-d); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem); }
.light .stat, .light-2 .stat { background: var(--paper); }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -0.035em; }
.stat span { display: block; margin-top: 0.6rem; font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--on-dark-3); }
.light .stat span, .light-2 .stat span { color: var(--on-light-3); }

/* ---------- 12. Countdown ------------------------------------------------ */
.cd { display: flex; gap: 0.5rem; }
.cd__unit {
  min-width: 68px; padding: 0.75rem 0.6rem; text-align: center;
  border: 1px solid var(--line-d); border-radius: 10px;
  background: rgba(255,255,255,0.03);
}
.light .cd__unit, .light-2 .cd__unit { border-color: var(--line-l); background: rgba(10,10,11,0.02); }
.cd__n {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.cd__l { display: block; margin-top: 0.4rem; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
.light .cd__l, .light-2 .cd__l { color: var(--on-light-3); }
.cd--sm .cd__unit { min-width: 50px; padding: 0.5rem 0.4rem; border-radius: 8px; }
.cd--sm .cd__n { font-size: 1.15rem; }
.cd--sm .cd__l { font-size: 0.52rem; }

/* ---------- 13. Studio Design circle (the signature moment) -------------- */
.loop { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .loop { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); } }

.orbit { position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 1; }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* stroke widths are in viewBox units (viewBox is 100 wide) — ~0.3 reads as a hairline */
.orbit__ring { fill: none; stroke: var(--line-d); stroke-width: 0.22; }
.light .orbit__ring { stroke: var(--line-l-2); }
.orbit__prog {
  fill: none; stroke: var(--accent); stroke-width: 0.42; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.is-in .orbit__prog { stroke-dashoffset: 0; }

.orbit__node {
  position: absolute; width: 13%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink-2); border: 1px solid var(--line-d);
  color: var(--on-dark-2);
  font-family: var(--display); font-weight: 600; font-size: clamp(0.8rem, 1.5vw, 1rem);
  cursor: pointer;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
              color 0.45s var(--ease), transform 0.45s var(--ease);
}
.light .orbit__node { background: var(--paper-2); border-color: var(--line-l); color: var(--on-light-2); }
.orbit__node:hover { transform: translate(-50%, -50%) scale(1.08); border-color: var(--accent); }
.orbit__node.is-on {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 8px 24px -8px rgba(227, 6, 19, 0.45);
}
.orbit__node--anchor {
  width: 17%;
  background: var(--ink); border-color: var(--ink); color: #fff;
  font-size: clamp(0.5rem, 1vw, 0.66rem); letter-spacing: 0.04em;
}
.light .orbit__node--anchor { background: var(--ink); border-color: var(--ink); color: #fff; }
.orbit__node--anchor.is-on { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.12); }

.orbit__hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44%; text-align: center;
}
.orbit__hub b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.05; }
.orbit__hub span { display: block; margin-top: 0.5rem; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
.light .orbit__hub span { color: var(--on-light-3); }

.steps { display: flex; flex-direction: column; gap: 0.15rem; }
.step {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem;
  padding: 0.95rem 1rem; border-radius: 10px; text-align: left; width: 100%;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  cursor: pointer;
}
.step:hover { background: rgba(255,255,255,0.04); }
.light .step:hover { background: rgba(10,10,11,0.035); }
.step.is-on { background: rgba(227,6,19,0.09); border-color: rgba(227,6,19,0.28); }
.step__n { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--on-dark-3); padding-top: 0.15rem; }
.light .step__n { color: var(--on-light-3); }
.step.is-on .step__n { color: var(--accent-txt-light); }
.dark .step.is-on .step__n, .dark-2 .step.is-on .step__n { color: var(--accent-txt-dark); }
.step__t { display: block; font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.02em; }
.step__d { display: block; margin-top: 0.3rem; font-size: 0.88rem; line-height: 1.5; color: var(--on-dark-2); }
.light .step__d { color: var(--on-light-2); }
.step__flag { display: inline-block; margin-left: 0.5rem; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-txt-light); vertical-align: 2px; }
.dark .step__flag, .dark-2 .step__flag { color: var(--accent-txt-dark); }

/* ---------- 14. Media / gallery ------------------------------------------ */
.strip { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line-d-2); border-radius: 3px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip > * { flex: 0 0 clamp(240px, 30vw, 380px); scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-s); }

.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.mosaic--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .mosaic--4 { grid-template-columns: repeat(2, 1fr); } }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-s); }
.mosaic > * { overflow: hidden; border-radius: var(--radius-s); aspect-ratio: 1; }
.mosaic > .m-wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.mosaic > .m-tall { grid-row: span 2; aspect-ratio: 1 / 2; }
@media (max-width: 900px) { .mosaic > .m-tall { grid-row: span 1; aspect-ratio: 1; } }
.mosaic img { transition: transform 0.9s var(--ease); }
.mosaic > *:hover img { transform: scale(1.06); }

/* ---------- 15. Feature panel (split image + copy) ------------------------ */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split--flip > :first-child { order: 2; }
@media (max-width: 899px) { .split--flip > :first-child { order: 0; } }
.split__media { border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 16. Lists ---------------------------------------------------- */
.ticks { display: flex; flex-direction: column; gap: 0.85rem; }
.ticks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.85rem; align-items: start; font-size: 0.96rem; line-height: 1.5; }
.ticks svg { margin-top: 0.35rem; color: var(--accent); flex: none; }

.spec { border-top: 1px solid var(--line-l); }
.dark .spec, .dark-2 .spec { border-color: var(--line-d); }
.spec li {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line-l); font-size: 0.94rem;
}
.dark .spec li, .dark-2 .spec li { border-color: var(--line-d); }
.spec b { font-weight: 600; }
.spec span { color: var(--on-light-2); font-variant-numeric: tabular-nums; }
.dark .spec span, .dark-2 .spec span { color: var(--on-dark-2); }

/* ---------- 17. Badge row ------------------------------------------------ */
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line-d-2); color: var(--on-dark-2);
}
.light .badge, .light-2 .badge { border-color: var(--line-l-2); color: var(--on-light-2); }
.badge--accent { border-color: var(--accent); color: var(--accent-txt-light); }
.dark .badge--accent, .dark-2 .badge--accent, .hero .badge--accent { color: var(--accent-txt-dark); }

/* estimate marker */
.estimate {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 5px;
  background: rgba(227, 6, 19, 0.12); color: var(--accent-txt-light);
  border: 1px solid rgba(227, 6, 19, 0.3);
}

/* ---------- 18. Note / callout ------------------------------------------- */
.note {
  padding: 1.15rem 1.35rem; border-radius: 10px;
  background: rgba(255,255,255,0.045); border: 1px solid var(--line-d);
  font-size: 0.88rem; line-height: 1.55; color: var(--on-dark-2);
}
.light .note, .light-2 .note { background: rgba(10,10,11,0.035); border-color: var(--line-l); color: var(--on-light-2); }

/* ---------- 19. Forms ---------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--on-light-3); }
.dark .field label, .dark-2 .field label { color: var(--on-dark-3); }
.field input, .field textarea, .field select {
  padding: 0.8rem 1rem; border-radius: 9px;
  border: 1px solid var(--line-l-2); background: var(--paper-2); color: var(--on-light);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  font-size: 0.95rem; width: 100%;
}
.dark .field input, .dark .field textarea { background: rgba(255,255,255,0.05); border-color: var(--line-d-2); color: var(--on-dark); }
.field input::placeholder { color: var(--on-light-3); }
.dark .field input::placeholder { color: var(--on-dark-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227,6,19,0.16); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field__err { font-size: 0.78rem; color: var(--accent-txt-light); min-height: 1.1em; }
.dark .field__err, .dark-2 .field__err { color: var(--accent-txt-dark); }

.gate-form { display: grid; gap: 0.9rem; }
@media (min-width: 560px) { .gate-form--row { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- 20. E-book / lock cards -------------------------------------- */
.ebook {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; align-items: center;
  padding: 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--line-l); background: var(--paper-2);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.dark .ebook, .dark-2 .ebook { background: var(--ink-2); border-color: var(--line-d); }
.ebook:hover { border-color: var(--accent); transform: translateY(-2px); }
.ebook__cover {
  aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
  display: grid; place-items: center; padding: 0.55rem; text-align: center;
  border: 1px solid var(--line-d);
}
.ebook__cover span { font-family: var(--display); font-weight: 600; font-size: 0.62rem; line-height: 1.15; color: var(--on-dark); letter-spacing: -0.01em; }
.ebook h3 { font-size: 1.02rem; }
.ebook p { margin-top: 0.35rem; font-size: 0.84rem; color: var(--on-light-2); }
.dark .ebook p { color: var(--on-dark-2); }

.locked { position: relative; }
.locked__frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16/10; }
.locked__frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) brightness(0.5); transition: filter 0.6s var(--ease), transform 0.9s var(--ease); }
.locked:hover .locked__frame img { filter: saturate(0.85) brightness(0.62); transform: scale(1.04); }
.locked__lock {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 0.5rem;
  align-content: center; color: #fff;
}
.locked__lock svg { opacity: 0.9; }
.locked__lock span { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; }
.locked__body { padding-top: 0.95rem; }
.locked h3 { font-size: 1.05rem; }
.locked__meta { margin-top: 0.45rem; font-size: 0.8rem; color: var(--on-dark-3); }

/* ---------- 21. Modal ---------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(6,6,7,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.3s var(--ease); }
.modal__panel {
  position: relative; z-index: 1; margin: auto;
  top: 50%; transform: translateY(-50%);
  width: min(460px, calc(100vw - 2.5rem));
  background: var(--paper-2); color: var(--on-light);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.6);
  animation: pop 0.42s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(calc(-50% + 14px)); } }
.modal__close { position: absolute; top: 0.9rem; right: 0.9rem; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--on-light-2); transition: background 0.25s; }
.modal__close:hover { background: var(--paper-3); }

/* ---------- 22. Sticky product bar --------------------------------------- */
.stickybar {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(10,10,11,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-d); color: var(--on-dark);
  transform: translateY(-120%); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
.stickybar.is-on { transform: translateY(0); opacity: 1; pointer-events: auto; }
.stickybar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.stickybar__name { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.stickybar__sub { font-size: 0.75rem; color: var(--on-dark-3); }
@media (max-width: 620px) { .stickybar__sub { display: none; } }

/* ---------- 23. Footer --------------------------------------------------- */
.foot { background: var(--ink); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot__top { display: grid; gap: 2.5rem; padding-bottom: 2.75rem; border-bottom: 1px solid var(--line-d); }
@media (min-width: 900px) { .foot__top { grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 0.72fr)); gap: 2rem; } }
.foot__brand img { height: 28px; width: auto; }
.foot__tag { margin-top: 1.1rem; font-size: 0.9rem; color: var(--on-dark-2); max-width: 32ch; line-height: 1.55; }
.foot__cd { margin-top: 1.5rem; }
.foot__cd .label { margin-bottom: 0.6rem; display: block; }
.foot h4 { font-family: var(--body); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-3); margin-bottom: 1rem; }
.foot__links { display: flex; flex-direction: column; gap: 0.6rem; }
.foot__links a { font-size: 0.9rem; color: var(--on-dark-2); transition: color 0.25s var(--ease); width: fit-content; }
.foot__links a:hover { color: var(--on-dark); }
.foot__ext { display: inline-flex; align-items: center; gap: 0.4rem; }
.foot__ext svg { opacity: 0.45; }
.foot__bottom { padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--on-dark-3); }
.foot__social { display: flex; gap: 0.5rem; }
.foot__social a {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-d); color: var(--on-dark-2);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.foot__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 24. "Built in the full project" tooltip ---------------------- */
[data-soon] { position: relative; cursor: help; }
[data-soon]::after {
  content: attr(data-soon);
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translate(-50%, 4px);
  padding: 0.42rem 0.7rem; border-radius: 7px;
  background: var(--ink-4); color: var(--on-dark);
  font-family: var(--body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.01em;
  white-space: nowrap; pointer-events: none; opacity: 0; z-index: 70;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.5);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
[data-soon]:hover::after, [data-soon]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
[data-soon].is-tapped::after { opacity: 1; transform: translate(-50%, 0); }

/* The top bar is the first thing on the page — a tooltip above it lands off-screen.
   Flip those downward, and right-align the one that sits against the viewport edge. */
.ecobar [data-soon]::after { bottom: auto; top: calc(100% + 9px); transform: translate(-50%, -4px); }
.ecobar [data-soon]:hover::after,
.ecobar [data-soon]:focus-visible::after,
.ecobar [data-soon].is-tapped::after { transform: translate(-50%, 0); }

.ecobar .edition[data-soon]::after { left: auto; right: 0; transform: translate(0, -4px); }
.ecobar .edition[data-soon]:hover::after,
.ecobar .edition[data-soon]:focus-visible::after,
.ecobar .edition[data-soon].is-tapped::after { transform: translate(0, 0); }

/* language switcher sits at the right edge of the nav — keep its tooltip inside the viewport */
.lang [data-soon]::after { left: auto; right: 0; transform: translate(0, 4px); }
.lang [data-soon]:hover::after,
.lang [data-soon]:focus-visible::after,
.lang [data-soon].is-tapped::after { transform: translate(0, 0); }

/* ---------- 25. Scroll reveal -------------------------------------------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-1 { transition-delay: 0.07s; }
.rv-2 { transition-delay: 0.14s; }
.rv-3 { transition-delay: 0.21s; }
.rv-4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .orbit__prog { transition: none; stroke-dashoffset: 0; }
}

/* ---------- 26. Advisor widget ------------------------------------------- */
.adv-launch {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 80; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.25rem 0.8rem 0.85rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 14px 40px -10px rgba(227,6,19,0.62);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.adv-launch:hover { background: var(--accent-hot); transform: translateY(-2px); }
.adv-launch.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px) scale(0.94); }
.adv-launch__dot { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.2); flex: none; }
.adv-launch__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55); animation: pulseRing 2.6s var(--ease-soft) infinite;
}
@keyframes pulseRing { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.65); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .adv-launch__dot::after { animation: none; } }

.adv-nudge {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: calc(clamp(1rem, 2.5vw, 1.75rem) + 62px);
  z-index: 80; width: min(300px, calc(100vw - 2.5rem));
  background: var(--paper-2); color: var(--on-light);
  border-radius: 14px; padding: 1rem 1.1rem;
  box-shadow: 0 18px 50px -14px rgba(0,0,0,0.42);
  opacity: 0; transform: translateY(10px) scale(0.97); pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.adv-nudge.is-on { opacity: 1; transform: none; pointer-events: auto; }
.adv-nudge p { font-size: 0.9rem; line-height: 1.45; padding-right: 1.2rem; }
.adv-nudge__x { position: absolute; top: 0.55rem; right: 0.6rem; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--on-light-3); }
.adv-nudge__x:hover { background: var(--paper-3); }
.adv-nudge__go { margin-top: 0.75rem; }
.adv-nudge::after {
  content: ""; position: absolute; bottom: -6px; right: 34px; width: 12px; height: 12px;
  background: var(--paper-2); transform: rotate(45deg);
}

.adv {
  position: fixed; z-index: 85;
  right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem);
  width: 390px; height: min(640px, calc(100vh - 3rem));
  background: var(--paper-2); color: var(--on-light);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -18px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(18px) scale(0.97); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.adv.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 560px) {
  .adv { inset: 0; width: 100%; height: 100%; border-radius: 0; transform: translateY(24px); }
  .adv.is-open { transform: none; }
}

.adv__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1rem; background: var(--ink); color: var(--on-dark);
  flex: none;
}
.adv__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.adv__avatar svg { width: 18px; height: 18px; }
.adv__title { flex: 1; min-width: 0; }
.adv__title b { display: block; font-family: var(--display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.02em; }
.adv__status { display: flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; color: var(--on-dark-3); margin-top: 1px; }
.adv__status i { width: 6px; height: 6px; border-radius: 50%; background: #35d07f; display: block; }
.adv__x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--on-dark-2); transition: background 0.25s; flex: none; }
.adv__x:hover { background: rgba(255,255,255,0.1); color: var(--on-dark); }

.adv__log { flex: 1; overflow-y: auto; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; scroll-behavior: smooth; }
/* the log scrolls — nothing inside it may be shrunk to fit */
.adv__log > * { flex: 0 0 auto; }
.adv__log::-webkit-scrollbar { width: 6px; }
.adv__log::-webkit-scrollbar-thumb { background: var(--paper-4); border-radius: 3px; }

.msg { max-width: 86%; font-size: 0.92rem; line-height: 1.5; animation: msgIn 0.42s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(9px); } }
.msg--bot { align-self: flex-start; background: var(--paper-3); padding: 0.7rem 0.9rem; border-radius: 14px 14px 14px 4px; }
.msg--me  { align-self: flex-end; background: var(--accent); color: #fff; padding: 0.7rem 0.9rem; border-radius: 14px 14px 4px 14px; font-weight: 500; }
.msg--wide { max-width: 100%; }
.msg strong { font-weight: 700; }
.msg em { font-style: normal; color: var(--on-light-2); }
.msg ul { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.28rem; }
.msg ul li { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; font-size: 0.86rem; }
.msg ul li span { color: var(--on-light-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.typing { align-self: flex-start; display: flex; gap: 4px; padding: 0.85rem 0.9rem; background: var(--paper-3); border-radius: 14px 14px 14px 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--on-light-3); animation: blink 1.3s var(--ease-soft) infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.adv__card {
  border: 1px solid var(--line-l); border-radius: 12px; overflow: hidden;
  align-self: flex-start; max-width: 100%; width: 100%;
  animation: msgIn 0.42s var(--ease);
}
.adv__card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.adv__card-b { padding: 0.75rem 0.85rem; }
.adv__card-b b { display: block; font-family: var(--display); font-weight: 600; font-size: 0.92rem; letter-spacing: -0.02em; }
.adv__card-b p { margin-top: 0.25rem; font-size: 0.8rem; color: var(--on-light-2); line-height: 1.45; }

.adv__est {
  align-self: flex-start; width: 100%;
  border: 1px solid rgba(227,6,19,0.3); background: rgba(227,6,19,0.05);
  border-radius: 12px; padding: 0.9rem 1rem;
  animation: msgIn 0.42s var(--ease);
}
.adv__est-v { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.03em; margin-top: 0.5rem; line-height: 1.1; }
.adv__est-n { margin-top: 0.45rem; font-size: 0.76rem; color: var(--on-light-2); line-height: 1.45; }

.adv__quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.4rem; flex: none; }
.adv__quick:empty { padding: 0; }
.qbtn {
  padding: 0.52rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line-l-2); background: var(--paper-2);
  font-size: 0.83rem; font-weight: 500;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  animation: msgIn 0.35s var(--ease);
}
.qbtn:hover { border-color: var(--accent); color: var(--accent-txt-light); transform: translateY(-1px); }
.qbtn--ghost { border-style: dashed; color: var(--on-light-2); }

.adv__form { padding: 0 1rem 0.75rem; display: grid; gap: 0.6rem; flex: none; }
.adv__foot { padding: 0.7rem 1rem 0.85rem; border-top: 1px solid var(--line-l); flex: none; }
.adv__inrow { display: flex; gap: 0.5rem; align-items: center; }
.adv__in {
  flex: 1; min-width: 0; padding: 0.65rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line-l-2); background: var(--paper-2); font-size: 0.88rem;
}
.adv__in:focus { outline: none; border-color: var(--accent); }
.adv__send {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: background 0.25s var(--ease);
}
.adv__send:hover { background: var(--accent-hot); }
.adv__legal { margin-top: 0.55rem; font-size: 0.66rem; color: var(--on-light-3); text-align: center; line-height: 1.4; }

.adv__done { display: grid; place-items: center; gap: 0.75rem; text-align: center; padding: 1.25rem 0.5rem; animation: msgIn 0.5s var(--ease); }
.adv__done-ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(53,208,127,0.14); color: #1f9d5f; display: grid; place-items: center; }

/* advisor section explainer steps */
.how { display: flex; flex-direction: column; counter-reset: how; }
.how li {
  counter-increment: how;
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem;
  padding: 1.05rem 0; border-top: 1px solid var(--line-d);
}
.how li:last-child { border-bottom: 1px solid var(--line-d); }
.light .how li { border-color: var(--line-l); }
.how li::before {
  content: counter(how, decimal-leading-zero);
  font-family: var(--display); font-weight: 600; font-size: 0.82rem;
  color: var(--accent-txt-light); letter-spacing: 0.05em; padding-top: 0.22rem;
}
/* ::before takes column 1; both text children must stay in column 2 */
.how li > b, .how li > p { grid-column: 2; }
.dark .how li::before, .dark-2 .how li::before { color: var(--accent-txt-dark); }
.how b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.02em; }
.how p { margin-top: 0.3rem; font-size: 0.9rem; line-height: 1.5; color: var(--on-dark-2); }
.light .how p { color: var(--on-light-2); }

/* ---------- 27. Utilities ------------------------------------------------ */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.wrap    { flex-wrap: wrap; }
.gap-xs  { gap: 0.5rem; }
.gap-s   { gap: 0.75rem; }
.gap-m   { gap: 1.25rem; }
.gap-l   { gap: 2rem; }
.mt-xs { margin-top: 0.5rem; }
.mt-s  { margin-top: 0.85rem; }
.mt-m  { margin-top: 1.5rem; }
.mt-l  { margin-top: 2.25rem; }
.mt-xl { margin-top: 3.25rem; }
.mb-m  { margin-bottom: 1.5rem; }
.mb-l  { margin-bottom: 2.25rem; }
.center { text-align: center; }
.accent { color: var(--accent-txt-light); }
.dark .accent, .dark-2 .accent, .hero .accent { color: var(--accent-txt-dark); }
.nowrap { white-space: nowrap; }

.print-only { display: none; }
@media print {
  .nav, .ecobar, .foot, .adv, .adv-launch, .adv-nudge, .stickybar, .drawer, .modal { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; color: #000; }
  /* once the advisor has built a summary, the printed page IS the summary */
  body.adv-print main { display: none !important; }
}
