/* Heritage Media Labs — "Maison" layer (v2).
   Loaded after premium.css; remove its <link> in base.html.twig to roll back to v1. */

:root {
  --ivory: #f4efe6;
  --ivory-deep: #ebe3d4;
  --ivory-card: #faf7f1;
  --ink: #16130f;
  --ink-soft: #3b342b;
  --ink-muted: #5b5246;
  --gold-ink: #7a5c24;
  --header-height: 88px;
  --frame-gold: rgba(214, 184, 120, 0.34);
}

/* Light editorial scope: sections rendered on ivory paper. */
.features,
.news-teaser,
.about-page .page-body,
.vision-page .page-body,
.cp-main,
.hml-preview-dialog {
  --color-text: var(--ink);
  --color-text-secondary: var(--ink-soft);
  --color-muted: var(--ink-muted);
  --color-border: rgba(22, 19, 15, 0.12);
  --color-border-hover: rgba(22, 19, 15, 0.22);
  --color-gold: var(--gold-ink);
  --color-gold-bright: #5c4419;
  --color-gold-muted: rgba(122, 92, 36, 0.38);
  --color-gold-soft: rgba(122, 92, 36, 0.07);
  --color-accent: var(--gold-ink);
  --color-accent-soft: rgba(122, 92, 36, 0.08);
  --color-bg-elevated: var(--ivory);
  --cp-line: rgba(122, 92, 36, 0.3);
  --cp-line-soft: rgba(22, 19, 15, 0.1);
  --cp-surface-soft: rgba(22, 19, 15, 0.03);
  color: var(--ink);
  background: var(--ivory);
}
.features :is(h2, h3),
.news-teaser :is(h2, h3),
.about-page .page-body :is(h2, h3),
.vision-page .page-body :is(h2, h3),
.cp-main :is(h2, h3, legend),
.hml-preview-dialog h2 { color: var(--ink); }
.features ::selection, .news-teaser ::selection, .about-page .page-body ::selection,
.vision-page .page-body ::selection, .cp-main ::selection, .hml-preview-dialog ::selection { background: rgba(122, 92, 36, 0.22); color: var(--ink); }
:is(.features, .news-teaser, .about-page .page-body, .vision-page .page-body, .cp-main, .hml-preview-dialog) :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: var(--gold-ink);
}

/* ── Typography ─────────────────────────────────────────── */
body { font-size: 1.0625rem; }
.section h2, .section-header h2 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.005em; }
.section-kicker, .page-header .page-kicker, .cp-kicker, .founders-mark, .about-services-mark, .footer-heading, .founder-role {
  letter-spacing: 0.34em;
  font-size: 0.68rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn { border-radius: 0; }
.btn-gold, .btn-primary { background: linear-gradient(180deg, #ecd8a8 0%, #d2b170 52%, #b28d50 100%); border-color: rgba(236, 215, 166, 0.7); }
.btn-gold:hover, .btn-primary:hover { background: linear-gradient(180deg, #f2e2bb 0%, #dbbd80 52%, #bd9858 100%); }
.btn-outline, .hero-cta-secondary { background: transparent; border-color: rgba(214, 184, 120, 0.55); }
:is(.features, .news-teaser, .about-page .page-body, .vision-page .page-body, .cp-main, .hml-preview-dialog) .btn-outline {
  color: var(--ink);
  border-color: rgba(122, 92, 36, 0.55);
  background: transparent;
}
:is(.features, .news-teaser, .about-page .page-body, .vision-page .page-body, .cp-main, .hml-preview-dialog) .btn-outline:hover {
  color: var(--ink);
  border-color: var(--gold-ink);
  background: rgba(122, 92, 36, 0.08);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.94), rgba(8, 7, 6, 0.82));
  border-bottom: 1px solid rgba(214, 184, 120, 0.14);
}
.site-header::after { opacity: 0.9; }
.site-header > .container { width: min(1560px, 94vw); }
.site-header .header-inner { min-height: var(--header-height); }
.site-header .brand .site-logo-wordmark { height: 50px; }
.site-header .brand-text { font-size: 1.2rem; letter-spacing: 0.22em; text-transform: uppercase; }
.nav-main a { font-size: 0.7rem; letter-spacing: 0.2em; }
.site-header .header-cta {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(214, 184, 120, 0.6);
  box-shadow: none;
}
.site-header .header-cta::before { display: none; }
.site-header .header-cta:hover {
  background: linear-gradient(180deg, #ecd8a8 0%, #d2b170 52%, #b28d50 100%);
  color: #16110a;
  border-color: rgba(236, 215, 166, 0.8);
  box-shadow: none;
  transform: none;
}
@media (min-width: 1081px) {
  .site-header .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(1rem, 2vw, 2.25rem);
    flex-wrap: nowrap;
  }
  .nav-main { margin: 0; min-width: 0; }
  .nav-main ul { justify-content: center; }
  .site-header .header-meta { margin: 0; }
}
@media (min-width: 1081px) and (max-width: 1439px) {
  .site-header .brand-text { display: none; }
}
@media (max-width: 1080px) {
  .site-header .nav-mobile-cta .header-cta { width: 100%; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { min-height: max(680px, calc(100svh - var(--header-height))); }
.hero::before,
[dir="rtl"] .hero::before {
  background:
    radial-gradient(ellipse 62% 70% at 50% 52%, rgba(10, 9, 8, 0.78) 0%, rgba(10, 9, 8, 0.52) 58%, rgba(10, 9, 8, 0.9) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.5) 0%, transparent 35%, rgba(10, 9, 8, 0.75) 100%);
}
.hero-vignette {
  inset: clamp(14px, 2.2vw, 32px);
  z-index: 3;
  background: none;
  border: 1px solid var(--frame-gold);
}
.hero-vignette::before,
.hero-vignette::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(214, 184, 120, 0.75);
}
.hero-vignette::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-vignette::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-inner { text-align: center; padding-block: clamp(5.5rem, 12vw, 9rem) clamp(7rem, 14vw, 10.5rem); }
.hero-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(4.25rem, 8vw, 6rem);
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--color-gold), transparent);
}
.hero-content { max-width: 64rem; margin-inline: auto; text-align: center; }
.hero-brand {
  min-height: 0;
  margin-inline: auto;
  font-size: clamp(2.5rem, 6.4vw, 6.4rem);
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f5f0e6;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 50px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}
.hero-rule,
[dir="rtl"] .hero-rule {
  position: relative;
  width: 10rem;
  margin: 2.1rem auto 1.9rem;
  background: linear-gradient(90deg, transparent, var(--color-gold) 50%, transparent);
  opacity: 1;
}
.hero-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-gold);
  background: #0a0908;
  transform: translate(-50%, -50%) rotate(45deg);
}
.hero h1 {
  margin-inline: auto;
  max-width: 42rem;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  color: var(--color-gold-bright);
}
.hero-lead { margin-inline: auto; max-width: 38rem; text-align: center; }
.hero-actions { justify-content: center; }

/* ── Stats panel overlapping the hero ───────────────────── */
.stats-bar { margin-top: calc(-1 * clamp(3.25rem, 6vw, 4.75rem)); padding: 0 0 clamp(4.5rem, 9vw, 7rem); }
.stats-bar::before, .stats-bar::after { display: none; }
.stats-inner {
  position: relative;
  background: linear-gradient(180deg, #15120e 0%, #0d0b09 100%);
  border: 1px solid rgba(214, 184, 120, 0.3);
  outline: 1px solid rgba(214, 184, 120, 0.1);
  outline-offset: 6px;
  padding: clamp(2rem, 4vw, 3.1rem) clamp(1rem, 3vw, 2.5rem);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95);
}
.stat-number { font-size: clamp(2.6rem, 4.6vw, 3.9rem); color: #f5f0e6; }

/* ── Section headers: editorial split ───────────────────── */
.section-header {
  text-align: start;
  max-width: none;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--color-border);
}
.section-header .section-kicker { justify-content: flex-start; }
.section-header .section-kicker::after { display: none; }
.section-header h2 { margin: 0; }
.section-header :is(h2, .section-subtitle) { text-align: start; margin-inline: 0; }
.section-header .section-subtitle { margin: 1.25rem 0 0; max-width: 36rem; }
@media (min-width: 961px) {
  .section-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
  }
  .section-header .section-kicker { grid-column: 1; }
  .section-header h2 { grid-column: 1; }
  .section-header .section-subtitle { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
}

/* ── Features on ivory ──────────────────────────────────── */
.features { padding-block: clamp(5.5rem, 11vw, 9rem); }
.features-grid {
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
:is(html) .features-grid > .feature-card:nth-child(n) {
  border: 0;
  background: var(--ivory-card);
  padding: clamp(2.25rem, 3.4vw, 3.25rem) clamp(1.75rem, 2.6vw, 2.5rem) clamp(2.5rem, 3.6vw, 3.5rem);
}
.features-grid > .feature-card:hover { background: #fff; }
.feature-card::before { height: 2px; background: linear-gradient(90deg, var(--gold-ink), #c9a865); }
[dir="rtl"] .feature-card::before { background: linear-gradient(270deg, var(--gold-ink), #c9a865); }
.feature-index {
  position: absolute;
  top: clamp(1.5rem, 2.4vw, 2.1rem);
  inset-inline-end: clamp(1.5rem, 2.4vw, 2.1rem);
  margin: 0;
  font-size: clamp(2.4rem, 3.4vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1;
  color: rgba(122, 92, 36, 0.32);
  opacity: 1;
}
.feature-icon { color: var(--gold-ink); opacity: 1; margin-bottom: 1.6rem; }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: clamp(1.5rem, 2vw, 1.8rem); margin-bottom: 0.7rem; }
.feature-card p { color: var(--ink-muted); }

/* ── Process compare ────────────────────────────────────── */
.process-reveal { max-width: min(62rem, 100%); }
.process-reveal__frame { outline: 1px solid var(--frame-gold); outline-offset: 10px; }
.process-reveal__pane--before {
  background: transparent;
  clip-path: none;
}
.process-reveal__pane--before .process-reveal__img,
.process-reveal__pane--before::after {
  clip-path: inset(0 calc(100% - var(--compare-pos)) 0 0);
}
.process-reveal__pane--before .process-reveal__img {
  filter: none;
}
.process-reveal__pane--before::after { opacity: 0; }
.process-reveal__pane--before .process-reveal__img,
.process-reveal__pane--after .process-reveal__img {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.process-reveal__label {
  position: absolute;
  top: 0.9rem;
  bottom: auto;
  left: 0.9rem;
  z-index: 3;
  margin: 0;
  padding: 0.42rem 0.7rem 0.36rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(10, 9, 8, 0.82);
  border: 1px solid rgba(232, 213, 163, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.process-reveal__pane--before .process-reveal__label {
  opacity: clamp(0, calc((var(--compare-num, 50) - 16) * 0.12), 1);
}
.process-reveal__pane--after .process-reveal__label {
  left: auto;
  right: 0.9rem;
  margin-left: 0;
  color: var(--ivory);
  background: rgba(10, 9, 8, 0.82);
  opacity: clamp(0, calc((84 - var(--compare-num, 50)) * 0.12), 1);
}
.process-reveal__scrub {
  width: 3.25rem;
  margin-left: -1.625rem;
}
.process-reveal__scrub::before {
  width: 2px;
  background: linear-gradient(180deg, rgba(243, 230, 196, 0.15), #f3e6c4 6%, #f3e6c4 94%, rgba(243, 230, 196, 0.15));
  box-shadow: 0 0 0 1px rgba(8, 7, 6, 0.65), 0 0 18px rgba(214, 184, 120, 0.45);
}
.process-reveal__scrub-knob {
  width: 2.85rem;
  height: 2.85rem;
  border: 1.5px solid #f3e6c4;
  background:
    radial-gradient(circle at 50% 45%, rgba(243, 230, 196, 0.2), transparent 62%),
    #14110d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48), 0 0 0 5px rgba(10, 9, 8, 0.38);
}
.process-reveal__scrub-knob::before {
  left: 0.58rem;
  border-width: 0.36rem 0.44rem 0.36rem 0;
  border-color: transparent #f3e6c4 transparent transparent;
}
.process-reveal__scrub-knob::after {
  right: 0.58rem;
  border-width: 0.36rem 0 0.36rem 0.44rem;
  border-color: transparent transparent transparent #f3e6c4;
}
.process-reveal__scrub:focus-visible .process-reveal__scrub-knob {
  box-shadow: 0 0 0 2px #0a0908, 0 0 0 4px #f3e6c4, 0 10px 28px rgba(0, 0, 0, 0.48);
}
.process-reveal.is-dragging .process-reveal__scrub-knob {
  transform: scale(1.06);
  border-color: #fff6df;
}
.process-reveal:not(.is-dragging) .process-reveal__pane--before .process-reveal__img,
.process-reveal:not(.is-dragging) .process-reveal__pane--before::after,
.process-reveal:not(.is-dragging) .process-reveal__scrub,
.process-reveal:not(.is-dragging) .process-reveal__label {
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1), left 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

/* ── News on ivory ──────────────────────────────────────── */
.news-teaser { padding-block: clamp(5.5rem, 11vw, 9rem); }
.news-teaser::before, .news-teaser::after { display: none; }
.news-item {
  background: var(--ivory-card);
  border: 1px solid var(--color-border);
  padding: clamp(1rem, 1.6vw, 1.25rem);
  transition: box-shadow 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft);
}
.news-item:hover { border-color: rgba(122, 92, 36, 0.35); box-shadow: 0 30px 60px -36px rgba(22, 19, 15, 0.35); }
.news-item__media::after { border-color: rgba(22, 19, 15, 0.08); }
.news-item__body h3 a { color: var(--ink); }
.news-item__body h3 a:hover { color: var(--gold-ink); }
.news-item__link { color: var(--gold-ink); }
.news-item__link:hover { color: var(--ink); border-bottom-color: var(--gold-ink); }

/* ── CTA ────────────────────────────────────────────────── */
.cta-section { padding-block: clamp(5rem, 10vw, 8rem); }
.cta-banner {
  border: 1px solid rgba(214, 184, 120, 0.38);
  outline: 1px solid rgba(214, 184, 120, 0.14);
  outline-offset: -14px;
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.5rem, 5vw, 4rem);
}
.cta-banner::before, .cta-banner::after { display: none; }
.cta-banner h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; }

/* ── Inner page heroes ──────────────────────────────────── */
.page-hero, .page-hero--editorial { padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6.5rem); text-align: center; }
.page-header, .page-header--editorial { margin-inline: auto; max-width: 58rem; text-align: center; }
.page-header .page-kicker { justify-content: center; }
.page-header .page-kicker::after { content: ""; display: block; width: 2.25rem; height: 1px; background: var(--color-gold-muted); }
.page-header h1, .page-header--editorial h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); line-height: 1.02; }
.page-header .lead, .page-header--editorial .lead { margin-inline: auto; }
.page-header::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 2.4rem auto 0;
  border: 1px solid var(--color-gold);
  transform: rotate(45deg);
}

/* ── About on ivory ─────────────────────────────────────── */
.about-page .page-body,
.vision-page .page-body { padding-block: clamp(5rem, 10vw, 8rem); }
.about-pullquote p { color: var(--ink); }
.founder-portrait { background: var(--ivory-deep); }
.founder-portrait::after { box-shadow: inset 0 0 0 1px rgba(22, 19, 15, 0.08); background: none; }
.founder-portrait img { box-shadow: 0 40px 70px -40px rgba(22, 19, 15, 0.55); }
.founder-name { color: var(--ink); }
.founder-bio { color: var(--ink-soft); }
.about-services { border-top-color: rgba(122, 92, 36, 0.3); }
.vision-page .page-body .vision-pullquote p { color: var(--ink); }

/* ── Contact ────────────────────────────────────────────── */
.cp-hero { text-align: center; padding: clamp(5rem, 12vw, 8.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.cp-hero-inner { text-align: center; }
.cp-hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); }
.cp-lead { margin-inline: auto; }
.cp-trust { justify-content: center; }
.cp-main {
  border: 1px solid rgba(122, 92, 36, 0.3);
  outline: 1px solid rgba(214, 184, 120, 0.22);
  outline-offset: 8px;
  border-radius: 0;
  background: var(--ivory);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
}
.cp-main .form-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.cp-main .form-row textarea,
.cp-main .form-row select,
.cp-main .form-row .form-control,
.hml-preview-dialog .form-control,
.hml-preview-dialog select,
.hml-preview-dialog textarea {
  background-color: #fffdf9;
  border: 1px solid rgba(22, 19, 15, 0.18);
  border-radius: 0;
  color: var(--ink);
}
.cp-main .form-row select.form-control, .cp-main .form-row select.form-select,
.hml-preview-dialog select.form-control, .hml-preview-dialog select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a5c24' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-color: #fffdf9;
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}
[dir="rtl"] .cp-main .form-row select.form-control, [dir="rtl"] .cp-main .form-row select.form-select,
[dir="rtl"] .hml-preview-dialog select { background-position: left 1rem center; }
.cp-main .form-row :is(input, textarea, select, .form-control):hover,
.hml-preview-dialog :is(.form-control, select, textarea):hover { border-color: rgba(22, 19, 15, 0.32); }
.cp-main .form-row :is(input, textarea, select, .form-control):focus-visible,
.hml-preview-dialog :is(.form-control, select, textarea):focus-visible {
  outline: none;
  border-color: var(--gold-ink);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(122, 92, 36, 0.18);
}
.cp-main ::placeholder, .hml-preview-dialog ::placeholder { color: #8a8073; }
.cp-main .form-field-errors, .hml-preview-dialog .form-field-errors { color: #9b2c1c; }
.cp-main .form-row--error .form-control { border-color: #b4412c !important; }
.cp-main :is(.cp-dept-btn, .contact-dept-btn),
.hml-preview-dialog .cp-dept-btn {
  border: 1px solid rgba(22, 19, 15, 0.16);
  border-radius: 0;
  background: #fffdf9;
  color: var(--ink-soft);
}
.cp-main :is(.cp-dept-btn, .contact-dept-btn):hover,
.hml-preview-dialog .cp-dept-btn:hover { border-color: rgba(122, 92, 36, 0.5); color: var(--ink); }
.cp-main :is(.cp-dept-btn, .contact-dept-btn).is-active,
.hml-preview-dialog .cp-dept-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #f5f0e6;
}
.cp-main .cp-step-num { color: var(--gold-ink); }
.cp-main .cp-alert--err .cp-alert-mark { color: #9b2c1c; }
.cp-rail { border-radius: 0; }
.cp-map-frame { border-radius: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: #070605; padding-top: clamp(5rem, 10vw, 8rem); }
.site-footer::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-gold);
  background: #070605;
  transform: translateX(-50%) rotate(45deg);
}
.footer-grid { grid-template-columns: 1.7fr 1fr 1fr; }
.footer-brand { flex-direction: column; align-items: flex-start; gap: 1.4rem; margin-bottom: 1.6rem; }
.footer-brand-text { font-size: clamp(2.1rem, 3.8vw, 3.2rem); letter-spacing: 0.06em; line-height: 1; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--color-text-secondary); }
[dir="rtl"] .footer-tagline { font-style: normal; }
.footer-bottom { border-top-color: rgba(214, 184, 120, 0.18); font-size: 0.82rem; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Language selector ──────────────────────────────────── */
.lang-floating-trigger {
  border-radius: 0;
  background: rgba(8, 7, 6, 0.92);
  border-color: rgba(214, 184, 120, 0.45);
}
.lang-floating-current { letter-spacing: 0.04em; }
.lang-floating-panel { border-radius: 0; }
.lang-floating-search-input { border-radius: 0; }
.lang-floating-option.is-current { color: var(--color-gold-bright); }

/* ── Cookie banner: floating card ───────────────────────── */
.cookie-banner {
  left: auto;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(34rem, calc(100vw - 2rem));
  border: 1px solid rgba(214, 184, 120, 0.4);
  outline: 1px solid rgba(214, 184, 120, 0.12);
  outline-offset: 5px;
  background: rgba(10, 9, 8, 0.97);
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.cookie-banner > .container, .cookie-banner .cookie-banner-inner { width: auto; flex-direction: column; align-items: stretch; }
.cookie-banner-actions .btn { flex: 1 1 auto; }
[dir="rtl"] .cookie-banner { right: auto; left: max(1rem, env(safe-area-inset-left)); }
body.cookie-banner-open { padding-bottom: 0; }
@media (max-width: 600px) {
  .cookie-banner, [dir="rtl"] .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 1.25rem; }
}

/* ── Preview dialog: ivory letter ───────────────────────── */
.hml-preview { background: rgba(6, 5, 4, 0.84); }
.hml-preview-dialog {
  background: var(--ivory);
  border: 1px solid rgba(122, 92, 36, 0.45);
  outline: 1px solid rgba(122, 92, 36, 0.22);
  outline-offset: -10px;
  border-radius: 0;
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.95);
  scrollbar-color: rgba(122, 92, 36, 0.45) transparent;
}
.hml-preview-dialog::before { left: 50%; right: auto; top: -4px; width: 7px; height: 7px; border: 1px solid var(--gold-ink); background: var(--ivory); transform: translateX(-50%) rotate(45deg); }
.hml-preview-dialog:focus-visible { outline: 1px solid rgba(122, 92, 36, 0.22); }
.hml-preview-links { border-block-color: rgba(122, 92, 36, 0.22); }
.hml-preview-links a { color: var(--gold-ink); border-bottom-color: rgba(122, 92, 36, 0.4); }
.hml-preview-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.hml-preview-close { border-color: rgba(22, 19, 15, 0.2); color: var(--ink-soft); border-radius: 0; }
.hml-preview-close:hover { border-color: var(--ink); color: var(--ink); }
.hml-preview-actions { border-top-color: rgba(122, 92, 36, 0.22); }
.hml-preview-form label { color: var(--ink-muted); }
.hml-preview-alert--ok { background: rgba(122, 92, 36, 0.1); color: var(--ink); }
.hml-preview-alert--err { background: rgba(155, 44, 28, 0.1); color: #7d2416; }

[dir="rtl"] :is(.section h2, .section-header h2, .page-header h1, .cp-hero h1, .cta-banner h2, .hero-brand, .founder-name) { line-height: 1.3; }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-vignette::before, .hero-vignette::after { width: 16px; height: 16px; }
  .stat-item:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .hero-inner { padding-inline: 0.5rem; }
  .hero-brand { letter-spacing: 0.06em; }
  .hero-inner::after { display: none; }
  .stats-inner { outline-offset: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 0.5rem; }
  .stats-inner .stat-item, [dir="rtl"] .stats-inner .stat-item { text-align: center; }
  .stats-inner .stat-item::after { display: none; }
  .cp-main { outline-offset: 5px; }
  .process-reveal__frame { outline-offset: 6px; }
  .process-reveal__label {
    top: 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    padding: 0.36rem 0.48rem 0.3rem;
  }
  .process-reveal__pane--before .process-reveal__label { left: 0.5rem; }
  .process-reveal__pane--after .process-reveal__label { right: 0.5rem; }
  .process-reveal__scrub { width: 3.4rem; margin-left: -1.7rem; }
  .process-reveal__scrub-knob { width: 2.75rem; height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .news-item { transition: none; }
  .process-reveal:not(.is-dragging) .process-reveal__pane--before .process-reveal__img,
  .process-reveal:not(.is-dragging) .process-reveal__pane--before::after,
  .process-reveal:not(.is-dragging) .process-reveal__scrub,
  .process-reveal:not(.is-dragging) .process-reveal__label { transition: none; }
}
