/* Gavin Wye design system (brand.gvn.sh): paper, charcoal, Barlow, square corners, one accent (Violet, nearest to Deel purple), no gradient. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); }

:root {
  --paper: #f7f5f0; --charcoal: #2a2a2a; --ink: #1a1a1a; --body-grey: #3a3836; --line: #dcdbd9; --white: #ffffff; --chip: #ebe9e4;
  --accent: #8300ff; --on-accent: #ffffff; --accent-text: #8300ff;
  --head: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--charcoal); font: 400 20px/1.45 var(--body); padding-inline: 16px; }
.wrap { max-width: 1120px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: 28px; }
h3 { font-size: 30px; line-height: 1.1; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px var(--ink); }
code { font-size: .85em; background: var(--chip); padding: 1px 6px; }
mark { background: #ecdcff; color: var(--ink); padding: 0 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font: 700 18px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }

.top { border-bottom: 2px solid var(--charcoal); margin-inline: -16px; padding-inline: 16px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 14px; font: 700 24px/1 var(--head); color: var(--charcoal); text-decoration: none; }
.for { font: 600 16px var(--body); color: var(--body-grey); }

.hero { padding-block: 56px 40px; }
.hero h1 { max-width: 16ch; }
.lede { font-size: 24px; color: var(--body-grey); max-width: 38ch; margin-top: 20px; }
.video { position: relative; margin-top: 40px; aspect-ratio: 16 / 9; background: var(--charcoal); overflow: hidden; border-bottom: 8px solid var(--accent); }
.video video { width: 100%; height: 100%; display: block; background: var(--charcoal); opacity: 0; }
.video.has-video video { opacity: 1; }
.video-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; color: #fff; padding: 24px; pointer-events: none; }
.video-fallback b { font: 700 40px/1 var(--head); }
.video-fallback span { color: #d6d4d0; font-size: 18px; }
.video-fallback code { background: #3e3d3d; color: #fff; }
.video.has-video .video-fallback { display: none; }

.grid-sec { padding-block: 24px 80px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 2px solid var(--charcoal); border-top: 8px solid var(--accent); padding: 24px; color: var(--charcoal); text-decoration: none; min-height: 320px; }
.num { font: 700 18px/1 var(--head); letter-spacing: .12em; color: var(--accent-text); }
.meta { font-size: 16px; color: var(--body-grey); }
.prob { font-size: 18px; line-height: 1.4; }
.prob b { font: 700 16px var(--head); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.more { margin-top: auto; font: 700 20px var(--head); color: var(--accent-text); }
.card.wide { margin-top: 24px; min-height: 0; }

.project { padding-block: 32px 64px; }
.crumb { margin-bottom: 24px; font-weight: 600; }
.project h1 { max-width: 20ch; }
.po { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.po section { background: var(--white); border: 2px solid var(--charcoal); padding: 24px; }
.po section.out { border-top: 8px solid var(--accent); }
.po h2 { font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.po p { font-size: 26px; line-height: 1.3; color: var(--charcoal); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
figure { margin: 0; }
figure img { width: 100%; height: auto; display: block; border: 2px solid var(--line); background: var(--white); }
figcaption { font-size: 16px; color: var(--body-grey); margin-top: 8px; }
.ph div { aspect-ratio: 16 / 10; display: grid; place-content: center; background: var(--chip); border: 2px dashed #c9c7c2; color: var(--body-grey); font: 700 22px var(--head); }
.body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 56px; }
.body h2 { margin-bottom: 8px; }
.body p { color: var(--body-grey); }
.note { margin-top: 48px; font-size: 16px; color: var(--body-grey); border-left: 8px solid var(--accent); padding-left: 16px; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--charcoal); font: 700 22px var(--head); }
.pager a { text-decoration: none; }

footer { border-top: 2px solid var(--charcoal); margin-inline: -16px; padding: 32px 16px 56px; font-size: 16px; color: var(--body-grey); }
footer p + p { margin-top: 8px; }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  body { font-size: 18px; }
  .grid, .po { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 21px; }
  .po p { font-size: 22px; }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.brand img { height: 26px; width: auto; display: block; }
.brand .x { color: var(--body-grey); font: 400 22px/1 var(--body); }

/* Cards are not links, so their text can be selected (for Notis). Only the title and "See the work" are links. */
.card h3 a { color: var(--charcoal); text-decoration: none; }
.card h3 a:hover { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.card .more { align-self: flex-start; text-decoration: none; padding: 8px 12px; margin: auto 0 0 -12px; border: 2px solid transparent; transition: background-color .15s; }
.card .more:hover { background: var(--accent); color: var(--on-accent); }
figure.wide { grid-column: 1 / -1; }
figure.wide figcaption { font-size: 20px; color: var(--charcoal); max-width: 70ch; margin-top: 12px; }
