:root {
  color-scheme: light;
  --paper: #fde9de;
  --ink: #171614;
  --line: rgba(23, 22, 20, 0.3);
  --small-ui: 13px;
  --page-gutter: clamp(20px, 5.2vw, 88px);
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; scroll-snap-type: y proximity; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; }
img { display: block; max-width: 100%; }
::selection { color: var(--paper); background: var(--ink); }

.skip-link {
  position: fixed; z-index: 30; top: 8px; left: 8px; padding: 9px 12px;
  background: var(--ink); color: var(--paper); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.mono-small { font-size: 10px; line-height: 1.45; letter-spacing: .025em; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; padding: 11px var(--page-gutter);
  background: var(--paper);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark { width: 35px; height: 35px; object-fit: contain; background: var(--paper); }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: .035em; }
.top-nav { display: flex; gap: clamp(24px, 4vw, 64px); align-items: center; font-size: var(--small-ui); }
.top-nav a { padding: 7px 0; transition: opacity .18s ease; }
.top-nav a:hover, .top-nav a:focus-visible { opacity: .58; }

.section-shell { padding-right: var(--page-gutter); padding-left: var(--page-gutter); }
.intro {
  display: block; margin: 0;
  padding-top: clamp(44px, 3vw, 56px); padding-bottom: clamp(72px, 10vw, 150px);
}
.intro-copy { width: min(100%, 835px); margin-left: clamp(0px, 7vw, 140px); }
.intro-meta { margin-bottom: 72px; font-size: 10px; }
.section-bar, .site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.contact-content h2 {
  margin: 24px 0 34px; font-size: clamp(43px, 5.3vw, 80px);
  font-weight: 400; line-height: .99; letter-spacing: -.08em;
}
.contact-content h2 em { font-weight: 400; }
.company-copy { width: 100%; max-width: 70ch; }
.company-copy p { margin: 0 0 18px; font-size: var(--small-ui); line-height: 1.7; }
.word-blur .blur-word { display: inline; transition: filter .16s ease, opacity .16s ease; }
.word-blur .blur-word:hover { filter: blur(2.2px); opacity: .65; }

.projects-section { padding-top: 25px; padding-bottom: clamp(78px, 11vw, 164px); overflow: clip; }
.section-bar { margin-bottom: clamp(72px, 7vw, 128px); }
.project-grid {
  display: flex; flex-direction: column;
}
.project-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center; gap: clamp(28px, 2.2vw, 42px);
  min-height: 100svh; scroll-snap-align: center; scroll-snap-stop: always;
}
@media (min-width: 901px) {
  .project-row--urban {
    position: relative;
    left: max(0px, calc(50vw - 710px - var(--page-gutter)));
  }
}
.project-row--ethereal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-row--ethereal .project-tile { aspect-ratio: .92; background: transparent; }
.project-row--ethereal .project-tile img { object-fit: contain; }
.project-row--memeowry {
  grid-template-columns: minmax(0, .445fr) minmax(0, 1fr);
  width: min(115vw, 150vh, 1800px, calc(100vw - 32px));
  width: min(115vw, 150svh, 1800px, calc(100vw - 32px));
  align-self: center;
  position: relative;
  left: calc(-1 * var(--page-gutter));
  gap: clamp(20px, 2.2vw, 42px);
}
.project-row--memeowry .project-tile {
  align-self: center;
  aspect-ratio: auto;
  background: transparent;
}
.project-row--memeowry .project-tile:first-child { aspect-ratio: 1485 / 2216; }
.project-row--memeowry .project-tile:nth-child(2) { aspect-ratio: 3148 / 2084; }
.project-row--memeowry .project-tile img { object-fit: contain; }
@media (min-width: 901px) {
  .project-row--ethereal {
    width: min(calc(125% - clamp(21px, 1.65vw, 31.5px)), calc(100vw - 40px));
    align-self: center;
  }
}
.project-tile {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  aspect-ratio: .82; background: #ead6cc; cursor: none; text-align: left;
}
.project-tile.project-scroll-linked { will-change: transform; }
.project-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.project-tile img { width: 100%; height: 100%; object-fit: cover; }
.project-tile.project-featured {
  grid-column: 1 / -1;
  width: min(92vw, 120vh, 1440px); height: min(69vw, 90vh, 1080px);
  width: min(92vw, 120svh, 1440px); height: min(69vw, 90svh, 1080px);
  margin-inline: auto; aspect-ratio: 4 / 3;
}
.project-featured img { object-fit: contain; object-position: center; }
.project-mobile-title { display: none; }
.project-cursor {
  position: fixed; z-index: 12; top: 0; left: 0; display: none; pointer-events: none;
  max-width: calc(100vw - 16px); padding: 0;
  color: #fff; background: transparent; border: 0;
  font: 400 clamp(20px, 1.44vw, 26px)/1.2 var(--mono); letter-spacing: .015em;
  text-transform: uppercase; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; white-space: nowrap;
}
.project-cursor.is-visible { display: flex; }
.contact-section { padding-top: 25px; padding-bottom: clamp(70px, 9vw, 130px); }
.contact-content { display: grid; grid-template-columns: 1fr .7fr; gap: 8vw; padding-top: clamp(82px, 9.5vw, 150px); }
.contact-content h2 { margin: 0; font-size: clamp(48px, 6vw, 92px); }
.contact-details { max-width: 410px; padding-top: 8px; }
.contact-details p { margin: 0 0 20px; }
.contact-placeholder { padding: 10px 0; }
.back-to-top { display: inline-block; margin-top: 15px; }
.site-footer { min-height: 58px; padding: 10px var(--page-gutter); }

.runner-field { position: fixed; z-index: 9; inset: 0; overflow: hidden; pointer-events: none; }
.runner-track {
  position: absolute; top: 0; left: 0; display: block; width: max-content;
  height: calc(var(--small-ui) + var(--small-ui));
  animation-duration: var(--runner-duration, 10s); animation-timing-function: linear; animation-fill-mode: forwards;
}
.runner-track img { display: block; width: auto; height: calc(var(--small-ui) + var(--small-ui)); }
.runner-track--ltr { animation-name: runner-right; }
.runner-track--rtl { animation-name: runner-left; }
.runner-track--rtl img { transform: scaleX(-1); }
@keyframes runner-right {
  from { transform: translate3d(-100%, 0, 0); }
  to { transform: translate3d(100vw, 0, 0); }
}
@keyframes runner-left {
  from { transform: translate3d(100vw, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

.project-dialog {
  width: min(100vw, 1600px); height: 100dvh; max-width: none; max-height: none;
  margin: 0 auto; padding: clamp(20px, 4.8vw, 74px) var(--page-gutter);
  overflow-y: auto; border: 0; background: var(--paper); color: var(--ink);
}
.project-dialog::backdrop { background: rgba(23, 22, 20, .82); backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; }
.dialog-top button { padding: 0; background: none; cursor: pointer; }
.dialog-top button:hover { text-decoration: underline; }
.dialog-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 34px 0 26px; }
.dialog-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 74px); font-weight: 400; line-height: 1; letter-spacing: -.07em; }
.dialog-heading p { max-width: 390px; margin: 0; font-size: 11px; }
.dialog-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dialog-gallery figure { margin: 0; background: rgba(23,22,20,.05); }
.dialog-gallery img { width: 100%; height: min(75vh, 850px); object-fit: contain; background: #eadbd2; }
.dialog-gallery figcaption { padding: 6px 8px; font-size: 9px; }
body.dialog-open { overflow: hidden; }

@media (min-width: 1500px) {
  .section-shell { padding-right: max(var(--page-gutter), calc((100vw - 1420px) / 2)); padding-left: max(var(--page-gutter), calc((100vw - 1420px) / 2)); }
  .intro-copy { margin-left: 0; }
}
@media (max-width: 900px) {
  .intro-copy { width: min(100%, 740px); margin-left: clamp(0px, 5vw, 70px); }
  .project-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-row--memeowry {
    grid-template-columns: minmax(0, .445fr) minmax(0, 1fr);
    width: min(115vw, 150vh, 1800px, calc(100vw - 32px));
    width: min(115vw, 150svh, 1800px, calc(100vw - 32px));
  }
  .project-row--urban > .project-tile:nth-child(3) {
    grid-column: 1 / -1; width: calc(50% - 14px); justify-self: center;
  }
}
@media (max-width: 620px) {
  :root { --small-ui: 11px; }
  body { font-size: 12px; }
  .site-header { min-height: 65px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { font-size: 12px; }
  .top-nav { gap: 18px; }
  .intro { padding-top: 35px; padding-bottom: 70px; }
  .intro-copy { width: 100%; margin-left: 0; }
  .intro-meta { margin-bottom: 25px; font-size: 9px; }
  .projects-section, .contact-section { padding-top: 18px; }
  .section-bar { font-size: 8px; margin-bottom: 42px; }
  .project-row { gap: 22px; }
  .project-tile { cursor: pointer; aspect-ratio: .72; }
  .project-row--urban > .project-tile:nth-child(3) { width: calc(50% - 11px); }
  .project-mobile-title { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: block; padding: 9px 8px; background: rgba(253,233,222,.94); font-size: 9px; }
  .project-cursor { display: none !important; }
  .contact-content { grid-template-columns: 1fr; gap: 22px; padding-top: 55px; }
  .contact-content h2 { font-size: clamp(46px, 13vw, 72px); }
  .contact-details { padding-top: 0; }
  .site-footer { gap: 10px; font-size: 8px; }
  .site-footer span:nth-child(2) { display: none; }
  .dialog-heading { align-items: start; flex-direction: column; gap: 12px; padding: 26px 0 19px; }
  .dialog-gallery { grid-template-columns: 1fr; gap: 8px; }
  .dialog-gallery img { height: 68vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .runner-field { display: none; }
}
