:root {
  --paper: #f0ede6;
  --ink: #171715;
  --line: rgba(23, 23, 21, .22);
  --light-line: rgba(240, 237, 230, .24);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --gutter: clamp(22px, 4.2vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .08; background: url("/assets/grain.svg") repeat; mix-blend-mode: multiply; }
a { color: inherit; text-decoration: none; }
a, img { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 40; padding: 12px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(680px, 100svh); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: end; gap: 5vw; padding: 100px var(--gutter) 105px; }
.hero-illusions { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .25; transition: opacity .8s ease; -webkit-mask-image: radial-gradient(ellipse 62% 86% at 74% 48%, #000 12%, transparent 100%); mask-image: radial-gradient(ellipse 62% 86% at 74% 48%, #000 12%, transparent 100%); }
.hero-illusion { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero-illusion-cafe { background-image: url('/assets/illusion-cafe.svg'); animation: show-cafe 24s linear infinite, cafe-drift 18s ease-in-out infinite alternate; }
.hero-illusion-hering { background-image: url('/assets/illusion-hering.svg'); animation: show-hering 24s linear infinite, hering-drift 20s ease-in-out infinite alternate; }
@keyframes cafe-drift { from { background-position: calc(50% - 7px) center; } to { background-position: calc(50% + 7px) center; } }
@keyframes hering-drift { from { transform: scale(1); } to { transform: scale(1.025); } }
@keyframes show-cafe { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes show-hering { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.hero-scene { position: absolute; inset: 0 0 0 38%; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1s ease; -webkit-mask-image: linear-gradient(to right, transparent, #000 24%); mask-image: linear-gradient(to right, transparent, #000 24%); }
.hero-scene canvas { display: block; width: 100%; height: 100%; }
.hero-name, .hero-copy { position: relative; z-index: 1; transition: opacity .35s ease .35s, transform .35s ease .35s; }
.hero.is-project .hero-name, .hero.is-project .hero-copy { opacity: 0; transform: translateY(-26px); pointer-events: none; transition-delay: 0s; }
.hero.is-project .hero-copy { animation: none; }
.hero.is-project .hero-illusions { opacity: 0; }
.hero.is-project .hero-scene { opacity: 1; }
.hero h1 { margin: 0; font: normal clamp(100px, 11.5vw, 185px)/.79 var(--serif); letter-spacing: -.105em; animation: rise-in .7s ease both; }
.hero h1 span { font-style: italic; }
.hero-copy { max-width: 470px; padding-bottom: 6px; animation: rise-in .7s .12s ease both; }
.hero-copy p { margin: 0 0 30px; font: clamp(20px, 1.9vw, 29px)/1.35 var(--sans); letter-spacing: -.035em; }
.work-picker { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font: 12px var(--mono); }
.work-picker select { max-width: 190px; padding: 4px 18px 4px 0; border: 0; border-radius: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.work-picker select:focus-visible { outline-offset: 3px; }
.hero-project { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding: 100px var(--gutter) 85px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .35s ease, visibility 0s .35s; }
.hero.is-project .hero-project { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .45s ease .35s, visibility 0s .35s; }
.hero-return { position: absolute; top: 45px; left: var(--gutter); padding: 0 0 6px; border: 0; border-bottom: 1px solid currentColor; background: none; color: inherit; font: 12px var(--mono); cursor: pointer; }
.hero-return:hover { font-style: italic; }
.hero-project-content { width: min(100%, 660px); }
.hero-project-label { margin: 0 0 25px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.hero-project h2 { margin: 0 0 25px; font: normal clamp(68px, 8.5vw, 135px)/.88 var(--serif); letter-spacing: -.075em; }
.hero-project-intro { max-width: 600px; margin: 0 0 32px; font: clamp(21px, 2vw, 29px)/1.3 var(--sans); letter-spacing: -.03em; }
.hero-project-facts { display: flex; gap: 28px; flex-wrap: wrap; max-width: 620px; margin-bottom: 38px; }
.hero-project-facts div { display: flex; flex-direction: column; gap: 7px; max-width: 250px; }
.hero-project-facts span { font: 10px var(--mono); }
.hero-project-facts strong { font: normal 16px/1.3 var(--sans); }
.hero-project-link { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid currentColor; font: 12px var(--mono); }
.hero-project-link:hover { font-style: italic; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.site-footer h2 { margin: 0 0 28px; font: normal clamp(54px, 6vw, 85px)/.95 var(--serif); letter-spacing: -.07em; }
.work-list { border-top: 1px solid currentColor; }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr) 25px; align-items: baseline; gap: 25px; padding: 30px 0; border-bottom: 1px solid currentColor; }
.work-row strong { font: normal clamp(37px, 4vw, 66px)/1 var(--serif); letter-spacing: -.055em; }
.work-row span { font: 16px/1.45 var(--sans); }
.work-row b { justify-self: end; font: 24px var(--serif); }
.work-row:hover strong { font-style: italic; }

.interior-heading { padding: 95px var(--gutter) 90px; }
.interior-heading h1 { margin: 0; font: normal clamp(92px, 11vw, 180px)/.85 var(--serif); letter-spacing: -.085em; }
.interior-heading p { max-width: 720px; margin: 35px 0 0; font: 24px/1.4 var(--sans); }
.return-link { display: inline-block; margin-bottom: 50px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font: 12px var(--mono); }
.return-link:hover { font-style: italic; }
.work-index { padding: 0 var(--gutter) 130px; }
.case-back:hover { text-decoration: underline; }
.case-heading { padding: 95px var(--gutter) 95px; }
.case-heading h1 { margin: 0 0 35px; font: normal clamp(72px, 9vw, 145px)/.88 var(--serif); letter-spacing: -.075em; overflow-wrap: anywhere; }
.case-heading p { max-width: 860px; margin: 0; font: clamp(22px, 2.6vw, 38px)/1.3 var(--sans); letter-spacing: -.035em; }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-facts div { display: flex; flex-direction: column; gap: 24px; min-height: 155px; padding: 25px var(--gutter); }
.case-facts div + div { border-left: 1px solid var(--line); }
.case-facts span { font: 10px var(--mono); }
.case-facts strong { font: normal clamp(20px, 2vw, 29px)/1.3 var(--sans); }
.case-body { padding: 95px var(--gutter) 120px; }
.case-body p { max-width: 760px; margin: 0 0 0 30%; font: clamp(21px, 2.2vw, 31px)/1.48 var(--sans); }
.case-back { display: block; padding: 30px var(--gutter); border-top: 1px solid var(--line); font: 12px var(--mono); }
.site-footer { padding: 75px var(--gutter) 28px; background: var(--ink); color: var(--paper); }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.footer-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 165px; padding: 20px; transition: transform .25s ease; }
.footer-card:hover { transform: translateY(-4px); }
.footer-card img { display: block; max-width: 100%; height: auto; }
.footer-card strong { display: block; font: normal clamp(25px, 2.7vw, 38px)/1 var(--serif); letter-spacing: -.05em; }
.footer-card b { position: absolute; top: 13px; right: 15px; font: 20px var(--serif); }
.footer-flygon { background: #7cb980; color: #324b34; }
.footer-flygon img { width: min(85%, 175px); image-rendering: pixelated; }
.footer-sunbelt { background: #253874; color: #fff; }
.footer-sunbelt img { width: 54px; margin-bottom: 9px; }
.footer-sunbelt strong { font-family: var(--sans); font-size: clamp(19px, 2vw, 27px); font-weight: 400; letter-spacing: -.06em; text-align: center; }
.footer-music { background: #f0ede6; color: var(--ink); }
.footer-music strong { font-style: italic; }
.footer-github { background: #e5e1d8; color: var(--ink); }
.footer-github strong { font-family: var(--mono); font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 18px; border-top: 1px solid var(--light-line); font: 10px var(--mono); opacity: .7; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 50px; min-height: 0; padding-top: 100px; }
  .hero.is-project { min-height: 680px; }
  .hero h1 { font-size: clamp(92px, 15vw, 150px); }
  .work-row { grid-template-columns: minmax(0, 1fr) minmax(200px, .8fr) 25px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hero { gap: 55px; padding-top: 90px; padding-bottom: 95px; }
  .hero.is-project { min-height: 720px; }
  .hero-illusions { opacity: .3; -webkit-mask-image: radial-gradient(ellipse 82% 75% at 78% 48%, #000 10%, transparent 100%); mask-image: radial-gradient(ellipse 82% 75% at 78% 48%, #000 10%, transparent 100%); }
  .hero-scene { inset: 0 0 35% 0; -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent); mask-image: linear-gradient(to bottom, #000 20%, transparent); }
  .hero.is-project .hero-scene { opacity: .65; }
  .hero-project { padding: 100px var(--gutter) 65px; }
  .hero-return { top: 28px; }
  .hero-project h2 { font-size: clamp(58px, 13vw, 88px); }
  .hero-project-intro { font-size: 21px; }
  .hero-project-facts { gap: 18px; margin-bottom: 28px; }
  .hero-project-facts strong { font-size: 14px; }
  .hero h1 { font-size: clamp(76px, 17vw, 110px); }
  .hero-copy p { font-size: 21px; }
  .site-footer h2 { font-size: 58px; margin-bottom: 28px; }
  .work-row { grid-template-columns: 1fr 25px; gap: 9px; padding: 23px 0; }
  .work-row strong { font-size: 38px; }
  .work-row span { grid-column: 1; grid-row: 2; font-size: 14px; }
  .work-row b { grid-column: 2; grid-row: 1; }
  .interior-heading { padding: 80px var(--gutter); }
  .interior-heading h1 { font-size: 90px; }
  .interior-heading p { font-size: 22px; }
  .work-index { padding-bottom: 100px; }
  .case-heading { padding: 80px var(--gutter); }
  .case-heading h1 { font-size: clamp(52px, 11vw, 72px); }
  .case-heading p { font-size: 23px; }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts div { min-height: 0; gap: 12px; padding: 24px var(--gutter); }
  .case-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .case-body { padding: 80px var(--gutter); }
  .case-body p { margin-left: 0; font-size: 22px; }
  .site-footer { padding-top: 65px; }
  .footer-links { gap: 10px; }
  .footer-card { min-height: 125px; padding: 12px; }
  .footer-card strong { font-size: 25px; }
  .footer-card b { top: 9px; right: 10px; font-size: 17px; }
  .footer-sunbelt img { width: 40px; margin-bottom: 5px; }
  .footer-sunbelt strong { font-size: 19px; }
  .footer-bottom { flex-wrap: wrap; margin-top: 45px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 18vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .hero-illusion-cafe { animation: none !important; opacity: 1; }
  .hero-illusion-hering { animation: none !important; opacity: 0; }
}
