@font-face {
  font-family: Archivo;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
:root { --paper:#f2f0ec; --ink:#121212; --muted:#625f5a; --line:#d7d4ce; --bg:var(--paper); --accent:#a83c0d; --panel:white; --gutter:clamp(20px,5.55vw,80px); --sans:"Archivo",Arial,Helvetica,sans-serif; --mono:"JetBrains Mono",Menlo,Consolas,monospace; color-scheme:light; }
* { box-sizing:border-box; }
body { margin:0; font-family:var(--sans); color:var(--ink); background:var(--bg); }
.dark { --bg:#0e0e0e; --panel:#1a1a1a; --ink:#f2f0ec; --muted:#a09d97; --line:#353432; --accent:#f07744; color-scheme:dark; }
h1,h2,h3,p,figure,dl,dd { margin:0; }
a { color:inherit; text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:.18em; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.skip { position:fixed; left:1em; top:-8em; background:var(--bg); padding:1em; z-index:20; }
.skip:focus { top:1em; }
.label,nav,.home-bar,.button,footer,figcaption,.meta,.menu { font:500 12px/1.4 var(--mono); letter-spacing:.06em; text-transform:uppercase; }
.home { min-height:100vh; min-height:100svh; display:grid; grid-template-rows: minmax(76px,1fr) minmax(340px,auto) minmax(76px,1fr); }
.home-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 clamp(20px,3.33vw,48px); }
.home-bar span+span,.home-bar.bottom { color:var(--muted); }
.split { display:grid; grid-template-columns:1fr 1fr; gap:1px; min-height:56.5svh; }
.panel { min-width:0; background:var(--panel); padding:clamp(20px,3.33vw,48px); display:flex; flex-direction:column; gap:12px; justify-content:flex-end; }
.panel:hover { text-decoration:none; }
.panel:focus-visible { outline-offset:-4px; }
.panel .label,.meta { color:var(--muted); }
.title { position:relative; display:block; font-size:clamp(48px,6.11vw,100px); letter-spacing:-.04em; line-height:1; font-weight:600; }
.ghost { position:absolute; inset:0; opacity:0; pointer-events:none; }
.action-arrow,.enter-arrow { display:inline-block; }
.button:has(> .action-arrow) { gap:.45em; }
@keyframes arrow-nudge {
  0%,100% { transform:translateX(0); }
  45% { transform:translateX(3px); }
}
@media (prefers-reduced-motion:no-preference) {
  a:is(:focus-visible,:active,.previewing) .enter-arrow { animation:arrow-nudge 220ms ease-in-out; }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  a:hover .enter-arrow { animation:arrow-nudge 220ms ease-in-out; }
}
.red { color:#ff1f1a; left:-2px; }.cyan { color:#08d1ff; left:2px; }
.desc { font:14px/1.5 var(--mono); color:var(--muted); }
.enter,.button,.active { color:var(--accent); }
.topnav,footer { padding:18px var(--gutter); display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.topnav a,.home-bar a,footer a,.button { display:inline-flex; align-items:center; min-height:44px; }
.navlinks,.footlinks { display:flex; flex-wrap:wrap; align-items:center; gap:clamp(14px,3vw,40px); }
.wrap { max-width:1600px; margin:auto; padding:0 var(--gutter); }
.heading { padding:clamp(48px,7vw,104px) 0 clamp(32px,5vw,76px); }
h1 { font-size:clamp(42px,6.2vw,88px); line-height:1; font-weight:600; letter-spacing:-.052em; }
h2 { font-size:clamp(28px,3.3vw,48px); line-height:1.07; letter-spacing:-.04em; font-weight:600; }
.work-story h2,.case-sections h2 { font-size:clamp(27px,3vw,46px); line-height:1.13; }
.heading p,.body-copy { max-width:54ch; font-size:clamp(17px,1.55vw,23px); line-height:1.45; margin-top:22px; }
.heading p { max-width:66ch; font-size:clamp(16px,1.25vw,18px); color:var(--muted); }
.feature p,.archive-entry p { color:var(--muted); }
.body-copy p+p { margin-top:18px; }
.work-card { display:block; padding-bottom:36px; }
.work-card img,.media video,.stills img,.cover-video { width:100%; display:block; height:auto; }
.work-card figure { background:var(--panel); }
.cover-video { width:100%; max-height:66vh; background:#151515; object-fit:contain; }
.work-card figcaption,.caption { padding:20px 0; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.work-name { display:flex; align-items:center; gap:14px; }
.work-card h2 { text-transform:none; letter-spacing:-.04em; font-family:var(--sans); }

.pair { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.pair figure>img { height:clamp(220px,32vw,480px); object-fit:contain; background:#191919; }
.index { border-top:1px solid var(--line); }
.row { min-height:72px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; font-size:clamp(20px,2.3vw,32px); letter-spacing:-.025em; }
.section { padding:44px 0; } .section h2 { margin-bottom:28px; }
.stills { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
.stills figcaption { margin-top:10px; color:var(--muted); }
.media { max-width:1100px; margin:0 auto; } .media video { max-height:74vh; background:#171717; }
footer { margin-top:64px; padding-block:24px; border-top:1px solid var(--line); border-bottom:0; }
.menu { display:none; } .menu summary { cursor:pointer; min-height:44px; align-content:center; color:var(--accent); }
@keyframes arrive { from {opacity:0;transform:translateY(18px)} to {opacity:1;transform:none} }
@keyframes ghost { from { opacity:var(--alpha,1); } to { opacity:0; } }
@keyframes page-glitch { from {text-shadow:-2px 0 #ff1f1a,2px 0 #08d1ff} to {text-shadow:none} }
@keyframes logo-glitch { from {filter:drop-shadow(-2px 0 0 #ff1f1a) drop-shadow(2px 0 0 #08d1ff)} to {filter:none} }
@media (prefers-reduced-motion:no-preference) {
  :root { --glitch-hold: 121ms; }
  .page-glitch { animation:page-glitch var(--glitch-hold) steps(1,end) 580ms; }
  .glitch-echo { animation:page-glitch var(--glitch-hold) steps(1,end); }
  :is(.page-glitch,.glitch-echo):has(>img) { animation-name:logo-glitch; }
  .page-glitch:has(>img) { animation-delay:1.1s; }
  .intro .panel { --start:80ms; --pulse:580ms; }
  .intro .panel+.panel { --start:220ms; --pulse:720ms; }
  .intro .base { display:block; animation:arrive 400ms ease-out var(--start) backwards; }
  .intro .ghost { animation:ghost var(--glitch-hold) steps(1,end) var(--pulse); }
  .intro .red,.intro .cyan { --alpha:.65; }
}
@media(max-width:809px), (max-height:500px) and (max-width:960px) {
  body { --bar-height:calc(57px + env(safe-area-inset-bottom,0px)); padding-bottom:var(--bar-height); }
  .home { min-height:calc(100vh - var(--bar-height)); min-height:calc(100svh - var(--bar-height)); grid-template-rows:auto 1fr auto; }
  .split { grid-template-columns:1fr; grid-template-rows:1fr 1fr; min-height:0; }
  .panel { min-height:168px; padding:20px; gap:9px; }
  .title { font-size:clamp(43px,14.36vw,66px); }
  .home-bar { min-height:57px; } .home-bar.bottom { gap:12px; }
  .topnav { padding-block:6px; } .topnav .navlinks {display:none}
  html { scroll-padding-bottom:calc(60px + env(safe-area-inset-bottom,0px)); }
  .menu { position:fixed; inset:auto 0 0; z-index:10; display:block; border-top:1px solid var(--line); background:var(--panel); padding-bottom:env(safe-area-inset-bottom,0px); }
  .menu summary { display:flex; align-items:center; gap:12px; height:56px; padding-inline:max(20px,env(safe-area-inset-left)); list-style:none; touch-action:manipulation; }
  .menu summary::-webkit-details-marker { display:none; }
  .menu-open-label,.menu[open] .menu-closed-label { display:none; }
  .menu[open] .menu-open-label { display:inline; }
  .menu nav { position:absolute; bottom:100%; inset-inline:0; max-height:calc(100vh - var(--bar-height) - 8px); max-height:calc(100dvh - var(--bar-height) - 8px); overflow-y:auto; overscroll-behavior:contain; background:var(--panel); border-block:1px solid var(--line); }
  .menu nav a { display:flex; align-items:center; min-height:48px; padding-inline:max(20px,env(safe-area-inset-left)); border-bottom:1px solid var(--line); }
  .topnav>a,.home-bar a,footer a { min-width:44px; }
  .pair,.stills { grid-template-columns:1fr; } footer { flex-wrap:wrap; }
  .work-card figcaption,.caption { align-items:flex-start; } .desc { font-size:13px; } .footlinks {gap:16px}
}

.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.panel .enter { color:var(--accent); }
@media(max-width:420px) { .row { gap:12px; } .row .meta { text-align:right; } .work-card figcaption { flex-wrap:wrap; } }

.home { grid-template-rows:auto auto minmax(340px,1fr) auto; }
.home-bar { min-height:68px; }
.home-intro { margin:0 clamp(20px,3.33vw,48px); max-width:62ch; padding:4px 0 28px; font-size:16px; line-height:1.5; color:var(--muted); }

.feature { display:block; padding:clamp(26px,4vw,56px) 0; border-block:1px solid var(--line); margin-bottom:36px; }
.feature h2 { display:flex; align-items:center; gap:16px; margin:14px 0; }
.feature p,.essay p,.archive-entry p,.case-prose { max-width:65ch; font-size:clamp(17px,1.36vw,21px); line-height:1.5; }
.feature:hover { text-decoration:none; } .feature:hover h2,.feature:focus-visible h2 { text-decoration:underline; }
.essay { padding:24px 0 32px; max-width:900px; } .essay h2,.archive-list>h2 { margin-bottom:18px; }
.essay h2,.archive-list>h2 { font-size:clamp(25px,2.4vw,36px); }
.case-credit { font:14px/1.5 var(--mono); color:var(--muted); padding:0 0 24px; }
.archive-entry { border-top:1px solid var(--line); display:grid; grid-template-columns:minmax(200px,1fr) 2fr; gap:24px; padding:26px 0; }
.archive-entry h3 { font-size:clamp(22px,2vw,30px); margin-bottom:6px; letter-spacing:-.035em; }
.archive-list .work-card { margin:28px 0 4px; }
.record { max-width:860px; } .record img { display:block; width:100%; height:auto; } .record figcaption { margin-top:10px; color:var(--muted); }
.work-card .study-image { max-height:65svh; object-fit:contain; background:#191919; }
@media(max-width:809px),(max-height:500px) and (max-width:960px) {
 .home { grid-template-rows:auto auto 1fr auto; } .home-bar { min-height:52px; }
 .home-intro { padding-top:0; padding-bottom:20px; font-size:15px; }
 .archive-entry { grid-template-columns:1fr; gap:10px; }
 .feature h2 { gap:10px; } .work-name { min-width:0; }
}

/* Email is a dialog on the page that opened it. */
.home-actions { display:flex; align-items:center; gap:22px; }
.email-trigger,.email-close,.email-send,.email-row { font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
.email-trigger,.email-close { min-height:44px; min-width:44px; padding:0; text-transform:inherit; letter-spacing:inherit; }
.email-trigger,.email-close,.email-row span:first-child { color:var(--accent); }
.email-row { width:100%; text-align:left; border-bottom:1px solid var(--line); font-size:clamp(20px,2.3vw,32px); }
.menu nav .email-trigger { display:flex; align-items:center; min-height:48px; width:100%; padding-inline:max(20px,env(safe-area-inset-left)); border-bottom:1px solid var(--line); }
html.email-open { overflow:hidden; }
.email-dialog { --bg:#0e0e0e; --ink:#f2f0ec; --muted:#a09d97; --line:#353432; --panel:#1a1a1a; --accent:#f07744; color-scheme:dark; box-sizing:border-box; width:min(520px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:clamp(22px,4vw,40px); border:1px solid var(--line); background:var(--bg); color:var(--ink); overscroll-behavior:contain; }
.email-dialog::backdrop { background:rgb(0 0 0 / .65); }
.email-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:24px; }
.email-heading h2 { font-size:clamp(30px,5vw,42px); }
.email-heading h2:focus { outline:0; }
.email-close,.email-send { font:500 12px/1.4 var(--mono); text-transform:uppercase; letter-spacing:.06em; }
.email-form { display:grid; gap:18px; }
.email-form label:not([hidden]) { display:grid; gap:6px; font-size:15px; }
.email-form input,.email-form textarea { box-sizing:border-box; width:100%; padding:12px; min-height:46px; border:1px solid var(--muted); border-radius:0; color:var(--ink); background:var(--panel); font:inherit; font-size:16px; }
.email-form textarea { resize:vertical; }
.email-form :is(input,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.email-send { min-height:46px; padding:12px 24px; justify-self:start; color:var(--bg); background:var(--ink); }
.email-send:disabled { opacity:.55; cursor:default; }
.email-status { color:var(--muted); font-size:14px; line-height:1.5; }
.email-status:empty { display:none; }
.email-status a { text-decoration:underline; }
@media(max-width:600px) {
  .email-dialog { width:100%; max-width:none; max-height:92dvh; margin:auto 0 0; padding-bottom:max(24px,env(safe-area-inset-bottom)); }
  .email-send { width:100%; }
}
@media(prefers-reduced-motion:no-preference) {
  .email-dialog { opacity:0; transform:translateY(14px); transition:opacity 140ms ease,transform 140ms ease,display 140ms allow-discrete,overlay 140ms allow-discrete; }
  .email-dialog[open] { opacity:1; transform:none; transition-duration:210ms; transition-timing-function:cubic-bezier(.2,.7,.25,1); }
  .email-dialog::backdrop { opacity:0; transition:opacity 140ms ease,display 140ms allow-discrete,overlay 140ms allow-discrete; }
  .email-dialog[open]::backdrop { opacity:1; transition-duration:210ms; }
  @starting-style {
    .email-dialog[open] { opacity:0; transform:translateY(14px); }
    .email-dialog[open]::backdrop { opacity:0; }
  }
  .panel,.email-trigger,.email-close,.navlinks a,.footlinks a,.work-card .meta { transition:color 160ms ease,background-color 180ms ease; }
  .panel:focus-visible,.panel:hover { background-color:color-mix(in srgb,var(--panel) 96%,var(--ink)); }
  :is(.navlinks,.footlinks) a:hover,.work-card:hover .meta { color:var(--accent); }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 24px;
}
.project-card { display: block; min-width: 0; }
.project-card:hover { text-decoration: none; }
.project-card:is(:hover, :focus-visible) h2 { text-decoration: underline; text-underline-offset: .14em; }
.project-preview {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: var(--panel);
}
.project-preview :is(img, video) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-contain { background: #191919; }
.cover-contain :is(img, video) { object-fit: contain; }
.project-preview video { opacity: 0; pointer-events: none; }
.project-preview video.is-playing { opacity: 1; }
.project-preview.xbo-preview { background: radial-gradient(ellipse at 60% 54%, #262433, #101011 70%); }
.project-preview.xbo-preview img { width: 76%; height: 90%; margin: auto; object-fit: contain; }
.project-preview.pops-logo { background: #ffe6cb; }
.project-preview.pops-logo img { width: 44%; height: 65%; margin: auto; object-fit: contain; }
.type-cover {
  background: #e5e2dc;
  color: #69655f;
  font: 500 clamp(30px, 4vw, 64px)/1.1 var(--sans);
  letter-spacing: -.045em;
}
.dark .type-cover { background: #242321; color: #b3b0a9; }
.project-card h2 {
  margin: 16px 0 6px;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.1;
}
.project-role { display: block; color: var(--muted); font: 14px/1.5 var(--mono); }
@media screen and (prefers-reduced-motion:no-preference) {
  .readout { position: relative; display: block; }
  .readout-ink { display: block; }
  .readout.waiting .readout-ink { clip-path: inset(0 100% 0 0); }
  .readout.typing .readout-ink {
    clip-path: polygon(0 0, 100% 0, 100% var(--line-top),
      var(--cursor-x) var(--line-top), var(--cursor-x) var(--line-end), 0 var(--line-end));
  }
  .readout.typing::after {
    content: ""; position: absolute; pointer-events: none;
    left: clamp(0px, var(--cursor-x), calc(100% - .62em));
    top: var(--line-top); margin-top: calc((1.5em - .62em) / 2);
    width: .62em; height: .62em; background: var(--accent);
  }
}
.additional-credits { margin-top: 42px; }
.xbo-public { margin: 8px 0 40px; }
.xbo-public img { max-height: 440px; object-fit: contain; background: #eceaf2; }
@media (max-width:809px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .project-card h2 { margin-top: 12px; }
  .project-role { font-size: 13px; }
  .type-cover { font-size: clamp(32px, 7vw, 54px); }
}

.career-project { display: block; font: 14px/1.5 var(--mono); letter-spacing: normal; color: var(--muted); }
.case-link { color:var(--ink); text-decoration:underline; text-underline-offset:.16em; }
.xbo-card-cover { background:radial-gradient(ellipse at 72% 58%,#262a44,transparent 65%),#11111a; }
.xbo-card-cover img { object-fit:contain; padding:3%; }
