/* ============================================================
   automation-v2 additions — FAQ + Cal.com booking + lang pill
   Loaded ONLY on /automation-v2 pages, after style.css.
   ============================================================ */
.faq { padding: clamp(4.5rem, 11vh, 8rem) 0 clamp(2rem, 5vh, 3rem); }
.faq .sec-title { text-align: center; margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.faq-list { max-width: 980px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.3rem, 3.2vh, 2rem) 0.2rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em;
}
.faq-x {
  font-family: var(--font-tech);
  color: var(--red);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-x { transform: rotate(45deg); }
.faq-a {
  margin: 0 0.2rem clamp(1.4rem, 3vh, 2rem);
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.6;
}

/* Cal.com inline booking inside the CTA card */
.book-shell {
  flex: 1 1 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(15, 12, 8, 0.10);
  padding: clamp(0.5rem, 1vw, 1rem);
}
#cal-inline { width: 100%; height: clamp(540px, 72vh, 780px); overflow: auto; }
.cta-meta a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  #cal-inline { height: 620px; }
  .faq-q { font-size: 1.05rem; }
}

/* red marker highlight in the speed statement */
.punch-hl {
  background: var(--red);
  color: var(--paper);
  padding: 0.06em 0.24em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* mobile: language pill + book button don't fit together in the top bar */
@media (max-width: 620px) {
  .nav-right { gap: 0.5rem; }
  .nav-right .btn--dark { display: none; }
  /* section heads: big title takes the full row, arrows wrap below (were cut off) */
  .work-head { flex-wrap: wrap; row-gap: 0.6rem; }
  .work-head .sec-title { flex: 1 1 100%; }
}

/* logos marquee: no edge-fade gradient on these pages */
.marquee { -webkit-mask-image: none; mask-image: none; }

/* logo band: more logos, wider spacing, calmer speed */
.marquee-group {
  gap: clamp(3.2rem, 6vw, 5.5rem);
  padding-right: clamp(3.2rem, 6vw, 5.5rem);
}
.marquee-track { animation-duration: 64s; }

/* testimonial rail: double-width desktop shots break the uniform grid */
.ts-card--wide { flex: 0 0 calc(clamp(430px, 56vh, 540px) * 1.333); }
.ts-card--wide img { object-position: center; }
@media (max-width: 760px) { .ts-card--wide { flex-basis: 92vw; } }

/* nav: true-center the menu regardless of logo/actions widths */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-links { justify-self: center; }
.nav-right { justify-self: end; }

/* ============ logo band: full-bleed to the card edge ============ */
.marquee { margin-inline: calc(var(--pad) * -1); }

/* buttons: color shift only — no lift, no scale */
.btn:hover { transform: none; }
.btn:active { transform: none; }

/* stack card body copy: stretched to land on exactly three lines */
.stack-body > p { max-width: 46ch; }

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(19, 19, 20, 0.22);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.25s, color 0.25s;
}
.theme-toggle:hover { border-color: rgba(19, 19, 20, 0.55); }
.theme-toggle .i { width: 17px; height: 17px; display: block; }
.theme-toggle .tt-sun { display: none; }
[data-theme="dark"] .theme-toggle { border-color: rgba(236, 236, 240, 0.25); }
[data-theme="dark"] .theme-toggle:hover { border-color: rgba(236, 236, 240, 0.6); }
[data-theme="dark"] .theme-toggle .tt-sun { display: block; }
[data-theme="dark"] .theme-toggle .tt-moon { display: none; }

/* ============ DARK MODE — tokens ============ */
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #08080a;
  --frame: #141416;
  --ink: #ececf0;
  --muted: #a3a3ac;
  --faint: #6f6f78;
  --red: #f04a47;
  --line: rgba(236, 236, 240, 0.10);
}

/* ============ DARK MODE — chrome overrides ============ */
[data-theme="dark"] .frame { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
[data-theme="dark"] .btn--dark { background: var(--paper); color: #131314; }
[data-theme="dark"] .btn--dark:hover { background: #ffffff; }
[data-theme="dark"] .btn--ghost { border-color: rgba(236, 236, 240, 0.25); }
[data-theme="dark"] .btn--ghost:hover { border-color: rgba(236, 236, 240, 0.6); }
[data-theme="dark"] .marquee-group img { filter: brightness(0) invert(1); }
[data-theme="dark"] .menu-overlay { background: rgba(10, 10, 12, 0.92); }
[data-theme="dark"] .rail-btn { box-shadow: inset 0 0 0 1px rgba(236, 236, 240, 0.18); }
[data-theme="dark"] .hero-media { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }

/* ============ DARK MODE — light-photo cards keep ink text ============ */
[data-theme="dark"] .case-card--ink { color: #131314; }
[data-theme="dark"] .recog-year { color: #ff5a50; }

/* ============ DARK MODE — surface cards in one dark tonality ============ */
/* cream #efe6d6→#26221b · blue #d4dfee→#1d222b · rose #f0d9d4→#2a211f · sage #dde9c5→#22261c · white→#1c1c1f */
[data-theme="dark"] .stack-card--cream { background: #26221b; }
[data-theme="dark"] .stack-card--blue { background: #1d222b; }
[data-theme="dark"] .stack-card--rose { background: #2a211f; }
[data-theme="dark"] .stack-card--cream .stack-num { color: #4a4232; }
[data-theme="dark"] .stack-card--blue .stack-num { color: #39434f; }
[data-theme="dark"] .stack-card--rose .stack-num { color: #4d3b37; }
[data-theme="dark"] .stack-body > p { color: rgba(236, 236, 240, 0.65); }
[data-theme="dark"] .stack-tags { color: rgba(236, 236, 240, 0.45); border-top-color: rgba(236, 236, 240, 0.12); }

[data-theme="dark"] .ts-card { background: #1c1c1f; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35); }
/* pastel quote cards + avatars — class-based (inline styles removed; GSAP rewrites style attr) */
.tqc-blue { background: #d4dfee; } .tqc-cream { background: #efe6d6; }
.tqc-rose { background: #f0d9d4; } .tqc-sage { background: #dde9c5; }
.ava-sand { background: #e0d2b9; } .ava-steel { background: #bccde4; } .ava-moss { background: #cfe0b5; }
.ava-clay { background: #d9c8c2; } .ava-grey { background: #e3e3e8; } .ava-tan { background: #e3c3ba; } .ava-ice { background: #d4dfee; }
[data-theme="dark"] .tqc-blue { background: #1d222b; }
[data-theme="dark"] .tqc-cream { background: #26221b; }
[data-theme="dark"] .tqc-rose { background: #2a211f; }
[data-theme="dark"] .tqc-sage { background: #22261c; }
[data-theme="dark"] .ava-sand { background: #3a3222; }
[data-theme="dark"] .ava-steel { background: #2a3442; }
[data-theme="dark"] .ava-moss { background: #2e3624; }
[data-theme="dark"] .ava-clay { background: #3a2f2c; }
[data-theme="dark"] .ava-grey { background: #2c2c31; }
[data-theme="dark"] .ava-tan { background: #3d2e28; }
[data-theme="dark"] .ava-ice { background: #2a3442; }

[data-theme="dark"] .cta { background: #22261c; }
[data-theme="dark"] .cta-label { color: rgba(236, 236, 240, 0.6); }
[data-theme="dark"] .cta-meta { color: rgba(236, 236, 240, 0.62); }
[data-theme="dark"] .cta-plane { background: rgba(236, 236, 240, 0.1); }

/* booking shell matches Cal.com dark embed background */
[data-theme="dark"] .book-shell { background: #101010; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4); }

/* ============ v16 — contact mail form in CTA ============ */
.mail-form { flex: 1 1 100%; display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.5rem; }
.mail-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.mail-in {
  flex: 1 1 240px;
  width: 100%;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease;
}
.mail-in::placeholder { color: rgba(19, 19, 20, 0.42); }
.mail-in:focus { border-color: rgba(19, 19, 20, 0.55); }
.mail-in.error { border-color: var(--red); }
.mail-ta { resize: vertical; min-height: 110px; }
.mail-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; min-height: 44px; }
.mail-form .btn { border: 0; cursor: pointer; }
.mail-form .btn:disabled { opacity: 0.6; cursor: default; }
.mail-note { font-size: 0.9rem; font-weight: 600; color: rgba(19, 19, 20, 0.62); }
.mail-note.err { color: var(--red); }
.mail-form.is-sent .mail-row,
.mail-form.is-sent .mail-ta,
.mail-form.is-sent .mail-foot .btn { display: none; }

[data-theme="dark"] .mail-in { background: #101010; color: var(--ink); }
[data-theme="dark"] .mail-in::placeholder { color: rgba(236, 236, 240, 0.4); }
[data-theme="dark"] .mail-in:focus { border-color: rgba(236, 236, 240, 0.5); }
[data-theme="dark"] .mail-note { color: rgba(236, 236, 240, 0.62); }
[data-theme="dark"] .mail-note.err { color: var(--red); }

/* ============ v17 — scope (what we do) ============ */
.scope { padding: clamp(4rem, 9vh, 7rem) 0 clamp(3rem, 7vh, 5rem); }
.scope .sec-eyebrow {
  display: block;
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--faint);
}
.scope-state {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.9vw, 4.8rem);
  line-height: 1.13;
  letter-spacing: -0.03em;
  max-width: 28ch;
}
.scope-state .sw { display: inline-block; }
.scope-state .k { color: var(--red); }
.scope-state .punch-hl { padding: 0.02em 0.18em; }
.scope-venn { position: relative; margin-top: clamp(3rem, 8vh, 5.5rem); }
.venn-row { display: flex; justify-content: center; align-items: center; }
.venn-c {
  --d: clamp(300px, 30vw, 430px);
  position: relative;
  flex: 0 0 auto;
  width: var(--d);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.venn-c + .venn-c { margin-left: calc(clamp(300px, 30vw, 430px) * -0.16); }
.venn-label {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.venn-bridge {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.venn-bridge--1 { left: calc(50% - clamp(300px, 30vw, 430px) * 0.42); top: 31%; }
.venn-bridge--2 { left: calc(50% + clamp(300px, 30vw, 430px) * 0.42); top: 69%; }
.venn-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: clamp(1.8rem, 4.5vh, 2.8rem);
}
.pill--strategy { border-color: var(--red); color: var(--red); background: transparent; }
.scope-note { font-size: 0.9rem; font-weight: 600; color: var(--muted); }

[data-theme="dark"] .pill { background: #1c1c1f; }
[data-theme="dark"] .pill--strategy { background: transparent; border-color: var(--red); color: var(--red); }
[data-theme="dark"] .venn-bridge { background: var(--ink); border-color: var(--ink); color: #131314; }

@media (max-width: 900px) {
  .venn-row { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .venn-c {
    width: 100%;
    aspect-ratio: auto;
    border-radius: 22px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 3.4rem 1.1rem 1.5rem;
  }
  .venn-c + .venn-c { margin-left: 0; }
  .venn-label { top: 1.35rem; }
  .venn-bridge { position: static; transform: none; align-self: center; }
  .scope-state { font-size: clamp(2rem, 7.6vw, 2.9rem); }
}

/* ============ v18 — mail form opens on action ============ */
.mail-open { margin-left: auto; }
.mail-open.gone { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mail-wrap {
  flex: 1 1 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.mail-inner { overflow: hidden; min-height: 0; }
.mail-wrap.open { grid-template-rows: 1fr; }
.mail-wrap .mail-row,
.mail-wrap .mail-ta,
.mail-wrap .mail-foot {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mail-wrap.open .mail-row { transition-delay: 0.12s; }
.mail-wrap.open .mail-ta { transition-delay: 0.2s; }
.mail-wrap.open .mail-foot { transition-delay: 0.28s; }
.mail-wrap.open .mail-row,
.mail-wrap.open .mail-ta,
.mail-wrap.open .mail-foot { opacity: 1; transform: none; }
@media (max-width: 620px) {
  .mail-open { margin-left: 0; }
}

/* ============ v20 — scope services list (matches plat4m.com) ============ */
.scope-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: clamp(2.4rem, 6vw, 5.5rem);
  margin-top: clamp(2.6rem, 7vh, 4.5rem);
}
.svc {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2vw, 1.7rem);
  padding: clamp(1.5rem, 4vh, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.svc:nth-child(4), .svc:nth-child(8) { border-bottom: 0; }
.svc-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--faint);
}
.svc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.85vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
@media (max-width: 760px) {
  .scope-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .svc { padding: 1.15rem 0; }
  .svc:nth-child(4) { border-bottom: 1px solid var(--line); }
}

/* ============ v21 — scope list scroll choreography ============ */
.svc { position: relative; border-bottom: 0; }
.svc-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.svc:nth-child(4) .svc-line, .svc:nth-child(8) .svc-line { display: none; }
@media (max-width: 760px) {
  .svc:nth-child(4) .svc-line { display: block; }
}

/* ============ v22 — v2 dot wave canvas (isolated from main.js .punch-canvas) ============ */
.punch-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

/* ============ v24 — form close + success bento card ============ */
.mail-close {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(19, 19, 20, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.4rem 0.2rem;
}
.mail-close:hover { color: var(--ink); }
.mail-done {
  flex: 1 1 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  background: #fff;
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  margin-top: 0.4rem;
  box-shadow: 0 14px 36px rgba(15, 12, 8, 0.1);
}
.mail-done[hidden] { display: none; }
.mail-done-ic {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
}
.mail-done-ic .i { width: 18px; height: 18px; }
.mail-done-t { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.mail-done-s { font-size: 0.92rem; font-weight: 600; color: rgba(19, 19, 20, 0.6); margin-top: 0.2rem; }
[data-theme="dark"] .mail-close { color: rgba(236, 236, 240, 0.55); }
[data-theme="dark"] .mail-close:hover { color: var(--ink); }
[data-theme="dark"] .mail-done { background: #101010; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4); }
[data-theme="dark"] .mail-done-s { color: rgba(236, 236, 240, 0.6); }

/* ============ v26 — services as huge flowing lines (scope) ============ */
.scope-lines {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: clamp(2rem, 5.5vh, 3.4rem);
}
.scope-lines .sl { display: inline; }
.scope-lines .sl i { font-style: normal; color: var(--red); }
@media (max-width: 900px) {
  .scope-lines { font-size: clamp(1.6rem, 6.6vw, 2.4rem); }
}

/* ============ v27 — services one per line, masked rise ============ */
.scope-lines {
  font-size: clamp(2.2rem, 4.9vw, 4.8rem);
  line-height: 1.13;
  margin-top: clamp(2.4rem, 6vh, 4rem);
}
.sl-row { overflow: hidden; padding-bottom: 0.08em; }
.scope-lines .sl { display: block; will-change: transform; }
@media (max-width: 900px) {
  .scope-lines { font-size: clamp(2rem, 7.6vw, 2.9rem); }
}

/* ============ v28 — service lines hover marker (fan effect) ============ */
.scope-lines .sl {
  display: inline-block;
  padding: 0.02em 0.14em;
  margin-left: -0.14em;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.scope-lines .sl i { transition: color 0.5s ease; }
.scope-lines .sl:hover {
  background: var(--red);
  color: var(--paper);
  transition-duration: 0.12s;
}
.scope-lines .sl:hover i { color: var(--paper); transition-duration: 0.12s; }

/* ============ v29 — more breathing room around service lines ============ */
.scope-lines {
  margin-top: clamp(3.6rem, 9vh, 6.2rem);
  margin-bottom: clamp(2.6rem, 7vh, 5rem);
}

/* ============ v30 — services equidistant from statement and The work speaks ============ */
.scope { padding-bottom: 0; }
.scope-lines { margin-bottom: 0; }
.work { padding-top: clamp(3.6rem, 9vh, 6.2rem); }

/* ============ v31 — close control sits in the trigger's slot ============ */
.mail-close { margin-left: auto; align-self: center; }
@media (max-width: 620px) {
  .mail-close { margin-left: 0; }
}


/* ============ v34 — stack cards on white ============ */
.stack-card--cream, .stack-card--blue, .stack-card--rose { background: #fff; }
[data-theme="dark"] .stack-card--cream,
[data-theme="dark"] .stack-card--blue,
[data-theme="dark"] .stack-card--rose { background: #1c1c1f; }

/* ============ v35 — neutral grey card numbers ============ */
.stack-card--cream .stack-num,
.stack-card--blue .stack-num,
.stack-card--rose .stack-num { color: #c9c9ce; }
[data-theme="dark"] .stack-card--cream .stack-num,
[data-theme="dark"] .stack-card--blue .stack-num,
[data-theme="dark"] .stack-card--rose .stack-num { color: #45454c; }

/* ============ v36 — stack tags aligned to card body column ============ */
@media (min-width: 981px) {
  .stack-tags { grid-column: 2; }
}

/* ============ v37 — service lines moved into the dark manifesto ============ */
.darkzone .scope-lines {
  color: var(--paper);
  margin-top: clamp(2.6rem, 7vh, 4.5rem);
  margin-bottom: 0;
}
.darkzone .scope-lines .sl i { color: var(--red-hi); }
.scope { padding-bottom: clamp(2.6rem, 6vh, 4.4rem); }

/* ============ v39 — /v3 preview: receipts block in the dark zone ============ */
.receipts-line {
  margin-top: clamp(3rem, 8vh, 5rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  letter-spacing: -0.015em;
  color: var(--red-hi);
}
.darkzone .num-row {
  margin-top: clamp(1.8rem, 5vh, 3rem);
  border-color: rgba(236, 236, 240, 0.14);
}
.darkzone .num { border-color: rgba(236, 236, 240, 0.14); }
.darkzone .num strong { color: var(--paper); }
.darkzone .num > span { color: rgba(236, 236, 240, 0.55); }
.stack-body .stack-proof { margin-top: 0.9rem; margin-bottom: 0.2rem; }

/* ============ v40 — ROSSO skin (v3 preview only, html[data-skin="rosso"]) ============ */
html[data-skin="rosso"] {
  --page: #cdc8be;
  --frame: #faf9f6;
  --dark: #0a0a0a;
  --card-dark: #141414;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #56544e;
  --faint: #97938a;
  --red: #f01e28;
  --red-hi: #ff3b44;
  --line: rgba(10, 10, 10, 0.12);
}

/* cards: Sabbia -> Nero -> Rosso */
html[data-skin="rosso"] .stack-card--cream { background: #cdc8be; }
html[data-skin="rosso"] .stack-card--cream .stack-num { color: #a49f93; }

html[data-skin="rosso"] .stack-card--blue { background: #282828; color: #fff; }
html[data-skin="rosso"] .stack-card--blue h3 { color: #fff; }
html[data-skin="rosso"] .stack-card--blue .h3-dim { color: rgba(255, 255, 255, 0.45); }
html[data-skin="rosso"] .stack-card--blue .stack-body p { color: rgba(255, 255, 255, 0.78); }
html[data-skin="rosso"] .stack-card--blue .stack-proof { color: var(--red-hi) !important; }
html[data-skin="rosso"] .stack-card--blue .stack-num { color: #4d4d4d; }
html[data-skin="rosso"] .stack-card--blue .stack-tags { color: rgba(255, 255, 255, 0.55); border-top-color: rgba(255, 255, 255, 0.16); }

html[data-skin="rosso"] .stack-card--rose { background: #f01e28; color: #fff; }
html[data-skin="rosso"] .stack-card--rose h3 { color: #fff; }
html[data-skin="rosso"] .stack-card--rose .h3-dim { color: rgba(255, 255, 255, 0.55); }
html[data-skin="rosso"] .stack-card--rose .stack-body p { color: rgba(255, 255, 255, 0.88); }
html[data-skin="rosso"] .stack-card--rose .stack-proof { color: #ffffff !important; }
html[data-skin="rosso"] .stack-card--rose .stack-num { color: rgba(255, 255, 255, 0.42); }
html[data-skin="rosso"] .stack-card--rose .stack-tags { color: rgba(255, 255, 255, 0.72); border-top-color: rgba(255, 255, 255, 0.28); }

/* CTA: lime -> rosso */
html[data-skin="rosso"] .cta { background: var(--red); }
html[data-skin="rosso"] .cta-title { color: #fff; }
html[data-skin="rosso"] .cta-label { color: rgba(255, 255, 255, 0.75); }
html[data-skin="rosso"] .cta-plane { background: rgba(255, 255, 255, 0.16); color: #fff; }
html[data-skin="rosso"] .cta-meta { color: rgba(255, 255, 255, 0.85); }
html[data-skin="rosso"] .mail-close { color: rgba(255, 255, 255, 0.8); }
html[data-skin="rosso"] .mail-close:hover { color: #fff; }
html[data-skin="rosso"] .mail-note { color: rgba(255, 255, 255, 0.85); }

/* dark theme keeps the triad, tonally deepened */
html[data-skin="rosso"][data-theme="dark"] .stack-card--cream { background: #262420; }
html[data-skin="rosso"][data-theme="dark"] .stack-card--cream .stack-num { color: #55524a; }
html[data-skin="rosso"][data-theme="dark"] .stack-card--blue { background: #232323; }
html[data-skin="rosso"][data-theme="dark"] .stack-card--rose { background: #8f1319; }

/* ============ v42 — proof statements live in the bottom card row ============ */
.stack-tags--proof { color: var(--red); }
html[data-skin="rosso"] .stack-card--blue .stack-tags--proof { color: var(--red-hi); }
html[data-skin="rosso"] .stack-card--rose .stack-tags--proof { color: #fff; }

/* ============ v43 — punch marker draws itself (v3) ============ */
.punch-hl--draw {
  background: linear-gradient(var(--red), var(--red)) no-repeat left top;
  background-size: var(--mk, 100%) 100%;
}
html[data-skin="rosso"] .punch-line { font-size: clamp(1.7rem, 3.6vw, 3.4rem); }

/* ============ v44 — rosso skin dark mode (nero-based) ============ */
html[data-skin="rosso"][data-theme="dark"] {
  --page: #000000;
  --frame: #161616;
  --dark: #000000;
  --card-dark: #1a1a1a;
  --ink: #f2f1ed;
  --paper: #ffffff;
  --muted: #a8a49c;
  --faint: #6e6b64;
  --red: #f01e28;
  --red-hi: #ff3b44;
  --line: rgba(242, 241, 237, 0.12);
}
html[data-skin="rosso"][data-theme="dark"] .stack-card--blue { background: #232323; }
html[data-skin="rosso"][data-theme="dark"] .case-card--ink { color: #131314; }

/* ============ v45 — corwin logo size, proof rows force-red, static punch text ============ */
.logos img[src*="corwin"], .marquee img[src*="corwin"] {
  transform: scale(0.72);
  transform-origin: center;
}
.stack-tags--proof { color: var(--red) !important; }
html[data-skin="rosso"] .stack-card--blue .stack-tags--proof { color: var(--red-hi) !important; }
html[data-skin="rosso"] .stack-card--rose .stack-tags--proof { color: #fff !important; }

/* ============ v46 — samsung logo size ============ */
.logos img[src*="samsung"], .marquee img[src*="samsung"] {
  transform: scale(0.8);
  transform-origin: center;
}

/* ============ v47 — corwin logo in case card ============ */
.case-logo[src*="corwin"] {
  transform: scale(0.72);
  transform-origin: left center;
}

/* ============ v48 — service line hover reacts across the whole row ============ */
.scope-lines .sl-row { cursor: default; }
.scope-lines .sl-row:hover .sl {
  background-color: var(--red);
  color: var(--paper);
  transition-duration: 0.12s;
}
.scope-lines .sl-row:hover .sl i {
  color: var(--paper);
  transition-duration: 0.12s;
}

/* ============ v49 — case logos matched to spotify scale ============ */
.case-logo[src*="quan"] {
  transform: scale(0.78);
  transform-origin: left center;
}
.case-logo[src*="careem"] {
  transform: scale(0.8);
  transform-origin: left center;
}

/* ============ v50 — caribu by mattel lockup ============ */
.case-lockup { display: flex; align-items: center; gap: 0.55rem; flex: 0 0 auto; }
.case-lockup .case-logo { margin-top: 0; }
.case-by {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  margin: 0 0.05rem;
}
.case-logo--by { height: clamp(20px, 2vw, 28px); }

/* ============ v51 — evolvium lockup ============ */
.case-logo--mark { height: clamp(26px, 2.6vw, 36px); }
.case-word {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* ============ v52 — AI assistant bento (light + dark) ============ */
.asst { position: fixed; right: 24px; bottom: 24px; z-index: 90; font-family: var(--font); }
.asst-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: 0 0 auto; animation: asstpulse 2.4s ease-in-out infinite; }
@keyframes asstpulse { 0%,100%{ box-shadow:0 0 0 0 rgba(240,30,40,0.5);} 50%{ box-shadow:0 0 0 7px rgba(240,30,40,0);} }

/* v53 — face launcher: eyes follow the cursor, blink, glance around */
.asst-dock { display: flex; align-items: center; justify-content: flex-end; }
.asst-hint {
  position: relative; z-index: 0;
  font-family: var(--font-tech); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(19,19,20,0.68);
  background: rgba(250,249,246,0.74);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(10,10,10,0.08); border-radius: 999px;
  padding: 0.62rem 3rem 0.62rem 1.15rem; margin-right: -2.4rem;
  box-shadow: 0 10px 30px rgba(10,10,10,0.1);
  opacity: 0; transform: translateX(34px); pointer-events: none;
  transition: opacity 0.45s 0.45s, transform 0.6s 0.45s cubic-bezier(0.22,1,0.36,1);
}
.asst.show .asst-hint { opacity: 1; transform: none; }
.asst.open .asst-hint { opacity: 0; transform: translateX(34px); transition-delay: 0s; }
html[data-theme="dark"] .asst-hint { color: rgba(242,241,237,0.72); background: rgba(28,28,28,0.72); border-color: rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.asst-launch {
  position: relative; z-index: 1; width: 64px; height: 64px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #0f0f0f; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 16px 40px rgba(10,10,10,0.32);
  opacity: 0; transform: translateY(26px) scale(0.4); pointer-events: none;
  transition: opacity 0.5s, transform 0.55s cubic-bezier(0.34,1.45,0.5,1), box-shadow 0.3s;
}
.asst.show .asst-launch { opacity: 1; transform: none; pointer-events: auto; }
.asst.show .asst-launch:hover { transform: scale(1.07); box-shadow: 0 22px 56px rgba(10,10,10,0.45); }
.asst.open .asst-launch { opacity: 0; transform: scale(0.4); pointer-events: none; }
.asst-launch::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0; transform: scale(0.82);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34,1.4,0.5,1);
}
.asst-launch:hover::after { opacity: 1; transform: none; }
.asst-launch .asst-dot { position: absolute; top: 3px; right: 5px; }
.asst-eyes { display: flex; gap: 6px; will-change: transform; }
.asst-eye {
  width: 8px; height: 10px; border-radius: 50%; background: #faf9f6;
  transition: transform 0.09s ease, height 0.25s cubic-bezier(0.34,1.4,0.5,1), width 0.25s cubic-bezier(0.34,1.4,0.5,1);
}
.asst-eyes.blink .asst-eye { transform: scaleY(0.08); }
.asst-launch:hover .asst-eye { width: 9px; height: 11px; }
html[data-theme="dark"] .asst-launch { background: #1c1c1c; border: 1px solid rgba(255,255,255,0.12); }
html[data-theme="dark"] .asst-eye { background: #f2f1ed; }

.asst-card {
  position: absolute; right: 0; bottom: 0;
  width: min(400px, calc(100vw - 32px));
  height: min(582px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: #fff; color: #0a0a0a;
  border: 1px solid rgba(10,10,10,0.08); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(10,10,10,0.28);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.16) translateY(26px); opacity: 0; pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.34,1.42,0.5,1), opacity 0.26s ease;
}
.asst.open .asst-card { transform: none; opacity: 1; pointer-events: auto; }
html[data-theme="dark"] .asst-card { background: #0f0f0f; color: #f2f1ed; border-color: rgba(255,255,255,0.09); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }

.asst-head { display:flex; align-items:center; justify-content:space-between; padding: 1.05rem 1.2rem; border-bottom: 1px solid rgba(10,10,10,0.07); }
html[data-theme="dark"] .asst-head { border-color: rgba(255,255,255,0.08); }
.asst-brand { display:flex; align-items:center; gap:0.5rem; font-family: var(--font-tech); font-size:0.74rem; letter-spacing:0.2em; text-transform:uppercase; }
.asst-brand i { color: var(--red); font-style: normal; }
.asst-close {
  width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.06); color: inherit; cursor: pointer;
  font-size: 0.8rem; line-height: 1; padding: 0;
  transition: background 0.18s, transform 0.18s;
}
.asst-close:hover { background: rgba(10,10,10,0.13); transform: scale(1.07); }
html[data-theme="dark"] .asst-close { background: rgba(255,255,255,0.09); }
html[data-theme="dark"] .asst-close:hover { background: rgba(255,255,255,0.17); }

.asst-body { flex:1; overflow-y:auto; overscroll-behavior: contain; padding: 1.2rem; display:flex; flex-direction:column; gap: 1rem; }
.asst-msg { font-size: 0.98rem; line-height: 1.55; }
.asst-msg--u { align-self: flex-end; max-width: 82%; background: rgba(10,10,10,0.05); padding: 0.6rem 0.9rem; border-radius: 14px 14px 4px 14px; font-weight: 600; }
html[data-theme="dark"] .asst-msg--u { background: rgba(255,255,255,0.08); }
.asst-mk { background: var(--red); color: #fff; font-size: 0.94em; padding: 0.06em 0.26em 0.09em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.asst-think { display:flex; gap:0.35rem; align-items:center; }
.asst-think i { width:7px; height:7px; border-radius:50%; background: var(--red); opacity:0.4; animation: asstbounce 1.1s ease-in-out infinite; }
.asst-think i:nth-child(2){ animation-delay:0.15s;} .asst-think i:nth-child(3){ animation-delay:0.3s;}
@keyframes asstbounce { 0%,100%{ transform: translateY(0); opacity:0.35;} 50%{ transform: translateY(-5px); opacity:1;} }

.asst-chips { display:flex; flex-wrap:wrap; gap:0.5rem; max-height:0; overflow:hidden; opacity:0; transition: max-height 0.4s, opacity 0.4s, padding 0.4s; }
.asst-chips.show { max-height: 220px; opacity:1; padding: 0 1.2rem 0.4rem; }
.asst-chip { background:none; border:1px solid rgba(10,10,10,0.16); color: inherit; border-radius:999px; padding:0.45rem 0.85rem; font-size:0.76rem; cursor:pointer; transition: all 0.18s; }
.asst-chip:hover { border-color: var(--red); color: var(--red); }
html[data-theme="dark"] .asst-chip { border-color: rgba(255,255,255,0.18); }

.asst-form { display:flex; align-items:center; gap:0.6rem; padding: 0.9rem 1.2rem 0.5rem; }
.asst-input { flex:1; background: #f4f2ee; border: 1px solid transparent; border-radius: 14px; padding: 0.85rem 1rem; font: inherit; font-size:0.98rem; color: inherit; outline:none; transition: border-color 0.18s; }
.asst-input:focus { border-color: var(--red); }
html[data-theme="dark"] .asst-input { background: #1a1a1a; }
.asst-form.bad .asst-input { border-color: var(--red); animation: asstshake 0.3s; }
@keyframes asstshake { 25%{ transform: translateX(-5px);} 75%{ transform: translateX(5px);} }
.asst-send { flex:0 0 auto; width:46px; height:46px; border:0; border-radius:50%; background: var(--red); color:#fff; font-size:1.15rem; cursor:pointer; }
.asst-send:hover { background: var(--red-hi); }
.asst-foot { padding: 0 1.2rem 1rem; font-family: var(--font-tech); font-size:0.62rem; letter-spacing:0.1em; text-transform:uppercase; opacity:0.5; }

@media (max-width: 520px) {
  .asst { right: 10px; bottom: 10px; left: 10px; }
  .asst-card { width: auto; left: 0; right: 0; height: min(78vh, calc(100vh - 90px)); }
}
