:root {
  --black: #000;
  --cream: #ece8dd;
  --signal: #ff4a1c;
  --slate: #1c1b19;
  --dim: rgba(236, 232, 221, 0.62);
  --line: rgba(236, 232, 221, 0.24);
  --gutter: clamp(16px, 3vw, 44px);
  --gap: clamp(8px, 1vw, 14px);
  --poster: "Unbounded", "Arial Black", sans-serif;
  --poster-weight: 900;
  --poster-stretch: 100%;
  --poster-lead: 0.95;
  --title: var(--grotesk);
  --grotesk: "Archivo", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--grotesk);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--black); }

/* ---------- top bar ---------- */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 0 var(--gutter);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--black);
  color: var(--cream);
}
.page-about .bar { background: var(--cream); color: var(--black); border-bottom: 1px solid rgba(0, 0, 0, 0.2); }
.bar a { text-decoration: none; }
.pga { font-weight: 500; }
.who .pga { font-size: 0.5em; letter-spacing: -0.01em; }
.bar nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.bar nav .btn {
  padding: 7px 14px;
  background: var(--cream);
  color: var(--black);
  transition: background 0.2s;
}
.page-about .bar nav .btn { background: var(--black); color: var(--cream); }
.bar nav .btn:hover, .page-about .bar nav .btn:hover { background: var(--signal); color: var(--black); }
.bar nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: 76px var(--gutter) 0;
  overflow: hidden;
}
.intro { max-width: 54%; }
.who {
  margin: 0;
  font-family: var(--title);
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.tag {
  margin: 0.45em 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dim);
}
.word {
  margin: 0;
  font-family: var(--poster);
  font-weight: var(--poster-weight);
  font-stretch: var(--poster-stretch);
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 0.5vw;
}
.word .line { display: block; width: max-content; font-size: 20vw; line-height: var(--poster-lead); }
.word i { font-style: normal; color: var(--signal); }
.word .line span, .word .line i { display: inline-block; animation: up 0.8s var(--ease) backwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes up { from { transform: translateY(100%); } }
.reel {
  position: absolute;
  right: var(--gutter);
  top: 88px;
  z-index: 2;
  /* sized so it always ends above the big word */
  width: max(220px, min(38vw, 620px, calc((100svh - 88px - var(--word-h, 24vw) - 44px) * 16 / 9)));
  margin: 0;
  will-change: transform;
}
.reel-frame {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  background: var(--slate);
  overflow: hidden;
  cursor: pointer;
}
.reel-frame:disabled { cursor: default; }
.reel figcaption { pointer-events: none; }
.reel :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--cream);
  color: var(--black);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ticker div { display: inline-flex; padding: 12px 0; animation: slide 38s linear infinite; }
.ticker span { padding: 0 0.9em; }
.ticker span::after { content: "/"; padding-left: 1.8em; color: var(--signal); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(14px, 1.6vw, 22px);
}
.head h2 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.head p { margin: 0; font-size: 0.95rem; font-weight: 500; color: var(--dim); text-align: right; }

/* ---------- wall of tiles ---------- */
.wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 21vw, 340px);
  grid-auto-flow: dense;
  gap: var(--gap);
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}
.tile { position: relative; grid-column: span 5; background: var(--slate); overflow: hidden; }
.tile.w7 { grid-column: span 7; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.h2 { grid-row: span 2; }
.tile-btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tile-media { position: absolute; inset: 0; overflow: hidden; }
.tile-media :is(img, video) {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease, transform 1.2s var(--ease);
}
.tile.is-live .tile-media :is(img, video) { opacity: 1; transform: none; }
.tile-btn:hover .tile-media :is(img, video) { transform: scale(1.04); }
.tile-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: clamp(10px, 1.2vw, 18px);
}
.tile.is-live .tile-bar { background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); padding-top: 4rem; }
.tile-title {
  font-size: clamp(1.4rem, 2.7vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.tile-meta { font-size: 0.85rem; font-weight: 500; line-height: 1.25; text-align: right; white-space: nowrap; }
.tile-meta span { display: block; opacity: 0.7; }
.tile-plus {
  position: absolute;
  right: clamp(10px, 1.2vw, 18px); top: clamp(10px, 1.2vw, 18px);
  width: 34px; height: 34px;
  background: var(--cream);
  transition: transform 0.4s var(--ease), background 0.2s;
}
.tile-plus::before, .tile-plus::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; top: 50%;
  height: 2px; margin-top: -1px;
  background: var(--black);
}
.tile-plus::after { transform: rotate(90deg); }
.tile-btn:hover .tile-plus { background: var(--signal); }
.tile.is-open .tile-plus { transform: rotate(45deg); background: var(--signal); }
.tile-text { display: none; }

.tile.is-plain { background: var(--cream); color: var(--black); }
.tile.is-plain .tile-plus { background: var(--black); }
.tile.is-plain .tile-plus::before, .tile.is-plain .tile-plus::after { background: var(--cream); }

.tile.is-open {
  grid-column: 1 / -1;
  grid-row: span 2;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--cream);
  color: var(--black);
}
.tile.is-open .tile-btn { position: relative; inset: auto; height: 100%; color: var(--cream); background: var(--slate); }
.tile.is-open .tile-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 2.4vw, 36px);
}
.tile-text p {
  margin: 0;
  max-width: 30em;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.45;
}
.tile-text .credit { padding-bottom: 0.9em; font-family: var(--grotesk); font-size: 0.95rem; font-weight: 600; line-height: 1.3; }

/* type tiles */
.tile.is-type { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(12px, 1.4vw, 20px); }
.tile.is-type.signal { background: var(--signal); color: var(--black); }
.tile.is-type.outline { background: none; border: 2px solid var(--cream); text-decoration: none; transition: background 0.25s, color 0.25s; }
a.tile.is-type.outline:hover { background: var(--cream); color: var(--black); }
.big {
  margin: 0;
  font-size: clamp(1.6rem, 3.3vw, 3.3rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.small { margin: 0; font-size: 0.9rem; font-weight: 600; }
.arrow { align-self: flex-end; width: clamp(48px, 6vw, 96px); height: auto; transition: transform 0.4s var(--ease); }
a.tile:hover .arrow { transform: translateX(8px); }

/* ---------- everything else ---------- */
.list { list-style: none; margin: 0 var(--gutter); padding: 0; border-top: 2px solid var(--cream); }
.item { border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1fr auto 1.6rem;
  align-items: baseline;
  gap: 0 clamp(1rem, 3vw, 3rem);
  width: 100%;
  margin: 0;
  padding: clamp(10px, 1.1vw, 16px) 0;
  border: 0;
  background: linear-gradient(var(--cream), var(--cream)) no-repeat left bottom / 100% 0%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-size 0.3s var(--ease), padding 0.3s var(--ease), color 0.15s;
}
.row:hover, .item.is-open .row { background-size: 100% 100%; color: var(--black); padding-left: 12px; padding-right: 12px; }
.row-title { font-size: clamp(1.5rem, 3.2vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.row-meta { font-size: 0.9rem; font-weight: 500; text-align: right; line-height: 1.25; }
.row-meta span { display: block; opacity: 0.65; }
.plus { position: relative; align-self: center; width: 1.2rem; height: 1.2rem; transition: transform 0.4s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.item.is-open .plus { transform: rotate(135deg); }
.panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.item.is-open .panel { grid-template-rows: 1fr; }
.panel-clip { overflow: hidden; min-height: 0; }
.panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(14px, 1.6vw, 24px) 0 clamp(26px, 3vw, 44px);
}
.panel-inner.no-clip { grid-template-columns: minmax(0, 44rem); }
.panel-inner figure { margin: 0; aspect-ratio: 16 / 9; background: var(--slate); overflow: hidden; }
.panel-inner :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.panel-inner p { margin: 0; max-width: 34em; font-family: var(--serif); font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.5; }

/* ---------- about page ---------- */
.page-about { background: var(--cream); color: var(--black); }
.about-hero { padding: 68px var(--gutter) 0; overflow: hidden; }
.about-main {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(28px, 4vw, 64px) var(--gutter) clamp(48px, 7vw, 104px);
}
.statement {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.prose p { margin: 0 0 1em; max-width: 34em; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; }
.facts-wall { background: var(--black); color: var(--cream); padding: var(--gap) 0; }
.facts-wall .wall { grid-auto-rows: clamp(150px, 15vw, 240px); }
.tile.is-type.cream { background: var(--cream); color: var(--black); }
.count { margin: 0; font-family: var(--poster); font-weight: var(--poster-weight); font-stretch: var(--poster-stretch); font-size: clamp(4rem, 9vw, 9rem); line-height: 0.9; text-transform: uppercase; }
.fact { margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.8rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }

/* ---------- contact ---------- */
.contact { background: var(--signal); color: var(--black); padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(20px, 2.4vw, 32px); }
.contact p { margin: 0; }
.contact .ask { font-size: 0.95rem; font-weight: 600; padding-bottom: 8px; }
.mail {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: clamp(1.1rem, 5.1vw, 6.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  background: linear-gradient(var(--black), var(--black)) no-repeat left 96% / 0% 0.07em;
  transition: background-size 0.5s var(--ease);
}
.mail:hover { background-size: 100% 0.07em; }
.fine { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: clamp(40px, 6vw, 88px) !important; font-size: 0.85rem; font-weight: 600; }

/* ---------- view transitions for the wall ---------- */
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero { min-height: 0; gap: 28px; }
  .intro { max-width: none; }
  .reel { position: relative; right: auto; top: auto; width: 100%; }
  .head { flex-direction: column; gap: 6px; }
  .head p { text-align: left; }
  .wall { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile, .tile.w7, .tile.w3, .tile.w4, .tile.is-open { grid-column: 1; grid-row: auto; }
  .tile { aspect-ratio: 16 / 10; }
  .tile.is-type { aspect-ratio: auto; min-height: 9.5rem; }
  .tile.is-open { display: block; aspect-ratio: auto; }
  .tile.is-open .tile-btn { aspect-ratio: 16 / 10; height: auto; }
  .tile-meta { white-space: normal; }
  .row { grid-template-columns: 1fr 1.4rem; }
  .row-meta { grid-column: 1; grid-row: 2; text-align: left; padding-top: 4px; }
  .row-meta span { display: inline; }
  .row-meta span::before { content: ", "; }
  .plus { grid-row: 1; grid-column: 2; }
  .panel-inner, .about-main { grid-template-columns: minmax(0, 1fr); }
  .facts-wall .wall { grid-auto-rows: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { white-space: normal; }
  .ticker div { display: block; padding: 12px var(--gutter); }
  .ticker div span[aria-hidden] { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.head h2, .tile-title, .row-title, .big, .statement, .mail, .fact { font-family: var(--title); }
