/* =========================================================
   LemonTalks — Homepage styles
   Edit colours / fonts in :root. Sections follow HTML order.
   ========================================================= */

:root {
  /* Colours */
  --red: #D3030E;          /* brand red */
  --red-deep: #A8020B;     /* shade for the "A" card */
  --ink: #0c0c0c;          /* black sections + text */
  --paper: #F2EFE9;        /* cream background */
  --paper-2: #E9E6DF;      /* light card */
  --grey: #D6D5D1;         /* grey card */
  --white: #ffffff;
  --muted: rgba(255,255,255,.62);

  /* Type */
  --f-display: "Anton", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 3vw, 2.75rem);
  --max: 1680px;
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Accessibility */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: .6rem 1rem;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Shared type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 7.4vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--white);
}
.display--ink { color: var(--ink); }
.display--sm { font-size: clamp(2.2rem, 4.4vw, 5rem); line-height: .95; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--paper); }

.line { display: block; overflow: hidden; padding-bottom: .02em; }
.line > span { display: inline-block; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(242, 239, 233, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow .4s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-weight: 800; font-size: 1.45rem; letter-spacing: -.045em;
  display: inline-flex; align-items: baseline;
}
.logo__dot { width: .26em; height: .26em; background: var(--red); margin-left: .06em; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 3rem); }
.nav__list { display: flex; gap: clamp(1rem, 2.2vw, 2.6rem); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.nav__list a { position: relative; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--red); color: var(--ink); transition: background .3s;
}
.nav__cta svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease); }
.nav__cta:hover { background: var(--ink); color: var(--white); }
.nav__cta:hover svg { transform: translate(2px, -2px); }

/* ---------- Menu toggle + mobile menu ---------- */
.menu-toggle { display: none; align-items: center; gap: .7rem; font-size: .88rem; font-weight: 500; height: 40px; }
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: calc(100% - 1.5px); }
.menu-open .menu-toggle__bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink); color: var(--paper);
  padding-top: calc(var(--header-h) + 2rem);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu__inner ul { display: flex; flex-direction: column; gap: .2rem; }
.mobile-menu__inner li { overflow: hidden; }
.mobile-menu__inner a {
  display: inline-block; font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 5rem); line-height: 1.02;
  transform: translateY(105%); transition: transform 1s var(--ease), color .3s;
  transition-delay: calc(var(--i, 0) * .06s + .25s);
}
.mobile-menu__inner a:hover { color: var(--red); }
.menu-open .mobile-menu__inner a { transform: none; }
.mobile-menu__foot { padding-bottom: 2rem; font-size: .9rem; opacity: 0; transition: opacity .8s ease .6s; }
.menu-open .mobile-menu__foot { opacity: .8; }
.menu-open .site-header { background: var(--ink); color: var(--paper); box-shadow: none; }
.menu-open .logo__dot { background: var(--red); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr);
  padding-top: var(--header-h);
  min-height: clamp(460px, 62vw, 860px);
}
.hero__copy {
  position: relative;
  padding: clamp(1.5rem, 3vw, 3rem) var(--gutter) clamp(3rem, 5vw, 5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.8rem, 11vw, 13rem);
  line-height: .86; letter-spacing: -.012em;
}
.hero__title .line { white-space: nowrap; }
.line--red { color: var(--red); }
.hero__lede { margin-top: clamp(1rem, 2vw, 1.8rem); font-size: clamp(1rem, 1.55vw, 1.4rem); font-weight: 500; line-height: 1.3; max-width: 32ch; }

.round-btn {
  position: absolute; right: clamp(1rem, 4vw, 4.5rem); bottom: calc(-1 * clamp(2.2rem, 3.6vw, 3.6rem));
  z-index: 3;
  width: clamp(92px, 11vw, 150px); aspect-ratio: 1;
  border-radius: 50%; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  font-size: clamp(.9rem, 1.2vw, 1.15rem); font-weight: 500; line-height: 1.1; text-align: center;
  transition: background .4s;
}
.round-btn svg { width: 36px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .6s var(--ease); }
.round-btn:hover { background: var(--red); }
.round-btn:hover svg { transform: translateX(6px); }

.hero__media { position: relative; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__tags {
  position: absolute; z-index: 1; bottom: 7%; right: 7%;
  color: var(--white); font-size: clamp(.62rem, .8vw, .8rem); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; line-height: 2;
}

/* =========================================================
   BANNER
   ========================================================= */
.banner {
  position: relative; overflow: hidden; color: var(--white);
  height: clamp(440px, 43vw, 780px);
  display: flex; align-items: flex-end;
}
.banner__media { position: absolute; inset: 0; overflow: hidden; }
.banner__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 62% 50%; will-change: transform; }
.banner__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 45%, transparent 70%),
              linear-gradient(0deg, rgba(0,0,0,.45) 0%, transparent 40%);
}
.banner__copy { position: relative; padding-bottom: clamp(2rem, 4vw, 4rem); }
.banner__title { font-weight: 800; font-size: clamp(3rem, 6.4vw, 7.4rem); line-height: .92; letter-spacing: -.045em; }
.banner__caption { margin-top: 1.4rem; font-size: .82rem; font-weight: 500; opacity: .9; }

/* =========================================================
   WORK
   ========================================================= */
.work { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 5rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: clamp(1.4rem, 2vw, 2rem); }

.filters { display: flex; align-items: center; gap: 1.4rem; padding-top: 2.6rem; font-size: .88rem; color: var(--muted); min-width: 280px; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: .8rem; }
.filters__btn { position: relative; color: var(--muted); transition: color .3s; }
.filters__btn:hover, .filters__btn[aria-pressed="true"] { color: var(--white); }
.filters__btn[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-.8rem - 1px); height: 2px; background: var(--red); }

.case { margin-top: clamp(1rem, 1.6vw, 1.5rem); transition: opacity .6s var(--ease); }
.case.is-dimmed { opacity: .18; }
.case__media { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: clamp(240px, 27vw, 520px); } /* ~16:9 per image */
.case__media figure { position: relative; overflow: hidden; background: #1a1a1a; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.case:hover .case__media img { transform: scale(1.04); }

.case__meta { display: grid; grid-template-columns: 1fr 1fr auto; align-items: baseline; gap: 1rem; padding: 1rem 0 clamp(1.6rem, 3vw, 2.6rem); }
.case__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 3.3vw, 3.4rem); line-height: 1; letter-spacing: .005em; }
.case__tags, .case__status { font-size: .82rem; color: var(--muted); }
.case__tags { color: var(--white); }

/* =========================================================
   EXPERTISE
   ========================================================= */
.expertise { padding: clamp(1.5rem, 2vw, 2rem) 0; }
.expertise__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.expertise__head { padding-block: 2rem; }
.expertise .display { font-size: clamp(2.8rem, 6.6vw, 7.6rem); }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.2vw, 1rem); }
.service {
  position: relative; overflow: hidden;
  aspect-ratio: 1.64;
  padding: clamp(.9rem, 1.6vw, 1.4rem);
  display: flex; flex-direction: column;
}
.service__num { font-size: .78rem; font-weight: 500; }
.service__title { font-size: clamp(.95rem, 1.35vw, 1.25rem); font-weight: 500; line-height: 1.2; margin-top: .3rem; position: relative; z-index: 1; }
.service__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.service:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.service__link:focus-visible { outline: none; }
.service__art { position: absolute; transition: transform 1s var(--ease); }

.service--red { background: var(--red); color: var(--white); }
.service--black { background: var(--ink); color: var(--white); }
.service--paper { background: var(--paper-2); outline: 1px solid rgba(0,0,0,.14); outline-offset: -1px; }
.service--grey { background: var(--grey); }

.service__art--letter { font-family: var(--f-display); font-size: clamp(7rem, 15vw, 16rem); line-height: .8; color: var(--red-deep); right: 0; bottom: -.06em; }
.service__art--globe { right: -8%; bottom: -18%; width: 58%; fill: none; stroke: var(--white); stroke-width: .7; }
.service__art--star { right: 3%; bottom: -12%; width: 45%; fill: var(--red); }
.service__art--arrow { right: 6%; bottom: 8%; width: 36%; fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: square; }

.service:hover .service__art--letter { transform: translateY(-4%) scale(1.04); }
.service:hover .service__art--globe { transform: rotate(-18deg); }
.service:hover .service__art--star { transform: rotate(60deg); }
.service:hover .service__art--arrow { transform: translate(6%, -6%); }

/* =========================================================
   STUDIO
   ========================================================= */
.studio { display: grid; grid-template-columns: .88fr 1fr; min-height: clamp(260px, 23.5vw, 440px); }
.studio__media { position: relative; overflow: hidden; }
.studio__media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 55% 50%; will-change: transform; }
.studio__copy { padding: clamp(2rem, 4vw, 4rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.studio .eyebrow { margin-bottom: .8rem; }

.line-link {
  display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.6rem;
  font-size: .9rem; font-weight: 500; align-self: flex-start;
  padding-bottom: .3rem; border-bottom: 1px solid var(--ink);
}
.line-link svg { width: 60px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .6s var(--ease); }
.line-link:hover svg { transform: translateX(8px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--red); padding: clamp(2rem, 4vw, 3.5rem) 0; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.contact .display { font-size: clamp(3rem, 7.8vw, 9rem); }
.pill-btn {
  display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.4rem;
  background: var(--white); color: var(--ink); padding: .95rem 1.4rem;
  font-size: .92rem; font-weight: 600; transition: background .35s, color .35s;
}
.pill-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.pill-btn:hover { background: var(--ink); color: var(--white); }
.pill-btn:hover svg { transform: translate(3px, -3px); }
.contact__address { margin-top: 1.6rem; font-size: .8rem; line-height: 1.6; color: rgba(12,12,12,.8); max-width: 60ch; }
.contact__address a { border-bottom: 1px solid currentColor; }

.contact__circle {
  width: clamp(180px, 27vw, 420px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--ink); display: grid; place-items: center; color: var(--ink);
  transition: background .5s var(--ease), color .5s, translate .6s var(--ease);
}
.contact__circle svg { width: 44%; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .8s var(--ease); }
.contact__circle:hover { background: var(--ink); color: var(--red); }
.contact__circle:hover svg { transform: rotate(45deg); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(1rem, 2vw, 2rem) 0 1.4rem; overflow: hidden; }
.wordmark {
  font-weight: 800; font-size: clamp(3.5rem, 16.4vw, 17rem);
  line-height: .9; letter-spacing: -.065em; white-space: nowrap;
  display: flex; align-items: baseline;
}
.wordmark__text { display: inline-flex; }
.wordmark .ch { display: inline-block; }
.wordmark__dot { width: .2em; height: .2em; background: var(--red); margin-left: .04em; flex: none; }
.site-footer__row { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: clamp(1.2rem, 2.5vw, 2.4rem); font-size: .82rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: clamp(1.2rem, 3.4vw, 3.4rem); }
.footer-links a { opacity: .85; transition: opacity .3s, color .3s; }
.footer-links a:hover { opacity: 1; color: var(--red); }

/* =========================================================
   REVEAL ANIMATIONS (only when JS is on & motion allowed)
   ========================================================= */
.js [data-reveal="lines"] .line > span { transform: translateY(108%); transition: transform 1.25s var(--ease); transition-delay: calc(var(--i, 0) * .09s + var(--d, 0s)); }
.js [data-reveal="lines"].is-in .line > span { transform: none; }

.js [data-reveal="fade"] { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, .15s); }
.js [data-reveal="fade"].is-in { opacity: 1; transform: none; }

/* Image reveal: clip-path sits on the <img>, NOT on the observed <figure>
   (a fully clipped element is invisible to IntersectionObserver). */
.js [data-reveal="img"] img { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.4s var(--ease-io), transform 1.9s var(--ease), filter .8s ease; transition-delay: var(--d, 0s); }
.js [data-reveal="img"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .hero__media[data-reveal="img"] img { clip-path: inset(0 0 0 100%); }
.js .hero__media[data-reveal="img"].is-in img { clip-path: inset(0 0 0 0); }
.js .hero__tags { opacity: 0; transition: opacity 1s ease 1.1s; }
.js .hero__media.is-in .hero__tags { opacity: 1; }

.js [data-reveal="letters"] .ch { transform: translateY(100%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); transition-delay: calc(var(--i) * .045s); }
.js [data-reveal="letters"].is-in .ch { transform: none; opacity: 1; }

/* Lazy-load blur-up */
.js img[loading="lazy"] { filter: blur(14px); }
.js img[loading="lazy"].is-loaded { filter: none; }

/* Hero intro — held until fonts ready */
.js body:not(.is-ready) .round-btn { transform: scale(0); }
.round-btn { transition: background .4s, transform 1s var(--ease) .7s, translate .6s var(--ease); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .js .nav__list { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .nav__list { overflow-x: auto; max-width: 60vw; }
}
@media (min-width: 1081px) {
  .mobile-menu { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__copy { padding-bottom: 4rem; }
  .hero__media { aspect-ratio: 1 / 1; }
  .hero__tags { top: 6%; bottom: auto; right: auto; left: var(--gutter); }
  .round-btn { bottom: auto; top: calc(100% - 3.5rem); }
  .expertise__grid { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; }
  .studio__media { aspect-ratio: 16 / 9; }
  .section-head { flex-direction: column; }
  .filters { padding-top: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .logo { font-size: 1.2rem; }
  .nav__cta { width: 34px; height: 34px; }
  .case__media { grid-template-columns: 1fr !important; height: auto; }
  .case__media figure { aspect-ratio: 3 / 2; }
  .case__meta { grid-template-columns: 1fr auto; }
  .case__tags { grid-column: 1 / -1; order: 3; }
  .services { grid-template-columns: 1fr; }
  .service { aspect-ratio: 2; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__circle { width: 140px; justify-self: end; }
  .filters { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 60;
  width: min(460px, calc(100vw - 2 * var(--gutter)));
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: start;
  background: var(--ink); color: var(--paper); padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  transform: translateY(calc(100% + 3rem)); transition: transform .9s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-in { transform: none; }
.cookie__icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--red); }
.cookie__icon span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.cookie__icon span:nth-child(1) { top: 11px; left: 12px; }
.cookie__icon span:nth-child(2) { top: 22px; left: 26px; }
.cookie__icon span:nth-child(3) { top: 28px; left: 13px; width: 5px; height: 5px; }
.cookie__icon::after { content: ""; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.cookie__title { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; margin-bottom: .25rem; }
.cookie__text p:not(.cookie__title) { font-size: .84rem; line-height: 1.5; opacity: .8; }
.cookie__text a { border-bottom: 1px solid currentColor; }
.cookie__actions { grid-column: 1 / -1; display: flex; gap: .6rem; justify-content: flex-end; }
.cookie__btn { padding: .7rem 1rem; font-size: .84rem; font-weight: 600; color: var(--paper); border: 1px solid rgba(255,255,255,.3); transition: background .3s, border-color .3s, color .3s; }
.cookie__btn:hover { border-color: var(--paper); }
.cookie__btn--primary { background: var(--red); border-color: var(--red); color: var(--white); }
.cookie__btn--primary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* =========================================================
   EXIT POPUP
   ========================================================= */
.xp { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gutter); }
.xp[hidden] { display: none; }
.xp__backdrop { position: absolute; inset: 0; background: rgba(12,12,12,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .6s ease; }
.xp.is-open .xp__backdrop { opacity: 1; }
.xp__panel {
  position: relative; width: min(920px, 100%); max-height: calc(100vh - 2 * var(--gutter)); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--paper); color: var(--ink);
  clip-path: inset(50% 0 50% 0); transition: clip-path 1s var(--ease-io);
}
.xp.is-open .xp__panel { clip-path: inset(0 0 0 0); }
.xp__close { position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); transition: background .3s, transform .6s var(--ease); }
.xp__close:hover { background: var(--red); transform: rotate(90deg); }
.xp__close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.xp__side { position: relative; overflow: hidden; background: #ee1515; min-height: 460px; }
.xp__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease) .2s; }
.xp.is-open .xp__side img { transform: scale(1); }
.xp__wait { position: absolute; z-index: 1; top: 1.2rem; left: 1.4rem; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3.4rem, 7vw, 6rem); line-height: .85; color: var(--ink); }
.xp__side-note { position: absolute; z-index: 1; left: 1.4rem; bottom: 1.3rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); line-height: 1.6; }

.xp__body { position: relative; padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; min-height: min(560px, calc(100vh - 2 * var(--gutter))); }
.xp__progress { display: flex; gap: 6px; margin-bottom: 1.8rem; }
.xp__progress i { width: 28px; height: 3px; background: rgba(12,12,12,.15); transition: background .5s; }
.xp__progress i.is-on { background: var(--red); }

.xp__step { display: none; }
.xp__step.is-active { display: block; animation: xpIn .7s var(--ease) both; }
@keyframes xpIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.xp__kicker { font-size: .78rem; font-weight: 600; color: var(--red); margin-bottom: .6rem; }
.xp__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: .95; margin-bottom: 1.4rem; }
.xp__chips { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.xp__chip {
  text-align: left; padding: 1rem 1.1rem; font-size: .95rem; font-weight: 600; line-height: 1.25;
  border: 1px solid var(--ink); background: transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.xp__chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.xp__chip:hover, .xp__chip:focus-visible { color: var(--white); outline: none; }
.xp__chip:hover::before, .xp__chip:focus-visible::before { transform: scaleY(1); }
.xp__chip.is-picked { color: var(--white); }
.xp__chip.is-picked::before { background: var(--red); transform: scaleY(1); }
.xp__back { margin-top: 1.1rem; font-size: .82rem; font-weight: 600; opacity: .6; }
.xp__back:hover { opacity: 1; }

.xp__dx { font-size: 1rem; line-height: 1.5; max-width: 42ch; margin-bottom: 1.4rem; }
.xp__offer { font-size: .88rem; font-weight: 600; margin-bottom: .9rem; padding-top: 1.1rem; border-top: 1px solid rgba(12,12,12,.15); }
.xp__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.xp__fields input { width: 100%; font: inherit; font-size: 1rem; padding: .85rem .9rem; border: 1px solid rgba(12,12,12,.35); background: var(--white); color: var(--ink); border-radius: 0; }
.xp__fields input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.xp__form .hp { position: absolute; left: -9999px; }
.xp__error { min-height: 1.2em; font-size: .82rem; font-weight: 600; color: var(--red); margin: .5rem 0; }
.xp__submit { display: inline-flex; align-items: center; gap: .8rem; background: var(--ink); color: var(--white); padding: 1rem 1.4rem; font-size: .95rem; font-weight: 600; transition: background .35s; }
.xp__submit:hover { background: var(--red); }
.xp__submit svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.xp__submit:hover svg { transform: translate(3px, -3px); }
.xp__submit[disabled] { opacity: .6; pointer-events: none; }
.xp__fine { margin-top: 1rem; font-size: .75rem; opacity: .65; }
.xp__fine a { border-bottom: 1px solid currentColor; }
.xp__skip { font-size: inherit; text-decoration: underline; margin-left: .4rem; }

@media (max-width: 760px) {
  .xp { place-items: end center; padding: 0; }
  .xp__panel { grid-template-columns: 1fr; max-height: 92vh; clip-path: inset(100% 0 0 0); }
  .xp__side { min-height: 150px; height: 150px; }
  .xp__side img { object-position: 50% 30%; }
  .xp__wait { font-size: 3.2rem; }
  .xp__side-note { display: none; }
  .xp__body { min-height: 0; padding: 1.6rem 1.25rem 1.8rem; }
  .xp__chips, .xp__fields { grid-template-columns: 1fr; }
  .xp__chip { padding: .85rem 1rem; }
  .cookie { left: .75rem; right: .75rem; bottom: .75rem; width: auto; }
}

/* =========================================================
   404
   ========================================================= */
.nf { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.nf__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.nf__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 6.4vw, 7rem); line-height: .9; }
.nf__lede { margin-top: 1.4rem; font-size: 1.1rem; max-width: 40ch; }
.nf__links { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.nf__links a { display: inline-block; padding: .75rem 1.1rem; border: 1px solid var(--ink); font-weight: 600; font-size: .9rem; transition: background .3s, color .3s; }
.nf__links a:hover { background: var(--ink); color: var(--white); }
.nf__num { display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: clamp(8rem, 20vw, 20rem); line-height: .8; color: var(--ink); }
.nf__zero { width: .62em; height: .9em; margin: 0 .04em; overflow: hidden; background: var(--red); animation: nfFloat 4s ease-in-out infinite; }
.nf__zero img { width: 100%; height: 100%; object-fit: cover; }
@keyframes nfFloat { 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (max-width: 900px) { .nf__grid { grid-template-columns: 1fr; } .nf__num { order: -1; justify-content: flex-start; font-size: 9rem; } }
@media (prefers-reduced-motion: reduce) { .nf__zero { animation: none; } }

/* Footer NAP (name / address / phone) */
.site-footer__nap { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin-top: clamp(1rem, 2vw, 1.8rem); font-style: normal; font-size: .8rem; line-height: 1.5; opacity: .7; }
.site-footer__nap a:hover { color: var(--red); }
.mobile-menu__foot a { line-height: 1.8; }
.contact-info p.big { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
.contact-info p.big a { border: 0; }
.contact-info p.big a:hover { color: var(--red); }
a[href^="tel:"] { white-space: nowrap; }

/* =========================================================
   MOBILE STICKY CTA (Call + WhatsApp) — phones only
   ========================================================= */
.m-cta { display: none; }
@media (max-width: 760px) {
  :root { --m-cta-h: 60px; }
  .m-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: 1fr 1.35fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35);
    transform: translateY(0); transition: transform .5s var(--ease);
  }
  .m-cta__btn {
    height: var(--m-cta-h); display: flex; align-items: center; justify-content: center; gap: .6rem;
    font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  }
  .m-cta__btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
  .m-cta__btn--call { background: var(--ink); color: var(--paper); border-right: 1px solid rgba(255,255,255,.12); }
  .m-cta__btn--wa { background: var(--red); color: var(--white); }
  .m-cta__btn:active { opacity: .85; }

  /* keep page content, cookie banner and popup clear of the bar */
  body { padding-bottom: calc(var(--m-cta-h) + env(safe-area-inset-bottom)); }
  .cookie { bottom: calc(var(--m-cta-h) + env(safe-area-inset-bottom) + .75rem); }
  .menu-open .m-cta { transform: translateY(110%); }
}
