/* One calm page: warm white, one ink, two typefaces. Colour lives only inside the project bands. */
:root {
  --page: #FAF8F5;
  --ink: #221D26;
  --muted: #6E6772;
  --rule: #D9D2CB;
  --wide: 1400px;
  --side: clamp(20px, 5vw, 80px);
  --edge-h: 18px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 18px/1.6 var(--body); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* the watermark pair: the clean picture shows, the watermarked copy sits on top, invisible, and is what gets saved */
.pic { position: relative; display: block; }
.pic__show { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.pic__save { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; object-fit: cover; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 68px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--side);
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(250, 248, 245, .94); color: var(--ink); box-shadow: 0 1px 0 var(--rule); backdrop-filter: blur(8px); }
.nav__name { font: 800 19px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.nav__links { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav__links a { font: 600 16px/1 var(--body); text-decoration: none; padding: 12px 0; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- hero: the montage is the whole background, the words sit low on the left like a title card ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #2a2430; color: #fff; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18, 14, 22, .78) 0%, rgba(18, 14, 22, .38) 38%, rgba(18, 14, 22, 0) 62%),
    linear-gradient(to bottom, rgba(18, 14, 22, .35), rgba(18, 14, 22, 0) 18%);
}
.hero__inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--side) clamp(84px, 11vh, 120px);
}
.hero__who { display: flex; align-items: center; gap: 12px; font: 600 clamp(17px, 1.4vw, 20px)/1.2 var(--body); }
.hero__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; padding: 5px; }
.hero__name {
  margin-top: 14px; font: 800 clamp(64px, 10.5vw, 172px)/.86 var(--display); letter-spacing: -.035em;
  text-wrap: balance;
}
/* the real name, for a reader matching the site to an application */
.hero__real { margin-top: clamp(12px, 1.8vh, 20px); font: 700 clamp(24px, 2.4vw, 38px)/1.1 var(--display); letter-spacing: -.01em; }
.hero__real:empty { display: none; }
.hero__intro { margin-top: clamp(18px, 2.4vh, 28px); max-width: 38em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.hero__links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 24px; font: 600 16px/1 var(--body); }
.hero__links a { padding: 10px 0; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.hero__down {
  position: absolute; right: calc(var(--side) + 64px); bottom: 26px;
  font: 600 15px/1 var(--body); text-decoration: none; padding: 14px 8px; opacity: .9;
}
.hero__down span { display: inline-block; margin-left: 6px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.hero__pause {
  position: absolute; right: var(--side); bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .18); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.hero__pause span { width: 12px; height: 14px; border-left: 4px solid; border-right: 4px solid; }
.hero__pause.is-paused span { width: 0; height: 0; border: 0; border-left: 12px solid; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 4px; }

/* ---------- games ---------- */
.intro-games { max-width: var(--wide); margin: 0 auto; padding: 110px var(--side) 84px; text-align: center; scroll-margin-top: 0; }
.intro-games h2 { font: 800 clamp(44px, 5.4vw, 76px)/1 var(--display); letter-spacing: -.03em; }
.intro-games p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* bands sit edge to edge; each one's drawn top edge bites into the band above it */
.band { position: relative; background: var(--bg); color: var(--fg); }
.band::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--edge-h);
  background: var(--edge) 0 0 / auto var(--edge-h) repeat-x; pointer-events: none;
}
.band__in { max-width: var(--wide); margin: 0 auto; padding: 0 var(--side); }

.label { font: 700 13px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.tbd {
  display: inline-block; padding: 1px 9px; border: 1.5px dashed currentColor; border-radius: 6px;
  font-weight: 600; opacity: .7;
}
.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 700 14.5px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  background: var(--fg); color: var(--bg); border: 2px solid var(--fg); transition: transform .15s;
}
.pill--line { background: transparent; color: var(--fg); }
button.pill { cursor: pointer; }
.pill:hover { transform: translateY(-2px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.note { font-size: 15px; opacity: .78; }

.media { position: relative; overflow: hidden; border-radius: 8px; background: rgba(0, 0, 0, .14); }
.media .pic, .media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.media .pic__show, .media video { width: 100%; height: 100%; object-fit: cover; }
.media.is-pixel img { image-rendering: pixelated; }

/* facts: the block a tutor reads first */
.facts { display: grid; border-top: 2px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.facts > div { padding: 16px 20px 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); min-width: 0; }
.facts dt { font: 700 12.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.facts dd { font: 600 17px/1.4 var(--body); overflow-wrap: anywhere; }

/* the four case studies */
.big { padding: clamp(80px, 10vw, 128px) 0 clamp(80px, 9vw, 120px); }
.big__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.big__top .media { aspect-ratio: 16 / 9; }
.big__head { display: grid; gap: 16px; justify-items: start; }
.big__title { font: 800 clamp(46px, 5.6vw, 88px)/.92 var(--display); letter-spacing: -.03em; }
.big__hook { font: 700 clamp(22px, 2vw, 30px)/1.2 var(--display); letter-spacing: -.01em; }
.big__summary { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; }
.big__head .actions { margin-top: 6px; }
.big .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 5vw, 72px); }
.big__bottom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(40px, 4vw, 56px); }
.big__bottom h4 { margin: 0 0 16px; font: 700 13px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.did .tbd { display: block; padding: 16px 18px; font-size: 16px; line-height: 1.5; }
.did li { position: relative; padding-left: 20px; margin: 8px 0; font-size: 17px; }
.did li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* design highlights: as many columns as the project has highlights; with none the block is not shown */
.hl--none { display: none; }
.big__bottom:has(> .hl--none) { grid-template-columns: minmax(0, 1fr); }
.points { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 28px; }
.points li { counter-increment: pt; }
.points b { display: block; font: 700 19px/1.25 var(--display); margin-bottom: 8px; }
.points b::before { content: counter(pt, decimal-leading-zero); display: block; font: 700 13px/1 var(--body); letter-spacing: .1em; opacity: .6; margin-bottom: 10px; }
.points span { font-size: 16px; line-height: 1.55; opacity: .92; }

/* the lower row: three to a row, no gaps; same content as the big cards */
.band--plain { --bg: var(--page); --fg: var(--ink); }
.more__title { padding: 104px 0 56px; text-align: center; font: 800 clamp(34px, 3.6vw, 52px)/1 var(--display); letter-spacing: -.02em; }
/* a centred block of three, joined edge to edge; the page colour shows either side */
.more { max-width: calc(var(--wide) + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); display: flex; flex-wrap: wrap; justify-content: center; }
.more > .small { flex: 0 0 33.3333%; min-width: 0; box-sizing: border-box; }   /* an odd last card sits in the middle */
.small { padding: 40px clamp(22px, 2.2vw, 32px) 44px; display: grid; align-content: start; gap: 12px; }
.small .media { aspect-ratio: 16 / 9; margin-bottom: 6px; }
.small__title { font: 800 clamp(28px, 2.4vw, 36px)/1 var(--display); letter-spacing: -.02em; }
.small__hook { font: 700 17px/1.3 var(--display); }
.small__summary { font-size: 15.5px; line-height: 1.55; }
.small .facts { grid-template-columns: minmax(0, 1fr); margin-top: 6px; border-top-width: 1.5px; }
.small .facts > div { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; }
.small .facts dt { margin: 0; font-size: 12px; }
.small .facts dd { font-size: 15px; }
.small .facts .tbd { font-size: 13.5px; }
.small .did .tbd { padding: 12px 14px; font-size: 14px; }
.small .actions { margin-top: 6px; }
.small__h { margin: 10px 0; font: 700 13px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.small .points { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.small .points b { font-size: 16.5px; margin-bottom: 4px; }
.small .points b::before { display: inline-block; margin: 0 8px 0 0; vertical-align: 1px; }
.small .points span { font-size: 14.5px; line-height: 1.5; }

/* ---------- art ---------- */
.art { --bg: var(--page); position: relative; background: var(--page); padding: 120px var(--side) 40px; scroll-margin-top: 40px; }
.art::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--edge-h);
  background: var(--edge-page) 0 0 / auto var(--edge-h) repeat-x;
}
.art__head { max-width: var(--wide); margin: 0 auto 72px; text-align: center; }
.art__head h2 { font: 800 clamp(56px, 7.6vw, 120px)/.95 var(--display); letter-spacing: -.035em; }
.art__head p { margin-top: 18px; color: var(--muted); font-size: 19px; }
.wall { max-width: 1640px; margin: 0 auto; display: flex; align-items: flex-start; gap: 16px; }
.wall__col { flex: 1 1 0; min-width: 0; display: grid; gap: 16px; }
.tile {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: #ece7e1;
  break-inside: avoid; cursor: zoom-in; border-radius: 8px; overflow: hidden;
}
.tile .pic { position: absolute; inset: 0; }
.tile .pic__show { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .pic__show { transform: scale(1.03); }
.tile.is-pixel img { image-rendering: pixelated; }

/* ---------- contact ---------- */
.foot { max-width: var(--wide); margin: 96px auto 0; padding: 80px var(--side) 64px; border-top: 3px dotted var(--rule); text-align: center; }
.foot h2 { font: 800 clamp(36px, 4vw, 56px)/1 var(--display); letter-spacing: -.02em; }
.foot__mail { display: inline-block; margin-top: 22px; font: 700 clamp(22px, 2.4vw, 32px)/1.2 var(--display); text-underline-offset: 6px; padding: 6px 0; }
.foot__links { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; font: 600 16px/1 var(--body); }
.foot__links a { padding: 10px 0; text-underline-offset: 5px; }
.foot__credit { margin: 44px auto 0; max-width: 48em; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- viewer ---------- */
.box { position: fixed; z-index: 100; inset: 0; background: rgba(24, 20, 27, .95); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.box[hidden] { display: none; }
.box__fig { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 48px 0 24px; }
.box__pic { position: relative; display: block; max-width: 100%; }
.box__pic .pic__show { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; }
.box__pic .pic__save { object-fit: contain; }
.box__fig figcaption { color: #eee6e9; font-size: 15px; text-align: center; max-width: 40em; }
.box__fig figcaption:empty { display: none; }
.box__fig figcaption small { display: inline-block; margin-top: 6px; font-size: 13.5px; opacity: .75; }
.box__fig figcaption b { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: #eee6e9; color: var(--ink); font-size: 13px; }
.box button { background: none; border: 0; color: #fff; font: 400 40px/1 var(--body); width: 56px; height: 56px; cursor: pointer; justify-self: center; }
.box__close { position: absolute; top: 8px; right: 8px; }

/* ---------- full film (a project's whole video, with sound) ---------- */
.film { position: fixed; z-index: 110; inset: 0; background: rgba(24, 20, 27, .96); display: grid; place-items: center; padding: 60px 16px 24px; }
.film[hidden] { display: none; }
.film video { display: block; width: min(100%, 1280px, calc((100svh - 100px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; }
.film__close { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: #fff; font: 400 40px/1 var(--body); width: 56px; height: 56px; cursor: pointer; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .big__top { grid-template-columns: minmax(0, 1fr); }
  .big .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big__bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .more > .small { flex-basis: 50%; }
}
@media (max-width: 640px) {
  .more { padding: 0; }
  .more > .small { flex-basis: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { height: 58px; }
  .nav__name { font-size: 17px; }
  .hero__inner { padding-bottom: 92px; }
  .hero__down { right: auto; left: var(--side); }
  .points { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .facts > div { padding-right: 12px; }
  .facts dd { font-size: 16px; }
  .wall, .wall__col { gap: 10px; }
  .box { grid-template-columns: 44px minmax(0, 1fr) 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__down span { animation: none; }
}
@media (max-width: 520px) { .big .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
