/* Caden Wakefield Portfolio — front end.
   Breakpoint: 720px (mobile below). Tokens from the design handoff. */

:root {
	--ink: #0D0D0C;
	--paper: #F1EFEA;
	--page: #ECEAE4;
	--ph: #D9D6CF;
	--dark: #1F1E1C;
	--dark2: #171615;
	--bezel: #262523;
	--muted: #76726B;
	--muted2: #4A4741;
	--hair: rgba(13, 13, 12, .16);
	--sp: clamp(20px, 3vw, 48px);
	--sec: clamp(64px, 7vw, 128px); /* one spacing value for every gap above/below a section's text */
	--sec-g: calc(var(--sec) - 12px); /* same, minus the 12px tile gap of the page stack */
	--shadow: 0 1px 14px rgba(0, 0, 0, .35);
	--t1: #FF3B0A;
	--t2: #FFB13B;
	--on: #0D0D0C;
}

html, body { margin: 0; padding: 0; background: var(--ink); color: var(--paper); -webkit-font-smoothing: antialiased; }
body { font-family: 'Switzer', sans-serif; font-feature-settings: 'tnum'; min-height: 100vh; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }

/* Image slots */
.cw-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 13px; font-weight: 500; color: #8A867E; }
.cw-ph-empty { position: absolute; inset: 0; }
.tile { position: relative; overflow: hidden; background: var(--ph); }
[data-parallax] > :first-child { will-change: transform; }

/* ---------- Shared header (project + info) ---------- */
.site-name {
	position: fixed; z-index: 50; top: 44px; left: 50%; transform: translate(-50%, -50%);
	font-family: 'Array Wide', sans-serif; font-weight: 700; text-transform: uppercase; white-space: nowrap; line-height: 1;
	font-size: clamp(26px, 2.6vw, 42px); color: var(--paper); mix-blend-mode: difference;
}
.site-nav {
	position: fixed; z-index: 50; top: 30px; right: 36px; display: flex; gap: 24px;
	font-size: 17px; font-weight: 500; letter-spacing: -.01em; mix-blend-mode: difference;
}
.site-nav a, .site-cats a { color: var(--paper); transition: opacity .25s; }
/* Category toggle: top left on every page, same type as Work / Info. */
.site-cats {
	position: fixed; z-index: 50; top: 30px; left: 36px; display: flex; gap: 24px;
	font-size: 17px; font-weight: 500; letter-spacing: -.01em; mix-blend-mode: difference;
}
.site-cats a.dim { opacity: .5; }
.site-cats a.dim:hover { opacity: 1; }
.site-nav a.dim { opacity: .5; }
.site-nav a.dim:hover { opacity: 1; }

/* ---------- Home ---------- */
.cw-home .stage { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
.stage-t2 { position: absolute; inset: 0; background-color: var(--t2); transition: background-color 1s ease; }
.stage-t1 {
	position: absolute; inset: 0; background-color: var(--t1); transition: background-color 1s ease;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.stage-inner {
	position: absolute; inset: 12px; background: var(--ink); overflow: hidden; cursor: pointer; outline: none;
	transition: opacity .35s ease, inset 1s cubic-bezier(.2, .8, .2, 1);
}
.cw-home.is-flash .stage-inner { inset: 0; }
.cw-home.is-switching .stage-inner { opacity: 0; }
.slide { position: absolute; inset: 0; background: var(--dark2); color: #6E6B66; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.slide.on { opacity: 1; }
.slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .cw-ph { color: #6E6B66; }
.stage-shade { position: absolute; inset: 0; background: rgba(8, 8, 7, .22); pointer-events: none; }

.flash { position: fixed; inset: 0; z-index: 40; opacity: 0; pointer-events: none; }
.cw-home.is-flashing .flash { opacity: 1; pointer-events: auto; }
.frame { position: absolute; inset: 0; opacity: 0; }
.frame.on { opacity: 1; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flash-shade { position: absolute; inset: 0; background: rgba(8, 8, 7, .32); pointer-events: none; }

.home-name {
	position: fixed; z-index: 50; top: 44px; left: 50%; transform: translate(-50%, -50%);
	font-family: 'Array Wide', sans-serif; font-weight: 700; text-transform: uppercase; white-space: nowrap; line-height: 1;
	font-size: clamp(26px, 2.6vw, 42px); color: var(--paper); mix-blend-mode: difference; cursor: pointer;
	transition: top 1.15s cubic-bezier(.75, 0, .15, 1), left 1.15s cubic-bezier(.75, 0, .15, 1), font-size 1.15s cubic-bezier(.75, 0, .15, 1);
}
.cw-home.is-flash .home-name { top: 50%; left: var(--name-left, 28%); font-size: clamp(28px, 3.4vw, 60px); }
.home-measure {
	position: fixed; left: 0; top: 0; visibility: hidden; pointer-events: none;
	font-family: 'Array Wide', sans-serif; font-weight: 700; text-transform: uppercase; white-space: nowrap; line-height: 1; font-size: clamp(28px, 3.4vw, 60px);
}
.home-blurb {
	position: fixed; z-index: 50; top: 50%; left: var(--desc-left, 56%); width: max-content; max-width: min(520px, max(34vw, 300px));
	text-align: left; font-weight: 400; font-size: clamp(22px, 2.5vw, 40px); line-height: 1.05; letter-spacing: -.02em; color: var(--paper);
	text-wrap: balance; pointer-events: none; transform: translateY(75vh); opacity: 0;
	transition: transform 1s cubic-bezier(.6, 0, .85, .35), opacity .9s ease .1s;
}
.cw-home.is-flash .home-blurb { transform: translateY(-50%); opacity: 1; }
/* Snap the intro layout into place without animating (frames keep their crossfades). */
.cw-home.no-anim .home-name, .cw-home.no-anim .home-blurb, .cw-home.no-anim .stage-inner,
.cw-home.no-anim .stage-t1, .cw-home.no-anim .stage-t2, .cw-home.no-anim .chrome, .cw-home.no-anim .fade, .cw-home.no-anim .slide { transition: none !important; }
.cw-home.flash-out .flash { transition: opacity .6s ease; }

.chrome { opacity: 0; pointer-events: none; transition: opacity .7s ease .15s; color: var(--paper); text-shadow: var(--shadow); }
.cw-home.is-done .chrome { opacity: 1; pointer-events: auto; }
.cw-home:not(.is-done) .chrome * { pointer-events: none !important; }

.home-nav { position: fixed; z-index: 45; top: 30px; right: 36px; display: flex; gap: 24px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.home-nav a { color: var(--paper); transition: opacity .25s; }
.home-nav a:hover { opacity: .75; }
.home-nav a.dim { opacity: .5; }
.home-nav a.dim:hover { opacity: 1; }

.home-cats { position: fixed; z-index: 45; top: 30px; left: 36px; display: flex; gap: 24px; }
.cw-home .home-cats button { padding: 0; }
.home-cats button, .next-cats button {
	appearance: none; border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--paper); opacity: .5;
	font-family: 'Switzer', sans-serif; font-size: 17px; font-weight: 500; letter-spacing: -.01em;
	transition: opacity .25s; text-shadow: var(--shadow);
}
.home-cats button.on, .home-cats button:hover, .next-cats button.on, .next-cats button:hover { opacity: 1; }

.wheel { position: fixed; z-index: 45; left: 64px; width: min(340px, 30vw); top: 50%; height: min(360px, 50vh); transform: translateY(-50%); pointer-events: none; }
.wheel-mask {
	position: absolute; inset: 0; overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.wheel-anchor { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.fade { transition: opacity .3s ease; }
.cw-home.is-switching .fade { opacity: 0; }
.wheel-list { display: flex; flex-direction: column; will-change: transform; }
.wheel-list button {
	appearance: none; border: 0; background: none; padding: 0; height: 54px; flex: none; text-align: left; cursor: pointer; pointer-events: auto;
	transform-origin: 0 50%; will-change: transform; color: var(--paper); font-family: 'Switzer', sans-serif; font-weight: 500;
	font-size: 30px; letter-spacing: -.025em; line-height: 54px; white-space: nowrap; text-shadow: var(--shadow);
}

.panel { position: fixed; z-index: 45; right: 44px; top: 50%; transform: translateY(-50%); width: min(440px, 34vw); display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.panel-pitch { margin: 0; font-weight: 600; font-size: clamp(28px, 2.7vw, 46px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.panel-title { font-size: clamp(18px, 1.5vw, 26px); font-weight: 400; letter-spacing: -.01em; }
.panel-credits { margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.panel-credits div { display: flex; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.35; }
.panel-credits dt { opacity: .55; flex: none; }
.panel-credits dd { margin: 0; }

.bar {
	position: fixed; z-index: 44; left: 36px; right: 36px; bottom: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
	font-size: 11px; font-weight: 500; letter-spacing: -.01em; pointer-events: none;
}
.bar-clock { display: flex; gap: 10px; }
.bar-replay {
	pointer-events: auto; appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--paper);
	font-family: 'Switzer', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: -.01em; text-shadow: var(--shadow);
	transition: opacity .25s;
}
.bar-replay:hover { opacity: .75; }
.noscript-list { position: fixed; z-index: 46; left: 64px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; font-size: 30px; }

/* ---------- Project ---------- */
.tone-frame {
	position: fixed; inset: 0; z-index: 60; pointer-events: none; border: 12px solid transparent;
	border-image: linear-gradient(180deg, var(--t1), var(--t2)) 1;
}
.project { background: var(--page); color: var(--ink); padding: 12px; min-height: 100vh; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.hero { position: relative; height: calc(100vh - 24px); min-height: 560px; overflow: hidden; background: var(--dark); color: #6E6B66; }
.hero .px { position: absolute; inset: 0; overflow: hidden; }
.hero .cw-ph { color: #6E6B66; }
.hero-grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 7, .6), rgba(8, 8, 7, 0) 55%); pointer-events: none; }
.hero-cap {
	position: absolute; left: var(--sp); right: var(--sp); bottom: clamp(24px, 3vw, 48px); display: flex; justify-content: space-between; align-items: flex-end;
	gap: 32px 48px; flex-wrap: wrap; color: var(--paper); pointer-events: none; text-shadow: var(--shadow);
}
.hero-title { display: flex; flex-direction: column; gap: 16px; min-width: 0; flex: 2 1 420px; }
.hero-sub { font-size: clamp(17px, 1.3vw, 21px); font-weight: 500; }
.hero h1 { margin: 0; font-family: 'Array Wide', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 8vw, 150px); line-height: .84; overflow-wrap: anywhere; }
.hero-meta { margin: 0; display: flex; flex-direction: column; gap: 6px; flex: 0 1 420px; min-width: 0; }
.hero-meta div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.hero-meta dt { opacity: .6; }
.hero-meta dd { margin: 0; text-wrap: pretty; }

/* 4-column text grid; collapses to 1 column below ~560px container width (never 2+1). */
.tgrid {
	display: grid; align-items: start; gap: 32px clamp(20px, 2.4vw, 40px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(170px, calc((100% - 3 * clamp(20px, 2.4vw, 40px)) / 4), calc((560px - 100%) * 999))), 1fr));
}
.span2 { grid-column: span 2; }
.col { display: flex; flex-direction: column; gap: 16px; }
.col-list { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.lbl { font-size: 15px; font-weight: 500; color: var(--muted); }
.lbl-on { font-size: 15px; font-weight: 500; }
.lbl-on.dim { opacity: .7; }
.h-s { margin: 0; font-weight: 600; font-size: clamp(26px, 2.4vw, 42px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.body-t { margin: 0; max-width: 560px; font-size: clamp(17px, 1.25vw, 20px); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; text-wrap: pretty; }
.body-t.wide { max-width: 720px; }
.padtop { padding-top: 30px; }
.muted { color: var(--muted2); }
.hair { padding-top: 12px; border-top: 1px solid var(--hair); }
.item { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--hair); }
.item-head { display: flex; justify-content: space-between; gap: 12px; max-width: none; }
.dropped { opacity: .55; }
.dropped6 { opacity: .6; }

.problem { display: flex; flex-wrap: wrap; gap: 12px; }
.problem-tile {
	flex: 1 1 480px; min-width: 0; background: linear-gradient(135deg, var(--t1), var(--t2)); color: var(--on);
	padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: clamp(420px, 44vw, 760px);
}
.problem-text { display: flex; flex-direction: column; gap: 28px; }
.problem-q { margin: 0; max-width: 16ch; font-weight: 600; font-size: clamp(34px, 4.2vw, 80px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.problem-sub { margin: 0; max-width: 520px; font-size: clamp(17px, 1.3vw, 21px); font-weight: 500; line-height: 1.4; text-wrap: pretty; }
.problem-img { flex: 1 1 480px; min-width: 0; min-height: clamp(420px, 44vw, 760px); }

.igrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.igrid > * { grid-column: span var(--span, 12); }
.igrid.rows { grid-auto-rows: clamp(280px, 46vw, 780px); }

/* Physical: process rows */
.process { display: block; }
/* Big breathing room after an image row; text-only steps sit closer together. */
.step { display: block; }
/* Text gets the same space above and below; adjacent text margins collapse to one gap. */
.step-text { padding: 0 var(--sp); margin: var(--sec) 0; }
.step:first-child .step-text { margin-top: var(--sec-g); }
.step.no-img:last-child .step-text { margin-bottom: 0; } /* the next section brings its own top space */

/* Split rows (sticky text beside images) */
.split-steps { display: flex; flex-direction: column; gap: var(--sec); margin-top: var(--sec-g); }
.split.text-only .split-text { position: static; padding-top: 0; padding-bottom: 0; }
.split { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.split-text { flex: 5 1 360px; min-width: 0; position: sticky; top: 84px; padding: var(--sp); display: flex; flex-direction: column; gap: 18px; }
.split-media { flex: 7 1 480px; min-width: 0; }
.bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.h-split { margin: 0; font-weight: 600; font-size: clamp(30px, 3vw, 52px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.deck-split { margin: 0; font-size: clamp(19px, 1.5vw, 23px); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }
.body-split { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.55; color: var(--muted2); text-wrap: pretty; }
.split-dark { flex: 7 1 480px; min-width: 0; background: var(--ink); padding: clamp(40px, 5vw, 80px) 24px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.phone { width: 100%; aspect-ratio: 9 / 19.5; border-radius: 32px; border: 6px solid var(--bezel); background: var(--dark2); position: relative; overflow: hidden; color: #6E6B66; }
.phone .cw-ph { color: #6E6B66; }
.phone-sm { width: clamp(160px, 14vw, 240px); border-radius: 28px; }

/* Gallery */
.gallery { display: flex; flex-direction: column; }
.gallery-head { margin-top: var(--sec-g); padding: 0 var(--sp) var(--sec); }
.gallery.text-only .gallery-head { padding-bottom: 0; }
.h-gal { margin: 0; font-weight: 600; font-size: clamp(28px, 2.8vw, 48px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.gal-note { margin: 0; max-width: 780px; font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; text-wrap: pretty; }

/* Digital */
.cs { display: flex; flex-direction: column; gap: 12px; }
.cs-text { padding: var(--sec-g) var(--sp) var(--sec); }
.rounds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.round { display: flex; flex-direction: column; gap: 16px; }
.round-cap { padding: 0 clamp(8px, 1vw, 16px); display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 600; }
.round-cap span + span { font-weight: 500; }
.cs-design {
	background: var(--ink); color: var(--paper); margin-top: clamp(56px, 6vw, 96px); padding: clamp(40px, 5vw, 80px) var(--sp);
	display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px);
}
.lbl-dark { color: #A29E97; }
.on-dark { color: #BDB9B2; }
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: clamp(24px, 3vw, 48px); justify-items: center; }
.screen { display: flex; flex-direction: column; gap: 18px; width: min(100%, 300px); }
.screen-cap { display: flex; flex-direction: column; gap: 4px; font-size: 17px; font-weight: 500; line-height: 1.35; }
.screen-cap .cap { color: #A29E97; }
.impact {
	background: linear-gradient(135deg, var(--t1), var(--t2)); color: var(--on); padding: clamp(28px, 4vw, 64px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 48px; align-items: end; min-height: clamp(320px, 32vw, 520px);
}
.impact-main { display: flex; flex-direction: column; gap: 20px; align-self: stretch; justify-content: space-between; }
.impact-outcome { margin: 0; max-width: 20ch; font-weight: 600; font-size: clamp(30px, 3.6vw, 64px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.impact-side { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.impact-side > div { display: flex; flex-direction: column; gap: 6px; }
.impact-side > div > span:last-child { font-size: 17px; font-weight: 500; line-height: 1.45; }

/* Visual */
.about-work { padding: var(--sec-g) var(--sp) var(--sec); }

/* Next */
.next { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.next-wrap { position: relative; }
.next-cats { position: absolute; z-index: 3; top: clamp(20px, 2.4vw, 36px); left: var(--sp); display: flex; gap: 24px; }
.next-cats button { opacity: .45; }
.next-card { display: block; position: relative; height: clamp(420px, 70vh, 820px); overflow: hidden; background: var(--dark); color: #6E6B66; cursor: pointer; }
.next-card .cw-ph { color: #6E6B66; }
.next-grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 7, .55), rgba(8, 8, 7, 0) 60%); pointer-events: none; }
.next-cap { position: absolute; left: var(--sp); right: var(--sp); bottom: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: 14px; color: var(--paper); pointer-events: none; }
.next-lbl { font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; }
.next-title { font-family: 'Array Wide', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 9vw, 168px); line-height: .84; overflow-wrap: anywhere; }
.next-empty { height: clamp(200px, 24vh, 280px); background: var(--dark); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px var(--sp) 24px; font-size: 15px; font-weight: 500; }
.foot a { color: var(--ink); transition: color .2s; }
.foot a:hover { color: #5E5B55; }
.foot-copy { color: var(--muted); }
.foot button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); font-family: 'Switzer', sans-serif; font-size: 15px; font-weight: 500; transition: color .2s; }
.foot button:hover { color: #5E5B55; }

/* ---------- Info ---------- */
.info { position: relative; min-height: 100vh; padding: 12px; background: linear-gradient(180deg, #FF3B0A, #FFB13B); }
.info-inner { position: relative; min-height: calc(100vh - 24px); background: var(--ink); overflow: hidden; color: var(--paper); }
.info-bg { position: absolute; inset: 0; color: #6E6B66; }
.info-shade { position: absolute; inset: 0; background: rgba(8, 8, 7, .5); pointer-events: none; }
.info-content {
	position: relative; min-height: calc(100vh - 24px); padding: clamp(100px, 16vh, 180px) var(--sp) var(--sp);
	display: flex; flex-direction: column; justify-content: center; gap: clamp(48px, 8vh, 96px); overflow-wrap: anywhere; text-shadow: var(--shadow);
}
.info-cols { width: 100%; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 56px 48px; text-align: center; }
.info-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.info-h { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.info-h.dl { margin-top: 10px; }
.info-p { margin: 0; font-size: clamp(17px, 1.3vw, 21px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; text-wrap: pretty; }
.info-p.bio { max-width: 30ch; }
.info-p.extra { margin-top: 10px; }
.soft { opacity: .65; }
.info-edu { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.info-exp { display: flex; flex-direction: column; gap: 14px; }
.info-exp > div { display: flex; flex-direction: column; gap: 2px; }
.info-links { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: clamp(17px, 1.3vw, 21px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.info-links a { color: var(--paper); opacity: .8; transition: opacity .2s; }
.info-links a:hover { opacity: 1; }
.info-photos { width: 100%; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.info-photo { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: rgba(23, 22, 21, .6); color: #8C8983; }
.info-photo .cw-ph { color: #8C8983; }

/* Fallback pages */
.plain { min-height: 100vh; padding: 140px var(--sp) 80px; max-width: 820px; margin: 0 auto; }
.plain h1 { font-weight: 600; font-size: clamp(32px, 4vw, 56px); letter-spacing: -.035em; line-height: 1; }
.plain-body { font-size: 18px; line-height: 1.55; }
.plain a { text-decoration: underline; }

/* ---------- Mobile (<720px) ---------- */
@media (max-width: 719.98px) {
	.site-name { left: 50%; transform: translate(-50%, -50%); font-size: 20px; }
	.site-nav { top: 33px; right: 20px; gap: 16px; font-size: 13px; }
	.site-cats { top: 66px; left: 20px; gap: 16px; font-size: 13px; }

	.home-name { left: 50%; transform: translate(-50%, -50%); font-size: 20px; }
	.cw-home.is-flash .home-name { top: 44%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(24px, 7.4vw, 40px); }
	.home-blurb { left: 50%; text-align: center; transform: translate(-50%, 75vh); }
	.cw-home.is-flash .home-blurb { transform: translate(-50%, 0); }
	.home-nav { z-index: 46; top: 33px; right: 20px; gap: 16px; font-size: 13px; }
	.home-cats { top: 66px; left: 20px; gap: 16px; }
	.cw-home .home-cats button { font-size: 13px; padding: 0; }
	.wheel { left: 24px; right: 24px; width: auto; top: auto; bottom: 132px; height: 216px; transform: none; }
	.wheel-mask {
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent 100%);
		mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent 100%);
	}
	.wheel-list button { font-size: 24px; }
	.panel { left: 24px; right: 24px; top: auto; bottom: 78px; transform: none; width: auto; gap: 4px; }
	.panel-pitch { font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
	.panel-title, .panel-credits { display: none; }
	.bar { left: 24px; right: 24px; bottom: 28px; gap: 16px; }
	.bar-clock { gap: 8px; }
	.bar-replay { display: none; }

	.span2 { grid-column: auto; }
	.padtop { padding-top: 0; }
	.igrid > * { grid-column: span var(--mspan, var(--span, 12)); }
	.split-imgs-first .split-text { order: -1; position: static; }
	.split-text { position: static; }
	.info-photo:nth-child(n+2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cw-home *, .cw-home { transition-duration: .01s !important; }
}

/* ---------- Uncropped image rows (photos keep their own proportions) ---------- */
.jstack { display: flex; flex-direction: column; gap: 12px; }
.jrow { display: flex; gap: 12px; align-items: flex-start; }
.jrow > .jt { flex: var(--ar) 1 0; aspect-ratio: var(--ar); min-width: 0; }
.jrow.n-1 { justify-content: center; }
.jrow.n-1 > .jt { flex: 0 1 auto; width: min(100%, calc(82vh * var(--ar))); }
.problem-img.natural { min-height: 0; align-self: flex-start; }
.problem.has-natural .problem-tile { min-height: 0; }
@media (max-width: 719.98px) {
	.jrow { flex-direction: column; }
	.jrow > .jt { flex: none; width: 100%; }
	.jrow.n-1 > .jt { width: 100%; }
}

/* ---------- Final design screens (one row; swipe on mobile) ---------- */
.final-design { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-top: var(--sec-g); }
.final-text { flex: 3 1 300px; min-width: 0; padding: var(--sp); display: flex; flex-direction: column; gap: 18px; align-self: flex-start; position: sticky; top: 84px; }
.final-design .screens-band { flex: 9 1 600px; min-width: 0; }
.screens-band {
	background: linear-gradient(135deg, var(--t1), var(--t2));
	padding: clamp(40px, 5vw, 88px) clamp(20px, 3vw, 48px);
	display: flex; gap: clamp(10px, 1.4vw, 28px); justify-content: center; align-items: center;
	outline: none;
}
.screens-band .scr { flex: 1 1 0; min-width: 0; max-width: 260px; }
.screens-band .phone { width: 100%; }
.phone-art { position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--ar); }
.phone-art .cw-img { inset: auto; left: var(--x); top: var(--y); width: var(--w); height: auto; max-width: none; object-fit: fill; }
@media (max-width: 719.98px) {
	.screens-band {
		justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
		scrollbar-width: none; padding-left: 19vw; padding-right: 19vw; gap: 16px;
	}
	.screens-band::-webkit-scrollbar { display: none; }
	.final-text { position: static; flex-basis: 100%; padding-bottom: 0; }
	.final-design .screens-band { flex-basis: 100%; }
	.screens-band .scr { flex: 0 0 62vw; max-width: none; scroll-snap-align: center; }
}

/* Gallery captions: bottom-left, fade in on hover. Always shown on touch screens (no hover). */
.jt.has-cap { position: relative; }
.jt.has-cap::after {
	content: ''; position: absolute; inset: auto 0 0 0; height: 35%; pointer-events: none;
	background: linear-gradient(0deg, rgba(8, 8, 7, .45), rgba(8, 8, 7, 0)); opacity: 0; transition: opacity .35s ease;
}
.jcap {
	position: absolute; z-index: 2; left: clamp(14px, 1.6vw, 24px); bottom: clamp(12px, 1.4vw, 20px); right: clamp(14px, 1.6vw, 24px);
	max-width: 46ch; color: var(--paper); font-size: clamp(14px, 1vw, 16px); font-weight: 500; line-height: 1.35; letter-spacing: -.005em;
	opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; text-wrap: pretty;
}
.jt.has-cap:hover::after, .jt.has-cap:hover .jcap { opacity: 1; transform: none; }
@media (hover: none) { .jt.has-cap::after, .jcap { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jcap, .jt.has-cap::after { transition: none; } }

/* Info, desktop: everything fits in one screen on load. Type and spacing scale with the
   window height, and the photo row takes whatever height is left. */
@media (min-width: 1024px) and (min-height: 560px) {
	.info-content {
		height: calc(100vh - 24px); min-height: 0; justify-content: center;
		padding: clamp(104px, 16vh, 190px) var(--sp) clamp(48px, 9vh, 120px); gap: clamp(20px, 3.4vh, 40px);
	}
	.info-cols { flex: none; max-width: 1040px; gap: 28px 48px; }
	.info-col { gap: clamp(7px, 1.2vh, 12px); }
	.info-h { font-size: clamp(11px, 1.3vh, 13px); }
	.info-h.dl { margin-top: clamp(4px, 1vh, 10px); }
	.info-p, .info-links { font-size: clamp(12px, min(1vw, 1.7vh), 16px); line-height: 1.28; }
	.info-p.bio { max-width: 34ch; }
	.info-edu, .info-p.extra { margin-top: clamp(2px, .6vh, 8px); }
	.info-edu { gap: 2px; }
	.info-exp { gap: clamp(5px, .95vh, 10px); }
	.info-links { gap: 3px; }
	.info-photos { flex: 1 1 0; min-height: 110px; max-height: 38vh; max-width: 1040px; grid-template-rows: 100%; grid-template-columns: repeat(3, 1fr); }
	.info-photo { aspect-ratio: auto; height: 100%; }
}

/* Info clock: same treatment as Home's bottom-left clock, inside the Info frame. */
.info-bar { position: absolute; left: 24px; right: 24px; bottom: 22px; color: var(--paper); text-shadow: var(--shadow); }
@media (max-width: 719.98px) { .info-content { padding-bottom: 72px; } .info-bar { left: 12px; right: 12px; bottom: 16px; } }

/* Sentence-case labels end in a period (stylization): Work. Info. Physical. About. */
.site-nav a::after, .site-cats a::after, .home-nav a::after, .home-cats button::after, .next-cats button::after, .info-h::after, .bar-replay::after { content: '.'; }

/* Mobile cover/hero swap: the wrapper adds no box, so the image keeps its desktop positioning. */
.cw-pic { display: contents; }
/* Wordmark: full name everywhere except the phone header, which shows CW. */
.nm-short { display: none; }

/* Phone header: one row. Categories left, CW centered, Work / Info right. */
@media (max-width: 719.98px) {
	.site-name, .cw-home.is-done .home-name { top: 41px; left: 50%; transform: translate(-50%, -50%); font-size: 20px; }
	.site-name .nm-full, .cw-home.is-done .home-name .nm-full { display: none; }
	.site-name .nm-short, .cw-home.is-done .home-name .nm-short { display: inline; }
	.site-cats { top: 33px; left: 20px; gap: 14px; }
	.home-cats { top: 33px; left: 20px; gap: 14px; }
	.site-nav, .home-nav { gap: 14px; }
}

/* ---------- Top bar + corner spacing (all pages) ----------
   One set of edge distances so the nav and the clock sit the same distance
   from the frame's top/side/bottom edges. */
:root { --edge-x: 36px; --edge-y: 31px; --edge-b: 35px; }
.topbar {
	position: fixed; z-index: 50; top: var(--edge-y); left: var(--edge-x); right: var(--edge-x);
	display: flex; align-items: center; gap: 24px; pointer-events: none;
}
.cw-home .topbar { z-index: 45; }
.topbar.blend { mix-blend-mode: difference; }
.topbar > nav { position: static; top: auto; left: auto; right: auto; transform: none; mix-blend-mode: normal; pointer-events: auto; }
.topbar > .home-nav, .topbar > .site-nav { margin-left: auto; }
.bar { left: var(--edge-x); right: var(--edge-x); bottom: var(--edge-b); }
.info-bar { left: calc(var(--edge-x) - 12px); right: calc(var(--edge-x) - 12px); bottom: calc(var(--edge-b) - 12px); }

/* Phones: CW on the left; Physical / Visual / Work / Info in one row on the right. */
@media (max-width: 719.98px) {
	:root { --edge-x: 30px; --edge-y: 28px; --edge-b: 27px; }
	.topbar { gap: 14px; }
	.topbar > .home-cats, .topbar > .site-cats { margin-left: auto; }
	.topbar > .home-nav, .topbar > .site-nav { margin-left: 0; }
	.topbar nav { gap: 14px; font-size: 13px; }
	.cw-home .topbar .home-cats button { font-size: 13px; }
	.site-name, .cw-home.is-done .home-name { left: var(--edge-x); top: calc(var(--edge-y) + 9px); transform: translate(0, -50%); font-size: 20px; }
}

/* Category links read "Physical work." on desktop, "Physical." on phones. */
@media (max-width: 719.98px) { .topbar .w { display: none; } }

.info-h.no-dot::after { content: none; }
