/* MSIA website mockup. One motif: the 34 degree stroke of the M in MSIA's logo. */
:root {
  --blue: #1871B9;
  --blue-deep: #0E4F8C;
  --blue-night: #0B2A4A;
  --red: #ED1C24;
  --red-deep: #C4141B;
  --ink: #0B2A4A;
  --muted: #3E5470;
  --ground: #FFFFFF;
  --tone: #EEF3F8;
  --tone-2: #DCE7F2;
  --paper: #FFFFFF;

  --display: "Stack Sans Headline", "Segoe UI", system-ui, sans-serif;
  --text: "Stack Sans Text", "Segoe UI", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.6rem, 1.2rem + 4.2vw, 5.4rem);

  /* tan(34deg) = 0.6745: a slanted edge of height h moves 0.6745h sideways */
  --slope: 0.6745;
  --margin: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--display); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }

.wrap { padding-inline: var(--margin); }
.section { padding-block: var(--gap-section) 0; }

/* ---------- motif helpers ---------- */
/* slanted parallelogram, like one stroke of the M */
.slant {
  --h: 52px;
  clip-path: polygon(calc(var(--h) * var(--slope)) 0, 100% 0, calc(100% - var(--h) * var(--slope)) 100%, 0 100%);
}
/* chamfer: the top right corner cut at the logo's angle */
.cut {
  --c: clamp(40px, 6vw, 96px);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% calc(var(--c) / var(--slope)), 100% 100%, 0 100%);
}
.cut-bl {
  --c: clamp(40px, 6vw, 96px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--c) 100%, 0 calc(100% - var(--c) / var(--slope)));
}
/* the signal band: thin strokes at 34 degrees, one red lead stroke, blue strokes fading out behind it */
.stripes { display: flex; height: var(--sh, 56px); overflow: hidden; gap: calc(var(--sh, 56px) * 0.16); }
.stripes i {
  flex: 0 0 auto;
  width: calc(var(--sh, 56px) * 0.2);
  background: var(--blue);
  opacity: var(--o, 1);
  transform: skewX(-34deg);
  transform-origin: bottom left;
}
.stripes i:first-child { background: var(--red); width: calc(var(--sh, 56px) * 0.42); }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h);
  padding: 0 calc(28px + var(--h) * var(--slope) * .6);
  font: 500 var(--step-body)/1 var(--text);
  text-decoration: none;
  color: #fff; background: var(--red);
  border: 0; cursor: pointer;
  clip-path: polygon(calc(var(--h) * var(--slope) * .5) 0, 100% 0, calc(100% - var(--h) * var(--slope) * .5) 100%, 0 100%);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:hover { background: var(--red-deep); transform: translateX(4px); }
.btn:active { transform: translateX(4px) scale(.98); }
.btn.blue { background: var(--blue); }
.btn.blue:hover { background: var(--blue-deep); }
.btn.ghost { background: var(--tone); color: var(--ink); }
.btn.ghost:hover { background: var(--tone-2); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.link { text-decoration: none; font-weight: 500; position: relative; padding-bottom: 3px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(.25); transform-origin: left; transition: transform .3s var(--ease-out); }
.link:hover::after { transform: scaleX(1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--margin);
  background: var(--ground);
  transition: transform .35s var(--ease-out);
}
.site-header.hide { transform: translateY(-100%); }
.site-header .logo img { height: 40px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-header nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 1rem; position: relative; padding: 6px 0; }
.site-header nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.site-header nav a:not(.btn):hover::after, .site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header .btn { --h: 44px; font-size: 1rem; }
.menu-toggle { display: none; background: var(--tone); border: 0; width: 48px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s var(--ease-out), opacity .2s; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-header nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--ground); padding: 16px var(--margin) 28px;
    transform: translateY(-120%); transition: transform .35s var(--ease-out);
    visibility: hidden;
  }
  .site-header.open nav { transform: none; visibility: visible; }
  .site-header nav a:not(.btn) { font-size: 1.4rem; padding: 10px 0; }
  .site-header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- home hero: printed card beside the room ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 var(--margin) 0;
  min-height: calc(100svh - 64px);
}
.hero > * { min-width: 0; }
.stripes { min-width: 0; max-width: 100%; }
.hero-card {
  background: var(--tone);
  display: flex; flex-direction: column;
  min-height: calc(100svh - 76px);
}
.hero-card .stripes { --sh: 64px; }
.hero-card .body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 5vw, 80px);
}
.hero-card h1 { font-size: clamp(2.4rem, 3.4vw, 4.6rem); max-width: 13em; }
.hero-card .lead { font-size: var(--step-lead); line-height: 1.4; margin-top: 36px; max-width: 34ch; }
.hero-card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 44px; }
.hero-card .foot {
  display: flex; flex-wrap: wrap; gap: 8px 36px;
  padding: 0 clamp(32px, 5vw, 80px) 32px;
  font-size: 1rem;
}
.hero-media { position: sticky; top: 76px; height: calc(100svh - 88px); align-self: start; }
.stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--blue-night); }
.stage video, .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.stage .on { opacity: 1; }
.stage-caption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 18px; background: var(--paper); color: var(--ink);
  font-size: var(--step-small); font-weight: 500;
}
.stage-caption .bars { display: flex; gap: 6px; }
.stage-caption .bars button {
  --h: 14px; width: 30px; height: 14px; border: 0; padding: 0; cursor: pointer;
  background: var(--tone-2);
  clip-path: polygon(calc(var(--h) * var(--slope)) 0, 100% 0, calc(100% - var(--h) * var(--slope)) 100%, 0 100%);
  transition: background-color .3s;
}
.stage-caption .bars button[aria-current="true"] { background: var(--red); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { position: relative; top: 0; height: 52svh; order: -1; }
  .hero-card { min-height: 0; margin-top: -24px; position: relative; z-index: 2; margin-inline: 12px; }
  .hero-card .lead { font-size: 1.15rem; margin-top: 24px; }
  .hero-card .stripes { --sh: 40px; }
  .hero-card h1 { font-size: clamp(1.6rem, 7.2vw, 3.4rem); }
  .hero-card .body { padding: 32px 24px; }
  .hero-card .foot { padding: 0 24px 24px; }
}

/* ---------- stats: stepped tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding-inline: var(--margin); }
.stats .tile { position: relative; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.stats .tile .num { font-size: clamp(56px, 7vw, 128px); line-height: .9; }
.stats .tile p { font-size: var(--step-body); max-width: 30ch; }
.stats .t1 { grid-column: 1 / 7; height: 70vh; min-height: 440px; background: var(--red); color: #fff; }
.stats .t1 .num { font-size: clamp(96px, 13vw, 220px); }
.stats .t2 { grid-column: 7 / 10; margin-top: 14vh; height: 44vh; min-height: 300px; background: var(--blue-night); color: #fff; }
.stats .t3 { grid-column: 10 / 13; margin-top: 26vh; height: 34vh; min-height: 260px; background: var(--blue); color: #fff; }
.stats .t1, .stats .t2, .stats .t3 { --c: 56px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% calc(var(--c) / var(--slope)), 100% 100%, 0 100%); }
.stats .notch { grid-column: 7 / 13; grid-row: 1; align-self: start; font-size: var(--step-head); padding-top: 8px; padding-left: 4px; pointer-events: none; }
.stats .t2, .stats .t3 { grid-row: 1; }
.stats .t1 { grid-row: 1 / span 1; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stats .notch { grid-column: 1 / -1; grid-row: auto; font-size: 2rem; padding: 0 0 12px; }
  .stats .t1 { grid-column: 1 / -1; grid-row: auto; height: auto; min-height: 56vw; }
  .stats .t1 .num { font-size: 26vw; }
  .stats .t2 { grid-column: 1; grid-row: auto; margin-top: 0; height: auto; min-height: 60vw; }
  .stats .t3 { grid-column: 2; grid-row: auto; margin-top: 32px; height: auto; min-height: 60vw; }
  .stats .t2 .num, .stats .t3 .num { font-size: 15vw; }
}

/* ---------- statement with inline frames ---------- */
.statement { padding-inline: var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); }
.statement p {
  grid-column: 2 / 12;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.25rem);
  line-height: 1.3; letter-spacing: -0.015em;
  text-align: center; text-wrap: balance;
}
.statement .frame {
  --h: 0.95em;
  display: inline-block; height: var(--h); width: 1.9em; vertical-align: -0.14em; margin: 0 .12em;
  clip-path: polygon(calc(var(--h) * var(--slope)) 0, 100% 0, calc(100% - var(--h) * var(--slope)) 100%, 0 100%);
  overflow: hidden;
}
.statement .frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .statement p { grid-column: 1 / -1; text-align: left; font-size: 1.5rem; } }

/* ---------- value chain: two-column menu with photo bullets ---------- */
.chain { padding-inline: var(--margin); }
.chain > header { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.chain > header h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.chain > header p { grid-column: 8 / 13; max-width: 44ch; }
.chain .group { margin-top: clamp(64px, 7vw, 96px); }
.chain .group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 36px; }
.chain .group-head h3 { font-size: clamp(1.8rem, 1rem + 2.2vw, 3.1rem); }
.chain .group-head .count { font-size: 1rem; color: var(--muted); white-space: nowrap; }
.chain ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.chain li { display: grid; grid-template-columns: 128px 1fr; gap: 24px; align-items: center; }
.chain li .pic { --h: 88px; width: 128px; height: 88px; overflow: hidden; clip-path: polygon(calc(var(--h) * var(--slope)) 0, 100% 0, calc(100% - var(--h) * var(--slope)) 100%, 0 100%); }
.chain li .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.chain li:hover .pic img { transform: scale(1.12); }
.chain li strong { display: block; font-weight: 500; font-size: 1.3rem; line-height: 1.3; }
.chain li span { display: block; color: var(--muted); font-size: 1.0625rem; max-width: 42ch; margin-top: 6px; }
@media (max-width: 860px) {
  .chain > header { grid-template-columns: 1fr; }
  .chain > header h2, .chain > header p { grid-column: 1; }
  .chain ul { grid-template-columns: 1fr; gap: 28px; }
  .chain li { grid-template-columns: 64px 1fr; }
  .chain li .pic { width: 64px; height: 48px; --h: 48px; }
}

/* ---------- wafer showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; background: var(--blue-night); color: #fff; margin-inline: var(--margin); }
.showcase .plate { display: grid; place-items: center; padding: 40px; position: relative; }
.wafer { width: 100%; max-width: 680px; aspect-ratio: 1; position: relative; }
.wafer svg { width: 100%; height: 100%; overflow: visible; }
.wafer .die { transition: fill .35s, opacity .35s, transform .35s; cursor: pointer; transform-box: fill-box; transform-origin: center; }
.wafer .die:hover, .wafer .die.hot { fill: #fff !important; transform: scale(1.35); }
.wafer .die.dim { opacity: .14; }
.wafer-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--paper); color: var(--ink); padding: 10px 14px; font-size: .95rem; line-height: 1.3; max-width: 260px;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.wafer-tip.show { opacity: 1; transform: none; }
.wafer-tip small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.showcase .side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px, 4vw, 64px); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.tabs button {
  background: none; border: 0; padding: 6px 0; cursor: pointer; font: 400 1.125rem/1.3 var(--text);
  color: inherit; position: relative;
}
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.tabs button[aria-pressed="true"] { font-weight: 500; }
.tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.tabs .key { display: inline-block; width: 14px; height: 10px; margin-right: 8px; vertical-align: 1px; --h: 10px; clip-path: polygon(calc(var(--h) * var(--slope)) 0, 100% 0, calc(100% - var(--h) * var(--slope)) 100%, 0 100%); }
.showcase h2 { font-size: var(--step-head); max-width: 12ch; }
.showcase .side p { max-width: 38ch; margin-top: 28px; color: #D5E2F0; }
.search { display: flex; align-items: center; gap: 0; margin-top: 32px; max-width: 460px; }
.search input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px; border: 0; border-radius: 0;
  font: 400 1.05rem var(--text); background: #fff; color: var(--ink);
}
.search input::placeholder { color: #61758F; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cells a { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 24px; text-decoration: none; font-weight: 500; transition: background-color .25s, padding .25s var(--ease-out); }
.cells a:first-child { background: var(--red); color: #fff; }
.cells a:first-child:hover { background: var(--red-deep); padding-left: 30px; }
.cells a:last-child { background: var(--blue); color: #fff; }
.cells a:last-child:hover { background: var(--blue-deep); padding-left: 30px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; margin-inline: 0; }
  .showcase .plate { padding: 24px 16px 0; }
  .cells { grid-template-columns: 1fr; }
  .cells a { min-height: 60px; }
}

/* ---------- events wall ---------- */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-inline: 8px; }
.wall > * { aspect-ratio: 1; position: relative; display: flex; align-items: center; justify-content: center; text-decoration: none; overflow: hidden; }
.wall .word { flex-direction: column; text-align: center; padding: 18px; }
.wall .word .big { font-family: var(--display); font-weight: 300; font-size: clamp(48px, 7.4vw, 132px); line-height: .9; letter-spacing: -0.04em; }
.wall .word .cap { position: absolute; left: 18px; right: 18px; bottom: 18px; font-size: .95rem; font-weight: 500; line-height: 1.3; }
.wall .word.title { justify-content: flex-start; align-items: flex-start; text-align: left; padding: 28px; }
.wall .word.title h2 { font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem); }
.wall .word.title .cap { text-align: left; font-weight: 400; }
.wall .c-red { background: var(--red); color: #fff; }
.wall .c-blue { background: var(--blue); color: #fff; }
.wall .c-night { background: var(--blue-night); color: #fff; }
.wall .c-tone { background: var(--tone); color: var(--ink); }
.wall .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.wall .photo:hover img { transform: scale(1.06); }
.wall .photo .cap { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); padding: 10px 16px; font-size: .9rem; font-weight: 500; }
.wall a.word { transition: filter .3s; }
.wall a.word:hover { filter: brightness(1.08); }
.wall a.word:hover .big { transform: translateY(-4px); }
.wall .big { transition: transform .4s var(--ease-out); }
@media (max-width: 860px) {
  .wall { grid-template-columns: 1fr 1fr; gap: 6px; padding-inline: 6px; }
  .wall .word .big { font-size: 15vw; }
  .wall .word .cap { font-size: .85rem; left: 12px; right: 12px; bottom: 12px; }
}

/* ---------- news ---------- */
.news { padding-inline: var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.news h2 { grid-column: 1 / 5; font-size: var(--step-head); align-self: start; position: sticky; top: 100px; }
.news ol { grid-column: 6 / 13; list-style: none; margin: 0; padding: 0; }
.news li a {
  display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 26px 0; text-decoration: none;
  background: var(--ground); transition: background-color .25s, padding .3s var(--ease-out);
}
.news li:nth-child(odd) a { background: var(--tone); }
.news li a { padding-inline: 20px; }
.news li a:hover { padding-left: 32px; background: var(--tone-2); }
.news .date { font-family: var(--display); font-size: 1.5rem; font-weight: 300; line-height: 1.1; }
.news .date small { display: block; font-family: var(--text); font-size: .9rem; color: var(--muted); margin-top: 4px; }
.news .h { font-size: 1.15rem; font-weight: 500; line-height: 1.35; }
.news .src { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }
@media (max-width: 860px) {
  .news { grid-template-columns: 1fr; }
  .news h2, .news ol { grid-column: 1; position: static; }
  .news li a { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- closing: the object returns ---------- */
.closing { position: relative; min-height: 90svh; background: var(--tone); overflow: hidden; display: grid; grid-template-columns: repeat(12, 1fr); margin-top: var(--gap-section); }
.closing .object { grid-column: 1 / 9; position: relative; }
.closing .object img { position: absolute; width: 112%; max-width: none; left: -26%; bottom: -30%; mix-blend-mode: multiply; }
.closing .text { grid-column: 9 / 13; align-self: center; padding: 64px var(--margin) 64px 24px; position: relative; }
.closing h2 { font-size: var(--step-head); }
.closing p { margin-top: 20px; max-width: 34ch; }
.closing .fact { font-family: var(--display); font-size: 1.5rem; margin-top: 24px; }
.closing .btn { margin-top: 32px; }
@media (max-width: 860px) {
  .closing { grid-template-columns: 1fr; min-height: 0; }
  .closing .text { grid-column: 1; padding: 64px var(--margin) 0; }
  .closing .object { grid-column: 1; height: 55svh; }
  .closing .object img { width: 130vw; left: -10vw; bottom: -30%; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--blue-night); color: #fff; padding: 0 var(--margin) 28px; }
.mark { display: flex; align-items: flex-end; gap: 0; height: 34svh; min-height: 220px; padding-top: 48px; }
.mark .bar { flex: 1 1 0; height: 100%; --h: 100px; transform: skewX(-34deg); transform-origin: bottom left; }
.mark .word { flex: 0 0 auto; font-family: var(--display); font-weight: 300; font-size: min(26svh, 18vw); line-height: .74; letter-spacing: -0.06em; padding-left: 4vw; color: #fff; }
.mark .b-red { background: var(--red); }
.mark .b-blue { background: var(--blue); }
.mark .b-tone { background: #1F4E7D; }
.footer-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; margin-top: 56px; }
.footer-grid .links { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-grid h3 { font-family: var(--text); font-weight: 500; font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; color: #D5E2F0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid .contact { grid-column: 9 / 13; font-size: .95rem; color: #D5E2F0; display: grid; gap: 16px; align-content: start; }
.footer-grid .contact strong { color: #fff; font-weight: 500; }
.footer-last { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; font-size: .9rem; color: #B7C8DB; flex-wrap: wrap; }
.footer-last .btn { --h: 40px; font-size: .95rem; }
.credits { margin-top: 28px; font-size: .8125rem; color: #9FB4CB; line-height: 1.6; max-width: 120ch; }
.credits a { color: inherit; }
@media (max-width: 860px) {
  .mark { height: 22svh; min-height: 150px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .links { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .footer-grid .contact { grid-column: 1; }
}

/* ---------- inner page hero ---------- */
.page-hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(48px, 7vw, 112px) var(--margin) 0; align-items: end; }
.page-hero h1 { grid-column: 1 / 8; font-size: clamp(3rem, 1rem + 6vw, 7.5rem); line-height: .95; }
.page-hero .lead { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
.page-hero + .stripes { margin: 40px var(--margin) 0; --sh: 28px; }
@media (max-width: 860px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero h1, .page-hero .lead { grid-column: 1; }
}

/* ---------- directory page ---------- */
.dir > *, .feature > *, .tickets > *, .venue > *, .showcase > * { min-width: 0; }
.dir { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; margin: 40px var(--margin) 0; }
.dir .plate { background: var(--blue-night); display: grid; place-items: center; padding: clamp(24px, 3vw, 56px); position: relative; }
.dir .controls { background: var(--tone); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.dir .controls h2 { font-size: clamp(1.8rem, 1rem + 2vw, 3rem); }
.dir .tabs { color: var(--ink); }
.dir .search { margin-top: 0; max-width: none; }
.dir .search input { background: #fff; }
.dir .tally { font-family: var(--display); font-weight: 300; font-size: clamp(3.4rem, 2rem + 4vw, 6rem); line-height: .9; letter-spacing: -0.04em; }
.dir .tally small { display: block; font: 400 1rem/1.4 var(--text); letter-spacing: 0; margin-top: 10px; color: var(--muted); }
.dir .legend { display: grid; gap: 10px; font-size: 1rem; }
.dir .legend div { display: flex; align-items: center; gap: 12px; }
.dir .legend i { --h: 14px; width: 22px; height: 14px; clip-path: polygon(calc(var(--h) * var(--slope)) 0, 100% 0, calc(100% - var(--h) * var(--slope)) 100%, 0 100%); }
.finder-bar { position: sticky; top: 0; z-index: 10; background: var(--ground); margin: 48px var(--margin) 0; padding: 12px 0 10px; transition: top .35s var(--ease-out); }
body:has(.site-header:not(.hide)) .finder-bar { top: 64px; }
.filterbar { display: grid; grid-template-columns: auto 1fr 1.3fr 1.3fr; gap: 8px; align-items: center; background: var(--tone); padding: 10px; }
.filterbar .fb-label { font-weight: 500; padding: 0 14px 0 8px; }
.filterbar .search { margin: 0; max-width: none; }
.filterbar .select select, .filterbar .search input { height: 50px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.az a { min-width: 40px; height: 40px; display: grid; place-items: center; text-decoration: none; font-weight: 500; background: var(--tone); transition: background-color .2s, color .2s; }
.az a:hover { background: var(--red); color: #fff; }
.az a.off { opacity: .35; pointer-events: none; }
.list { margin: 0 var(--margin); columns: 3 320px; column-gap: 48px; }
.list section { break-inside: avoid; padding-top: 40px; }
.list h3 { font-size: 3rem; color: var(--red); margin-bottom: 8px; }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: baseline; gap: 12px; padding: 7px 10px; font-size: 1rem; line-height: 1.35; transition: background-color .2s; cursor: default; }
.list li:hover, .list li.hot { background: var(--tone-2); }
.list li i { flex: 0 0 auto; --h: 10px; width: 16px; height: 10px; clip-path: polygon(calc(var(--h) * var(--slope)) 0, 100% 0, calc(100% - var(--h) * var(--slope)) 100%, 0 100%); }
.list li.out { display: none; }
.list section.out { display: none; }
.empty { margin: 40px var(--margin); font-size: var(--step-lead); display: none; }
@media (max-width: 860px) {
  .dir { grid-template-columns: 1fr; margin-inline: 0; }
  .finder-bar { position: static; margin-inline: 12px; }
  .filterbar { grid-template-columns: 1fr; }
  .filterbar .fb-label { padding: 4px 4px 0; }
  .az { gap: 3px; }
  .az a { min-width: 32px; height: 36px; font-size: .9rem; }
}

/* ---------- events page ---------- */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; margin: 40px var(--margin) 0; }
.feature .media { position: relative; min-height: 70vh; overflow: hidden; }
.feature .media video, .feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .info { background: var(--blue-night); color: #fff; padding: clamp(28px, 3.4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.feature .info h2 { font-size: clamp(2.2rem, 1rem + 2.8vw, 4rem); }
.feature .when { font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 1rem + 1.4vw, 2.4rem); line-height: 1.15; }
.feature .when small { display: block; font: 400 1rem/1.5 var(--text); color: #D5E2F0; margin-top: 10px; }
.feature .info p { color: #D5E2F0; max-width: 40ch; }
.feature .row { display: flex; flex-wrap: wrap; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 var(--margin); }
.filters button { border: 0; background: var(--tone); color: var(--ink); font: 500 1rem var(--text); height: 46px; padding: 0 22px; cursor: pointer; transition: background-color .2s, color .2s; }
.filters button:hover { background: var(--tone-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.year { margin: 0 var(--margin); }
.year h3 { font-size: clamp(3rem, 2rem + 4vw, 6.5rem); color: var(--tone-2); margin: 64px 0 8px; letter-spacing: -0.05em; }
.erow { display: grid; grid-template-columns: 120px 1fr 220px; gap: 28px; align-items: center; padding: 18px 20px; text-decoration: none; transition: background-color .25s, padding .3s var(--ease-out); }
.erow:nth-child(even) { background: var(--tone); }
.erow:hover { background: var(--tone-2); padding-left: 32px; }
.erow .d { font-family: var(--display); font-weight: 300; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; }
.erow .d small { display: block; font: 500 .95rem var(--text); letter-spacing: 0; margin-top: 4px; color: var(--muted); }
.erow strong { display: block; font-weight: 500; font-size: 1.2rem; line-height: 1.3; }
.erow span { display: block; color: var(--muted); font-size: 1rem; margin-top: 4px; }
.erow .kind { display: inline-block; margin-top: 10px; font-size: .9rem; font-weight: 500; color: var(--red); }
.erow .thumb { --h: 124px; height: 124px; overflow: hidden; clip-path: polygon(calc(var(--h) * var(--slope) * .4) 0, 100% 0, calc(100% - var(--h) * var(--slope) * .4) 100%, 0 100%); background: var(--tone-2); }
.erow .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.erow:hover .thumb img { transform: scale(1.06); }
.erow.out { display: none; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; margin-inline: 0; }
  .feature .media { min-height: 52svh; }
  .erow { grid-template-columns: 84px 1fr; gap: 16px; }
  .erow .thumb { display: none; }
  .erow .d { font-size: 1.8rem; }
}

/* ---------- single event ---------- */
.ev-hero { position: relative; min-height: calc(100svh - 64px); margin: 0 var(--margin); overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: var(--blue-night); }
.ev-hero video, .ev-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero .scrim { position: absolute; inset: 0; background: rgba(11, 42, 74, .55); }
.ev-hero .content { position: relative; padding: clamp(28px, 4vw, 64px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; width: 100%; align-items: end; }
.ev-hero h1 { grid-column: 1 / 9; font-size: clamp(2.8rem, 1rem + 5.4vw, 7rem); line-height: .95; }
.ev-hero .when { grid-column: 9 / 13; font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); line-height: 1.15; }
.ev-hero .when small { display: block; font: 400 1.05rem/1.5 var(--text); margin-top: 12px; color: #E4ECF5; }
.ev-hero .when .btn { margin-top: 28px; }
.ev-hero .stripes { position: absolute; top: 0; left: 0; right: 0; --sh: 22px; }
.jump { position: sticky; top: 64px; z-index: 20; display: flex; gap: 4px; overflow-x: auto; margin: 0 var(--margin); background: var(--ground); padding: 10px 0; scrollbar-width: none; }
.jump a { flex: 0 0 auto; padding: 12px 20px; text-decoration: none; font-weight: 500; background: var(--tone); transition: background-color .2s, color .2s; }
.jump a:hover, .jump a.on { background: var(--ink); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 56px var(--margin) 0; }
.facts div { background: var(--tone); padding: 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.facts div:first-child { background: var(--red); color: #fff; }
.facts .num { font-size: clamp(3rem, 2rem + 3vw, 5.4rem); line-height: .9; }
.about-ev { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-inline: var(--margin); }
.about-ev h2 { grid-column: 1 / 6; font-size: var(--step-head); }
.about-ev .copy { grid-column: 7 / 13; display: grid; gap: 20px; }
.about-ev .copy p:first-child { font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); line-height: 1.3; }
.prog { padding-inline: var(--margin); }
.prog > header { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.prog h2 { font-size: var(--step-head); }
.daytabs { display: flex; gap: 8px; }
.daytabs button { border: 0; cursor: pointer; text-align: left; padding: 14px 22px; background: var(--tone); color: var(--ink); font: 500 1rem/1.3 var(--text); transition: background-color .2s, color .2s; }
.daytabs button small { display: block; font-weight: 400; font-size: .9rem; }
.daytabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.day { margin-top: 36px; }
.day[hidden] { display: none; }
.day .theme { font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); line-height: 1.25; max-width: 40ch; margin-bottom: 28px; }
.agenda { width: 100%; border-collapse: collapse; }
.agenda td, .agenda th { padding: 18px 20px; vertical-align: top; text-align: left; }
.agenda thead th { font-weight: 500; font-size: .95rem; background: var(--ink); color: #fff; }
.agenda tbody tr:nth-child(odd) { background: var(--tone); }
.agenda tbody tr { transition: background-color .2s; }
.agenda tbody tr:hover { background: var(--tone-2); }
.agenda .t { font-family: var(--display); font-size: 1.5rem; white-space: nowrap; width: 110px; letter-spacing: -0.02em; }
.agenda .what { font-weight: 500; font-size: 1.1rem; }
.agenda .who { color: var(--muted); font-size: 1rem; margin-top: 4px; }
.agenda tr.brk td { font-style: normal; color: var(--muted); }
.agenda tr.brk .what { font-weight: 400; }
.agenda tr.key .t { color: var(--red); }
@media (max-width: 760px) {
  .agenda thead { display: none; }
  .agenda td { display: block; padding: 4px 16px; }
  .agenda tr { display: block; padding: 14px 0; }
  .agenda .t { font-size: 1.2rem; }
}
.speakers { padding-inline: var(--margin); }
.speakers h2 { font-size: var(--step-head); margin-bottom: 40px; }
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sp { background: var(--tone); padding: 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: background-color .25s, color .25s; }
.sp:hover { background: var(--blue); color: #fff; }
.sp:hover .role { color: #E4ECF5; }
.sp .ini { --h: 64px; width: 96px; height: 64px; display: grid; place-items: center; background: var(--blue-night); color: #fff; font-family: var(--display); font-size: 1.6rem; clip-path: polygon(calc(var(--h) * var(--slope)) 0, 100% 0, calc(100% - var(--h) * var(--slope)) 100%, 0 100%); }
.sp:nth-child(3n+2) .ini { background: var(--red); }
.sp:nth-child(3n) .ini { background: var(--blue); }
.sp strong { display: block; font-weight: 500; font-size: 1.1rem; line-height: 1.3; }
.sp .role { display: block; font-size: .95rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
@media (max-width: 1000px) { .sp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sp-grid { grid-template-columns: 1fr; } .sp { min-height: 0; } }

.tickets { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; margin: 0 var(--margin); }
.tickets .passes { background: var(--tone); padding: clamp(24px, 3vw, 48px); }
.tickets h2 { font-size: var(--step-head); }
.tickets .intro { margin-top: 16px; max-width: 52ch; color: var(--muted); }
.who-toggle { display: inline-flex; margin-top: 28px; background: #fff; padding: 4px; }
.who-toggle button { border: 0; background: none; height: 46px; padding: 0 22px; font: 500 1rem var(--text); cursor: pointer; color: var(--ink); transition: background-color .2s, color .2s; }
.who-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pass-group { margin-top: 32px; }
.pass-group h3 { font-family: var(--text); font-weight: 500; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 10px; }
.pass { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; background: #fff; padding: 16px 18px; margin-top: 6px; }
.pass strong { display: block; font-weight: 500; }
.pass span { display: block; font-size: .95rem; color: var(--muted); }
.pass .price { font-family: var(--display); font-size: 1.5rem; white-space: nowrap; letter-spacing: -0.02em; min-width: 120px; text-align: right; }
.pass .price s { font-size: 1rem; color: var(--muted); margin-right: 6px; }
.qty { display: flex; align-items: center; }
.qty button { width: 44px; height: 44px; border: 0; background: var(--tone); font-size: 1.3rem; cursor: pointer; color: var(--ink); transition: background-color .2s; }
.qty button:hover { background: var(--tone-2); }
.qty output { width: 40px; text-align: center; font-family: var(--display); font-size: 1.3rem; }
.basket { background: var(--blue-night); color: #fff; padding: clamp(24px, 3vw, 48px); position: sticky; top: 140px; align-self: start; }
.basket h3 { font-size: 2rem; }
.basket ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; min-height: 60px; }
.basket li { display: flex; justify-content: space-between; gap: 16px; color: #D5E2F0; }
.basket .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 28px; padding-top: 20px; background: transparent; }
.basket .total .num { font-size: clamp(2.6rem, 2rem + 2vw, 4rem); }
.basket .note { font-size: .95rem; color: #B7C8DB; margin-top: 16px; }
.basket .btn { width: 100%; margin-top: 28px; }
.basket .btn[aria-disabled="true"] { background: #33506F; pointer-events: none; }
@media (max-width: 960px) {
  .tickets { grid-template-columns: 1fr; margin-inline: 0; }
  .basket { position: sticky; bottom: 0; top: auto; z-index: 15; }
  .basket ul, .basket .note { display: none; }
  .basket .total { margin-top: 8px; padding-top: 0; }
  .basket .btn { margin-top: 12px; }
  .pass { grid-template-columns: 1fr auto; }
  .pass .price { grid-column: 1; text-align: left; }
}

.pkgs { padding-inline: var(--margin); }
.pkgs h2 { font-size: var(--step-head); margin-bottom: 40px; }
.pkg-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; align-items: end; }
.pkg { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.pkg h3 { font-size: 2.2rem; }
.pkg .num { font-size: clamp(2.4rem, 1.6rem + 2vw, 3.6rem); line-height: 1; }
.pkg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pkg li { display: flex; gap: 12px; align-items: baseline; }
.pkg li::before { content: ""; flex: 0 0 auto; width: 14px; height: 9px; background: currentColor; clip-path: polygon(6px 0, 100% 0, 8px 100%, 0 100%); }
.pkg.gold { background: var(--red); color: #fff; min-height: 520px; }
.pkg.silver { background: var(--blue); color: #fff; min-height: 420px; }
.pkg.bronze { background: var(--tone); min-height: 360px; }
.pkg .btn { align-self: flex-start; margin-top: auto; }
.pkg.gold .btn, .pkg.silver .btn { background: #fff; color: var(--ink); }
.pkg.gold .btn:hover, .pkg.silver .btn:hover { background: var(--tone); }
@media (max-width: 860px) { .pkg-row { grid-template-columns: 1fr; } .pkg { min-height: 0 !important; } }

.sponsors { padding-inline: var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.sponsors h2 { grid-column: 1 / 5; font-size: var(--step-head); }
.sponsors .tiers { grid-column: 6 / 13; display: grid; gap: 8px; }
.sponsors .tier { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; background: var(--tone); padding: 22px 24px; }
.sponsors .tier b { font-weight: 500; }
.sponsors .tier span { font-family: var(--display); font-size: 1.5rem; }
@media (max-width: 860px) { .sponsors { grid-template-columns: 1fr; } .sponsors h2, .sponsors .tiers { grid-column: 1; } .sponsors .tier { grid-template-columns: 1fr; gap: 4px; } }

.gallery { padding-inline: var(--margin); }
.gallery > header { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gallery h2 { font-size: var(--step-head); max-width: 14ch; }
.gallery > header p { max-width: 40ch; }
.g-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 18vw; gap: 8px; }
.g-grid button { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--tone-2); position: relative; }
.g-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.g-grid button:hover img { transform: scale(1.06); }
.g-grid .w2 { grid-column: span 2; }
.g-grid .w3 { grid-column: span 3; }
.g-grid .w4 { grid-column: span 4; }
.g-grid .h2 { grid-row: span 2; }
.g-grid button span { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); font-size: .9rem; font-weight: 500; padding: 8px 14px; transform: translateY(100%); transition: transform .3s var(--ease-out); }
.g-grid button:hover span, .g-grid button:focus-visible span { transform: none; }
@media (max-width: 860px) {
  .g-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 6px; }
  .g-grid .w2, .g-grid .w3, .g-grid .w4 { grid-column: span 2; }
  .g-grid .h2 { grid-row: span 1; }
}
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 22, 40, .94); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; width: auto; object-fit: contain; animation: lb .45s var(--ease-out); }
.lightbox p { position: absolute; left: 4vw; bottom: 3vh; color: #fff; }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border: 0; background: var(--red); color: #fff; font-size: 1.6rem; cursor: pointer; }
.lightbox .prev, .lightbox .next { top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); }
.lightbox .prev { left: 20px; right: auto; }
.lightbox .next { right: 20px; }
@keyframes lb { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.venue { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 var(--margin); }
.venue .pic { min-height: 70vh; overflow: hidden; position: relative; }
.venue .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue .txt { background: var(--tone); padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.venue h2 { font-size: var(--step-head); }
.venue address { font-style: normal; font-size: var(--step-lead); line-height: 1.4; }
@media (max-width: 860px) { .venue { grid-template-columns: 1fr; margin-inline: 0; } .venue .pic { min-height: 48svh; } }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
.drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }
.stripes i { animation: barIn .9s var(--ease-out) both, pulse 5.5s ease-in-out 1.6s infinite; animation-delay: calc(var(--n, 0) * 30ms), calc(1.6s + var(--n, 0) * 70ms); }
.stripes i:first-child { animation: barIn .9s var(--ease-out) both; }
@keyframes barIn { from { transform: skewX(-34deg) translateY(110%); } to { transform: skewX(-34deg) translateY(0); } }
/* a light wave runs along the strokes, like a signal down a line */
@keyframes pulse { 0%, 20%, 100% { background: var(--blue); } 8% { background: #8FC3EE; } }
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
}

/* ---------- phone rules for the event page and wall titles ---------- */
.ev-hero .content > *, .about-ev > *, .prog > * { min-width: 0; }
@media (max-width: 860px) {
  .ev-hero { margin: 0; min-height: 88svh; }
  .ev-hero .content { grid-template-columns: 1fr; padding: 24px 20px 32px; }
  .ev-hero h1, .ev-hero .when { grid-column: 1; }
  .ev-hero h1 { font-size: 9.4vw; }
  .facts { grid-template-columns: 1fr 1fr; gap: 6px; }
  .facts div { min-height: 140px; padding: 18px; }
  .about-ev { grid-template-columns: 1fr; }
  .about-ev h2, .about-ev .copy { grid-column: 1; }
  .daytabs { width: 100%; }
  .daytabs button { flex: 1; }
  .wall .word.title { padding: 16px; }
  .wall .word.title h2 { font-size: 6.4vw; }
  .tickets .passes { padding: 24px 16px; }
  .pass { gap: 10px 16px; }
}

/* ---------- directory: search + category ---------- */
.finders { display: grid; grid-template-columns: 1fr; gap: 8px; }
.select { position: relative; display: block; }
.select select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 54px; border: 0; border-radius: 0;
  padding: 0 48px 0 18px; font: 400 1.05rem var(--text); color: var(--ink); background: #fff; cursor: pointer;
  text-overflow: ellipsis;
}
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); pointer-events: none;
  transition: transform .3s var(--ease-out);
}
.select:focus-within::after { transform: translateY(4px) rotate(225deg); }
.list li > span small { display: block; font-size: .85rem; color: var(--muted); margin-top: 1px; }
@media (max-width: 560px) { .finders { grid-template-columns: 1fr; } }

/* ---------- smooth scroll + reading bar ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.readbar { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 60; background: var(--red); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- headings: words rise from a mask ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--wi, 0) * 55ms); }
.split.in .w > span { transform: none; }
.no-js .split .w > span { transform: none; }

/* ---------- pictures: slanted wipe ---------- */
.wipe { clip-path: polygon(0 0, 0 0, -40% 100%, -40% 100%); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1) var(--wd, 0ms), transform 1.2s var(--ease-out); }
.wipe.wiped { clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%); }

/* softer, longer entrances */
.rise { transform: translateY(36px); transition-duration: 1.1s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }

/* ---------- member ticker ---------- */
.ticker { overflow: hidden; display: grid; gap: 6px; }
.ticker .row { display: flex; width: max-content; animation: tick 140s linear infinite; }
.ticker .row.rev { animation-direction: reverse; animation-duration: 170s; }
.ticker:hover .row { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: .45em; padding-right: .9em; white-space: nowrap; font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 1rem + 2vw, 3rem); letter-spacing: -0.02em; line-height: 1.25; }
.ticker span::before { content: ""; width: .5em; height: .34em; background: var(--blue); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.ticker span.t-C::before { background: var(--red); }
.ticker span.t-A::before { background: #A9CBEB; }
.ticker .row.rev span { color: var(--muted); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- value chain: the chip's journey ---------- */
.flow { padding-inline: var(--margin); }
.flow > header { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.flow > header h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.flow > header p { grid-column: 8 / 13; max-width: 44ch; }
.flow-track { position: relative; margin-top: clamp(32px, 4vw, 56px); }
.flow-pin { height: min(82vh, 760px); min-height: 560px; display: grid; grid-template-columns: 7fr 5fr; gap: 12px; }
.flow-pin > * { min-width: 0; min-height: 0; }
.flow-media { position: relative; overflow: hidden; background: var(--blue-night); }
.flow-media .layer { position: absolute; inset: 0; clip-path: polygon(0 0, 0 0, -45% 100%, -45% 100%); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
.flow-media .layer.on { clip-path: polygon(0 0, 145% 0, 100% 100%, -45% 100%); }
.flow-media .layer:first-child { clip-path: none; }
.flow-media img, .flow-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2.4s cubic-bezier(.16, 1, .3, 1); }
.flow-media .layer.on img, .flow-media .layer.on video { transform: scale(1); }
.flow-num { position: absolute; left: clamp(16px, 2vw, 32px); bottom: clamp(8px, 1vw, 16px); z-index: 10; color: #fff; font-size: clamp(88px, 13vw, 230px); line-height: .8; text-shadow: 0 2px 40px rgba(11, 42, 74, .35); }
.flow-num.tick { animation: numIn .8s cubic-bezier(.16, 1, .3, 1); }
@keyframes numIn { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
.flow-steps { background: var(--tone); padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; overflow: hidden; }
.flow-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.step-head { display: flex; align-items: baseline; gap: 16px; width: 100%; border: 0; background: none; padding: 10px 0; text-align: left; cursor: pointer; color: #7C8DA3; font: inherit; transition: color .5s; }
.step-head:hover { color: var(--ink); }
.step-head .n { font: 500 .95rem var(--text); color: var(--red); min-width: 1.8em; }
.step-head h3 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.6rem); transition: transform .6s cubic-bezier(.16, 1, .3, 1); transform-origin: left; }
.step.on .step-head { color: var(--ink); }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s cubic-bezier(.16, 1, .3, 1); }
.step-body > div { overflow: hidden; min-height: 0; padding-left: calc(1.8em + 16px); }
.step.on .step-body { grid-template-rows: 1fr; }
.step-body p { max-width: 40ch; color: var(--muted); }
.step-body > div > p:first-child { padding-top: 4px; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { --h: 38px; height: 38px; display: inline-flex; align-items: center; padding: 0 22px; background: #fff; font-weight: 500; font-size: .95rem; clip-path: polygon(calc(var(--h) * var(--slope) * .35) 0, 100% 0, calc(100% - var(--h) * var(--slope) * .35) 100%, 0 100%); }
.step.on .chips li { animation: chipIn .7s cubic-bezier(.16, 1, .3, 1) both; }
.step.on .chips li:nth-child(2) { animation-delay: .08s; }
.step.on .chips li:nth-child(3) { animation-delay: .16s; }
.step.on .chips li:nth-child(4) { animation-delay: .24s; }
@keyframes chipIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.step-body .count { margin-top: 18px; color: var(--ink); padding-bottom: 8px; }
.step-body .count b { font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.4rem); line-height: 1; margin-right: 10px; vertical-align: -0.08em; color: var(--blue); }
.flow-foot { display: grid; gap: 16px; }
.flow-bar { height: 4px; background: var(--tone-2); }
.flow-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.flow-foot .hint { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
  .flow > header { grid-template-columns: 1fr; }
  .flow > header h2, .flow > header p { grid-column: 1; }
  .flow { padding-inline: 0; }
  .flow > header { padding-inline: var(--margin); }
  .flow-pin { height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: 46vw auto; gap: 0; }
  .flow-num { font-size: 72px; }
  .flow-steps { padding: 16px 20px 20px; gap: 12px; }
  .step-head { padding: 6px 0; gap: 12px; }
  .step-head h3 { font-size: 1.3rem; }
  .step-body > div { padding-left: 0; }
  .step-body p { font-size: 1rem; }
  .chips { margin-top: 12px; }
  .chips li { --h: 32px; height: 32px; padding: 0 16px; font-size: .875rem; }
  .step-body .count { margin-top: 10px; }
  .step-body .count b { font-size: 2rem; }
  .flow-foot .link { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .row { animation: none; }
  .split .w > span { transform: none; }
  .wipe { clip-path: none; }
}

/* footer mark: the signal strokes run into the full name */
.mark .mark-strokes { flex: 1 1 auto; height: 100%; --sh: min(34svh, 300px); }
.mark .mark-strokes i { background: var(--blue); }
.mark .mark-strokes i:first-child { background: var(--red); }
.mark .word { padding-left: 2vw; font-size: min(24svh, 16vw); }
@media (max-width: 860px) { .mark .mark-strokes { --sh: 22svh; } .mark .word { font-size: 20vw; } }
.mark .mark-strokes { flex-direction: row-reverse; }

/* ---------- news page ---------- */
.ntop { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; margin: 40px var(--margin) 0; min-height: 64vh; }
.ntop > * { min-width: 0; text-decoration: none; }
.lead-story { grid-row: 1 / 3; position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: var(--blue-night); }
.lead-story .pic { position: absolute; inset: 0; }
.lead-story .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.lead-story:hover .pic img { transform: scale(1.05); }
.lead-story .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 42, 74, .92), rgba(11, 42, 74, .1) 60%); }
.lead-story .txt { position: relative; padding: clamp(24px, 3vw, 48px); display: grid; gap: 14px; }
.lead-story strong { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 1rem + 2.6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; }
.side-story { padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: #fff; transition: padding .3s var(--ease-out), filter .3s; }
.side-story:hover { padding-left: calc(clamp(22px, 2.4vw, 36px) + 8px); filter: brightness(1.08); }
.side-story.c-red { background: var(--red); }
.side-story.c-night { background: var(--blue); }
.side-story strong { font-family: var(--display); font-weight: 300; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); line-height: 1.15; }
.ntop .k { font-weight: 500; font-size: .95rem; }
.ntop .when { font-size: .95rem; opacity: .85; }
.nbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 56px var(--margin) 0; }
.nbar .filters { margin: 0; }
.nbar .filters small { font-size: .85rem; opacity: .7; margin-left: 4px; }
.nbar .search { margin: 0; flex: 0 1 380px; }
.nbar .search input { background: var(--tone); }
.nlist { margin: 0 var(--margin); }
.nmonth { display: grid; grid-template-columns: 3fr 9fr; gap: 24px; padding-top: 56px; }
.nmonth .mh { font-size: clamp(2rem, 1rem + 2.4vw, 3.6rem); line-height: 1; align-self: start; position: sticky; top: 90px; }
.nmonth .mh span { display: block; }
.nmonth ol { list-style: none; margin: 0; padding: 0; }
.nrow a { display: grid; grid-template-columns: 64px 1fr 32px; gap: 20px; align-items: center; padding: 18px 20px; text-decoration: none; transition: background-color .25s, padding .3s var(--ease-out); }
.nrow:nth-child(odd) a { background: var(--tone); }
.nrow a:hover { background: var(--tone-2); padding-left: 30px; }
.nrow .d { font-size: 2.2rem; line-height: 1; }
.nrow .h { display: block; font-weight: 500; font-size: 1.1rem; line-height: 1.35; }
.nrow .meta { display: block; margin-top: 6px; font-size: .95rem; color: var(--muted); }
.k { font-weight: 500; margin-right: 10px; }
.nrow .k-news { color: var(--blue); }
.nrow .k-act { color: var(--red); }
.nrow .k-rel { color: var(--ink); }
.nrow .go { font-size: 1.3rem; color: var(--red); transition: transform .3s var(--ease-out); }
.nrow a:hover .go { transform: translate(3px, -3px); }
.nrow.out, .nmonth.out { display: none; }
.home-news-more { grid-column: 6 / 13; margin-top: 24px; }
@media (max-width: 860px) {
  .ntop { grid-template-columns: 1fr; grid-template-rows: auto; margin-inline: 0; }
  .lead-story { grid-row: auto; min-height: 60svh; }
  .nmonth { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; }
  .nmonth .mh { position: static; }
  .nmonth .mh span { display: inline; }
  .nrow a { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 12px; }
  .nrow .go { display: none; }
  .nrow .d { font-size: 1.7rem; }
  .nbar .search { flex-basis: 100%; }
  .home-news-more { grid-column: 1; }
}
.mark .mark-strokes { padding-right: calc(var(--sh) * .6745); margin-right: 1vw; }
@media (max-width: 860px) { .flow-steps { min-height: 470px; } }
