@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }

:root {
  --ink: #1c1d1a;
  --ink-soft: #4a4d48;
  --dim: #555a56;
  --morning: #eceee9;
  --noon: #dfebf0;
  --sage: #cbd3d0;
  --dusk: #252a2d;
  --dusk-ink: #e9e8e2;
  --sun: #cba85f;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.4vw, 56px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--morning);
  color: var(--ink);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
figure { margin: 0; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--morning); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  background: inherit;
  transition: color .6s ease;
}
.nav__mark { font: 300 22px/1 var(--serif); text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 28px; font-size: 15px; }
.nav__links a, .nav__contact { text-decoration: none; padding: 8px 0; }
.nav__links a:hover, .nav__contact:hover { text-decoration: underline; }
.nav__contact { font-size: 15px; }
body.is-dusk .nav { color: var(--dusk-ink); }

/* hero */
.hero { padding: var(--nav-h) var(--gutter) 0; min-height: 100svh; display: flex; flex-direction: column; }
.hero__film { position: relative; flex: 1 1 auto; min-height: 52svh; overflow: hidden; background: #b9b3a5 url("media/light-poster.jpg") center/cover no-repeat; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__words {
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; column-gap: 40px; row-gap: 12px;
  padding: 22px 0 28px;
}
.hero__title { font-size: clamp(64px, 12.4vw, 214px); line-height: .84; letter-spacing: -0.035em; grid-row: span 2; }
.hero__name { display: inline-block; }
.hero__line { font: 300 clamp(19px, 1.7vw, 25px)/1.35 var(--serif); max-width: 30ch; }
.hero__where { font-size: 15px; color: var(--ink-soft); }

/* daylight: the flat version is the default */
.daylight { padding: 18vh var(--gutter) 10vh; }
.daylight__intro { max-width: 1100px; margin-bottom: 8vh; }
.daylight__title { font-size: clamp(42px, 6.6vw, 112px); line-height: .98; letter-spacing: -0.03em; max-width: 13ch; }
.daylight__note { margin-top: 22px; max-width: 34ch; color: var(--ink-soft); }
.daylight__stage { display: grid; gap: 48px; }
.room { position: relative; }
.room__shade { display: none; }
.room__lit { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room__cap { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; padding-top: 12px; font-size: 15px; }
.room__time { font-family: var(--serif); font-size: 19px; }
.room__proj { color: var(--ink-soft); }

/* projects */
.projects { padding: 16vh var(--gutter) 14vh; }
.projects__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: 7vh; }
.projects__title { font-size: clamp(42px, 6.6vw, 112px); line-height: .95; letter-spacing: -0.03em; }
.projects__note { max-width: 34ch; color: var(--ink-soft); }
.projects__body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5vw; align-items: start; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(28,29,26,.25); }
.index__item { border-bottom: 1px solid rgba(28,29,26,.25); }
.index__link { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 20px; padding: 18px 0 16px; text-decoration: none; transition: color .35s ease, padding .5s cubic-bezier(.2,.7,.2,1); }
.index__name { font: 300 clamp(34px, 4.4vw, 70px)/1 var(--serif); letter-spacing: -0.02em; }
.index__meta { font-size: 15px; color: var(--ink-soft); text-align: right; }
.index__thumb { display: none; }
.index:hover .index__link, .index:focus-within .index__link { color: var(--dim); }
.index .index__link:hover, .index .index__link:focus-visible, .index .index__link.is-on { color: var(--ink); padding-left: 18px; }
.preview { position: sticky; top: calc(var(--nav-h) + 4vh); aspect-ratio: 4 / 5; overflow: hidden; background: rgba(28,29,26,.08); }
.preview__img { position: absolute; inset: 0; clip-path: inset(0 50% 0 50%); transition: clip-path .8s cubic-bezier(.65,0,.2,1); }
.preview__img img { width: 100%; height: 100%; object-fit: cover; }
.preview__img.is-on { clip-path: inset(0 0 0 0); z-index: 2; }
.preview__img.is-was { clip-path: inset(0 0 0 0); z-index: 1; }

/* materials */
.materials { padding: 16vh var(--gutter) 14vh; }
.materials__head { max-width: 1000px; margin-bottom: 8vh; }
.materials__title { font-size: clamp(38px, 5.4vw, 92px); line-height: 1; letter-spacing: -0.03em; max-width: 16ch; }
.materials__note { margin-top: 22px; max-width: 40ch; color: var(--ink-soft); }
.materials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7vh 3vw; }
.mat:nth-child(3n+2) { margin-top: 12vh; }
.mat:nth-child(3n+3) { margin-top: 5vh; }
.mat__frame { aspect-ratio: 4 / 5; overflow: hidden; }
.mat__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.mat figcaption { display: grid; gap: 4px; padding-top: 14px; font-size: 15px; }
.mat__name { font: 300 24px/1.15 var(--serif); }
.mat__quote { max-width: 34ch; }
.mat__proj { color: var(--ink-soft); }

/* studio */
.studio { padding: 16vh var(--gutter) 16vh; }
.studio__grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 6vh 5vw; align-items: start; }
.studio__text { display: grid; gap: 22px; max-width: 40ch; font-size: 18px; }
.studio__title { font-size: clamp(34px, 4vw, 64px); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 10px; }
.studio__founders figcaption { font-size: 15px; color: var(--ink-soft); padding-top: 10px; }
.studio__sketch { grid-column: 2; width: 52%; justify-self: end; }
.ledger { margin-top: 14vh; }
.ledger__title { font-size: clamp(30px, 3vw, 46px); margin-bottom: 4vh; }
.ledger__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(28,29,26,.3); }
.ledger__row { display: grid; grid-template-columns: 80px 1.1fr 1.6fr 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(28,29,26,.3); font-size: 16px; }
.ledger__year { font-family: var(--serif); font-size: 19px; }
.ledger__proj { text-align: right; }

/* dusk */
.dusk { background: var(--dusk); color: var(--dusk-ink); padding: 18vh var(--gutter) 14vh; }
.dusk__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw; align-items: end; }
.dusk__fig { position: relative; }
.dusk__base { filter: saturate(.2) brightness(.5) contrast(1.1); }
.dusk__lit { position: absolute; inset: 0; width: 100%; height: auto; }
.dusk__fig figcaption { font-size: 15px; padding-top: 10px; color: #b9bab4; }
.dusk__title { font-size: clamp(42px, 6vw, 104px); line-height: .98; letter-spacing: -0.03em; max-width: 11ch; }
.dusk__lede { margin-top: 26px; max-width: 36ch; font-size: 18px; }
.dusk__mail { margin-top: 6vh; font: 300 clamp(30px, 4.2vw, 68px)/1 var(--serif); letter-spacing: -0.02em; }
.dusk__mail a { text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.dusk__mail a:hover { color: var(--sun); }
.dusk__facts { margin: 6vh 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 24px; font-size: 15px; }
.dusk__facts dt { color: #b9bab4; }
.dusk__facts dd { margin: 4px 0 0; }

.foot { background: var(--dusk); color: #b9bab4; padding: 28px var(--gutter) 36px; font-size: 14px; border-top: 1px solid rgba(233,232,226,.18); }
.foot a { color: var(--dusk-ink); }

/* project sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--morning); color: var(--ink); }
.sheet[hidden] { display: none; }
.sheet__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 12vh; }
.sheet__close { position: sticky; top: 16px; float: right; z-index: 2; margin-top: 16px; font: 400 15px var(--sans); background: var(--ink); color: var(--morning); border: 0; padding: 12px 18px; cursor: pointer; }
.sheet__content { max-width: 1240px; margin: 0 auto; padding-top: 12vh; }
.sheet__type { font-size: 15px; color: var(--ink-soft); }
.sheet__title { font-size: clamp(48px, 8vw, 132px); line-height: .92; letter-spacing: -0.035em; margin: 14px 0 26px; }
.sheet__lede { font: 300 clamp(20px, 1.8vw, 28px)/1.35 var(--serif); max-width: 40ch; }
.sheet__fig { margin-top: 8vh; }
.sheet__fig img { width: 100%; }
.sheet__fig figcaption { font-size: 15px; color: var(--ink-soft); padding-top: 10px; }
.sheet__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6vw; margin-top: 8vh; }
.sheet__body { max-width: 52ch; font-size: 18px; }
.sheet__facts { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(28,29,26,.25); }
.sheet__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(28,29,26,.25); font-size: 15px; }
.sheet__facts dt { color: var(--ink-soft); }
.sheet__facts dd { margin: 0; }
.sheet__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; align-items: start; }
.sheet__pair .sheet__fig:nth-child(2) { margin-top: 16vh; }
.sheet__out { margin-top: 10vh; font: 300 clamp(22px, 2vw, 30px) var(--serif); }
.sheet.is-in .sheet__content { animation: sheetIn .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* flat page: each section keeps its time of day */
.daylight, .projects { background: var(--noon); }
.materials, .studio { background: var(--sage); }
.js-motion .daylight, .js-motion .projects, .js-motion .materials, .js-motion .studio { background: transparent; }

/* ---------- motion layer (only when JS + motion allowed) ---------- */
.js-motion .hero__name { clip-path: polygon(0 0, 0 0, -10% 100%, -10% 100%); }
.js-motion.is-ready .hero__name { clip-path: none; }
.js-motion .daylight { padding: 0; }
.js-motion .daylight__intro { padding: 18vh var(--gutter) 10vh; margin: 0; }
.js-motion .daylight__track { height: 400svh; }
.js-motion .daylight__stage { display: block; position: sticky; top: 0; height: 100svh; overflow: hidden; background: #111; }
.js-motion .room { position: absolute; inset: 0; opacity: 0; }
.js-motion .room[data-room="0"] { opacity: 1; }
.js-motion .room__shade, .js-motion .room__lit { display: block; position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--pos, 50% 50%); }
.js-motion .room__shade { filter: brightness(.46) saturate(.55) contrast(1.04); }
.js-motion .room__lit { clip-path: polygon(0 0, 0 0, 0 0); will-change: clip-path; }
.js-motion .room__cap { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; color: #f3f2ec; background: rgba(22,23,21,.62); padding: 12px 16px; }
.js-motion .room__proj { color: #f3f2ec; }
.room[data-room="0"] { --pos: 50% 40%; }
.room[data-room="1"] { --pos: 45% 50%; }
.room[data-room="2"] { --pos: 50% 50%; }
.js-motion .lit-line { color: var(--dim); transition: color .9s ease; }
.js-motion .lit-line.is-lit { color: var(--ink); }
.js-motion .dusk__lit { opacity: 0; }

/* phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav__links { display: none; }
  .hero__film { min-height: 56svh; background-image: url("media/light-poster-s.jpg"); }
  .hero__words { grid-template-columns: 1fr; padding: 18px 0 24px; }
  .hero__title { grid-row: auto; font-size: clamp(58px, 19vw, 90px); }
  .daylight__title, .projects__title { font-size: clamp(40px, 12vw, 58px); }
  .room__cap { grid-template-columns: 1fr; gap: 2px; }
  .js-motion .room__cap { bottom: 22px; }
  .room[data-room="0"] { --pos: 62% 50%; }
  .room[data-room="1"] { --pos: 42% 50%; }
  .room[data-room="2"] { --pos: 70% 50%; }
  .projects__head, .projects__body { grid-template-columns: 1fr; }
  .preview { display: none; }
  .index__link { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .index__meta { text-align: left; }
  .index__thumb { display: block; order: -1; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px; }
  .index__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .index .index__link:hover, .index .index__link:focus-visible, .index .index__link.is-on { padding-left: 0; }
  .index:hover .index__link, .index:focus-within .index__link { color: var(--ink); }
  .materials__grid { grid-template-columns: 1fr 1fr; gap: 5vh 14px; }
  .mat:nth-child(3n+2), .mat:nth-child(3n+3) { margin-top: 0; }
  .mat:nth-child(2n) { margin-top: 8vh; }
  .mat__name { font-size: 20px; }
  .mat figcaption { font-size: 14px; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__sketch { grid-column: 1; width: 60%; }
  .ledger__row { grid-template-columns: 56px 1fr; row-gap: 2px; font-size: 15px; }
  .ledger__type, .ledger__proj { grid-column: 2; text-align: left; }
  .ledger__proj { color: var(--ink-soft); }
  .dusk__grid { grid-template-columns: 1fr; }
  .dusk__fig { width: 82%; }
  .dusk__mail { font-size: clamp(26px, 8.4vw, 38px); }
  .dusk__facts { grid-template-columns: 1fr; gap: 16px; }
  .sheet__cols, .sheet__pair { grid-template-columns: 1fr; }
  .sheet__pair .sheet__fig:nth-child(2) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
