/* Eventinbarcelona.com — site styles
   Palette: Barcelona Cyan, Harbour, Mediterranean Deep, Stone, White, Sol (focus/progress only)
   Type: Archivo variable (width axis: 100 = reading, 118–125 = display) */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cyan: #0093c3;
  --harbour: #00739b;
  --deep: #06344a;
  --deep-2: #0a4561;
  --stone: #edf1f3;
  --stone-2: #dde4e8;
  --white: #ffffff;
  --sol: #f2b33d;
  --ink: #06344a;
  --ink-soft: #3d5d6d;
  --line: #c9d5db;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 122%;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.6vw, 2.85rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 4.1rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.4vw, 5.6rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1240px;
  --measure: 66ch;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--harbour); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .6rem 1rem; }

h1, h2, h3, h4 {
  font-stretch: var(--wide);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 820; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.18; }
h4 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1.1em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--stone { background: var(--stone); }
.section--deep { background: var(--deep); color: var(--white); }
.section--deep a { color: #8fd9f2; }
.section--deep .lead { color: #b9d3df; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: .35em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--deep); margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-stretch: 125%; font-weight: 800; font-size: 1.05rem; line-height: 1; letter-spacing: .005em; }
.brand-name span { color: var(--cyan); }
.brand-sub { display: block; font-stretch: 100%; font-weight: 450; font-size: .72rem; color: var(--ink-soft); margin-top: .25rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--deep); text-decoration: none; font-weight: 560; font-size: .95rem; padding: .55rem .7rem; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--harbour); background: var(--stone); }
.nav .btn { margin-left: .5rem; color: var(--white); }
.nav .btn:hover { background: var(--harbour); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--deep); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 1.25rem; padding: .9rem .25rem; border-bottom: 1px solid var(--stone-2); border-radius: 0; font-stretch: 112%; }
  .nav .btn { margin: 1.5rem 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 680; font-size: 1rem; line-height: 1.2;
  padding: .9rem 1.4rem; border-radius: var(--radius);
  background: var(--cyan); color: var(--white); border: 2px solid var(--cyan);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--harbour); border-color: var(--harbour); color: var(--white); }
.btn--ghost { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn--ghost:hover { background: var(--deep); color: var(--white); border-color: var(--deep); }
.section--deep .btn--ghost { color: var(--white); border-color: var(--white); }
.section--deep .btn--ghost:hover { background: var(--white); color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- hero with trencadís mosaic ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 3vw, 4.15rem); line-height: 1.03; letter-spacing: -0.02em; }
.hero .lead { margin-top: 1.25rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--ink-soft); }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts li::before { content: ""; width: 9px; height: 9px; background: var(--cyan); clip-path: polygon(0 20%, 70% 0, 100% 60%, 30% 100%); }
.mosaic { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.mosaic svg { width: 100%; height: 100%; overflow: visible; }
.mosaic .shard { transform-box: fill-box; transform-origin: center; }
.mosaic .shard image { filter: saturate(1.08) contrast(1.04); }
.mosaic .grout { fill: none; stroke: var(--white); stroke-width: 5; stroke-linejoin: round; }
.js .mosaic .shard { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.86); }
.js .mosaic.is-built .shard { opacity: 1; transform: none; transition: opacity .7s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--delay); }
@media (prefers-reduced-motion: reduce) {
  .js .mosaic .shard { opacity: 1; transform: none; transition: none; }
}
.mosaic-caption { position: absolute; right: 0; bottom: -1.6rem; font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mosaic { max-width: 520px; margin: 0 auto; }
}

/* small trencadís shards used as section ornament */
.shards-rule { display: flex; gap: 6px; margin: 0 0 1.5rem; }
.shards-rule i { display: block; width: 16px; height: 12px; background: var(--cyan); }
.shards-rule i:nth-child(1) { clip-path: polygon(0 10%, 100% 0, 85% 100%, 10% 85%); }
.shards-rule i:nth-child(2) { clip-path: polygon(15% 0, 100% 25%, 70% 100%, 0 70%); background: var(--harbour); width: 12px; }
.shards-rule i:nth-child(3) { clip-path: polygon(0 0, 90% 15%, 100% 100%, 20% 80%); background: var(--sol); width: 10px; }
.section--deep .shards-rule i:nth-child(2) { background: #8fd9f2; }

/* ---------- logo strip ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1.25rem 2rem; align-items: center; }
.logos img { width: 100%; max-width: 132px; height: auto; margin: 0 auto; filter: grayscale(1) contrast(1.05); opacity: .72; mix-blend-mode: multiply; transition: opacity .2s, filter .2s; }
.logos img:hover { opacity: 1; filter: none; }
.logos--compact { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.trust { padding: 2.5rem 0; border-top: 1px solid var(--stone-2); border-bottom: 1px solid var(--stone-2); }
.trust p { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1.25rem; }

/* ---------- services list (editorial rows, not cards) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--deep); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 160px; gap: 2rem; align-items: center;
  padding: 1.6rem 0; text-decoration: none; color: inherit;
}
.svc-row h3 { margin: 0; font-size: var(--step-2); }
.svc-row p { margin: 0; color: var(--ink-soft); }
.svc-row .thumb { width: 160px; aspect-ratio: 4/3; overflow: hidden; clip-path: polygon(4% 0, 100% 6%, 96% 100%, 0 92%); }
.svc-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-row a:hover h3 { color: var(--harbour); }
.svc-row a:hover .thumb img { transform: scale(1.06); }
@media (max-width: 760px) {
  .svc-row a { grid-template-columns: minmax(0, 1fr) 96px; gap: .5rem 1rem; }
  .svc-row h3 { hyphens: auto; overflow-wrap: break-word; }
  .svc-row p { grid-column: 1 / -1; grid-row: 2; min-width: 0; overflow-wrap: break-word; }
  .svc-row .thumb { width: 96px; grid-column: 2; grid-row: 1; }
}

/* ---------- Barcelona facts ---------- */
.facts.facts--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.facts.facts--3 .fact, .facts.facts--3 .fact + .fact { padding: 1.75rem 1.5rem 1.5rem; border-right: 1px solid rgba(255,255,255,.18); border-top: 0; }
.facts.facts--3 .fact:nth-child(3n+1) { padding-left: 0; }
.facts.facts--3 .fact:nth-child(3n) { border-right: 0; }
.facts.facts--3 .fact:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.18); }
@media (max-width: 860px) { .facts.facts--3 { grid-template-columns: 1fr; } .facts.facts--3 .fact:nth-child(n) { padding-left: 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.25); }
.fact { padding: 1.75rem 1.5rem 1.5rem 0; border-right: 1px solid rgba(255,255,255,.18); }
.fact + .fact { padding-left: 1.5rem; }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-stretch: 118%; font-weight: 800; font-size: clamp(1.55rem, 1rem + 1.6vw, 2.35rem); white-space: nowrap; line-height: 1; color: var(--white); margin-bottom: .6rem; }
.fact span { display: block; color: #b9d3df; font-size: .95rem; line-height: 1.45; }
.fact sup a { color: #8fd9f2; text-decoration: none; font-size: .75rem; }
.sources { margin-top: 2rem; font-size: .8rem; color: #93b3c2; max-width: 90ch; }
.sources a { color: #b9d3df; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
}

/* ---------- case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.case { grid-column: span 4; position: relative; }
.cases--feature { align-items: start; }
.cases--feature .case:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.cases--feature .case:nth-child(2), .cases--feature .case:nth-child(3) { grid-column: span 5; }
.case a { text-decoration: none; color: inherit; display: block; }
.case figure { margin: 0 0 1rem; overflow: hidden; background: var(--stone); aspect-ratio: 4/3; }
.cases--feature .case:nth-child(1) figure { aspect-ratio: 5 / 4.2; }
.cases--feature .case:nth-child(n+2) figure { aspect-ratio: 16 / 8.6; }
.case figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case a:hover img { transform: scale(1.04); }
.case h3 { font-size: var(--step-1); margin: 0 0 .3rem; }
.case a:hover h3 { color: var(--harbour); }
.case .meta { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.case[hidden] { display: none; }
@media (max-width: 900px) {
  .case, .cases--feature .case:nth-child(n) { grid-column: span 6; grid-row: auto; }
  .cases--feature .case:nth-child(n) figure { aspect-ratio: 4/3; }
}
@media (max-width: 560px) { .case, .cases--feature .case:nth-child(n) { grid-column: 1 / -1; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.filters button {
  font: inherit; font-size: .95rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--deep); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--deep); color: var(--white); border-color: var(--deep); }

/* ---------- process (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--deep); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-stretch: 125%; font-weight: 800; font-size: 1.6rem; color: var(--cyan); margin-bottom: .5rem; }
.steps h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.steps p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 2rem; align-items: end; }
.cta-band h2 { margin: 0; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- page header ---------- */
.page-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); background: var(--stone); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); max-width: 22ch; position: relative; z-index: 1; }
.page-hero .lead { margin-top: 1rem; }
.page-hero .hero-shards { position: absolute; right: clamp(-60px, -2vw, 0px); top: 50%; transform: translateY(-50%); width: clamp(160px, 22vw, 300px); height: auto; opacity: .95; pointer-events: none; }
@media (max-width: 760px) { .page-hero .hero-shards { width: 110px; top: 18px; transform: none; right: -18px; opacity: .5; } }
.breadcrumbs { font-size: .85rem; margin-bottom: 1.25rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span[aria-hidden] { margin: 0 .4rem; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--cyan); }
.prose blockquote { margin: 1.5em 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--cyan); font-size: var(--step-1); color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--stone); }
.prose th, .prose td { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 600px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .88rem; }
  .prose th, .prose td { padding: .55rem .5rem; min-width: 7.5em; }
}
.answer { font-size: var(--step-1); line-height: 1.5; border-left: 4px solid var(--cyan); padding-left: 1.25rem; margin: 0 0 2rem; max-width: 62ch; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.aside { position: sticky; top: 96px; background: var(--stone); padding: 1.75rem; border-radius: var(--radius); }
.aside h2 { font-size: var(--step-1); }
.aside ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.aside li { padding: .45rem 0; border-bottom: 1px solid var(--stone-2); font-size: .95rem; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- gallery + lightbox ---------- */
.gallery { columns: 3 260px; column-gap: 1rem; margin: 2rem 0; }
.gallery a { display: block; margin: 0 0 1rem; break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 30, 43, .94); display: grid; place-items: center; padding: 3rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1000px, 92vw); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #cfe3ec; text-align: center; margin-top: .9rem; font-size: .95rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: .8rem; font: inherit; font-size: 2rem; line-height: 1; }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- video (click to load) ---------- */
.video { position: relative; aspect-ratio: 16/9; background: var(--deep); margin: 2rem 0; overflow: hidden; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.video .play { position: relative; display: inline-flex; align-items: center; gap: .7rem; background: var(--white); color: var(--deep); font-weight: 700; padding: .9rem 1.3rem; border-radius: 999px; }
.video .play svg { width: 18px; height: 18px; fill: var(--cyan); }
.video button:focus-visible .play { outline: 3px solid var(--sol); outline-offset: 3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: .8rem; color: var(--ink-soft); margin-top: -1.25rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.videos .video { margin: 0 0 .6rem; }
.videos h3 { font-size: var(--step-0); margin: 0; }

/* ---------- interactive map ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.bcn-map { width: 100%; height: auto; background: var(--stone); border-radius: var(--radius); }
.bcn-map .sea { fill: #cfe9f3; }
.bcn-map .land { fill: #f7f9fa; }
.bcn-map .zone { fill: #bfe0ec; stroke: var(--white); stroke-width: 3; cursor: pointer; transition: fill .2s; }
.bcn-map .zone:hover, .bcn-map .zone:focus { fill: #7cc9e3; outline: none; }
.bcn-map .zone[aria-pressed="true"] { fill: var(--cyan); }
.bcn-map text { font-family: var(--font); font-size: 15px; font-weight: 650; fill: var(--deep); pointer-events: none; }
.bcn-map .lbl-sea { font-style: italic; font-weight: 450; fill: #5a8fa3; font-size: 17px; }
.zone-panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--cyan); padding: 1.6rem; min-height: 260px; }
.zone-panel h3 { margin-bottom: .4rem; }
.zone-panel .best { font-size: .92rem; color: var(--ink-soft); }
.zone-panel ul { padding-left: 1.1rem; margin: .5rem 0 0; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } }

/* ---------- wizard / form ---------- */
.wizard { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.75rem); max-width: 860px; }
.wizard-progress { display: flex; gap: 6px; margin-bottom: 1.75rem; }
.wizard-progress i { flex: 1; height: 5px; background: var(--stone-2); border-radius: 2px; transition: background .25s; }
.wizard-progress i.is-done { background: var(--cyan); }
.wizard-progress i.is-current { background: var(--sol); }
.wizard fieldset { border: 0; margin: 0; padding: 0; }
.wizard legend { font-stretch: 118%; font-weight: 780; font-size: var(--step-2); line-height: 1.15; margin-bottom: .4rem; padding: 0; }
.wizard .hint { color: var(--ink-soft); margin-bottom: 1.4rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 600; line-height: 1.3; transition: border-color .15s, background .15s; }
.choice span small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: .25rem; font-size: .85rem; }
.choice input:checked + span { border-color: var(--cyan); background: #e6f5fa; box-shadow: inset 0 0 0 1px var(--cyan); }
.choice input:focus-visible + span { outline: 3px solid var(--sol); outline-offset: 2px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 640; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0,147,195,.18); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: .3rem; width: 18px; height: 18px; flex: none; accent-color: var(--cyan); }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.form-error { color: #a4262c; font-weight: 600; margin: 1rem 0 0; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -5000px; }
.summary { background: var(--stone); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: .95rem; }
.summary dl { display: grid; grid-template-columns: 140px 1fr; gap: .3rem 1rem; margin: 0; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; }
.done { text-align: left; }
.done h2 { font-size: var(--step-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 2px solid var(--deep); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 700; font-size: var(--step-1); line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .25rem; top: 1.55rem; width: 14px; height: 14px; border-right: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.85rem; }
.faq .a { padding: 0 0 1.4rem; max-width: 70ch; color: var(--ink-soft); }
.faq .a p:last-child { margin: 0; }

/* ---------- two-column feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split figure { margin: 0; }
.split .shard-img { clip-path: polygon(3% 2%, 100% 0, 97% 96%, 0 100%); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checklist li { position: relative; padding: .55rem 0 .55rem 1.9rem; border-bottom: 1px solid var(--stone-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 13px; height: 10px; background: var(--cyan); clip-path: polygon(0 15%, 100% 0, 80% 100%, 8% 80%); }
.section--deep .checklist li { border-color: rgba(255,255,255,.14); }

.network { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.network li { border: 1px solid rgba(255,255,255,.3); padding: .35rem .8rem; border-radius: 999px; font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #b9d3df; padding: clamp(3rem, 6vw, 5rem) 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: 1rem; font-stretch: 112%; color: var(--white); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-brand .brand-name { color: var(--white); font-size: 1.25rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem; gap: .5rem; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
  .mobile-cta .btn { flex: 1; padding: .8rem; }
  body { padding-bottom: 68px; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   MOTION LAYER — everything below is disabled with prefers-reduced-motion
   ===================================================================== */

/* scroll progress */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--sol)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* hero floating shards */
.hero { position: relative; }
.float-shards { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.float-shards i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: calc(var(--s) * .8); background: var(--c); clip-path: polygon(0 18%, 82% 0, 100% 74%, 22% 100%); opacity: .85; animation: drift 14s ease-in-out var(--d) infinite; transform: translate3d(0, var(--py, 0px), 0); }
@keyframes drift { 0%,100% { translate: 0 0; rotate: 0deg; } 33% { translate: 14px -18px; rotate: 18deg; } 66% { translate: -10px 12px; rotate: -12deg; } }
.hero-grid { position: relative; z-index: 1; }

/* interactive mosaic */
.mosaic { perspective: 1100px; }
.mosaic svg { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.js .mosaic.is-built .shard { transition: opacity .7s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), filter .3s; }
.mosaic.is-live .shard { transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s; transition-delay: 0s; transform: translate(var(--px, 0px), var(--pyy, 0px)); }
.mosaic.is-live .shard:hover { transform: translate(var(--px, 0px), var(--pyy, 0px)) scale(1.07); filter: drop-shadow(0 14px 22px rgba(6,52,74,.35)); cursor: pointer; }
.mosaic image { transition: opacity 1.2s ease; }
.mosaic image.is-out { opacity: 0; }
.mosaic-tip { position: absolute; z-index: 3; left: 0; top: 0; width: max-content; max-width: 260px; padding: .5rem .75rem; background: var(--deep); color: #fff; font-size: .82rem; line-height: 1.35; border-radius: 3px; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .2s; }
.mosaic-tip.is-on { opacity: 1; }

/* logo marquee */
.trust { overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logos--row { display: flex; gap: 3rem; padding-right: 3rem; align-items: center; }
.logos--row img { width: 118px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--i, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .section-head h2, .js .cta-band h2 { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.js .section-head.in h2, .js .cta-band.in h2 { clip-path: inset(0 0 -10% 0); transform: none; }
.js .shards-rule i { transform: translate(-30px, 20px) rotate(-60deg); opacity: 0; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.js .shards-rule i:nth-child(2) { transition-delay: .08s; } .js .shards-rule i:nth-child(3) { transition-delay: .16s; }
.js .in .shards-rule i, .js .shards-rule.in i { transform: none; opacity: 1; }

/* steps: line draws in */
.steps li { position: relative; border-top-color: var(--stone-2); }
.steps li::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--i, 0ms); }
.steps li.in::after { transform: scaleX(1); }

/* services: photo grows into a tilted tile, row sweep */
.svc-row a { position: relative; isolation: isolate; transition: padding-left .4s cubic-bezier(.2,.8,.2,1); }
.svc-row a::after { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; background: linear-gradient(90deg, #e6f5fa, rgba(230,245,250,0)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.svc-row a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--cyan); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.svc-row .thumb { transition: transform .55s cubic-bezier(.2,.8,.2,1), clip-path .55s cubic-bezier(.2,.8,.2,1); transform-origin: 70% 50%; }
.svc-row .thumb img { transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .4s; }
.svc-row a:hover::after, .svc-row a:focus-visible::after { transform: scaleX(1); }
.svc-row a:hover .thumb, .svc-row a:focus-visible .thumb { transform: scale(1.35) rotate(-3deg); clip-path: polygon(0 8%, 94% 0, 100% 88%, 7% 100%); }
.svc-row a:hover .thumb img, .svc-row a:focus-visible .thumb img { transform: scale(1.12); filter: saturate(1.15); }
@media (hover: hover) and (min-width: 900px) {
  .svc-row a:hover { padding-left: 2.25rem; }
  .svc-row a:hover::before { width: 1.5rem; }
}

/* case cards: 3D tilt, shard reshape, shine */
.case a { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.case figure { position: relative; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: clip-path .6s cubic-bezier(.2,.8,.2,1); }
.case a:hover figure { clip-path: polygon(2% 3%, 98% 0, 100% 95%, 0 100%); }
.case figure::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.32), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.case a:hover figure::after { opacity: 1; }
.case figure::before { content: "View event"; position: absolute; z-index: 2; left: 1rem; bottom: 1rem; background: var(--cyan); color: #fff; font-weight: 700; font-size: .9rem; padding: .5rem .85rem; border-radius: 3px; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.case a:hover figure::before { opacity: 1; transform: none; }

/* magnetic buttons */
.btn { transition: background .15s, border-color .15s, color .15s, transform .35s cubic-bezier(.2,.8,.2,1); transform: translate(var(--bx, 0px), var(--by, 0px)); }

/* facts count-up */
.fact b { font-variant-numeric: tabular-nums; }

/* map */
.bcn-map .coast { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s ease; }
.bcn-map.in .coast { stroke-dashoffset: 0; }
.bcn-map .zone { transform-box: fill-box; transform-origin: center; transition: fill .2s, transform .35s cubic-bezier(.2,.8,.2,1); }
.bcn-map .zone:hover { transform: scale(1.05); }
.bcn-map .zone[aria-pressed="true"] { animation: zonePulse 2.4s ease-in-out infinite; }
@keyframes zonePulse { 0%,100% { filter: drop-shadow(0 0 0 rgba(0,147,195,0)); } 50% { filter: drop-shadow(0 0 10px rgba(0,147,195,.75)); } }
.zone-panel > * { animation: panelIn .45s cubic-bezier(.2,.8,.2,1) both; }
.zone-panel > *:nth-child(2) { animation-delay: .05s; } .zone-panel > *:nth-child(3) { animation-delay: .1s; } .zone-panel > *:nth-child(4) { animation-delay: .15s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* page hero shards float */
.page-hero .hero-shards path { transform-box: fill-box; transform-origin: center; animation: drift 16s ease-in-out infinite; }
.page-hero .hero-shards path:nth-child(2) { animation-delay: -4s; } .page-hero .hero-shards path:nth-child(3) { animation-delay: -8s; } .page-hero .hero-shards path:nth-child(4) { animation-delay: -12s; }

/* FAQ smooth open */
.faq .a { overflow: hidden; }

/* gallery hover */
.gallery a { overflow: hidden; }
.gallery img { transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.gallery a:hover img { transform: scale(1.05); filter: saturate(1.15); }
.lightbox:not([hidden]) img { animation: lbIn .4s cubic-bezier(.2,.8,.2,1); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* wizard step transition */
.wizard .step:not([hidden]) { animation: panelIn .45s cubic-bezier(.2,.8,.2,1); }
.choice span { transition: border-color .15s, background .15s, transform .2s; }
.choice input:checked + span { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .section-head h2, .js .cta-band h2, .js .shards-rule i { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .steps li::after { transform: scaleX(1); }
  .bcn-map .coast { stroke-dashoffset: 0; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track > [aria-hidden] { display: none; }
  .float-shards { display: none; }
}
@media (max-width: 860px) { .float-shards { display: none; } }

/* small-phone refinements */
@media (max-width: 860px) { .split, .with-aside, .map-wrap, .cta-band, .hero-grid { grid-template-columns: minmax(0, 1fr); } }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
.brand-sub { font-size: .75rem; }
@media (max-width: 480px) {
  h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact + .fact { padding: 1.4rem 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .fact:first-child { border-top: 0; }
  .fact b { white-space: normal; }
  .brand-sub { display: none; }
  .btn-row .btn { width: 100%; }
}

/* frosted header background lives on a pseudo-element so the fixed mobile menu is not trapped inside the header */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
@media (max-width: 960px) { .nav { z-index: 60; } .nav.is-open { box-shadow: 0 20px 40px rgba(6,52,74,.15); } }
@media (max-width: 700px) {
  .js .mobile-cta { transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .js .mobile-cta.is-on { transform: none; }
}

/* language switcher */
.lang { position: relative; margin-left: .25rem; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; font-weight: 640; font-size: .9rem; color: var(--deep); padding: .55rem .6rem; border-radius: var(--radius); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--stone); }
.lang summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; list-style: none; margin: 0; padding: .4rem; min-width: 190px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 36px rgba(6,52,74,.14); animation: panelIn .25s cubic-bezier(.2,.8,.2,1); }
.lang li a, .lang-mobile li a { display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: var(--radius); color: var(--deep); text-decoration: none; font-weight: 520; font-size: .95rem; }
.lang li a:hover { background: var(--stone); }
.lang li a[aria-current], .lang-mobile li a[aria-current] { color: var(--harbour); font-weight: 700; }
.lang .code, .lang-mobile .code { display: inline-block; min-width: 1.9rem; font-stretch: 118%; font-weight: 760; font-size: .78rem; color: var(--cyan); }
.lang-mobile { display: none; }
@media (max-width: 960px) {
  .lang { display: none; }
  .lang-mobile { display: block; margin-top: 1.25rem; }
  .lang-mobile ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
  .nav .lang-mobile a { font-size: 1rem; border: 1px solid var(--stone-2); border-radius: var(--radius); padding: .65rem .75rem; font-stretch: 100%; }
}
@media (max-width: 1180px) and (min-width: 961px) { .nav a { padding: .55rem .5rem; font-size: .9rem; } .brand-sub { display: none; } }
:lang(de) h1, :lang(de) h2, :lang(de) h3 { hyphens: auto; -webkit-hyphens: auto; }
/* header: keep every nav label on one line in all languages */
@media (min-width: 961px) {
  .nav a, .nav .btn, .lang summary { white-space: nowrap; }
  .brand-sub { white-space: nowrap; }
}
@media (max-width: 1360px) and (min-width: 961px) { .brand-sub { display: none; } }
@media (max-width: 1100px) and (min-width: 961px) {
  .header-inner { gap: 1rem; }
  .nav { gap: 0; }
  .nav a { padding: .5rem .4rem; font-size: .86rem; }
  .nav .btn { margin-left: .25rem; padding-left: .8rem; padding-right: .8rem; }
  .lang summary { padding-left: .4rem; padding-right: .4rem; }
}
@media (max-width: 1500px) and (min-width: 961px) { :lang(fr) .brand-sub, :lang(es) .brand-sub { display: none; } }
@media (max-width: 1030px) and (min-width: 961px) {
  .nav a { font-size: .8rem; padding: .45rem .3rem; }
  .nav .btn { padding-left: .65rem; padding-right: .65rem; }
  .brand-name { font-size: .95rem; }
}
/* "Part of Eventonetwork": keep the brand name on one line */
.network-h2 { font-size: clamp(1.6rem, 3.1vw, 3.1rem); overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
@media (max-width: 860px) { .network-h2 { font-size: clamp(1.5rem, 8vw, 2.6rem); } }
