/* =============================================================================
   COMPONENT SYSTEM — Luisa Sandoval / Odisea
   -----------------------------------------------------------------------------
   The reusable, high-fidelity component library. Consumes ONLY the semantic
   tokens from tokens.css — no raw colours, fonts, or sizes are hardcoded here.

   Each block below is annotated with the Elementor artefact it becomes:
     [TEMPLATE]  -> a saved Elementor Template (page-level or section)
     [GLOBAL]    -> an Elementor Global Widget (edit once, updates everywhere)
     [THEME]     -> a Theme Builder part (Header / Footer)
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
input, textarea, select { accent-color: var(--color-accent); }   /* native controls use brand terracotta, never blue */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
}

/* Visible keyboard focus everywhere (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ----------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   ---------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: 46rem; }
.container--reading { max-width: 42rem; }

.section     { padding-block: var(--section-y); }
.section--lg { padding-block: var(--section-y-lg); }

/* Tonal registers ---------------------------------------------------------- */
.section--tint  { background: var(--page-tint); }
.section--sage  { background: var(--color-surface-sage); }
.section--dark  { background: var(--color-surface-deep);  color: var(--color-text-on-dark); }
.section--dark-2{ background: var(--color-surface-deep-2); color: var(--color-text-on-dark); }
.section--dark .eyebrow,
.section--dark-2 .eyebrow { color: var(--color-text-on-dark-muted); }

.text-center { text-align: center; }

/* ----------------------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
/* keep eyebrows legible over dark hero photos */
.hero .eyebrow, .odisea .eyebrow { color: var(--color-text-on-dark-muted); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); }

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--color-text-secondary);
  max-width: var(--measure);
}
.body-lg { font-size: var(--fs-body-lg); }
.measure { max-width: var(--measure); }
.text-secondary { color: var(--color-text-secondary); }
.on-dark-muted { color: var(--color-text-on-dark-muted); }

/* Vertical rhythm helper */
.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-4); }

/* ----------------------------------------------------------------------------
   BUTTONS & LINKS   [GLOBAL — button styles are global; labels stay per-instance]
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.btn--primary { background: var(--color-btn-bg); color: var(--color-btn-text); }
.btn--primary:hover { background: var(--color-btn-bg-hover); }

.btn--outline { background: transparent; color: var(--page-shade); border-color: var(--page-accent); }
.btn--outline:hover { background: var(--page-shade); color: #fff; border-color: var(--page-shade); }

/* Inverse variants for dark sections */
.btn--inverse-primary { background: var(--color-btn-bg-inverse); color: var(--color-btn-text-inverse); }
.btn--inverse-primary:hover { background: var(--color-btn-inverse-hover); }
.btn--inverse-outline { background: transparent; color: var(--color-text-on-dark); border-color: var(--color-text-on-dark); }
.btn--inverse-outline:hover { background: var(--color-text-on-dark); color: var(--color-surface-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.btn-row--center { justify-content: center; }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1rem; }

/* Contact page — highlighted WhatsApp CTA + info grid */
.contact-cta { max-width: 40rem; margin-inline: auto; text-align: center; }
.contact-cta .sec-index { margin-bottom: var(--sp-3); }
.contact-cta h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.contact-cta p { color: var(--color-text-secondary); margin-bottom: var(--sp-5); }
.contact-cta__wa { gap: 0.6em; }
.contact-cta__note { margin: var(--sp-3) 0 0 !important; font-size: var(--fs-meta); letter-spacing: 0.06em; color: var(--color-text-muted); }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); max-width: 60rem; margin-inline: auto; }
@media (max-width: 760px) { .contact-info-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

/* Editorial underlined text link */
.link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--page-accent-soft);
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.link:hover { border-color: var(--page-accent); color: var(--page-shade); }
.section--dark .link,
.section--dark-2 .link { border-color: var(--color-line-on-dark); }
.section--dark .link:hover,
.section--dark-2 .link:hover { border-color: var(--color-text-on-dark); }

/* Link with arrow affordance (card CTAs) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-meta);
  transition: gap var(--dur) var(--ease-out);
}
.link-arrow:hover { gap: 0.85em; }

/* ----------------------------------------------------------------------------
   HAIRLINE MEDIA PLACEHOLDER
   Reusable frame for placeholder photography. Swap the <img src> (or bind an
   Elementor Dynamic Tag) to replace imagery — nothing else changes.
   ---------------------------------------------------------------------------- */
.media { overflow: hidden; background: var(--color-surface); border-radius: var(--radius-media); margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* round the image ITSELF (not just the clipping parent) so transformed/animated images
   can never leak square corners — a known Chrome overflow+border-radius+transform bug */
.media img, .work__figure img, .project-card__media img, .event__shot img, .event__cover img,
.media-masonry > figure img, .gallery-grid > figure img, .element-tex img, .video-duo > figure video,
.banner .media img, .featured-grid .media img { border-radius: inherit; }
.media--cutout img { border-radius: 0; }
.media--portrait  { aspect-ratio: 4 / 5; }
.media--landscape { aspect-ratio: 3 / 2; }
.media--wide      { aspect-ratio: 16 / 9; }
.media--square    { aspect-ratio: 1 / 1; }

/* ----------------------------------------------------------------------------
   SITE HEADER   [THEME — Theme Builder Header]
   ---------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--container-pad);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: var(--border-hairline);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo { height: 1.4rem; width: auto; display: block; }
/* Mobile: drop the header "Download CV" so the wordmark logo has room and never squashes */
@media (max-width: 768px) { .site-header__cv { display: none; } }
.brand-logo--dark { display: none; }
/* Cinematic: white wordmark over the dark hero; swap to brown once the header goes solid */
body.cinematic .site-header.is-scrolled .brand-logo--light { display: none; }
body.cinematic .site-header.is-scrolled .brand-logo--dark  { display: block; }
.site-nav ul { display: flex; gap: var(--sp-4); }
.site-nav a {
  font-size: var(--fs-meta);
  color: var(--color-text-secondary);
  transition: color var(--dur) var(--ease-out);
}
.site-nav a:hover { color: var(--color-text); }
.site-nav a[aria-current="page"] { color: var(--color-text); }

/* Experience dropdown submenu */
.site-nav li { position: relative; }
.site-nav .caret { font-size: 0.62em; opacity: 0.7; margin-left: 0.15em; }
.site-nav .submenu { position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%) translateY(4px);
  min-width: 12.5rem; list-style: none; margin: 0; padding: 0.5rem;
  background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(20,16,10,0.16);
  display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; visibility: hidden; z-index: 60;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur); }
.site-nav .has-submenu:hover > .submenu,
.site-nav .has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.site-nav .submenu a { display: block; color: var(--color-text-secondary); font-size: var(--fs-meta);
  padding: 0.55rem 0.85rem; border-radius: var(--radius); white-space: nowrap; }
.site-nav .submenu a::after { display: none !important; }   /* no animated underline inside the dropdown */
.site-nav .submenu a:hover { color: var(--color-text); background: var(--color-surface); }
/* Keep dropdown text readable on its light panel even under the cinematic (dark-header) theme */
body.cinematic .site-nav .submenu a { color: var(--color-text-secondary); }
body.cinematic .site-nav .submenu a:hover,
body.cinematic .site-nav .submenu a[aria-current="page"] { color: var(--color-text); background: var(--color-surface); }
.site-header__cv {
  display: none;   /* CV lives only on the Contact page now, not in the global nav */
  font-size: var(--fs-meta);
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.site-header__cv:hover { background: var(--color-text); color: var(--color-bg); }
.site-header__toggle { display: none; background: none; border: none; cursor: pointer; font-size: var(--fs-meta); }

/* right-side header actions: language switcher + CV + mobile toggle */
.site-header__end { display: flex; align-items: center; gap: var(--sp-3); }
.site-header__lang { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; }
.site-header__lang .is-active { color: inherit; }
.site-header__lang a { opacity: 0.5; transition: opacity var(--dur) var(--ease-out); }
.site-header__lang a:hover { opacity: 1; }
/* language switcher moves into the mobile menu (see home.css mobile-nav block) */
@media (max-width: 860px) {
  /* lift the whole header above every page section while the menu is open,
     so the solid overlay always covers the content (no bleed-through) */
  body.nav-open .site-header { z-index: 1000; }
  /* keep the toggle clickable above the fixed nav overlay so it can close */
  .site-header__toggle { position: relative; z-index: 60; }
  /* turn the "Menu" toggle into a clear ✕ close button while the menu is open */
  body.nav-open .site-header__toggle { font-size: 0; border-color: transparent; }
  body.nav-open .site-header__toggle::after { content: "\2715"; font-size: 1.5rem; line-height: 1; color: var(--color-text); }

  .site-header__lang { display: none; }
  body.nav-open .site-header__lang {
    display: flex; position: fixed; left: 0; right: 0; bottom: var(--sp-4);
    justify-content: center; gap: 1.2rem; z-index: 50; font-size: 0.85rem; letter-spacing: 0.14em;
  }
  body.nav-open .site-header__lang .is-active { color: var(--color-text); }
  body.nav-open .site-header__lang a { color: var(--color-text); opacity: 0.5; }
  body.nav-open { overflow: hidden; }
}

/* ----------------------------------------------------------------------------
   BREADCRUMB (case-study pages)
   ---------------------------------------------------------------------------- */
.breadcrumb { padding: var(--sp-5) var(--container-pad) 0; }
.breadcrumb a {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-meta); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color 240ms var(--ease-out), gap 240ms var(--ease-out);
}
.breadcrumb a:hover { color: var(--page-accent, var(--color-text)); gap: 0.75em; }

/* ----------------------------------------------------------------------------
   HERO — SPLIT   [TEMPLATE]  (Home)
   ---------------------------------------------------------------------------- */
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; min-height: min(92vh, 900px); }
.hero-split__text { padding: var(--sp-6) var(--container-pad); max-width: 36rem; margin-left: auto; }
.hero-split__text .eyebrow { margin-bottom: var(--sp-3); }
.hero-split__text h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-4); }
.hero-split__text .lede { margin-bottom: var(--sp-5); max-width: 40ch; }
.hero-split__media { align-self: stretch; }
.hero-split__media .media { height: 100%; min-height: 60vh; aspect-ratio: auto; }

/* HERO — CENTERED   [TEMPLATE]  (About, Experience intro, Contact, Journal) */
.hero-centered { padding-block: var(--section-y-lg) var(--section-y); }
.hero-centered__inner { max-width: 48rem; margin-inline: auto; text-align: center; }
.hero-centered h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.hero-centered .lede { margin-inline: auto; margin-bottom: var(--sp-4); }

/* HERO — DARK / FLAGSHIP   [TEMPLATE]  (Odisea) */
.hero-dark { min-height: min(92vh, 920px); display: flex; align-items: center; padding-block: var(--section-y-lg); }
.hero-dark__inner { max-width: 40rem; margin-inline: auto; text-align: center; }
.hero-dark h1 { font-size: var(--fs-display); line-height: var(--lh-tight); margin-bottom: var(--sp-4); }
.hero-dark .lede { color: var(--color-text-on-dark-muted); margin-inline: auto; margin-bottom: var(--sp-5); }

/* ----------------------------------------------------------------------------
   EDITORIAL STATEMENT / QUIET PAUSE   [TEMPLATE]
   ---------------------------------------------------------------------------- */
.statement { }
.statement__inner { max-width: 42rem; margin-inline: auto; text-align: center; }
.statement h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.statement p { color: var(--color-text-secondary); }

/* Lede-scale pause (case-study "My Approach") */
.lede-pause__inner { max-width: 40rem; margin-inline: auto; text-align: center; }
.lede-pause p { font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--color-text-secondary); }

/* ----------------------------------------------------------------------------
   FULL-BLEED BANNER   [GLOBAL]  (case-study chapter opener)
   ---------------------------------------------------------------------------- */
.banner { height: clamp(40vh, 60vh, 640px); }
.banner .media { height: 100%; aspect-ratio: auto; }

/* ----------------------------------------------------------------------------
   ASYMMETRIC SPLIT (text + bleed image)   [GLOBAL]
   .split           -> image right
   .split--reverse  -> image left
   ---------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
.split--reverse .split__media { order: -1; }
.split__text { padding: var(--sp-6) var(--container-pad); max-width: 38rem; align-self: center; }
.split__text h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.split__text .stack > * + * { margin-top: var(--sp-3); }
.split__text p { color: var(--color-text-secondary); }
.split__media { min-height: 60vh; }
.split__media .media { height: 100%; aspect-ratio: auto; }

/* ----------------------------------------------------------------------------
   CARD GRID (equal-weight, staggered)   [GLOBAL — "Experience Card"]
   The one sanctioned card pattern: parallel items only.
   ---------------------------------------------------------------------------- */
.section-head { max-width: 46rem; margin-bottom: var(--section-y); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.section-head p { color: var(--color-text-secondary); max-width: var(--measure); }
.section-head--sm { margin-bottom: var(--sp-5); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.card-grid--stagger > :nth-child(2) { margin-top: var(--sp-5); }

.card { display: flex; flex-direction: column; height: 100%; }
.card .media { margin-bottom: var(--sp-3); }
.card h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.card__sub { color: var(--color-text-secondary); font-size: var(--fs-meta); margin-bottom: var(--sp-1); }
.card__desc { color: var(--color-text-secondary); font-size: var(--fs-meta); }
.card__cta { margin-top: auto; padding-top: var(--sp-3); border-top: var(--border-hairline); }
.card:hover .media img { transform: scale(1.03); }
.card .media img { transition: transform 700ms var(--ease-out); }

/* ----------------------------------------------------------------------------
   META / HIGHLIGHT LIST (middot-separated inline)   [GLOBAL]
   ---------------------------------------------------------------------------- */
.meta-list { display: flex; flex-wrap: wrap; gap: 0 0.6em; font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary); }
.meta-list li:not(:last-child)::after { content: "\00b7"; margin-left: 0.6em; color: var(--color-text-muted); }

.inline-list { display: flex; flex-wrap: wrap; gap: 0 0.7em; font-size: var(--fs-meta); color: var(--color-text); }
.inline-list--center { justify-content: center; }
.inline-list li:not(:last-child)::after { content: "\00b7"; margin-left: 0.7em; color: var(--color-text-muted); }

/* ----------------------------------------------------------------------------
   NUMBERED FACTS GRID   [GLOBAL — "Values / Principles Grid"]
   ---------------------------------------------------------------------------- */
.facts-grid { display: grid; gap: var(--sp-5); }
.facts-grid--2 { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-4); max-width: 50rem; margin-inline: auto; }
.facts-grid--3 { grid-template-columns: repeat(3, 1fr); }
.facts-grid dt { display: flex; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-h3);
  font-family: var(--font-display); font-weight: 500; margin-bottom: 0.5rem; }
.facts-grid dt .num { font-family: var(--font-display); font-size: 1.35em; font-style: italic;
  color: var(--color-accent); line-height: 1; }
.facts-grid dd { margin: 0; color: var(--color-text-secondary); font-size: var(--fs-meta); max-width: 32ch; }

/* ----------------------------------------------------------------------------
   INDEX LIST (label column + narrative)   [GLOBAL]  (About / Odisea)
   ---------------------------------------------------------------------------- */
.index-list > div {
  display: grid; grid-template-columns: 16rem 1fr; gap: var(--sp-5);
  padding-block: var(--sp-4); border-top: var(--border-hairline);
}
.index-list > div:last-child { border-bottom: var(--border-hairline); }
.index-list dt { display: flex; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-h3);
  font-family: var(--font-display); font-weight: 500; }
.index-list dt .num { font-family: var(--font-display); font-size: 1.35em; font-style: italic;
  color: var(--color-accent); line-height: 1; }
.index-list dd { margin: 0; color: var(--color-text-secondary); max-width: var(--measure); }

/* ----------------------------------------------------------------------------
   EVENT LIST — portfolio of specific events (title + stats + role)   [GLOBAL]
   ---------------------------------------------------------------------------- */
.event-list { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-5);
  padding-block: clamp(2rem, 5vh, 3rem); border-top: var(--border-hairline); align-items: start; }
.event:last-child { border-bottom: var(--border-hairline); }
.event__head h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; margin-bottom: var(--sp-3); }
.event__meta { display: flex; flex-wrap: wrap; gap: 0 0.6em; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-secondary); }
.event__meta li:not(:last-child)::after { content: "\00b7"; margin-left: 0.6em; color: var(--color-text-muted); }
.event__body p { color: var(--color-text-secondary); }
.event__body p + p { margin-top: var(--sp-3); }
.event__role strong { color: var(--color-text); font-weight: 600; }
@media (max-width: 760px) { .event { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* Featured event — poster "cover" on one side, content (text + gallery) on the other.
   Alternate the cover side per event (.event--reverse) for visual rhythm. */
.event--featured { grid-template-columns: 0.82fr 1.18fr; gap: clamp(var(--sp-3), 4vw, var(--sp-5)); align-items: start; }
.event__cover { margin: 0; border-radius: var(--radius-media); overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--color-surface-2); }
.event__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.event--reverse .event__cover { order: 2; }   /* poster on the right, text on the left */
.event__content { min-width: 0; }

.event__gallery { margin-top: var(--sp-4); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--sp-2); }
.event__shot { margin: 0; overflow: hidden; border-radius: var(--radius-media);
  background: var(--color-surface); aspect-ratio: 4 / 5; }
.event__shot img, .event__shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.event__shot--poster { background: var(--color-surface-2); border: 1px solid var(--color-line); }
.event__shot--poster img { object-fit: contain; padding: 0.4rem; }

@media (max-width: 760px) {
  .event--featured { grid-template-columns: 1fr; }
  .event--reverse .event__cover { order: 0; }   /* cover back on top on mobile */
}

/* ----------------------------------------------------------------------------
   PULL QUOTE   [GLOBAL]
   ---------------------------------------------------------------------------- */
.pullquote { max-width: 34rem; margin-inline: auto; text-align: center;
  padding-block: var(--sp-4); border-top: 1px solid var(--color-line-strong);
  border-bottom: 1px solid var(--color-line-strong); }
.pullquote p { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500;
  line-height: 1.28; letter-spacing: var(--tracking-tight); }

/* ----------------------------------------------------------------------------
   FEATURED FOUR-ELEMENTS GRID (Odisea)   [TEMPLATE]
   ---------------------------------------------------------------------------- */
.elements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.elements-grid > div { border-top: none; padding-top: 0; }
.element-tex { aspect-ratio: 4 / 5; border-radius: var(--radius-media); overflow: hidden; margin: 0 0 var(--sp-3); }
.element-tex img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.elements-grid > div:hover .element-tex img { transform: scale(1.05); }
.elements-grid h3 { font-size: var(--fs-h3); letter-spacing: 0.03em; margin-bottom: var(--sp-2); }
.elements-grid li { color: var(--color-text-on-dark-muted); font-size: var(--fs-meta); margin-bottom: 0.35rem; }

/* ----------------------------------------------------------------------------
   PROJECTS GALLERY — Odisea "Galería de Proyectos"   [TEMPLATE]
   Fire = active experience (The Spark); Water / Earth / Air = locked "coming soon"
   ---------------------------------------------------------------------------- */
.projects-gallery { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3); max-width: 78rem; margin-inline: auto; }
.project-card { display: flex; flex-direction: column; background: var(--color-surface);
  border: 1px solid var(--color-line); border-radius: var(--radius-media); overflow: hidden;
  transition: transform 0.4s var(--ease, ease), box-shadow 0.4s ease; }
.project-card--fire:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(47,35,24,0.5); }
.project-card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card__tag { position: absolute; top: var(--sp-2); left: var(--sp-2);
  background: var(--color-accent); color: #fff; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.42em 0.85em; border-radius: 999px; }
.project-card__body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1;
  padding: var(--sp-3); }
.project-card__element { font-family: var(--font-display); font-style: italic;
  color: var(--color-accent); font-size: var(--fs-meta); letter-spacing: 0.03em; }
.project-card__body h3 { font-size: var(--fs-h3); line-height: 1.15; }
.project-card__body p { color: var(--color-text-secondary); font-size: var(--fs-meta); line-height: 1.5; }
.project-card__meta { color: var(--color-text) !important; font-weight: 600; letter-spacing: 0.02em; }
.project-card__body .link { margin-top: auto; align-self: flex-start; }

/* "Coming soon" state — texture stays sharp; a small neutral badge marks it */
.project-card__tag--soon { background: rgba(47,35,24,0.66);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: rgba(255,255,255,0.95); }

/* Workshop signup panel */
.signup-panel { max-width: 42rem; margin: var(--sp-6) auto 0; text-align: center;
  background: var(--color-surface-sage); border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-4); }
.signup-panel .sec-index { justify-content: center; margin-bottom: var(--sp-3); }
.signup-panel h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.signup-panel p { color: var(--color-text-secondary); margin-bottom: var(--sp-4); }
.signup-panel .placeholder-note { margin-top: var(--sp-3); margin-bottom: 0; }

@media (max-width: 900px) { .projects-gallery { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); } }
@media (max-width: 520px) { .projects-gallery { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------------
   PERFORMING ARTS — training tag-list + portfolio collage (Boceto p.4)   [TEMPLATE]
   ---------------------------------------------------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.tag-list li { border: 1px solid var(--color-line-strong); border-radius: 999px;
  padding: 0.45em 1em; font-size: var(--fs-meta); color: var(--color-text-secondary); }
.tag-list__pending { font-style: italic; color: var(--color-text-muted); border-style: dashed; }

/* Masonry gallery — preserves mixed portrait/landscape orientations without cropping */
/* uniform gallery grid — every image the same height so rows/bottoms align cleanly */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.gallery-grid > figure { margin: 0; overflow: hidden; border-radius: var(--radius-media); aspect-ratio: 4 / 5; background: var(--color-surface-2); }
.gallery-grid > figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.gallery-grid > figure:hover img { transform: scale(1.045); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }

/* performing-arts "what I learned" — four categories in a clean grid */
.learned-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5) var(--sp-4); margin-top: var(--sp-6); }
.learned-grid h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); letter-spacing: -0.01em; }
.learned-grid ul { list-style: none; padding: 0; }
.learned-grid li { color: var(--color-text-secondary); font-size: var(--fs-meta); padding: 0.4rem 0; border-top: 1px solid var(--color-line); }
@media (max-width: 860px) { .learned-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .learned-grid { grid-template-columns: 1fr; } }

/* two videos side by side, uniform height (16:9) with rounded corners */
.video-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.video-duo > figure { margin: 0; overflow: hidden; border-radius: var(--radius-media); aspect-ratio: 16 / 9; background: #000; }
.video-duo > figure video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .video-duo { grid-template-columns: 1fr; } }

.media-masonry { columns: 3; column-gap: var(--sp-3); }
.media-masonry > figure { break-inside: avoid; margin: 0 0 var(--sp-3);
  border-radius: var(--radius-media); overflow: hidden; background: var(--color-surface); }
.media-masonry img, .media-masonry video { width: 100%; height: auto; display: block; }
.media-masonry--2 { columns: 2; }
@media (max-width: 900px) { .media-masonry { columns: 2; } }
@media (max-width: 560px) { .media-masonry, .media-masonry--2 { columns: 1; } }

/* ============================================================================
   TEXTURE — subtle film grain over the whole page (breaks flatness).
   Fixed, non-interactive, very low opacity; multiply blends into light paper.
   ============================================================================ */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* ============================================================================
   TEXTURED SECTION — a clearly-visible material texture as a section background.
   A translucent colour "veil" (linear-gradient) sits over the photo texture so
   text stays readable while the texture reads through. No blend modes.
   Add class "section-tex" + set --tex (and optionally --veil) inline or below.
   ============================================================================ */
.section-tex {
  background-image: linear-gradient(var(--veil, rgba(241,233,221,0.55)), var(--veil, rgba(241,233,221,0.55))), var(--tex);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* .bring sets its own background shorthand (loaded after this file), which would
   wipe the texture; re-assert texture over the sage base with a combined selector */
.bring.section-tex {
  background-color: var(--color-surface-sage);
  background-image: linear-gradient(var(--veil, rgba(223,227,206,0.62)), var(--veil, rgba(223,227,206,0.62))), var(--tex);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* palette-matched textures on tinted / sage / dark bands per page accent */
body.accent-terracota .section--tint.section-tex { --tex: url("/assets/media/textures/terracota-paper.jpg"); --veil: rgba(240,221,208,0.5); }
body.accent-olive     .section--tint.section-tex { --tex: url("/assets/media/textures/olive-shapes.jpg");    --veil: rgba(233,231,214,0.5); }
body.accent-stone     .section--tint.section-tex { --tex: url("/assets/media/textures/soft-sage.jpg");       --veil: rgba(221,232,230,0.48); }
.section--sage.section-tex { --tex: url("/assets/media/textures/olive-shapes.jpg"); --veil: rgba(223,227,206,0.5); }
.section--dark.section-tex, .section--dark-2.section-tex { --tex: url("/assets/media/textures/smoke-dark.jpg"); --veil: rgba(47,35,24,0.55); }
/* tinted sections get a stronger dual accent wash so colour reads clearly, not flat */
.section--tint {
  background-image:
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--page-accent) 30%, transparent), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--page-accent) 18%, transparent), transparent 55%);
  background-repeat: no-repeat;
}

/* ============================================================================
   FULL-COLOUR ACCENT BAND — a bold block of the page's brand colour.
   ============================================================================ */
.section--accent {
  background: var(--page-accent);
  /* pure palette swatch at top, gently deepened toward the bottom so WHITE text stays readable */
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--page-accent) 88%, #3f2b25), var(--page-shade));
  color: #fff;
}
/* !important so the band's white text also beats inline color styles on some sections */
.section--accent :is(h2, h3, dt) { color: #fff !important; }
.section--accent :is(p, dd, blockquote, .stack p) { color: rgba(255,255,255,0.94) !important; }
.section--accent :is(.kicker, .sec-index, .eyebrow) { color: rgba(255,255,255,0.92) !important; }
.section--accent :is(.meta-list, .inline-list) li { color: rgba(255,255,255,0.9) !important; }
.section--accent .kicker::before, .section--accent .kicker::after,
.section--accent .sec-index::before { background: rgba(255,255,255,0.8); }
.section--accent .pullquote { border-color: rgba(255,255,255,0.4); }
.section--accent .index-list > div, .section--accent .facts-grid > div { border-color: rgba(255,255,255,0.28); }
.section--accent .btn--primary { background: #fff; color: var(--page-shade); }
.section--accent .btn--outline { border-color: rgba(255,255,255,0.75); color: #fff; }
.section--accent .btn--outline:hover { background: #fff; color: var(--page-shade); border-color: #fff; }

/* ============================================================================
   BACKGROUND-IMAGE BAND — a full-bleed photo with a brand-colour scrim + depth.
   Set the image with inline style="background-image:url(...)".
   ============================================================================ */
.section--image { position: relative; background-size: cover; background-position: center;
  background-attachment: fixed; color: #fff; isolation: isolate;
  margin: var(--sp-4) var(--hero-gap, 0.75rem); border-radius: var(--radius-lg); overflow: hidden; }
.section--image::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--page-shade) 84%, transparent), color-mix(in srgb, var(--page-shade) 93%, transparent)); }
.section--image .sec-index, .section--image .kicker, .section--image .eyebrow { color: rgba(255,255,255,0.9); }
.section--image .sec-index::before, .section--image .kicker::before, .section--image .kicker::after { background: rgba(255,255,255,0.75); }
.section--image h2, .section--image h3 { color: #fff; }
.section--image p { color: rgba(255,255,255,0.92); }
@media (max-width: 768px) { .section--image { background-attachment: scroll; } }

/* ============================================================================
   MORE MOTION — bigger, clearly-visible hover + an animated accent underline.
   ============================================================================ */
.media, .work__figure, .project-card, .event__shot, .media-masonry > figure {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.media:hover, .work__figure:hover, .media-masonry > figure:hover, .event__shot:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -28px rgba(63,43,37,0.55);
}
.media:hover img, .event__shot:hover img, .media-masonry > figure:hover img,
.work__figure:hover img { transform: scale(1.07); }

/* Animated brand-colour rule that grows under section headings on reveal */
.section-head h2, .approach h2 { position: relative; }
.section-head h2::after, .approach h2::after {
  content: ""; display: block; height: 3px; width: 0; border-radius: 3px;
  background: var(--page-accent); margin-top: var(--sp-3);
  transition: width 0.9s var(--ease-out) 0.15s;
}
.approach h2::after { margin-inline: auto; }
/* centre the growing divider whenever its section-head is centre-aligned */
.section-head[style*="text-align:center"] h2::after,
.section-head[style*="text-align: center"] h2::after { margin-inline: auto; }
.section-head h2.is-in::after, .approach h2.is-in::after,
[data-reveal].is-in h2::after { width: 3.5rem; }
.section--accent h2::after, .section--image h2::after { background: rgba(255,255,255,0.8); }

/* Odisea — "What We Believe In" 2×2 grid */
.believe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-6); max-width: 46rem; margin: var(--sp-6) auto 0; }
@media (max-width: 640px) { .believe-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   MOTION — restrained hover micro-interactions (more "alive")
   ============================================================================ */
.media img, .event__shot img, .media-masonry img,
.work__figure img, .project-card__media img {
  transition: transform 0.6s var(--ease-out);
}
.media:hover img, .event__shot:hover img, .media-masonry > figure:hover img,
.work__figure:hover img, .project-card--fire:hover .project-card__media img {
  transform: scale(1.045);
}
.event__shot, .media-masonry > figure { overflow: hidden; }
.btn { transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
  border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn--primary:hover, .btn--outline:hover { transform: translateY(-2px); }

/* Accent-tinted marquee divider — adds a band of brand colour */
.marquee span { color: var(--page-shade); }
.marquee span::after { color: var(--page-accent); }

/* ----------------------------------------------------------------------------
   CLOSING CTA BAND   [GLOBAL — the site-wide "Closing CTA"]
   ---------------------------------------------------------------------------- */
.closing { border-top: var(--border-hairline); }
.closing__inner { max-width: 40rem; margin-inline: auto; text-align: center; }
.closing h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.closing p { color: var(--color-text-secondary); margin-bottom: var(--sp-4); }
.closing--dark { border-top: none; }
.closing--dark p { color: var(--color-text-on-dark-muted); }

/* ----------------------------------------------------------------------------
   JOURNAL: FEATURED + ARTICLE LIST + VIDEO GRID
   ---------------------------------------------------------------------------- */
.featured-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-6); align-items: center; }
.featured-grid .eyebrow { margin-bottom: var(--sp-2); }
.featured-grid h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.featured-grid p { color: var(--color-text-secondary); margin-bottom: var(--sp-4); }

.placeholder-note { color: var(--color-text-muted); font-style: italic; }

.article-list > li {
  display: grid; grid-template-columns: 10rem 1fr; gap: var(--sp-4);
  padding-block: var(--sp-4); border-top: var(--border-hairline); align-items: center;
}
.article-list > li:last-child { border-bottom: var(--border-hairline); }
.article-list h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.article-list .excerpt { color: var(--color-text-secondary); font-size: var(--fs-meta); margin-bottom: 0.5rem; }
.article-list .tag { font-size: var(--fs-eyebrow); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.video-grid .media { margin-bottom: var(--sp-2); }
.video-grid h3 { font-size: var(--fs-meta); font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

/* ----------------------------------------------------------------------------
   FORMS (Contact, Journal subscribe)   [TEMPLATE — Elementor Form widget]
   ---------------------------------------------------------------------------- */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: var(--fs-meta); margin-bottom: var(--sp-1); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 0.8rem 1rem;
  background: var(--color-field-bg); color: var(--color-field-text);
  border: 1px solid var(--color-field-border); border-radius: var(--radius);
}
.field textarea { min-height: 8rem; resize: vertical; }

fieldset.choice-set { border: none; margin: 0 0 var(--sp-5); padding: 0; }
fieldset.choice-set legend { font-size: var(--fs-h3); font-family: var(--font-display); font-weight: 500; margin-bottom: var(--sp-3); padding: 0; }
.choice { display: block; border-top: var(--border-hairline); padding: var(--sp-3) var(--sp-3); margin-inline: calc(var(--sp-3) * -1);
  cursor: pointer; border-radius: var(--radius-md); transition: background var(--dur) var(--ease-out); }
.choice:last-of-type { border-bottom: var(--border-hairline); }
.choice:hover { background: color-mix(in srgb, var(--color-accent) 4%, transparent); }
.choice__row { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.35rem; }
.choice__label { font-weight: 600; transition: color var(--dur) var(--ease-out); }
.choice__desc { margin: 0; padding-left: calc(1.1rem + 0.7em); color: var(--color-text-secondary); font-size: var(--fs-meta); }

/* Custom, elegant radio — brand terracotta, no default blue */
.choice__row input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 1.1rem; height: 1.1rem; margin: 0;
  border: 1px solid var(--color-line-strong); border-radius: 50%;
  background: var(--color-field-bg); cursor: pointer; position: relative;
  transition: border-color var(--dur) var(--ease-out);
}
.choice__row input[type="radio"]:hover { border-color: var(--color-accent); }
.choice__row input[type="radio"]:checked { border-color: var(--color-accent); }
.choice__row input[type="radio"]:checked::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--color-accent);
}
.choice__row input[type="radio"]:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.choice:has(input:checked) .choice__label { color: var(--color-accent); }
.choice:has(input:checked) { background: color-mix(in srgb, var(--color-accent) 6%, transparent); }

.subscribe-form { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.subscribe-form .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.subscribe-form input[type="email"] { min-width: 17rem; }

/* Contact reachability rail */
.info-list > div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--sp-2);
  padding-block: var(--sp-3); border-top: var(--border-hairline); }
.info-list > div:last-child { border-bottom: var(--border-hairline); }
.info-list dt { font-size: var(--fs-eyebrow); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.info-list dd { margin: 0; color: var(--color-text-secondary); }
/* centred variant (Contact "three ways to reach me") */
.info-list--center > div { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0.2rem; padding-block: var(--sp-4); }
/* readable on the terracota accent band */
.section--accent .info-list dt { color: rgba(255,255,255,0.72); }
.section--accent .info-list dd, .section--accent .info-list dd a, .section--accent .link { color: #fff; }
.section--accent .info-list dd a:hover, .section--accent .link:hover { color: rgba(255,255,255,0.82); }
.section--accent .info-list > div { border-color: rgba(255,255,255,0.24); }
.bullet-list li { position: relative; padding-left: 1.2em; color: var(--color-text-secondary); margin-bottom: 0.5rem; }
.bullet-list li::before { content: "\2014"; position: absolute; left: 0; color: var(--color-text-muted); }

/* ----------------------------------------------------------------------------
   SITE FOOTER   [THEME — Theme Builder Footer]
   ---------------------------------------------------------------------------- */
.site-footer {
  border-top: var(--border-hairline);
  padding: var(--sp-5) var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-meta); color: var(--color-text-secondary);
}
/* ============================================================================
   SOLID HEADER — for pages that open on a light background (e.g. articles).
   Forces the "scrolled" look from the top so the nav stays readable.
   (body.cinematic.solid-header beats the transparent body.cinematic rule.)
   ============================================================================ */
body.cinematic.solid-header .site-header { background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-line); }
body.cinematic.solid-header .brand-logo--light { display: none; }
body.cinematic.solid-header .brand-logo--dark { display: block; }
body.cinematic.solid-header .site-nav a { color: var(--color-text-secondary); }
body.cinematic.solid-header .site-nav a:hover,
body.cinematic.solid-header .site-nav a[aria-current="page"] { color: var(--color-text); }
body.cinematic.solid-header .site-header__brand,
body.cinematic.solid-header .site-header__lang,
body.cinematic.solid-header .site-header__toggle { color: var(--color-text); }
body.cinematic.solid-header .site-header__cv { color: var(--color-text); border-color: var(--color-text); }

/* ============================================================================
   SPLIT HERO — portrait beside a brand-colour text panel (works with white-bg portraits)
   ============================================================================ */
.hero-split { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr;
  min-height: clamp(36rem, 82vh, 52rem); background: var(--page-shade); color: #fff; overflow: hidden; }
.hero-split__text { display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + var(--sp-4)) clamp(1.5rem, 5vw, 4.5rem) var(--sp-5); }
.hero-split__text .eyebrow { color: rgba(255,255,255,0.82); margin-bottom: var(--sp-3); }
.hero-split__text h1 { color: #fff; }
.hero-split__text .hero__lede { color: rgba(255,255,255,0.92); margin-top: var(--sp-3); }
.hero-split__media { position: relative; overflow: hidden; background: var(--page-tint); border-radius: var(--radius-media); }
.hero-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-split__media::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--page-shade) 0, var(--page-shade) 5.5rem, transparent 13rem); }
/* transparent cut-out portrait: the figure sits directly on the section — no frame,
   no background, no shadow, nothing clipped */
.media--cutout { background: transparent; overflow: visible; border-radius: 0; box-shadow: none; }
.media--cutout:hover { box-shadow: none; transform: none; }
.media--cutout img { object-fit: contain; object-position: bottom center; }
.media--cutout:hover img { transform: none; }
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__media { min-height: 22rem; }
  .hero-split__text { padding-top: calc(var(--header-h) + var(--sp-3)); }
}

/* ============================================================================
   ARTICLE — long-form reading layout for individual Journal posts
   ============================================================================ */
.article { max-width: 44rem; margin-inline: auto; padding: var(--sp-5) var(--edge) var(--sp-6); }
.article__head { text-align: center; max-width: 40rem; margin: 0 auto var(--sp-5); }
.article__head h1 { font-size: var(--fs-h1); line-height: 1.08; margin: var(--sp-2) 0 var(--sp-3); }
.article__meta { color: var(--color-text-muted); font-size: var(--fs-meta); letter-spacing: 0.04em; }
.article__lede { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lede);
  color: var(--color-text-secondary); line-height: 1.5; margin-top: var(--sp-3); }
.article__cover { max-width: 60rem; margin: 0 auto var(--sp-6); border-radius: var(--radius-media); overflow: hidden; }
.article__cover img { width: 100%; height: auto; display: block; }
.prose > * + * { margin-top: var(--sp-3); }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--sp-5); letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--color-text-secondary); line-height: var(--lh-body); font-size: var(--fs-body); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose ol li::marker { color: var(--page-accent); font-family: var(--font-display); font-style: italic; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--color-text); }
.prose a { color: var(--page-shade); text-underline-offset: 2px; }
.article__sources { font-size: var(--fs-meta); color: var(--color-text-secondary); margin-top: var(--sp-5); }
.article__sources a { color: var(--color-text-secondary); }
.prose em.pull { display: block; font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-lede); color: var(--color-text); text-align: center; margin: var(--sp-5) 0; }
.article__back { display: block; text-align: center; margin-top: var(--sp-6); }
.link-plain { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease-out); }
.link-plain:hover { color: var(--page-shade); }

/* WhatsApp icon — CSS mask so it inherits the button's text colour */
.wa-icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.18em; margin-right: 0.55em;
  background: currentColor;
  -webkit-mask: url("/assets/brand/whatsapp.svg") center / contain no-repeat;
          mask: url("/assets/brand/whatsapp.svg") center / contain no-repeat; }

/* Subscribe form — name + email pill fields, stacked, on the coloured band */
.subscribe-form { display: flex; flex-direction: column; gap: var(--sp-2); max-width: 24rem; margin: var(--sp-3) auto 0; }
.subscribe-form input[type="email"],
.subscribe-form input[type="text"] { width: 100%; min-width: 0; font-family: var(--font-body); font-size: var(--fs-body);
  color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px; padding: 0.85em 1.35em; }
.subscribe-form input[type="email"]::placeholder,
.subscribe-form input[type="text"]::placeholder { color: rgba(255,255,255,0.7); }
.subscribe-form input[type="email"]:focus-visible,
.subscribe-form input[type="text"]:focus-visible { outline: none; border-color: #fff;
  background: rgba(255,255,255,0.2); box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
.subscribe-form .btn { border-radius: 999px; white-space: nowrap; margin-top: var(--sp-1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.odisea-logo { display: block; height: clamp(4rem, 9vw, 6.5rem); width: auto; margin: 0 auto var(--sp-2); }
.odisea-logo--hero { height: clamp(6rem, 16vw, 10rem); margin-bottom: var(--sp-2); }
.site-footer__brand { display: inline-block; margin-bottom: var(--sp-3); }
.site-footer__brand img { height: 1.5rem; width: auto; display: block; opacity: 0.9; }
.site-footer nav ul { display: flex; gap: var(--sp-3); }
.site-footer a:hover { color: var(--color-text); }

/* ----------------------------------------------------------------------------
   SKIP LINK
   ---------------------------------------------------------------------------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: var(--z-skip);
  background: var(--color-text); color: var(--color-bg); padding: var(--sp-2) var(--sp-3); }
.skip-link:focus { left: var(--sp-2); top: var(--sp-2); }

/* ----------------------------------------------------------------------------
   CONTACT SPREAD (reachability rail + form)   [TEMPLATE]
   ---------------------------------------------------------------------------- */
.contact-spread { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-7); align-items: start; }
.contact-spread .rail h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.contact-spread .rail > p { color: var(--color-text-secondary); margin-bottom: var(--sp-6); }
.contact-spread .rail .info-list { margin-bottom: var(--sp-6); }
.contact-spread .rail .rail__focus h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.contact-spread .form-col > h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }

/* ----------------------------------------------------------------------------
   RESPONSIVE — four tiers: desktop (default) / laptop / tablet / mobile.
   Principle: DON'T collapse everything to one column at tablet. Repeating
   grids keep 2-up density; only true single features (hero, split) stack.
   ---------------------------------------------------------------------------- */

/* LAPTOP  (<= 1100px) ------------------------------------------------------ */
@media (max-width: 1100px) {
  .card-grid { gap: var(--sp-4); }
  .elements-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-5); }
  .index-list > div { grid-template-columns: 13rem 1fr; }
  .hero-split__text, .split__text { padding-block: var(--sp-5); }
}

/* TABLET  (<= 860px) — the key tier ---------------------------------------- */
@media (max-width: 860px) {
  /* navigation collapses to a toggle */
  .site-nav { display: none; }
  .site-header__toggle { display: inline-block; }

  /* single features stack, image leading — not "stacking everything" */
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split__media { order: -1; }
  .hero-split__media .media { min-height: 52vh; }
  .hero-split__text { padding: var(--sp-5) var(--container-pad); max-width: none; margin-left: 0; }

  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; min-height: 44vh; }
  .split__text { padding: var(--sp-5) var(--container-pad); max-width: none; }

  /* repeating grids stay MULTI-column at tablet */
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .card-grid--stagger > :nth-child(2) { margin-top: 0; }
  .facts-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .facts-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; gap: var(--sp-4); }

  /* text-forward lists read fine stacked */
  .index-list > div { grid-template-columns: 1fr; gap: var(--sp-1); }

  .contact-spread { grid-template-columns: 1fr; gap: var(--sp-5); }
  .section-head { margin-bottom: var(--sp-5); }
}

/* MOBILE  (<= 560px) ------------------------------------------------------- */
@media (max-width: 560px) {
  :root { --section-y: 3.5rem; --section-y-lg: 4.5rem; }

  .card-grid,
  .facts-grid--2, .facts-grid--3,
  .video-grid,
  .elements-grid { grid-template-columns: 1fr; }

  .article-list > li { grid-template-columns: 1fr; }
  .article-list .media { max-width: 14rem; }

  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .subscribe-form { flex-direction: column; align-items: stretch; }
  .subscribe-form input[type="email"] { min-width: 0; width: 100%; }
}
