/* ==========================================================================
   Security Conference 2027 – Vis
   "Od Imotske muke do Viške luke"

   Built on the 2026 Imotski design language: black canvas, #47f2ef accent,
   Overusedgrotesk display type over Nunito Sans, blurred colour blocks,
   noise texture, white-framed photography.

   What is new for 2027: the page sits on the sea instead of the karst.
   Deep-water gradients replace flat black in the narrative sections, a
   horizon rule runs through the layout, and the type is set in a wider,
   more open rhythm.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: "Overused Grotesk";
  src: url("../images/overusedgrotesk-roman-bf64eeac17dee17.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("../images/overusedgrotesk-medium-bf64eeac181a996.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("../images/overusedgrotesk-semibold-bf64eeac17e1195.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("../images/overusedgrotesk-bold-bf64eeac1756b57.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("../images/overusedgrotesk-extrabold-bf64eeac180b325.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overused Grotesk";
  src: url("../images/overusedgrotesk-black-bf64eeac1739530.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */

:root {
  /* Carried over from 2026 so the two years read as one conference. */
  --cyan: #47f2ef;
  --cyan-soft: #47f2ef99;
  --cyan-ghost: #47f2ef1f;
  --teal-deep: #102a29;
  --accent-ink: #0a9c99;   /* cyan reads too pale on white; this is its paper twin */
  --accent-ink-deep: #0a6b69; /* the same accent at small sizes, where it needs more contrast */
  --ink: #000;
  --paper: #f8f8f8;

  /* New for Vis: the water. */
  --sea-900: #00090d;
  --sea-800: #00161c;
  --sea-700: #052730;
  --sea-600: #0a3a45;
  --foam: #eafcfb;
  --stone: #dcd5c6;

  --line: #ffffff1f;
  --line-strong: #ffffff33;
  --muted: #ffffffa8;

  --font-display: "Overused Grotesk", "Arial Black", Arial, sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;

  --radius: 10px;
  --radius-lg: 20px;

  --gutter: 60px;
  --maxw: 1440px;

  /* Section rhythm. */
  --section-y: 180px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 991px) {
  :root { --gutter: 32px; --section-y: 120px; }
}

@media (max-width: 479px) {
  :root { --gutter: 20px; --section-y: 90px; }
}

/* ------------------------------------------------------------------ reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

::selection { background: var(--cyan); color: #00140f; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------- primitives */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  overflow: clip;
}

/* The grain the 2026 page laid over every panel. */
.noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  background-image: url("../images/noiseoverlay.webp");
  background-position: 50%;
  pointer-events: none;
}

/* Soft colour blocks pushed through a heavy blur – the 2026 signature. */
.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(170px);
  pointer-events: none;
}

.glow span {
  position: absolute;
  display: block;
  background-color: var(--cyan);
}

.glow--soft { filter: blur(110px); }
.glow span.is-soft { background-color: var(--cyan-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.eyebrow--dark { color: var(--teal-deep); }

/* Label on its own, without the short rule in front of it. */
.eyebrow--bare { gap: 0; }
.eyebrow--bare::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.45;
  color: #fff;
}

.muted { color: var(--muted); }

/* A hairline that reads as the sea horizon. */
.horizon {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}

.horizon::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--cyan);
}

/* ----------------------------------------------------------------- button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 34px;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-color: var(--paper);
  background-image: url("../images/noiseoverlay.webp");
  background-position: 50%;
  color: #000;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.45s var(--ease-out);
}

.btn span { position: relative; z-index: 1; }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}

.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 18px 50px -18px var(--cyan); }

.btn--ghost {
  background: transparent;
  background-image: none;
  color: #fff;
  border: 1px solid var(--line-strong);
}

.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: #000; box-shadow: none; }

.btn--cyan {
  background: var(--cyan);
  background-image: none;
  color: #00120f;
}

.btn--cyan::before { background: #fff; }

.btn .arrow {
  width: 15px;
  height: 15px;
  flex: none;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .arrow { transform: translate(3px, -3px); }

/* --------------------------------------------------------------- the mark */

.mark { display: flex; align-items: center; gap: 14px; }

.mark svg { height: 38px; width: auto; display: block; overflow: visible; }

.mark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mark-text b { display: block; font-weight: 700; }
.mark-text em { font-style: normal; color: var(--cyan); }

@media (max-width: 767px) {
  .mark svg { height: 30px; }
  .mark-text { font-size: 10px; }
}

/* ------------------------------------------------------------------- nav */

/* The blur lives on a pseudo-element, not on .nav itself. An element with a
   backdrop-filter becomes the containing block for its fixed descendants, and
   that would trap the full-screen mobile menu inside this 76px bar. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
}

/* z-index: -1 keeps the bar behind the nav's own content without leaving the
   nav's stacking context, so it still covers the page beneath.
   (.nav-links sits inside .nav-menu, so it is not a `.nav >` child and gets
   no z-index of its own — it must not be painted over.) */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, #000000cc, #00000000);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
  pointer-events: none;
}

.nav.is-stuck::before {
  background: #000000e0;
  border-bottom-color: var(--line);
}

.nav > .mark,
.nav > .nav-actions { position: relative; z-index: 2; }

.nav.is-hidden { transform: translateY(-105%); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-past {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 40px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.nav-past:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-ghost); }
.nav-past svg { width: 11px; height: 11px; flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  flex: none;
}

.nav-toggle i {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: #fff;
  transition: transform 0.4s var(--ease-out), opacity 0.25s ease;
}

.nav-toggle i:nth-child(1) { top: 18px; }
.nav-toggle i:nth-child(2) { top: 24px; }

.nav.is-open .nav-toggle i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav-toggle i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 0 var(--gutter);
    background: #000000f5;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }

  .nav.is-open .nav-menu { opacity: 1; visibility: visible; }

  .nav-links { flex-direction: column; align-items: flex-start; gap: 6px; }

  .nav-link {
    font-family: var(--font-display);
    font-size: clamp(30px, 9vw, 54px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
  }

  .nav-actions .nav-past { display: none; }
  .nav-menu .nav-past { display: inline-flex; align-self: flex-start; margin-top: 18px; }
}

@media (min-width: 992px) {
  .nav-menu { display: contents; }
  .nav-menu .nav-past { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: 220px 0 16px;
  background:
    radial-gradient(120% 90% at 78% 8%, #06323d 0%, #01151b 45%, #000 78%);
  isolation: isolate;
  overflow: clip;
}

.hero .glow span.b1 { top: 4%; right: 6%; width: 22%; height: 24%; }
.hero .glow span.b2 { bottom: 16%; left: 2%; width: 20%; height: 16%; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px 56px;
  align-items: start;
  align-content: space-between;
  width: 100%;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

.hero-kicker span.dim { color: var(--muted); font-weight: 500; letter-spacing: 0.1em; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 5.95vw, 90px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.hero-title .ln { display: block; }

/* The two halves of the title: Imotski is behind us, Vis is ahead. */
.hero-title .past { color: #ffffff5c; }
.hero-title .now { color: #fff; }
.hero-title .now em { font-style: normal; color: var(--cyan); }

.hero-copy {
  max-width: 480px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.hero-note {
  font-size: 15.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-note b { color: #fff; font-weight: 600; }

/* --- hero visual --- */

.hero-visual { position: relative; }

.hero-shot {
  position: relative;
  border: 8px solid #fff;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--sea-700);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.1);
  will-change: transform;
}

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, #47f2ef1a, transparent 55%);
  mix-blend-mode: screen;
}

.hero-rays {
  position: absolute;
  top: -80px;
  right: -110px;
  width: 300px;
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}

/* Sits on the bottom-left corner of the photograph, so it needs a backdrop
   solid enough to stay legible over whatever is underneath. */
.hero-stamp {
  position: absolute;
  left: -34px;
  bottom: -28px;
  display: flex;
  align-items: stretch;
  background: #000000d9;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stamp-badge {
  width: 112px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #00120f;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.02em;
}

.hero-stamp-body {
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.hero-stamp-body b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* --- countdown --- */

.countdown {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 46px;
  margin-top: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-right: auto;
  padding-bottom: 8px;
}

.cd-unit { display: flex; flex-direction: column; gap: 2px; min-width: 76px; }

.cd-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: flex;
  overflow: hidden;
}

.cd-value .dgt {
  display: inline-block;
  will-change: transform;
}

.cd-name {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The taller hero above needs about 880px to show the countdown. On a shorter
   laptop screen it would push it under the fold, so the top space and the
   photograph give a little back. */
@media (min-width: 1101px) and (max-height: 880px) {
  .hero { padding-top: 165px; }
  .hero-shot { aspect-ratio: 1 / 0.9; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { max-width: 620px; }
  .hero-rays { right: -60px; width: 220px; }
}

@media (max-width: 767px) {
  .hero { padding-top: 120px; }
  .hero-stamp { left: 0; bottom: -20px; }
  .hero-grid { gap: 44px; }
  .hero-stamp-badge { width: 76px; font-size: 26px; }
  .hero-stamp-body { padding: 15px 18px; }
  .hero-stamp-body b { font-size: 16px; }
  .hero-rays { opacity: 0.12; width: 190px; right: -40px; top: -50px; }
  .hero-shot { aspect-ratio: 4 / 3; }

  /* Four units never fit on one flex row at phone widths, and a lone
     "SEKUNDI" wrapping underneath reads as a mistake. Give them a grid. */
  .countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
    margin-top: 26px;
  }

  .countdown-label { grid-column: 1 / -1; margin-right: 0; padding-bottom: 0; }
  .cd-unit { min-width: 0; }
  .cd-value { font-size: 30px; }
  .cd-name { font-size: 10px; letter-spacing: 0.1em; }
}

/* --------------------------------------------------------------- marquee */

.ticker {
  position: relative;
  z-index: 2;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
  will-change: transform;
}

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 52px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.ticker-track span.out {
  color: transparent;
  -webkit-text-stroke: 1px #ffffff4d;
}

.ticker-track i {
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
}

/* ----------------------------------------------------------------- story */

.story {
  background: linear-gradient(180deg, #000 0%, var(--sea-800) 46%, var(--sea-700) 74%, #000 100%);
}

.story .glow span.b1 { top: 22%; right: 8%; width: 18%; height: 16%; background: var(--cyan-soft); }

.story-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.story-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-top: 18px;
}

.story-title em { font-style: normal; color: var(--cyan); }

.story-body { display: flex; flex-direction: column; gap: 26px; max-width: 640px; }

.story-body p { font-size: clamp(16px, 1.45vw, 20px); line-height: 1.6; color: #ffffffd6; }
.story-body p.hi { color: #fff; font-weight: 600; }

/* Photo run: 2026 frames that drift at different speeds. Five smaller
   pictures rather than three big ones, so the band reads as a spread. */
.story-frames {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
}

.frame {
  position: relative;
  border: 5px solid #fff;
  border-radius: 5px;
  overflow: hidden;
  background: var(--sea-700);
  will-change: transform;
}

.frame img { width: 100%; height: 100%; object-fit: cover; }

.frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 11px 9px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(0deg, #000000cc, transparent);
}

/* Column spans add up to 12; the offsets stagger the band vertically. */
.frame--a { grid-column: 1 / span 3;  aspect-ratio: 4 / 3; }
.frame--b { grid-column: 4 / span 2;  aspect-ratio: 3 / 4; margin-top: 62px; }
.frame--c { grid-column: 6 / span 3;  aspect-ratio: 4 / 3; margin-top: 16px; }
.frame--d { grid-column: 9 / span 2;  aspect-ratio: 3 / 4; margin-top: 92px; }
.frame--e { grid-column: 11 / span 2; aspect-ratio: 3 / 4; margin-top: 34px; }

.story-foot {
  position: relative;
  z-index: 2;
  margin-top: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.story-foot p { max-width: 520px; color: var(--muted); font-size: 15.5px; }

@media (max-width: 991px) {
  .story-head { grid-template-columns: 1fr; gap: 26px; margin-bottom: 56px; }

  /* Two per row, every frame kept – the staggered desktop spread would be
     unreadable at this width. */
  .story-frames { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .frame--a, .frame--b, .frame--c, .frame--d, .frame--e {
    grid-column: auto;
    aspect-ratio: 4 / 3;
    margin-top: 0;
  }

  .frame--b, .frame--d { margin-top: 26px; }
}

/* ---------------------------------------------------------------- counts */

.scale {
  background: #000;
  text-align: center;
  padding-top: 56px;
}

.scale-inner { position: relative; z-index: 2; }

.scale-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 40px;
  margin: 0 0 46px;
}

.scale-num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(54px, 11vw, 168px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1.5px #ffffff3d;
}

.scale-line {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin: 0 auto;
}

.scale-line em { font-style: normal; color: var(--cyan); }

.scale-sub {
  margin: 26px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
}

/* --------------------------------------------------------------- program */

/* Sized to fit a laptop screen in one go: shorter padding, a smaller
   headline and tighter cards. */
.program {
  background: var(--paper);
  color: #000;
  background-image: url("../images/noiseoverlay.webp");
  background-position: 50%;
  padding-top: 100px;
  padding-bottom: 100px;
}

.program .shell { position: relative; z-index: 2; }

.program-rays {
  position: absolute;
  top: -22%;
  left: -18%;
  width: 640px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  filter: invert(1);
}

.program-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.program-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}

.program-title em { font-style: normal; -webkit-text-stroke: 1.5px var(--teal-deep); color: transparent; }

.program-intro { font-size: clamp(16px, 1.45vw, 20px); line-height: 1.6; color: #102a29cc; }
.program-intro b { color: var(--teal-deep); font-weight: 700; }

.program-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 28px;
  background: #f2f3f3;
  border: 1px solid #102a291f;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.pcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px #102a2959; }

.pcard-idx {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #00b3b0;
}

.pcard h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--teal-deep);
}

.pcard p { font-size: 15.5px; line-height: 1.55; color: #102a29b3; }

.pcard-tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 40px;
  background: #47f2ef2e;
  color: #0a6b69;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* noiseoverlay.webp is a near-white grain sheet: it belongs on a light
   surface, or as a low-opacity layer. Painted straight onto this dark strip
   it would cover the teal completely, so the grain goes on top instead. */
.program-strip {
  position: relative;
  margin-top: 64px;
  padding: 30px 34px;
  border-radius: 14px;
  background: var(--teal-deep);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 34px;
  overflow: hidden;
}

.program-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("../images/noiseoverlay.webp");
  background-position: 50%;
  pointer-events: none;
}

.program-strip > * { position: relative; z-index: 1; }

.program-strip p {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(17px, 1.9vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 24ch;
}

.program-strip p em { font-style: normal; color: var(--cyan); }

.program-strip span { font-size: 15px; color: #ffffffa8; max-width: 34ch; }

@media (max-width: 991px) {
  .program-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 36px; }
  .program-cards { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- keynote */

.keynote {
  background: radial-gradient(110% 80% at 18% 22%, #063441 0%, #01161c 48%, #000 82%);
}

.keynote .glow span.b1 { top: 10%; left: 6%; width: 20%; height: 22%; }

.keynote-lines {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 62px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.keynote-lines span { display: block; }
.keynote-lines span i { display: block; font-style: normal; }
.keynote-lines span:nth-child(2) i { color: #ffffff7a; }
.keynote-lines span:nth-child(3) i { color: var(--cyan); }

.keynote-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
}

.keynote-poster {
  position: relative;
  border: 8px solid #fff;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sea-700);
  will-change: transform;
}

.keynote-poster img { width: 100%; height: auto; }

.keynote-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 15px;
  border-radius: 40px;
  background: #000000a8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.keynote-name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}

.keynote-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.keynote-text {
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.55;
  color: #ffffffd6;
  max-width: 44ch;
  margin-bottom: 34px;
}

.keynote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.chip {
  padding: 8px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 40px;
  font-size: 13.5px;
  color: #ffffffc4;
}

@media (max-width: 991px) {
  .keynote-grid { grid-template-columns: 1fr; gap: 38px; }
  .keynote-poster { max-width: 460px; }
}

/* ---------------------------------------------------------------- island */

.island {
  background: linear-gradient(180deg, #000 0%, var(--sea-800) 55%, #000 100%);
  padding-top: 110px;
  padding-bottom: 130px;
}

/* Same two-column head as the story section. The old layout used hero-sized
   type over a full-bleed photograph, which made this read as a second
   landing page instead of a chapter. */
.island-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  margin-bottom: 44px;
}

.island-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  margin-top: 18px;
  max-width: 14ch;
}

.island-title em { font-style: normal; color: var(--cyan); }

/* Pushed to the bottom of the head row and set flush right, so it settles
   against the last line of the headline instead of floating beside it. */
.island-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 24px;
  text-align: right;
}

.island-body p {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: #ffffffd6;
  max-width: 46ch;
}

.island-body b { color: var(--cyan); font-weight: 700; }

/* Five words, five beats. */
.island-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.island-words span {
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.04em;
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}

.island-words span:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-ghost); }

/* The island and the boat that gets you there, side by side. */
.island-media {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
}

.isle {
  position: relative;
  border: 6px solid #fff;
  border-radius: 5px;
  overflow: hidden;
  background: var(--sea-700);
}

.isle img { width: 100%; height: 100%; object-fit: cover; }

.isle--wide { grid-column: 1 / span 6; aspect-ratio: 3 / 2; }
.isle--tall { grid-column: 7 / span 6; aspect-ratio: 3 / 2; }

.isle figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 40px 18px 14px;
  background: linear-gradient(0deg, #000000d6, transparent);
}

.isle figcaption b {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(15px, 1.6vw, 22px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.isle figcaption span { font-size: 12.5px; color: #ffffffb8; letter-spacing: 0.06em; }

@media (max-width: 991px) {
  .island-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .island-title { max-width: none; }
  .island-body { align-items: flex-start; text-align: left; }
  .island-words { justify-content: flex-start; }
  .island-media { grid-template-columns: 1fr; gap: 16px; }
  .isle--wide, .isle--tall { grid-column: auto; margin-top: 0; }
}

/* --------------------------------------------------------------- closing */

/* The light counterpart to the programme section: same paper background and
   grain, same deep teal for type. Cyan is too pale to read on white, so the
   accent drops to a darker teal that still belongs to the same family. */
.closing {
  position: relative;
  padding: 110px 0 120px;
  background: var(--paper);
  background-image: url("../images/noiseoverlay.webp");
  background-position: 50%;
  color: var(--teal-deep);
  text-align: center;
  overflow: clip;
}

/* The blurred colour blocks belong on the dark panels. */
.closing .glow { display: none; }

.closing-inner { position: relative; z-index: 2; width: 100%; }

.closing-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 36px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.closing-pair span:first-child { color: #102a2959; }
.closing-pair span:last-child { color: var(--teal-deep); }
.closing-pair span:last-child em { font-style: normal; color: var(--accent-ink); }

.closing-big {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(38px, 7.6vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 34px;
  color: var(--teal-deep);
}

.closing-big span { display: block; }
.closing-big span:last-child { color: var(--accent-ink); }

.closing-date {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 26px;
  border: 1px solid #102a2926;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.closing-date i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); }

.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* The page's default buttons are built for dark panels: the solid one is
   near-white and the ghost one draws in white. Both need inverting here. */
.closing .btn {
  background-color: var(--teal-deep);
  background-image: none;
  color: #fff;
}

.closing .btn::before { background: var(--cyan); }
.closing .btn:hover { color: #00120f; box-shadow: 0 16px 40px -20px #102a2980; }

.closing .btn--ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid #102a2933;
}

.closing .btn--ghost::before { background: var(--teal-deep); }
.closing .btn--ghost:hover { color: #fff; box-shadow: none; }

.closing-soon {
  margin-top: 22px;
  font-size: 14px;
  color: #102a29a3;
}

.closing-soon a { color: var(--accent-ink-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- footer */

.footer {
  position: relative;
  background: #000;
  padding: 96px 0 30px;
  overflow: clip;
}

.footer-rays {
  position: absolute;
  right: -14%;
  top: -34%;
  width: 560px;
  opacity: 0.07;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 42px;
  padding-bottom: 60px;
}

.footer-brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

.footer-tag {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.footer-tag em { font-style: normal; color: var(--cyan); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 15px; color: #ffffffc4; }
.footer-col a { transition: color 0.3s ease; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: #ffffff85;
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ------------------------------------------------------------ animations */

/* Elements start hidden only when the script is alive to reveal them. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal-img { clip-path: inset(100% 0 0 0); }
.js [data-split] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js [data-split] { opacity: 1 !important; transform: none !important; }

  .js .reveal-img { clip-path: none !important; }

  .hero-kicker i { animation: none; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
