/* =====================================================================
   Alīna Lubgāne — premium demo
   Tokens · grounded industrial strength · warm off-white + terracotta
===================================================================== */

:root {
  /* Palette */
  --bg:        #F5F0EB;
  --bg-2:      #EFE7DD;
  --bg-3:      #E8DDCD;
  --ink:       #1A1A1A;
  --ink-2:     #2B2724;
  --muted:     #9E9387;
  --muted-2:   #C7BCAE;
  --accent:    #C8522A;
  --accent-2:  #A23E1A;
  --accent-soft: #F1D9CC;
  --line:      rgba(26,26,26,0.10);
  --line-2:    rgba(26,26,26,0.18);

  /* Typography */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 220ms;
  --dur-2: 420ms;
  --dur-3: 720ms;

  /* Tinted shadow (background-hue tinted, never neon) */
  --shadow-sm: 0 1px 0 rgba(26,26,26,0.04), 0 4px 12px -4px rgba(72,40,20,0.10);
  --shadow:    0 12px 40px -16px rgba(72,40,20,0.18), 0 2px 6px -2px rgba(26,26,26,0.06);
  --shadow-lg: 0 30px 80px -32px rgba(72,40,20,0.28), 0 6px 14px -6px rgba(26,26,26,0.08);
}

/* ─── Reset ─────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
  overflow-x: hidden;
}

/* ─── Subtle grain (fixed, non-scrolling) ────────────── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.65'/></svg>");
}

.skip-link {
  position: absolute; top: -40px; left: 12px;
  background: var(--ink); color: var(--bg);
  padding: 8px 12px; border-radius: 8px; font-size: 14px;
  z-index: 1000;
}
.skip-link:focus { top: 12px; }

/* ─── Container ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Reveal-on-scroll utility ──────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  will-change: transform, opacity;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ─── NAV ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,240,235,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(245,240,235,0.92);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--accent);
  border-radius: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav__name { display: flex; flex-direction: column; line-height: 1.05; }
.nav__name-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav__name-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav__links {
  display: flex; gap: 28px;
  justify-content: center;
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-1) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-2) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang__btn {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  color: var(--muted);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.lang__btn.is-active {
  color: var(--ink);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.btn--solid {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn--solid:hover {
  background: var(--accent);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* ─── Eyebrow ──────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow__dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200,82,42,0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(200,82,42,0.18); }
  50%     { box-shadow: 0 0 0 7px rgba(200,82,42,0.04); }
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(42px, 7vw, 96px) 0 clamp(60px, 10vw, 140px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -100px 0 auto 0;
  height: 60%;
  background:
    radial-gradient(60% 60% at 18% 20%, rgba(200,82,42,0.08), transparent 70%),
    radial-gradient(50% 50% at 100% 10%, rgba(26,26,26,0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 80px);
  align-items: center;
}
.hero__copy { padding-top: 8px; }
.hero__h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 22px 0 28px;
  color: var(--ink);
}
.hero__h1-line { display: block; }
.hero__h1-line--italic em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 36px;
  line-height: 1.55;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}
.rotator {
  position: relative;
  display: inline-flex;
  min-width: 8.5ch;
  height: 1.2em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35em;
  color: var(--accent);
  letter-spacing: -0.01em;
  vertical-align: baseline;
}
.rotator__word {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.rotator__word.is-active {
  opacity: 1;
  transform: none;
}
.hero__sub-arrow { color: var(--muted); font-weight: 400; }
.hero__sub-tail { color: var(--ink-2); }

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 18px 14px 22px;
  border-radius: 18px;
  min-width: 240px;
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.cta__label { display: flex; flex-direction: column; align-items: flex-start; }
.cta__kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}
.cta__main {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.005em;
}
.cta__arrow {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.cta--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.cta--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.cta--primary:hover .cta__arrow { transform: translateX(4px); background: rgba(255,255,255,0.25); }
.cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.cta--ghost .cta__arrow { background: var(--bg-2); }
.cta--ghost:hover {
  background: var(--bg-2);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.cta--ghost:hover .cta__arrow { transform: translateX(4px); background: var(--ink); color: var(--bg); }
.cta:active { transform: translateY(0) scale(0.99); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin: 0;
}
.hero__stat dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero__stat dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero__num {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__unit {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero photo */
.hero__media {
  position: relative;
  display: grid;
  gap: 22px;
}
.hero__photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-origin: center;
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.02);
  transition: transform 1200ms var(--ease);
}
.hero__photo:hover img { transform: scale(1.06); }
.hero__photo-cap {
  position: absolute;
  left: 18px; top: 18px;
  margin: 0;
}
.hero__photo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,20,20,0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
}
.dot--live { background: #6BD089; box-shadow: 0 0 0 3px rgba(107,208,137,0.25); animation: pulse-live 2s ease-in-out infinite; }
.dot--cool { background: #C8522A; box-shadow: 0 0 0 3px rgba(200,82,42,0.22); }
@keyframes pulse-live {
  0%,100% { box-shadow: 0 0 0 3px rgba(107,208,137,0.22); }
  50%     { box-shadow: 0 0 0 6px rgba(107,208,137,0.04); }
}

/* Weight-plate progress reveal — signature animation */
.hero__plate {
  position: absolute;
  right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-end;
}
.hero__plate-num {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(245,240,235,0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(8px);
  animation: plate-rise 1.6s var(--ease) forwards;
}
.hero__plate-num small { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero__plate-num:nth-child(1) { animation-delay: 0.5s; }
.hero__plate-num:nth-child(2) { animation-delay: 0.7s; }
.hero__plate-num:nth-child(3) { animation-delay: 0.9s; }
.hero__plate-num:nth-child(4) { animation-delay: 1.1s; }
@keyframes plate-rise {
  to { opacity: 1; transform: none; }
}

.hero__quote {
  position: relative;
  padding: 18px 22px 18px 50px;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.hero__quote p { margin: 0 0 6px; }
.hero__quote-mark {
  position: absolute;
  left: 18px; top: 18px;
  color: var(--accent);
}
.hero__quote-by {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── TICKER ──────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-slide 38s linear infinite;
}
.ticker__row {
  display: flex;
  align-items: center;
  flex: none;
  padding: 18px 0;
}
.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 28px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.ticker__num {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.ticker__num small { font-size: 12px; }
.ticker__sep {
  color: var(--muted-2);
  font-size: 22px;
  flex: none;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-slide {
  to { transform: translateX(-50%); }
}

/* ─── PILLARS ─────────────────────────────────────── */
.pillars {
  padding: clamp(60px, 8vw, 110px) 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars__item {
  position: relative;
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  transition: background var(--dur-2) var(--ease);
}
.pillars__item:last-child { border-right: 0; }
.pillars__item:hover { background: var(--bg-2); }
.pillars__num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}
.pillars__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.pillars__body {
  margin: 0;
  color: var(--ink-2);
  max-width: 32ch;
  font-size: 15.5px;
}

/* ─── SECTION HEAD ────────────────────────────────── */
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.section-head--row {
  max-width: none;
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head__kicker {
  display: inline-block;
  padding: 5px 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
}
.section-head__title em { font-style: italic; color: var(--accent); }
.section-head__lede {
  margin: 22px auto 0;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 16.5px;
}
.section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.section-head__more:hover { color: var(--accent); border-color: var(--accent); }

/* ─── SERVICES — TWO TRACKS ───────────────────────── */
.services { padding: clamp(60px, 8vw, 120px) 0; background: var(--bg-2); }
.services__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(60px, 8vw, 100px);
}
.track {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  box-shadow: var(--shadow-sm);
}
.track:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.track__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.track__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}
.track:hover .track__media img { transform: scale(1.06); }
.track__badge {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,240,235,0.92);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.track__body { padding: 30px 32px 36px; flex: 1; display: flex; flex-direction: column; }
.track__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.track--alt .track__title em, .track__title em { font-style: italic; color: var(--accent); }
.track__sub {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.track__list { margin: 0 0 28px; display: grid; gap: 10px; }
.track__list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.track__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1.2px;
  background: var(--accent);
}
.track__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.track__cta svg { transition: transform var(--dur-2) var(--ease); }
.track__cta:hover { background: var(--accent); transform: translateY(-2px); }
.track__cta:hover svg { transform: translateX(3px); }

.track--alt .track__cta { background: var(--accent); }
.track--alt .track__cta:hover { background: var(--ink); }

/* Supporting service rail */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rail__item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  transition: background var(--dur-2) var(--ease);
}
.rail__item:last-child { border-right: 0; }
.rail__item:hover { background: var(--bg); }
.rail__idx {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 14px;
}
.rail__item h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.rail__item p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ─── CASE STUDY ──────────────────────────────────── */
.case { padding: clamp(80px, 10vw, 140px) 0; }
.case__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.case__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  background: var(--bg-3);
}
.case__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.track__media img { object-position: center 30%; }
/* Composite (before/after) needs full width visible — switch case to 1:1 frame */
.case__media { aspect-ratio: 1 / 1; }
@media (min-width: 1080px) {
  .case__media { aspect-ratio: 1 / 1; }
}
.case__plate {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245,240,235,0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.case__plate--before { top: 18px; left: 18px; }
.case__plate--after { bottom: 18px; right: 18px; background: var(--accent); color: #fff; border-color: var(--accent); }

.case__h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 78px);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 22px 0 24px;
}
.case__h2 em { font-style: italic; color: var(--accent); }
.case__lede { color: var(--ink-2); margin: 0 0 36px; max-width: 50ch; font-size: 16.5px; }

.case__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.case__metric {
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case__metric:nth-child(2n) { border-right: 0; }
.case__metric:nth-last-child(-n+2) { border-bottom: 0; }
.case__metric-num {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.case__metric-num small { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.case__metric-lbl {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.case__cta:hover { background: var(--accent); transform: translateY(-2px); }
.case__cta:hover svg { transform: translateX(3px); }
.case__cta svg { transition: transform var(--dur-2) var(--ease); }

/* ─── ABOUT ───────────────────────────────────────── */
.about { padding: clamp(60px, 8vw, 110px) 0; background: var(--bg-2); }
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.about__h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 78px);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 22px 0 28px;
}
.about__h2 em { font-style: italic; color: var(--accent); }
.about__lede p { margin: 0 0 14px; color: var(--ink-2); max-width: 56ch; font-size: 16.5px; }
.about__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.about__chips li {
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  transition: transform var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.about__chips li:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.about__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.about__photo:hover img { transform: scale(1.05); }
.about__photo-cap {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(20,20,20,0.55);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
}

/* ─── GALLERY (bento) ─────────────────────────────── */
.gallery { padding: clamp(60px, 8vw, 120px) 0; }
.gallery__bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 580px;
}
.bento {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--shadow-sm);
}
.bento img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.bento:hover img { transform: scale(1.05); }
.bento--lg { grid-row: span 2; }
.bento--wide { grid-column: span 2; }
.bento figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  background: rgba(20,20,20,0.55);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.bento:hover figcaption { opacity: 1; transform: none; }

/* ─── PRICING ─────────────────────────────────────── */
.pricing { padding: clamp(60px, 8vw, 120px) 0; background: var(--bg-2); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.plan--feature {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.plan__ribbon {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.plan__head { margin-bottom: 22px; }
.plan__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-block;
}
.plan--feature .plan__tag { color: var(--accent-soft); }
.plan__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
}
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid currentColor; border-color: rgba(0,0,0,0.08); }
.plan--feature .plan__price { border-color: rgba(255,255,255,0.12); }
.plan__amount {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 56px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.plan--feature .plan__amount { color: var(--accent-soft); }
.plan__per { font-size: 13px; color: var(--muted); }
.plan--feature .plan__per { color: var(--muted-2); }
.plan__list { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 1.2px;
  background: var(--accent);
}
.plan__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.plan__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan__cta--solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.plan__cta--solid:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ─── CONTACT ─────────────────────────────────────── */
.contact { padding: clamp(60px, 8vw, 120px) 0; }
.contact__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.contact__h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 22px 0 22px;
}
.contact__h2 em { font-style: italic; color: var(--accent); }
.contact__lede { color: var(--ink-2); margin: 0 0 32px; max-width: 50ch; font-size: 16.5px; }

.contact__big {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 26px 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  box-shadow: var(--shadow);
}
.contact__big::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(200,82,42,0.35), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
  z-index: -1;
}
.contact__big:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact__big:hover::after { opacity: 1; }
.contact__big-kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.contact__big-main {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.015em;
  color: var(--accent-soft);
}
.contact__big-sub { font-size: 13px; color: var(--muted-2); }

.contact__alts { display: grid; gap: 4px; }
.contact__alts li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.contact__alt-k {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__alts a { color: var(--ink); transition: color var(--dur-1) var(--ease); border-bottom: 1px solid transparent; }
.contact__alts a:hover { color: var(--accent); border-color: var(--accent); }

/* Form */
.contact__form {
  display: grid;
  gap: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
}
.field { display: grid; gap: 8px; }
.field label, .field__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 100px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.chip input { display: none; }
.chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  box-shadow: var(--shadow-sm);
}
.form__submit:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.form__submit:active { transform: translateY(0) scale(0.99); }
.form__submit svg { transition: transform var(--dur-2) var(--ease); }
.form__submit:hover svg { transform: translateX(3px); }
.form__note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.form__success {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(107,208,137,0.14);
  border: 1px solid rgba(107,208,137,0.35);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.form__success strong { color: #1d6b3a; }

/* ─── FOOTER ──────────────────────────────────────── */
.foot { background: var(--ink); color: var(--bg); margin-top: 0; }
.foot__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(50px, 7vw, 90px) var(--gutter) 36px;
}
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__mark {
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
}
.foot__name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.foot__tag { margin: 4px 0 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.foot__cols h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot__cols a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--bg);
  transition: color var(--dur-1) var(--ease);
}
.foot__cols a:hover { color: var(--accent-soft); }
.foot__bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* ─── COOKIE ──────────────────────────────────────── */
.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  margin: 0 auto;
  max-width: 540px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.cookie.is-visible {
  opacity: 1;
  transform: none;
}
.cookie__txt { margin: 0; font-size: 13px; line-height: 1.45; flex: 1; color: var(--muted-2); }
.cookie__btns { display: flex; align-items: center; gap: 12px; flex: none; }
.cookie__ok {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--dur-1) var(--ease);
}
.cookie__ok:hover { background: var(--accent-2); }
.cookie__more { font-size: 12px; color: var(--muted-2); border-bottom: 1px solid var(--muted); padding-bottom: 1px; }
.cookie__more:hover { color: var(--bg); }

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .case__inner { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
  .gallery__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .bento--lg, .bento--wide { grid-column: auto; grid-row: auto; }
  .bento { aspect-ratio: 4 / 5; }
  .bento--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillars__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillars__item:last-child { border-bottom: 0; }
  .services__split { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr 1fr; }
  .rail__item:nth-child(2n) { border-right: 0; }
  .rail__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pricing__grid { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .contact__alts li { grid-template-columns: 90px 1fr; }
}
@media (max-width: 540px) {
  .hero__h1 { font-size: 44px; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .hero__stat { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .hero__stat:last-child { border-bottom: 0; }
  .cta { min-width: 0; flex: 1; }
  .hero__ctas { flex-direction: column; }
  .cta { width: 100%; }
  .nav__name-sub { display: none; }
  .nav__cta { padding: 9px 13px; }
  .ticker__item { font-size: 18px; padding: 0 18px; }
  .case__metrics { grid-template-columns: 1fr; }
  .case__metric, .case__metric:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .case__metric:last-child { border-bottom: 0; }
  .gallery__bento { grid-template-columns: 1fr; }
  .bento--wide { grid-column: auto; aspect-ratio: 4 / 5; }
  .rail { grid-template-columns: 1fr; }
  .rail__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .rail__item:last-child { border-bottom: 0; }
  .foot__cols { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie__btns { justify-content: space-between; }
  .lang { padding: 2px; }
  .lang__btn { padding: 5px 8px; font-size: 11px; }
  .contact__form { padding: 24px 20px; }
  .case__plate { font-size: 11px; padding: 6px 12px; }
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Editorial typographic art blocks (replace duplicate images) ───── */
.about__photo--art { background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.about__photo-art {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 36px);
  gap: 14px;
  color: var(--ink);
}
.about__photo-art-mono {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(140px, 22vw, 240px);
  line-height: 0.8;
  color: var(--accent);
  letter-spacing: -0.04em;
  align-self: start;
  margin-top: -18px;
  text-shadow: 0 4px 24px rgba(200,82,42,0.18);
}
.about__photo-art-stack { display: grid; gap: 4px; align-self: end; font-family: var(--serif); }
.about__photo-art-stack span:nth-child(1) { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.about__photo-art-stack span:nth-child(2) { font-size: clamp(40px, 5vw, 56px); font-weight: 500; line-height: 0.95; }
.about__photo-art-stack span:nth-child(2) em { font-style: italic; color: var(--accent); }
.about__photo-art-stack span:nth-child(3) { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-top: 6px; }
.about__photo-art-bar { height: 1px; background: var(--line-2); }
.about__photo-art-meta { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.about__photo-art-meta em { color: var(--accent); }

/* Bento art blocks */
.bento--art { background: var(--bg-2); border: 1px solid var(--line); }
.bento__art {
  position: absolute; inset: 0;
  padding: clamp(20px, 2.4vw, 32px);
  display: grid;
  color: var(--ink);
}
.bento__art--cadence {
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  background: linear-gradient(170deg, var(--bg-3), var(--bg-2));
}
.bento__art-kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.bento__art-grid {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; align-self: center;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--ink);
}
.bento__art-grid em {
  display: inline-grid; place-items: center;
  width: 1.6em; height: 1.6em;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-style: italic;
  background: var(--bg);
}
.bento__art-grid em:nth-child(1),
.bento__art-grid em:nth-child(5) { background: var(--ink); color: var(--accent-soft); border-color: var(--ink); }
.bento__art-grid em:last-child { color: var(--muted-2); border-style: dashed; }
.bento__art-legend { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); line-height: 1.6; }
.bento__art-num {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--accent);
  display: inline-flex; align-items: baseline; gap: 6px;
}
.bento__art-num small { font-size: 0.5em; color: var(--muted); }
.bento__art-num b { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; color: var(--ink-2); text-transform: uppercase; margin-left: 6px; }

.bento__art--macros {
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  background: linear-gradient(170deg, var(--bg-2), var(--bg-3));
}
.bento__art-stat {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(56px, 7vw, 80px);
  line-height: 0.95;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.bento__art-stat b { color: var(--accent); }
.bento__art-stat small { font-size: 0.32em; letter-spacing: 0.12em; color: var(--muted); font-family: var(--sans); font-weight: 500; font-style: normal; text-transform: uppercase; }
.bento__art-stat-lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bento__art-bars { display: grid; gap: 6px; align-self: end; }
.bento__art-bars i {
  display: block;
  height: 8px; width: var(--w, 50%);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  border-radius: 999px;
}
.bento__art-foot { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }

.bento__art--client {
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  background: linear-gradient(110deg, var(--ink) 0%, #1f1813 100%);
  color: var(--bg);
}
.bento__art-tag { font-size: 11px; letter-spacing: 0.2em; color: var(--accent-soft); }
.bento__art-bigrow {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  align-self: center; flex-wrap: wrap;
}
.bento__art-bigrow > span:not(.bento__art-divider) {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--serif); font-weight: 600; font-style: italic;
}
.bento__art-bigrow b {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 0.9;
  color: var(--bg);
  letter-spacing: -0.02em;
}
.bento__art-bigrow small {
  font-size: 13px;
  font-family: var(--sans); font-style: normal; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2);
}
.bento__art-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.12);
}
.bento__art--client .bento__art-foot { color: var(--muted-2); font-style: italic; }
@media (max-width: 540px) {
  .bento__art-bigrow { gap: 10px; }
  .bento__art-divider { display: none; }
}

/* Lang-aware quote glyphs (LV: „..." RU: «...» EN: "...") */
[data-lang="lv"] [data-quote]::before,
[data-lang="lv"] [data-quote-ready]::before { content: "\201E"; }
[data-lang="lv"] [data-quote]::after,
[data-lang="lv"] [data-quote-ready]::after  { content: "\201C"; }
[data-lang="ru"] [data-quote]::before,
[data-lang="ru"] [data-quote-ready]::before { content: "\00AB"; }
[data-lang="ru"] [data-quote]::after,
[data-lang="ru"] [data-quote-ready]::after  { content: "\00BB"; }
[data-lang="en"] [data-quote]::before,
[data-lang="en"] [data-quote-ready]::before { content: "\201C"; }
[data-lang="en"] [data-quote]::after,
[data-lang="en"] [data-quote-ready]::after  { content: "\201D"; }

/* ===================================================================
   PREMIUM UPGRADES — drifting hero mesh, letter-rise, lang pulse,
   gradient track borders, magnetic CTAs, bigger case study,
   featured-plan green glow, DM-UI contact panel
=================================================================== */

/* Tokens added */
:root {
  --green: #2E6E5E;
  --green-soft: rgba(46, 110, 94, 0.16);
}

/* ── HERO: drifting warm-cream gradient mesh (behind hero, bleeds around photo) ── */
.hero {
  position: relative;
}
.hero__mesh-bg {
  position: absolute;
  inset: -10% -5% -10% -5%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(38% 36% at 18% 28%, rgba(241, 217, 204, 0.55), transparent 70%),
    radial-gradient(34% 38% at 82% 64%, rgba(200, 82, 42, 0.18), transparent 72%),
    radial-gradient(26% 32% at 56% 14%, rgba(255, 240, 220, 0.45), transparent 70%),
    radial-gradient(22% 26% at 8% 88%, rgba(46, 110, 94, 0.10), transparent 70%);
  filter: blur(22px);
  opacity: 0.9;
  animation: mesh-drift 24s ease-in-out infinite;
}
@keyframes mesh-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
  66%      { transform: translate3d(-1.5%, 1.5%, 0) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mesh-bg, .hero__mesh { animation: none; }
}

/* The .hero__mesh inside the photo is no longer needed — hide if present */
.hero__mesh { display: none; }

.hero__photo-cap, .hero__plate { z-index: 2; }

/* Plate stack — refined: animated count-down stack with right-rule */
.hero__plate {
  gap: 8px;
  z-index: 3;
}
.hero__plate-num {
  position: relative;
  background: rgba(245,240,235,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 15px;
  padding: 5px 12px 5px 10px;
}
.hero__plate-num::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent);
  border-radius: 2px 0 0 2px;
}
.hero__plate-val {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
  text-align: right;
}

/* ── HERO H1: letter-rise on "ikvienam" ──────────────── */
[data-letter-rise] { display: inline-block; }
[data-letter-rise] .lr-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotate(2deg);
  animation: lr-rise 0.7s var(--ease) forwards;
}
[data-letter-rise] .lr-char--space { width: 0.3em; }
@keyframes lr-rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-letter-rise] .lr-char { opacity: 1; transform: none; animation: none; }
}

/* ── LANG: pill flash on switch ──────────────────────── */
.lang__btn { position: relative; overflow: hidden; }
.lang__btn.is-active {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.lang__btn.is-flashing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(200,82,42,0.35), transparent 70%);
  animation: lang-flash 600ms var(--ease) forwards;
  pointer-events: none;
}
@keyframes lang-flash {
  0%   { opacity: 0; transform: scale(0.6); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ── TRACK CARDS: gradient border on hover + magnetic CTAs ── */
.track {
  position: relative;
  isolation: isolate;
}
.track::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 30%, transparent 70%, var(--accent));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 600ms var(--ease);
  pointer-events: none;
  z-index: 2;
}
.track:hover::before { opacity: 1; animation: track-flow 4s linear infinite; }
@keyframes track-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.track--alt::before {
  background: linear-gradient(135deg, var(--green), transparent 30%, transparent 70%, var(--green));
}

.track__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 240ms var(--ease), background 240ms var(--ease), box-shadow 320ms var(--ease);
}
.track__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 240ms var(--ease);
  pointer-events: none;
  z-index: -1;
}
.track__cta:hover::after { opacity: 1; }
.track__cta:hover { box-shadow: 0 18px 40px -16px rgba(72,40,20,0.36); }
.track--alt .track__cta { background: var(--green); }
.track--alt .track__cta:hover { background: var(--ink); }

/* ── CASE STUDY: bigger, more editorial weight ───────── */
.case { padding: clamp(100px, 12vw, 180px) 0; }
.case__inner {
  grid-template-columns: 1.1fr 0.95fr;
}
.case__h2 {
  font-size: clamp(48px, 6.4vw, 92px);
}
/* Composite shows BOTH halves — keep square frame */
.case__media {
  aspect-ratio: 1 / 1;
}
/* Subtle vertical divider between the before/after composite halves */
.case__divider {
  position: absolute;
  top: 8%; bottom: 8%;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(245,240,235,0.85) 20%, rgba(245,240,235,0.85) 80%, transparent 100%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 12px rgba(0,0,0,0.18);
  opacity: 0;
  animation: case-div-in 1.2s var(--ease) 0.4s forwards;
}
@keyframes case-div-in { to { opacity: 1; } }

/* Counter visual — italic with subtle accent */
.case__count {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ── PRICING: featured plan green glow (#2E6E5E) ───── */
.plan--feature {
  position: relative;
}
.plan--feature::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(140deg, var(--green) 0%, transparent 45%, transparent 55%, var(--green) 100%);
  z-index: -1;
  opacity: 0.45;
  filter: blur(8px);
  animation: feature-glow 6s ease-in-out infinite;
}
@keyframes feature-glow {
  0%, 100% { opacity: 0.32; }
  50%      { opacity: 0.55; }
}
.plan--feature .plan__ribbon {
  background: var(--green);
}

/* ── CONTACT: DM-UI panel with typing dots ─────────── */
.contact__big {
  display: grid;
  gap: 14px;
  padding: 22px 24px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1a1a1a 0%, #221c19 100%);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.contact__big-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact__big-avatar {
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
}
.contact__big-avatar::after {
  content: "";
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: #6BD089;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 0 2px rgba(107,208,137,0.2);
  animation: pulse-live 2s ease-in-out infinite;
}
.contact__big-meta { display: grid; gap: 2px; }
.contact__big-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--bg);
}
.contact__big-status {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245,240,235,0.55);
}
.contact__big-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(245,240,235,0.7);
  padding: 4px 10px;
  border-radius: 999px;
}
.contact__big-bubble {
  display: grid;
  gap: 10px;
}
.contact__big-msg {
  display: inline-block;
  width: max-content;
  max-width: 90%;
  background: rgba(255,255,255,0.06);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.005em;
}
.contact__big-msg--user {
  justify-self: end;
  background: var(--accent);
  border-radius: 14px 14px 4px 14px;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  padding: 8px 18px;
}
.contact__big-msg--user em { font-style: italic; }
.contact__big-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  padding: 11px 14px;
  border-radius: 14px 14px 14px 4px;
  width: max-content;
}
.contact__big-typing-dot {
  width: 6px; height: 6px;
  background: rgba(245,240,235,0.55);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.contact__big-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.contact__big-typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-3px); opacity: 1; }
}
.contact__big-sub {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245,240,235,0.55);
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.contact__big-kicker { display: none; } /* legacy */
.contact__big-main { display: none; }   /* legacy */
.contact__big:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact__big::after { content: none; } /* override old radial */

/* ── MOBILE: tighten + ensure 44px targets, all 3 langs ── */
@media (max-width: 540px) {
  .hero__plate {
    right: 12px; bottom: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 60%;
    justify-content: flex-end;
  }
  .hero__plate-num {
    font-size: 13px;
    padding: 4px 9px;
  }
  .case__metrics { grid-template-columns: 1fr 1fr; }
  .case__metric, .case__metric:nth-child(2n) { border-right: 1px solid var(--line); }
  .case__metric:nth-child(2n) { border-right: 0; }
  .case__metric { border-bottom: 1px solid var(--line); }
  .case__metric:nth-last-child(-n+2) { border-bottom: 0; }
  .lang__btn { min-height: 36px; min-width: 36px; padding: 7px 10px; font-size: 12px; }
  .nav__cta { min-height: 44px; padding: 10px 14px; }
  .cta { min-height: 56px; }
  .track__cta, .case__cta, .form__submit, .plan__cta { min-height: 46px; }
  .contact__big { padding: 18px 18px 20px; }
  .contact__big-head { grid-template-columns: 36px 1fr auto; gap: 10px; padding-bottom: 12px; }
  .contact__big-avatar { width: 36px; height: 36px; font-size: 17px; }
  .contact__big-name { font-size: 16px; }
  .contact__big-msg--user { font-size: 18px; padding: 7px 14px; }
  .contact__big-tag { padding: 3px 8px; font-size: 9px; }
  .case__media { aspect-ratio: 1 / 1; }
  /* RU text is longer — nav links already hidden on mobile */
}
@media (max-width: 380px) {
  .hero__h1 { font-size: 38px; }
  .case__h2 { font-size: clamp(36px, 9vw, 48px); }
  .contact__h2 { font-size: clamp(40px, 10vw, 56px); }
  .section-head__title { font-size: clamp(30px, 8vw, 40px); }
  .hero__plate { max-width: 70%; gap: 5px; }
  .hero__plate-num { font-size: 12px; padding: 3px 8px; }
}

/* =====================================================================
   ROUND-4 EDITORIAL UPGRADES — must override earlier rules
===================================================================== */

/* Tokens */
:root {
  --green:        #2E6E5E;
  --green-soft:   rgba(46,110,94,0.10);
  --tape:         rgba(220,200,170,0.85);
}

/* ─── Stronger paper grain ────────────────────────────── */
.grain {
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.14  0 0 0 0 0.10  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── HERO REBUILD ────────────────────────────────────── */
.hero { overflow: visible; }

/* Massive outline word behind the photo */
.hero__ghostword {
  position: absolute;
  top: 6%;
  right: -2vw;
  z-index: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(160px, 24vw, 360px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(26,26,26,0.12);
  text-stroke: 1.4px rgba(26,26,26,0.12);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(28px) scale(1.02);
  animation: ghost-rise 1.6s var(--ease) 0.2s forwards;
}
@keyframes ghost-rise {
  to { opacity: 1; transform: none; }
}

/* Animated underline under "ikvienam" */
.hero__h1-line--italic { position: relative; display: inline-block; }
.hero__h1-underline {
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  width: 100%;
  height: 0.18em;
  color: var(--accent);
  pointer-events: none;
  overflow: visible;
}
.hero__h1-underline path {
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: underline-draw 1.6s var(--ease) 1.2s forwards;
}
@keyframes underline-draw {
  to { stroke-dashoffset: 0; }
}

/* ─── HERO PHOTO — polaroid + organic mask ─────────────── */
.hero__photo--polaroid {
  background: #FBF7F1;
  padding: 18px 18px 56px;
  border-radius: 6px !important;
  overflow: visible !important;
  transform: rotate(-1.4deg);
  box-shadow:
    0 18px 42px -22px rgba(72,40,20,0.45),
    0 4px 10px -2px rgba(26,26,26,0.10),
    0 0 0 1px rgba(26,26,26,0.04);
  aspect-ratio: auto !important;
  transition: transform 600ms var(--ease);
}
.hero__photo--polaroid:hover { transform: rotate(-0.4deg) translateY(-4px); }

.hero__photo-mask {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* Irregular blob — not a rectangle */
  border-radius: 62% 38% 54% 46% / 48% 56% 44% 52%;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px rgba(26,26,26,0.06);
}
.hero__photo-mask img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.04);
  transition: transform 1200ms var(--ease);
}
.hero__photo--polaroid:hover .hero__photo-mask img { transform: scale(1.08); }

/* Tape corners */
.hero__tape {
  position: absolute;
  width: 86px; height: 22px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(26,26,26,0.10);
  z-index: 3;
  pointer-events: none;
}
.hero__tape::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.45) 0%, transparent 40%),
    repeating-linear-gradient(90deg, rgba(180,150,110,0.12) 0 2px, transparent 2px 6px);
  mix-blend-mode: multiply;
}
.hero__tape--tl { top: -10px; left: 14px; transform: rotate(-8deg); }
.hero__tape--br { bottom: 22px; right: -16px; transform: rotate(14deg); }

/* Hero photo caption needs new positioning since polaroid is bigger */
.hero__photo-cap { left: 30px !important; top: 30px !important; z-index: 4; }
.hero__plate { right: 30px !important; bottom: 70px !important; z-index: 4; }

/* Plate hover energy: rotate + glow when figure hovered */
.hero__photo--polaroid:hover .hero__plate-num {
  transform: rotate(-2deg);
  box-shadow: 0 0 0 4px rgba(200,82,42,0.16), 0 6px 18px -8px rgba(200,82,42,0.5);
  border-color: var(--accent);
}
.hero__photo--polaroid:hover .hero__plate-num:nth-child(1) { transform: rotate(-3deg) translateX(-2px); }
.hero__photo--polaroid:hover .hero__plate-num:nth-child(2) { transform: rotate(-1deg); }
.hero__photo--polaroid:hover .hero__plate-num:nth-child(3) { transform: rotate(2deg); }
.hero__photo--polaroid:hover .hero__plate-num:nth-child(4) { transform: rotate(4deg) translateX(-3px); }
.hero__plate-num { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease); }

/* ─── KINETIC ROTATOR ──────────────────────────────────── */
.rotator[data-kinetic] { perspective: 600px; }
.rotator[data-kinetic] .rotator__word {
  transform: translateY(120%) rotateX(-40deg);
  filter: blur(1px);
  letter-spacing: 0.05em;
  transition:
    transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 320ms var(--ease),
    letter-spacing 620ms var(--ease),
    filter 320ms ease;
}
.rotator[data-kinetic] .rotator__word.is-active {
  transform: translateY(0) rotateX(0);
  filter: blur(0);
  letter-spacing: -0.01em;
  opacity: 1;
}
.rotator[data-kinetic] .rotator__word.is-leaving {
  transform: translateY(-110%) rotateX(40deg);
  filter: blur(1px);
  opacity: 0;
}

/* ─── SECTION-CURVE flow paths ─────────────────────────── */
.section-curve {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 80px);
  color: var(--bg);            /* matches body bg, "cuts" into the about's bg-2 */
  pointer-events: none;
}
.section-curve--top {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
}
.about { position: relative; padding-top: clamp(80px, 9vw, 130px); }

/* ─── TIMELINE — 5 gadu ceļojums ───────────────────────── */
.timeline {
  margin: clamp(48px, 6vw, 80px) auto 0;
  position: relative;
}
.timeline__head {
  text-align: center;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.timeline__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  line-height: 1.1;
}
.timeline__title em { font-style: italic; color: var(--accent); }

.timeline__rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
  position: relative;
  padding: 8px 12px 0;
}
.timeline__node {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-top: 42px;
}
.timeline__year {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.timeline__node--accent .timeline__year,
.timeline__node--now .timeline__year { color: var(--accent); }
.timeline__dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
  z-index: 2;
}
.timeline__node--accent .timeline__dot { background: var(--accent); border-color: var(--accent); }
.timeline__node--now .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(200,82,42,0.18);
  animation: pulse-live 2s ease-in-out infinite;
}
.timeline__label {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  line-height: 1.35;
  max-width: 18ch;
}

/* Connector path positioned between dots */
.timeline__path {
  position: absolute;
  top: 4px;
  left: 8%; right: 8%;
  width: 84%;
  height: 18px;
  color: var(--accent);
  opacity: 0.5;
  z-index: 1;
}
.timeline__path path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
.timeline.is-in .timeline__path path {
  animation: tl-draw 1.8s var(--ease) 0.3s forwards;
}
@keyframes tl-draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 760px) {
  .timeline__rail { grid-template-columns: 1fr; gap: 14px; padding: 8px 0 0; }
  .timeline__node { flex-direction: row; padding: 0 0 0 38px; gap: 14px; text-align: left; align-items: center; }
  .timeline__dot { top: 50%; left: 12px; transform: translateY(-50%); }
  .timeline__year { font-size: 22px; min-width: 60px; }
  .timeline__label { max-width: none; }
  .timeline__path { display: none; }
}

/* ─── PILLARS · vintage-poster style ─────────────────── */
.pillars__icon {
  width: 56px; height: 56px;
  color: var(--accent);
  margin-bottom: 14px;
  filter: drop-shadow(0 1px 0 rgba(200,82,42,0.15));
}
.pillars__num {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-size: 80px !important;
  font-weight: 600 !important;
  line-height: 0.85 !important;
  color: transparent !important;
  -webkit-text-stroke: 1.5px var(--accent);
  text-stroke: 1.5px var(--accent);
  margin-bottom: 6px !important;
  letter-spacing: -0.04em !important;
  display: block !important;
}
.pillars__item:hover .pillars__icon {
  transform: scale(1.06) rotate(-3deg);
  transition: transform 360ms var(--ease);
}
.pillars__item .pillars__title { letter-spacing: -0.01em; }

/* ─── MAP ──────────────────────────────────────────────── */
.map {
  margin: 22px 0 24px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -16px rgba(46,110,94,0.4), 0 1px 0 rgba(26,26,26,0.04);
  isolation: isolate;
}
.map__svg {
  display: block;
  width: 100%;
  height: clamp(160px, 22vw, 220px);
}
.map__overlay {
  position: absolute;
  left: 12px; bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.map__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #F5F0EB;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px -6px rgba(46,110,94,0.5);
}
.map__addr {
  background: rgba(245,240,235,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--sans);
}

/* Marker pulse animation */
.map__marker-pulse {
  transform-origin: center;
  animation: map-pulse 2.4s ease-out infinite;
}
.map__marker-pulse--2 { animation-delay: 0.6s; }
@keyframes map-pulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  70%  { opacity: 0; }
  100% { transform: scale(2.0); opacity: 0; }
}

/* ─── DM TYPING with status label ──────────────────────── */
.contact__big-typing {
  position: relative;
  align-items: center;
  gap: 4px !important;
  padding-right: 14px !important;
}
.contact__big-typing-lbl {
  margin-left: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  padding-left: 14px;
}
.contact__big-typing-lbl::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6BD089;
  box-shadow: 0 0 0 3px rgba(107,208,137,0.22);
  transform: translateY(-50%);
  animation: pulse-live 2s ease-in-out infinite;
}

/* Make sure ghostword does not break mobile horizontal scroll */
@media (max-width: 760px) {
  .hero__ghostword { font-size: 28vw !important; right: -8vw; top: 22%; opacity: 0.6; }
  :root[data-lang] .hero__ghostword::before { font-size: 28vw !important; }
  .hero__photo--polaroid { transform: rotate(-1deg); padding: 12px 12px 36px; }
  .hero__tape--br { right: -10px; bottom: 14px; }
  .map__svg { height: 180px; }
}

/* Reduced-motion safety */
@media (prefers-reduced-motion: reduce) {
  .hero__ghostword,
  .hero__h1-underline path,
  .timeline__path path,
  .map__marker-pulse {
    animation: none !important;
  }
  .hero__ghostword { opacity: 1; transform: none; }
  .hero__h1-underline path { stroke-dashoffset: 0; }
  .timeline__path path { stroke-dashoffset: 0; }
}

/* =====================================================================
   MOBILE PARITY PASS — editorial-magazine quality at 375 / 540 / 768
   - Touch-first plate stack + gradient-track replacements
   - Tri-lingual safety (RU "Сильнее" wider than LV "Stiprāks")
   - 40px+ tap targets · cookie banner stack · DM bubble polish
===================================================================== */

/* ── Touch devices: gradient borders persistent (no hover) ──────────── */
@media (hover: none) and (pointer: coarse) {
  /* Two-track services: subtle persistent gradient border */
  .track::before {
    opacity: 0.55;
    animation: track-flow 9s linear infinite;
    background-size: 220% 100%;
  }
  .track:hover { transform: none; box-shadow: var(--shadow-sm); }
  .track:hover .track__media img { transform: scale(1); }

  /* Plate stack: static + soft accent glow (no hover energy) */
  .hero__plate-num {
    box-shadow: 0 0 0 2px rgba(200,82,42,0.10), 0 4px 14px -8px rgba(200,82,42,0.35);
    border-color: rgba(200,82,42,0.28);
  }
  .hero__photo--polaroid:hover .hero__plate-num,
  .hero__photo--polaroid:hover .hero__plate-num:nth-child(n) {
    transform: none;
    box-shadow: 0 0 0 2px rgba(200,82,42,0.10), 0 4px 14px -8px rgba(200,82,42,0.35);
    border-color: rgba(200,82,42,0.28);
  }
  .hero__photo--polaroid:hover { transform: rotate(-1.4deg); }
  .hero__photo--polaroid:hover .hero__photo-mask img { transform: scale(1.04); }

  /* Pricing featured plan keeps the glow on touch */
  .plan--feature::before { opacity: 0.42; }

  /* DM bubble: softer interactive feedback */
  .contact__big:hover { transform: none; box-shadow: var(--shadow); }
}

/* ── Tablet (≤768px) — preserve magazine cadence, no overflow ───────── */
@media (max-width: 768px) {
  .hero__h1 { line-height: 0.98; }
  /* Rotator: RU "Сильнее" slightly taller — give the kinetic word room */
  .rotator { height: 1.32em; min-width: 7.5ch; overflow: visible; }
  .rotator[data-kinetic] .rotator__word { will-change: transform, opacity; }
  /* Map overlay: pill + addr stack tighter, never wider than viewport */
  .map__overlay { left: 10px; bottom: 10px; gap: 5px; max-width: calc(100% - 20px); }
  .map__pill, .map__addr { font-size: 11px; padding: 6px 10px; }
}

/* ── ≤540px — touch parity refinements ──────────────────────────────── */
@media (max-width: 540px) {
  /* Lang pills: enforced 40px touch target, visible row */
  .lang { padding: 3px; gap: 0; }
  .lang__btn {
    min-height: 40px; min-width: 40px;
    padding: 8px 11px;
    font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .nav__right { gap: 8px; }
  .nav__inner { gap: 12px; }

  /* Hero ghost word: contained, no horizontal scroll */
  .hero__ghostword {
    right: -4vw !important;
    top: 18% !important;
    font-size: 30vw !important;
    -webkit-text-stroke: 1px rgba(26,26,26,0.13);
            text-stroke: 1px rgba(26,26,26,0.13);
    max-width: 110vw;
    overflow: hidden;
  }
  .hero__h1 { font-size: clamp(40px, 11vw, 52px); margin: 16px 0 22px; }

  /* Polaroid: shrink tape + recompose plate pills inside frame */
  .hero__photo--polaroid { padding: 10px 10px 30px; transform: rotate(-1deg); }
  .hero__tape { width: 64px; height: 16px; }
  .hero__tape--tl { top: -7px; left: 10px; }
  .hero__tape--br { right: -10px; bottom: 12px; }
  .hero__photo-cap { left: 18px !important; top: 18px !important; }
  .hero__plate {
    right: 14px !important; bottom: 50px !important;
    flex-direction: row; flex-wrap: wrap;
    max-width: 62%;
    gap: 5px;
    justify-content: flex-end;
  }
  .hero__plate-num { font-size: 12.5px; padding: 4px 9px; }

  /* Tracks: persistent gradient already from hover-none query above —
     ensure card stays elegant in single-column */
  .track__body { padding: 24px 22px 28px; }
  .track__title { font-size: 28px; }
  .track__cta { width: 100%; justify-content: center; }

  /* Case study: 4 stat cards already 2-col here ✓ — improve numerics */
  .case__h2 { font-size: clamp(40px, 9vw, 64px); }
  .case__metric-num { font-size: clamp(36px, 9vw, 56px); }

  /* DM-thread mobile polish */
  .contact__big-msg { font-size: 13.5px; max-width: 92%; }
  .contact__big-msg--user { font-size: 17px; padding: 7px 14px; }
  .contact__big-typing { padding: 9px 12px; }
  .contact__big-typing-lbl { font-size: 11px; padding-left: 12px; margin-left: 8px; }
  .contact__big-sub { font-size: 11px; }

  /* Contact alt rows: RU "СЕЙЧАС" wider — give label room */
  .contact__alts li { grid-template-columns: 76px 1fr; gap: 8px; font-size: 13.5px; }

  /* Cookie banner: stack vertically + full-width btn row */
  .cookie {
    left: 10px; right: 10px; bottom: 10px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: left;
  }
  .cookie__txt { font-size: 12.5px; line-height: 1.5; }
  .cookie__btns { width: 100%; justify-content: space-between; align-items: center; }
  .cookie__ok { min-height: 40px; padding: 9px 18px; flex: 0 0 auto; }
  .cookie__more { padding: 10px 4px; }

  /* Pricing single column already at <880; ensure feature glow not clipped */
  .plan--feature { isolation: isolate; }

  /* Timeline already vertical ✓ from <760px rule — verify dot alignment */
  .timeline__node { padding-left: 36px; }
  .timeline__dot { left: 10px; }
}

/* ── ≤375px (iPhone SE / Android small) — final cascade ─────────────── */
@media (max-width: 375px) {
  .nav__mark { width: 36px; height: 36px; font-size: 19px; }
  .nav__name-line { font-size: 17px; }
  .lang__btn { padding: 8px 9px; font-size: 11px; min-width: 36px; }
  .hero__h1 { font-size: 36px; }
  .hero__ghostword { font-size: 34vw !important; opacity: 0.55; }
  .case__metric-num { font-size: 32px; }
  .contact__big { padding: 14px 14px 16px; }
  .contact__big-msg--user { font-size: 16px; }
  .cookie__txt { font-size: 12px; }
}

/* ── Privacy page: multilingual headers (controlled by data-lang) ───── */
.legal[data-lang] [data-pl-lang]:not([data-pl-lang~="all"]) { display: none; }
.legal[data-lang="lv"] [data-pl-lang~="lv"] { display: revert; }
.legal[data-lang="ru"] [data-pl-lang~="ru"] { display: revert; }
.legal[data-lang="en"] [data-pl-lang~="en"] { display: revert; }
.legal__lang {
  position: fixed; top: 16px; right: 16px;
  display: inline-flex; gap: 0; padding: 3px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; z-index: 100;
}
.legal__lang button {
  min-height: 36px; min-width: 40px; padding: 6px 11px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  border-radius: 999px; color: var(--muted);
  background: transparent; border: 0; cursor: pointer;
}
.legal__lang button.is-active { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 540px) {
  .legal__lang { top: 10px; right: 10px; }
  .legal__lang button { min-height: 40px; }
}

/* =====================================================================
   MOBILE PARITY — mirror desktop proportionally (scale, don't collapse)
   Floor: 360px. Below 360px, allow strategic vertical fallbacks.
   Cascade: this block lives at the end of the file so it overrides
   earlier rules (1398, 1413, 1427, 1438, 1441, 1971, 2269, 2270…).
===================================================================== */

/* ── ≥361px: keep desktop composition, scaled ─────────────────────────── */
@media (max-width: 1080px) and (min-width: 361px) {

  /* HERO — preserve 2-column composition (text + photo) */
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(14px, 3vw, 32px);
  }

  /* Ghostword visible on mobile but constrained, no horizontal scroll */
  .hero__ghostword {
    font-size: clamp(80px, 22vw, 200px) !important;
    right: -3vw !important;
    top: 8% !important;
    opacity: 0.55;
    max-width: 105vw;
    overflow: hidden;
  }

  /* Polaroid keeps tilt + tape; just smaller */
  .hero__photo--polaroid {
    transform: rotate(-1.4deg);
    padding: clamp(10px, 1.6vw, 16px) clamp(10px, 1.6vw, 16px) clamp(28px, 4.5vw, 40px);
  }
  .hero__tape--tl { top: -8px; left: 12px; }
  .hero__tape--br { right: -12px; bottom: 16px; }

  /* Plate stack stays positioned on the photo, scaled down */
  .hero__plate {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    right: clamp(10px, 2vw, 22px) !important;
    bottom: clamp(40px, 7vw, 64px) !important;
    max-width: 50% !important;
    gap: clamp(4px, 0.8vw, 7px) !important;
    z-index: 4;
  }
  .hero__plate-num {
    font-size: clamp(11px, 2.2vw, 14px);
    padding: clamp(3px, 0.6vw, 5px) clamp(7px, 1.4vw, 11px);
  }
}

/* ── Two-track services: keep 2-col on mobile ─────────────────────────── */
@media (max-width: 880px) and (min-width: 361px) {
  .services__split {
    grid-template-columns: 1fr 1fr !important;
    gap: clamp(10px, 2vw, 18px);
  }
  .track__body { padding: clamp(14px, 2.4vw, 22px) clamp(12px, 2vw, 18px) clamp(16px, 2.6vw, 24px); }
  .track__title { font-size: clamp(15px, 3.6vw, 24px); }
  .track__cta { width: auto; padding: 9px 14px; font-size: 12px; }

  /* Pillars: keep 3-col on mobile */
  .pillars__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .pillars__item {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
    padding: clamp(18px, 3vw, 28px) clamp(10px, 1.8vw, 18px);
  }
  .pillars__item:last-child { border-right: 0 !important; }
  .pillars__num { font-size: clamp(40px, 9vw, 64px) !important; }
  .pillars__icon { width: clamp(32px, 6vw, 48px); height: clamp(32px, 6vw, 48px); margin-bottom: 8px; }
  .pillars__title { font-size: clamp(15px, 3.4vw, 22px); }
  .pillars__copy { font-size: clamp(12px, 2.6vw, 14px); }

  /* Pricing: keep 3-col on mobile */
  .pricing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(8px, 1.6vw, 14px);
  }
  .plan { padding: clamp(14px, 2.4vw, 22px) clamp(10px, 1.8vw, 16px); }
  .plan__name { font-size: clamp(13px, 2.6vw, 16px); }
  .plan__price { font-size: clamp(24px, 5.4vw, 36px); }
  .plan__cta { font-size: 12px; padding: 9px 14px; }

  /* Rail (4-col strip) — keep 4-col proportionally */
  .rail {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .rail__item {
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
    padding: clamp(12px, 2vw, 22px) clamp(8px, 1.4vw, 18px);
  }
  .rail__item:last-child { border-right: 0 !important; }
  .rail__item:nth-child(2n) { border-right: 1px solid var(--line) !important; }
  .rail__item:last-child { border-right: 0 !important; }
}

/* ── Case study 4-stat panel: keep 4-col proportional on mobile ───────── */
@media (max-width: 880px) and (min-width: 361px) {
  .case__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .case__metric {
    padding: clamp(12px, 2.2vw, 20px) clamp(6px, 1.2vw, 12px) !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  .case__metric:last-child { border-right: 0 !important; }
  .case__metric:nth-child(2n) { border-right: 1px solid var(--line) !important; }
  .case__metric:last-child { border-right: 0 !important; }
  .case__metric:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .case__metric-num {
    font-size: clamp(20px, 5.4vw, 36px) !important;
  }
  .case__metric-num small { font-size: clamp(8px, 1.6vw, 10px); }
  .case__metric-lbl {
    font-size: clamp(8px, 1.7vw, 11px);
    letter-spacing: 0.08em;
    margin-top: 6px;
  }
}

/* ── Timeline: keep horizontal flow ≥480px ────────────────────────────── */
@media (max-width: 760px) and (min-width: 480px) {
  .timeline__rail {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: clamp(4px, 1vw, 12px);
    padding: 8px 6px 0 !important;
  }
  .timeline__node {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    gap: 4px !important;
  }
  .timeline__dot {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }
  .timeline__year { font-size: clamp(14px, 3vw, 20px) !important; min-width: 0 !important; }
  .timeline__label {
    font-size: clamp(9px, 1.8vw, 12px) !important;
    max-width: 14ch !important;
    line-height: 1.3 !important;
  }
  .timeline__path { display: block !important; }
}

/* ── Gallery bento: preserve multi-tile feel ──────────────────────────── */
@media (max-width: 1080px) and (min-width: 361px) {
  .gallery__bento {
    grid-template-columns: 2fr 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    min-height: clamp(360px, 60vw, 520px) !important;
    gap: clamp(8px, 1.4vw, 14px);
  }
  .bento { aspect-ratio: auto !important; }
  .bento--lg { grid-column: 1 / 2 !important; grid-row: 1 / 3 !important; }
  .bento--wide { grid-column: auto !important; aspect-ratio: auto !important; }
}

/* ── DM contact panel: preserve proportions ───────────────────────────── */
@media (max-width: 880px) and (min-width: 361px) {
  .contact__big { padding: clamp(14px, 2.4vw, 20px); }
  .contact__big-head {
    grid-template-columns: clamp(32px, 6vw, 44px) 1fr auto !important;
    gap: clamp(8px, 1.4vw, 12px);
  }
  .contact__big-avatar {
    width: clamp(32px, 6vw, 44px) !important;
    height: clamp(32px, 6vw, 44px) !important;
    font-size: clamp(14px, 2.8vw, 18px) !important;
  }
  .contact__big-name { font-size: clamp(13px, 2.6vw, 16px) !important; }
  .contact__big-msg { font-size: clamp(12px, 2.4vw, 14px) !important; max-width: 92%; }
  .contact__big-msg--user {
    font-size: clamp(13px, 3vw, 17px) !important;
    padding: clamp(5px, 1vw, 8px) clamp(10px, 2vw, 14px) !important;
  }
  .contact__big-typing-lbl { font-size: clamp(9px, 2vw, 11px); }
  .contact__big-sub { font-size: clamp(9px, 2vw, 11px); }
  .contact__big-tag { padding: 3px 7px; font-size: clamp(8px, 1.6vw, 10px); }
}

/* ── GymLatvija map: keep horizontal SVG, no vertical stacking ────────── */
@media (max-width: 760px) {
  .map__svg { height: clamp(140px, 26vw, 200px) !important; }
  .map__overlay { left: 8px; bottom: 8px; gap: 4px; max-width: calc(100% - 16px); }
  .map__pill, .map__addr { font-size: clamp(9px, 1.8vw, 11px); padding: 5px 9px; }
}

/* ── Trilingual rotator: never clip RU "Сильнее" at any width ─────────── */
.rotator {
  min-width: max(8.5ch, 9ch) !important;
  overflow: visible !important;
}
[data-lang="ru"] .rotator { min-width: 10ch !important; }
@media (max-width: 540px) {
  .rotator { min-width: 8ch !important; }
  [data-lang="ru"] .rotator { min-width: 9ch !important; }
}
@media (max-width: 380px) {
  .rotator { min-width: 7.5ch !important; }
  [data-lang="ru"] .rotator { min-width: 8.5ch !important; }
}

/* ── Lang toggle pills: visible + ≥40px tap targets across all widths ─── */
.nav__right .lang { display: inline-flex !important; }
@media (max-width: 540px) {
  .lang {
    display: inline-flex !important;
    padding: 3px;
    gap: 0;
  }
  .lang__btn {
    min-height: 40px !important;
    min-width: 40px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
@media (max-width: 375px) {
  .lang__btn {
    min-height: 40px !important;
    min-width: 36px !important;
    padding: 8px 9px !important;
    font-size: 11px !important;
  }
}

/* ── Floor at 360px: allow strategic single-column fallbacks ──────────── */
@media (max-width: 360px) {
  .hero__grid { grid-template-columns: 1fr !important; gap: 28px; }
  .services__split { grid-template-columns: 1fr !important; }
  .timeline__rail { grid-template-columns: 1fr !important; gap: 12px; padding: 8px 0 0 !important; }
  .timeline__node { flex-direction: row !important; padding: 0 0 0 36px !important; gap: 12px !important; text-align: left !important; align-items: center !important; }
  .timeline__dot { position: absolute !important; top: 50% !important; left: 10px !important; transform: translateY(-50%) !important; }
  .timeline__path { display: none !important; }
  /* Case 4-stat: 2x2 below floor */
  .case__metrics { grid-template-columns: 1fr 1fr !important; }
  .case__metric:nth-child(2n) { border-right: 0 !important; }
  .case__metric:nth-last-child(-n+2) { border-bottom: 1px solid var(--line) !important; }
  .case__metric:nth-last-child(-n+2):nth-child(n+3) { border-bottom: 0 !important; }
  /* Pricing: stack below floor */
  .pricing__grid { grid-template-columns: 1fr !important; }
  /* Pillars: stack below floor */
  .pillars__grid { grid-template-columns: 1fr !important; }
  .pillars__item { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .pillars__item:last-child { border-bottom: 0 !important; }
  /* Rail: 2x2 below floor */
  .rail { grid-template-columns: 1fr 1fr !important; }
}

/* =====================================================================
   FINAL MOBILE HERO OVERHAUL + OVERFLOW CONTAINMENT (≤540px)
   Lives at the end — overrides every earlier mobile rule.
   Goal: editorial, breathable hero. Photo first, type second, no plate
   stack noise, no ghostword crowding, no horizontal overflow anywhere.
===================================================================== */

/* Bulletproof horizontal containment — body + html only; per-section
   overflow-x clip applied only at tablet/mobile so desktop ghostword bleed
   stays intentional. */
html, body { overflow-x: clip; max-width: 100vw; }
@media (max-width: 1080px) {
  .hero, .ticker, .services, .case, .about, .gallery, .pricing, .contact, .foot {
    overflow-x: clip;
  }
}

@media (max-width: 540px) {

  /* ── Hero shell: breathable vertical flow ─────────────────── */
  .hero {
    padding: clamp(28px, 6vw, 44px) 0 clamp(48px, 8vw, 72px);
    overflow: hidden;            /* hard contain ghostword + tape */
  }
  .hero__grid {
    grid-template-columns: 1fr !important;
    gap: clamp(24px, 5vw, 32px) !important;
    padding: 0 clamp(18px, 5vw, 24px);
  }

  /* Photo first, then copy — editorial mobile order */
  .hero__media { order: 1; gap: 14px; }
  .hero__copy  { order: 2; padding-top: 0; }

  /* ── Ghostword: hide on mobile (kills overflow risk) ──────── */
  .hero__ghostword {
    display: none !important;
  }

  /* ── Polaroid photo: full-width, gentler tilt, capped height ── */
  .hero__photo--polaroid {
    transform: rotate(-1.2deg) !important;
    padding: 10px 10px 28px !important;
    margin: 0 4px;
    max-height: 55vh;
    overflow: hidden;
  }
  .hero__photo-mask {
    aspect-ratio: 4 / 5;
    max-height: calc(55vh - 38px);
    border-radius: 56% 44% 52% 48% / 50% 54% 46% 50%;
  }
  .hero__tape { width: 56px !important; height: 14px !important; }
  .hero__tape--tl { top: -6px !important; left: 12px !important; transform: rotate(-7deg); }
  .hero__tape--br { right: -8px !important; bottom: 14px !important; transform: rotate(11deg); }
  .hero__photo-cap { left: 16px !important; top: 16px !important; }

  /* ── Plate stack: hide on mobile — too much noise ─────────── */
  .hero__plate { display: none !important; }

  /* ── H1: clamp tighter, breathing room above + below ──────── */
  .hero__h1 {
    font-size: clamp(36px, 11vw, 56px) !important;
    line-height: 1.0 !important;
    margin: 14px 0 18px !important;
    letter-spacing: -0.02em;
  }
  .hero__h1-line--italic em { word-break: normal; hyphens: none; }

  /* ── Sub copy: 38ch readable line, single-line rotator row ── */
  .hero__sub {
    font-size: 16px !important;
    line-height: 1.55 !important;
    max-width: 38ch !important;
    margin: 0 0 24px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px 0 !important;
  }
  .rotator {
    display: inline-flex !important;
    height: 1.3em !important;
    min-width: 8.5ch !important;
    font-size: 1.25em !important;
  }
  [data-lang="ru"] .rotator { min-width: 9.5ch !important; }
  .hero__sub-arrow { display: none; }
  .hero__sub-tail { display: block; }

  /* ── CTAs: full-width stacked, ≥48px hit zone ─────────────── */
  .hero__ctas {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 28px !important;
  }
  .cta {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 56px !important;
    padding: 12px 18px !important;
    justify-content: space-between !important;
  }
  .cta__main { font-size: 17px !important; }

  /* ── Stats: 3-col scaled tight (works at 360–540) ─────────── */
  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding-top: 18px !important;
  }
  .hero__stat { padding-bottom: 0 !important; border-bottom: 0 !important; }
  .hero__stat dt {
    font-size: 9.5px !important;
    letter-spacing: 0.08em !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }
  .hero__num { font-size: clamp(22px, 6.5vw, 28px) !important; }
  .hero__unit { font-size: 9.5px !important; letter-spacing: 0.06em !important; }

  /* ── Hero quote: tighter on mobile ────────────────────────── */
  .hero__quote {
    padding: 16px 18px 16px 44px !important;
    font-size: 15.5px !important;
    line-height: 1.45 !important;
  }
  .hero__quote-mark { left: 14px !important; top: 16px !important; }

  /* ── Ticker: prevent overflow, slow down on small ─────────── */
  .ticker__track { animation-duration: 30s; }
  .ticker__item { font-size: 16px !important; padding: 0 14px !important; }
  .ticker__sep { font-size: 16px !important; }

  /* ── Map overlay: cap width strictly inside frame ─────────── */
  .map { margin: 18px 0 22px !important; }
  .map__overlay { max-width: calc(100% - 16px); }
  .map__pill, .map__addr { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

  /* ── DM panel bubbles: never exceed container ─────────────── */
  .contact__big-bubble { width: 100%; }
  .contact__big-msg, .contact__big-msg--user { max-width: 100% !important; word-wrap: break-word; }
  .contact__big-typing { max-width: 100%; flex-wrap: wrap; }

  /* ── Timeline: contain dashed path width ──────────────────── */
  .timeline__path { left: 0 !important; right: 0 !important; width: 100% !important; }

  /* ── Track gradient borders: do not bleed past edge ───────── */
  .track { isolation: isolate; }
  .track::before { inset: 0 !important; }

  /* ── Section heads: tighter on mobile ─────────────────────── */
  .section-head { margin-bottom: clamp(28px, 6vw, 40px); }
  .section-head__title { font-size: clamp(30px, 8.5vw, 44px) !important; line-height: 1.05; }
  .section-head__lede { font-size: 15px; line-height: 1.55; }

  /* Ensure no element forces > 100vw */
  .container, .nav__inner, .hero__grid, .case__inner,
  .about__inner, .contact__inner, .foot__inner { max-width: 100vw; }
}

/* ── Below 380px: drop stats to 2-col if 3 crowds ─────────────── */
@media (max-width: 380px) {
  .hero__h1 { font-size: clamp(34px, 10.5vw, 42px) !important; }
  .hero__stats { grid-template-columns: 1fr 1fr !important; }
  .hero__stat:nth-child(3) { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); }
  .cta__main { font-size: 16px !important; }
  .hero__sub { font-size: 15.5px !important; }
}

/* =====================================================================
   ROUND 9 — MAGAZINE HERO REBUILD (cascade wins, lives at file end)
   Editorial poster cover · MASSIVE display type · solid color blocks
   · polaroid anchored bottom-right · stats as horizontal rail
===================================================================== */

:root {
  --sage: #8FA48C;
  --sage-2: #6F8A6E;
  --sage-soft: #DDE4D8;
}

/* ── HERO SHELL (magazine variant) ──────────────────────────────────── */
.hero--mag {
  position: relative;
  padding: clamp(20px, 3vw, 36px) 0 clamp(64px, 9vw, 120px) !important;
  overflow: hidden;
}

/* Top editorial strip — edge-to-edge thin baseline rule + mono caps */
.hero__topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  max-width: var(--container);
  margin: 0 auto clamp(36px, 6vw, 72px);
  padding: 14px var(--gutter) 14px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}
.hero__topbar-rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}
.hero__topbar-text {
  font-family: var(--sans);
  font-size: clamp(10px, 1.05vw, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-feature-settings: "tnum","ss01";
}
.hero__topbar-dot {
  color: var(--accent);
  font-weight: 700;
}

/* Solid editorial blocks — composition anchors */
.hero__block {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.hero__block--terracotta {
  top: clamp(180px, 22vw, 320px);
  left: 0;
  width: clamp(80px, 9vw, 140px);
  height: clamp(80px, 9vw, 140px);
  background: var(--accent);
  border-radius: 0;
  transform: translateX(-30%) rotate(-1deg);
}
.hero__block--sage {
  top: clamp(360px, 40vw, 560px);
  right: 0;
  width: clamp(120px, 14vw, 220px);
  height: clamp(40px, 5vw, 64px);
  background: var(--sage);
  transform: translateX(40%) rotate(1deg);
}

/* ── MAG GRID — 12-col editorial spread ─────────────────────────────── */
.hero__mag {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  row-gap: clamp(28px, 5vw, 64px);
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}

/* Headline + rotator (top) */
.hero__mag-head {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 3;
}
.hero__eyebrow {
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

/* MASSIVE display headline */
.hero__h1--mag {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 13vw, 200px) !important;
  line-height: 0.86 !important;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(20px, 3vw, 36px) !important;
  color: var(--ink);
  position: relative;
}
.hero__h1--mag .hero__h1-line {
  display: block;
  position: relative;
}
.hero__h1--mag .hero__h1-line:first-child {
  /* Subtle duotone offset for depth */
  text-shadow:
    0.04em 0.04em 0 rgba(200, 82, 42, 0.06);
}
.hero__h1--mag .hero__h1-line--italic {
  display: block;
  margin-top: clamp(-8px, -0.6vw, -4px);
  padding-left: clamp(32px, 8vw, 140px);
}
.hero__h1--mag .hero__h1-line--italic em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  display: inline-block;
  /* Drop shadow for editorial drama */
  text-shadow:
    0.022em 0.024em 0 rgba(26, 26, 26, 0.08),
    0.045em 0.05em 0 rgba(200, 82, 42, 0.18);
}
.hero__h1--mag .hero__h1-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;
  width: 100%;
  height: 0.16em;
  color: var(--accent);
}

/* Secondary display: trilingual rotator as magazine subtitle */
.hero__rotator-row {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.6vw, 22px);
  flex-wrap: wrap;
  padding-left: clamp(0px, 4vw, 80px);
}
.hero__rotator-rule {
  display: inline-block;
  width: clamp(40px, 6vw, 96px);
  height: 1px;
  background: var(--ink);
  align-self: center;
  flex: 0 0 auto;
  transform: translateY(-0.1em);
}
.hero__rotator-display {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(32px, 4.6vw, 56px) !important;
  color: var(--accent) !important;
  letter-spacing: -0.02em !important;
  height: 1.05em !important;
  min-width: 9ch !important;
  display: inline-flex !important;
  position: relative;
  overflow: visible !important;
}
[data-lang="ru"] .hero__rotator-display { min-width: 10.5ch !important; }
.hero__rotator-tag {
  font-family: var(--sans);
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Body: lede + photo (middle row) */
.hero__mag-body {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr clamp(320px, 40%, 480px);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  position: relative;
  z-index: 2;
}

.hero__lede {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(0px, 1vw, 12px);
}
.hero__sub--mag {
  font-size: clamp(16px, 1.2vw, 17px) !important;
  color: var(--ink-2);
  max-width: 36ch !important;
  margin: 0 !important;
  line-height: 1.55;
  display: block !important;
  border-left: 2px solid var(--accent);
  padding-left: clamp(12px, 1.4vw, 18px);
}

.hero__media--mag {
  position: relative;
  margin: 0;
  align-self: end;
}
.hero__photo--mag {
  transform: rotate(-2.4deg);
  padding: 22px 22px 72px !important;
  box-shadow:
    0 28px 60px -28px rgba(72, 40, 20, 0.55),
    0 8px 18px -4px rgba(26, 26, 26, 0.14),
    0 0 0 1px rgba(26, 26, 26, 0.04);
  position: relative;
  z-index: 3;
}
.hero__photo--mag::after {
  /* Sage block peeking from behind photo, magazine-poster intersect */
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 38%;
  height: 36%;
  background: var(--sage-soft);
  z-index: -1;
  border: 1px solid rgba(26, 26, 26, 0.06);
}
.hero__photo--mag .hero__photo-mask {
  border-radius: 60% 40% 56% 44% / 50% 54% 46% 50%;
}

/* Stats rail at hero bottom — wide horizontal */
.hero__stats--rail {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid var(--line-2) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: clamp(20px, 2.5vw, 32px) 0 !important;
  margin-top: clamp(20px, 4vw, 56px) !important;
  position: relative;
  z-index: 2;
}
.hero__stats--rail .hero__stat {
  padding: 4px clamp(12px, 2vw, 28px);
  border-right: 1px solid var(--line);
}
.hero__stats--rail .hero__stat:last-child { border-right: 0; }
.hero__stats--rail .hero__stat dt {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.hero__stats--rail .hero__num {
  font-size: clamp(34px, 4.4vw, 56px) !important;
}
.hero__stats--rail .hero__stat--quote dd {
  display: block;
}
.hero__stats--rail .hero__stat-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.35;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.hero__stats--rail .hero__stat-quote .hero__quote-by {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ghostword reposition for the mag layout */
.hero--mag .hero__ghostword {
  top: 38% !important;
  right: -3vw !important;
  font-size: clamp(180px, 26vw, 380px);
  z-index: 0;
  opacity: 0.85;
}

/* CTAs — preserve sizing inside lede column */
.hero__lede .hero__ctas {
  margin-bottom: 0;
  flex-wrap: wrap;
}

/* ── DESKTOP / TABLET ≥1081 — stagger blocks for poster effect ─────── */
@media (min-width: 1081px) {
  .hero__h1--mag .hero__h1-line:first-child {
    padding-left: clamp(0px, 2vw, 28px);
  }
  .hero__h1--mag .hero__h1-line--italic {
    padding-left: clamp(80px, 14vw, 220px);
  }
  .hero__rotator-row {
    padding-left: clamp(80px, 14vw, 220px);
  }
}

/* ── MEDIUM (641–1080) — keep magazine spirit, scale ───────────────── */
@media (max-width: 1080px) and (min-width: 641px) {
  .hero__mag-body {
    grid-template-columns: 1fr 38%;
    gap: clamp(20px, 3vw, 36px);
  }
  .hero__h1--mag .hero__h1-line--italic {
    padding-left: clamp(20px, 5vw, 80px);
  }
  .hero__rotator-row {
    padding-left: clamp(0px, 3vw, 48px);
  }
  .hero--mag .hero__ghostword {
    top: 42% !important;
    font-size: clamp(160px, 28vw, 260px);
    opacity: 0.55;
  }
  .hero__block--terracotta {
    width: clamp(60px, 7vw, 100px);
    height: clamp(60px, 7vw, 100px);
    top: clamp(140px, 18vw, 220px);
  }
  .hero__block--sage {
    width: clamp(80px, 10vw, 140px);
    height: clamp(36px, 4vw, 52px);
  }
  .hero__stats--rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .hero__stats--rail .hero__stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px clamp(10px, 1.6vw, 18px);
  }
  .hero__stats--rail .hero__stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .hero__stats--rail .hero__stat:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

/* ── MOBILE ≤640px — magazine spirit preserved (NOT boring) ────────── */
@media (max-width: 640px) {
  .hero--mag {
    padding: clamp(16px, 4vw, 28px) 0 clamp(48px, 10vw, 80px) !important;
  }

  /* Top strip — tighter, still mono caps */
  .hero__topbar {
    margin: 0 auto clamp(18px, 4vw, 28px);
    padding: 10px clamp(16px, 5vw, 22px);
    gap: 10px;
  }
  .hero__topbar-rule { width: 22px; }
  .hero__topbar-text {
    font-size: 9.5px;
    letter-spacing: 0.16em;
    gap: 4px 10px;
  }

  /* Massive headline still BIG on mobile */
  .hero__h1--mag {
    font-size: clamp(54px, 16vw, 110px) !important;
    line-height: 0.88 !important;
    margin: 0 0 16px !important;
    letter-spacing: -0.03em;
  }
  .hero__h1--mag .hero__h1-line:first-child {
    padding-left: 0;
  }
  .hero__h1--mag .hero__h1-line--italic {
    padding-left: clamp(20px, 8vw, 56px) !important;
    margin-top: -2px;
  }
  .hero__h1--mag .hero__h1-line--italic em {
    text-shadow:
      0.024em 0.026em 0 rgba(26, 26, 26, 0.08),
      0.04em 0.044em 0 rgba(200, 82, 42, 0.18);
  }

  /* Rotator: own line, kinetic preserved */
  .hero__rotator-row {
    padding-left: 0 !important;
    gap: 8px 12px;
    margin-bottom: clamp(20px, 5vw, 28px);
  }
  .hero__rotator-rule { width: 28px; }
  .hero__rotator-display {
    font-size: clamp(28px, 8vw, 44px) !important;
    height: 1.1em !important;
  }
  .hero__rotator-tag {
    font-size: 10.5px;
    letter-spacing: 0.16em;
  }

  /* Body: photo above (order 1), lede below (order 2) */
  .hero__mag-body {
    grid-template-columns: 1fr !important;
    gap: clamp(22px, 5vw, 32px) !important;
    align-items: stretch;
  }
  .hero__media--mag {
    order: 1;
    align-self: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .hero__photo--mag {
    transform: rotate(-1.4deg) !important;
    padding: 14px 14px 48px !important;
  }
  .hero__photo--mag::after {
    right: -10px;
    bottom: -10px;
    width: 40%;
    height: 32%;
  }
  .hero__lede {
    order: 2;
    gap: 18px;
  }
  .hero__sub--mag {
    font-size: 16px !important;
    max-width: 38ch !important;
    padding-left: 12px;
  }

  /* Plate stack hidden on mobile (round 8 spec — preserved) */
  .hero--mag .hero__plate { display: none !important; }

  /* Ghostword: hide on mobile */
  .hero--mag .hero__ghostword { display: none !important; }

  /* Editorial blocks: trim to subtle accents on mobile */
  .hero__block--terracotta {
    width: 48px;
    height: 48px;
    top: clamp(120px, 30vw, 180px);
    transform: translateX(-50%) rotate(-2deg);
  }
  .hero__block--sage {
    width: 64px;
    height: 28px;
    top: auto;
    bottom: 12vw;
    transform: translateX(60%) rotate(2deg);
  }

  /* Stats rail: 2x2 mobile grid */
  .hero__stats--rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 16px 0 !important;
    margin-top: clamp(16px, 5vw, 28px) !important;
  }
  .hero__stats--rail .hero__stat {
    padding: 10px 12px !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero__stats--rail .hero__stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .hero__stats--rail .hero__stat:nth-last-child(-n+2) {
    border-bottom: 0;
  }
  .hero__stats--rail .hero__num {
    font-size: clamp(24px, 8vw, 36px) !important;
  }
  .hero__stats--rail .hero__stat dt {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
  }
  .hero__stats--rail .hero__stat--quote {
    grid-column: 1 / -1;
    border-right: 0 !important;
    border-top: 1px solid var(--line);
    padding-top: 14px !important;
  }
  .hero__stats--rail .hero__stat-quote {
    font-size: 14.5px;
  }
}

/* ── ≤380px floor — keep readable, never boring ─────────────────────── */
@media (max-width: 380px) {
  .hero__h1--mag {
    font-size: clamp(46px, 14.5vw, 68px) !important;
  }
  .hero__rotator-display {
    font-size: clamp(26px, 7.5vw, 36px) !important;
  }
  .hero__topbar-text {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .hero__sub--mag { font-size: 15px !important; }
}

/* =====================================================================
   OVERFLOW HUNT — bulletproof horizontal containment everywhere
===================================================================== */
html {
  overflow-x: clip !important;
  max-width: 100vw;
}
body {
  overflow-x: clip !important;
  max-width: 100vw;
}
.hero, .hero--mag, .ticker, .services, .pillars, .case, .about,
.gallery, .pricing, .contact, .foot, .timeline, .map {
  overflow-x: clip;
}

/* Common culprits — keep contained at every viewport */
.rotator { max-width: 100%; }
.ticker__track { max-width: 100vw; }
.ticker__row { max-width: none; }
.contact__big-msg, .contact__big-msg--user {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.map__svg { max-width: 100%; }
.timeline__path { max-width: 100%; }
.track::before { max-width: 100%; }
.hero__h1, .hero__h1--mag { max-width: 100%; word-break: normal; overflow-wrap: break-word; }

/* Ghostword: clamp inside hero — never cause horizontal scroll */
.hero__ghostword {
  max-width: 100vw;
  overflow: hidden;
}

/* On the very narrow phone, ensure nothing exceeds viewport */
@media (max-width: 1440px) {
  .hero--mag,
  .hero__mag {
    max-width: 100%;
  }
}
@media (max-width: 375px) {
  .hero__h1--mag { font-size: clamp(42px, 13vw, 58px) !important; }
  .hero__rotator-display { font-size: clamp(24px, 7vw, 32px) !important; }
  .hero__topbar { padding: 8px 14px; }
  .hero__topbar-text { font-size: 8.5px; gap: 3px 8px; }
}
