/* =============================================================
   BLAU WEDDINGS — Editorial Quiet Luxury
   ============================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Amoresa';
  src: url('../fonts/amoresa-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/The Seasons.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* "Decisions" slot — currently aliased to The Seasons until the
   real Decisions font file is provided. */
@font-face {
  font-family: 'Decisions';
  src: url('../fonts/The Seasons.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --c-ivory:       #f4efe7;
  --c-ivory-soft:  #ece5d9;
  --c-blue-deep:   #0e2238;
  --c-blue-mid:    #4a6280;
  --c-black:       #0a0a0a;
  --c-white:       #ffffff;

  /* Type */
  --ff-script:  'Amoresa', 'Cormorant Garamond', serif;
  --ff-display: 'Decisions', 'Cormorant Garamond', 'Times New Roman', serif;
  --ff-body:    'Cormorant Garamond', Georgia, serif;
  --ff-header:  'The Seasons', 'Cormorant Garamond', Georgia, serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.55, 0.05, 0.5, 0.95);

  /* Layout */
  --container: 1440px;
  --gutter:    clamp(1.5rem, 4vw, 4rem);
  --header-h:  72px;
}


/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--c-ivory);
  color: var(--c-blue-deep);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, picture { max-width: 100%; display: block; }

/* Make <picture> transparent in layout so its child <img> fills the
   figure that wraps it (otherwise the figure's background shows through). */
.editorial__photo picture,
.team__detail-photo picture,
.zoom-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.editorial__photo picture img,
.team__detail-photo picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

/* Skip link — accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-blue-deep);
  color: var(--c-white);
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Lock scroll when overlays are open */
body.is-locked { overflow: hidden; }


/* =============================================================
   HEADER · Auto-hide on scroll
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem var(--gutter);
  background: rgba(244, 239, 231, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transform: translateY(-110%);
  transition: transform 0.55s var(--ease-out), opacity 0.4s var(--ease-out);
  opacity: 0;
  pointer-events: none;
  border-bottom: 1px solid rgba(14, 34, 56, 0.06);
}

/* When the mobile menu is open, force the header to be visible
   regardless of scroll direction. */
.site-header[data-state="visible"],
.site-header[data-menu="open"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

/* Hamburger toggle — hidden on desktop, shown ≤860px */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 102;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle__line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-blue-deep);
  border-radius: 1px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Brand mark in header — image logo */
.site-header__logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  color: var(--c-blue-deep);
  line-height: 0;
}
.site-header__logo img {
  height: clamp(28px, 2.4vw, 38px);
  width: auto;
  display: block;
  user-select: none;
}

/* Nav */
.site-header__nav ul {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
  justify-content: center;
}
.site-header__nav a {
  font-family: var(--ff-header);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-blue-deep);
  position: relative;
  padding: 0.35rem 0;
  transition: font-style 0.35s var(--ease-out), letter-spacing 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.site-header__nav a:hover {
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--c-black);
}

/* Language */
.site-header__lang {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-header);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}
.lang-btn {
  color: var(--c-blue-mid);
  transition: color 0.3s var(--ease-out), font-style 0.3s var(--ease-out);
}
.lang-btn:hover { color: var(--c-blue-deep); font-style: italic; }
.lang-btn.is-active { color: var(--c-blue-deep); font-style: italic; }
.lang-sep { color: var(--c-blue-mid); opacity: 0.6; }


/* =============================================================
   HERO · Zoom Portal
   ============================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--c-black);
  overflow: hidden;
}

.hero__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Stack of zoomable background images */
.zoom-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1200px;
}

.zoom-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: 50% 50%;
  background-size: cover;          /* each layer fills its own rectangle */
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  backface-visibility: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);  /* subtle lift between layers */
}

/* Outer image is full-bleed — no shadow */
.zoom-img:first-child { box-shadow: none; }

/* First image visible from the start; JS will override but
   keep this for a graceful no-JS fallback. */
.zoom-img:first-child {
  transform: translate(-50%, -50%) scale(1);
}

/* Logo locked dead-center, in front of all images */
.hero__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
  pointer-events: none;
}
.hero__logo img {
  width: clamp(220px, 26vw, 380px);
  height: auto;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.18));
  user-select: none;
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  left: 0; right: 0; bottom: 2.25rem;
  z-index: 51;
  text-align: center;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-white);
  opacity: 0.8;
  pointer-events: none;
  animation: cue-float 2.6s ease-in-out infinite;
}
@keyframes cue-float {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%      { transform: translateY(6px); opacity: 0.4; }
}


/* =============================================================
   CONTENT
   ============================================================= */
.content { position: relative; background: var(--c-ivory); z-index: 2; }

.section {
  min-height: 100vh;
  padding: clamp(4rem, 10vh, 9rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-blue-deep);
  margin: 0 0 1.5rem;
}

/* Reveal-on-scroll baseline (JS will animate in) */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}


/* =============================================================
   EDITORIAL · "INSTANTS QUE PERDUREN"
   ============================================================= */
.editorial {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;   /* slight bias toward text */
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 12rem) var(--gutter) clamp(2rem, 5vh, 5rem);
  position: relative;
  z-index: 2;
}

.editorial__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-ivory-soft);
  max-width: 480px;
  width: 100%;
}
.editorial__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial__text {
  max-width: 56ch;          /* room for both the wide-tracked eyebrow and body */
  padding-right: clamp(0rem, 3vw, 3rem);
}

.editorial__eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-blue-deep);
  margin: 0 0 1.75rem;
  white-space: nowrap;       /* keep "INSTANTS QUE PERDUREN" on one line */
}

.editorial__body {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.7;
  color: var(--c-blue-deep);
  margin: 0;
}

@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial__text { padding-right: 0; max-width: none; }
  .editorial__eyebrow { white-space: normal; }   /* allow wrap on narrow screens */
  .editorial__photo { max-width: 100%; }
}


/* =============================================================
   DATES · Banner headline · Full-width 3-line composition
   The script "D" rises above the section to overlap the
   editorial photo above (matches the Canva inspiration).
   ============================================================= */
.dates-banner {
  position: relative;
  z-index: 3;                                /* sits above the editorial */
  width: 100%;
  padding: 0 var(--gutter) clamp(4rem, 10vh, 9rem);
  margin: 0;
  overflow: visible;                          /* let the D bleed out top */
  pointer-events: none;                       /* don't block clicks above */
}

.dates-banner__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(3rem, 14vw, 15rem);
  line-height: 1.05;                /* more leading so script descenders don't crash */
  letter-spacing: -0.015em;
  color: var(--c-blue-deep);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0.05em;                   /* tiny breathing space between lines */
  pointer-events: auto;
}

.dates-banner__line {
  display: block;
  white-space: nowrap;
}

/* Line 1 — "Dates" with stylized D — pulled up to overlap above */
.dates-banner__line--1 {
  justify-self: start;
  margin-top: clamp(-10rem, -8vw, -7rem);     /* lifts upward over editorial */
  margin-left: clamp(-2rem, -1.5vw, -0.5rem); /* slight left bleed */
}

/* Line 2 — "disponibles" — right-aligned for asymmetric editorial flow */
.dates-banner__line--2 {
  justify-self: end;
}

/* Line 3 — "per 2027" — right-aligned, slightly indented */
.dates-banner__line--3 {
  justify-self: end;
  padding-right: clamp(0.5rem, 3vw, 5rem);
}

.dates-banner__initial {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: 1.35em;
  display: inline-block;
  position: relative;
  top: 0.18em;
  line-height: 0.7;
  margin-right: 0.18em;       /* extra breathing space so the script "D" doesn't overlap "ates" */
  color: var(--c-blue-deep);
  vertical-align: baseline;
}

@media (max-width: 860px) {
  .dates-banner__title { font-size: clamp(3rem, 15vw, 7rem); line-height: 0.98; }
  .dates-banner__line--1 { margin-top: clamp(-5rem, -8vw, -3.5rem); }
  .dates-banner__line--3 { padding-right: 0; }
}

@media (max-width: 540px) {
  .dates-banner__title { font-size: clamp(2.6rem, 17vw, 5rem); line-height: 1.0; }
  .dates-banner__initial { font-size: 1.4em; top: 0.16em; margin-right: 0.05em; }
  .dates-banner__line--1 { margin-top: clamp(-3.5rem, -9vw, -2.5rem); margin-left: 0; }
  .dates-banner__line--2,
  .dates-banner__line--3 { justify-self: start; padding-right: 0; }
}


/* =============================================================
   GALLERY · Masonry (CSS columns) · whole photos visible
   Each photo keeps its natural aspect ratio so nothing gets
   cropped. Items flow into 3 / 2 / 1 columns by viewport.
   ============================================================= */
.gallery {
  position: relative;
  padding: clamp(3rem, 8vh, 7rem) var(--gutter) clamp(8rem, 18vh, 14rem);
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
  z-index: 2;
}

.gallery__label {
  font-family: var(--ff-header);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-blue-deep);
  margin: 0 0 clamp(2rem, 5vh, 4rem);
  display: inline-flex;
  align-items: baseline;
}
.gallery__label-dot {
  font-size: 1.5em;
  line-height: 0;
  margin-left: 0.1em;
  color: var(--c-blue-deep);
}

.gallery__stage {
  column-count: 3;
  column-gap: clamp(0.75rem, 1.4vw, 1.4rem);
  /* Tile sizing classes are kept for backward compat but reset here */
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(0.75rem, 1.4vw, 1.4rem);
  padding: 0;
  border: 0;
  background: var(--c-ivory-soft);
  break-inside: avoid;
  overflow: hidden;
  cursor: zoom-in;
  will-change: transform;
}

.gallery__item img {
  width: 100%;
  height: auto;            /* keep natural aspect ratio — no crop */
  display: block;
  transition: transform 1.6s var(--ease-out), filter 0.6s var(--ease-out);
}

.gallery__item:hover img { transform: scale(1.04); }

/* Reset the old grid-based size classes (keep the markup safe) */
.tile--hero, .tile--portrait, .tile--vert, .tile--wide,
.tile--md,   .tile--square,   .tile--detail, .tile--video {
  grid-column: auto;
  grid-row: auto;
}

/* Video tile — full-width inside its column, with play icon */
.gallery__item--video {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
}
.gallery__item--video img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}
.gallery__item--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.22) 100%);
  pointer-events: none;
  transition: background 0.4s var(--ease-out);
}
.gallery__item--video:hover::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.32) 100%);
}

.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(48px, 6vw, 72px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.45s var(--ease-out);
}
.play-icon svg { width: 100%; height: 100%; display: block; }
.gallery__item--video:hover .play-icon { transform: translate(-50%, -50%) scale(1.08); }

/* ---- Tablet: 2 columns ---- */
@media (max-width: 1024px) {
  .gallery__stage { column-count: 2; }
}

/* ---- Mobile: 1 column ---- */
@media (max-width: 640px) {
  .gallery__stage { column-count: 1; column-gap: 0.6rem; }
  .gallery__item { margin-bottom: 0.6rem; }
}


/* =============================================================
   LIGHTBOX · Photos + YouTube · with prev/next navigation
   ============================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 14, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: clamp(1rem, 4vw, 3rem) clamp(0.75rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
  gap: clamp(0.5rem, 2vw, 1.5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
.lightbox[data-state="open"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__frame {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 1280px;
  max-height: calc(100vh - 7rem);
  display: grid;
  place-items: center;
  background: transparent;
  transform: scale(0.96);
  transition: transform 0.5s var(--ease-out);
}
.lightbox[data-state="open"] .lightbox__frame { transform: scale(1); }

/* Image mode — full picture visible, max-height bounded */
.lightbox__frame img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Video mode — fixed 16:9 with iframe filling */
.lightbox[data-mode="video"] .lightbox__frame {
  aspect-ratio: 16 / 9;
  width: min(1200px, 100%);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.lightbox__close {
  position: fixed;
  top: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 1;
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.14);
  transform: rotate(90deg);
}
.lightbox__close svg { width: 20px; height: 20px; }

/* Prev / Next nav buttons — flank the media */
.lightbox__nav {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  align-self: center;
}
.lightbox__nav:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.6);
}
.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox__nav--prev:hover { transform: translateX(-3px); }
.lightbox__nav--next:hover { transform: translateX(3px); }
.lightbox__nav svg { width: 22px; height: 22px; }

.lightbox__counter {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-family: var(--ff-header);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 720px) {
  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    padding: 0.75rem 0.75rem 1.25rem;
  }
  .lightbox__frame { grid-column: 1; grid-row: 1; max-height: calc(100vh - 8rem); }
  .lightbox__frame img { max-height: calc(100vh - 8rem); }
  .lightbox__nav {
    grid-row: 2;
    align-self: end;
    width: 44px; height: 44px;
  }
  .lightbox__nav--prev { grid-column: 1; justify-self: start; margin-left: 1rem; }
  .lightbox__nav--next { grid-column: 1; justify-self: end; margin-right: 1rem; margin-top: -52px; }
  .lightbox__counter { grid-row: 3; }
  .lightbox__close { width: 38px; height: 38px; top: 0.75rem; right: 0.75rem; }
}


/* =============================================================
   TEAM · Marc · Edna · Sergi
   Vertical stack of names. Hovering a row reveals a panel with
   the photo + role + bio sliding in from the right (Dulcedo-style).
   ============================================================= */
.team {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 10rem) var(--gutter);
}
.team .eyebrow { margin-bottom: clamp(2rem, 5vh, 4rem); }

.team__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(14, 34, 56, 0.12);
}

.team__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(2rem, 4vw, 4rem) 0;       /* generous breathing between team members */
  border-bottom: 1px solid rgba(14, 34, 56, 0.12);
  cursor: pointer;
  outline: none;
  transition: padding-left 0.5s var(--ease-out);
}
.team__row:hover,
.team__row:focus-visible,
.team__row.is-active {
  padding-left: clamp(0.5rem, 2vw, 2rem);
}

.team__name {
  font-family: var(--ff-display);    /* base: The Seasons / Decisions */
  font-weight: 400;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--c-blue-deep);
  white-space: nowrap;
  transition: color 0.4s var(--ease-out);
}
.team__name-initial {
  font-family: var(--ff-script);     /* the big stylized first letter — Amoresa */
  font-weight: 400;
  font-size: 1.25em;
  display: inline-block;
  line-height: 0.7;
  vertical-align: baseline;
  position: relative;
  top: 0.12em;
  margin-right: 0.04em;
}
.team__row:hover .team__name,
.team__row:focus-visible .team__name,
.team__row.is-active .team__name {
  color: var(--c-blue-deep);
  opacity: 0.18;                    /* fade the giant name so the floating bio remains readable */
  font-style: italic;
  transition: opacity 0.5s var(--ease-out), color 0.4s var(--ease-out);
}
.team__row:hover .team__name-initial,
.team__row:focus-visible .team__name-initial,
.team__row.is-active .team__name-initial {
  font-style: normal;                /* script font already has its own slant */
}

/* Detail panel — floating, no box. Photo + text overlay the page. */
.team__detail {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(20px, -50%);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  background: transparent;            /* no panel — pure floating */
  padding: 0;
  width: auto;
  max-width: clamp(440px, 50vw, 680px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  z-index: 8;                         /* float above adjacent rows */
}
.team__row:hover .team__detail,
.team__row:focus-visible .team__detail,
.team__row.is-active .team__detail {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.team__detail-photo {
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 280px);   /* significantly bigger — more presence */
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: var(--c-ivory-soft);
}
.team__detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team__detail-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
}
.team__detail-name {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 1.5vw, 1.6rem);
  letter-spacing: 0.005em;
  margin: 0 0 0.25rem;
  color: var(--c-blue-deep);
}
.team__detail-role {
  font-family: var(--ff-header);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: var(--c-blue-mid);
}
.team__detail-bio {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: var(--c-blue-deep);
}

/* Edna's row mirrored — name on the right, panel slides in from the left */
.team__row[data-member="edna"] {
  justify-content: flex-end;
}
.team__row[data-member="edna"] .team__detail {
  right: auto;
  left: 0;
  transform: translate(-20px, -50%);
}
.team__row[data-member="edna"]:hover .team__detail,
.team__row[data-member="edna"]:focus-visible .team__detail,
.team__row[data-member="edna"].is-active .team__detail {
  transform: translate(0, -50%);
}
.team__row[data-member="edna"]:hover,
.team__row[data-member="edna"]:focus-visible,
.team__row[data-member="edna"].is-active {
  padding-left: 0;
  padding-right: clamp(0.5rem, 2vw, 2rem);
}

/* Tablet — slightly tighter type */
@media (max-width: 960px) {
  .team__name { font-size: clamp(3.4rem, 13vw, 6.5rem); }
  .team__detail { width: clamp(320px, 50vw, 420px); }
}

/* Mobile — detail stacks BELOW the name (still no panel/box) */
@media (max-width: 720px) {
  .team__row {
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(0.8rem, 3vw, 1.2rem) 0;
  }
  .team__row:hover, .team__row:focus-visible, .team__row.is-active {
    padding-left: 0;
  }
  .team__name { font-size: clamp(3rem, 18vw, 5.5rem); }

  .team__detail {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    background: transparent;
    padding: 0;
    opacity: 0;
    transition: max-height 0.5s var(--ease-out),
                opacity 0.4s var(--ease-out),
                margin 0.4s var(--ease-out);
  }
  .team__row.is-active .team__detail {
    max-height: 360px;
    opacity: 1;
    margin-top: 1rem;
  }
  .team__row:hover .team__detail,
  .team__row:focus-visible .team__detail {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }
  .team__row.is-active .team__detail {
    max-height: 360px;
    opacity: 1;
    margin-top: 1rem;
  }

  .team__detail-photo { width: clamp(140px, 38vw, 200px); }
  .team__detail-info  { padding: 0; }
}

/* =============================================================
   MEMBER TOOLTIP · floats with the cursor (or near touch element)
   ============================================================= */
.member-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: clamp(260px, 26vw, 340px);
  background: var(--c-blue-deep);
  color: var(--c-ivory);
  padding: 1.15rem 1.35rem 1.25rem;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.96);
  transform-origin: top left;
  transition: opacity 0.28s var(--ease-out), transform 0.32s var(--ease-out);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.member-tooltip[data-state="visible"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.member-tooltip__name {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.15rem;
  color: var(--c-ivory);
}
.member-tooltip__role {
  font-family: var(--ff-header);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.member-tooltip__bio {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 640px) {
  /* On touch screens, anchor the tooltip to the bottom of the viewport
     instead of following the cursor (no cursor on touch). */
  .member-tooltip {
    left: 50% !important;
    top: auto !important;
    bottom: 1rem;
    transform: translate3d(-50%, 0, 0) scale(0.96);
    width: calc(100% - 2rem);
    max-width: 380px;
  }
  .member-tooltip[data-state="visible"] {
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}

/* Tablet ≤960px — slightly tighter type, photos a touch smaller */
@media (max-width: 960px) {
  .team__name      { font-size: clamp(3.8rem, 14vw, 7.5rem); }
  .team__photo     { max-width: 220px; }
  .team__photo--sergi { max-width: 180px; }
}

/* Mobile ≤640px — single column with name above photo per member */
@media (max-width: 640px) {
  .team__stage {
    grid-template-columns: 1fr;
    row-gap: clamp(1rem, 4vw, 2rem);
  }
  .team__name {
    font-size: clamp(3.2rem, 22vw, 6rem);
    padding: 0;
    text-align: left;
    grid-column: 1;
    justify-self: start !important;
    padding-right: 0 !important;
  }
  .team__photo {
    grid-column: 1;
    width: 70%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
  }

  .team__name--marc   { grid-row: 1; }
  .team__photo--marc  { grid-row: 2; margin-left: auto; }
  .team__name--edna   { grid-row: 3; align-self: end; padding-left: clamp(2rem, 12vw, 5rem); }
  .team__photo--edna  { grid-row: 4; margin-left: 0; }
  .team__name--sergi  { grid-row: 5; }
  .team__photo--sergi { grid-row: 6; margin-left: auto; aspect-ratio: 1; max-width: 240px; }

  /* On touch: hint the card stays open after tap */
  .team__card { padding: 0.8rem 1rem; }
}


/* =============================================================
   SERVICES · El que oferim
   ============================================================= */
.services {
  position: relative;
  z-index: 2;
  background: var(--c-ivory-soft);
  padding: clamp(5rem, 12vh, 10rem) var(--gutter);
}
.services__head {
  max-width: 920px;
  margin: 0 auto clamp(3rem, 7vh, 5rem);
}
.services__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0.6rem 0 1rem;       /* tight gap between title and lead */
  letter-spacing: -0.005em;
  max-width: 22ch;
  color: var(--c-blue-deep);
}
.services__lead {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
  color: var(--c-blue-deep);
}

.services__list {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.service {
  position: relative;
  background: var(--c-ivory);
  padding: clamp(2rem, 2.5vw, 2.75rem) clamp(1.5rem, 2vw, 2.25rem) clamp(2.25rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(14, 34, 56, 0.08);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 34, 56, 0.2);
}

.service--featured {
  background: var(--c-blue-deep);
  color: var(--c-ivory);
  border-color: var(--c-blue-deep);
}
.service--featured .service__title,
.service--featured .service__price strong { color: var(--c-ivory); }
.service--featured .service__features li { border-color: rgba(255, 255, 255, 0.15); }

.service__badge {
  position: absolute;
  top: -0.6rem;
  left: clamp(1.5rem, 2vw, 2.25rem);
  background: var(--c-ivory);
  color: var(--c-blue-deep);
  font-family: var(--ff-header);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 34, 56, 0.12);
}

.service__price {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--c-blue-mid);
  margin: 0;
  text-transform: uppercase;
}
.service__price strong {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.005em;
  color: var(--c-blue-deep);
  display: block;
  margin-top: 0.25rem;
}
.service--featured .service__price { color: rgba(255,255,255,0.7); }

.service__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.1;
  margin: 0;
  color: var(--c-blue-deep);
}

.service__desc {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.service__features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.service__features li {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  padding: 0.5rem 0 0;
  border-top: 1px solid rgba(14, 34, 56, 0.08);
  letter-spacing: 0.005em;
}

@media (max-width: 1024px) {
  .services__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .services__title { max-width: none; }
}
@media (max-width: 540px) {
  .services__list { grid-template-columns: 1fr; }
}


/* =============================================================
   TESTIMONIALS · Carousel (one slide visible)
   ============================================================= */
.testimonials {
  position: relative;
  z-index: 2;
  background: var(--c-blue-deep);
  color: var(--c-ivory);
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
  overflow: hidden;
}
.testimonials__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.testimonials__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.testimonials__nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--c-ivory);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.testimonials__nav:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--c-ivory);
}
.testimonials__nav--prev:hover { transform: translateX(-3px); }
.testimonials__nav--next:hover { transform: translateX(3px); }
.testimonials__nav svg { width: 20px; height: 20px; }

.testimonials__viewport {
  overflow: hidden;
  width: 100%;
}
.testimonials__track {
  display: flex;
  width: 100%;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.testimonial {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 clamp(1rem, 4vw, 4rem);
  list-style: none;
}
.testimonial blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}
.testimonial blockquote p {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.65;
  margin: 0;
  max-width: 60ch;
  text-wrap: balance;
}
.testimonial blockquote footer {
  font-family: var(--ff-header);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.testimonial blockquote footer span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.55);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  cursor: pointer;
}
.dot:hover { background: rgba(255, 255, 255, 0.5); }
.dot.is-active { background: var(--c-ivory); transform: scale(1.3); }

@media (max-width: 540px) {
  .testimonials__nav { width: 38px; height: 38px; }
  .testimonials__nav svg { width: 16px; height: 16px; }
  .testimonial { padding: 0 0.5rem; }
}


/* =============================================================
   CONTACT FORM · Editorial minimal
   ============================================================= */
.contact {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 14vh, 10rem) var(--gutter) clamp(6rem, 16vh, 11rem);
}
.contact__inner {
  max-width: 920px;
  margin: 0 auto;
}
.contact__head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.contact__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 1.5rem;
  color: var(--c-blue-deep);
}
.contact__title em {
  font-family: var(--ff-script);
  font-style: normal;
  font-size: 1.3em;
  line-height: 0.9;
  display: inline-block;
  margin-top: 0.1em;
}
.contact__lead {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  line-height: 1.65;
  max-width: 50ch;
  margin: 0;
  color: var(--c-blue-deep);
}

.contact-form {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-form__field--full { grid-column: 1 / -1; }

.contact-form__label {
  font-family: var(--ff-header);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-blue-mid);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(14, 34, 56, 0.25);
  background: transparent;
  font-family: var(--ff-body);
  font-size: 1.1rem;
  color: var(--c-blue-deep);
  padding: 0.5rem 0 0.7rem;
  transition: border-color 0.35s var(--ease-out);
  border-radius: 0;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--c-blue-deep);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.contact-form select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-blue-deep) 50%),
                    linear-gradient(135deg, var(--c-blue-deep) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.05rem, calc(100% - 12px) 1.05rem;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  color: var(--c-blue-mid);
  cursor: pointer;
}
.contact-form__consent input[type="checkbox"] {
  appearance: auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--c-blue-deep);
  flex-shrink: 0;
}
.contact-form__consent a {
  color: var(--c-blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form__submit {
  margin-top: 1rem;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--c-blue-deep);
  color: var(--c-ivory);
  border: 1px solid var(--c-blue-deep);
  padding: 1rem 1.75rem;
  font-family: var(--ff-header);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), gap 0.35s var(--ease-out);
}
.contact-form__submit:hover {
  background: var(--c-ivory);
  color: var(--c-blue-deep);
  gap: 1.2rem;
}
.contact-form__submit svg { width: 18px; height: 18px; }

.contact-form__success {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-blue-mid);
  background: var(--c-ivory-soft);
  font-family: var(--ff-body);
  font-style: italic;
  color: var(--c-blue-deep);
}

@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; }
}


/* =============================================================
   LEGAL PAGES (legal.html · privacy.html · cookies.html)
   ============================================================= */
.legal-page .site-header {
  background: var(--c-ivory);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(14, 34, 56, 0.08);
}
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(4rem, 10vh, 8rem);
}
.legal__inner > .eyebrow { margin-top: 0; }
.legal__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0.4rem 0 2rem;
  color: var(--c-blue-deep);
}
.legal__lead {
  font-family: var(--ff-body);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--c-blue-deep);
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-family: var(--ff-header);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  color: var(--c-blue-deep);
}
.legal p, .legal li {
  font-family: var(--ff-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--c-blue-deep);
}
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal a { color: var(--c-blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { font-style: italic; }
.legal__note {
  margin-top: 3rem;
  font-style: italic;
  opacity: 0.7;
  font-size: 0.92rem;
}


/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--c-blue-deep);
  color: var(--c-ivory);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 1.5rem;
  position: relative;
  z-index: 2;
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
}
.site-footer__tagline {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 32ch;
  margin: 0;
  opacity: 0.78;
}
.site-footer__heading {
  font-family: var(--ff-header);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.site-footer__nav ul,
.site-footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.site-footer__nav a,
.site-footer__contact a,
.site-footer__contact p {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--c-ivory);
  margin: 0 0 0.4rem;
  transition: opacity 0.3s var(--ease-out);
}
.site-footer__nav a:hover,
.site-footer__contact a:hover { opacity: 0.65; font-style: italic; }

.site-footer__social { margin-top: 1.5rem; flex-direction: row !important; gap: 1.25rem !important; }

.site-footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  opacity: 0.7;
}
.site-footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__legal a:hover { opacity: 0.7; font-style: italic; }


/* =============================================================
   PRELOADER · masks the hero until critical images are loaded
   ============================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--c-ivory);
  display: grid;
  place-items: center;
  gap: 1.5rem;
  grid-auto-flow: row;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.preloader__mark img {
  width: 140px;
  height: auto;
  opacity: 0.85;
  animation: preloader-pulse 1.6s ease-in-out infinite;
}
.preloader__bar {
  width: clamp(120px, 20vw, 200px);
  height: 1px;
  background: rgba(14, 34, 56, 0.15);
  position: relative;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  width: 30%;
  height: 100%;
  background: var(--c-blue-deep);
  animation: preloader-bar 1.4s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes preloader-bar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}


/* =============================================================
   PROCESS · 4-step grid
   ============================================================= */
.process {
  position: relative;
  z-index: 2;
  background: var(--c-ivory);
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}
.process__head {
  max-width: var(--container);
  margin: 0 auto clamp(3rem, 7vh, 5rem);
}
.process__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0.6rem 0 0;
  letter-spacing: -0.005em;
  color: var(--c-blue-deep);
}
.process__steps {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
  padding: 0;
  counter-reset: process;
}
.process__step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid rgba(14, 34, 56, 0.18);
}
.process__num {
  font-family: var(--ff-header);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--c-blue-mid);
  display: block;
  margin-bottom: 1.25rem;
}
.process__step-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--c-blue-deep);
}
.process__step-desc {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1024px) { .process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .process__steps { grid-template-columns: 1fr; gap: 2rem; } }


/* =============================================================
   FAQ · accordion (uses native <details>/<summary>)
   ============================================================= */
.faq {
  position: relative;
  z-index: 2;
  background: var(--c-ivory-soft);
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}
.faq__head {
  max-width: 920px;
  margin: 0 auto clamp(2.5rem, 6vh, 4rem);
}
.faq__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0.6rem 0 0;
  letter-spacing: -0.005em;
  color: var(--c-blue-deep);
}
.faq__list {
  max-width: 920px;
  margin: 0 auto;
}

.faq__item {
  border-top: 1px solid rgba(14, 34, 56, 0.15);
}
.faq__item:last-child { border-bottom: 1px solid rgba(14, 34, 56, 0.15); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--c-blue-deep);
  outline: none;
  transition: color 0.3s var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-black); }

.faq__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--c-blue-deep);
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::before { top: 50%; left: 0; right: 0; height: 1px; margin-top: -0.5px; }
.faq__icon::after  { left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }

.faq__item p {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 65ch;
  color: var(--c-blue-deep);
}


/* =============================================================
   FLOATING SOCIAL FAB
   ============================================================= */
.social-fab {
  position: fixed;
  bottom: clamp(1.25rem, 3vw, 2rem);
  left: clamp(1.25rem, 3vw, 2rem);
  z-index: 96;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}
.social-fab[data-state="visible"] { pointer-events: auto; }

.social-fab__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--c-blue-deep);
  background: rgba(244, 239, 231, 0.85);            /* ivory tint */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 34, 56, 0.18);
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s var(--ease-out),
              background 0.3s var(--ease-out),
              color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}
.social-fab__btn:hover {
  transform: translateY(-3px);
  background: var(--c-blue-deep);
  color: var(--c-ivory);
  border-color: var(--c-blue-deep);
}
.social-fab__btn:focus-visible { outline: 2px solid var(--c-blue-mid); outline-offset: 4px; }
.social-fab__btn svg { width: 20px; height: 20px; display: block; }

.cookie-banner[data-state="visible"] ~ .social-fab,
.social-fab.is-lifted {
  bottom: clamp(7rem, 14vw, 9rem);
}

@media (max-width: 540px) {
  .social-fab__btn { width: 42px; height: 42px; }
  .social-fab__btn svg { width: 18px; height: 18px; }
}


/* =============================================================
   BACK-TO-TOP BUTTON
   ============================================================= */
.back-to-top {
  position: fixed;
  bottom: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  z-index: 96;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--c-blue-deep);
  color: var(--c-ivory);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out),
              transform 0.45s var(--ease-out),
              background 0.35s var(--ease-out),
              color 0.35s var(--ease-out);
}
.back-to-top[data-state="visible"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--c-ivory);
  color: var(--c-blue-deep);
  transform: translateY(-3px) scale(1);
  border-color: rgba(14, 34, 56, 0.15);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--c-blue-mid);
  outline-offset: 4px;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* When the cookie banner is visible, lift the button so it doesn't collide */
.cookie-banner[data-state="visible"] ~ .back-to-top,
.back-to-top.is-lifted {
  bottom: clamp(7rem, 14vw, 9rem);
}

@media (max-width: 540px) {
  .back-to-top { width: 42px; height: 42px; }
  .back-to-top svg { width: 16px; height: 16px; }
}


/* =============================================================
   COOKIE BANNER
   ============================================================= */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 150;
  background: rgba(14, 34, 56, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--c-ivory);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.45s var(--ease-out);
  pointer-events: none;
  max-width: 880px;
  margin: 0 auto;
}
.cookie-banner[data-state="visible"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
}
.cookie-banner__text {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-banner__more {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__more:hover { color: var(--c-ivory); }
.cookie-banner__btn {
  font-family: var(--ff-header);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  white-space: nowrap;
}
.cookie-banner__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--c-ivory);
}
.cookie-banner__btn--ghost:hover {
  border-color: var(--c-ivory);
  background: rgba(255, 255, 255, 0.08);
}
.cookie-banner__btn--solid {
  background: var(--c-ivory);
  color: var(--c-blue-deep);
  border: 1px solid var(--c-ivory);
}
.cookie-banner__btn--solid:hover { background: #fff; }

.cookie-banner__more-btn {
  font-family: var(--ff-header);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}
.cookie-banner__more-btn:hover { color: var(--c-ivory); }

/* Granular settings panel */
.cookie-banner__settings {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cookie-banner__settings-title {
  font-family: var(--ff-header);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
  color: rgba(255,255,255,0.65);
}
.cookie-banner__cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}
.cookie-banner__cat:first-of-type { border-top: 0; }
.cookie-banner__cat-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cookie-banner__cat-info strong {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-ivory);
}
.cookie-banner__cat-info small {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
  max-width: 50ch;
}
.cookie-banner__cat input[type="checkbox"] {
  appearance: auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--c-ivory);
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-banner__cat input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cookie-banner__settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}


/* =============================================================
   404 / NOT-FOUND PAGE
   ============================================================= */
.not-found {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding: clamp(3rem, 10vh, 7rem) var(--gutter);
}
.not-found__inner {
  max-width: 720px;
  text-align: left;
}
.not-found__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  margin: 0.6rem 0 1.5rem;
  color: var(--c-blue-deep);
}
.not-found__title em {
  font-family: var(--ff-script);
  font-style: normal;
  font-size: 1.3em;
  line-height: 0.9;
  display: inline-block;
}
.not-found__lead {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.65;
  max-width: 50ch;
  margin: 0 0 2.5rem;
}
.not-found__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--c-blue-deep);
  color: var(--c-ivory);
  padding: 1rem 1.75rem;
  font-family: var(--ff-header);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), gap 0.35s var(--ease-out);
}
.not-found__cta:hover {
  background: var(--c-ivory);
  color: var(--c-blue-deep);
  gap: 1.2rem;
}
.not-found__cta svg { width: 18px; height: 18px; }


/* =============================================================
   FOCUS VISIBLE — accessible & subtle
   ============================================================= */
:focus-visible {
  outline: 2px solid var(--c-blue-mid);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible,
.lang-btn:focus-visible,
.dot:focus-visible {
  outline: 2px solid var(--c-blue-mid);
  outline-offset: 4px;
}


/* =============================================================
   CONTACT FORM · honeypot (hide visually but reachable for bots)
   ============================================================= */
.contact-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}


/* =============================================================
   RESPONSIVE — Tablet & Mobile
   ============================================================= */

/* Tablet & smaller laptops */
@media (max-width: 1024px) {
  :root { --gutter: clamp(1.25rem, 4vw, 2.5rem); }
  .site-header__nav ul { gap: 1.25rem; }
}

/* Mobile (≤ 860px) — hamburger + stacked layouts */
@media (max-width: 860px) {

  /* Header layout: logo | hamburger, lang hidden behind menu */
  .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  .nav-toggle {
    display: inline-flex;
  }

  /* Nav becomes a fullscreen overlay — toggled by [data-menu="open"] */
  .site-header__nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--c-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    padding: 4rem 2rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s var(--ease-out), opacity 0.4s var(--ease-out);
  }
  .site-header[data-menu="open"] .site-header__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header__nav ul {
    flex-direction: column;
    gap: 1.4rem;
    text-align: center;
  }
  .site-header__nav a {
    font-family: var(--ff-display);
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    letter-spacing: 0.01em;
  }

  /* Lang switcher tucked under the mobile menu, large */
  .site-header__lang {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
  }
  .site-header[data-menu="open"] .site-header__lang {
    display: inline-flex;
    position: fixed;
    bottom: 2.5rem;
    left: 0; right: 0;
    z-index: 102;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: 0.18em;
  }

  /* Hero logo & cue */
  .hero__logo img { width: clamp(180px, 50vw, 260px); }
  .hero__cue { font-size: 0.7rem; letter-spacing: 0.28em; bottom: 1.5rem; }

  /* Footer layout collapses */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Cookie banner stacked */
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.1rem; }
  .cookie-banner__actions { justify-content: space-between; flex-wrap: wrap; }
}

/* Small phones */
@media (max-width: 540px) {
  :root { --gutter: 1.1rem; }

  body { font-size: 16px; }

  .editorial { padding-top: clamp(4rem, 12vh, 8rem); }
  .editorial__body { font-size: 1rem; line-height: 1.6; }
  .editorial__eyebrow { font-size: 0.78rem; letter-spacing: 0.28em; }

  .gallery { padding-bottom: clamp(5rem, 14vh, 9rem); }
  .gallery__label { font-size: 0.82rem; letter-spacing: 0.28em; }

  .lightbox { padding: 0.75rem; }
  .lightbox__close { width: 38px; height: 38px; top: 0.75rem; right: 0.75rem; }

  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .cookie-banner__btn { padding: 0.55rem 0.95rem; font-size: 0.82rem; }
  .cookie-banner__more { width: 100%; }
}


/* =============================================================
   CUSTOM CURSOR · two-layer (small dot + outer ring)
   Hidden on touch devices — native cursor remains there.
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select,
  html.has-custom-cursor [role="button"] {
    cursor: none;
  }

  .cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    width: 0; height: 0;
    transform: translate3d(-50%, -50%, 0);
    mix-blend-mode: difference;
  }

  .cursor__dot,
  .cursor__ring {
    position: absolute;
    top: 0; left: 0;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out),
                height 0.3s var(--ease-out),
                background 0.3s var(--ease-out),
                border-color 0.3s var(--ease-out),
                opacity 0.3s var(--ease-out);
  }
  .cursor__dot {
    width: 6px;
    height: 6px;
    background: #fff;
  }
  .cursor__ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition-duration: 0.5s;
  }

  /* Hover state — bigger ring, dot recedes */
  .cursor.is-hover .cursor__dot   { width: 0; height: 0; opacity: 0; }
  .cursor.is-hover .cursor__ring  { width: 56px; height: 56px; border-color: #fff; }

  /* "View" / zoom-in state — for media you can open big */
  .cursor.is-zoom .cursor__ring   { width: 80px; height: 80px; }
  .cursor.is-zoom .cursor__dot    { width: 0; height: 0; opacity: 0; }

  /* Pressed / clicking */
  .cursor.is-down .cursor__ring   { width: 22px; height: 22px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}


/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__cue { animation: none; }
  * { transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
  html.has-custom-cursor, html.has-custom-cursor * { cursor: auto !important; }
}
