/* ==========================================================================
   Sofia Vikings: the match-day poster wall
   Sheets of navy, orange and newsprint pasted on a night-navy wall.
   ========================================================================== */

:root {
  --wall: #0A1230;
  --navy: #0E1E4A;
  --navy-deep: #081536;
  --orange: #F0642A;
  --paper: #E8ECF2;
  --ink: #0A1230;
  --on-navy: rgba(232, 236, 242, 0.8);
  --on-paper: rgba(10, 18, 48, 0.78);
  --on-orange: rgba(10, 18, 48, 0.86);

  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --body: 'Sofia Sans', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --nav-h: 68px;
  --gap: clamp(12px, 1.6vw, 24px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-sheet:
    0 2px 3px rgba(2, 5, 18, 0.35),
    0 28px 60px -24px rgba(2, 5, 18, 0.9);

  /* z-index scale */
  --z-cut: 3;
  --z-nav: 50;
  --z-menu: 40;
  --z-grain: 60;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  scrollbar-color: var(--orange) var(--wall);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-kerning: normal;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Fixed paper grain over the whole wall; never on scrolling layers. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--orange); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: currentColor; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
/* On orange stock the ring switches to ink so it never vanishes. */
.sheet--orange :focus-visible,
.menu :focus-visible { outline-color: var(--ink); }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--orange);
  color: var(--ink);
  padding: 0.6em 1em;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
  font-size: clamp(3.5rem, 2rem + 7.5vw, 9.5rem);
  text-wrap: balance;
}

h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Sheets: the pasted posters
   -------------------------------------------------------------------------- */

.sheet {
  --tilt: 0deg;
  position: relative;
  background: var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow-sheet);
  rotate: var(--tilt);
}
.sheet--orange { background: var(--orange); color: var(--ink); }
.sheet--paper { background: var(--paper); color: var(--ink); }
.sheet--deep { background: var(--navy-deep); }

/* Halftone print: photos as two-ink duotones with a dot screen on top. */
.print {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(1.04);
  mix-blend-mode: screen;
}
.print::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(10, 18, 48, 0.42) 0.9px, transparent 1.25px) 0 0 / 4px 4px;
  mix-blend-mode: multiply;
}
.print--ink { background: var(--orange); }
.print--ink img { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.25) brightness(1.12); }

/* --------------------------------------------------------------------------
   Ticket stubs: the buttons
   -------------------------------------------------------------------------- */

.stub {
  --notch: 7px;
  display: inline-flex;
  align-items: stretch;
  min-height: 3.25rem;
  background: var(--orange);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
  user-select: none;
  -webkit-user-select: none;
}
.stub > span { display: flex; align-items: center; padding: 0.15em 1.15em 0 1.3em; }
.stub__tear {
  display: grid;
  place-items: center;
  padding: 0 1.05em 0 0.95em;
  border-left: 2px dashed rgba(10, 18, 48, 0.45);
}
.stub__tear svg { width: 1.05em; height: 1.05em; transition: transform 200ms var(--ease-out); }
.stub:active { transform: scale(0.97); }

.stub--ghost {
  background: var(--paper);
}
.stub--sm { min-height: 2.5rem; font-size: 1.125rem; }
.stub--sm > span { padding-inline: 1.1em; }
.stub--xl { min-height: 4.5rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }

@media (hover: hover) and (pointer: fine) {
  .stub:hover { background: #FF7840; }
  .stub--ghost:hover { background: #FFFFFF; }
  .stub:hover .stub__tear svg { transform: translateX(3px); }
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
  text-decoration: underline;
}
.textlink svg { width: 1em; height: 1em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .textlink:hover svg { transform: translate(2px, -2px); }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--gutter);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.nav[data-scrolled] {
  background: var(--wall);
  box-shadow: 0 10px 30px -18px rgba(2, 5, 18, 0.9);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__brand img { width: 36px; height: auto; }
@media (max-width: 420px) { .nav__brand span { display: none; } }
.nav__links {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  margin-left: auto;
}
.nav__links a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-navy);
  padding-block: 0.4rem;
  transition: color 200ms ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  scale: 0 1;
  transform-origin: left;
  transition: scale 240ms var(--ease-out);
}
.nav__links a[aria-current="true"] { color: var(--paper); }
.nav__links a[aria-current="true"]::after { scale: 1 1; }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--paper); }
}
.nav__end { display: flex; align-items: center; gap: 1rem; }

.lang {
  display: flex;
  border: 1.5px solid rgba(232, 236, 242, 0.35);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--on-navy);
  font: 700 0.85rem/1 var(--body);
  letter-spacing: 0.06em;
  padding: 0.55rem 0.7rem;
  min-width: 2.75rem;
  min-height: 2.25rem;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.lang button:active { transform: scale(0.96); }

.nav__toggle {
  display: none;
  appearance: none;
  border: 1.5px solid rgba(232, 236, 242, 0.35);
  background: transparent;
  color: var(--paper);
  font: 800 1.125rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 0.9rem;
  min-height: 2.5rem;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--orange);
  color: var(--ink);
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 420ms var(--ease-in-out);
}
.menu[data-open] { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; gap: 0.2rem; }
.menu nav a {
  font: 900 clamp(3rem, 14vw, 5rem)/0.95 var(--display);
  text-transform: uppercase;
  text-decoration: none;
}
.menu .stub { background: var(--ink); color: var(--paper); align-self: flex-start; }
.menu .stub__tear { border-color: rgba(232, 236, 242, 0.4); }

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__end { margin-left: auto; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav[data-menu-open] { background: transparent; box-shadow: none; color: var(--ink); }
  .nav[data-menu-open] .lang { border-color: rgba(10, 18, 48, 0.4); }
  .nav[data-menu-open] .lang button { color: var(--ink); }
  .nav[data-menu-open] .lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .nav[data-menu-open] .nav__toggle { color: var(--ink); border-color: rgba(10, 18, 48, 0.4); }
}

/* --------------------------------------------------------------------------
   Hero: the headline poster
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 0.75rem) var(--gutter) clamp(1.25rem, 4vh, 3rem);
  display: grid;
}
.hero__sheet {
  --tilt: -0.7deg;
  width: min(100%, 82vw);
  min-height: calc(100dvh - var(--nav-h) - clamp(2rem, 6vh, 4.5rem));
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(1rem, 2.4vh, 1.75rem);
}
.hero__back {
  --tilt: 2.4deg;
  position: absolute;
  right: calc(var(--gutter) * 0.6);
  top: calc(var(--nav-h) + 9vh);
  width: 32vw;
  height: 62vh;
}
.hero__billing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--orange);
}
.hero__season {
  color: var(--ink);
  background: var(--orange);
  padding: 0.2em 0.4em 0.1em;
}
.hero__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(5.25rem, 1rem + 16vw, 17.5rem);
  line-height: 0.8;
  letter-spacing: -0.015em;
  margin-left: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.02em; margin-bottom: -0.02em; }
.hero__title .line > span { display: block; }
.line--accent { color: var(--orange); }
.hero__sub {
  max-width: 38ch;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  line-height: 1.45;
  color: var(--on-navy);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }

.hero__cut {
  position: absolute;
  z-index: var(--z-cut);
  right: 20.5vw;
  bottom: 0;
  height: min(calc(100dvh - var(--nav-h) - 1rem), 1040px);
  width: auto;
  filter: grayscale(1) contrast(1.12) brightness(1.06) drop-shadow(0 34px 34px rgba(2, 5, 18, 0.55));
  pointer-events: none;
}

@media (max-width: 900px) {
  /* Phones: the player stands on top of the poster and only dips into its empty top margin,
     so the name is never covered, whatever the browser's toolbars do to the viewport height. */
  .hero { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__cut {
    position: relative;
    order: -1;
    align-self: flex-end;
    inset: auto;
    height: min(40svh, 360px);
    margin: 0 6vw -2.25rem 0;
  }
  .hero__sheet { width: 100%; min-height: auto; padding-top: 3.5rem; gap: 1rem; }
  .hero__back { width: 54vw; height: min(32svh, 290px); top: calc(var(--nav-h) + 1.5rem); right: var(--gutter); }
}
@media (max-width: 600px) {
  .hero__title { font-size: clamp(4rem, 23vw, 7rem); }
  .hero__actions .stub { flex: 1 1 auto; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Club: the manifesto sheet
   -------------------------------------------------------------------------- */

.club { padding: clamp(5rem, 12vh, 9rem) var(--gutter) clamp(3rem, 8vh, 6rem); }
.club__sheet {
  --tilt: 0.6deg;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(1.5rem, 4vw, 4.5rem);
  padding-bottom: 0;
}
.club__text { grid-column: 1 / span 7; display: grid; gap: 1.25rem; align-content: start; }
.club__text .display { margin-bottom: 0.75rem; }
.club__text p { max-width: 58ch; color: var(--on-paper); }
.club__values {
  grid-column: 9 / -1;
  align-self: end;
  display: grid;
  gap: 0.15em;
  font: 900 clamp(2.4rem, 1.4rem + 3vw, 4.6rem)/0.9 var(--display);
  text-transform: uppercase;
}
.club__values li:nth-child(2) { padding-left: 0.6em; }
.club__values li:nth-child(3) { padding-left: 1.2em; }
.club__photo {
  grid-column: 1 / -1;
  margin: clamp(2rem, 4vw, 3.5rem) calc(clamp(1.5rem, 4vw, 4.5rem) * -1) 0;
  aspect-ratio: 16 / 7;
}
.club__photo img { object-position: 50% 42%; }
.club__stamp {
  position: absolute;
  top: clamp(-1.5rem, -2vw, -1rem);
  right: clamp(1.5rem, 5vw, 5rem);
  rotate: 4deg;
  background: var(--orange);
  color: var(--ink);
  font: 900 clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem)/1 var(--display);
  text-transform: uppercase;
  padding: 0.35em 0.55em 0.25em;
  box-shadow: var(--shadow-sheet);
}

@media (max-width: 900px) {
  .club__text, .club__values { grid-column: 1 / -1; }
  .club__photo { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   Journey: the climb (signature)
   -------------------------------------------------------------------------- */

.journey { position: relative; }
.journey__pin { position: relative; }

/* Base: a vertical climb. Phones, reduced motion and no-JS all read this. */
.journey__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3rem);
  padding: clamp(4rem, 10vh, 6rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}
.journey__intro { display: grid; gap: 1.25rem; align-content: start; container-type: inline-size; }
.journey__intro .display { font-size: min(clamp(3.5rem, 2rem + 7.5vw, 9.5rem), 27cqi); }
.journey__intro p { color: var(--on-navy); max-width: 34ch; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); }

.legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; font-weight: 600; font-size: 0.95rem; }
.legend li { display: flex; align-items: center; gap: 0.5rem; }

/* Milestone state is drawn by stroke, never by colour. */
.mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--wall);
  flex: none;
}
.mark--debut, .season[data-mark="debut"]::before { border-style: dashed; }
.mark--up, .season[data-mark="up"]::before { background: radial-gradient(circle, var(--paper) 0 30%, var(--wall) 34%); }
.mark--title, .season[data-mark="title"]::before { border-width: 7px; border-style: double; }
.mark--season, .season[data-mark="season"]::before { background: var(--paper); }

.seasons {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-left: 2.5rem;
}
.seasons::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  transform-origin: top;
  scale: 1 var(--climb, 1);
}
.season {
  --tilt: 0deg;
  width: min(100%, 520px);
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.season:nth-child(odd) { --tilt: -0.8deg; }
.season:nth-child(even) { --tilt: 0.7deg; }
.season::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: calc(-2.5rem - 1px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--wall);
  z-index: 2;
  rotate: calc(var(--tilt) * -1);
}
.season .print { margin: -1.25rem -1.25rem 0.75rem; aspect-ratio: 4 / 3; }
.season__year {
  font: 900 clamp(3rem, 2rem + 2.6vw, 4.75rem)/0.85 var(--display);
  letter-spacing: -0.01em;
}
.season__league {
  font: 800 1.15rem/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--orange);
}
.season__text { color: var(--on-navy); font-size: 1rem; line-height: 1.5; }
.season__text--big { font: 900 2.1rem/0.95 var(--display); text-transform: uppercase; color: var(--paper); }
.season--finale .season__league,
.season--finale .season__text { color: var(--on-orange); }
.season__place {
  font: 900 clamp(4.5rem, 3rem + 4vw, 7.5rem)/0.82 var(--display);
  text-transform: uppercase;
}
.season__place sup { font-size: 0.42em; vertical-align: 0.95em; margin-left: 0.04em; }

.journey__line { display: none; }

/* Pan: wide screens with motion. The track slides, the climb line draws. */
.journey--pan .journey__pin { height: 100dvh; overflow: hidden; }
.journey--pan .journey__track {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
  width: max-content;
  height: 100%;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 4vh;
}
.journey--pan .journey__intro { width: clamp(300px, 28vw, 460px); padding-top: 1vh; }
.journey--pan .seasons { flex-direction: row; align-items: flex-start; gap: inherit; padding-left: 0; }
.journey--pan .seasons::after,
.journey--pan .season::before { display: none; }
.journey--pan .season {
  width: clamp(250px, 20vw, 320px);
  margin-top: calc((3 - var(--tier, 0)) * 10.5vh);
}
.journey--pan .season[data-tier="0"] { --tier: 0; }
.journey--pan .season[data-tier="1"] { --tier: 1; }
.journey--pan .season[data-tier="2"] { --tier: 2; }
.journey--pan .season[data-tier="3"] { --tier: 3; }
.journey--pan .season--wide { width: clamp(300px, 27vw, 420px); }
.journey--pan .season--finale { width: clamp(290px, 25vw, 400px); }
/* The pin is exactly one screen tall, so cards scale with screen height and never run off the bottom. */
.journey--pan .season .print { aspect-ratio: auto; height: min(30vh, 270px); }
.journey--pan .season__year { font-size: clamp(2.4rem, min(2rem + 2.6vw, 8vh), 4.75rem); }
.journey--pan .season__place { font-size: clamp(3rem, min(3rem + 4vw, 12.5vh), 7.5rem); }
.journey--pan .season__text--big { font-size: clamp(1.6rem, 4.2vh, 2.1rem); }
.journey--pan .journey__line {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  overflow: visible;
  pointer-events: none;
  fill: none;
}
.journey__line path { stroke: var(--orange); stroke-width: 4; fill: none; }
.climb-mark {
  opacity: 0;
  scale: 0.4;
  transition: opacity 260ms ease, scale 420ms var(--ease-out);
}
.climb-mark.is-on { opacity: 1; scale: 1; }

/* --------------------------------------------------------------------------
   Community: the notice board
   -------------------------------------------------------------------------- */

.community { padding: clamp(5rem, 12vh, 9rem) var(--gutter); }
.community__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.community__head p { max-width: 44ch; color: var(--on-navy); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); }

.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "a a a a a b b b b b b b"
    "a a a a a c c c d d d d"
    "e e e e f f f f d d d d";
  gap: clamp(16px, 2vw, 28px);
}
.post { padding: clamp(1.25rem, 2.2vw, 2rem); display: grid; gap: 0.5rem; align-content: start; container-type: inline-size; }
.post--a { grid-area: a; --tilt: -0.9deg; align-content: end; }
.post--b { grid-area: b; --tilt: 0.5deg; }
.post--c { grid-area: c; --tilt: 1deg; align-content: end; }
.post--d { grid-area: d; --tilt: -0.6deg; overflow: visible; min-height: 460px; align-content: start; }
.post--e { grid-area: e; --tilt: 0.8deg; }
.post--f { grid-area: f; --tilt: -1deg; }

.post__bill {
  font: 900 clamp(2.2rem, 1.3rem + 2.4vw, 4rem)/0.9 var(--display);
  /* Billing fits its own sheet: shrink only when the sheet is too narrow for the longest word. */
  font-size: min(clamp(2.2rem, 1.3rem + 2.4vw, 4rem), 15cqi);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.post__text { font-size: 1.05rem; line-height: 1.45; max-width: 34ch; }
.sheet--orange .post__text { color: var(--on-orange); }
.sheet--paper .post__text { color: var(--on-paper); }
.sheet:not(.sheet--orange):not(.sheet--paper) .post__text { color: var(--on-navy); }

.post--a .print { margin: calc(clamp(1.25rem, 2.2vw, 2rem) * -1) calc(clamp(1.25rem, 2.2vw, 2rem) * -1) 1rem; aspect-ratio: 16 / 10; }
.post__words {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5em;
  font: 900 clamp(2.4rem, 1.5rem + 2.8vw, 4.4rem)/0.95 var(--display);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.post__words li:nth-child(even) { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.post--c .post__bill { color: var(--orange); }

.post__cut {
  position: absolute;
  right: -3%;
  bottom: 0;
  height: 66%;
  width: auto;
  filter: grayscale(1) contrast(1.12) drop-shadow(0 20px 30px rgba(2, 5, 18, 0.6));
  pointer-events: none;
}
.post--d .post__body { position: relative; z-index: 1; max-width: 30ch; display: grid; gap: 0.6rem; }

.post__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
}
.post__link svg { width: 1.3em; height: 1.3em; }

@media (max-width: 1100px) {
  .board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "a a a b b b"
      "a a a c c c"
      "d d d d d d"
      "e e e f f f";
  }
}
@media (max-width: 700px) {
  .board { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f"; gap: 20px; }
  .post--d { min-height: 470px; }
  .post__cut { height: 62%; }
}

/* --------------------------------------------------------------------------
   Roll: the moving band
   -------------------------------------------------------------------------- */

.roll { position: relative; overflow: hidden; padding: clamp(2rem, 6vh, 4rem) 0 clamp(4rem, 10vh, 7rem); }
.roll__type {
  display: flex;
  gap: 0.4em;
  white-space: nowrap;
  font: 900 clamp(4rem, 2rem + 9vw, 11rem)/0.9 var(--display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px rgba(232, 236, 242, 0.55);
  will-change: transform;
}
.roll__type span:nth-child(even) { color: var(--orange); -webkit-text-stroke: 0; }
.roll__strip {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(-2.5rem, -3vw, -1rem);
  padding-left: var(--gutter);
  will-change: transform;
}
.roll__strip li {
  flex: none;
  width: clamp(240px, 30vw, 460px);
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-sheet);
}
.roll__strip li:nth-child(odd) { rotate: -1.2deg; }
.roll__strip li:nth-child(even) { rotate: 1deg; translate: 0 1.5rem; }

/* --------------------------------------------------------------------------
   Vision
   -------------------------------------------------------------------------- */

.vision { padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(5rem, 12vh, 9rem); }
.vision__sheet {
  --tilt: -0.5deg;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(1.75rem, 4.5vw, 5rem);
  padding-bottom: clamp(9rem, 18vw, 14rem);
  overflow: hidden;
}
.vision__bg { position: absolute; inset: 0; opacity: 0.32; }
.vision__bg::after { display: none; }
.vision__title {
  position: relative;
  grid-column: 1 / span 9;
  font-size: clamp(4rem, 2rem + 9vw, 12rem);
  line-height: 0.82;
}
.vision__dream {
  position: relative;
  grid-column: 7 / -1;
  margin-top: clamp(1.5rem, 5vw, 4rem);
  display: grid;
  gap: 0.75rem;
}
.vision__big { font: 900 clamp(2.6rem, 1.6rem + 3.4vw, 5.25rem)/0.9 var(--display); text-transform: uppercase; }
.vision__dream p:last-child { color: var(--on-orange); max-width: 40ch; }

.vision__goals {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(-8rem, -12vw, -5rem);
  padding-inline: clamp(0rem, 3vw, 3rem);
}
.vision__goals-title {
  grid-column: 1 / span 3;
  align-self: end;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  padding-bottom: 1rem;
}
.slip { padding: clamp(1.25rem, 2.2vw, 2rem); display: grid; gap: 0.6rem; align-content: start; }
.slip:nth-of-type(1) { grid-column: 4 / span 4; --tilt: 1.4deg; }
.slip:nth-of-type(2) { grid-column: 8 / span 5; --tilt: -1.2deg; margin-top: 2.5rem; }
.slip p { color: var(--on-paper); }

@media (max-width: 900px) {
  .vision__title, .vision__dream { grid-column: 1 / -1; }
  .vision__goals { grid-template-columns: 1fr; margin-top: -4rem; padding-inline: 0.75rem; }
  .vision__goals-title, .slip:nth-of-type(1), .slip:nth-of-type(2) { grid-column: 1; margin-top: 0; }
  .vision__goals-title { order: -1; color: var(--paper); padding: 0; }
  .vision__goals { gap: 20px; }
  .vision__sheet { padding-bottom: 7rem; }
}

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */

.partners { padding: 0 var(--gutter) clamp(5rem, 12vh, 9rem); }
.partners__sheet {
  --tilt: 0.4deg;
  padding: clamp(1.75rem, 4.5vw, 5rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.partner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) var(--gap);
  align-items: center;
}
.partner__logo { grid-column: 1 / span 7; display: block; transition: transform 200ms var(--ease-out); }
.partner__logo img { width: 100%; max-width: 760px; }
.partner__logo:active { transform: scale(0.98); }
.partner__text { grid-column: 1 / span 6; display: grid; gap: 1rem; justify-items: start; }
.partner__text p { color: var(--on-paper); max-width: 46ch; font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); }
.partner__photo {
  grid-column: 8 / -1;
  grid-row: 1 / span 2;
  rotate: 2deg;
  box-shadow: 0 2px 3px rgba(10, 18, 48, 0.2), 0 30px 50px -24px rgba(10, 18, 48, 0.6);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.partner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 40%; }

.pitch {
  --tilt: -0.5deg;
  display: grid;
  gap: clamp(2rem, 5vh, 3.5rem);
  margin-top: clamp(4rem, 10vh, 7rem);
  padding: clamp(1.75rem, 4.5vw, 5rem);
}
.pitch__head { display: grid; gap: 1.25rem; }
.pitch__head p { max-width: 46ch; color: var(--on-navy); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); }
.pitch__cols {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 6rem);
}
.pitch__col { display: grid; gap: 1.5rem; align-content: start; }
.pitch__col h3 { color: var(--orange); }
.pitch__col h3:not(:first-child) { margin-top: 1.5rem; }

.billing { display: grid; gap: 1.4rem; }
.billing li { display: grid; gap: 0.35rem; }
.billing strong {
  font: 900 clamp(1.9rem, 1.3rem + 1.8vw, 3rem)/0.92 var(--display);
  text-transform: uppercase;
}
.billing li:first-child strong {
  font-size: clamp(3rem, 2rem + 3.6vw, 5.6rem);
  color: var(--orange);
}
.billing span { color: var(--on-navy); max-width: 48ch; }
.why-list { display: grid; gap: 0.7rem; }
.why-list li { position: relative; padding-left: 1.6rem; color: var(--on-navy); }
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.9rem;
  height: 3px;
  background: var(--orange);
}
.needs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.needs li {
  border: 1.5px dashed rgba(232, 236, 242, 0.45);
  padding: 0.5rem 0.85rem 0.45rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.pitch > .stub { justify-self: start; }

@media (max-width: 900px) {
  .partner__logo, .partner__text, .partner__photo { grid-column: 1 / -1; grid-row: auto; }
  .partner__photo { aspect-ratio: 4 / 3; rotate: 1deg; }
  .pitch__cols { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot {
  position: relative;
  background: var(--navy-deep);
  padding: clamp(3rem, 8vh, 5rem) var(--gutter) 2rem;
  overflow: hidden;
}
.foot__shout {
  font-size: clamp(4rem, 1rem + 13vw, 15rem);
  line-height: 0.82;
  color: var(--orange);
  white-space: nowrap;
}
.foot__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.foot__logo { width: clamp(96px, 12vw, 170px); }
.foot__contact { display: grid; gap: 1.25rem; justify-items: start; }
.foot__mail {
  font: 900 clamp(1.9rem, 1rem + 4vw, 5rem)/0.95 var(--display);
  text-transform: uppercase;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
}
.foot__social { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.foot__social a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; }
.foot__social svg { width: 1.5em; height: 1.5em; color: var(--orange); }
@media (hover: hover) and (pointer: fine) {
  .foot__social a:hover { text-decoration: underline; }
  .foot__mail:hover { color: var(--orange); }
}
.foot__train { color: var(--on-navy); font-size: 0.95rem; }
.foot__legal {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 236, 242, 0.14);
  font-size: 0.875rem;
  color: rgba(232, 236, 242, 0.62);
}

@media (max-width: 600px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__shout { white-space: normal; }
}

/* --------------------------------------------------------------------------
   Motion states (only when motion is allowed and JS runs)
   -------------------------------------------------------------------------- */

html.motion [data-intro] { opacity: 0; }
html.motion [data-intro="line"] { opacity: 1; transform: translateY(105%); }
/* Safety net: if scripts never arrive, show everything after a beat. */
html.motion:not(.is-ready) [data-intro] { animation: sv-show 0s 2.5s forwards; }
@keyframes sv-show { to { opacity: 1; transform: none; } }

/* Language swap: blur bridges the two states so the crossfade reads as one change. */
[data-i18n-scope], .nav, .foot, .menu {
  transition: filter 180ms ease, opacity 180ms ease;
}
html.is-switching [data-i18n-scope],
html.is-switching .nav__links,
html.is-switching .foot { filter: blur(4px); opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html.is-switching [data-i18n-scope],
  html.is-switching .nav__links,
  html.is-switching .foot { filter: none; opacity: 1; }
}
