/* =========================================================
   ESP Visuals — styles
   ========================================================= */

:root {
  /* Palette: warm off-white, deep ink, a quiet sand accent */
  --ink: #0f0f0e;
  --ink-soft: #3a3936;
  --muted: #7b776f;
  --paper: #f7f5f1;
  --white: #ffffff;
  --sand: #c9b99b;
  --line: rgba(15, 15, 14, 0.12);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h); /* anchor jumps land below the fixed menu (JS refines this) */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Shared: eyebrow + buttons ---------- */

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.82); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn--sm { min-height: 42px; padding: 0 1.25rem; font-size: 0.66rem; }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--sand); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn:focus-visible,
.nav a:focus-visible,
.nav__toggle:focus-visible,
.hero__scroll:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: var(--white);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav__inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo,
.footer__logo { direction: ltr; } /* the brand always reads "ESP Visuals" */

.nav__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  line-height: 1;
}
.nav__logo-mark {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}
.nav__logo-word {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav__links {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__links a:not(.btn) {
  position: relative;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.88;
  transition: opacity .3s;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn):hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta-mobile { display: none; }

/* Solid state once the user scrolls past the top of the hero */
.nav.is-scrolled,
.nav.is-solid {
  background: rgba(247, 245, 241, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.nav.is-scrolled .nav__cta,
.nav.is-solid .nav__cta { border-color: var(--ink); color: var(--ink); }
.nav.is-scrolled .nav__cta:hover,
.nav.is-solid .nav__cta:hover { background: var(--ink); color: var(--white); }

.nav__toggle {
  display: none;
  margin-inline-start: auto;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child  { top: 26px; }
.nav.is-open .nav__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child  { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Language switcher ---------- */

.lang { position: relative; }

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 42px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity .3s;
}
.lang__btn:hover,
.lang.is-open .lang__btn { opacity: 1; }
.lang__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.lang__btn:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 5;
  min-width: 168px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(15, 15, 14, 0.14);
  animation: lang-in .25s var(--ease);
}
.lang__menu[hidden] { display: none; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: start;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
/* Arabic name: aligned like the others, sized to match the Latin capitals, in an Arabic typeface */
.lang__option[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  line-height: 1.2; /* same row height as the other languages */
}
.lang__option:hover { background: var(--paper); color: var(--ink); }
.lang__option:focus-visible { outline: 2px solid var(--sand); outline-offset: -2px; }
.lang__option[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang__option[aria-current="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

/* Hide the page for a moment while a saved non-English language is applied (no flash of English).
   If JS fails, the page shows anyway after 1.5s. */
.i18n-pending body { opacity: 0; animation: i18n-reveal 0s 1.5s forwards; }
@keyframes i18n-reveal { to { opacity: 1; } }

/* ---------- 1. HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 6rem;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; background: #1c1b19; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) forwards;
}

/* Darkens the footage enough for legible type, heavier at top (nav) and bottom (scroll cue) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,9,0.6) 0%, rgba(10,10,9,0.32) 30%, rgba(10,10,9,0.38) 62%, rgba(10,10,9,0.7) 100%),
    radial-gradient(ellipse at center, rgba(10,10,9,0.35) 0%, rgba(10,10,9,0) 70%);
}

.hero__content { max-width: 980px; }

.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.2vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__title em {
  display: block;
  font-style: italic;
  color: #f1e9da;
}

.hero__subtitle {
  max-width: 620px;
  margin: 2rem auto 0;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

.hero__actions {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: rgba(255, 255, 255, 0.8);
  animation: scroll-cue 2.4s ease-in-out infinite;
}

/* Entrance animation (JS adds .is-loaded to body) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.is-loaded .reveal { opacity: 1; transform: none; }
.is-loaded .reveal:nth-child(2) { transition-delay: .12s; }
.is-loaded .reveal:nth-child(3) { transition-delay: .26s; }
.is-loaded .reveal:nth-child(4) { transition-delay: .4s; }

@keyframes hero-drift { to { transform: scale(1); } }
@keyframes scroll-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: .8; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- 2. SERVICES BAR ---------- */

.services {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.services__list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.services__item {
  text-align: center;
  border-inline-start: 1px solid var(--line);
}
/* Each service opens its category in the full portfolio */
.services__link {
  display: block;
  height: 100%;
  padding: 2.75rem 1rem 2.25rem;
  transition: background-color .35s var(--ease);
}
.services__link:hover { background: var(--paper); }
.services__link:focus-visible { outline: 2px solid var(--sand); outline-offset: -4px; }
.services__item:first-child { border-inline-start: 0; }

.services__icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 1.25rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .35s var(--ease), transform .5s var(--ease);
}
.services__item:hover .services__icon { stroke: #9d8a67; transform: translateY(-3px); }

.services__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.services__text {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Shared: section heading ---------- */

.section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-title em { font-style: italic; }
.section-subtitle {
  margin: 1.25rem auto 0;
  max-width: 520px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
}

.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: #2b2a27; border-color: #2b2a27; }
.btn--dark:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: var(--white); }
.btn--outline-dark:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* ---------- 3. PACKAGES ---------- */

.packages {
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter) clamp(5rem, 10vw, 8.5rem);
  background: var(--paper);
}

.packages__grid {
  position: relative; /* offset parent for the carousel maths in main.js */
  max-width: 1180px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.75rem 2.25rem 2.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.package--featured {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  margin: -1.25rem 0;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
}

.package__badge {
  position: absolute;
  top: 1.5rem;
  inset-inline-start: 2.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand);
}

.package__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}

.package__tagline {
  margin: 0.6rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.package--featured .package__tagline { color: #e6dccb; }

.package__price {
  margin: 1.75rem 0 0;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
}
.package--featured .package__price { border-bottom-color: rgba(255, 255, 255, 0.16); }
.package__from,
.package__tax {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}
.package__from { margin-inline-end: 0.35rem; }
.package--featured .package__from,
.package--featured .package__tax { color: rgba(255, 255, 255, 0.6); }

.package__list {
  margin: 1.75rem 0 2.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}
.package__list li {
  position: relative;
  padding-block: 0.5rem;
  padding-inline: 1.6rem 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
}
.package__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.05rem;
  width: 0.8rem;
  height: 1px;
  background: var(--sand);
}

/* Small line above each list: sets the difference between "pick" and "done for you" */
.package__lead {
  margin: 1.5rem 0 -0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--muted);
}
.package--featured .package__lead { color: var(--sand); }

/* Card 1 grows its last list (the excluded one) instead of the included one */
.package__list:not(:last-of-type) { flex: none; margin-bottom: 0; }

/* Not included: same bullets, light grey and struck through, visually quieter than included items */
.package__list--excluded { margin-top: 0; }
.package__list--excluded li {
  color: #b5b0a7;
  text-decoration: line-through;
  text-decoration-color: rgba(181, 176, 167, 0.8);
  text-decoration-thickness: 1px;
}
.package__list--excluded li::before { background: #d9d4cb; }

/* ---- Linking the two cards: what Property Content lacks is exactly what Pro adds ---- */

/* "ONLY IN PRO" label above the struck-through lines (same style as FROM / MOST POPULAR) */
.package__only {
  margin: 1.4rem 0 0.4rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a08d69;
}

/* "See what's included in Pro →" — the web's gold, a shade deeper so it reads on white */
.package__to-pro {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8f7a52;
  border-bottom: 1px solid rgba(143, 122, 82, 0.35);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.package__to-pro::after {
  content: "";
  width: 14px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='none' stroke='%238f7a52' stroke-width='1.4'%3E%3Cpath d='M0 5h15M11 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease);
}
.package__to-pro:hover { color: #6f5d3b; border-color: #6f5d3b; }
.package__to-pro:hover::after { transform: translateX(3px); }
.package__to-pro:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
[dir="rtl"] .package__to-pro::after { transform: scaleX(-1); }

/* Pro: "Everything in Property Content, plus:" under "We handle everything." */
.package__plus {
  margin: 1.1rem 0 -1.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}

/* Brief gold outline when arriving from "See what's included in Pro" */
.package--featured.is-highlight { animation: pro-highlight 1.8s var(--ease); }
@keyframes pro-highlight {
  0%   { box-shadow: 0 0 0 0 rgba(201, 185, 155, 0); }
  25%  { box-shadow: 0 0 0 3px rgba(201, 185, 155, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(201, 185, 155, 0); }
}

.package__cta { width: 100%; }

/* Package buttons: solid black with an arrow; the featured one is gold to push the star product */
.package .package__cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  gap: 0.75rem;
}
.package .package__cta:hover { background: #2b2a27; border-color: #2b2a27; color: var(--white); }
.package .package__cta::after {
  content: "";
  flex: none;
  width: 16px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='none' stroke='white' stroke-width='1.3'%3E%3Cpath d='M0 5h15M11 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease);
}
.package .package__cta:hover::after { transform: translateX(4px); }

.package--featured .package__cta {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}
.package--featured .package__cta:hover { background: #dccfb6; border-color: #dccfb6; color: var(--ink); }
.package--featured .package__cta::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='none' stroke='%230f0f0e' stroke-width='1.3'%3E%3Cpath d='M0 5h15M11 1l4 4-4 4'/%3E%3C/svg%3E");
}

[dir="rtl"] .package .package__cta::after { transform: scaleX(-1); }
[dir="rtl"] .package .package__cta:hover::after { transform: scaleX(-1) translateX(4px); }

.packages__note {
  max-width: 620px;
  margin: 3.5rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 4. CONTACT ---------- */

.contact {
  padding: clamp(5rem, 10vw, 8.5rem) var(--gutter);
  background: var(--ink);
  color: var(--white);
}

.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "intro form"
    "details form";
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact__intro { grid-area: intro; }
.contact__inner > .form { grid-area: form; }
.contact__inner > .contact__details { grid-area: details; }

.contact__title { text-align: start; }
.contact__title em { display: block; color: #e6dccb; }

.contact__subtitle {
  margin: 1.5rem 0 0;
  max-width: 420px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.contact__details {
  margin: 2.75rem 0 0;
  padding: 2rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact__details li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
}
.contact__details svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--sand);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__details a { transition: color .3s; overflow-wrap: anywhere; }
.contact__details a:hover { color: var(--sand); }

/* Form */

.form { min-width: 0; }

/* Hidden without pushing it off-screen (an off-screen offset creates sideways scroll in right-to-left pages) */
.form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.form__package {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid rgba(201, 185, 155, 0.5);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}
.form__package[hidden] { display: none; }
.form__package strong { font-weight: 500; color: var(--sand); }
.form__package-clear {
  width: 24px; height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.form__group {
  margin: 0 0 2.5rem;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form__legend {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: #e6dccb;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.25rem;
}
.form__grid + .field,
.field + .form__grid,
.field + .field { margin-top: 1.5rem; }
.form__grid > .field { margin-top: 0; }

.field { display: flex; flex-direction: column; min-width: 0; }

.field > label,
.field__label {
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.field > label span,
.field__label span { color: var(--sand); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  font-weight: 300;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  transition: border-color .3s, background-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9b99b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.field select:invalid { color: rgba(255, 255, 255, 0.4); }
.field select option { color: var(--ink); background: var(--white); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sand);
  background-color: rgba(255, 255, 255, 0.07);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #d98c7a; }
.field.is-invalid .chip span { border-color: rgba(217, 140, 122, 0.7); }
.field__error {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #e3a393;
}

/* Checkbox chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s;
  user-select: none;
}
.chip:hover span { border-color: rgba(255, 255, 255, 0.4); }
.chip input:checked + span {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
  font-weight: 500;
}
.chip input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }

/* Privacy consent (required) */
.field--consent { margin: 0 0 2rem; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
/* Normal sentence, not the small uppercase style of the other field labels */
.field > .consent {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
}
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  transition: background-color .25s, border-color .25s;
}
.consent input:checked + .consent__box {
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230f0f0e' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--sand);
}
.consent input:focus-visible + .consent__box { outline: 2px solid var(--sand); outline-offset: 2px; }
.consent__text > span[aria-hidden] { color: var(--sand); }
.consent__link { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.consent__link:hover { text-decoration-color: var(--sand); }
.field--consent.is-invalid .consent__box { border-color: #d98c7a; }
.field--consent:has(+ .field--optin) { margin-bottom: 1rem; }

.form__legal {
  margin: -0.5rem 0 2rem;
  max-width: 640px;
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}
.form__legal a { color: rgba(255, 255, 255, 0.78); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.form__legal a:hover { color: var(--white); }

.form__submit[aria-busy="true"] { opacity: 0.75; cursor: wait; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.form__submit { min-width: 240px; }
.form__submit[disabled] { opacity: 0.6; cursor: wait; }

.form__status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}
.form__status.is-error { color: #e3a393; }

.form__success {
  padding: 3rem 0;
}
.form__success h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}
.form__success h3 em { color: #e6dccb; }
.form__success p {
  margin: 1rem 0 0;
  max-width: 440px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 5. PORTFOLIO ---------- */

.portfolio {
  padding: clamp(5rem, 10vw, 8.5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  background: var(--paper);
}

/* Masonry via CSS columns: pieces keep their own proportions, no uniform grid */
.portfolio__grid {
  max-width: 1400px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  columns: 3;
  column-gap: 10px;
}

.work {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: #e6e1d8;
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
/* Justified rows (set up by main.js): each piece gets an exact width/height, rows fill the full width */
.portfolio__grid.is-justified {
  --mosaic-gap: 10px;
  columns: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* full rows are edge to edge; only a height-capped row shows centred */
  column-gap: var(--mosaic-gap);
  row-gap: 0; /* the space between rows comes from the break elements */
}
.portfolio__grid.is-justified .work {
  margin: 0;
  height: auto;
  min-width: 0;
}
/* Forces a new row and provides the space between rows */
.portfolio__break {
  flex-basis: 100%;
  height: var(--mosaic-gap);
}

.work--landscape { aspect-ratio: 3 / 2; }
.work--portrait  { aspect-ratio: 4 / 5; }
.work--vertical  { aspect-ratio: 9 / 16; }
.work--square    { aspect-ratio: 1 / 1; }

.work img,
.work video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
}
.work:hover img,
.work:hover video { transform: scale(1.035); }
.work:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

/* Lightbox */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 12, 11, 0.96);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(12, 12, 11, 0.96); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease); }

.lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4.5rem 5.5rem;
}
.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: lb-in .4s var(--ease);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15, 15, 14, 0.5);
  color: var(--white);
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.45); }
.lightbox__btn:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 6. INSTAGRAM ---------- */

/* Sits straight under the portfolio mosaic (same background), closing that section */
.instagram {
  padding: 0 var(--gutter) clamp(4rem, 8vw, 6.5rem);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.instagram .btn { width: 100%; max-width: 320px; }
.btn__icon {
  width: 18px;
  height: 18px;
  margin-inline-end: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* ---------- 7. FEATURED WORK / TESTIMONIALS ---------- */

.showcase {
  padding: clamp(5rem, 10vw, 8.5rem) var(--gutter);
  background: var(--white);
}

.showcase__slider {
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}

/* All slides share one grid cell: the box keeps the tallest height, so nothing jumps */
.showcase__track { display: grid; }
.showcase__slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas: "copy media";
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s;
}
.showcase__slide.is-active { opacity: 1; visibility: visible; }

.showcase__media {
  grid-area: media;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  aspect-ratio: 4 / 3;
}
.showcase__media > * {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #e6e1d8;
}
.showcase__big { grid-row: 1 / 3; }

.showcase__copy { grid-area: copy; }

.showcase__cta {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.showcase__cta .btn { width: 100%; max-width: 320px; }

/* Review */
.showcase__quote { margin: 0; position: relative; }
.showcase__quote::before {
  content: "“";
  display: block;
  height: 0.55em;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 7vw, 6rem);
  line-height: 1;
  color: var(--sand);
}
.showcase__quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.22;
  text-wrap: pretty;
}
.showcase__quote footer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.showcase__name {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.showcase__role,
.showcase__project {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
}
.showcase__project { font-size: 0.8rem; }

.showcase__controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.showcase__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.showcase__arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.showcase__arrow:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.showcase__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.showcase__dots { display: flex; gap: 4px; }
.showcase__dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.showcase__dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.2;
  transform: translate(-50%, -50%);
  transition: opacity .3s, width .3s var(--ease), border-radius .3s;
}
.showcase__dot.is-active::after { opacity: 0.2; width: 22px; border-radius: 3px; }
/* Autoplay progress: fills the active dot over 7s; when it ends, JS moves to the next review */
.showcase__dot::before {
  content: "";
  position: absolute;
  left: calc(50% - 11px);
  top: calc(50% - 3px);
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--ink);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1;
}
.showcase__dot.is-active::before {
  opacity: 1;
  animation: showcase-progress 7s linear forwards;
}
.showcase__slider.is-paused .showcase__dot.is-active::before { animation-play-state: paused; }
@keyframes showcase-progress { to { transform: scaleX(1); } }
.showcase__dot:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

/* ---------- 8. FOOTER ---------- */

.footer {
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2rem;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

.footer__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  line-height: 1;
  color: var(--white);
}
.footer__logo .nav__logo-mark { font-size: 2.6rem; }

.footer__tagline {
  margin: 1.25rem 0 0;
  max-width: 300px;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
}

.footer__heading {
  margin: 0 0 1.25rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col li { padding: 0.35rem 0; font-size: 0.92rem; font-weight: 300; }
.footer__col a { transition: color .3s; }
.footer__col a:hover,
.footer__bottom a:hover { color: var(--white); }
.footer a:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.footer__contact li { display: flex; align-items: center; gap: 0.75rem; }
.footer__contact svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--sand);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__contact a { overflow-wrap: anywhere; }

.footer__bottom {
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.74rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom p { margin: 0; }
.footer__bottom span[aria-hidden] { margin: 0 0.35rem; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }

/* ---------- PORTFOLIO PAGE ---------- */

.page-head {
  padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper);
}

/* Filter bar — same visual language as the services bar, sticks under the nav */
.filters {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filters__list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.filters__list li { border-inline-start: 1px solid var(--line); }
.filters__list li:first-child { border-inline-start: 0; }

.filter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1.75rem 0.75rem 1.5rem;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s, background-color .3s;
}
.filter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%) scaleX(0);
  transition: transform .4s var(--ease);
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); }
.filter.is-active::after { transform: translateX(-50%) scaleX(1); }
.filter:focus-visible { outline: 2px solid var(--sand); outline-offset: -4px; }

.filter__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 0.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.filter__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.filter__count {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
}

.portfolio--full { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.work { position: relative; }
.work[hidden] { display: none; }
.work.is-entering { animation: work-in .6s var(--ease) both; }
@keyframes work-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.work__badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 0.3rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
  background: rgba(15, 15, 14, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 2px;
  pointer-events: none;
}

.portfolio__empty {
  margin: 3rem 0;
  text-align: center;
  font-weight: 300;
  color: var(--muted);
}

/* ---------- Right-to-left (Arabic) ---------- */

html[lang="ar"] {
  --font-sans: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-serif: "Amiri", "Instrument Serif", serif;
}
/* Letter-spacing breaks the joins between Arabic letters */
html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] .hero__title { line-height: 1.35; }
html[lang="ar"] .section-title,
html[lang="ar"] .package__name,
html[lang="ar"] .showcase__quote p { line-height: 1.45; }

/* Select arrow on the other side */
[dir="rtl"] .field select {
  padding-right: 1rem;
  padding-left: 2.5rem;
  background-position: left 1rem center;
}
/* Review progress fills from the right */
[dir="rtl"] .showcase__dot::before { transform-origin: right; }
/* The packages carousel (small screens) scrolls in left-to-right maths; cards keep their own direction */
@media (max-width: 900px) {
  [dir="rtl"] .packages__grid { direction: ltr; }
  [dir="rtl"] .package { direction: rtl; }
}

/* ---------- Responsive ---------- */

/* Swipe indicator and loop copies for the packages carousel (only used on small screens) */
.packages__dots,
.package--clone { display: none; }

@media (max-width: 1024px) {
  .packages__grid { gap: 1rem; }
  .package { padding-inline: 1.75rem; }
  .package__badge { inset-inline-start: 1.75rem; }
}

/* Packages: side by side as a swipeable carousel, like desktop but scrolled horizontally */
@media (max-width: 900px) {
  .packages__grid {
    display: flex;
    gap: 12px;
    max-width: none;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 1.25rem var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .packages__grid::-webkit-scrollbar { display: none; }

  .package--clone { display: flex; }
  .package {
    flex: 0 0 min(74vw, 320px);
    scroll-snap-align: center;
  }
  .package--featured { margin: -0.75rem 0; }

  /* Price picker above the cards: every option visible at a glance, the current one in black */
  .packages__dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 380px;
    margin: 0 auto 0.25rem;
  }
  .packages__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.25rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    transition: background-color .3s, color .3s, border-color .3s;
  }
  .packages__dot-name {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .3s;
  }
  .packages__dot.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
  /* Pro keeps its accent even when another option is showing */
  .packages__dot:nth-child(2) .packages__dot-name { color: #9d8a67; }
  .packages__dot.is-active .packages__dot-name { color: var(--sand); }
  .packages__dot:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

  /* Side cards peek further in, slightly smaller and softer, so the centred one stays the hero */
  .package {
    transition: transform .45s var(--ease), opacity .45s var(--ease);
  }
  .package:not(.is-current) { transform: scale(0.93); opacity: 0.6; }

  .packages__note { margin-top: 2rem; }

  /* Phone/tablet: intro, then the form, then the contact details */
  .contact__inner {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "intro" "form" "details";
    row-gap: 3rem;
  }
  .contact__inner > .contact__details { margin-top: 0; }

  .portfolio__grid { columns: 2; column-gap: 6px; }
  .portfolio__grid.is-justified { --mosaic-gap: 6px; }
  .work { margin-bottom: 6px; }

  .showcase__slide {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media";
    gap: 1.75rem;
    align-items: start;
  }
  /* Photos become a small supporting strip under the review */
  .showcase__media {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    aspect-ratio: 3 / 1;
    max-width: 560px;
  }
  .showcase__big { grid-row: auto; }
  .showcase__controls { justify-content: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* Filter bar: one compact row that scrolls sideways */
  .filters__list {
    display: flex;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filters__list::-webkit-scrollbar { display: none; }
  .filters__list li { flex: 1 0 auto; }
  .filter { padding: 0.9rem 1.1rem 0.85rem; }
  .filter__icon { width: 22px; height: 22px; margin-bottom: 0.45rem; }
  .filter__title { font-size: 0.6rem; white-space: nowrap; }
  .filter__count { display: none; }
}

/* Services bar: 2 rows of 3 on tablet and phone */
@media (max-width: 1024px) {
  .services__list { grid-template-columns: repeat(3, 1fr); }
  .services__item:nth-child(4) { border-inline-start: 0; }
  .services__item:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .services__list { padding: 0 12px; }
  .services__link { padding: 2rem 0.4rem 1.75rem; }
  .services__icon { width: 26px; height: 26px; margin-bottom: 0.9rem; }
  .services__title { font-size: 0.62rem; letter-spacing: 0.1em; }
  .services__text { font-size: 0.74rem; }

  /* Compact section headings on phones so the content shows up sooner */
  .section-head .eyebrow { margin-bottom: 0.75rem; font-size: 0.64rem; }
  .section-head .section-title { font-size: 1.85rem; line-height: 1.08; }
  .section-head .section-subtitle { margin-top: 0.6rem; font-size: 0.88rem; line-height: 1.55; }

  .packages { padding-top: 3rem; }
  .packages__grid { margin-top: 1.25rem; }
  .packages { padding-bottom: 2.5rem; }
  .packages__dots { margin-top: 1.75rem; }
  .packages__note { margin-top: 0.75rem; font-size: 0.76rem; line-height: 1.55; }

  /* Compact cards so a whole card fits on one phone screen */
  .package { flex-basis: min(80vw, 330px); padding: 1.6rem 1.3rem 1.3rem; }
  .package--featured { padding-top: 2.75rem; padding-bottom: 1.5rem; }
  .package__badge { top: 1.2rem; inset-inline-start: 1.3rem; font-size: 0.58rem; }
  .package__name { font-size: 1.75rem; }
  .package__tagline { margin-top: 0.4rem; font-size: 1rem; }
  .package__price { margin-top: 1rem; padding-bottom: 1rem; font-size: 1.7rem; }
  .package__list { margin: 1rem 0 1.2rem; }
  .package__list li { padding-block: 0.28rem; font-size: 0.86rem; line-height: 1.45; }
  .package__list li::before { top: calc(0.28rem + 0.72em); }
  .package__lead { margin: 1rem 0 -0.6rem; font-size: 0.95rem; }
  .package__list--excluded li { padding-block: 0.16rem; font-size: 0.78rem; line-height: 1.4; }
  .package__list--excluded li::before { top: calc(0.16rem + 0.72em); }
  .package__only { margin: 1rem 0 0.25rem; font-size: 0.58rem; }
  .package__to-pro { margin: 0.25rem 0 0.9rem; font-size: 0.76rem; }
  .package__plus { margin: 0.6rem 0 -0.65rem; font-size: 0.74rem; }
  .package__tagline { text-wrap: balance; }
  .package__cta { padding: 0 0.75rem; letter-spacing: 0.12em; font-size: 0.66rem; }
  .package .package__cta { gap: 0.5rem; }
  .package--featured .package__cta { white-space: nowrap; letter-spacing: 0.08em; padding: 0 0.6rem; font-size: 0.62rem; }
  .packages__note br { display: none; }

  .form__grid { grid-template-columns: 1fr; }
  .form__submit { width: 100%; min-width: 0; }
  .chip span { min-height: 40px; padding: 0 0.95rem; font-size: 0.82rem; }

  .portfolio { padding: 3rem 6px 1.5rem; }
  .showcase { padding-top: 3rem; padding-bottom: 3rem; }
  .showcase__slider { margin-top: 1.25rem; }
  .showcase__media { gap: 4px; }
  .showcase__controls { margin-top: 1.5rem; }
  .showcase__cta { margin-top: 2rem; }
  .showcase__quote::before { font-size: 3.5rem; margin-bottom: 0.25rem; }
  .showcase__quote p { font-size: 1.5rem; }
  .showcase__quote footer { margin-top: 1.1rem; padding-top: 1rem; }

  .footer { padding-top: 3rem; padding-bottom: 1.5rem; }
  .footer__inner { gap: 2rem 1.25rem; }
  .footer__logo .nav__logo-mark { font-size: 2.1rem; }
  .footer__tagline { margin-top: 0.75rem; font-size: 0.86rem; }
  .footer__heading { margin-bottom: 0.75rem; }
  .footer__col li { padding: 0.3rem 0; font-size: 0.84rem; }
  .footer__contact li { gap: 0.55rem; }
  .footer__bottom { margin-top: 2.25rem; padding-top: 1.25rem; flex-direction: column; font-size: 0.7rem; line-height: 1.7; }
  .page-head { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 1.5rem; }
  .portfolio--full { padding-top: 6px; }
  .instagram { padding-bottom: 3rem; }
  .portfolio__grid { margin-top: 1.25rem; }
  .portfolio .section-head { padding: 0 calc(var(--gutter) - 6px); }
  .lightbox__stage { padding: 4.5rem 0.75rem 5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; width: 44px; height: 44px; }
  .lightbox__count { bottom: 2.1rem; }
}

/* Medium screens: tighter menu so longer languages (e.g. German) still fit on one line */
@media (max-width: 1320px) {
  .nav__inner { gap: 1.25rem; }
  .nav__links { gap: 1.5rem; }
  .nav__links a:not(.btn) { letter-spacing: 0.14em; }
  .nav__cta { padding: 0 1rem; letter-spacing: 0.14em; }
}

@media (max-width: 1100px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .lang { margin-inline-start: auto; }
  .nav__toggle { margin-inline-start: 0.25rem; }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    background: var(--ink);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__links a:not(.btn) { font-size: 0.85rem; }
  .nav__cta-mobile { display: inline-flex; margin-top: 1rem; }

  .nav.is-open { color: var(--white); background: transparent; border-bottom-color: transparent; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
}

@media (max-width: 560px) {
  :root { --nav-h: 68px; }
  .hero { padding-bottom: 5.5rem; }
  .hero__subtitle br { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
  .btn { white-space: normal; text-align: center; }
}

/* Short phones (e.g. iPhone SE): tighten the cards a bit more */
@media (max-width: 560px) and (max-height: 740px) {
  .package { padding: 1.2rem 1.1rem 1.1rem; }
  .package--featured { padding-top: 2.3rem; padding-bottom: 1.2rem; }
  .package__badge { top: 1rem; }
  .package__name { font-size: 1.4rem; }
  .package__tagline { font-size: 0.88rem; }
  .package__price { margin-top: 0.75rem; padding-bottom: 0.75rem; font-size: 1.4rem; }
  .package__list { margin: 0.7rem 0 0.9rem; }
  .package__list li { padding-block: 0.18rem; font-size: 0.8rem; line-height: 1.4; }
  .package__list li::before { top: calc(0.18rem + 0.7em); }
  .package__lead { margin: 0.75rem 0 -0.5rem; font-size: 0.88rem; }
  .package__list--excluded li { padding-block: 0.1rem; font-size: 0.74rem; line-height: 1.35; }
  .package__list--excluded li::before { top: calc(0.1rem + 0.7em); }
  .package__only { margin: 0.75rem 0 0.2rem; }
  .package__to-pro { margin-bottom: 0.75rem; }
  .package__plus { margin: 0.55rem 0 -0.7rem; }
  .package .package__cta { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video, .hero__scroll { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work.is-entering { animation: none; }
  .showcase__slide { transition: none; }
  .showcase__dot.is-active::before { animation: none; transform: none; }
  .package { transition: none; }
  .package--featured.is-highlight { animation: none; }
  .work img, .work video { transition: none; }
  .work:hover img, .work:hover video { transform: none; }
}


/* ---------- LEGAL PAGES (privacy, legal notice, cookies) ---------- */

.legal-tabs {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal-tabs ul {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(1.25rem, 4vw, 2.75rem);
}
.legal-tabs a {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s, border-color .25s;
}
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 9vw, 6.5rem);
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal h2 {
  margin: 2.75rem 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink);
}
.legal p { margin: 0 0 1rem; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: var(--ink); }
.legal ul { margin: 0 0 1rem; padding-inline-start: 1.15rem; }
.legal li { margin-bottom: 0.4rem; }
.legal li::marker { color: var(--sand); }
.legal code { font-size: 0.85em; background: var(--paper); padding: 0.1em 0.4em; border-radius: 2px; }

.legal__lead { font-size: 1.08rem; color: var(--ink); }
.legal__note {
  margin: 0 0 2rem;
  padding: 0.85rem 1.1rem;
  background: var(--paper);
  font-size: 0.85rem;
  color: var(--muted);
}

.legal__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 2rem;
  margin: 0 0 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal__facts dt { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.3rem; }
.legal__facts dd { margin: 0; color: var(--ink); }

.legal__table { overflow-x: auto; margin: 0 0 1.25rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.88rem; line-height: 1.6; }
.legal th {
  text-align: start;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal th, .legal td { padding: 0.85rem 1.25rem 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th:last-child, .legal td:last-child { padding-inline-end: 0; }
.legal thead th { border-bottom-color: var(--ink); }

.legal__foot {
  margin-top: 3rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .legal__facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .legal__facts dd { margin-bottom: 0.8rem; }
  .legal table { font-size: 0.82rem; }
}
