/* ============================================================
   EDITORIAL DESIGN SYSTEM — ipernovation.eu
   Applies the v2 editorial design to all pages.
   Load this file INSTEAD OF base.css + components.css +
   theme-supernova.css on every page.
   ============================================================ */

/* ============================================================
   LOCAL FONTS
   ============================================================ */
@font-face {
  font-family: 'Syne';
  src: url('/fonts/Syne-Variable.woff2') format('woff2-variations');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Variable.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-VariableItalic.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:            #0A0B0F;
  --bg-2:          #0E1015;
  --bg-3:          #14161C;
  --ink:           #F5F3EE;
  --ink-2:         rgba(245, 243, 238, 0.62);
  --ink-3:         rgba(245, 243, 238, 0.38);
  --ink-4:         rgba(245, 243, 238, 0.16);
  --hair:          rgba(245, 243, 238, 0.09);
  --hair-strong:   rgba(245, 243, 238, 0.18);
  --orange:        #FF5722;
  --orange-soft:   #FF8A50;
  --sans:          'DM Sans', system-ui, sans-serif;
  --display:       'Syne', 'DM Sans', sans-serif;
  --mono:          'JetBrains Mono', ui-monospace, monospace;
  --max:           1240px;
  --gutter:        clamp(20px, 4vw, 48px);

  /* ── Legacy compatibility aliases ────────────────────────────
     Subpages and pages/*.css use these older variable names.
     They map to current Supernova tokens so existing inline
     styles resolve correctly without rewriting HTML files.
     ─────────────────────────────────────────────────────────── */
  --accent-supernova:       var(--orange);
  --accent-supernova-light: var(--orange-soft);
  --bg-primary:             var(--bg);
  --text-primary:           var(--ink);
  --text-secondary:         var(--ink-2);
  --text-label:             var(--ink-3);
  --font-display:           var(--display);
  --font-body:              var(--sans);
  --font-number:            var(--display);

  /* ── Structural tokens used by inner pages ───────────────── */
  --radius-card:            12px;
  --radius-pill:            999px;
  --section-v:              clamp(64px, 8vw, 120px);
  --section-v-sm:           clamp(40px, 5vw, 72px);
  --surface-1:              rgba(255, 255, 255, 0.03);
  --surface-2:              rgba(255, 255, 255, 0.06);
  --card-border:            rgba(245, 243, 238, 0.09);

  /* ── Extended aliases (pages/*.css + inline styles) ─────── */
  --bg-secondary:           var(--bg-2);
  --card-bg:                var(--bg-3);
  --card-border-hover:      rgba(245, 243, 238, 0.28);
  --text-muted:             var(--ink-3);
  --space-md:               clamp(24px, 3vw, 40px);
  --space-lg:               clamp(40px, 5vw, 64px);
  --container-max:          var(--max);
  --container-pad:          var(--gutter);
  --font-sans:              var(--sans);
  --border:                 rgba(245, 243, 238, 0.09);
  --surface:                var(--bg-3);
  --accent-teal:            #2DD4BF; /* used: stat-block emoji tint, EU tag on work cards */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02", "cv11";
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #000; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p { line-height: 1.6; }

/* ============================================================
   NAV — matches classes rendered by components.js
   ============================================================ */

/* Custom elements: never collapse before JS upgrades them */
site-nav, site-footer, site-cookie { display: block; }

/* Skip link: visually hidden, appears on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 20px;
  background: var(--orange);
  color: #000;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo link */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-mark svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.logo-iper {
  color: var(--orange);
}

.logo-nova {
  color: var(--ink);
}

.logo-url {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* Nav links list */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links li { display: flex; align-items: center; }

.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
  padding: 0 16px;
  transition: color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active { color: var(--ink); }

/* CTA link in nav */
.nav__links a.nav-cta {
  margin-left: 8px;
  padding: 8px 18px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  color: var(--ink);
}
.nav__links a.nav-cta:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding-left: 16px;
  border-left: 1px solid var(--hair);
}

.lang-switch a {
  font-size: 12px !important;
  padding: 0 !important;
  color: var(--ink-3) !important;
}
.lang-switch a:hover,
.lang-switch a.active { color: var(--ink) !important; }
.lang-switch span { color: var(--ink-4); }

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all 0.2s;
}

@media (max-width: 820px) {
  .nav__hamburger { display: flex; }

  /* Hide with transform/visibility so the drawer can animate in/out.
     display:none cannot be transitioned and breaks the toggle entirely. */
  .nav__links {
    display: flex;               /* keep flex so items stack correctly */
    flex-direction: column;
    position: fixed;
    inset-block: 0;
    left: 0;
    width: min(280px, 85vw);
    height: 100dvh;
    background: var(--bg, #0A0B0F);
    border-right: 1px solid var(--hair, rgba(255,255,255,0.08));
    padding-top: 80px;           /* clear the 64px nav bar */
    padding-inline: 0;
    gap: 4px;
    z-index: 998;

    /* Off-screen by default — no display:none */
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity   250ms ease,
      visibility 0ms  280ms;
    will-change: transform, opacity;
  }

  /* Open state — toggled by the JS hamburger handler */
  .nav__links.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity   250ms ease,
      visibility 0ms 0ms;
  }

  /* Make each link a proper touch target inside the drawer */
  .nav__links li { display: block; width: 100%; }
  .nav__links a  {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
    color: var(--ink);
  }
  .nav__links a:hover { color: var(--orange); }

  /* ── Language switcher — mobile drawer ──────────────────────
     Visually separated from nav links: smaller, dimmer, monospaced,
     laid out horizontally so EN · ES · IT reads as a row of codes. */
  .nav__links .lang-switch {
    display: flex;
    flex-direction: row;      /* horizontal — unlike the stacked nav links */
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-left: 0;
    padding: 14px 24px;
    margin-top: 8px;
    border-top: 1px solid var(--hair, rgba(255,255,255,0.08));
    border-left: none;        /* reset the desktop left-border */
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  /* Each lang code: small pill outline, not a full-width block */
  .nav__links .lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    width: auto;
    padding: 4px 10px;
    font-size: 11px !important;
    font-family: var(--mono);
    letter-spacing: 0.1em;
    color: var(--ink-3) !important;
    border: 1px solid var(--hair, rgba(255,255,255,0.12));
    border-radius: 4px;
    transition: color 0.15s, border-color 0.15s;
  }

  .nav__links .lang-switch a:hover {
    color: var(--ink) !important;
    border-color: var(--ink-3);
  }

  /* Active language: slightly brighter so you know where you are */
  .nav__links .lang-switch a.active {
    color: var(--orange) !important;
    border-color: var(--orange);
  }

  /* The · separators */
  .nav__links .lang-switch span {
    color: var(--ink-4);
    font-size: 10px;
  }

  /* Hamburger → X animation */
  .nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__hamburger.is-active span:nth-child(2) { opacity: 0; width: 0; }
  .nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary,
.btn-supernova {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

.btn--primary:hover,
.btn-supernova:hover {
  background: var(--orange);
  color: #000;
  transform: translateY(-1px);
}

.btn--ghost,
.btn--outline,
.btn-supernova-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}

.btn--ghost:hover,
.btn--outline:hover,
.btn-supernova-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn__arrow { transition: transform 0.2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-underline {
  color: var(--ink);
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.link-underline:hover { border-color: var(--orange); color: var(--orange); }

/* ============================================================
   TAGS / PILLS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  color: var(--ink-2);
  background: transparent;
}

/* ============================================================
   SECTION EYEBROW
   ============================================================ */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '§';
  color: var(--orange);
  font-family: var(--display);
  font-size: 16px;
}

.section-eyebrow--mb-sm { margin-bottom: 8px; }
.section-eyebrow--mb-lg { margin-bottom: 32px; }

/* Legacy glow class — no-op in new design */
.supernova-glow { /* intentionally empty */ }

/* ============================================================
   HOMEPAGE HERO — Editorial
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0 clamp(80px, 10vh, 120px);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.hero__bg::before,
.hero__glow {
  content: '';
  position: absolute;
  left: -10%;
  top: 10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 87, 34, 0.10), transparent 60%);
  filter: blur(40px);
}

.hero__dot-grid,
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero__content,
.hero__inner {
  position: relative;
  z-index: 1;
}

/* Masthead row */
.hero__masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: clamp(48px, 8vh, 88px);
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__masthead-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__brandmark {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: none;
}

.hero__brandmark .iper {
  color: var(--orange);
  opacity: 0;
  animation: ignite 0.8s ease forwards;
}
.hero__brandmark .iper:nth-child(1) { animation-delay: 0.10s; }
.hero__brandmark .iper:nth-child(2) { animation-delay: 0.16s; }
.hero__brandmark .iper:nth-child(3) { animation-delay: 0.22s; }
.hero__brandmark .iper:nth-child(4) { animation-delay: 0.28s; }
.hero__brandmark .nova {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.45s;
}

@keyframes ignite {
  0%   { opacity: 0; color: #fff; text-shadow: 0 0 20px #fff, 0 0 40px var(--orange); }
  40%  { opacity: 1; color: #fff; text-shadow: 0 0 14px #fff, 0 0 24px var(--orange); }
  100% { opacity: 1; color: var(--orange); text-shadow: none; }
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero__masthead-right {
  display: flex;
  gap: 24px;
}

@media (max-width: 700px) {
  .hero__masthead-right { display: none; }
}

/* Hero copy */
.hero__copy { max-width: 780px; }

.hero__headline,
.hero__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 0;
}

/* Homepage h1 overrides (the legacy .hero__name used on IT/ES pages) */
.hero__name.th-after {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero__headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}

.hero__headline .line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.hero__headline .line:nth-child(1) { animation-delay: 0.2s; }
.hero__headline .line:nth-child(2) { animation-delay: 0.32s; }

.hero__descriptor,
.hero__sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn,
  .hero__ctas .link-underline {
    text-align: center;
    justify-content: center;
  }
}

/* Legacy animated hero brand mark — hidden in editorial, kept in IT/ES */
.hero__headline.headline-supernova {
  font-size: clamp(60px, 14vw, 180px);
  letter-spacing: -0.04em;
  font-weight: 700;
  line-height: 0.85;
  color: var(--ink);
  margin-bottom: 32px;
  display: block;
}

.th-iper { color: var(--orange); }

/* th-after fade-up animations (used on IT/ES homepages) */
.th-after { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.th-after-1 { animation-delay: 0.5s; }
.th-after-2 { animation-delay: 0.65s; }
.th-after-3 { animation-delay: 0.80s; }

/* ============================================================
   INNER PAGE HERO (page-hero)
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 7vh, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}

.page-hero--sm { padding: clamp(48px, 7vh, 80px) 0; }
.page-hero--md { padding: clamp(56px, 8vh, 100px) 0; }

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-hero__headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
  color: var(--ink);
  margin-top: 16px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__headline em {
  font-style: italic;
  color: var(--orange);
}

/* Remove quotes from page hero headlines */
.page-hero__headline::before,
.page-hero__headline::after { content: none !important; }

.page-hero__headline--sm {
  font-size: clamp(28px, 3.6vw, 48px);
}

.page-hero__subline {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PROOF STRIP (homepage)
   ============================================================ */
.proof,
.impact-strip {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: clamp(56px, 9vh, 96px) 0;
  background: var(--bg-2);
}

/* 4-stat grid */
.proof__grid,
.impact-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(48px, 8vh, 72px);
}

@media (max-width: 820px) {
  .proof__grid,
  .impact-strip__grid { grid-template-columns: repeat(2, 1fr); }
}

.stat,
.impact-strip__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: clamp(16px, 2vw, 32px);
  border-right: 1px solid var(--hair);
}

.stat:last-child,
.impact-strip__item:last-child { border-right: 0; }

@media (max-width: 820px) {
  .stat:nth-child(2n),
  .impact-strip__item:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2),
  .impact-strip__item:nth-child(-n+2) {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hair);
  }
}

.stat__num,
.impact-strip__number {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__num .plus { color: var(--orange); font-weight: 500; }

.stat__label,
.impact-strip__label {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 24ch;
}

/* Logo row header */
.proof__logos-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.proof__logos-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hair);
}

/* ============================================================
   LOGO MARQUEE
   ============================================================ */
.logo-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee__track,
.logo-track {
  display: flex;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  animation: scroll 42s linear infinite;
  width: max-content;
}

@keyframes scroll { to { transform: translateX(-50%); } }

.logo-marquee__img,
.logo-track img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.logo-marquee__img--wide,
.logo-track img.wide { height: 24px; }
.logo-marquee__img--icon { height: 28px; }
.logo-track img.square-lg { height: 56px; }
.logo-marquee__img:hover,
.logo-track img:hover { opacity: 1; }

/* Static logos strip (about / contact pages) */
.logos-strip { padding: clamp(48px, 7vh, 80px) 0; }

.logos-strip__title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logos-strip__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hair);
}

.logos-strip__grid,
.contact-logos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 32px 40px;
  align-items: center;
}

.logo-client,
.logos-strip__grid img,
.contact-logos__grid img {
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.2s;
}

.logo-client:hover,
.logos-strip__grid img:hover,
.contact-logos__grid img:hover { opacity: 0.9; }

.contact-logos__grid img.logo--lg {
  max-height: 72px;
}

/* ============================================================
   SECTION HEAD (two-col label + title)
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(56px, 9vh, 96px);
  align-items: start;
}

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

.section-head__right { padding-top: 12px; }
.section-head__right p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.55;
}

.section-num { font-family: var(--mono); color: var(--ink-3); margin-right: 6px; }

.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
  color: var(--ink);
}

.section-title em { font-style: italic; color: var(--ink-2); font-weight: 400; }

/* ============================================================
   SERVICE ROWS (editorial list)
   ============================================================ */
.services--editorial {
  display: flex;
  flex-direction: column;
}

.service {
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr 100px;
  gap: clamp(16px, 3vw, 48px);
  padding: 36px 0;
  border-top: 1px solid var(--hair);
  align-items: start;
  transition: padding 0.25s;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.service:last-child { border-bottom: 1px solid var(--hair); }

@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .service__arrow { justify-self: start; }
}

.service:hover { padding-left: 12px; padding-right: 12px; }

.service::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.4s ease;
}

.service:hover::after { width: 100%; }

.service__num { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 6px; }

.service__title {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.service__desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 48ch; }
.service__desc strong { color: var(--ink); font-weight: 500; }

.service__arrow {
  justify-self: end;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.2s;
}

.service:hover .service__arrow { color: var(--orange); transform: translateX(4px); }

/* ============================================================
   WORK / SERVICES section wrappers
   ============================================================ */
.work-section,
.services-section {
  padding: clamp(96px, 14vh, 160px) 0;
}

/* Legacy .services used on inner pages */
.services {
  padding: clamp(64px, 10vh, 112px) 0;
  background: transparent;
}

.services--top-flush { padding-top: 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: 48px;
}

@media (max-width: 700px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CARDS (inner pages)
   ============================================================ */
.card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 1px solid var(--orange);
  border-left: 1px solid var(--orange);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover::before { opacity: 1; }

.card:hover {
  border-color: var(--hair-strong);
  background: rgba(255, 255, 255, 0.04);
}

.card__icon {
  color: var(--orange);
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.card__text {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Project cards (work page) */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transition: filter 0.4s, transform 0.5s;
  border-radius: 2px;
}

.project-card:hover .card__cover {
  filter: saturate(1) contrast(1);
  transform: scale(1.02);
}

.card__client {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card__badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.card__metric {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card__year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.card__arrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  transition: color 0.2s, transform 0.2s;
  align-self: flex-start;
}

.project-card:hover .card__arrow { color: var(--orange); transform: translateX(4px); }

/* Talk cards */
.talk-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: 28px;
}

.talk-card__event {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 12px 0 8px;
}

.talk-card__desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============================================================
   WORK GRID (work page)
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(48px, 7vh, 80px) 0;
}

.project-card--featured {
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: 0;
}

.project-card--featured .card__cover {
  border-radius: 0;
  margin-bottom: 0;
}

.project-card--featured .card__badge,
.project-card--featured .tag,
.project-card--featured .card__client,
.project-card--featured .card__text,
.project-card--featured .card__metric,
.project-card--featured .card__year,
.project-card--featured .card__arrow {
  padding-left: 24px;
  padding-right: 24px;
}

.project-card--featured .tag { padding-top: 20px; }
.project-card--featured .card__arrow { padding-bottom: 24px; }

@media (max-width: 700px) {
  .project-grid { grid-template-columns: 1fr; }
}

.work-grid-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 8px 0;
}

.work-grid-label__line {
  flex: 1;
  height: 1px;
  background: var(--hair);
}

.work-grid-label--muted .work-grid-label__text { color: var(--ink-4); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--hair-strong); color: var(--ink); }
.filter-btn.active { border-color: var(--orange); color: var(--orange); background: rgba(255,87,34,0.06); }

/* ============================================================
   SELECTED WORK SECTION wrapper (homepage)
   ============================================================ */
.selected {
  padding: clamp(96px, 14vh, 160px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

/* ============================================================
   CASES GRID (homepage selected work)
   ============================================================ */
.cases {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  row-gap: clamp(48px, 7vh, 80px);
}

.case { display: flex; flex-direction: column; gap: 16px; }
.case--a { grid-column: 1 / 7; }
.case--b { grid-column: 7 / 13; margin-top: clamp(0px, 5vh, 48px); }
.case--c { grid-column: 1 / 6; }
.case--d { grid-column: 6 / 13; }

@media (max-width: 820px) {
  .cases { grid-template-columns: 1fr; }
  .case--a, .case--b, .case--c, .case--d { grid-column: 1 / -1; margin-top: 0; }
}

.case__img {
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
}

.case--a .case__img { aspect-ratio: 4 / 3; }
.case--b .case__img { aspect-ratio: 3 / 4; }
.case--c .case__img { aspect-ratio: 1 / 1; }
.case--d .case__img { aspect-ratio: 16 / 10; }

.case__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: saturate(0.85) contrast(1.02);
}

.case:hover .case__img img { transform: scale(1.03); filter: saturate(1) contrast(1); }

.case__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case__meta-dot { width: 4px; height: 4px; background: var(--ink-4); border-radius: 50%; }

.case__title {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.case__desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 42ch; }

.case__link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 4px;
  transition: all 0.15s;
  text-decoration: none;
}

.case__link:hover { color: var(--orange); border-color: var(--orange); }

.selected__all {
  margin-top: clamp(56px, 8vh, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testi,
.testimonials-section {
  padding: clamp(80px, 12vh, 140px) 0;
}

.testi__quote-mark {
  font-family: var(--display);
  font-size: clamp(120px, 18vw, 240px);
  color: var(--orange);
  line-height: 0.6;
  opacity: 0.18;
  margin-bottom: -24px;
  font-weight: 500;
}

.testi__quote,
blockquote.testi__quote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
  margin-bottom: 40px;
  color: var(--ink);
}

.testi__quote em { color: var(--orange); font-style: italic; }

.testi__attr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  max-width: 520px;
  flex-wrap: wrap;
}

.testi__avatar,
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--hair-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  flex-shrink: 0;
}

.testi__name,
.testimonial-card__name { font-weight: 500; font-size: 15px; color: var(--ink); }

.testi__role,
.testimonial-card__role { font-size: 13px; color: var(--ink-3); line-height: 1.4; }

.testi__nav { display: flex; gap: 8px; margin-left: auto; }

.testi__nav-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 16px;
  line-height: 1;
}

.testi__nav-btn:hover { border-color: var(--orange); color: var(--orange); }

/* Testimonial card grid (homepage IT/ES) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 48px;
}

@media (max-width: 700px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.02);
  border-radius: 2px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  font-style: italic;
}

.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  margin-top: auto;
}

.testimonial-card__source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* Credentials bar */
.credentials-bar {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credentials-bar__item {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  flex-wrap: wrap;
}

.credentials-bar__label {
  color: var(--ink);
  font-weight: 500;
  min-width: 160px;
  flex-shrink: 0;
}

.credentials-bar__value { color: var(--ink-3); }

/* ============================================================
   CTA CLOSER / INVITE PANEL
   ============================================================ */
.closer,
.invite-panel {
  padding: clamp(96px, 14vh, 160px) 0 clamp(72px, 11vh, 120px);
  border-top: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}

.closer::before,
.invite-panel::before {
  content: '';
  position: absolute;
  bottom: -30%; left: 50%;
  transform: translateX(-50%);
  width: 90%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(255, 87, 34, 0.10), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.closer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

@media (max-width: 820px) { .closer__inner { grid-template-columns: 1fr; } }

.closer__title,
.invite-panel__headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 12ch;
  text-wrap: balance;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.closer__title em,
.invite-panel__headline em { color: var(--orange); font-style: italic; }

/* Remove quotes from invite panel headlines */
.invite-panel__headline::before,
.invite-panel__headline::after { content: none !important; }

.closer__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.closer__body,
.invite-panel__body,
.contact-cta__sub {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 44ch;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto 40px;
}

.invite-panel__body { position: relative; z-index: 1; }

.closer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.closer__meta-row { display: flex; gap: 12px; align-items: center; }
.closer__meta-row strong { color: var(--ink); font-weight: 500; }

/* Contact CTA (inner pages) */
.contact-cta {
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hair);
  text-align: center;
}

.contact-cta__glow {
  position: absolute;
  bottom: -30%; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(255, 87, 34, 0.10), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.contact-cta__inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }

.contact-cta__headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Remove quote chars from CTA headlines */
.contact-cta__headline::before,
.contact-cta__headline::after { content: none !important; }

.contact-cta__actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FUNDING PAGE
   ============================================================ */
.funding-page__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(64px, 10vh, 112px) 0;
}

@media (max-width: 820px) {
  .funding-page__body { grid-template-columns: 1fr; }
}

.funding-page__prose p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 52ch;
}

.service-cards-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card-sm {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s;
}

.service-card-sm:hover { border-color: var(--hair-strong); }

.service-card-sm__icon {
  color: var(--orange);
  flex-shrink: 0;
  padding-top: 2px;
}

.service-card-sm__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.service-card-sm__body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.instruments-section {
  padding: clamp(48px, 7vh, 80px) 0;
  border-top: 1px solid var(--hair);
}

.tag-cloud,
.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.credibility-bar {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 20px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin: 0;
}

/* Stat strip */
.stat-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: clamp(48px, 7vh, 80px) 0;
}

.stat-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

@media (max-width: 700px) {
  .stat-strip__inner { grid-template-columns: 1fr; }
}

.stat-block { display: flex; flex-direction: column; gap: 6px; }

.stat-block__number {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.stat-block__label { font-size: 14px; color: var(--ink-2); }
.stat-block__note { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 7vh, 88px);
  border-bottom: 1px solid var(--hair);
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-top: 32px;
}

@media (max-width: 820px) {
  .about-hero__inner { grid-template-columns: 1fr; }
}

.about-hero__name {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 12px;
}

.about__role {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 24px;
}

.about__bio {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 54ch;
  margin-bottom: 32px;
}

.about__portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  border: 1px solid var(--hair);
}

.about__links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Expertise section */
.expertise-section {
  padding: clamp(80px, 12vh, 140px) 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: 40px;
}

@media (max-width: 700px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

/* Carousel */
.carousel-section { padding: clamp(64px, 10vh, 112px) 0; border-top: 1px solid var(--hair); }

.carousel-section__title {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.carousel-section__sub {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 40px;
}

.carousel {
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.carousel:active { cursor: grabbing; }

.carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel__slide {
  flex-shrink: 0;
  width: clamp(260px, 45vw, 520px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(0.85);
  transition: filter 0.3s;
}

.carousel__slide:hover img { filter: saturate(1); }

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: rgba(10,11,15,0.7);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.15s;
  z-index: 2;
}

.carousel__btn:hover { border-color: var(--orange); color: var(--orange); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }

.carousel__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.carousel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel__dot.active { background: var(--orange); }

/* Media section */
.media-section,
.about-logos-section { padding: clamp(64px, 10vh, 112px) 0; border-top: 1px solid var(--hair); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: 40px;
}

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

.media-card {
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.02);
  border-radius: 2px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.media-card:hover { border-color: var(--hair-strong); }

.media-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.media-card__source,
.media-card__date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.media-card__title a {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.15s;
}

.media-card__title a:hover { color: var(--orange); }

.media-card__link {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: all 0.15s;
  text-decoration: none;
}

.media-card__link:hover { color: var(--orange); border-color: var(--orange); }

.media-card__video-wrap,
.media-card__spotify-wrap { border-radius: 2px; overflow: hidden; }

/* YouTube facade */
.yt-facade {
  position: relative;
  cursor: pointer;
  background: var(--bg-3);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.yt-facade__thumb { width: 100%; height: 100%; object-fit: cover; }

.yt-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  border: 0;
  cursor: pointer;
}

.yt-facade__play-icon { width: 68px; height: 48px; }

/* Spotify facade */
.spotify-facade {
  background: var(--bg-3);
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s;
}

.spotify-facade:hover { border-color: var(--hair-strong); }

.spotify-facade__logo { width: 32px; height: 32px; fill: #1DB954; flex-shrink: 0; }

.spotify-facade__label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.spotify-facade__title { font-size: 14px; color: var(--ink); font-weight: 500; }
.spotify-facade__cta { margin-left: auto; background: #1DB954; border: 0; color: #000; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: clamp(64px, 10vh, 112px) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

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

.contact-info__name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.contact-info__role {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 32px;
}

.contact-info__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

.contact-info__item svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-info__item a { color: var(--ink); transition: color 0.15s; }
.contact-info__item a:hover { color: var(--orange); }

.contact-logos__title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-logos__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hair);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  padding: clamp(80px, 12vh, 140px) 0;
  border-top: 1px solid var(--hair);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 820px) {
  .newsletter-inner { grid-template-columns: 1fr; }
}

.newsletter-headline {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 12px 0;
}

.newsletter-sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 44ch;
}

.newsletter-form { display: flex; flex-direction: column; gap: 12px; }

.newsletter-form__row { display: flex; gap: 10px; }

.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.newsletter-input::placeholder { color: var(--ink-3); }
.newsletter-input:focus { border-color: var(--orange); }

.newsletter-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.newsletter-success {
  font-family: var(--mono);
  font-size: 13px;
  color: #7EE4A6;
  padding: 16px;
  border: 1px solid rgba(126,228,166,0.2);
  border-radius: 4px;
}

/* ============================================================
   ITALIAN BANDI PAGE — supernova card style
   ============================================================ */
.card-supernova {
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.025);
  border-radius: 2px;
  padding: 32px;
  transition: border-color 0.2s;
}

.card-supernova:hover { border-color: var(--hair-strong); }

.hover-lift { transition: transform 0.2s, box-shadow 0.2s; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }

.subheading-supernova {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tagline-supernova {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 6px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer,
site-footer {
  display: block;
}

footer.footer,
.site-footer-wrapper {
  border-top: 1px solid var(--hair);
  padding: 48px 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__inner,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a,
.footer-inner a {
  color: var(--ink-3);
  transition: color 0.15s;
  text-decoration: none;
}

.footer a:hover,
.footer-inner a:hover { color: var(--ink); }

/* ============================================================
   COOKIE NOTICE
   ============================================================ */
.cookie-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 560px;
  width: calc(100% - 40px);
  backdrop-filter: blur(10px);
}

.cookie-notice button {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.cookie-notice button:hover { background: var(--orange); }

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 20px;
  background: var(--orange);
  color: #000;
  font-weight: 700;
  z-index: 999;
  transition: top 0.1s;
}

.skip-link:focus { top: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-secondary { color: var(--ink-2); }
.section-supernova { /* no-op alias */ }
.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;
}

/* ============================================================
   MOBILE OVERRIDES (global)
   ============================================================ */
@media (max-width: 600px) {
  .btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .page-hero__headline {
    font-size: clamp(26px, 8vw, 40px);
  }

  .page-hero__subline { font-size: 15px; }

  .hero__headline,
  .hero__name.th-after {
    font-size: clamp(30px, 9vw, 52px);
  }

  .services__grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  .card__title { font-size: 17px; }

  .stat-strip__inner { grid-template-columns: 1fr; gap: 32px; }
  .proof__grid, .impact-strip__grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { gap: 40px; }

  .newsletter-form__row { flex-direction: column; }
  .newsletter-input { border-radius: 8px; }
  .newsletter-btn { border-radius: 999px !important; }

  .expertise-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
