:root {
  --black: #000;
  --white: #fff;
  --blue: #0000ff;
  --mint: #cbf2d9;
  --yellow: #fdfd03;
  --magenta: #ff00ff;
  --lime: #c5d306; /* accent text colour (was magenta) */
  --red: #ff0000;
  --pink: #ffcccc;
  --radius: 1.875rem;
  --gutter: 1.5rem;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }

/* ---------- Typography ---------- */
.h3 { font-size: 2.5rem; letter-spacing: -0.1rem; line-height: 1.1; }
.h4 { font-size: 1.75rem; letter-spacing: -0.06rem; line-height: 1; }
.paragraph { font-size: 1rem; line-height: 1.6; letter-spacing: -0.01rem; }
.txt-h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.05em; line-height: 1; }
.txt-big { font-size: clamp(2rem, 2.8vw, 2.75rem); letter-spacing: -0.04em; line-height: 1; }

.link-block {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s;
}
.link-block:hover { color: var(--yellow); }

.section { padding: 0 var(--gutter); }

/* ---------- Navbar: one dark pill at the top left (logo · Menu · Başvur) ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  justify-content: flex-start;
  padding: 0.85rem 0 0 0.85rem;
  pointer-events: none;
}
.navpill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  pointer-events: auto;
  transition: opacity 0.3s, visibility 0.3s;
}
body:has(.menu.open) .navpill { opacity: 0; visibility: hidden; }
/* logo.svg has a lot of empty space above and below the wordmark; the negative margins trim it */
.navpill__brand { display: block; padding: 0 0.4rem 0 0.75rem; }
.navpill__brand img { height: 3.45rem; width: auto; margin: -1.1rem 0; }
.navpill__menu,
.navpill__cta {
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  background: #3a3a3a;
  transition: background 0.2s, color 0.2s;
}
.navpill__menu:hover,
.navpill__cta:hover { background: var(--white); color: var(--black); }
.navpill__burger { display: none; }

/* ---------- Menu (inset panel) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(36rem, 100%);
  height: 100%;
  overflow: auto;
  padding: 5.5rem clamp(1.75rem, 3vw, 3rem) 0;
  background: #f4f1ec;
  color: var(--black);
  border-radius: 1rem;
  transform: translateX(-2rem);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu.open .menu__panel { transform: none; }
.menu__close {
  position: absolute;
  top: 1.6rem;
  right: clamp(1.75rem, 3vw, 3rem);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.menu__close:hover { text-decoration: underline; }
.menu__body { flex: 1; display: flex; flex-direction: column; gap: 2.75rem; }
.menu__links { display: flex; flex-direction: column; }
.menu__link {
  align-self: flex-start;
  font-size: clamp(2.25rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  transition: color 0.2s;
}
.menu__link:hover { color: var(--blue); }
.menu__subs { display: flex; flex-direction: column; gap: 0.6rem; }
.menu__sub { align-self: flex-start; font-size: 1rem; transition: color 0.2s; }
.menu__sub:hover { color: var(--blue); }
.menu__link[aria-current="page"], .menu__sub[aria-current="page"] { color: var(--blue); }
.menu__link[aria-current="page"]::after { content: " ●"; font-size: 0.35em; vertical-align: middle; }
/* site colours as a strip along the bottom of the panel */
.menu__stripe { display: flex; height: 0.6rem; margin: 2.5rem calc(-1 * clamp(1.75rem, 3vw, 3rem)) 0; }
.menu__stripe i { flex: 1; }
.menu__stripe i:nth-child(1) { background: var(--blue); }
.menu__stripe i:nth-child(2) { background: var(--yellow); }
.menu__stripe i:nth-child(3) { background: var(--mint); }
.menu__stripe i:nth-child(4) { background: var(--pink); }
.menu__stripe i:nth-child(5) { background: var(--magenta); }

/* ---------- Hero ---------- */
.hero {
  --panel-w: clamp(26rem, 28.5vw, 34rem);
  --hero-pad: clamp(1.5rem, 3.5vw, 4.5rem);
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 var(--hero-pad) 0 calc(var(--panel-w) + var(--hero-pad));
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  /* daylight footage: darken overall + extra on the right where the title sits */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45)),
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.75));
}

/* Right-aligned event block */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 4rem;
  /* soft shadow so the text separates from the video */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hero__meta {
  font-size: clamp(1.1rem, 1.6vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
/* home hero: date & place as a pill (subpage heroes keep the plain line) */
.hero__inner .hero__meta {
  /* same language as the site's labels (news cards): flat yellow, black text */
  padding: 0.4rem 0.9rem 0.3rem;
  border-radius: 2rem;
  background: var(--yellow);
  color: var(--black);
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: none;
}
.hero__title {
  margin: 0.3em 0 0.5em;
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}
/* Countdown to the event (driven by script.js) */
.countdown {
  display: flex;
  gap: clamp(1rem, 2vw, 2.25rem);
  margin-bottom: clamp(1.75rem, 2.5vw, 2.5rem);
}
.countdown[hidden] { display: none; }
.countdown__unit { display: flex; flex-direction: column; align-items: flex-end; min-width: 3ch; }
.countdown__unit span {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit small {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero__cta {
  min-width: clamp(14rem, 17vw, 20rem);
  padding: 1.1rem 2.5rem;
  background: var(--white);
  color: var(--black);
  border-radius: 0.6rem;
  font-size: clamp(1.05rem, 1.1vw, 1.25rem);
  font-weight: 500;
  text-align: center;
  text-shadow: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.hero__cta:hover { background: var(--yellow); transform: translateY(-2px); }
.hero__cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; }
.hero__cta-icon { width: 1.25em; height: 1.25em; flex: none; }

/* Blue panel on the left, slides in on load (proportions follow the reference at 1920px) */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: var(--panel-w);
  padding: clamp(8rem, 10.4vw, 12.5rem) clamp(1.5rem, 1.9vw, 2.25rem) clamp(2.5rem, 3.3vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: var(--radius);
  animation: panel-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes panel-in { from { transform: translateX(-100%); } }
.pill.hero__host { display: inline-block; max-width: 100%; margin-bottom: 1.25rem; padding: 0.45rem 0.85rem 0.4rem; font-size: 0.74rem; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__overlay .h3 {
  font-size: clamp(2rem, 2.1vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: clamp(4rem, 5.8vw, 7rem);
}
.hero__overlay .paragraph {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: clamp(3rem, 4.4vw, 5.25rem);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.4rem 0.4rem 0.4rem 1.9rem;
  background: var(--black);
  border: 1px solid transparent;
  border-radius: 4rem;
  font-size: 1.125rem;
  white-space: nowrap;
  transition: all 0.2s;
}
.play-btn:hover { background: transparent; border-color: var(--white); }
.play-btn__icon svg { width: 2.3rem; height: 2.3rem; display: block; }
/* MediRalli 2026 story: the panel's main call to action */
.hero__past {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.6rem;
  padding: 0.45rem 0.5rem 0.45rem 1.6rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s;
}
.hero__past-arrow {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--lime);
  transition: transform 0.25s;
}
.hero__past-arrow svg { width: 1.2rem; height: 1.2rem; }
.hero__past:hover { background: var(--white); transform: translateY(-2px); }
.hero__past:hover .hero__past-arrow { transform: translateX(3px); }

/* ---------- Mint card ---------- */
.s-card { position: relative; z-index: 2; padding-top: 3rem; }
.card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: start;
  gap: 3rem;
  max-width: 1700px;
  margin: 0 auto;
  padding: clamp(2.5rem, 3.5vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.5rem) clamp(3rem, 4vw, 4.5rem);
  background: var(--mint);
  color: var(--black);
  border-radius: var(--radius);
}
.card__title {
  max-width: 38rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.card__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.card__col .paragraph { font-size: 1rem; }

/* Photo background variant (home page summary card) */
.card--photo { position: relative; overflow: hidden; background: #1a1a1a; color: var(--white); }
.card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; } /* 20%: keeps both rescuers' heads in IMG_4971 inside the frame */
.card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  /* darker on the left where the long text sits, so it stays readable on any photo */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.45));
}
.card--photo > :not(.card__bg, .slot-label) { position: relative; z-index: 1; }
.card--photo .stat__label { opacity: 0.75; }
.card__bg.card__bg--clouds { object-position: 50% 47%; } /* program CTA: cloud band of the illustration */
.card__stats { gap: 2.25rem; }
.card__link { display: block; transition: color 0.2s; }
.card__link:hover { color: var(--lime); }
.stat__label { font-size: 1rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.9rem 0.7rem;
  border-radius: 3rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02rem;
  transition: all 0.2s;
}
.btn--black { background: var(--black); color: var(--white); border: 1px solid var(--black); }
.btn--black:hover { background: transparent; color: var(--black); }
.btn--outline, .btn--newsletter { color: var(--white); border: 1px solid var(--white); }
.btn--outline:hover, .btn--newsletter:hover { background: var(--white); color: var(--black); }

/* ---------- Latest ---------- */
.s-latest { padding-top: clamp(7rem, 11vw, 12rem); }
.title-row {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 4rem;
}
.title-row .link-block { padding-bottom: 0.4rem; }
.s-latest .title-row { padding-left: clamp(0rem, 8vw, 11rem); }

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.grid-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.grid-item:hover { border-color: transparent; }
.shadow-yellow:hover { box-shadow: 7px -7px var(--yellow); }
.shadow-red:hover { box-shadow: 7px -7px var(--red); }

.grid-item__head { display: flex; justify-content: space-between; align-items: center; }
.labels { display: flex; gap: 0.75rem; }
.label {
  padding: 0.35rem 0.9rem 0.2rem;
  border: 1px solid var(--black);
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: var(--black);
}
.bg-yellow { background: var(--yellow); }
.bg-red { background: var(--red); color: #600; }
.label--outline { color: var(--white); border-color: var(--white); }

.arrow-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
  transition: transform 0.25s;
}
.grid-item:hover .arrow-btn,
.project:hover .arrow-btn { transform: rotate(-45deg); }

.grid-item__body { display: flex; flex-direction: column; gap: 2rem; flex: 1; }
.grid-item__img { height: 15rem; border-radius: 1rem; overflow: hidden; }
.grid-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.grid-item:hover .grid-item__img img { transform: scale(1.06); }
.grid-item__title { font-size: 1.9rem; letter-spacing: -0.08rem; line-height: 1; }
.grid-item__date { font-size: 1.1rem; font-weight: 500; text-transform: uppercase; }

.grid-cta {
  grid-column: 2 / span 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-left: 0;
}

/* ---------- Marquee ---------- */
.s-marquee { padding: 12rem 0 20rem; }
.marquee { width: 100%; overflow: hidden; height: 9vw; position: relative; }
.marquee__txt {
  position: absolute;
  white-space: nowrap;
  font-size: 8vw;
  line-height: 1;
  letter-spacing: -0.5vw;
  color: var(--lime);
  will-change: transform;
  animation: marquee 14s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ---------- Selected projects ---------- */
.s-selected {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(5rem, 7vw, 7rem);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
/* the photo takes the old transparent -> pink fade's place: invisible at the top, fully shown at the bottom */
.s-selected__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* hidden at the very top, fades in from just under the heading; fully shown near the bottom */
  -webkit-mask-image: linear-gradient(transparent 18%, #000 75%);
  mask-image: linear-gradient(transparent 18%, #000 75%);
  /* muted so the colourful station cards stay in front */
  filter: grayscale(1) brightness(0.6) contrast(1.1);
}
.selected__intro { max-width: 46rem; margin: -2rem 0 3rem; opacity: 0.85; }
.projects-swiper { overflow: visible; }
.project {
  position: relative;
  height: 23rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--yellow);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.swiper-slide-active .project { opacity: 1; }
.project__img { position: absolute; inset: 0; }
.project__img::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project:hover .project__img img { transform: scale(1.05); }
/* per-slide crop: zoom into the lower part of the photo */
.project__img--zoom-bottom img { object-position: 50% 100%; transform: scale(1.4); transform-origin: 50% 100%; }
.project:hover .project__img--zoom-bottom img { transform: scale(1.46); }
/* per-slide crop: show the lower-middle band of a tall photo */
.project__img--low img { object-position: 50% 74%; }
.project .arrow-btn { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2; }
.project__title {
  position: relative;
  z-index: 2;
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Shared section head ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 5rem;
  text-align: center;
}
.section-head__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-align: center;
}
.txt-dim { color: var(--lime); }
.pill {
  padding: 0.5rem 1rem 0.4rem;
  border: 1px solid var(--white);
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
}

.bg-mint { background: var(--mint); }
.bg-pink { background: var(--pink); }
.bg-magenta { background: var(--magenta); }

/* Scroll reveal (activated by script.js) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- About ---------- */
.s-about { padding-top: clamp(7rem, 11vw, 12rem); }
.about {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
.about__img {
  position: sticky;
  top: 8rem;
  height: 38rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__head { margin-bottom: 2.5rem; }
.about__text { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 3rem;
}
.stat {
  padding: 2rem 1.9rem 2.25rem;
  border-radius: var(--radius);
  color: var(--black);
}
.stat__num { font-size: 3rem; font-weight: 500; letter-spacing: -0.15rem; line-height: 1; margin-bottom: 1.25rem; }
.stat__label { font-size: 1rem; }

/* ---------- Apply ---------- */
.s-apply { padding-top: clamp(7rem, 12vw, 14rem); }
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1620px;
  margin: 0 auto;
}
.apply-card {
  position: relative;
  height: clamp(24rem, 36vw, 32rem);
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
}
.apply-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.apply-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.85));
}
.apply-card:hover .apply-card__img { transform: scale(1.05); }
/* photos fade slightly toward the black page background */
.apply-card { background: var(--black); }
.apply-card__img { opacity: 0.8; }
/* mirrored photo (keeps the hover zoom) */
.apply-card__img--flip { transform: scaleX(-1); }
.apply-card:hover .apply-card__img--flip { transform: scale(-1.05, 1.05); }
.apply-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 3rem);
}
.apply-card__title { font-size: clamp(1.75rem, 2.3vw, 2.25rem); letter-spacing: -0.05em; line-height: 1; }
.apply-card__text { font-size: 1rem; line-height: 1.45; max-width: 34rem; margin-bottom: 1.25rem; } /* keep both card texts about the same length so titles and buttons stay level */
.btn--white { background: var(--white); color: var(--black); border: 1px solid var(--white); }
.btn--white:hover { background: var(--yellow); border-color: var(--yellow); }

/* ---------- FAQ ---------- */
.s-faq { padding-top: clamp(7rem, 12vw, 14rem); }
.faq { max-width: 60rem; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.faq__item { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.faq__q {
  position: relative;
  display: block;
  padding: 1.75rem 3.5rem 1.75rem 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--yellow); }
.faq__q::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 2.1rem;
  height: 2.1rem;
  margin-top: -1.05rem;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat;
  transition: transform 0.25s, background-color 0.2s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); background-color: var(--yellow); }
.faq__a { max-width: 46rem; padding-bottom: 2rem; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.faq__a p + p { margin-top: 0.75rem; }
.faq__a a { text-decoration: underline; }
.faq__a a:hover { color: var(--yellow); }

/* ---------- Sponsors ---------- */
.s-sponsors { padding-top: clamp(6rem, 9vw, 10rem); padding-bottom: 2rem; }
.s-sponsors .section-head__title { margin-bottom: clamp(3rem, 5vw, 5rem); }
.sponsors { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.sponsors__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3.5rem; }
.sponsor {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.05rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.sponsor:hover { color: var(--white); }
.sponsor-logos {
  /* logo wall: equal cells, hairlines only between cells (outer edge stays open) */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  max-width: 1240px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 9.5rem;
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sponsor-logo:nth-child(6n) { border-right: 0; }
.sponsor-logo:nth-last-child(-n+6) { border-bottom: 0; }
.sponsor-logo img { width: auto; max-width: 100%; height: 4.75rem; object-fit: contain; transition: transform 0.25s; }
.sponsor-logo:hover img { transform: translateY(-3px) scale(1.04); }
/* wordmarks are visually heavier per pixel of height than round seals */
.sponsor-logo--wide img { height: 2.3rem; }
.sponsor-logo--mark img { height: 3.75rem; }
.sponsor-logo--tile img { height: 4.25rem; border-radius: 0.6rem; }
.sponsor-logo--invert img { filter: brightness(0) invert(1); }
.sponsor b { font-size: 1.9rem; font-weight: 400; }
.sponsor--caps { letter-spacing: 0.02rem; }
.sponsor--wide { letter-spacing: 0.3rem; font-style: italic; }
.sponsor--italic { font-style: italic; font-weight: 500; }
.sponsor--mark { font-size: 2.6rem; letter-spacing: -0.4rem; }

/* ---------- Partners + Footer ---------- */
.footer-section { padding: clamp(7rem, 11vw, 12rem) var(--gutter) clamp(3rem, 5vw, 6rem); }
.logo-row { display: flex; align-items: center; gap: 8rem; }
.logo-row__txt { max-width: 30rem; font-weight: 500; }
/* home page: organizer logos only, centred above the footer */
.footer-section--logos { padding-top: clamp(5rem, 8vw, 8rem); }
.host-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 4rem); margin: 0; padding: 0; list-style: none; }
.host-logos img { display: block; width: auto; height: clamp(4.5rem, 6vw, 6.5rem); }
.host-logos--hero { justify-content: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.host-logos--hero img { height: 3.4rem; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25)); }
.s-next + .footer-section--logos { padding-top: clamp(1rem, 2vw, 2rem); }
.footer-section--logos .logo-row { justify-content: center; }
.footer-section--logos .logo-list { justify-content: center; }
.logo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  align-items: center;
}
.logo-ph {
  display: flex;
  flex-direction: column;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}
.logo-ph small { font-size: 0.65rem; margin-top: 0.3rem; }
.logo-ph--blocky { font-size: 2.6rem; font-weight: 700; letter-spacing: 0.1rem; }
.logo-ph--thin { font-weight: 400; letter-spacing: 0.1rem; }
.logo-ph--bold { font-size: 3.6rem; font-weight: 700; letter-spacing: -0.2rem; }

.footer { padding: 4rem var(--gutter) 3.5rem; }
.footer__cols { display: flex; gap: 5rem; }
.footer__brand { display: flex; flex-direction: column; gap: 1.5rem; padding-right: 3.5rem; border-right: 1px dotted rgba(255, 255, 255, 0.5); }
.footer__logo { width: 13rem; height: auto; }
.footer__credit { display: block; width: 6rem; opacity: 0.6; transition: opacity 0.2s; }
.footer__credit:hover { opacity: 1; }
.footer__col { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.footer__col--divided { margin-left: -1.5rem; min-width: 18rem; }
.footer__links { display: flex; flex-direction: column; }
.footer__link {
  font-size: 1.9rem;
  letter-spacing: -0.06rem;
  line-height: 1.2;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer__link:hover { opacity: 1; }
.footer__small { font-size: 1rem; opacity: 0.5; }
.btn--newsletter { align-self: flex-start; opacity: 0.6; }
.btn--newsletter:hover { opacity: 1; }

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.9);
}
.video-modal[hidden] { display: none; }
.video-modal__close { position: absolute; top: 1.5rem; right: var(--gutter); font-size: 1.5rem; }
.video-modal__frame {
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #111;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.video-modal__frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- Accessibility widget ---------- */


@media (prefers-reduced-motion: reduce) {
  .marquee__txt { animation-play-state: paused; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Edition page (mediralli-2025.html) ---------- */
.ed-hero { padding-top: clamp(8rem, 11vw, 12rem); }
.ed-hero__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--gutter);
}
.ed-hero__title {
  margin: 0.15em 0 0.35em;
  font-size: clamp(4rem, 10vw, 12rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.ed-hero__lead { max-width: 40rem; opacity: 0.85; }
.ed-hero__cover { margin-top: clamp(2.5rem, 4vw, 4rem); padding: 0 var(--gutter); }
.ed-hero__cover img {
  width: 100%;
  height: clamp(22rem, 50vw, 46rem);
  object-fit: cover;
  border-radius: var(--radius);
}

/* Photo variant: the cover sits behind the title (full-bleed, like the home hero) */
.ed-hero--photo {
  position: relative;
  isolation: isolate;
  min-height: clamp(34rem, 88svh, 60rem);
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.ed-hero--photo .ed-hero__cover { position: absolute; inset: 0; z-index: -1; margin: 0; padding: 0; }
.ed-hero--photo .ed-hero__cover img { width: 100%; height: 100%; border-radius: 0; }
.ed-hero--photo .ed-hero__cover img.ed-hero__img--low { object-position: 50% 100%; } /* show the lower part of the cover photo */
.ed-hero--photo .ed-hero__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 65%),
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.8));
}
.ed-hero--photo .ed-hero__head { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.ed-hero--photo .ed-hero__title { margin-bottom: 0.25em; }
.ed-hero--photo .ed-hero__lead { opacity: 1; }
.ed-hero--photo .ed-hero__cover > .slot-label { top: 6rem; }

.s-recap { padding-top: clamp(6rem, 9vw, 10rem); }
.recap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6rem);
  max-width: 1500px;
  margin: 0 auto;
}
.recap__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.recap__title { text-align: left; }
.recap__text .paragraph { max-width: 38rem; color: rgba(255, 255, 255, 0.85); }
.recap__stats { margin-top: 0; }

.s-highlights { padding-top: clamp(7rem, 11vw, 12rem); }
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, clamp(16rem, 22vw, 24rem));
  gap: 2rem;
}
.highlight { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.highlight--big { grid-row: span 2; }
.highlight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.highlight:hover img { transform: scale(1.05); }
.highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.75));
}
.highlight__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}
.highlight__title { font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.04em; line-height: 1.05; }

.s-gallery { padding-top: clamp(7rem, 11vw, 12rem); }
.gallery__head { justify-content: space-between; flex-wrap: wrap; }
.gallery__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gallery__filter {
  padding: 0.6rem 1.2rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  transition: all 0.2s;
}
.gallery__filter:hover { border-color: var(--yellow); color: var(--yellow); }
.gallery__filter[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--black); }
.gallery { columns: 4 16rem; column-gap: 1.25rem; }
.gallery__item {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
}
.gallery__item[hidden] { display: none; }
.gallery__item img { width: 100%; height: auto; transition: transform 0.5s, opacity 0.3s; }
.gallery__item:hover img { transform: scale(1.04); }

.s-next { padding-bottom: clamp(5rem, 8vw, 8rem); }
.s-faq + .s-next { padding-top: clamp(6rem, 9vw, 10rem); }
.s-people + .s-next { padding-top: clamp(6rem, 9vw, 10rem); }
/* Home page order: about -> stations */
.s-about + .s-selected { padding-top: clamp(7rem, 11vw, 12rem); }
.s-st { scroll-margin-top: 2rem; }
.s-gallery + .s-marquee { padding: clamp(5rem, 8vw, 8rem) 0 clamp(4rem, 6vw, 6rem); }

/* Day by day timeline */
.s-days { padding-top: clamp(7rem, 11vw, 12rem); }
.days { display: flex; flex-direction: column; gap: clamp(4rem, 6vw, 7rem); max-width: 1500px; }
.day {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.day__head {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.day__title { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -0.05em; line-height: 1; }
.day__intro { max-width: 30rem; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.timeline__item {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.timeline__time { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.timeline__title { margin: 0 0 0.6rem; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; }
.timeline__text { font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }

/* Stations recap */
.s-st { padding-top: clamp(7rem, 11vw, 12rem); }
.st__intro { max-width: 40rem; opacity: 0.85; }
.st-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1620px;
  margin: 0 auto;
}
.st-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.st-card:hover { border-color: transparent; }
.st-card__num { font-size: 3rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--lime); margin-bottom: 1rem; }
.st-card__title { font-size: 1.75rem; letter-spacing: -0.05em; line-height: 1.05; }
.st-card__text { flex: 1; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.st-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.st-card__meta span {
  padding: 0.35rem 0.8rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Results */
.s-results { padding-top: clamp(7rem, 11vw, 12rem); }
.results-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
.results__head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.results__title { text-align: left; }
.results__intro { max-width: 32rem; color: rgba(255, 255, 255, 0.8); }
.results__photo { position: relative; width: 100%; margin: 1rem 0 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.results__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.results__photo:hover img { transform: scale(1.04); }
.results__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.7)); }
.results__photo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.results { display: flex; flex-direction: column; gap: 0.75rem; }
.result {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}
.result--first { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.result__rank { font-size: 3rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.result__team { display: flex; flex-direction: column; gap: 0.25rem; }
.result__team strong { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.result__team span { font-size: 1rem; opacity: 0.7; }
.result__score { font-size: 1.75rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
.award {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: 1.5rem;
  color: var(--black);
}
.award__label { font-size: 1rem; }
.award strong { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }

/* Voices */
.s-voices { padding-top: clamp(7rem, 11vw, 12rem); }
.voice-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 0 auto;
  max-width: 1620px;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--blue);
  border-radius: var(--radius);
}
.voice-main__quote { margin: 0; max-width: 60rem; font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -0.04em; line-height: 1.1; }
.voice-main__by, .voice__by { display: flex; flex-direction: column; gap: 0.25rem; }
.voice-main__by strong, .voice__by strong { font-size: 1.1rem; font-weight: 500; }
.voice-main__by span, .voice__by span { font-size: 1rem; opacity: 0.7; }
.voices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1620px;
  margin: 2rem auto 0;
}
.voice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  margin: 0;
  padding: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}
.voice__quote { margin: 0; font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1.35; }

/* ---------- Application page (basvuru.html) ---------- */
.ap-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.s-keys { padding-top: clamp(4rem, 6vw, 6rem); }
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.key {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.75rem 1.9rem 2rem;
  border-radius: var(--radius);
  color: var(--black);
}
.key__label { font-size: 1rem; }
.key__value { font-size: clamp(1.75rem, 2.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }

.s-steps { padding-top: clamp(7rem, 11vw, 12rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1620px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.s-form { padding-top: clamp(7rem, 11vw, 12rem); scroll-margin-top: 2rem; }
.ap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
.ap__side { position: sticky; top: 8rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.ap__title { text-align: left; }
.ap__text { max-width: 30rem; color: rgba(255, 255, 255, 0.8); }
.ap__reqs { width: 100%; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.ap__reqs-title { margin: 0 0 1rem; font-size: 1.5rem; letter-spacing: -0.04em; }
.ap__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.ap__list li { position: relative; padding-left: 1.5rem; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
.ap__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--yellow); }
.ap__contact { font-size: 1rem; color: rgba(255, 255, 255, 0.7); }
.ap__contact a, .check a { color: var(--white); text-decoration: underline; }
.ap__contact a:hover, .check a:hover { color: var(--yellow); }
.ap__mail { word-break: break-word; }

.ap__main {
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
}
.ap__closed { margin: 0 0 1.75rem; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--lime); color: var(--black); line-height: 1.5; }
.ap__closed a { text-decoration: underline; }
.form[data-closed] .form__group, .form[data-closed] .form__foot { opacity: 0.45; }
.tabs { display: flex; gap: 0.5rem; padding: 0.35rem; margin-bottom: 2.5rem; background: rgba(255, 255, 255, 0.08); border-radius: 3rem; }
.tab {
  flex: 1;
  padding: 0.85rem 1rem 0.75rem;
  border-radius: 3rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { background: var(--white); color: var(--black); }

.form[hidden] { display: none; }
.form__group { margin: 0 0 2.5rem; padding: 0; border: 0; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.form__legend { margin-bottom: 1.25rem; padding: 0; font-size: 1.5rem; letter-spacing: -0.04em; line-height: 1.1; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field__label { font-size: 1rem; font-weight: 500; }
.field__input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.field__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.field__input:hover { border-color: rgba(255, 255, 255, 0.6); }
.field__input:focus { outline: none; border-color: var(--yellow); background: rgba(255, 255, 255, 0.1); }
.field__input--area { resize: vertical; min-height: 7rem; }
select.field__input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
}
select.field__input option { color: var(--black); }

.choice { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice__item { position: relative; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.choice__item span {
  display: inline-block;
  padding: 0.8rem 1.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
}
.choice__item:hover span { border-color: var(--white); }
.choice__item input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.choice__item input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); cursor: pointer; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--yellow); }

.was-validated .field__input:invalid { border-color: var(--red); }
.was-validated .choice:has(input:invalid) .choice__item span { border-color: var(--red); }
.was-validated .check input:invalid + span { color: #ff8080; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__submit:disabled { opacity: 0.6; cursor: wait; }
.form__status { font-size: 1rem; }
.form__status[data-state="error"] { color: #ff8080; }
.form__status[data-state="success"] { color: var(--mint); }

/* Caution tape (placeholder notice): a scrolling yellow/black strip */
.tape {
  position: relative;
  z-index: 3;
  margin: clamp(3rem, 5vw, 5rem) -1rem calc(-1 * clamp(1rem, 2vw, 2rem));
  padding: 0.85rem 0 0.75rem;
  overflow: hidden;
  background: var(--yellow);
  color: var(--black);
  transform: rotate(-1.5deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.45rem;
  background: repeating-linear-gradient(-45deg, var(--black) 0 0.7rem, transparent 0.7rem 1.4rem);
}
.tape::before { top: 0; }
.tape::after { bottom: 0; }
.tape__track { display: flex; width: max-content; animation: tape 28s linear infinite; }
.tape__track span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape__track span::after { content: "●"; font-size: 0.55em; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape__track { animation: none; } }
.tape + .section { padding-top: clamp(4rem, 6vw, 6rem); }
/* Paramedic tape variants: swap the modifier class on .tape (program.html) */
/* Ambulance rear chevrons: red/white reflective stripes (backup option) */
.tape--chevron { padding: 1.2rem 0 1.1rem; background: var(--white); color: #d7182a; }
.tape--chevron::before, .tape--chevron::after {
  height: 0.65rem;
  background: repeating-linear-gradient(-45deg, #d7182a 0 0.8rem, var(--white) 0.8rem 1.6rem);
}
.tape--chevron::after { background: repeating-linear-gradient(45deg, #d7182a 0 0.8rem, var(--white) 0.8rem 1.6rem); }
.tape--chevron .tape__track span::after { content: "✱"; font-size: 0.85em; }
/* ECG paper: pink grid with a heartbeat trace between phrases (in use) */
.tape--ekg {
  padding: 1.1rem 0 1rem;
  background-color: #ffe4e8;
  background-image:
    linear-gradient(rgba(214, 0, 50, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 0, 50, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(214, 0, 50, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 0, 50, 0.12) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem, 2.5rem 2.5rem, 0.5rem 0.5rem, 0.5rem 0.5rem;
  color: var(--black);
}
.tape--ekg::before, .tape--ekg::after { display: none; }
.tape--ekg .tape__track span::after {
  content: "";
  width: 6rem;
  height: 1.6em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 24'%3E%3Cpath d='M0 12h30l4-5 4 5h6l3 10 5-21 4 16 3-5h33' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Draft content: blurred until final (remove .is-draft from the section) */
.is-draft .timeline,
.is-draft .person { filter: blur(7px); opacity: 0.7; user-select: none; pointer-events: none; }
.s-days + .tape { margin-top: clamp(5rem, 8vw, 8rem); }

/* ---------- Shared page bits ---------- */
.ed-hero__title--sm { font-size: clamp(3rem, 7vw, 7rem); }
.ed-hero__lead .inline-link { text-decoration: underline; }
.ed-hero__lead .inline-link:hover { color: var(--yellow); }
.s-next--gap { padding-top: clamp(6rem, 9vw, 10rem); }
.s-days--first { padding-top: clamp(5rem, 8vw, 8rem); }
.recap__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.recap__img img { width: 100%; height: 100%; object-fit: cover; }
.recap__img--low img { object-position: 50% 78%; } /* tall photo: frame its lower part */
.people__intro { max-width: 46rem; margin: -2rem 0 3rem; opacity: 0.85; }
.st-card__tag { align-self: flex-start; margin-bottom: 1rem; }
.sponsors .btn { margin-top: 1rem; }

.chip {
  display: inline-block;
  padding: 0.6rem 1.2rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--yellow); color: var(--yellow); }

/* People (committee, speakers) */
.s-people { padding-top: clamp(7rem, 11vw, 12rem); scroll-margin-top: 2rem; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 2rem; }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.person__img { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; }
.person__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.person:hover .person__img img { transform: scale(1.04); }
.person .label { margin-bottom: 0.5rem; }
.person__name { font-size: 1.5rem; letter-spacing: -0.04em; line-height: 1.1; }
.person__role { font-size: 1rem; opacity: 0.7; }
.person__session { margin-top: 0.35rem; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
/* Speakers as a carousel */
.people-swiper { overflow: visible; }
.s-people--carousel { overflow: hidden; }
.people-swiper .person { height: auto; }
.people-swiper__nav { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 2rem; }
.people-swiper__btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: background-color 0.2s, opacity 0.2s;
}
.people-swiper__btn:hover { background-color: var(--yellow); }
.people-swiper__btn--prev { transform: rotate(180deg); }
.people-swiper__btn.swiper-button-disabled { opacity: 0.3; cursor: default; background-color: var(--white); }

/* Document pages (rules, legal) */
.s-doc { padding-top: clamp(5rem, 8vw, 8rem); }
.doc {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}
.doc__toc { position: sticky; top: 8rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.doc__toc-title { margin-bottom: 1rem; font-size: 1rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.6; }
.doc__toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.doc__toc a { font-size: 1rem; color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.doc__toc a:hover { color: var(--yellow); }
.doc__note { margin-bottom: 3rem; padding: 1.25rem 1.5rem; border-radius: 1.25rem; background: var(--yellow); color: var(--black); font-size: 1rem; line-height: 1.5; }

.prose { max-width: 46rem; font-size: 1rem; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.prose > section { scroll-margin-top: 7rem; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.prose > section:last-child { margin-bottom: 0; border-bottom: 0; }
.prose h2 { margin: 0 0 1.25rem; font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; color: var(--white); }
.prose h3 { margin: 1.75rem 0 0.75rem; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.2; color: var(--white); }
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li::marker { color: var(--yellow); }
.prose a { color: var(--white); text-decoration: underline; }
.prose a:hover { color: var(--yellow); }
.prose strong { color: var(--white); font-weight: 500; }
.prose blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 3px solid var(--magenta); font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.03em; color: var(--white); }
.prose figure { margin: 2rem 0; }
.prose figure img { width: 100%; border-radius: 1.25rem; }
.prose figcaption { margin-top: 0.75rem; font-size: 1rem; opacity: 0.7; }

.score { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.score__row { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 3.5rem; align-items: center; gap: 1rem; }
.score__name { color: var(--white); }
.score__bar { height: 0.75rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.score__bar i { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.score__val { text-align: right; font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; }

/* News list + article */
.s-news { padding-top: clamp(4rem, 6vw, 6rem); }
.grid-item[hidden] { display: none; }
.s-related { padding-top: clamp(6rem, 9vw, 10rem); }
.article { padding: clamp(8rem, 11vw, 12rem) var(--gutter) 0; }
.article__head { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.article__back { margin-bottom: 1rem; }
.article__title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.05em; line-height: 1.05; }
.article__meta { font-size: 1rem; opacity: 0.7; }
.article__cover { max-width: 1300px; margin: clamp(2.5rem, 4vw, 4rem) auto; }
.article__cover img { width: 100%; height: clamp(18rem, 45vw, 40rem); object-fit: cover; border-radius: var(--radius); }
.article__cover figcaption { margin-top: 0.75rem; font-size: 1rem; opacity: 0.7; }
.article__body { margin: 0 auto; }
.article__body h2 { margin-top: 2.5rem; }
.share {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.share__label { margin-right: 0.75rem; font-size: 1rem; opacity: 0.7; }

/* Sponsorship tiers */
.s-tiers { padding-top: clamp(7rem, 11vw, 12rem); }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; max-width: 1620px; margin: 0 auto; }
.tier {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}
.tier--featured { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.tier__name { font-size: 1.75rem; letter-spacing: -0.05em; line-height: 1.05; }
.tier__desc { font-size: 1rem; line-height: 1.6; opacity: 0.8; }
.tier__price { align-self: stretch; padding: 0.9rem 0; border-top: 1px solid rgba(128, 128, 128, 0.45); border-bottom: 1px solid rgba(128, 128, 128, 0.45); font-size: 1rem; font-weight: 500; }
.tier__list { flex: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.tier__list li { position: relative; padding-left: 1.6rem; font-size: 1rem; line-height: 1.45; }
.tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Venue, stays */
.s-venue { padding-top: clamp(5rem, 8vw, 8rem); }
.venue {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  max-width: 1500px;
  margin: 0 auto;
  align-items: center;
}
.venue__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.venue__text .paragraph { max-width: 34rem; color: rgba(255, 255, 255, 0.8); }
.venue__map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #111; }
.venue__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }

.s-stays { padding-top: clamp(7rem, 11vw, 12rem); }
.stays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.stay { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; }
.stay:hover { border-color: transparent; }
.stay__img { height: 15rem; overflow: hidden; }
.stay__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.stay:hover .stay__img img { transform: scale(1.05); }
.stay__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.75rem; }
.stay__name { font-size: 1.75rem; letter-spacing: -0.05em; line-height: 1.05; }
.stay__dist { font-size: 1rem; font-weight: 500; color: var(--yellow); }
.stay__text { flex: 1; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.stay .btn { margin-top: 0.75rem; }

/* 404 */
.err {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 9rem var(--gutter) 5rem;
}
.err__code { font-size: clamp(6rem, 18vw, 16rem); line-height: 0.85; letter-spacing: -0.06em; color: var(--lime); }
.err__title { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.05em; line-height: 1.05; }
.err__text { max-width: 34rem; color: rgba(255, 255, 255, 0.8); }
.err .ap-hero__actions { margin-top: 0.75rem; }
.err__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

/* Slot mode (?yuvalar) — labels, drag & drop previews, placement list */
.slot-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  max-width: calc(100% - 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.55rem 0.75rem 0.65rem;
  border-radius: 0.6rem;
  background: var(--yellow);
  color: var(--black);
  font-size: 1rem;
  line-height: 1.2;
  text-align: left;
  word-break: break-all;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.slot-label b { font-weight: 500; }
.slot-label small { font-size: 0.8rem; opacity: 0.75; }
.slot-label--filled { background: var(--mint); }
.slot-label--tried { background: var(--pink); }
.slot-label__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.slot-label__actions button,
.slot-banner__actions button {
  padding: 0.35rem 0.7rem 0.3rem;
  border-radius: 2rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
}
.slot-label__actions button:hover,
.slot-banner__actions button:hover { background: var(--blue); }
.slot-banner__actions button:disabled { opacity: 0.4; cursor: default; background: var(--black); }
.ed-hero__cover > .slot-label { left: calc(var(--gutter) + 0.75rem); }
.slot-drop { outline: 4px dashed var(--magenta); outline-offset: -4px; }
.slot-drop > img { opacity: 0.5; }

.slot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-radius: 1rem;
  background: var(--yellow);
  color: var(--black);
  font-size: 1rem;
}
.slot-gallery strong { grid-column: 1 / -1; font-weight: 500; }
.slot-gallery__cat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1rem;
  border: 2px dashed rgba(0, 0, 0, 0.35);
  border-radius: 0.8rem;
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  transition: background 0.2s;
}
.slot-gallery__cat:hover { background: rgba(0, 0, 0, 0.08); }
.slot-gallery__cat small { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; font-weight: 400; opacity: 0.7; word-break: break-all; }
.slot-gallery__cat em { font-size: 0.85rem; font-style: normal; color: var(--magenta); }
.gallery__item--preview { outline: 3px solid var(--pink); outline-offset: -3px; }

.slot-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: min(28rem, calc(100% - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.slot-banner strong { font-size: 1.1rem; font-weight: 700; }
.slot-banner__list {
  max-height: 9rem;
  overflow: auto;
  margin: 0;
  padding: 0.5rem 0.75rem 0.5rem 1.75rem;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.06);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
.slot-banner__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
@media (max-width: 767px) {
  .slot-banner { left: 0.75rem; right: 0.75rem; width: auto; font-size: 0.8rem; }
  .slot-gallery { grid-template-columns: 1fr; }
}

.slot-label__status { color: #b00020; opacity: 1 !important; font-weight: 500; }
.slot-tray {
  position: fixed;
  top: 6rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 70;
  width: 15rem;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.slot-tray__head { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem 1rem 0.75rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.slot-tray__head strong { font-size: 1.1rem; font-weight: 700; }
.slot-tray__head span { font-size: 0.8rem; opacity: 0.6; }
.slot-tray__grid { flex: 1; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.75rem; align-content: start; }
.slot-tray__item { position: relative; margin: 0; border-radius: 0.5rem; overflow: hidden; background: #eee; cursor: grab; }
.slot-tray__item:active { cursor: grabbing; }
.slot-tray__item img { width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; }
.slot-tray__item figcaption { padding: 0.25rem 0.35rem; font-size: 0.65rem; line-height: 1.2; word-break: break-all; }
.slot-tray__item.is-used::after {
  content: "✓";
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}
.slot-tray__empty { padding: 1rem; font-size: 0.85rem; line-height: 1.45; }
body.slot-mode { padding-left: 17rem; }
@media (max-width: 991px) {
  .slot-tray { top: auto; bottom: 0.75rem; left: 0.75rem; right: 0.75rem; width: auto; height: 9.5rem; }
  .slot-tray__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 5.5rem; }
  .slot-banner { bottom: 11rem; }
  body.slot-mode { padding-left: 0; padding-bottom: 11rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 4.5rem 5.5rem;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox__close { position: absolute; top: 1.5rem; right: var(--gutter); font-size: 1.5rem; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100svh - 12rem); width: auto; height: auto; border-radius: 1rem; }
.lightbox__cap { margin-top: 1rem; font-size: 1rem; text-align: center; opacity: 0.8; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  margin-top: -1.6rem;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
  transition: background-color 0.2s;
}
.lightbox__nav:hover { background-color: var(--yellow); }
.lightbox__nav--prev { left: var(--gutter); transform: rotate(180deg); }
.lightbox__nav--next { right: var(--gutter); }

/* ---------- Responsive ---------- */

/* Laptop / small desktop */
@media (max-width: 1200px) {
  .card { grid-template-columns: 1fr 1fr; }
  .card__title { grid-column: 1 / -1; max-width: none; }

  .latest-grid { grid-template-columns: 1fr 1fr; }
  .grid-cta { grid-column: 1 / -1; }

  .about { grid-template-columns: 1fr 1fr; }
  .about__content { grid-column: 1 / -1; grid-row: 1; max-width: 50rem; margin: 0 auto; }
  .about__img { position: relative; top: 0; height: 30rem; }

  .logo-row { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .footer-section--logos .logo-row { align-items: center; }

  .recap { grid-template-columns: 1fr; }
  .results-wrap { grid-template-columns: 1fr; }
  .keys, .steps { grid-template-columns: 1fr 1fr; }
  .ap { grid-template-columns: 1fr; }
  .ap__side { position: static; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiers { grid-template-columns: 1fr 1fr; }
  .stays { grid-template-columns: 1fr 1fr; }
  .st-grid { grid-template-columns: 1fr 1fr; }

  .footer__cols { display: grid; grid-template-columns: auto 1fr 1fr; gap: 3rem; }
  .footer__col:last-child { grid-column: 2 / -1; }
}

/* Tablet: blue panel stacks above the event block */
@media (max-width: 991px) {
  .hero { flex-direction: column; align-items: stretch; height: auto; min-height: 0; padding: 0; }
  .hero__overlay { position: relative; width: 100%; padding: 8rem var(--gutter) 3rem; }
  .hero__overlay .h3 { margin-bottom: 2rem; }
  .hero__overlay .paragraph { max-width: 40rem; margin-bottom: 2.5rem; }
  .hero__inner { min-height: 60svh; justify-content: center; padding: 4rem var(--gutter) 4.5rem; }
  .hero__title { font-size: clamp(2.75rem, 8vw, 5rem); }

  .card { grid-template-columns: 1fr; }
  .card__col .paragraph { max-width: 40rem; }
  .card__stats { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 1.5rem 3rem; }

  .apply-grid { grid-template-columns: 1fr; }

  .highlights { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 20rem; }
  .highlight--big { grid-row: auto; }

  .day { grid-template-columns: 1fr; }
  .day__head { position: static; }
  .voices { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
  .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static; }
  .venue { grid-template-columns: 1fr; }

  .s-marquee { padding: 4rem 0 10rem; }
  .marquee { height: 12vw; }
  .marquee__txt { font-size: 10vw; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-row: span 2; }
  .footer__col--divided { margin-left: 0; }
  .footer__col:last-child { grid-column: auto; }
}

/* Phone */
@media (max-width: 767px) {
  /* phone: smaller logo so Menu · logo · Başvur fit on one line */
  /* phone: full-width top bar, logo left and a hamburger on the right; Başvur lives in the menu */
  .navbar { padding: 0; }
  .navpill {
    width: 100%;
    justify-content: space-between;
    padding: 0.55rem 0.5rem 0.55rem var(--gutter);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    box-shadow: none;
    background: rgba(12, 12, 12, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .navpill__brand { padding: 0; }
  .navpill__brand img { height: 3.3rem; margin: -1rem 0; }
  .navpill__cta { display: none; }
  .navpill__menu { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; background: none; }
  .navpill__menu:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
  .navpill__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .navpill__burger { display: grid; gap: 5px; width: 1.5rem; }
  .navpill__burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
  .menu { padding: 0.5rem; }
  .menu__panel { height: auto; max-height: 100%; padding-top: 4.75rem; transform: translateY(-1rem); } /* phone: as tall as its links */
  .menu__body { flex: none; gap: 2rem; }
  .menu__stripe { margin-top: 2rem; }
  .menu__close { top: 1.4rem; }

  .hero__overlay { padding-top: 6rem; }
  .hero__overlay .h3 { font-size: 1.9rem; }
  /* phone: the blue panel shows only its heading */
  .hero__overlay .h3 { margin-bottom: 0; }
  .hero__overlay .paragraph { display: none; }
  .hero__overlay .cta-row { margin-top: 1.5rem; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .hero__inner { min-height: 55svh; }
  .hero__title { font-size: 10.5vw; }
  .hero__cta { min-width: 0; width: 100%; max-width: 20rem; }
  .countdown__unit small { font-size: 0.7rem; }

  .s-sponsors .section-head__title br { display: none; }
  .s-sponsors .section-head__title { max-width: 20rem; margin-left: auto; margin-right: auto; }
  .sponsors { gap: 1.75rem; }
  .sponsors__row { gap: 1.25rem 2rem; }
  .sponsor { font-size: 1.25rem; }
  .sponsor b { font-size: 1.35rem; }
  .sponsor--mark { font-size: 1.8rem; }
  .sponsor-logos { grid-template-columns: repeat(2, 1fr); }
  .sponsor-logo { height: 6.5rem; padding: 1rem; }
  .sponsor-logo:nth-child(6n) { border-right: 1px solid rgba(255, 255, 255, 0.12); }
  .sponsor-logo:nth-child(2n) { border-right: 0; }
  .sponsor-logo:nth-last-child(-n+6) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .sponsor-logo:nth-last-child(-n+2) { border-bottom: 0; }
  .sponsor-logo img { height: 3.4rem; }
  .sponsor-logo--wide img { height: 1.6rem; }
  .sponsor-logo--mark img { height: 2.75rem; }
  .sponsor-logo--tile img { height: 3rem; }

  .card { grid-template-columns: 1fr; gap: 2.5rem; }
  .card__stats { flex-direction: column; }

  .section-head { margin-bottom: 3rem; gap: 1.25rem; }
  .title-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 2rem; }

  .about__img { height: 16rem; border-radius: 1.25rem; }
  .stats { margin-top: 2rem; }
  .stat { padding: 1.5rem 1.25rem; border-radius: 1.25rem; }
  .stat__num { font-size: 2.5rem; margin-bottom: 0.75rem; }

  .latest-grid {
    grid-template-columns: repeat(4, 82%);
    overflow-x: auto;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .grid-item { padding: 1.5rem; scroll-snap-align: start; }
  .grid-item:hover { box-shadow: none; border-color: var(--white); }
  .grid-item__img { height: 12rem; }
  .grid-item__title { font-size: 1.5rem; }
  .grid-cta { grid-column: 1; grid-row: 2; }
  .label { font-size: 0.95rem; }
  /* news card head: labels may wrap, the arrow keeps its size */
  .grid-item__head { gap: 0.75rem; align-items: flex-start; }
  .labels { flex-wrap: wrap; gap: 0.5rem; }
  .arrow-btn { flex: none; }
  .grid-cta .h4 br { display: none; }
  .s-latest .title-row { padding-left: 0; }

  .s-marquee { padding: 2rem 0 7rem; }
  .marquee { height: 26vw; }
  .marquee__txt { font-size: 25vw; }

  .project { height: 18rem; }

  .ed-hero__cover img { height: 18rem; border-radius: 1.25rem; }
  .ed-hero--photo .ed-hero__cover img { height: 100%; border-radius: 0; }
  .ed-hero--photo { min-height: 36rem; border-radius: 0 0 1.25rem 1.25rem; }
  .highlights { gap: 1rem; grid-auto-rows: 16rem; }
  .highlight { border-radius: 1.25rem; }
  .gallery { columns: 2; column-gap: 0.75rem; }
  .gallery__item { margin-bottom: 0.75rem; border-radius: 0.9rem; }
  .lightbox { padding: 4rem var(--gutter) 6rem; }
  .lightbox__nav { top: auto; bottom: 1.5rem; margin-top: 0; }

  .timeline__item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.25rem 0; }
  .timeline__time { font-size: 1.1rem; }
  .timeline__title { font-size: 1.3rem; }
  .st-grid { grid-template-columns: 1fr; gap: 1rem; }
  .st-card { padding: 1.5rem; border-radius: 1.25rem; }
  .st-card:hover { box-shadow: none; border-color: var(--white); }
  .st-card__num { font-size: 2.25rem; margin-bottom: 0.25rem; }
  .st-card__title { font-size: 1.5rem; }
  .result { grid-template-columns: 2.5rem minmax(0, 1fr) auto; padding: 1rem 1.25rem; gap: 0.75rem; border-radius: 1.25rem; }
  .result__rank { font-size: 2.25rem; }
  .result__team strong { font-size: 1.2rem; }
  .result__score { font-size: 1.3rem; }
  .awards { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .key { gap: 1.5rem; padding: 1.25rem; border-radius: 1.25rem; }
  .key__value { font-size: 1.35rem; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .ap__main { padding: 1.25rem; border-radius: 1.25rem; }
  .tabs { margin-bottom: 1.75rem; }
  .tab { padding: 0.75rem 0.5rem 0.65rem; font-size: 0.95rem; }
  .form__grid { grid-template-columns: 1fr; }
  .form__submit { width: 100%; text-align: center; }
  .people { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .person__img { border-radius: 1.25rem; }
  .person__name { font-size: 1.2rem; }
  .people__intro { margin-top: 0; margin-bottom: 2rem; }
  .tiers { grid-template-columns: 1fr; }
  .tier { padding: 1.5rem; border-radius: 1.25rem; }
  .stays { grid-template-columns: 1fr; gap: 1rem; }
  .stay { border-radius: 1.25rem; }
  .stay:hover { box-shadow: none; border-color: var(--white); }
  .stay__img { height: 12rem; }
  .stay__body { padding: 1.5rem; }
  .score__row { grid-template-columns: 1fr auto; gap: 0.5rem 1rem; }
  .score__bar { grid-column: 1 / -1; grid-row: 2; }
  .article__cover img { height: 16rem; border-radius: 1.25rem; }
  .venue__map { border-radius: 1.25rem; }
  .latest-grid--list { grid-template-columns: 1fr; overflow: visible; margin-right: 0; padding-right: 0; }
  .results__photo { border-radius: 1.25rem; }
  .results__photo-cap { font-size: 1.2rem; }
  .voice-main { gap: 1.75rem; border-radius: 1.25rem; }
  .voice { padding: 1.5rem; border-radius: 1.25rem; }
  .voice__quote { font-size: 1.1rem; }

  .logo-list { gap: 1.5rem 2rem; }
  .logo-ph--blocky { font-size: 2rem; }
  .logo-ph--bold { font-size: 2.75rem; }

  .footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 1.5rem; }
  .footer__col--divided { min-width: 0; }
  .footer__brand { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; border-right: 0; padding-right: 0; }
  .footer__brand { justify-content: space-between; }
  .footer__logo { width: 9rem; }
  .footer__credit { width: 4.5rem; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__link { font-size: 1.25rem; }

}


/* Tablet: sponsor wall in 4 columns (3 rows of 4) */
@media (min-width: 768px) and (max-width: 1100px) {
  .sponsor-logos { grid-template-columns: repeat(4, 1fr); }
  .sponsor-logo:nth-child(6n) { border-right: 1px solid rgba(255, 255, 255, 0.12); }
  .sponsor-logo:nth-child(4n) { border-right: 0; }
  .sponsor-logo:nth-last-child(-n+6) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .sponsor-logo:nth-last-child(-n+4) { border-bottom: 0; }
}
