/* Big Bird capabilities, V5: built straight off the deck */

:root {
  --orange: #EC572F;
  --orange-deep: #E6541C;
  --mustard: #F2AE46;
  --amber: #E8920A;
  --teal: #038780;
  --teal-dark: #2D6A64;
  --sky: #3C6E79;
  --aqua: #ABE4E0;
  --purple: #6B2884;
  --navy: #294A51;
  --cream: #F0E6DA;
  --cream-2: #FFEBD4;
  --paper: #E9E1D6;
  --ink: #1A1411;
  --ink-2: #3A322C;

  --f-display: "Young Serif", "HV Analogue", Georgia, serif;
  --f-italic: "Instrument Serif", "HV Analogue Italic", Georgia, serif;
  --f-body: "Anaheim", "Helvetica Neue", Arial, sans-serif;

  --gutter: max(20px, 4.2vw);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --tab-h: clamp(30px, 2.7vw, 44px);
  --tab-step: 5px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: clamp(17px, 1.25vw, 21px); line-height: 1.42;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { padding-inline: var(--gutter); max-width: 1920px; margin-inline: auto; }

/* Grounds: the deck's paper stocks */
.paper { background: var(--paper) url(assets/img/deck/paper-warm.jpg) center / 900px repeat; }
.grain-orange { background: var(--orange-deep) url(assets/img/deck/paper-tangerine.jpg) center / 900px; background-blend-mode: multiply; }
.grain-amber { background: var(--amber) url(assets/img/deck/paper-tangerine.jpg) center / 900px; }
.grain-ink { background: #2A221D url(assets/img/deck/paper-warm.jpg) center / 900px; background-blend-mode: multiply; }
.grain-mustard { background: var(--mustard) url(assets/img/deck/paper-tangerine.jpg) center / 900px; background-blend-mode: luminosity; }
.grain-teal { background: var(--sky); }
.grain-teal-dark { background: var(--teal-dark) url(assets/img/deck/paper-warm.jpg) center / 900px; background-blend-mode: multiply; }

/* Type */
.display {
  font-family: var(--f-display); font-weight: 400; line-height: .9; letter-spacing: -.01em;
  color: var(--cream); text-wrap: balance;
}
.display--orange { color: var(--orange); }
.display--ink { color: var(--ink); }
.t-orange { color: var(--orange); }
.caps {
  font-family: var(--f-italic); font-style: italic; text-transform: uppercase;
  line-height: .98; letter-spacing: 0;
}
.caps--orange { color: var(--orange); }
.tbd { opacity: .62; font-style: italic; }

/* Cut-out letters: real clippings from the deck, stuck on */
.cut {
  display: inline-block; width: auto; height: .8em; vertical-align: -.06em; margin-inline: .015em;
  rotate: var(--r, 0deg); filter: drop-shadow(.02em .035em .02em rgba(26, 20, 17, .28));
  transition: transform .15s var(--ease);
}
/* a word with a clipping in it never breaks around the clipping, loaded or not */
.word { white-space: nowrap; }
.cut--o { --r: -4deg; height: .74em; vertical-align: -.04em; }
.cut--q { --r: 6deg; height: .98em; vertical-align: -.1em; margin-left: .04em; }
.cut--sm { height: 1.05em; vertical-align: -.16em; }
.cut--e { --r: -5deg; height: .9em; vertical-align: -.12em; }
.cut--p { --r: 4deg; height: .92em; vertical-align: -.3em; }
@media (hover: hover) { .cut:hover { transform: translateY(-.05em) rotate(-3deg) scale(1.05); } }

/* Seams: the next ground is a sheet torn along its top edge, laid over the last */
.seam { position: relative; z-index: 6; height: 0; pointer-events: none; }
.seam canvas { position: absolute; left: 0; bottom: 0; width: 100%; height: 52px; display: block; }
.seam--down canvas { top: 0; bottom: auto; }
.seam__face { position: absolute; left: 0; width: 100%; box-sizing: border-box; border: 0 solid transparent; background-clip: border-box; pointer-events: none; }

/* Line masks for display entrances */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; will-change: transform; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
  transition: transform .35s var(--ease), background-color .25s;
}
.bar.is-hidden { transform: translateY(-110%); }
.bar.is-solid { background: rgba(233, 225, 214, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bar__mark { display: block; }
.bar__logo { position: relative; display: block; width: 112px; transition: opacity .2s, transform .25s var(--ease); }
.bar__logo img { width: 100%; height: auto; }
.bar.at-top .bar__logo { opacity: 0; transform: translateY(-6px); }
.bar__nav { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; font-weight: 600; font-size: 16px; }
.bar__nav a { text-decoration: none; position: relative; }
.bar__nav a:not(.bar__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.bar__nav a:hover::after { transform: scaleX(1); }
.bar__cta { background: var(--orange); color: var(--cream-2); padding: 8px 14px; border-radius: 999px; transition: background-color .15s; }
.bar__cta:hover { background: var(--ink); }
.bar.on-dark:not(.is-solid) { color: var(--cream); }
@media (max-width: 720px) { .bar__nav a:not(.bar__cta) { display: none; } }

/* 1 · Cover */
.cover { position: relative; background: var(--orange-deep) url(assets/img/deck/paper-tangerine.jpg) center / 900px; background-blend-mode: multiply; min-height: 100svh; display: grid; grid-template-rows: 1fr auto 1.15fr; overflow: hidden; }
.cover__band { position: relative; z-index: 2; pointer-events: none; background: var(--cream-2); height: clamp(22px, 2.6vw, 50px); }
.cover__logo { position: absolute; left: 50%; top: 50%; width: min(46vw, 820px); translate: -50% -54%; }
.cover__logo img { width: 100%; height: auto; }
.eyes { position: absolute; inset: 0; width: 100%; height: 100%; }
.pupil { fill: var(--ink); }
.eyes.blink .pupil { animation: blink .18s ease-in-out; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 50% { transform: scaleY(.1); } }
.cover__photo { position: relative; overflow: hidden; }
.cover__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.cover__note { position: absolute; z-index: 3; left: var(--gutter); bottom: max(20px, env(safe-area-inset-bottom)); color: var(--cream-2); font-weight: 600; font-size: 15px; text-shadow: 0 1px 2px rgba(10, 14, 8, .7), 0 0 14px rgba(10, 14, 8, .55); }
@media (max-width: 720px) { .cover__logo { width: 80vw; } .cover { grid-template-rows: 1fr auto 1.4fr; } }

/* The cover's golf pencil: it writes who this is for, then the reader can pick it up */
.cover__top { position: relative; }
.cover__ink, .cover__doodle { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cover__doodle { transition: opacity .2s; touch-action: auto; }
.cover__doodle.is-wiping { opacity: 0; }
.cover__top.can-write .cover__doodle { cursor: none; }
.pencil { position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; pointer-events: none; --pw: clamp(104px, 10vw, 168px); }
.pencil > svg { position: absolute; left: 0; top: 0; width: var(--pw); height: auto; overflow: visible; transform-origin: 0 0; will-change: transform; }
.pencil__shadow { fill: var(--ink); filter: blur(2.5px); }
.mulligan {
  position: absolute; z-index: 5; left: var(--gutter); bottom: clamp(18px, 2.4vw, 34px); border: 0; cursor: pointer;
  background: var(--cream-2); color: var(--ink); font-weight: 700; font-size: 14px; padding: 7px 14px 8px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(26, 20, 17, .18), 0 6px 14px rgba(26, 20, 17, .16);
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s, background-color .15s, color .15s;
}
.mulligan.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease), background-color .15s, color .15s; }
.mulligan:hover { background: var(--ink); color: var(--cream-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 2 · Introductions */
.intros { position: relative; overflow: hidden; padding-block: clamp(96px, 9vw, 150px) clamp(140px, 15vw, 250px); }
.intros__clouds { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .95; }
.intros__clouds.is-printed, .days__sky.is-printed { opacity: 1; mix-blend-mode: normal; filter: none; }
.intros .wrap { position: relative; }
.intros__h { text-align: center; font-size: clamp(56px, 9.6vw, 185px); margin-bottom: clamp(32px, 4vw, 64px); }
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(28px, 3.4vw, 56px) clamp(12px, 2vw, 32px); max-width: 1320px; margin-inline: auto; list-style: none; padding: 0; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { display: grid; justify-items: center; text-align: center; gap: 4px; }
/* a plain round portrait (several headshots arrive pre-cropped round): warm black and white, colour comes up on hover */
.person__ph { position: relative; width: clamp(120px, 11vw, 190px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; margin-bottom: 14px; background: rgba(10, 30, 32, .3); box-shadow: 0 18px 28px -16px rgba(10, 30, 32, .6); }
.person__ph { cursor: grab; touch-action: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.person__ph.is-aim { cursor: grabbing; }
.person__ph img { pointer-events: none; -webkit-user-drag: none; }
.person__ph.is-aim img, .person__ph.shot img { filter: none; }
.shot { position: fixed; z-index: 60; margin: 0; pointer-events: none; will-change: transform; }
.aim { position: fixed; inset: 0; z-index: 59; width: 100vw; height: 100vh; pointer-events: none; }
.person__ph img { width: 100%; height: 100%; object-fit: cover; scale: 1.08; filter: grayscale(1) sepia(.12) contrast(1.06); transition: filter .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .person:hover .person__ph img { filter: grayscale(0) sepia(0) contrast(1); }
}
.person b { font-family: var(--f-display); font-weight: 400; color: var(--cream-2); font-size: clamp(19px, 1.5vw, 28px); line-height: 1.1; text-shadow: 0 1px 12px rgba(10, 30, 32, .45); }
.person small { color: var(--cream-2); font-size: 14px; text-shadow: 0 1px 10px rgba(10, 30, 32, .5); }

/* 3 · Why do we play the game */
.why { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: center; padding-block: clamp(150px, 14vw, 220px) clamp(190px, 19vw, 320px); }
.why__inner { position: relative; z-index: 2; display: grid; justify-items: center; pointer-events: none; }
.why__inner > * { pointer-events: auto; }
.why__h { font-size: clamp(48px, 6.4vw, 124px); line-height: 1; }
.why__h .ln { padding-bottom: .24em; margin-bottom: -.24em; }
.why__h br { display: block; }
.why__h .ln:nth-child(2) { padding-left: 0; }
.why__sub { color: var(--cream); font-size: clamp(22px, 2.5vw, 48px); max-width: 17em; margin-top: .8em; align-self: start; justify-self: center; }
.why__sub em { color: var(--mustard); }

/* A table of prints from the work, scattered round the question; pick one up and move it */
.why__table { position: absolute; inset: 0; pointer-events: none; }
.print { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: var(--w); margin: 0; pointer-events: auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.print__card {
  background: #FBF5EC; padding: 6% 6% 0; rotate: var(--r);
  box-shadow: 0 1px 1px rgba(26, 20, 17, .2), 0 14px 26px -12px rgba(26, 20, 17, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), rotate .2s var(--ease);
}
.print__card img { display: block; width: 100%; height: auto; filter: saturate(.9) contrast(1.04); }
.print figcaption { display: flex; padding: .55em 0 .7em; }
.print figcaption svg { height: clamp(12px, 1.05vw, 17px); width: auto; overflow: visible; fill: none; stroke: #3A322C; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.print path { stroke-dasharray: 100; }
@media (hover: hover) {
  .print:hover .print__card { transform: translateY(-6px) scale(1.04); rotate: calc(var(--r) * .4); box-shadow: 0 1px 1px rgba(26, 20, 17, .16), 0 26px 40px -14px rgba(26, 20, 17, .5); }
}
.print.is-held { cursor: grabbing; }
.print.is-held .print__card { transform: translateY(-10px) scale(1.07); rotate: 0deg; box-shadow: 0 1px 1px rgba(26, 20, 17, .14), 0 36px 50px -16px rgba(26, 20, 17, .45); }

/* The shot: a tracer climbs from off the page and comes down as the dot of the question mark */
@media (max-width: 719px) {
  .why { padding-block: 210px 230px; }
  .why__h { font-size: 14.6vw; }
  .print { --w: 30vw !important; }
  .print--a { --x: 3% !important; --y: 4% !important; }
  .print--c { --x: 64% !important; --y: 3% !important; --w: 27vw !important; }
  .print--d { --x: 5% !important; --y: 79% !important; }
  .print--f { --x: 68% !important; --y: 77% !important; --w: 25vw !important; }
  .print--b, .print--e { display: none; }
  .print figcaption svg { height: 10px; }
}

/* 4 · Days: three notes on the sky, one card for each part of the day; the sun sits where it would at that hour */
.days { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(110px, 10vw, 170px) clamp(100px, 9vw, 150px); color: var(--ink); }
.days__sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; mix-blend-mode: screen; opacity: .6; filter: grayscale(1) contrast(1.5) brightness(.85);
  /* the dot screen fades out before the closing copy, so the reading text sits on plain mustard */
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 68%); mask-image: linear-gradient(to bottom, #000 40%, transparent 68%); }
/* the day as a vintage course map: a printed poster on the mustard, three holes drawn in by script, and the scorecard carrying the copy */
.course { margin: 0 0 clamp(80px, 8vw, 130px); padding: clamp(18px, 2.4vw, 40px); background: #F6E9CF url(assets/img/deck/paper-warm.jpg) center / 700px; background-blend-mode: multiply; color: #2B2620; box-shadow: 0 1px 0 rgba(26, 20, 17, .1), 0 30px 60px -36px rgba(26, 20, 17, .55); outline: 1px solid rgba(43, 38, 32, .5); outline-offset: -12px; }
.course__head { text-align: center; padding-block: clamp(10px, 1.6vw, 22px) clamp(4px, 1vw, 12px); }
.course__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: .01em; color: #2B2620; }
.course__sub { margin-top: 8px; font-family: var(--f-italic); font-style: italic; font-size: clamp(16px, 1.2vw, 20px); color: rgba(43, 38, 32, .7); }
/* the map is three plates: relief under, the print multiplied onto the paper, and the shot lines on their own layer */
.course__plate { position: relative; }
.course__map { position: relative; display: block; width: 100%; height: auto; overflow: hidden; mix-blend-mode: multiply; }
.course__sheet, .course__relief, .course__shots, .course__wear { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.course__shots { will-change: transform; }
.course__card { width: 100%; border-collapse: collapse; margin-top: clamp(10px, 1.4vw, 20px); font-size: clamp(15px, 1.05vw, 18px); line-height: 1.35; font-weight: 500; }
.course__card th, .course__card td { border: 1px solid rgba(43, 38, 32, .35); padding: 10px 14px; text-align: left; vertical-align: top; }
.course__card thead th { font-weight: 600; font-size: .86em; color: rgba(43, 38, 32, .72); background: rgba(169, 185, 138, .22); }
.course__card tbody th { font-family: var(--f-display); font-weight: 400; font-size: 1.3em; line-height: 1.1; white-space: nowrap; }
.course__card td:nth-child(2) { font-family: var(--f-italic); font-style: italic; font-size: 1.1em; white-space: nowrap; }
.course__no { width: 3.2em; text-align: center !important; font-family: var(--f-display); font-size: 1.2em; }
@media (max-width: 700px) {
  .course__card thead { display: none; }
  .course__card, .course__card tbody, .course__card tr { display: block; }
  .course__card tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 4px; border-top: 1px solid rgba(43, 38, 32, .35); }
  .course__card th, .course__card td { border: 0; padding: 0; }
  .course__no { grid-row: span 3; width: auto; }
}
.days__body { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 72px); }
.days__body p { font-size: clamp(18px, 1.3vw, 22px); font-weight: 600; line-height: 1.42; color: var(--ink); max-width: 34em; }
.days__body p + p { margin-top: 1em; }
.days__body .days__your { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 2.8vw, 48px); line-height: 1; margin-top: .7em; max-width: 10em; }
.days__your em { font-family: var(--f-italic); font-style: italic; }
@media (max-width: 800px) {
  .days__body { grid-template-columns: 1fr; }
}

/* 5 · Origin */
.origin { padding-block: clamp(96px, 9vw, 160px) clamp(140px, 15vw, 260px); }
.origin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: start; }
.origin__h { font-size: clamp(52px, 6.2vw, 118px); line-height: .89; margin-bottom: clamp(32px, 6vw, 110px); }
.origin__photo { overflow: hidden; }
.origin__photo img { width: 100%; }
.origin__copy p { font-size: clamp(18px, 1.35vw, 25px); line-height: 1.38; max-width: 31em; }
.origin__copy p + p { margin-top: 1.05em; }
.origin__copy strong { color: var(--orange); font-weight: 700; }
@media (max-width: 800px) { .origin__grid { grid-template-columns: 1fr; } }

/* 6 · But how */
.how { color: var(--cream); padding-block: clamp(80px, 7vw, 120px) clamp(100px, 9vw, 160px); overflow: hidden; }
.how__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 80px); align-items: center; }
.how__h { font-size: clamp(64px, 9.6vw, 185px); line-height: .86; text-align: right; }
.how__copy { font-size: clamp(15px, 1.05vw, 19px); line-height: 1.45; max-width: 38em; }

/* The house: Summit House's agencies as a directory. Each row is the service an agency leads; the frame shows whoever you're on */
.house { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: clamp(28px, 3vw, 48px) clamp(32px, 5vw, 96px); margin-top: clamp(72px, 8vw, 140px); }
.house__head { grid-column: 2; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.house__sh { width: clamp(180px, 16vw, 280px); height: auto; filter: brightness(0) invert(.93) sepia(.18); }
.house__head p { max-width: 21em; font-family: var(--f-italic); font-style: italic; font-size: clamp(17px, 1.3vw, 23px); line-height: 1.15; text-align: right; }
.house__view { grid-column: 1; grid-row: 1 / 3; position: relative; margin: 0; align-self: start; aspect-ratio: 4 / 5; background: #FBF5EC; padding: clamp(10px, 1vw, 16px); box-shadow: 0 1px 1px rgba(26, 20, 17, .2), 0 26px 46px -20px rgba(8, 28, 26, .7); }
.house__img { position: absolute; inset: clamp(10px, 1vw, 16px); width: calc(100% - 2 * clamp(10px, 1vw, 16px)); height: calc(100% - 2 * clamp(10px, 1vw, 16px)); object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path .3s var(--ease); }
.house__img.is-on { z-index: 1; clip-path: inset(0 0 0 0); }
.house__img.was-on { clip-path: inset(0 0 0 0); transition: none; }
.house__list { grid-column: 2; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(240, 230, 218, .28); }
.hrow { border-top: 1px solid rgba(240, 230, 218, .28); }
.hrow__in {
  display: grid; grid-template-columns: clamp(110px, 10vw, 170px) minmax(0, 1fr) minmax(0, 11em); align-items: center; gap: clamp(16px, 2vw, 36px);
  padding-block: clamp(18px, 1.7vw, 28px); color: inherit; text-decoration: none; opacity: .5; transition: opacity .2s var(--ease);
}
.hrow.is-on .hrow__in { opacity: 1; }
.hrow__in:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.hrow__logo { display: flex; align-items: center; height: 2em; font-size: clamp(18px, 1.5vw, 26px); }
.hrow__logo img { height: var(--h, 1em); width: auto; max-width: 100%; filter: brightness(0) invert(.93) sepia(.18); }
.hrow__svc { font-family: var(--f-display); font-size: clamp(22px, 2vw, 36px); line-height: 1.05; text-wrap: balance; }
.hrow__what { display: grid; gap: .3em; justify-items: end; text-align: right; font-family: var(--f-italic); font-style: italic; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.1; }
.hrow__see { font-family: var(--f-body); font-style: normal; font-size: clamp(13px, .9vw, 15px); color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .hrow__in { cursor: pointer; } }
@media (max-width: 899px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__h { text-align: left; }
  .house { grid-template-columns: 1fr; grid-template-rows: none; }
  .house__head, .house__view, .house__list { grid-column: 1; grid-row: auto; }
  .house__head { flex-direction: column; align-items: start; gap: 12px; }
  .house__head p { text-align: left; }
  .house__view { aspect-ratio: 4 / 3; width: 100%; }
  .hrow__in { grid-template-columns: 1fr; gap: 8px; }
  .hrow__what { justify-items: start; text-align: left; }
}

/* 7 · What's par */
.par { display: grid; grid-template-columns: minmax(300px, 42%) minmax(0, 1fr); }
.par > * { min-width: 0; }
.par__photo { position: relative; overflow: hidden; min-height: 560px; border-right: clamp(10px, 1vw, 18px) solid var(--orange-deep); }
.par__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.par__rules { padding: clamp(110px, 10vw, 170px) var(--gutter) clamp(90px, 8vw, 140px); display: grid; gap: clamp(32px, 3.4vw, 52px); align-content: center; }
.par__title { margin-bottom: clamp(4px, 1vw, 16px); }
.par__title .display { color: var(--ink); font-size: clamp(52px, 5.6vw, 104px); line-height: .9; }
.par__sub { font-family: var(--f-italic); font-style: italic; font-size: clamp(22px, 1.9vw, 34px); line-height: 1.1; color: var(--ink-2); margin-top: .35em; }
@media (max-width: 800px) { .par { grid-template-columns: minmax(0, 1fr); } .par__photo { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 10px solid var(--orange-deep); } }
.rule-item { max-width: 32em; }
.rule-item h3 { font-family: var(--f-display); color: var(--orange); font-weight: 400; font-style: italic; font-size: clamp(26px, 2.3vw, 44px); line-height: 1; margin-bottom: .45em; }
.rule-item p { font-size: clamp(18px, 1.4vw, 26px); line-height: 1.36; }

/* 8 · Case studies: the title on the dark of the drawer; Dunlop, the first file, rises out of it */
.cases { position: relative; z-index: 0; overflow: hidden; padding-top: clamp(110px, 11vw, 190px); }
.cases__in { padding-bottom: clamp(90px, 9vw, 160px); }
.cases__h { font-size: clamp(72px, 11vw, 220px); line-height: .84; color: var(--cream); }

/* Case chapters: each is a file in its own colour, on paper that has been handled */
/* one even paper grain; the crumpled sheet that used to sit over it made light and dark patches across the band, and the docked tabs never matched the folder under them */
.chapter, .files__layer { --ground: url(assets/img/deck/paper-warm.jpg) 0 0 / 900px; }
.chapter {
  position: relative; z-index: 1; color: var(--cream-2);
  background: var(--ground), var(--band); background-blend-mode: multiply;
  box-shadow: 0 -14px 26px -16px rgba(26, 20, 17, .55);
}
/* the folder's cut edge catches the light, except where it runs up into the tab */
.chapter::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; pointer-events: none; background: rgba(255, 255, 255, .22);
  --m: linear-gradient(90deg, #000 var(--tab-x0, 0px), transparent var(--tab-x0, 0px), transparent var(--tab-x1, 0px), #000 var(--tab-x1, 0px));
  -webkit-mask: var(--m); mask: var(--m);
}
.chapter--wynn { --crease: -900px; }
.chapter--takomo { --crease: -1800px; color: var(--ink); }
.chapter--johnnie-o { --crease: -2700px; }
.chapter--mlb { --crease: -3600px; }
.chapter__head {
  position: relative; min-height: min(70svh, 720px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  padding-block: clamp(110px, 11vw, 190px) clamp(48px, 5vw, 88px);
}
.chapter__intro { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(24px, 4vw, 80px); align-items: start; width: 100%; }
.chapter__lead { display: grid; gap: clamp(14px, 1.4vw, 22px); max-width: 30em; }
.chapter__title { color: inherit; font-size: clamp(32px, 3vw, 44px); line-height: 1.04; }
.chapter__lede { font-size: clamp(17px, 1.2vw, 21px); line-height: 1.42; }
/* the file's contents, like the index card stapled inside a folder */
.chapter__index ol { border-top: 1px solid color-mix(in srgb, currentColor 32%, transparent); }
.chapter__index a {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 13px 0 14px; border-bottom: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  text-decoration: none; font-family: var(--f-display); font-size: clamp(19px, 1.45vw, 26px); line-height: 1.15;
}
.chapter__index a span { transition: transform .2s var(--ease); }
.chapter__index a::after { content: "\2192"; font-family: var(--f-body); font-weight: 600; opacity: 0; transform: translateX(-8px); transition: opacity .15s, transform .2s var(--ease); }
@media (hover: hover) {
  .chapter__index a:hover span { transform: translateX(10px); }
  .chapter__index a:hover::after { opacity: 1; transform: none; }
}
.chapter__index a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
/* a print of the study slides along under the pointer */
.peek {
  position: fixed; z-index: 40; left: 0; top: 0; width: clamp(200px, 17vw, 300px); aspect-ratio: 16 / 10; pointer-events: none;
  overflow: hidden; background: var(--cream-2); padding: 6px; box-shadow: 0 2px 4px rgba(26, 20, 17, .2), 0 18px 36px rgba(26, 20, 17, .28);
  opacity: 0; scale: .92; transition: opacity .18s, scale .22s var(--ease);
}
.peek.is-on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .chapter__intro { grid-template-columns: 1fr; } .chapter__head { min-height: 0; } }

/* Folder tabs: each chapter is a file; its tab docks under the nav as you pass it and the files stack */
.tabline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, .8vw, 12px); height: var(--tab-h); }
.ftab {
  grid-column: calc(var(--i) + 1); position: relative; isolation: isolate; height: var(--tab-h);
  display: flex; align-items: center; justify-content: center; padding: 5px clamp(10px, 1.2vw, 20px) 0;
  color: var(--ink); font-weight: 600; font-size: clamp(13px, 1.05vw, 17px); line-height: 1; text-decoration: none; white-space: nowrap;
}
/* the tab itself: sloped shoulders, rounded top corners, the folder's own paper */
.ftab::before {
  content: ""; position: absolute; inset: 0 0 -1px; z-index: -1;
  clip-path: polygon(0 100%, 7% 22%, 9% 8%, 12% 0, 88% 0, 91% 8%, 93% 22%, 100% 100%);
  background:
    url(assets/img/deck/paper-warm.jpg) calc(-1 * var(--tx, 0px)) calc(var(--tab-h) - var(--gy, 0px)) / 900px,
    var(--band);
  background-blend-mode: multiply;
}
/* a light catch along the tab's top edge */
.ftab::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; z-index: -1; background: rgba(255, 255, 255, .28);
}
/* a typed paper label stuck on the tab */
.ftab__label {
  display: block; padding: 4px 11px 5px; font-family: var(--f-display); font-weight: 400; font-size: 1.08em; letter-spacing: .01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  background: var(--cream-2) url(assets/img/deck/paper-warm.jpg) center / 600px; background-blend-mode: multiply;
  border-radius: 2px; box-shadow: 0 1px 0 rgba(26, 20, 17, .18), 0 0 0 1px rgba(26, 20, 17, .06);
}
.chapter > .tabline { position: absolute; z-index: 2; left: 0; right: 0; top: calc(-1 * var(--tab-h)); pointer-events: none; }
/* the tab casts the same shadow as the folder's edge beside it, so the two read as one sheet */
.chapter > .tabline .ftab, .files__layer .ftab { filter: drop-shadow(0 -3px 5px rgba(26, 20, 17, .2)); clip-path: inset(-16px -16px -1px -16px); }

.files { position: fixed; z-index: 45; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.files__back { position: absolute; left: 0; right: 0; top: 0; height: 0; background: rgba(233, 225, 214, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bar.over-files, .bar.over-files.on-dark:not(.is-solid) { color: var(--ink); background: rgba(233, 225, 214, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.files__layer { position: absolute; left: 0; right: 0; top: calc(var(--i) * var(--tab-step)); z-index: calc(var(--i) + 1); visibility: hidden; }
.files__layer.is-docked, .files__layer.is-near { visibility: visible; }
.files__layer .ftab { pointer-events: auto; transition: transform .12s var(--ease); }
.files__layer .ftab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .files__layer .ftab:hover { transform: translateY(-3px); } }
/* the top edge of each docked file, showing below the ones filed in front. The front file's edge carries on the paper
   of the folder scrolling under it (--gy), so tab, edge and folder read as one sheet; each file shades the ones behind it */
.files__edge {
  position: relative; display: block; height: 6px;
  background:
    url(assets/img/lab/crumple.jpg) 0 calc(var(--crease, 0px) - var(--gy, 0px)) / 100% auto repeat-y,
    url(assets/img/deck/paper-warm.jpg) 0 calc(-1 * var(--gy, 0px)) / 900px,
    var(--band);
  background-blend-mode: soft-light, multiply;
}
.files__edge::before, .files__edge::after {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
  --m: linear-gradient(90deg, #000 var(--tab-x0, 0px), transparent var(--tab-x0, 0px), transparent var(--tab-x1, 0px), #000 var(--tab-x1, 0px));
  -webkit-mask: var(--m); mask: var(--m);
}
.files__edge::before { top: 0; height: 1px; background: rgba(255, 255, 255, .22); }
.files__edge::after { bottom: 100%; height: 12px; background: linear-gradient(to top, rgba(26, 20, 17, .2), rgba(26, 20, 17, .07) 45%, rgba(26, 20, 17, 0)); }
@media (max-width: 600px) { .tabline { gap: 3px; padding-inline: 8px; } .ftab { font-size: 10px; padding-inline: 2px; } .ftab__label { padding: 3px 3px 4px; letter-spacing: 0; } }

/* A wall at the head of each file: the work laid out as two rows of prints. With motion the stage holds while you
   scroll and the rows slide past at the pace of the scroll; without it, the rows scroll sideways by hand. */
.wall { --h: clamp(150px, 30vw, 300px); }
.wall__stage { overflow-x: auto; overscroll-behavior-x: contain; padding: 0 0 clamp(40px, 5vw, 96px); scrollbar-width: none; }
.wall__stage::-webkit-scrollbar { display: none; }
.wall__track { display: grid; gap: clamp(10px, 1vw, 16px); width: max-content; padding-inline: var(--gutter); }
.wall__row { display: flex; gap: clamp(10px, 1vw, 16px); }
.wall__row + .wall__row { padding-left: calc(var(--h) * .6); }
.wall__card img { height: var(--h); width: auto; max-width: none; box-shadow: 0 2px 4px rgba(26, 20, 17, .2), 0 16px 32px -14px rgba(26, 20, 17, .45); }
/* held on screen, the two rows fill it edge to edge, from under the docked tabs to the bottom of the screen */
.wall.is-track { --top: calc(var(--tab-h) + 70px); --gap: 8px; --h: calc((100svh - var(--top) - var(--gap)) / 2); }
.wall.is-track .wall__stage { position: sticky; top: 0; height: 100svh; overflow: clip; padding: var(--top) 0 0; }
.wall.is-track .wall__track { gap: var(--gap); padding-inline: 0; will-change: transform; }
.wall.is-track .wall__row { gap: var(--gap); }
.wall.is-track .wall__row + .wall__row { padding-left: 0; }
.wall.is-track .wall__card img { box-shadow: none; }

/* A study: copy holds while the work scrolls past */
.study { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 80px); padding: clamp(40px, 5vw, 96px) var(--gutter); border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.study__text { position: sticky; top: clamp(120px, 16vh, 170px); align-self: start; max-width: 30em; }
.study { scroll-margin-top: 90px; }
.study h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2vw, 34px); line-height: 1.06; margin-bottom: .6em; text-wrap: balance; }
.study__text p { font-size: clamp(17px, 1.25vw, 22px); line-height: 1.4; }
.study__text p + p { margin-top: .9em; }
.study__text .study__sum { font-size: clamp(18px, 1.3vw, 22px); line-height: 1.38; text-wrap: pretty; }
.points { margin-top: 1.1em; display: grid; gap: .6em; font-size: clamp(16px, 1.05vw, 18px); line-height: 1.45; }
.points li { position: relative; padding-left: 1.25em; text-wrap: pretty; }
.points li::before { content: ""; position: absolute; left: 0; top: .7em; width: .7em; height: 2px; background: currentColor; opacity: .55; }
.tags { margin-top: 1.4em; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tags li { font-weight: 600; font-size: clamp(14px, .95vw, 16px); padding: 2px 0 3px; border-bottom: 2px solid color-mix(in srgb, currentColor 45%, transparent); }

.media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1vw, 16px); align-content: start; }
.m { position: relative; overflow: hidden; background: rgba(26, 20, 17, .14); box-shadow: 0 1px 2px rgba(26, 20, 17, .18); }
.m--wide { grid-column: 1 / -1; }
.m img, .m video { width: 100%; height: auto; }
.m--plate { display: grid; place-items: center; padding: clamp(28px, 5vw, 80px); background: var(--cream-2) url(assets/img/deck/paper-warm.jpg) center / 900px; background-blend-mode: multiply; }
.m--plate img { width: min(100%, 760px); }
.m--wide video { aspect-ratio: 16 / 9; object-fit: cover; }
.m--tall { aspect-ratio: 9 / 16; max-height: 86svh; }
.m--tall video, .m--tall img { width: 100%; height: 100%; object-fit: cover; }
/* paired halves of different shapes share one crop; very tall stills never outgrow the screen */
.m--port { aspect-ratio: 4 / 5; }
.m--port video, .m--port img { width: 100%; height: 100%; object-fit: cover; }
.m--wide:not(.m--frame) img { max-height: 86svh; object-fit: cover; }
.m--crop img { aspect-ratio: 4 / 3; object-fit: cover; }
.m--frame { background: #fff; padding: clamp(8px, 1vw, 16px); }
.m figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); pointer-events: none; }
.m--frame figcaption { position: static; color: var(--ink-2); text-shadow: none; padding-top: 8px; }
/* two halves side by side share one shape, so neither leaves an empty band under it */
.m--fill img, .m--fill video { width: 100%; height: 100%; object-fit: cover; }
/* a film playing with sound in place: its own controls, nothing laid over them */
.m.is-sound figcaption, .m.is-sound .m__play { display: none; }
.m--hold { aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1.5px dashed color-mix(in srgb, currentColor 40%, transparent); background: transparent; box-shadow: none; }
.m--hold span { opacity: .7; font-style: italic; }
.m__play {
  position: absolute; z-index: 3; right: 12px; bottom: 10px; border: 0; cursor: pointer;
  background: var(--cream-2); color: var(--ink); font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 999px;
  transition: background-color .15s, transform .15s var(--ease);
}
.m__play:hover { background: var(--orange); color: var(--cream-2); }
.m__play:active { transform: scale(.96); }
.m__inner { will-change: transform; }

/* room at the foot of each file for the next tab */
.chapter > .study:last-child { padding-bottom: clamp(110px, 10vw, 180px); }

@media (max-width: 860px) {
  .study { grid-template-columns: 1fr; }
  .study__text { position: static; }
  .m--tall { max-height: none; }
}

/* 14 · Let's tee it up: the deck's layout, each half centred in the space beside the photo */
.tee { --pw: min(30vw, 400px); position: relative; padding-block: clamp(110px, 10vw, 170px) clamp(90px, 8vw, 140px); overflow: hidden; }
.tee__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr var(--pw) 1fr; align-items: center; }
.tee__h {
  position: absolute; z-index: 2; inset: 0; display: grid; grid-template-columns: 1fr var(--pw) 1fr; align-items: center; justify-items: center;
  padding-inline: var(--gutter); font-size: clamp(40px, 4.6vw, 88px); line-height: 1; color: var(--ink); pointer-events: none;
}
.tee__l { grid-column: 1; pointer-events: auto; }
.tee__r { grid-column: 3; pointer-events: auto; }
.tee__photo { grid-column: 2; grid-row: 1; width: 100%; box-shadow: 0 2px 3px rgba(26, 20, 17, .18), 0 22px 44px rgba(26, 20, 17, .2); }
.tee__photo img { width: 100%; }
.tee__oval {
  grid-column: 2; grid-row: 1; align-self: end; justify-self: center; position: relative; z-index: 3;
  width: min(15vw, 190px); margin-bottom: calc(var(--pw) * -.12); rotate: -6deg;
  filter: drop-shadow(2px 4px 3px rgba(26, 20, 17, .25)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
@media (hover: hover) { .tee__oval:hover { transform: rotate(5deg) scale(1.04); } }
.tee__contacts { position: relative; z-index: 1; }
.tee__contacts { display: flex; justify-content: center; gap: clamp(28px, 6vw, 120px); margin-top: clamp(72px, 8vw, 120px); }
.contact { display: grid; gap: 2px; color: var(--ink); text-align: center; }
.contact b { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2vw, 38px); }
.contact__mail { display: inline-flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; }
.contact__mail a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .2s var(--ease); }
@media (hover: hover) { .contact__mail a:hover { background-size: 0 1.5px; background-position: 100% 100%; } }
.contact__copy { border: 0; cursor: pointer; background: rgba(26, 20, 17, .12); color: var(--ink); border-radius: 999px; padding: 3px 10px 4px; font-size: 13px; font-weight: 700; transition: background-color .15s, color .15s; }
.contact__copy:hover, .contact__copy.is-done { background: var(--ink); color: var(--cream-2); }
@media (max-width: 560px) { .tee__contacts { flex-direction: column; align-items: center; gap: 36px; } }
/* Footer */
.foot { background: var(--ink); color: var(--cream); padding-block: clamp(64px, 7vw, 110px) clamp(28px, 3vw, 44px); }
.foot__in { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(40px, 5vw, 72px) 48px; }
.foot__logo { position: relative; display: block; width: clamp(220px, 26vw, 420px); }
.foot__logo img { width: 100%; height: auto; }
.foot__nav { justify-self: end; display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.4vw, 36px); font-weight: 600; }
.foot__nav a, .foot__fine a { color: var(--cream); text-decoration: none; transition: color .15s; }
.foot__nav a:hover { color: var(--mustard); }
.foot__sh { display: flex; align-items: center; gap: 14px; font-size: 15px; padding-top: 22px; border-top: 1px solid rgba(240, 230, 218, .18); }
.foot__sh img { width: clamp(124px, 9vw, 156px); height: auto; filter: invert(1) sepia(.2); }
.foot__fine { justify-self: end; font-size: 14px; color: rgba(240, 230, 218, .78); padding-top: 22px; border-top: 1px solid rgba(240, 230, 218, .18); width: 100%; text-align: right; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } .foot__nav, .foot__fine { justify-self: start; text-align: left; } .foot__fine { border-top: 0; padding-top: 0; } }
.lift { display: inline-block; white-space: pre; will-change: transform; }
@media (max-width: 760px) {
  .tee { --pw: 72vw; }
  .tee__grid { grid-template-columns: 1fr; justify-items: center; }
  .tee__h { position: static; grid-template-columns: 1fr; gap: .15em; margin-bottom: 28px; font-size: clamp(40px, 12vw, 64px); }
  .tee__l, .tee__r { grid-column: 1; }
  .tee__photo, .tee__oval { grid-column: 1; grid-row: 2; }
  .tee__photo { width: var(--pw); }
  .tee__oval { width: 40vw; }
}

/* Player */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.nw { white-space: nowrap; }
