/* ============================================================
   THOMAS PRIMARD — REAL ESTATE PHOTOGRAPHY
   Warm limestone minimalism · Rubik · terracotta accent
   ============================================================ */

/* ============ TOKENS ============ */
/* The palette, semantic colours, --radius and --ease now live in css/tokens.css,
   which every page loads BEFORE this file. Only site-specific tokens remain here. */
:root {
  /* Hero darkening scrim (dashboard-controlled; 0 = today's exact look) */
  --hero-scrim: 0;

  /* Beige gradient — site-only (the portal uses --grad-beige-soft from tokens) */
  --grad-beige: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-200) 100%);

  /* Gallery strip (kept from v1) */
  /* Desktop: taller than before so images fill the space, but capped by width
     so the widest item (a 16:9 video = height * 16/9) never fills the viewport —
     the neighbours always peek on both sides, keeping the slider feel.
     43vw height -> 16:9 width ~76vw, i.e. ~12vw of peek on each side. */
  --strip-height: min(70vh, 43vw);
  --strip-height-mobile: min(58svh, 90vw * 2 / 3);
  --gap: 2px;

  /* Site gutter — wider than the portal's 48px cap. Not in tokens.css on
     purpose; hoisting it would move one of the two apps by 16px. */
  --pad-x: clamp(20px, 5vw, 64px);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--terracotta-500); color: var(--cream-50); }

/* ============ TYPE HELPERS ============ */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--text);
}
.body-copy { color: var(--text-body); max-width: 58ch; }

/* ============ BUTTONS ============ */
/* The marketing site's buttons are MODIFIERS of a base .btn — always written
   as `class="btn btn--solid"`. That is deliberately different from the portal
   and dashboard, where .btn-primary / .btn-outline are standalone components
   with no base class and a different look (square, sentence case, terracotta).
   Those names belong to the back-office; the site uses `--` modifiers so the
   two vocabularies can never be confused. See docs/design-system.md. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }

/* light sweep across the button on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
  z-index: 1;
}
.btn:hover::after { left: 120%; }

.btn .btn-arrow {
  display: inline-flex;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn--solid {
  background: var(--ink-900);
  color: var(--cream-50);
  box-shadow: 0 10px 28px rgba(31, 28, 24, 0.18);
}
.btn--solid:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 32px rgba(143, 86, 58, 0.3);
  transform: translateY(-2px);
}

.btn--line {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn--line:hover {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--cream-50);
  transform: translateY(-2px);
}

/* WhatsApp flavor */
.btn--whatsapp {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--cream-100);
}
.btn--whatsapp:hover {
  background: #1FA855;
  border-color: #1FA855;
  color: #fff;
  transform: translateY(-2px);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad-x);
  padding-top: calc(16px + env(safe-area-inset-top));
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease), -webkit-backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

/* Transparent-over-hero variant — home page only. Starts invisible against
   the hero photo (white text), gains the soft cream/blur bg once scrolled
   past the hero, matching the default header used on inner pages.
   position:fixed (not sticky) so it overlaps the hero instead of reserving
   its own space above it — sticky would push the hero down, leaving a
   plain page-background bar behind the "transparent" header instead of photo. */
.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  /* At the top over the hero photo: no blur, just the menu text — cleaner
     against the image. The blur returns once scrolled (rule below). */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header--overlay .logo-name,
.site-header--overlay .nav-link {
  color: var(--cream-50);
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* Base .nav-link dims to 0.65 opacity — over a photo that reads as too
   faint; keep it brighter until the header solidifies on scroll. */
.site-header--overlay .nav-link { opacity: 0.9; }
.site-header--overlay .nav-link:hover { opacity: 1; }
.site-header--overlay.is-scrolled .nav-link { opacity: 0.65; }
.site-header--overlay.is-scrolled .nav-link:hover { opacity: 1; }
.site-header--overlay .logo-sub {
  color: rgba(250, 247, 242, 0.75);
  transition: color 0.3s var(--ease);
}
.site-header--overlay .nav-link.is-current::after { background: var(--cream-50); }

.site-header--overlay.is-scrolled {
  background: rgba(250, 247, 242, 0.86);
  border-bottom-color: var(--line);
  /* Restore the cream/blur bar once past the hero. */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header--overlay.is-scrolled .logo-name,
.site-header--overlay.is-scrolled .nav-link {
  color: var(--text);
}
.site-header--overlay.is-scrolled .logo-sub { color: var(--text-muted); }
.site-header--overlay.is-scrolled .nav-link.is-current::after { background: var(--text); }

/* Logotype — two lines, Rubik.
   Convention: the name's tracking is tuned so its rendered width matches the
   sub line below it (a relationship, not one magic number — it's re-solved per
   breakpoint since the two lines use different font sizes). See the mobile
   overrides further down for the ≤768px and ≤380px values. */
.logo { display: flex; flex-direction: column; line-height: 1; flex: 0 0 auto; }
.logo-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.31em;
  color: var(--text);
}
.logo-sub {
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.395em;
  color: var(--text-muted);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.65;
  transition: opacity 0.25s var(--ease);
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-current { opacity: 1; }
.nav-link.is-current::after { transform: scaleX(1); background: var(--text); }

.nav-book {
  padding: 11px 22px;
  font-size: 12px;
}

/* ============ LANGUAGE DROPDOWN (header, EN/ES) ============
   A small dropdown sitting right of the Book button. The trigger matches the
   .nav-link type treatment (uppercase, 13px, 0.12em, dimmed) + a caret; the
   menu drops below to pick the other language. No .nav-link class, so it
   survives the ≤768px rule that hides the other links (mobile header keeps
   logo + Book + this dropdown). */
.lang-dd { position: relative; display: inline-flex; align-items: center; }
.nav-lang { margin-right: -2px; }
.lang-dd-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); opacity: 0.65;
  transition: opacity 0.25s var(--ease);
  padding: 4px 0;
}
.lang-dd-trigger:hover { opacity: 1; }
.lang-dd-trigger:focus-visible { outline: 2px solid var(--terracotta-500); outline-offset: 3px; }
.lang-dd-caret {
  width: 11px; height: 11px; margin-top: 1px;
  transition: transform 0.25s var(--ease);
}
.lang-dd-trigger[aria-expanded="true"] .lang-dd-caret { transform: rotate(180deg); }

.lang-dd-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 76px; padding: 5px;
  list-style: none; margin: 0;
  background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(38, 30, 22, 0.14);
  display: flex; flex-direction: column; gap: 2px;
}
.lang-dd-menu[hidden] { display: none; }
.lang-dd-opt {
  width: 100%; text-align: left;
  padding: 7px 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-dd-opt:hover { color: var(--text); background: rgba(38, 30, 22, 0.05); }
.lang-dd-opt.is-active { color: var(--accent); }
.lang-dd-opt:focus-visible { outline: 2px solid var(--terracotta-500); outline-offset: -2px; }

/* Over-the-hero header (home): the trigger reads cream like .nav-link until the
   header solidifies on scroll. The menu is a solid cream panel in both states. */
.site-header--overlay .lang-dd-trigger { color: var(--cream-50); opacity: 0.9; }
.site-header--overlay .lang-dd-trigger:hover { opacity: 1; }
.site-header--overlay.is-scrolled .lang-dd-trigger { color: var(--text); opacity: 0.65; }
.site-header--overlay.is-scrolled .lang-dd-trigger:hover { opacity: 1; }

/* Client-login link. Desktop shows a plain "Login" nav link (hidden ≤768px);
   on mobile the portal lives as a "Login" pill in the hero row (.hero-nav). */

/* ============ HERO (day / night) ============ */
.hero {
  position: relative;
  /* The overlay header is position:fixed (not in flow), so the hero fills
     the full viewport height rather than the height-minus-header used
     elsewhere. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.8s ease;
}
.hero-bg.is-hidden { opacity: 0; }
/* Mobile crop is a vertical photo with a lot of empty sky at the top —
   never crop the sides (object-position only ever shifts vertically),
   and anchor to the bottom so any crop removes sky from the top. */
.hero-bg-mobile { display: none; object-position: center bottom; }

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Stronger scrim right at the top (0–22%) so the transparent white-text
     header stays legible over a pale day sky, easing off quickly so the
     photo still reads clearly through the middle of the hero. */
  background:
    linear-gradient(rgba(20,17,14,var(--hero-scrim)), rgba(20,17,14,var(--hero-scrim))),
    radial-gradient(ellipse at center, rgba(20,17,14,0.02) 0%, rgba(20,17,14,0.25) 100%),
    linear-gradient(to bottom, rgba(20,17,14,0.4) 0%, rgba(20,17,14,0.1) 22%, transparent 42%, rgba(20,17,14,0.55) 100%);
  z-index: 1;
  transition: opacity 0.8s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x) clamp(48px, 9vh, 96px);
  color: var(--cream-50);
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.85);
  margin-bottom: 18px;
}
.hero-title {
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 72px);
  letter-spacing: -0.015em;
  line-height: 1.06;
  max-width: 15ch;
  margin-bottom: 14px;
  text-wrap: balance;
}
.hero-sub {
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(250, 247, 242, 0.88);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Mobile-only row under the title: Work / Pricing / Login pills and the
   day/night switch, four on one line. Hidden on desktop (the hero-actions CTAs
   and the inline title switch cover that breakpoint). See 768px block for the
   pill + switch styling. */
.hero-nav { display: none; align-items: center; gap: 10px; }

/* Dark-glass pill — one shared look for the hero CTAs (Book a shoot / See the
   work on desktop) and the mobile Work / Pricing links. Sits level with the
   day/night switch (same dark-glass fill + blur, matched height) so the whole
   row reads as one family. The 768px block only shrinks the type/padding. */
.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cream-50);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.hero-pill:hover { background: rgba(20, 17, 14, 0.72); }
.hero-pill:active { background: rgba(20, 17, 14, 0.72); transform: scale(0.97); }
/* Arrow collapsed to zero width by default; expands on hover/tap, sliding the
   label aside to give it room. */
.hero-pill-arrow {
  display: inline-flex;
  width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.25s var(--ease), margin-left 0.25s var(--ease), opacity 0.25s var(--ease);
}
.hero-pill-arrow svg { width: 14px; height: 14px; }
.hero-pill:hover .hero-pill-arrow,
.hero-pill:active .hero-pill-arrow,
.hero-pill:focus-visible .hero-pill-arrow {
  width: 14px;
  margin-left: 6px;
  opacity: 1;
}

/* staggered entrance */
.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-rise 0.9s var(--ease) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.28s; }
.hero-content > *:nth-child(3) { animation-delay: 0.41s; }
.hero-content > *:nth-child(4) { animation-delay: 0.54s; }
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Day / night switch — a segmented control on a dark track. A soft cream
   thumb (50% opacity) slides under the selected icon; the selected icon is
   drawn filled, the other stays a dimmed outline. Two placements share the
   look and stay in sync via JS:
   --nav:   desktop, in the header nav just left of Work.
   --solid: mobile, in the hero button row below the title (see 768px block).
   Each sets its own --sw-size (the icon-button / thumb diameter). */
.daynight-switch { display: inline-flex; align-items: center; position: relative; }

.daynight-switch--desk,
.daynight-switch--solid {
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.daynight-switch--desk { --sw-size: 32px; }
.daynight-switch--solid { --sw-size: 32px; display: none; } /* shown at 768px */

.daynight-switch--desk::before,
.daynight-switch--solid::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: var(--sw-size); height: var(--sw-size);
  border-radius: 999px;
  background: var(--ink-900);
  opacity: 0.85;
  transition: transform 0.3s var(--ease);
  z-index: 0;
}
.daynight-switch--desk.is-night::before,
.daynight-switch--solid.is-night::before { transform: translateX(calc(100% + 2px)); }

.dn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.dn-btn:focus-visible { outline: 2px solid var(--cream-50); outline-offset: 2px; border-radius: 999px; }
.dn-icon { width: 60%; height: 60%; pointer-events: none; }

.daynight-switch--desk .dn-btn,
.daynight-switch--solid .dn-btn {
  position: relative;
  z-index: 1;
  width: var(--sw-size); height: var(--sw-size);
  color: var(--cream-50);
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
/* Selected icon: full-strength and filled in (vs the dimmed outline sibling). */
.daynight-switch--desk .dn-btn.is-active,
.daynight-switch--solid .dn-btn.is-active { opacity: 1; }
.daynight-switch--desk .dn-btn.is-active .dn-icon,
.daynight-switch--solid .dn-btn.is-active .dn-icon { fill: currentColor; }

/* ============ SECTION SHELL ============ */
.section { padding: clamp(72px, 11vh, 130px) var(--pad-x); }
.section-head { margin-bottom: clamp(36px, 6vh, 64px); }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-inner { max-width: 1280px; margin: 0 auto; }

/* ============ GALLERY (tabs + strips, kept from v1) ============ */
.gallery-section {
  padding: clamp(64px, 10vh, 110px) 0 clamp(72px, 11vh, 130px);
  background: var(--grad-beige-soft);
}
.gallery-head { text-align: center; margin-bottom: 20px; padding: 0 var(--pad-x); }
.gallery-head .eyebrow { display: block; margin-bottom: 12px; }
.gallery-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 34px 0 56px;
}
.tab {
  font-size: 14px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s var(--ease);
}
.tab.is-active { color: var(--text); }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.tab-divider { width: 1px; height: 14px; background: var(--sand-300); }

.gallery-panel { display: none; }
.gallery-panel.is-active { display: block; }

.strip {
  display: flex;
  align-items: stretch;
  height: var(--strip-height);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 8vw;
}
.strip::-webkit-scrollbar { display: none; }

.strip-item {
  flex: 0 0 auto;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin-right: var(--gap);
  position: relative;
  cursor: pointer;
  background: var(--cream-200);
}
.strip-item:last-child { margin-right: 40vw; }
.strip-item img,
.strip-item video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Pagination dots under the strip — one per item, active = centered item.
   Buttons are 16px hit-targets; the visible dot is drawn via ::after. */
.strip-dots {
  display: flex;
  justify-content: center;
  gap: clamp(2px, 1vw, 6px);
  padding: 18px var(--pad-x) 0;
}
.strip-dots button {
  width: clamp(8px, 2.2vw, 16px);
  height: clamp(8px, 2.2vw, 16px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.strip-dots button::after {
  content: "";
  width: clamp(4px, 1.1vw, 6px);
  height: clamp(4px, 1.1vw, 6px);
  border-radius: 50%;
  background: var(--sand-400);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.strip-dots button:hover::after { opacity: 0.75; }
.strip-dots button.is-active::after {
  background: var(--ink-900);
  opacity: 1;
  transform: scale(1.2);
}

/* ============ SERVICES HIGHLIGHT (home) ============ */
.services-highlight { border-top: 1px solid var(--line); }
.sh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(56px, 9vh, 96px);
}
.sh-item { position: relative; padding-top: 26px; }
.sh-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 2px;
  background: var(--accent);
  transition: width 0.45s var(--ease);
}
.sh-item:hover::before { width: 100%; }
.sh-item .sh-icon {
  width: 30px; height: 30px;
  color: var(--text);
  margin-bottom: 18px;
}
.sh-item h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.sh-item p { font-size: 15px; font-weight: 300; color: var(--text-body); }

/* "More" link — underline + arrow-reveal-on-hover, same interaction
   language as .nav-btn's arrow, recolored for this light section (dark
   text, accent underline/arrow). */
.sh-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.sh-more::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.sh-more:hover::after, .sh-more:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.sh-more-arrow {
  display: inline-flex;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.sh-more-arrow svg { width: 13px; height: 13px; }
.sh-more:hover .sh-more-arrow, .sh-more:focus-visible .sh-more-arrow {
  opacity: 1;
  transform: translateX(0);
}

.sh-cta {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vh, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.sh-cta-title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  max-width: 20ch;
  line-height: 1.2;
}
.sh-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ AI FEATURE (home) ============ */
.ai-feature {
  position: relative;
  background: var(--ink-900);
  color: var(--cream-50);
  overflow: hidden;
}
.ai-feature-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  min-height: 100svh;
  max-width: none;
}
.ai-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 11vh, 130px) var(--pad-x);
}
.ai-copy .eyebrow { color: #D9A177; margin-bottom: 16px; }
.ai-copy h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  max-width: 16ch;
  text-wrap: balance;
}
.ai-copy p {
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(250, 247, 242, 0.82);
  max-width: 44ch;
  margin-bottom: 12px;
}
.ai-copy .ai-actions { margin-top: 26px; }
/* Inverted on the dark AI section — the ink fill would vanish against it. */
.ai-copy .btn--solid {
  background: var(--cream-50);
  color: var(--ink-900);
}
.ai-copy .btn--solid:hover {
  background: var(--accent);
  color: var(--cream-50);
}

/* full-height AI photo sample, fading into the text side */
.ai-photo { position: relative; min-height: 60vh; }
.ai-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ai-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--ink-900) 0%, rgba(31,28,24,0.55) 28%, transparent 62%);
}
.ai-badge {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 4vh, 44px);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.9);
  border: 1px solid rgba(250, 247, 242, 0.4);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(20, 17, 14, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ============ ABOUT (home) ============ */
.about { background: var(--grad-beige); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-200);
}
.about-photo img { width: 100%; height: auto; }
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(233, 225, 212, 0.25), transparent 35%);
  pointer-events: none;
}
.about-copy .eyebrow { display: block; margin-bottom: 14px; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: var(--text-body); font-weight: 300; margin-bottom: 14px; max-width: 56ch; }
.about-facts {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.about-fact strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}
.about-fact span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  padding: clamp(64px, 10vh, 110px) var(--pad-x) clamp(40px, 6vh, 70px);
  background: var(--grad-beige-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  max-width: 18ch;
}
.page-hero .page-hero-sub {
  margin-top: 16px;
  font-weight: 300;
  color: var(--text-body);
  max-width: 52ch;
}

/* ============ SERVICES PAGE ============ */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 9vh, 100px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.svc:nth-child(even) { background: var(--bg-soft); }
.svc.is-flipped .svc-copy { order: 2; }
.svc.is-flipped .svc-gallery { order: 1; }

.svc-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.svc-num::after { content: ""; width: 36px; height: 1px; background: var(--accent); }
.svc-copy h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 18ch;
}
.svc-copy p { font-weight: 300; color: var(--text-body); max-width: 46ch; margin-bottom: 10px; }
.svc-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.svc-price {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream-50);
  background: var(--ink-900);
  border-radius: 999px;
  padding: 9px 20px;
}
.svc-note {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* mini gallery — horizontal scroll, clickable */
.mini-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px;
  margin: -4px;
}
.mini-gallery::-webkit-scrollbar { display: none; }
.mini-item {
  flex: 0 0 auto;
  height: clamp(240px, 34vh, 360px);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--cream-200);
}
.mini-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.mini-item:hover img { transform: scale(1.04); }
/* Every item shares one height; width follows the aspect ratio (a 9:16 reel is
   narrow, a 16:9 clip is wide, both the same height). No per-ratio height. */
.mini-label {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 2;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-50);
  background: rgba(20, 17, 14, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 13px;
  pointer-events: none;
}
.mini-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.mini-play span {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 247, 242, 0.7);
  background: rgba(20, 17, 14, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--cream-50);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.mini-item:hover .mini-play span { transform: scale(1.12); background: rgba(181, 113, 76, 0.75); }
.mini-play svg { width: 18px; height: 18px; margin-left: 2px; }

/* services final CTA */
.book-cta {
  text-align: center;
  background: var(--grad-beige);
}
.book-cta .eyebrow { display: block; margin-bottom: 16px; }
.book-cta h2 { margin: 0 auto 30px; max-width: 22ch; }
.book-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ CONTACT PAGE ============ */
.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  max-width: 1080px;
  margin: 0 auto;
}
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--grad-beige-soft);
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--sand-400);
  box-shadow: 0 24px 48px rgba(31, 28, 24, 0.08);
}
.contact-card .cc-icon { width: 34px; height: 34px; color: var(--accent); }
.contact-card h2 { font-size: 22px; font-weight: 500; }
.contact-card p { font-weight: 300; color: var(--text-body); flex: 1; }
.contact-card .cc-hint {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-alt {
  text-align: center;
  margin-top: clamp(40px, 7vh, 72px);
  color: var(--text-muted);
  font-weight: 300;
  font-size: 15px;
}
.contact-alt a {
  color: var(--text);
  border-bottom: 1px solid var(--sand-400);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-alt a:hover { color: var(--accent-strong); border-color: var(--accent-strong); }

/* ============ LEGAL PAGE ============ */
.legal-body { max-width: 720px; margin: 0 auto; }
.legal-body h2 { font-size: 19px; font-weight: 500; margin: 34px 0 10px; }
.legal-body p { font-weight: 300; color: var(--text-body); margin-bottom: 12px; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-100);
  padding: clamp(48px, 8vh, 80px) var(--pad-x) 36px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.footer-brand .logo-sub { margin-top: 6px; }
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-body);
  padding: 5px 0;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-col a:hover { color: var(--accent-strong); transform: translateX(3px); }
.footer-bottom {
  max-width: 1280px;
  margin: clamp(36px, 6vh, 56px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-muted);
}
.footer-bottom a { border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease); }
.footer-bottom a:hover { border-color: var(--sand-400); }
/* NUJAI CREATIVE web-design credit — styled as a small Rubik wordmark so the
   brand name reads as a name, not muted body text. */
.footer-bottom .credit-nujai {
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text);
}

/* ============ SCROLL REVEALS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 12, 12, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.lightbox[hidden] { display: none; }
.lb-stage {
  flex: 1; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 80px;
}
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.lb-close {
  position: absolute;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #f4efe7; opacity: 0.7; z-index: 2;
  top: calc(24px + env(safe-area-inset-top));
  right: calc(32px + env(safe-area-inset-right));
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 40px; font-weight: 300; color: #f4efe7; opacity: 0.6;
  padding: 16px 20px; z-index: 2;
}
.lb-nav:hover { opacity: 1; }
.lb-prev { left: calc(16px + env(safe-area-inset-left)); }
.lb-next { right: calc(16px + env(safe-area-inset-right)); }

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .strip { padding: 0 6vw; }
  .ai-feature-inner { grid-template-columns: minmax(0, 48%) minmax(0, 52%); }
}

@media (max-width: 860px) {
  /* AI feature stacks: photo below, fading up into the text */
  .ai-feature-inner { grid-template-columns: 1fr; min-height: 0; }
  .ai-copy { padding-bottom: 0; }
  .ai-photo { min-height: 72svh; margin-top: -8vh; }
  .ai-photo::before {
    background: linear-gradient(to bottom, var(--ink-900) 0%, rgba(31,28,24,0.4) 30%, transparent 60%);
  }

  .sh-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }

  .svc { grid-template-columns: 1fr; gap: 30px; }
  .svc.is-flipped .svc-copy { order: 1; }
  .svc.is-flipped .svc-gallery { order: 2; }

  .contact-options { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .logo-name { font-size: 12px; letter-spacing: 0.345em; }
  .logo-sub { font-size: 8px; letter-spacing: 0.32em; margin-top: 4px; }

  /* Simplified mobile header: just logo + Book. Work / Pricing / Login / switch
     move down into the hero button row below the title (.hero-nav). */
  .nav-link { display: none; }
  .nav-book { display: inline-flex; padding: 9px 18px; font-size: 11px; }
  /* Keep the language dropdown in the compact header (logo + Book + EN ▾). */
  .nav { gap: 12px; }
  .lang-dd-trigger { font-size: 12px; gap: 4px; }

  /* --- Hero button row (below the title): Work / Pricing / Login pills and the
     day/night switch. Fits one line in English; wraps gracefully when the
     labels are longer (e.g. Spanish TRABAJOS/PRECIOS/ACCESO) so the day/night
     switch drops to a second line instead of being clipped off the edge. The
     desktop header switch hides here; .daynight-switch--solid takes its place. --- */
  .daynight-switch--desk { display: none; }
  .hero-nav { display: flex; flex-wrap: wrap; row-gap: 8px; margin-top: 4px; }

  /* Mobile sizing for the shared dark-glass pill (base look is global): a
     touch smaller type/padding so Work + Pricing + switch fit one line. */
  .hero-pill { padding: 10px 16px; font-size: 11.5px; letter-spacing: 0.08em; }
  .hero-pill-arrow svg { width: 12px; height: 12px; }
  .hero-pill:hover .hero-pill-arrow,
  .hero-pill:active .hero-pill-arrow,
  .hero-pill:focus-visible .hero-pill-arrow { width: 12px; margin-left: 5px; }

  /* Physical cartridge styling is shared in the base rules; here it just
     switches on. Its --sw-size (32px) makes it match the pill height so the
     three sit level. */
  .daynight-switch--solid { display: inline-flex; }

  /* Height derives from width via aspect-ratio (not min-height:100svh) so
     object-fit:cover is never forced to crop the sides — a container this
     shape can only ever crop vertically, which object-position (above)
     anchors to the bottom, trimming empty sky off the top instead. */
  .hero { min-height: 0; aspect-ratio: 0.87; }
  .hero-bg-desktop { display: none; }
  .hero-bg-mobile { display: block; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .hero-sub { margin-bottom: 24px; }
  /* Book a shoot / See the work give way to the lighter Work/Pricing/switch
     row (.hero-nav) below the title; Book still lives in the header. */
  .hero-actions { display: none; }
  .hero-content { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

  .gallery-tabs { margin: 26px 0 36px; gap: 18px; }
  .tab { font-size: 12px; letter-spacing: 0.2em; }
  :root { --strip-height: var(--strip-height-mobile); }
  .strip { height: var(--strip-height); padding: 0 var(--pad-x); }
  .strip-item:last-child { margin-right: 50vw; }

  .sh-cta { flex-direction: column; align-items: flex-start; }

  .mini-item { height: clamp(200px, 30vh, 280px); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .lb-stage { padding: 44px 8px; }
  .lb-nav { font-size: 30px; padding: 14px 12px; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-close { top: 14px; right: 16px; font-size: 12px; }
}

@media (max-width: 380px) {
  /* A touch tighter on the narrowest phones — logo shrinks, side padding
     eases in, but keep the safe-area top inset for notched displays. */
  .site-header { padding: 12px 12px; padding-top: calc(12px + env(safe-area-inset-top)); }
  /* 11px name needs a touch more tracking than the ≤768 rule to keep matching
     the (still 8px) sub line's width. */
  .logo-name { font-size: 11px; letter-spacing: 0.435em; }
  .hero-title { font-size: 28px; }
  .strip { height: var(--strip-height-mobile); padding: 0 var(--pad-x); }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  :root {
    --strip-height-mobile: 70svh;
    --strip-height: 70svh;
  }
  /* Landscape phones are wider than tall — let the aspect-ratio hero size
     itself; forcing min-height:100svh here would re-widen the box past the
     image's own ratio and crop the sides again. */
  .hero-content { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .hero-title { font-size: clamp(22px, 4vw, 32px); }
  .lb-stage { padding: 36px 64px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip { scroll-snap-type: none; }
  .strip-item { transition: none !important; }
  .hero-content > * { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .dn-btn, .daynight-switch--desk::before, .daynight-switch--solid::before,
  .btn, .btn::after, .hero-pill, .hero-pill-arrow, .mini-item img { transition: none; }
}
