/* =========================================================
   ELITEO GROUP — three-page structure (Home · About · Contact)
   Built on styles.css (tokens, header, buttons, form, reveal).
   Desktop rule: every section fits one screen (100svh - 83px
   header), so type and vertical spacing scale with the height.
   ========================================================= */

:root {
  --header-scrolled: 83px;
  --accent-line: rgba(110, 193, 228, 0.75);
}

/* ---------- Shared editorial pieces ---------- */

/* Eyebrow + short accent rule underneath, as in the mockups */
.kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin: 0;
}
.kicker::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: clamp(14px, 2.4vh, 22px);
  background: var(--accent-line);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
  color: var(--silver-100);
  margin: 0;
}
.display .accent { color: var(--accent); }

/* Second line under a title: the serif, upright, like the mockups */
.subline {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  color: var(--silver-100);
  line-height: 1.25;
  margin: 0;
}

.rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--accent-line);
  border: 0;
  margin: 0;
}

.body-copy p {
  font-size: clamp(14px, 2.1vh, 17px);
  line-height: 1.7;
  color: var(--silver-300);
  margin: 0 0 clamp(10px, 1.8vh, 18px);
}

/* ---------- Header additions: Get in touch ---------- */

.nav-aside {
  display: flex;
  align-items: center;
  gap: 28px;
}
.btn-small { padding: 11px 22px; font-size: 11.5px; }
.btn-accent {
  background: transparent;
  color: var(--silver-100);
  border: 1px solid var(--accent);
}
.btn-accent:hover { background: rgba(110, 193, 228, 0.1); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.main-nav a.is-current { color: var(--silver-100); }
.main-nav a.is-current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}
.mobile-nav a.is-current,
.mobile-nav a.active { color: var(--accent); }

/* four menu links since "The Next Chapter" (2026-10-29): slightly tighter spacing */
@media (min-width: 981px) {
  .main-nav { gap: 28px; }
  /* the links carry 6px under the text for the active underline; the same 6px
     above keeps their text on the same line as the logo and button */
  .main-nav a { padding-top: 6px; }
  .nav-aside { gap: 20px; }
}
@media (max-width: 980px) {
  .nav-aside .btn { display: none; }
}

/* =========================================================
   HOME — hero over the video, platforms strip underneath;
   on desktop both share one screen.
   ========================================================= */

.home {
  display: flex;
  flex-direction: column;
}
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
}
/* Miguel's hero (the mockup's terrace over Tokyo, Paris and Dubai): the image must
   read clearly, so the veil only darkens enough behind the copy and the header. */
/* only vertical bleed for the parallax, so Tokyo Tower on the left edge stays in frame */
.home-hero .hero-bg { inset: -3% 0; background-image: url('assets/hero/hero-miguel-16x9-1920.webp'); background-position: center top; }
@media (min-width: 1600px), (min-width: 1100px) and (min-resolution: 1.5dppx) {
  .home-hero .hero-bg { background-image: url('assets/hero/hero-miguel-16x9-3840.webp'); }
}
@media (orientation: portrait) {
  .home-hero .hero-bg { background-image: url('assets/hero/hero-miguel-9x16-828.webp'); background-position: center 40%; }
}
@media (orientation: portrait) and (min-width: 500px), (orientation: portrait) and (min-resolution: 2dppx) {
  .home-hero .hero-bg { background-image: url('assets/hero/hero-miguel-9x16-1520.webp'); }
}
.home-hero .hero-bg .ambient-video { object-position: center top; }
@media (orientation: portrait) {
  .home-hero .hero-bg .ambient-video { object-position: center 40%; }
}
.home-hero .hero-veil {
  background-image:
    linear-gradient(100deg, rgba(6,12,34,0.62) 0%, rgba(6,12,34,0.38) 30%, rgba(6,12,34,0.08) 55%, rgba(6,12,34,0) 70%),
    linear-gradient(to bottom, rgba(6,12,34,0.55) 0%, transparent 18%);
}
.home-hero-copy { text-shadow: 0 2px 24px rgba(6,12,34,0.55), 0 1px 3px rgba(6,12,34,0.45); }
/* phones: the copy sits over the tower and its reflection, so the lower part gets more veil */
@media (orientation: portrait) {
  .home-hero .hero-veil {
    background-image:
      linear-gradient(to top, rgba(6,12,34,0.85) 0%, rgba(6,12,34,0.6) 38%, rgba(6,12,34,0.12) 58%, rgba(6,12,34,0) 72%, rgba(6,12,34,0.45) 100%);
  }
}
.home-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(99px + clamp(24px, 6vh, 64px));
  padding-bottom: clamp(32px, 6vh, 64px);
}
.home-hero-copy { max-width: 1000px; }
.home-hero h1 {
  margin-top: clamp(18px, 3.4vh, 34px);
  font-size: clamp(30px, min(5.4vw, 8vh), 100px);
}
.home-hero .subline {
  margin-top: clamp(12px, 2.2vh, 22px);
  font-size: clamp(20px, min(2vw, 3.2vh), 32px);
}
.home-hero-lede {
  margin: clamp(14px, 2.6vh, 26px) 0 0;
  max-width: 34em;
  font-size: clamp(14px, min(1.15vw, 2.1vh), 18px);
  line-height: 1.6;
  color: var(--silver-100);
  opacity: 0.88;
}

/* Platforms strip */
.platform-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.platform-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 300px;
  padding: 28px 20px 26px;
  overflow: hidden;
  text-align: center;
  background: var(--panel);
  isolation: isolate;
}
.platform-tile-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.platform-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6,12,34,0.94) 0%, rgba(6,12,34,0.72) 42%, rgba(6,12,34,0.25) 72%, rgba(6,12,34,0.1) 100%);
}
.platform-tile:hover .platform-tile-photo { transform: scale(1.07); }
.tile-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tile-lockup img { height: clamp(34px, 5vh, 46px); width: auto; }
.tile-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, min(1.6vw, 2.8vh), 24px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--silver-100);
}
.tile-sub {
  margin-top: clamp(8px, 1.4vh, 14px);
  font-family: var(--font-serif);
  font-size: clamp(16px, min(1.25vw, 2.3vh), 19px);
  color: var(--silver-100);
}
.tile-cta {
  position: relative;
  margin-top: clamp(10px, 1.8vh, 18px);
  padding-bottom: 7px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-100);
}
.tile-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.55);
  transition: transform 0.6s var(--ease);
}
.platform-tile:hover .tile-cta::after,
.platform-tile:focus-visible .tile-cta::after { transform: scaleX(1); }

@media (min-width: 600px) {
  .platform-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  /* hero + strip share exactly one screen */
  .home { height: 100vh; height: 100svh; min-height: 540px; }
  .home-hero { flex: 1; min-height: 0; }
  .platform-strip { grid-template-columns: repeat(4, 1fr); }
  .platform-tile { min-height: 0; height: clamp(170px, 31vh, 380px); padding: 0 16px clamp(16px, 3vh, 30px); }
  .home-hero-body { padding-top: calc(99px + clamp(4px, 1.6vh, 32px)); padding-bottom: clamp(12px, 3vh, 40px); }
  .home-hero-lede { max-width: 40em; }
}

/* =========================================================
   ABOUT — intro split + the people
   ========================================================= */

/* One continuous page: the sections below the home screen land under the
   shrunk header (83px); contact is full-bleed and pads for the header itself. */
#contact { scroll-margin-top: 0; }
#next-chapter, #people { scroll-margin-top: var(--header-h, 83px); }

.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ink);
}
.about-intro-copy {
  padding: clamp(32px, 6vh, 80px) var(--gutter);
}
.about-intro .body-copy p { font-size: clamp(13px, 1.9vh, 16px); }
.about-intro .about-title {
  margin-top: clamp(20px, 4vh, 40px);
  font-size: clamp(30px, min(3.6vw, 6.6vh), 72px);
}
.about-intro .subline {
  margin: clamp(14px, 2.4vh, 24px) 0 clamp(18px, 3.2vh, 32px);
  font-size: clamp(20px, min(2.1vw, 3.6vh), 34px);
}
.about-intro .body-copy { max-width: 36em; }
.about-intro-media {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}
.about-intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-intro-media .ambient-video { object-position: 15% center; }
/* below desktop the photo stacks under the text: a square frame, like the image and
   its video, so the book titles and the globe are never cropped */
@media (max-width: 1023px) {
  .about-intro-media { min-height: 0; aspect-ratio: 1 / 1; }
}
.about-intro-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,12,34,0.65) 0%, rgba(6,12,34,0) 30%);
  pointer-events: none;
}

.people {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-v1);
  border-top: 1px solid var(--line);
}
.people-intro {
  padding: clamp(48px, 8vh, 96px) var(--gutter);
  background:
    radial-gradient(70% 55% at 0% 100%, rgba(110, 193, 228, 0.12), transparent 70%),
    var(--ink);
}
.people-intro h2 {
  margin-top: clamp(20px, 3.6vh, 36px);
  font-size: clamp(24px, min(2.1vw, 4.4vh), 44px);
}
.people-intro .subline {
  margin: clamp(14px, 2.4vh, 24px) 0;
  font-size: clamp(18px, min(1.5vw, 2.8vh), 26px);
}
.people-intro .body-copy p { font-size: clamp(13px, 1.8vh, 16px); }
.people-intro .rule { margin-bottom: clamp(16px, 2.8vh, 28px); }

.person {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-strong);
  background: var(--panel);
}
.person-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.person-photo img {
  /* out of the flow, so a portrait photo never stretches its column:
     the frame takes its size from the layout and the photo fills it */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.person-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--panel) 0%, rgba(16,22,43,0.4) 22%, transparent 45%);
}
.person-body {
  position: relative;
  padding: 0 clamp(24px, 3vw, 44px) clamp(28px, 5vh, 48px);
  margin-top: -24px;
}
.person-body .rule { margin-bottom: clamp(12px, 2vh, 18px); }
.person h3 {
  font-size: clamp(20px, min(2vw, 3.6vh), 32px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.person-role {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-300);
}
.person-role + .rule { margin-top: clamp(12px, 2vh, 18px); }
.person-summary {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(16px, min(1.3vw, 2.4vh), 19px);
  line-height: 1.45;
  color: var(--silver-100);
}
.person-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(14px, 2.6vh, 24px);
}
.person-links .link-arrow { font-size: 14px; }
.person-links a.plain::after { content: none; }

@media (min-width: 760px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .people-intro { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .about-intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: calc(100vh - var(--header-scrolled));
    min-height: calc(100svh - var(--header-scrolled));
  }
  .about-intro-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: max(var(--gutter), min(calc((100vw - var(--container)) / 2 + var(--gutter)), 14vw));
  }
  .about-intro-media { min-height: 0; }

  .people {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    height: calc(100vh - var(--header-scrolled));
    height: calc(100svh - var(--header-scrolled));
  }
  .people-intro {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: max(var(--gutter), min(calc((100vw - var(--container)) / 2 + var(--gutter)), 14vw));
    padding-right: clamp(24px, 3vw, 48px);
    padding-top: clamp(28px, 5vh, 72px);
    padding-bottom: clamp(28px, 5vh, 72px);
  }
  .person-photo { aspect-ratio: auto; flex: 1; min-height: 0; }
  .person-body { padding-bottom: clamp(18px, 4vh, 44px); }
}

/* =========================================================
   CONTACT — one screen over the Dubai still
   ========================================================= */

.contact-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
}
.contact-page .hero-veil {
  background-image:
    linear-gradient(100deg, rgba(6,12,34,0.92) 0%, rgba(6,12,34,0.82) 42%, rgba(6,12,34,0.6) 70%, rgba(6,12,34,0.45) 100%),
    linear-gradient(to bottom, rgba(6,12,34,0.7) 0%, transparent 22%);
}
.contact-page .hero-bg { inset: 0; }
.contact-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(99px + clamp(24px, 5vh, 56px));
  padding-bottom: clamp(40px, 6vh, 72px);
  display: grid;
  grid-template-areas: "head" "list" "form";
  gap: 40px;
}
.contact-page .contact-title {
  margin-top: clamp(12px, 2.6vh, 30px);
  font-size: clamp(34px, min(4.4vw, 7.6vh), 84px);
}
@media (min-width: 1024px) {
  .contact-page .contact-title { white-space: nowrap; }
}
.contact-page .subline {
  margin-top: clamp(10px, 1.8vh, 18px);
  font-size: clamp(20px, min(2.1vw, 3.6vh), 34px);
}
.contact-intro {
  margin: 0 0 clamp(16px, 3.4vh, 36px);
  max-width: 32em;
  font-size: clamp(14px, 2.2vh, 18px);
  line-height: 1.6;
  color: var(--silver-100);
  opacity: 0.85;
}
.contact-head { grid-area: head; }
.contact-list-wrap { grid-area: list; }
.contact-page .contact-form { grid-area: form; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.2vh, 26px);
}
.contact-list li {
  padding-left: 22px;
  border-left: 2px solid var(--accent-line);
}
.contact-list .label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin-bottom: 4px;
}
.contact-list .value {
  font-family: var(--font-serif);
  font-size: clamp(18px, min(1.5vw, 2.8vh), 22px);
  color: var(--silver-100);
}
.contact-list a.value { transition: color 0.3s var(--ease); display: inline-block; padding: 11px 0; margin: -11px 0; }
.contact-list a.value:hover { color: var(--accent); }

.contact-page .contact-form .field { margin-bottom: clamp(8px, 1.6vh, 20px); }
.contact-page .form-row { gap: clamp(12px, 1.6vw, 20px); }
.contact-page .form-status { margin-top: 8px; min-height: 0; }
.form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.form-privacy {
  flex: 1 1 220px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--silver-300);
}
.form-privacy a { color: var(--silver-100); text-decoration: underline; text-underline-offset: 3px; }
.form-privacy a:hover { color: var(--accent); }
.contact-page .field input,
.contact-page .field textarea,
.contact-page .field select {
  background: rgba(16, 22, 49, 0.72);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.contact-page .field textarea { min-height: clamp(64px, 11vh, 140px); height: clamp(64px, 11vh, 140px); }
.contact-page .field input, .contact-page .field select { padding-top: clamp(9px, 1.5vh, 14px); padding-bottom: clamp(9px, 1.5vh, 14px); }
.contact-page .field label { font-size: 12px; margin-bottom: clamp(5px, 1vh, 10px); }

@media (min-width: 1024px) {
  .contact-body {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    grid-template-areas: "head head" "list form";
    align-items: end;
    row-gap: clamp(12px, 3vh, 44px);
    gap: clamp(40px, 5vw, 80px);
    padding-top: calc(99px + clamp(8px, 2vh, 32px));
    padding-bottom: clamp(20px, 4vh, 56px);
  }
}

/* ---------- Footer: the same as Eliteo One and Systems
   (their components/Footer.tsx), in the Group palette ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.eg-footer { border-top: 1px solid var(--line); background: var(--bg-v1); }
.eg-footer-grid {
  display: grid;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.eg-footer-brand { display: flex; align-items: center; gap: 12px; width: fit-content; padding-block: 6px; margin-block: -6px; }
.eg-footer-brand img { height: 32px; width: auto; }
.eg-footer-brand span {
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  letter-spacing: 0.18em; line-height: 1.6; white-space: nowrap; color: var(--silver-100);
}
.eg-footer-tagline {
  margin: 24px 0 0; max-width: 320px;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 18px; line-height: 1.375; color: rgba(232, 237, 248, 0.8);
}
.eg-footer-title {
  margin: 0 0 20px;
  font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--silver-300);
}
.eg-footer .footer-col a {
  display: block; width: fit-content; min-width: 44px; margin: 0; padding-block: 4px;
  font-size: 14px; line-height: 20px; color: var(--silver-300); transition: color 0.3s var(--ease);
}
.eg-footer .footer-col a:hover { color: var(--silver-100); }
.eg-footer-bar { border-top: 1px solid var(--line); }
.eg-footer-bar .wrap {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 24px; padding-bottom: 24px;
}
.eg-footer-bar p {
  margin: 0;
  font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(185, 190, 211, 0.8);
}
@media (min-width: 640px) {
  .eg-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-footer-bar .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  /* Like Systems (brand + four link columns); the link columns never
     shrink below their longest link, so the email address never wraps. */
  .eg-footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(max-content, 1fr)); gap: 40px; }
}
@media (pointer: coarse) {
  .eg-footer .footer-col a { padding-block: 12px; }
}

/* =========================================================
   THE NEXT CHAPTER — platforms in development (after People)
   Centred head as in the mockup, then the same tiles as the
   platform strip, without link, call to action or hover zoom.
   ========================================================= */
.next-chapter {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(110, 193, 228, 0.08), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--line);
}
.next-head {
  text-align: center;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(32px, 6vh, 64px);
}
.next-head .kicker::after { margin-left: auto; margin-right: auto; }
.next-head h2 {
  margin-top: clamp(16px, 3vh, 32px);
  font-size: clamp(30px, min(4.4vw, 7vh), 84px);
}
.next-head .subline {
  margin-top: clamp(8px, 1.6vh, 18px);
  font-size: clamp(19px, min(2vw, 3.4vh), 34px);
}
.next-lede {
  margin: clamp(10px, 2vh, 22px) auto 0;
  max-width: 68em;
  text-wrap: balance;
  font-size: clamp(14px, min(1.15vw, 2.1vh), 18px);
  line-height: 1.6;
  color: var(--silver-100);
  opacity: 0.88;
}
.br-wide { display: none; }
.next-more {
  margin: clamp(16px, 3vh, 32px) 0 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver-300);
}
.next-more::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 0 auto clamp(12px, 2vh, 20px);
  background: var(--accent-line);
}
.next-tile { min-height: 240px; }
.next-tile:hover .platform-tile-photo { transform: scale(1.02); }

@media (min-width: 768px) {
  .next-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .br-wide { display: inline; }
  .next-chapter {
    height: calc(100vh - var(--header-scrolled));
    height: calc(100svh - var(--header-scrolled));
  }
  .next-head {
    flex: none;
    padding-top: clamp(24px, 5vh, 72px);
    padding-bottom: clamp(20px, 4vh, 48px);
  }
  .next-strip { flex: 1; min-height: 0; }
  .next-tile { height: auto; min-height: 0; padding: 0 16px clamp(18px, 4vh, 40px); }
  .next-tile .tile-lockup img { height: clamp(40px, 6.5vh, 64px); }
  .next-tile .tile-name { font-size: clamp(18px, min(1.9vw, 3.4vh), 30px); }
}

/* ---------- Mid-height laptops (761–860px tall, e.g. 1440×789): the four
   contact lines (email, location, LinkedIn, Instagram) need slightly tighter
   spacing to stay on one screen ---------- */
@media (min-width: 1024px) and (min-height: 761px) and (max-height: 860px) {
  .contact-body { row-gap: 16px; padding-bottom: 20px; }
  .contact-intro { margin-bottom: 16px; }
  .contact-list { gap: 12px; }
}

/* ---------- Short laptop screens (≤ 760px tall): tighter rhythm so the
   contact screen and the people section still fit without scrolling ---------- */
@media (min-width: 1024px) and (max-height: 760px) {
  .contact-body { padding-top: calc(99px + 4px); padding-bottom: 14px; row-gap: 10px; }
  .contact-page .kicker::after { margin-top: 10px; }
  .contact-page .contact-title { margin-top: 10px; font-size: min(4.4vw, 6.6vh); }
  .contact-page .subline { margin-top: 6px; font-size: min(2vw, 3vh); }
  .contact-intro { font-size: 13px; margin-bottom: 12px; }
  .contact-list { gap: 8px; }
  .contact-list .value { font-size: 17px; }
  .contact-page .field label { margin-bottom: 4px; }
  .contact-page .field input, .contact-page .field select { padding-top: 8px; padding-bottom: 8px; }
  .contact-page .field textarea { min-height: 52px; height: 52px; }
  .contact-page .contact-form .field { margin-bottom: 8px; }
  .contact-page .contact-form .btn { padding-top: 12px; padding-bottom: 12px; }

  .people-intro h2 { font-size: min(2.1vw, 4vh); }
  .person-body { padding-bottom: 12px; }
  .person-summary { font-size: 15px; }
  .person-links { margin-top: 8px; gap: 4px; }
}
.field select { min-height: 44px; }

/* =========================================================
   CINEMATIC LOAD — same as Eliteo Terra, One and Systems.
   Intro curtain (pure CSS, first visit of the session only,
   never blocks clicks), then the hero headline rises line by
   line and the rest fades in. Timings from Eliteo Systems.
   ========================================================= */

.cine-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  animation: cine-curtain 1s var(--ease) 1.05s forwards;
}
.intro-seen .cine-intro { display: none; }
.cine-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  opacity: 0;
  animation: cine-fade-up 0.8s var(--ease) 0.1s forwards;
}
.cine-intro-inner img { height: 56px; width: auto; }
.cine-intro-word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--silver-100);
}
.cine-intro-line {
  display: block;
  height: 1px;
  width: 0;
  background: var(--accent);
  opacity: 0.8;
  animation: cine-line 0.9s var(--ease) 0.3s forwards;
}
@keyframes cine-curtain { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes cine-line { to { width: 120px; } }
@keyframes cine-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cine-rise { to { transform: none; } }

/* each headline line rises out of its own mask */
.cine-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.cine-line > span { display: block; }

/* hero: plays on load, right after the curtain (or straight away on later visits) */
:root { --cine-start: 1.15s; }
.intro-seen { --cine-start: 0.15s; }
.home-hero .cine-line > span {
  transform: translateY(108%);
  animation: cine-rise 1.2s var(--ease) calc(var(--cine-start) + var(--i, 0) * 0.12s) forwards;
}
.home-hero .cine-fade {
  opacity: 0;
  animation: cine-fade-up 1.1s var(--ease) calc(var(--cine-start) + 0.5s + var(--i, 0) * 0.12s) forwards;
}

/* section headlines: rise when their block scrolls into view (html.js only) */
.js .reveal .cine-line > span {
  transform: translateY(108%);
  transition: transform 1.1s var(--ease) calc(0.1s + var(--i, 0) * 0.1s);
}
.js .reveal.in-view .cine-line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cine-intro { display: none; }
  .home-hero .cine-line > span,
  .home-hero .cine-fade,
  .js .reveal .cine-line > span { animation: none; transform: none; opacity: 1; transition: none; }
}

/* ---------- Contact background: the same image as the main hero (Miguel's) ---------- */
.contact-page .hero-bg { background-image: url('assets/hero/hero-miguel-16x9-1920.webp'); background-position: center 45%; }
@media (min-width: 1600px), (min-width: 1100px) and (min-resolution: 1.5dppx) {
  .contact-page .hero-bg { background-image: url('assets/hero/hero-miguel-16x9-3840.webp'); }
}
@media (orientation: portrait) {
  .contact-page .hero-bg { background-image: url('assets/hero/hero-miguel-9x16-828.webp'); background-position: center 40%; }
}
@media (orientation: portrait) and (min-width: 500px), (orientation: portrait) and (min-resolution: 2dppx) {
  .contact-page .hero-bg { background-image: url('assets/hero/hero-miguel-9x16-1520.webp'); }
}

/* ---------- Mail, location, LinkedIn and Instagram icons in front of the contact links
   (as in the ABOUT 2 and CONTACT mockups), in the accent colour ---------- */
.ico {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  /* white: allowed by LinkedIn and Instagram for their marks on dark backgrounds */
  color: #FFFFFF;
}
.has-ico { display: inline-flex; align-items: center; gap: 0.6em; }
/* official LinkedIn / Instagram files: keep their own proportions (no stretching) */
.ico.ico-brand { width: auto; height: 1.1em; object-fit: contain; }
.person-links .link-arrow.has-ico .ico.ico-brand { width: auto; height: 18px; }
.eg-footer .footer-col a.has-ico .ico.ico-brand { width: auto; height: 15px; }
.person-links .link-arrow.has-ico .ico { width: 20px; height: 20px; }
.contact-list .value.has-ico { display: inline-flex; }
.eg-footer .footer-col a.has-ico { display: flex; gap: 8px; }
.eg-footer .footer-col a.has-ico .ico { width: 16px; height: 16px; }

/* =========================================================
   LEGAL PAGES (privacy-policy-2/, legal-notice/, terms-of-use/,
   disclaimer/, cookie-policy/) — built by scripts/build-legal.js.
   Long text, so the reading face is the serif, not Cinzel.
   ========================================================= */
.legal-page {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(110, 193, 228, 0.07), transparent 70%),
    var(--ink);
  padding-top: calc(99px + clamp(40px, 8vh, 96px));
  padding-bottom: clamp(64px, 10vh, 120px);
}
.legal-body { max-width: 860px; }
.legal-body h1 {
  margin: clamp(16px, 3vh, 28px) 0 clamp(24px, 4vh, 40px);
  font-size: clamp(32px, 5vw, 60px);
}
.legal-content {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--silver-100);
}
.legal-content > p:first-child {
  font-size: 0.92em;
  color: var(--silver-300);
  padding-bottom: clamp(20px, 3vh, 32px);
  border-bottom: 1px solid var(--line);
}
.legal-content p { margin: 0 0 1em; }
.legal-content h2 {
  margin: 2.4em 0 0.9em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-100);
}
.legal-content h3 {
  margin: 1.8em 0 0.6em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--silver-300);
}
.legal-content ul, .legal-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.legal-content li { margin: 0.35em 0; }
.legal-content li::marker { color: var(--accent); }
.legal-content strong { font-weight: 600; }
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(110, 193, 228, 0.4);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal-content a:hover { text-decoration-color: var(--accent); }
.legal-table { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
.legal-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.92em; }
.legal-table td, .legal-table th {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}
.legal-table tr:first-child td { color: var(--silver-100); background: rgba(16, 22, 49, 0.6); }
.eg-footer .footer-col a[aria-current="page"] { color: var(--silver-100); }

/* =========================================================
   COOKIE CONSENT (cookie-consent.js) — same layout and choices
   as the Complianz banner on the WordPress sites, Group design
   ========================================================= */
.cc-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: 22px 24px 18px;
  background: #080A1A;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: var(--silver-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.cc-banner.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s;
}
.cc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cc-head img { height: 26px; width: auto; }
.cc-title {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
.cc-close {
  width: 44px; height: 44px; margin: -10px -12px -10px 0;
  background: none; border: 0; cursor: pointer;
  color: var(--silver-300); font-size: 28px; line-height: 1;
}
.cc-close:hover { color: var(--silver-100); }
.cc-text {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--silver-100);
}
.cc-prefs { margin: 0 0 16px; display: grid; gap: 8px; }
.cc-prefs[hidden] { display: none; }
.cc-cat { background: rgba(16, 22, 49, 0.8); border: 1px solid var(--line); }
.cc-cat summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 6px 14px;
  cursor: pointer; list-style: none;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.cc-cat summary::-webkit-details-marker { display: none; }
.cc-cat p { margin: 0; padding: 0 14px 12px; font-family: var(--font-serif); font-size: 15px; line-height: 1.5; color: var(--silver-300); }
.cc-always { color: var(--accent); letter-spacing: 0.08em; }
.cc-switch { position: relative; display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: flex-end; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-track { position: relative; width: 38px; height: 20px; border-radius: 10px; background: var(--line-strong); transition: background 0.3s var(--ease); }
.cc-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--silver-100); transition: transform 0.3s var(--ease);
}
.cc-switch input:checked + .cc-track { background: var(--accent); }
.cc-switch input:checked + .cc-track::after { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.cc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cc-btn {
  min-height: 44px; padding: 10px 8px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--silver-100); background: transparent;
  border: 1px solid var(--line-strong); cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cc-btn:hover { border-color: var(--silver-300); }
.cc-accept { background: var(--brand-blue-2); border-color: var(--accent); }
.cc-accept:hover { background: rgba(110, 193, 228, 0.16); }
.cc-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 18px; margin: 12px 0 0; }
.cc-links a {
  display: inline-block; padding: 12px 0;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--silver-300); text-decoration: underline; text-underline-offset: 3px;
}
.cc-links a:hover { color: var(--silver-100); }
@media (max-width: 600px) {
  .cc-banner { right: 16px; bottom: 16px; padding: 18px 16px 12px; }
  .cc-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cc-more { grid-column: 1 / -1; }
  .cc-text { font-size: 15px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-banner.is-open { transition: none; transform: none; }
}

/* "Cookie Settings" in the footer reopens the banner (a button that looks like the links) */
.eg-footer .footer-col .cc-settings-link {
  display: block; width: fit-content; min-width: 44px; margin: 0; padding: 4px 0;
  font: inherit; font-size: 14px; line-height: 20px; color: var(--silver-300);
  background: none; border: 0; cursor: pointer; text-align: left;
  transition: color 0.3s var(--ease);
}
.eg-footer .footer-col .cc-settings-link:hover { color: var(--silver-100); }
@media (pointer: coarse) {
  .eg-footer .footer-col .cc-settings-link { padding-block: 12px; }
}

/* 404 page (404.html, built by scripts/build-legal.js) */
.notfound { min-height: calc(100svh - 160px); display: flex; align-items: center; }
.notfound-text {
  margin: 0 0 clamp(24px, 4vh, 40px);
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--silver-300);
}
@media (pointer: coarse), (max-width: 1023px) {
  /* a finger-sized target around the Privacy Policy link, same look */
  .form-privacy a { display: inline-block; padding: 13px 0; margin: -13px 0; }
}

/* long names (Miguel Ángel García Praena) split evenly over two lines, never one word alone */
.person h3 { text-wrap: balance; }
