/* Layout: title lockup pins at the top of the screen while a staggered,
   edge-cropped gallery of 4:5 tiles scrolls up over it. */
:root {
  --bg: #282828;        /* mockup background */
  --bg-end: #000000;    /* gradient ends in black */
  --ink: #ffffff;
  --accent: #0c99fd;    /* divider blue */
  --tile: #7a7a7a;      /* image placeholder grey */
  --muted: #9a9a9a;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --line: rgba(255, 255, 255, 0.22);
  --gutter: clamp(16px, 2.3vw, 32px);
  --cta-ink: #282828;   /* text on the header button; flips to white when the page turns white */

  --tile-w: 28.08vw;    /* 5 columns, outer two cropped by the screen edge (20% larger than the original 23.4vw) */
  --gap: 10px;          /* desktop gap between images */
  --gallery-top: 42.6svh; /* where the first tiles sit on load */
}

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

html { -webkit-text-size-adjust: 100%; }
a { color: inherit; }

body {
  margin: 0;
  background: var(--bg-end);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ---------- Header (from Colour Discovery Days) ---------- */
/* Fixed to the top while scrolling; no background, so the white logo, button and menu sit over the page */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  color: var(--ink);
  background: transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head .wrap,
.menu .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  border-bottom: 1px solid var(--line);
}
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: block; color: inherit; line-height: 0; }
.logo-type { display: block; height: 15px; width: auto; }
/* Header CTA: white box, dark caps (from the mockup) */
.head-actions { display: flex; align-items: center; gap: 32px; }
.cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--cta-ink);
  font: 400 15px/1 var(--font);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.cta:hover { background: #e6e6e6; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 480px) {
  .head-actions { flex: none; gap: 14px; }
  .cta { height: 32px; padding: 0 11px; font-size: 11.5px; }
  /* keep the icon, hide the word, so logo + button + menu fit a phone */
  .site-head .menu-btn { font-size: 0; gap: 0; }
  /* the logo shrinks to whatever space is left, always keeping a gap before the button */
  .site-head .brand { flex: 0 1 168px; min-width: 0; margin-right: 14px; }
  .site-head .logo-type { width: 100%; height: auto; }
}
/* Narrow phones (under 375px): button reads just "SUBMIT" so the logo keeps its size */
@media (max-width: 374px) {
  .cta__more { display: none; }
}

.menu-btn {
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  font: 700 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.menu-btn i { display: block; width: 26px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.menu-btn i.x { height: 0; border-bottom: 0; }
.menu-btn:focus-visible, .menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg); color: #fff;
  display: flex; flex-direction: column; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu nav { margin: auto 0; display: flex; flex-direction: column; gap: 6px; }
.menu nav a {
  font-size: clamp(30px, 5vw, 64px); font-weight: 800; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; opacity: .9;
}
.menu nav a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu .foot { border-top: 1px solid var(--line); padding: 24px 0 32px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 480px) { .logo-type { height: 11px; } }

/* ---------- Opening ---------- */
.intro {
  position: relative;
  overflow-x: clip; /* cropped outer columns never cause sideways scroll */
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%); /* charcoal fading to black */
}

.intro__title {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 17.4svh 16px 0;
  z-index: 0;
}

.intro__lockup {
  display: flex;
  align-items: center;
  gap: 0;
  will-change: opacity, transform;
}

.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 6.2vw;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.logo__line { display: block; }

.intro__rule {
  align-self: stretch;
  width: 3px;
  margin: -0.9vw 4.6vw -2.2vw 2.9vw; /* line runs past the text, as in the mockup */
  background: var(--ink); /* white divider */
  flex: none;
}

.intro__tagline {
  margin: 0;
  max-width: 12.8em;
  font-size: 4.35vw; /* sized so "THE GLOBAL COMPETITION" keeps the lockup its original width */
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--gallery-top) - 100svh);
  display: flex;
  justify-content: center; /* overflow splits evenly off both edges */
  align-items: flex-start;
  gap: var(--gap);
  padding-bottom: 12vh;
}

.gallery__col {
  flex: none;
  width: var(--tile-w);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
/* Staggered starts, after the mockup */
.gallery__col:nth-child(1) { margin-top: 10.2vw; }
.gallery__col:nth-child(3) { margin-top: 9.9vw; }
.gallery__col:nth-child(5) { margin-top: 3.6vw; } /* staggers halved for a tighter, less offset grid */

.tile {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background: var(--tile);
  overflow: hidden;
}
/* Placeholder numbers (only on empty tiles, so they disappear once an image goes in) */
.tile:empty {
  display: grid;
  place-items: center;
}
.tile:empty::after {
  content: attr(data-tile);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}
/* Outer columns are cropped by the screen edge: keep their numbers on the visible side */
@media (min-width: 768px) {
  .gallery__col:first-child .tile:empty { justify-items: end; padding-right: 2vw; }
  .gallery__col:last-child .tile:empty { justify-items: start; padding-left: 2vw; }
}
.tile img,
.tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root {
    --gap: 8px;          /* 30% tighter than the original 12px */
    --gallery-top: 52svh;
  }

  .intro__title { padding-top: 16svh; }

  .intro__lockup {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo { font-size: 17vw; }
  .intro__rule {
    align-self: flex-start;
    width: 56px;
    height: 3px;
    margin: 22px 0 18px;
  }
  .intro__tagline { font-size: 7.1vw; }

  /* Two staggered columns: tiles 1,3,5,7,9 left; 2,4,6,8,10 right */
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gap);
    row-gap: var(--gap);
    padding: 0 16px calc(28vw + 12vh);
  }
  .gallery__col { display: contents; }
  .gallery__col:nth-child(n) { margin-top: 0; }
  .gallery__col .tile:nth-child(2) { transform: translateY(28vw); }
}

/* ---------- Quote (after the gallery) ---------- */
/* Text stays on screen while part 1 lights up word by word; part 2 then fades in all at once */
.quote {
  position: relative;
  z-index: 2;
  height: 240vh; /* extra length at the end for the dissolve to white */
  margin-top: -17vh; /* starts the quote a little closer to the images */
  background: transparent; /* the page behind is the same colour, and the overlap never covers the images */
}
.quote__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center; /* rises from below the images, then holds in the middle of the screen as they scroll away */
  padding: 0 var(--gutter);
}
.quote__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.4vw;
}
.quote__text { margin: 0; }
.quote__text p {
  margin: 0;
  max-width: 21em;
  font-size: clamp(30px, 4vw, 64px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.quote__word { display: inline; opacity: 1; }
/* Attribution: caps at about a third of the quote's size */
.quote__cite {
  margin-top: clamp(14px, 1.6vw, 26px);
  font-size: clamp(12px, 1.34vw, 21px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quote__body {
  margin: clamp(32px, 4.8vw, 72px) 0 0;
  max-width: 50em;
  font-size: clamp(16px, 1.8vw, 26px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
/* Part 2 waits hidden (only when the animation runs), then appears in one go */
.motion .quote__body,
.motion .quote__cite {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.motion .quote.is-done .quote__body,
.motion .quote.is-done .quote__cite { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .quote { height: 230vh; margin-top: -10vh; }
  .quote__inner { padding: 0; }
  .quote__text p { font-size: 8.4vw; line-height: 1.16; }
  .quote__body { font-size: 16px; line-height: 1.45; }
  .quote__cite { font-size: 2.8vw; }
}

/* ---------- Explore: cards that scroll sideways (after brandonyasin.com) ---------- */
/* Without the animation the row simply scrolls sideways by itself */
.cases {
  position: relative;
  z-index: 2;
  background: var(--bg-end);
  color: var(--ink);
  margin-top: -22vh; /* tucks up under the empty end of the quote section, so the cards follow the quote closely */
  --hover: #4597f7;           /* title underline on hover, from the mockup */
  /* 70% larger than the first version (22.7vw), capped so a 4:5 card always fits under the header */
  --card-w: min(38.6vw, calc((100svh - 164px) * 0.8));
  --card-gap: 1.45vw;
  --card-pad: 2.6vw;
}
.cases__stage {
  padding: 140px 0 12vh;
}
.cases__track {
  display: flex;
  gap: var(--card-gap);
  padding: 0 var(--card-pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.cases__track::-webkit-scrollbar { display: none; }
/* With the animation: the stage pins and the row is moved by the page scroll */
.motion .cases__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 124px 0 0; /* header + 40px */
}
.motion .cases__track { overflow: visible; width: max-content; will-change: transform; }

.case-card {
  position: relative;
  flex: none;
  width: var(--card-w);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.case-card__media {
  position: absolute;
  inset: 0;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.case-card:hover .case-card__media { transform: scale(1.04); }
/* fade at the bottom so the white copy stays readable over any image */
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.case-card__text {
  position: absolute;
  left: 6.8%;
  right: 6.8%;
  bottom: 7%;
  z-index: 1;
  display: block;
}
.case-card__title {
  display: block;
  margin-bottom: .5em;
  font-size: clamp(16px, 2.63vw, 40px); /* 25% smaller than before */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.case-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; } /* keyboard focus only */
.case-card__more { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.case-card__body {
  display: block;
  max-width: 17em;
  font-size: clamp(12px, 1.35vw, 19.5px); /* 25% smaller than before */
  font-weight: 600;
  line-height: 1.38;
}

/* Grey image placeholders, numbered so images can be referenced */
.ph {
  display: grid;
  place-items: center;
  background: #b9b9b9;
}
.ph__num {
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}
.case-card .ph { place-items: start; padding: 6.8%; }
/* Video inside a placeholder (card 01): fills the box, number stays on top */
.case__image { position: relative; overflow: hidden; } /* the card's own media and the travelling copy are already positioned */
.ph__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.ph__num { position: relative; z-index: 1; }
.case-card .ph__num { font-size: clamp(24px, 4vw, 64px); }

/* ---------- Card page (opens over the page) ---------- */
.case-view {
  position: fixed;
  inset: 84px 0 0 0; /* starts below the header line, so the page never scrolls under the see-through header */
  z-index: 25;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-end);
  color: var(--ink);
  visibility: hidden;
  opacity: 0;
}
.case-view.is-open { visibility: visible; opacity: 1; }
.case-open, .case-open body { overflow: hidden; }

.case-view__back {
  position: sticky; /* stays at the top of the card page while it scrolls */
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 22px var(--gutter);
  border: 0;
  background: var(--bg-end);
  color: inherit;
  cursor: pointer;
  font: 700 11px/1 var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-view__back span { font-size: 15px; transition: transform .25s; }
.case-view__back { justify-content: flex-start; }
.case-view__back:hover span { transform: translateX(-4px); }
.case-view__back:focus-visible, .case__next:focus-visible { outline: 2px solid var(--hover, #4597f7); outline-offset: 4px; }

.case { --hover: #4597f7; }
.case__hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4vw;
  align-items: start;
  padding: 20px var(--gutter) 10vh;
}
.case__title {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 104px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.case__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 14em));
  gap: 24px;
  margin: clamp(28px, 3.4vw, 52px) 0 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case__meta dt { font-weight: 700; }
.case__meta dd { margin: 4px 0 0; color: var(--muted); }
.case__lead {
  max-width: 26em;
  margin: clamp(32px, 4vw, 64px) 0 0;
  font-size: clamp(18px, 1.9vw, 30px);
  font-weight: 300;
  line-height: 1.3;
}
/* Card page copy (site colours, not the copy doc's) */
.case__sub {
  margin: clamp(20px, 2.4vw, 36px) 0 0;
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 300;
  line-height: 1.15;
}
.case__lead p { margin: 0; }
.case__lead p + p { margin-top: .6em; }
.case__lead .case__kicker { font-weight: 700; }
.case__text.case__text--flow { display: block; max-width: 46em; }
.case__text.case__text--flow > * + * { margin-top: 1.4em; }
.case__quote { margin: 0; }
.case__quote p {
  margin: 0;
  font-size: 1.15em;
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.case__image {
  height: calc(100svh - 84px - 140px);
  min-height: 380px;
  aspect-ratio: 4 / 5;
  max-width: 44vw;
}

.case__more {
  display: grid;
  gap: 4vw;
  padding: 0 var(--gutter) 12vh;
}
.case__wide { aspect-ratio: 16 / 9; }
.case__text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4vw;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.5;
}
.case__text p { margin: 0; max-width: 34em; }
.case__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
}
.case__pair .ph { aspect-ratio: 4 / 5; }
.case__next {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: .4em;
  margin-top: 4vw;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: 800 clamp(28px, 4vw, 64px)/1 var(--font);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.case__next span:first-of-type {
  padding-bottom: 4px;
  background: linear-gradient(var(--hover), var(--hover)) 0 100% / 0 5px no-repeat;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1);
}
.case__next:hover span:first-of-type { background-size: 100% 5px; }

/* Split card page (card 01): text column on the left, all ~30% smaller;
   the video stays pinned on the right while the text scrolls past it */
.case--split .case__hero { align-items: start; padding-bottom: 0; }
.case--split .case__intro { padding-bottom: 14vh; } /* space at the end lives in the text column, so the video stays pinned to the very end */
.case--split .case__title { font-size: clamp(30px, 4.5vw, 73px); }
.case--split .case__sub { font-size: clamp(18px, 1.8vw, 28px); }
.case--split .case__lead { max-width: 30em; font-size: clamp(15px, 1.33vw, 21px); }
.case--split .case__text.case__text--flow {
  max-width: 30em;
  margin-top: clamp(28px, 3vw, 44px);
  font-size: clamp(14px, 1.05vw, 16px);
}
.case--split .case__next { margin-top: clamp(40px, 5vw, 80px); font-size: clamp(22px, 2.8vw, 45px); }
/* Prizes page (card 02): headed lists in the same type as the About page */
.case__h3 {
  margin: 0;
  font-size: 1em;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.case__prizes .case__h3 + .prize-list { margin-top: 1em; }
.case__prizes .prize-list + .case__h3 { margin-top: 2.6em; }
.prize-list { list-style: none; margin: 0; padding: 0; }
.prize-list li { padding: 1em 0; border-top: 1px solid var(--line, rgba(0,0,0,.15)); }
.prize-list li:last-child { border-bottom: 1px solid var(--line, rgba(0,0,0,.15)); }
.prize-list strong { display: block; margin-bottom: .3em; font-weight: 700; }
/* How to enter page (card 03): stage headings, dates and dot lists */
.case__steps .case__h3 + .case__date { margin-top: .5em; }
.case__steps .case__date { font-weight: 700; }
.case__steps > p:not(.case__date) { margin-top: .9em; }
.case__steps .dot-list + .case__h3 { margin-top: 2.6em; }
.dot-list { margin: .8em 0 0; padding-left: 1.2em; }
.dot-list li + li { margin-top: .45em; }
.dot-list strong { font-weight: 700; }
.case__steps .case__aside { margin-top: 2.2em; font-style: italic; }
.case__steps .case__aside strong { font-weight: 800; }

/* Big "Submit your work" button at the end of the How to enter page (the header button, scaled up) */
.cta.cta--big {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 580px;
  height: clamp(64px, 6vw, 88px);
  margin-top: clamp(40px, 5vw, 72px);
  background: #111;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 26px);
  letter-spacing: .02em;
}
.cta.cta--big:hover { background: #333; }
.case--split .cta--big + .case__next { margin-top: clamp(48px, 6vw, 96px); }

/* Meet your mentor page (card 04) */
.case__bio .case__h3 { margin-top: 2.6em; }
.case__bio a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Right side of the How to enter page: the example submission board
   (5 work images in a row, 10 inspiration images in two rows) */
.case__image.case__board {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  width: min(44vw, calc((100svh - 190px) / 0.98));
  max-width: 44vw;
  justify-self: end;
  overflow: visible;
  background: none;
}
.board__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.board__head + .board__work, .board__head + .board__mood { margin-bottom: 22px; }
.board__note { font-weight: 300; letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--muted); }
.board__work, .board__mood { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.board__work img, .board__mood img { display: block; width: 100%; height: 100%; object-fit: cover; }
.board__work img { aspect-ratio: 1 / 2; }
.board__mood img { aspect-ratio: 5 / 7; }
.case--split .case__image {
  position: sticky;
  top: 79px; /* just below the Back bar */
}

/* "Watch the full video" button on the card 01 page (from kingriver.com.au) */
.watch {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  font: 700 13px/1.6 var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s, border-color .25s;
}
.watch svg { width: 16px; height: 16px; flex: none; }
.watch:hover { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.8); }
.watch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 480px) { .watch { top: 12px; right: 12px; padding: 8px 14px; font-size: 11px; gap: 8px; } }

/* Full video player */
.video-modal {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.video-modal::backdrop {
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.video-modal[open] { display: grid; place-items: center; }
.video-modal__inner {
  position: relative;
  width: min(calc(100vw - 2 * max(16px, 5.5vw)), calc((100dvh - 180px) * 16 / 9));
  padding-top: 46px; /* room for Close above the video */
}
.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: none;
  color: #fff;
  cursor: pointer;
  font: 700 11px/1.4 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.video-modal__close svg { width: 14px; height: 14px; }
.video-modal__close:hover { background: rgba(255, 255, 255, 0.12); }
.video-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.video-modal__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  margin: 0;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}
.video-modal__fallback[hidden] { display: none; }
.video-modal__fallback a { color: #fff; font-weight: 700; text-underline-offset: 4px; }

/* the travelling image used for the open/close transition */
.case-ghost {
  position: fixed;
  z-index: 27;
  margin: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .cases { --card-w: min(86vw, calc((100svh - 164px) * 0.8)); --card-gap: 10px; --card-pad: 16px; }
  .case-card__title { font-size: 26px; }
  .case-card__body { font-size: 15px; }

  .case__hero { grid-template-columns: 1fr; padding-top: 8px; gap: 32px; }
  .case__image { height: auto; min-height: 0; width: 100%; max-width: none; }
  .case__meta { grid-template-columns: 1fr 1fr; }
  .case__text { grid-template-columns: 1fr; }
  .case__pair { grid-template-columns: 1fr; }
  /* phones: video first, then the text; nothing pinned */
  .case--split .case__image { position: relative; top: auto; order: -1; }
  .case__image.case__board { width: 100%; max-width: none; }
}

/* ---------- Click to submit: big words, same type as the quote ---------- */
.submit {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vh, 80px) var(--gutter) clamp(56px, 9vh, 112px);
  background: #fff;
  text-align: center;
}
.submit__link {
  display: inline-block;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 64px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.14;
  letter-spacing: -0.03em;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .submit__link:hover { transform: scale(1.25); }
}
.submit__link:focus-visible { outline: 2px solid #111; outline-offset: 8px; }
@media (max-width: 767px) {
  .submit { padding: 40px 16px 56px; }
  .submit__link { font-size: 8.4vw; }
}
@media (prefers-reduced-motion: reduce) { .submit__link { transition: none; } }

/* ---------- Footer (layout from the ELEVEN Australia site, white and in the page fonts) ---------- */
.site-foot {
  position: relative;
  z-index: 2;
  background: #fff;
  color: #111;
  border-top: 1px solid rgba(17, 17, 17, .12);
}
.site-foot__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px var(--gutter) 48px;
}
.site-foot__logo { display: inline-block; }
.site-foot__logo img { display: block; width: 210px; height: auto; }
.site-foot__follow { margin: 44px 0 14px; font-size: 15px; }
.site-foot__social { display: flex; gap: 18px; }
.site-foot__social a { display: grid; place-items: center; width: 32px; height: 32px; color: #111; }
.site-foot__social svg { width: 22px; height: 22px; }
.site-foot__social a:hover { opacity: .6; }
.site-foot__copy { margin: 40px 0 0; font-size: 12px; letter-spacing: .04em; }
.site-foot__col h2 {
  margin: 4px 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-foot__col a {
  display: block;
  width: fit-content;
  padding: 3px 0;
  color: #111;
  font-size: 15px;
  text-decoration: none;
}
.site-foot__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-foot a:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@media (max-width: 900px) {
  .site-foot__inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-top: 44px; }
  .site-foot__brand { grid-column: 1 / -1; }
  .site-foot__follow { margin-top: 28px; }
  .site-foot__copy { margin-top: 24px; }
}

/* ---------- Before entries open (January 4, 2027) ---------- */
/* Red note under the tagline; disappears once submissions open */
.intro__open {
  display: block;
  margin-top: 1.1em;
  font-size: max(13px, .3em);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  color: #ff3b30;
}
html:not(.fi-closed) .intro__open { display: none; }
/* Every "Submit your work" link is hidden until submissions open */
.fi-closed .site-head .cta,
.fi-closed a[href="#submit"],
.fi-closed .submit,
.fi-closed .site-foot__col[aria-label="Enter"] { display: none !important; }
