/* CALIC v2 · editorial institucional (base Stitch)
   Tokens, componentes y estados. El layout fino vive en utilidades de Tailwind en index.html. */

:root {
  --paper: #fff8f8;
  --card: #ffffff;
  --tint: #f9eaef;
  --tint-2: #f3e1e4;
  --ink: #211a1d;
  --ink-2: #564242;
  --line: #ead8db;
  --line-strong: #d4bcc0;
  --wine: #8b2635;
  --wine-deep: #6c0c20;
  --rose: #d98a96;
  --obsidian: #161416;
  --on-dark: #fcedf2;
  --on-dark-2: rgba(252, 237, 242, 0.76);
  --line-dark: rgba(252, 237, 242, 0.18);
  --error: #b3261e;
  --radius: 4px;
  --radius-lg: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --nav-h: 60px;
  --mobile-bar-h: 64px;
}

/* ---------- Reset (Tailwind preflight is disabled in the CDN config so these rules win) ---------- */
*, *::before, *::after { box-sizing: border-box; }
figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

::selection { background: var(--wine); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 400; margin: 0; }
p, li, blockquote { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--rose); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container-x { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container-x { padding-inline: 32px; } }
@media (min-width: 1024px) { .container-x { padding-inline: 48px; } }

.section { padding-block: 72px; }
@media (min-width: 1024px) { .section { padding-block: 112px; } }
.hairline-top { border-top: 1px solid var(--line); }

/* ---------- Type ---------- */
.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.display-1 {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 1.4rem + 8vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.h2 em, .display-1 em, .h3 em { color: var(--wine); }
.on-dark .h2 em { color: var(--rose); }
.h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem); line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.body-muted { color: var(--ink-2); }
.small { font-size: 0.875rem; line-height: 1.55; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; line-height: 1.3;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine);
}
.kicker::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.45; }
.kicker--plain::after { display: none; }
.on-dark .kicker { color: var(--rose); }

/* ---------- Pills & chips ---------- */
/* Inspired by uiverse.io/kamehame-ha/swift-penguin-73 (MIT): tinted fill + same-hue hairline border */
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: 0.01em;
  background: rgba(139, 38, 53, 0.07); color: var(--wine-deep);
  border: 1px solid rgba(139, 38, 53, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.pill--outline { background: rgba(255, 255, 255, 0.7); border-color: var(--line-strong); color: var(--ink-2); }
.pill__dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.14); }

/* ---------- Icons ---------- */
.ico { width: 16px; height: 16px; flex: none; }
.ico--lg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  --orb: 40px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1.1; letter-spacing: 0.005em;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, color 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease, transform 0.16s var(--ease-out);
}
.btn > * { position: relative; z-index: 1; }
.btn:active { transform: scale(0.98); }
.btn .ico { transition: transform 0.45s var(--ease-out); }
.btn--sm { --orb: 36px; min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { --orb: 48px; min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* Primary: arrow orb that expands into a full fill.
   Inspired by uiverse.io/cssbuttons-io/massive-mayfly-74 (MIT) */
.btn--primary, .btn--light { padding-left: calc(var(--orb) + 18px); }
.btn--primary::before, .btn--light::before {
  content: ""; position: absolute; z-index: 0; top: 50%; left: 4px;
  width: var(--orb); height: var(--orb); margin-top: calc(var(--orb) / -2);
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.65, 0, 0.076, 1), background-color 0.3s ease;
}
.btn--primary > .ico, .btn--light > .ico {
  position: absolute; left: calc(4px + (var(--orb) - 16px) / 2); top: 50%; margin-top: -8px;
}
.btn--primary { background: var(--wine); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px -10px rgba(108, 12, 32, 0.6); }
.btn--primary::before { background: var(--wine-deep); }
.btn--light { background: var(--on-dark); color: var(--obsidian); }
.btn--light::before { background: var(--wine); }
.btn--light > .ico { color: #fff; }

/* Secondary: hairline ring with a centred fill that blooms outward.
   Inspired by uiverse.io/gharsh11032000/loud-chicken-53 (MIT) */
.btn--secondary, .btn--ghost-light { background: transparent; border-color: transparent; }
.btn--secondary { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost-light { color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(252, 237, 242, 0.38); }
.btn--secondary::before, .btn--ghost-light::before {
  content: ""; position: absolute; z-index: 0; top: 50%; left: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  transform: scale(0); opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.3s ease;
}
.btn--secondary::before { background: var(--ink); }
.btn--ghost-light::before { background: var(--on-dark); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::before, .btn--light:hover::before { width: calc(100% - 8px); }
  .btn--primary:hover > .ico, .btn--light:hover > .ico { transform: translate(3px, -3px); }
  .btn--light:hover { color: #fff; }
  .btn--secondary:hover::before, .btn--ghost-light:hover::before { transform: scale(18); opacity: 1; }
  .btn--secondary:hover { color: var(--paper); }
  .btn--ghost-light:hover { color: var(--obsidian); }
  .btn--secondary:hover .ico--nudge, .btn--ghost-light:hover .ico--nudge { transform: translate(3px, -3px); }
  .btn:hover .ico--down { transform: translateY(3px); }
}
.btn--primary:focus-visible::before, .btn--light:focus-visible::before { width: calc(100% - 8px); }
.btn--light:focus-visible { color: #fff; }

/* Text link: colour sweep across the label plus an underline that draws in.
   Inspired by uiverse.io/satyamchaudharydev/dry-sloth-51 (MIT) */
.link {
  --link-a: var(--wine); --link-b: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--link-a);
  -webkit-tap-highlight-color: transparent;
}
.link::before { content: ""; position: absolute; left: 0; right: 24px; bottom: 9px; height: 1px; background: currentColor; opacity: 0.3; }
.link::after {
  content: ""; position: absolute; left: 0; right: 24px; bottom: 9px; height: 1px; background: var(--link-b);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.45s var(--ease-out);
}
.link__text {
  background-image: linear-gradient(90deg, var(--link-b) 50%, var(--link-a) 50%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transition: background-position 0.45s var(--ease-out);
}
.link .ico { transition: transform 0.35s var(--ease-out) 0.08s, color 0.3s ease; }
.on-dark .link { --link-a: var(--rose); --link-b: #fff; }
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleX(1); }
  .link:hover .link__text { background-position: 0 0; }
  .link:hover .ico { transform: translate(3px, -3px); color: var(--link-b); }
}
.link:focus-visible::after { transform: scaleX(1); }

/* Round icon button (carousels) */
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.icon-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }

/* ---------- Header (floating capsule) ---------- */
.site-header { position: fixed; z-index: 50; top: 12px; left: 0; right: 0; display: flex; justify-content: center; padding-inline: 12px; pointer-events: none; }
@media (min-width: 1024px) { .site-header { top: 20px; } }
.capsule {
  pointer-events: auto;
  position: relative;
  width: min(1120px, 100%);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: rgba(22, 20, 22, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px -6px rgba(22, 20, 22, 0.28);
  color: var(--on-dark);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 6px; border-radius: 999px; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--wine); color: #fff;
  font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1;
}
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-family: var(--font-serif); font-weight: 500; font-size: 18px; letter-spacing: 0.04em; }
.brand__name span { font-size: 12px; color: var(--on-dark-2); letter-spacing: 0.02em; }

.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--on-dark-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); } }
.nav-links a[aria-current="true"] { color: #fff; }

.capsule .btn--primary { box-shadow: none; }
.capsule .btn--primary:focus-visible, .capsule a:focus-visible, .capsule button:focus-visible { outline-color: var(--rose); }

.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 0; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.menu-btn:active { transform: scale(0.96); }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn__lines { position: relative; width: 18px; height: 10px; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu-panel {
  pointer-events: auto;
  position: absolute; top: calc(var(--nav-h) + 8px); left: 0; right: 0;
  padding: 12px; border-radius: 22px;
  background: var(--obsidian);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -12px rgba(22, 20, 22, 0.4);
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0.25s;
}
.menu-panel[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none; }
.menu-panel a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-radius: 12px;
  font-family: var(--font-serif); font-size: 24px; color: var(--on-dark);
}
.menu-panel a + a { border-top: 1px solid var(--line-dark); }
.menu-panel a:active { background: rgba(255, 255, 255, 0.06); }
.menu-panel p { padding: 12px 14px 6px; font-size: 13px; color: var(--on-dark-2); }
@media (min-width: 1024px) { .menu-panel { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding-top: 116px; padding-bottom: 56px; }
@media (min-width: 1024px) { .hero { padding-top: 148px; padding-bottom: 96px; } }
.hero-line { display: block; overflow: clip; padding: 0 0.12em 0.1em 0; margin-bottom: -0.1em; }
.hero-line > span { display: block; will-change: transform; }
.hero-quote { font-family: var(--font-serif); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.25; font-style: italic; color: var(--ink); }
.hero-figure { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .hero-figure img { aspect-ratio: 4 / 5; } }
.hero-figure__card {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 16px 18px; border-radius: var(--radius);
  background: rgba(255, 248, 248, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
@media (min-width: 640px) { .hero-figure__card { left: 20px; right: auto; bottom: 20px; max-width: 340px; padding: 20px 22px; } }

/* Motion pre-states: only when JS has confirmed motion is allowed (class added in <head>) */
.motion .hero-line > span { transform: translateY(105%); }
.motion [data-hero-fade] { opacity: 0; }
.motion .hero-figure { clip-path: inset(100% 0 0 0); }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--card); }
.trust__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust__item { padding: 20px 16px 22px 0; border-top: 1px solid var(--line); }
.trust__item:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
@media (min-width: 1024px) {
  .trust__item { border-top: 0; padding: 4px 24px; border-left: 1px solid var(--line); }
  .trust__item:nth-child(2n) { padding-left: 24px; }
}
.trust__item small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.trust__item strong { display: block; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.2; margin-top: 2px; }
.trust__num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--wine); letter-spacing: 0.06em; }

/* ---------- Approach (stages, pinned on desktop) ---------- */
.stages { display: grid; gap: 56px; }
.stage { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }
.stage__num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.stage__eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--wine); }
.stage__media { position: relative; padding: 0 12% 12% 0; }
.stage__media .img-a { border-radius: var(--radius); overflow: hidden; }
.stage__media .img-a img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.stage__media .img-b {
  position: absolute; right: 0; bottom: 0; width: 42%;
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 18px 40px -18px rgba(33, 26, 29, 0.45);
}
.stage__media .img-b img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.stage-rail { display: none; }

/* Pinned mode (class added by JS inside a desktop + motion media query) */
.is-pinned .stage-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.stage-rail__item { position: relative; padding-top: 14px; font-size: 14px; color: var(--ink-2); transition: color 0.3s ease; }
.stage-rail__item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.stage-rail__item i { position: absolute; top: -0.5px; left: 0; height: 2px; width: 100%; background: var(--wine); transform: scaleX(0); transform-origin: left center; }
.stage-rail__item b { font-family: var(--font-mono); font-size: 12px; margin-right: 8px; color: var(--wine); font-weight: 600; }
.stage-rail__item.is-active { color: var(--ink); }
.section.is-pinned-section { padding-top: 104px; padding-bottom: 32px; min-height: 100vh; }
.is-pinned .stage-rail { margin-top: 32px; }
.is-pinned .stages { position: relative; height: clamp(400px, calc(100vh - 330px), 600px); display: block; margin-top: 0; }
.is-pinned .stage { position: absolute; inset: 0; pointer-events: none; }
.is-pinned .stage__copy, .is-pinned .stage__media { pointer-events: auto; }
.is-pinned .stage__media .img-a img { aspect-ratio: auto; height: clamp(300px, calc(100vh - 410px), 480px); }

/* ---------- Manifesto + marquee ---------- */
.manifesto-lead { font-family: var(--font-serif); font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; }
.manifesto-lead em { color: var(--wine); display: block; }
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--card); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding: 22px 18px; white-space: nowrap; }
.marquee__group span { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1; color: var(--ink); }
.marquee__group i { font-style: normal; font-size: 12px; color: var(--rose); }

/* ---------- Services ---------- */
.svc-row {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px;
  padding: 24px 12px 24px 0; border-top: 1px solid var(--line); cursor: default; outline-offset: 4px;
  transition: background-color 0.25s ease;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--wine); transform: scaleY(0); transform-origin: top; transition: transform 0.35s var(--ease-out); }
.svc-row__num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--wine); padding-top: 8px; }
.svc-row h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.875rem); line-height: 1.15; letter-spacing: -0.01em; transition: color 0.25s ease; }
.svc-row p { color: var(--ink-2); max-width: 56ch; margin-top: 6px; }
.svc-row__img { grid-column: 1 / -1; margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.svc-row__img img { aspect-ratio: 7 / 5; object-fit: cover; width: 100%; }
@media (min-width: 1024px) {
  .svc-row { padding-left: 20px; grid-template-columns: 56px minmax(0, 1fr); }
  .svc-row__img { display: none; }
  .svc-row.is-active { background: var(--card); }
  .svc-row.is-active::before { transform: scaleY(1); }
  .svc-row.is-active h3 { color: var(--wine); }
}
.svc-preview { position: sticky; top: 112px; border-radius: var(--radius); overflow: hidden; background: var(--tint); aspect-ratio: 7 / 8; }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.5s ease, transform 0.9s var(--ease-out); }
.svc-preview img.is-active { opacity: 1; transform: scale(1); }
.svc-preview__label {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(22, 20, 22, 0.78); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}

/* ---------- Cards (cases) ---------- */
/* Inspired by uiverse.io/Javierrocadev/lovely-panther-15 (MIT): a second layer sits offset behind
   the card and slides out as the card lifts, like a stacked file. */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 6px 6px 0 -1px var(--tint-2), 6px 6px 0 0 var(--line);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}
.card__media { position: relative; overflow: hidden; background: var(--tint); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(108, 12, 32, 0) 55%, rgba(108, 12, 32, 0.32) 100%); opacity: 0; transition: opacity 0.5s ease; }
@media (hover: hover) and (pointer: fine) {
  .card--lift:hover {
    transform: translate(-2px, -4px); border-color: var(--line-strong);
    box-shadow: 12px 12px 0 -1px var(--tint-2), 12px 12px 0 0 var(--line-strong), 0 26px 40px -30px rgba(108, 12, 32, 0.5);
  }
  .card--lift:hover .card__media img { transform: scale(1.04); }
  .card--lift:hover .card__media::after { opacity: 1; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .card__media img { height: 100%; aspect-ratio: auto; min-height: 220px; }
}
.case-type { font-family: var(--font-serif); font-style: italic; font-size: 1.125rem; color: var(--wine); }
.meta { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2); }

/* Corner brackets that draw in on hover (cities, active service row, photo cards).
   Inspired by uiverse.io/LeHuyHieu/little-skunk-12 (MIT) */
.corners { position: absolute; inset: 12px; z-index: 2; pointer-events: none; color: #fff; }
.corners::before, .corners::after {
  content: ""; position: absolute; width: 0; height: 0; opacity: 0; border: 0 solid currentColor;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), opacity 0.2s ease;
}
.corners::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.corners::after { right: 0; bottom: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
@media (hover: hover) and (pointer: fine) {
  .city:hover .corners::before, .city:hover .corners::after,
  .photo-card:hover .corners::before, .photo-card:hover .corners::after { width: 22px; height: 22px; opacity: 1; }
}

.corners--wine { inset: 8px; color: var(--wine); }
@media (min-width: 1024px) {
  .svc-row.is-active .corners--wine::before, .svc-row.is-active .corners--wine::after { width: 16px; height: 16px; opacity: 1; }
}

/* Photo cards: clean at rest, full photo under a dark-wine gradient on hover; photo always on touch.
   Inspired by uiverse.io/SmookyDev/ugly-baboon-35 (MIT): the card flips to dark with an outlined numeral. */
.photo-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 300px; padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  transition: color 0.45s ease, border-color 0.45s ease, transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.photo-card--top { justify-content: flex-start; gap: 40px; }
@media (min-width: 1024px) { .photo-card--tall { min-height: 420px; padding: 32px; } }
.photo-card__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 0.6s ease, transform 1s var(--ease-out);
}
.photo-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s ease;
  background: linear-gradient(180deg, rgba(70, 10, 24, 0.32) 0%, rgba(60, 8, 20, 0.66) 45%, rgba(34, 6, 13, 0.94) 100%);
}
.photo-card__num {
  font-family: var(--font-serif); font-size: 64px; line-height: 0.9; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--wine); transition: -webkit-text-stroke-color 0.45s ease;
}
.photo-card h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.875rem); line-height: 1.15; letter-spacing: -0.01em; }
.photo-card p { margin-top: 10px; color: var(--ink-2); max-width: 44ch; transition: color 0.45s ease; }
.photo-card .corners { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .photo-card:hover { color: #fff; border-color: transparent; transform: translateY(-4px); box-shadow: 0 26px 44px -28px rgba(60, 8, 20, 0.75); }
  .photo-card:hover .photo-card__img { opacity: 1; transform: scale(1); }
  .photo-card:hover::before { opacity: 1; }
  .photo-card:hover p { color: rgba(255, 255, 255, 0.88); }
  .photo-card:hover .photo-card__num { -webkit-text-stroke-color: var(--rose); }
}
@media (hover: none) {
  .photo-card { color: #fff; border-color: transparent; }
  .photo-card__img { opacity: 1; transform: none; }
  .photo-card::before { opacity: 1; }
  .photo-card p { color: rgba(255, 255, 255, 0.88); }
  .photo-card__num { -webkit-text-stroke-color: var(--rose); }
}

/* ---------- Before / After ---------- */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--obsidian); aspect-ratio: 3 / 2; --pos: 50%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 20, 22, 0.15); pointer-events: none; }
.compare__handle {
  position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--wine); pointer-events: none;
  box-shadow: 0 8px 20px -6px rgba(22, 20, 22, 0.45);
  transition: transform 0.16s var(--ease-out);
}
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare input[type="range"]:focus-visible ~ .compare__handle { outline: 3px solid var(--rose); outline-offset: 3px; }
.compare:active .compare__handle { transform: scale(0.94); }
.compare__label {
  position: absolute; top: 14px; padding: 6px 14px; border-radius: 999px; pointer-events: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3;
  background: rgba(22, 20, 22, 0.8); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.compare__label--before { left: 14px; }
.compare__label--after { right: 14px; background: rgba(255, 248, 248, 0.94); color: var(--wine-deep); }

.ba-tab {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; width: 100%;
  min-height: 44px; padding: 18px 16px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.16s var(--ease-out);
}
.ba-tab:active { transform: scale(0.99); }
.ba-tab + .ba-tab { margin-top: 12px; }
.ba-tab b { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--wine); padding-top: 4px; }
.ba-tab strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.ba-tab span { grid-column: 2; font-size: 14px; color: var(--ink-2); }
.ba-tab[aria-pressed="true"] { background: var(--card); border-color: var(--wine); box-shadow: inset 2px 0 0 var(--wine); }
@media (hover: hover) and (pointer: fine) { .ba-tab:not([aria-pressed="true"]):hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.6); } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--tint); border-block: 1px solid var(--line); }
.quote-mark { font-family: var(--font-serif); font-size: 72px; line-height: 0.6; color: var(--wine); height: 36px; }
.quote {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem); line-height: 1.28; letter-spacing: -0.01em;
  max-width: 30ch; margin-inline: auto; color: var(--ink);
}
.testimonial[hidden] { display: none; }

/* ---------- Process ---------- */
.process-rail { position: relative; height: 1px; background: var(--line-strong); }
.process-rail i { position: absolute; inset: -0.5px 0 auto 0; height: 2px; background: var(--wine); transform-origin: left center; }
.step__num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--wine); }
.step__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--wine); margin-top: -6px; }

/* ---------- DGCP numbers ---------- */
.on-dark { background: var(--obsidian); color: var(--on-dark); }
.numbers__grid { display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 768px) { .numbers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.number { padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 768px) { .number { padding: 36px 32px 8px; border-bottom: 0; border-left: 1px solid var(--line-dark); } .number:first-child { border-left: 0; padding-left: 0; } }
.number strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.5rem, 2.4rem + 4vw, 6rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--on-dark); }
.number span { display: block; margin-top: 14px; color: var(--on-dark-2); max-width: 30ch; }
.source { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-2); }

/* ---------- Cities ---------- */
.city-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 480px) { .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.city {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff;
  background-color: #5e1422;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 11px),
    linear-gradient(165deg, #8b2635 0%, #5a1322 55%, #2a0a12 100%);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
@media (min-width: 480px) { .city { aspect-ratio: 1 / 1; } }
@media (min-width: 1024px) { .city { padding: 24px; } }
.city img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--pos-m, var(--pos, 50% 50%));
  transition: transform 1s var(--ease-out), filter 0.6s ease;
}
@media (min-width: 480px) { .city img { object-position: var(--pos, 50% 50%); } }
.city::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22, 20, 22, 0) 38%, rgba(40, 8, 16, 0.55) 68%, rgba(34, 6, 13, 0.9) 100%);
}
.city__landmark { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, 0.9); max-width: 28ch; }
.city h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.08; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .city:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -28px rgba(60, 8, 20, 0.7); }
  .city:hover img { transform: scale(1.05); filter: saturate(1.08); }
}

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 #fff; font-size: 14px; color: var(--ink);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }

/* ---------- Form ---------- */
.form-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 18px; box-shadow: 0 24px 48px -36px rgba(108, 12, 32, 0.35); }
@media (min-width: 768px) { .form-panel { padding: 36px; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font: 400 16px/1.4 var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #8a7477; }
select.input {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23564242' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea.input { min-height: 132px; resize: vertical; }
.input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--tint-2); }
.input:user-invalid { border-color: var(--error); }
.input:user-invalid:focus { box-shadow: 0 0 0 3px #fbe2e0; }
.hint { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--wine); cursor: pointer; }
.consent a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.steps-ind { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); }
.steps-ind span.is-active { color: var(--wine); }
.steps-ind i { width: 24px; height: 1px; background: var(--line-strong); }

.success { text-align: left; }
.success[hidden] { display: none; }
.success__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint-2); color: var(--wine); }
.success h3:focus { outline: none; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 12px; align-items: center;
  min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary b { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--wine); }
.faq-item summary strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.25; transition: color 0.2s ease; }
.faq-plus { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.3s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--ink); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--wine); border-color: var(--wine); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #fff; }
.faq-item[open] summary strong { color: var(--wine); }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover strong { color: var(--wine); } }
.faq-item__body { padding: 0 48px 24px 48px; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 639px) { .faq-item__body { padding: 0 0 22px 48px; } }

/* ---------- Checklist ---------- */
.booklet { position: relative; width: min(300px, 78%); margin-inline: auto; transform: rotate(-3deg); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(33, 26, 29, 0.55), 0 2px 0 rgba(255, 255, 255, 0.4) inset; }
.booklet img { width: 100%; aspect-ratio: 0.72; object-fit: cover; }
.booklet__title { position: absolute; left: 0; right: 0; top: 18%; text-align: center; font-family: var(--font-serif); color: #f8e8eb; line-height: 1.1; }
.booklet__title b { display: block; font-weight: 500; font-size: 30px; letter-spacing: 0.12em; }
.booklet__title span { display: block; margin-top: 6px; font-style: italic; font-size: 20px; }

/* ---------- Contact ---------- */
.contact-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: 48px 22px; }
@media (min-width: 768px) { .contact-card { padding: 88px 64px; } }
.contact-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(22, 20, 22, 0.92) 0%, rgba(22, 20, 22, 0.78) 55%, rgba(22, 20, 22, 0.5) 100%); }
.contact-card a.inline { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-word { font-family: var(--font-serif); font-size: clamp(4rem, 2rem + 9vw, 9rem); line-height: 0.85; letter-spacing: -0.03em; color: var(--ink); }
.footer h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine); margin-bottom: 8px; }
.footer-links a { display: flex; align-items: center; min-height: 40px; color: var(--ink); transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--wine); } }
.footer-legal { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.footer-legal a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile contact bar ---------- */
.mobile-bar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 20, 22, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.16s var(--ease-out), background-color 0.2s ease;
}
.mobile-bar a:active { transform: scale(0.98); }
.mobile-bar a:first-child { color: var(--on-dark); border: 1px solid rgba(252, 237, 242, 0.3); }
.mobile-bar a:last-child { background: var(--wine); color: #fff; }
.mobile-bar a:focus-visible { outline-color: var(--rose); }

/* ---------- Reduced motion: no transforms, keep color/opacity feedback ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .btn:active, .icon-btn:active, .ba-tab:active, .mobile-bar a:active { transform: none; }
}
