:root {
  --ink: #11110f;
  --paper: #f6f5f0;
  --signal: #dfff00;
  --quiet: #a5a39d;
  --line: rgba(17, 17, 15, 0.2);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; font-family: Helvetica, Arial, sans-serif; font-size: 16px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: white; padding: 12px 18px; }
.skip:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 24px; mix-blend-mode: difference; color: white;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
}
.brand { justify-self: start; font-weight: 700; }
.landing-header { display: flex; }
.page-name { justify-self: center; }
.nav { justify-self: end; display: flex; gap: 18px; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; border-bottom: 1px solid; transition: right .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.horizontal { height: 100svh; overflow-x: auto; overflow-y: hidden; display: flex; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-inline: contain; }
.horizontal::-webkit-scrollbar { display: none; }
.panel { flex: 0 0 100vw; height: 100svh; scroll-snap-align: start; position: relative; overflow: hidden; }
.media-frame { position: absolute; inset: 0; background: var(--tone, #cac7bc); }
.media-frame::before {
  content: attr(data-label); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: rgba(17,17,15,.46); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
.tone-red { --tone: #bd3d2b; }
.tone-blue { --tone: #aebdca; }
.tone-green { --tone: #57665d; }
.tone-stone { --tone: #c7c0b3; }
.tone-black { --tone: #171715; }

.home-panel { z-index: 1; display: flex; align-items: flex-end; padding: 0 5vw 6vh; }
.home-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.34)); pointer-events: none; }
.home-panel .label { position: relative; z-index: 2; color: white; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.eyebrow { margin: 0 0 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
h1, h2, p { margin-top: 0; }
.display { margin: 0; font-size: clamp(3rem, 9vw, 9rem); line-height: .86; letter-spacing: -.065em; font-weight: 500; }
.home-panel .index { font-size: .8rem; letter-spacing: .08em; white-space: nowrap; }
.home-panel a.label .display { transition: color .22s ease; }
.home-panel a.label:hover .display, .home-panel a.label:focus-visible .display { color: var(--signal); }
.landing-panel .label { position: relative; z-index: 2; color: white; width: 100%; }
.home-slideshow { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; background: #171715; pointer-events: none; }
.landing-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.landing-slide.is-active { opacity: 1; }
.intro-mark { position: absolute; right: 4vw; top: 50%; z-index: 2; transform: translateY(-50%); writing-mode: vertical-rl; color: white; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue { position: fixed; z-index: 10; left: 24px; bottom: 20px; width: 58px; height: 12px; color: white; mix-blend-mode: difference; }
.scroll-cue span { position: absolute; left: 0; top: 5px; width: 48px; height: 1px; background: currentColor; animation: cue-shift 1.8s ease-in-out infinite; }
.scroll-cue span::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
@keyframes cue-shift { 0%, 100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(9px); opacity: 1; } }
.progress { position: fixed; z-index: 10; right: 24px; bottom: 22px; width: 90px; height: 1px; background: rgba(255,255,255,.4); mix-blend-mode: difference; }
.progress span { display: block; height: 100%; width: 0; background: white; }
.rail-controls { position: fixed; z-index: 12; right: 18px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
.rail-controls button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(17,17,15,.18); color: white; backdrop-filter: blur(8px); cursor: pointer; font: inherit; font-size: 1.1rem; }
.rail-controls button:hover { background: rgba(17,17,15,.5); }
.rail-controls button:disabled { opacity: .28; cursor: default; }

.index-page { min-height: 100svh; padding: 15vh 5vw 10vh; }
.index-heading { display: grid; grid-template-columns: 1fr 2fr; margin-bottom: 18vh; align-items: end; }
.index-heading h1 { margin: 0 0 clamp(1.25rem, 2.4vw, 2.5rem); font-size: clamp(3.5rem, 10vw, 9rem); font-weight: 500; letter-spacing: -.065em; line-height: .84; }
.index-heading p { margin: 0; max-width: 34ch; line-height: 1.45; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12vw 6vw; }
.project-card:nth-child(2) { margin-top: 18vh; }
.thumb { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--tone, #ccc); }
.thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card[href="/projects/above-stillness/"] .thumb { background: white; }
.project-card[href="/projects/above-stillness/"] .thumb img { object-fit: contain; }
.project-card:hover .thumb img { transform: scale(1.015); }
.thumb::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; color: rgba(17,17,15,.45); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.thumb::after { content: "View project"; position: absolute; inset: auto 14px 14px auto; background: var(--paper); padding: 8px 10px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; transform: translateY(52px); transition: transform .25s ease; }
.project-card:hover .thumb::after { transform: none; }
.card-meta { display: flex; justify-content: space-between; gap: 24px; padding-top: 14px; border-top: 1px solid var(--ink); margin-top: 10px; }
.card-meta h2 { font-size: 1rem; font-weight: 500; margin: 0; }
.tags { color: #5f5e59; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.project-panel { display: grid; grid-template-columns: minmax(260px, 32vw) 1fr; background: var(--paper); }
.project-copy { padding: calc(var(--header-h) + 7vh) 4vw 6vh; display: flex; flex-direction: column; justify-content: space-between; }
.project-copy h1 { font-size: clamp(3rem, 6.5vw, 7rem); line-height: .88; letter-spacing: -.06em; font-weight: 500; margin: 0; }
.project-copy .summary { max-width: 35ch; line-height: 1.5; }
.project-media { position: relative; min-height: 100%; }
.project-media .media-frame { inset: 0; }
.project-panel.full { display: block; }
.project-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #15130f; }
.project-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #15130f; }
.project-image.contain { object-fit: contain; background: white; }
.project-panel.board { background: white; }
.above-stillness .project-panel.board .project-image { object-fit: contain; background: white; }
.project-panel.board .caption { color: var(--ink); mix-blend-mode: normal; }
.project-panel.study-pair { display: grid; grid-template-columns: 54fr 46fr; gap: 0; padding: 5vh 3vw; background: white; }
.study-pair-item { position: relative; min-width: 0; overflow: hidden; }
.study-pair-item.plan .project-image { transform: scale(1.16); }
.study-pair-item.samples .project-image { transform: scale(1.34); }
.above-stillness .project-image { object-fit: contain; background: white; }
.above-stillness .study-pair-item .project-image { transform: none; }
.study-pair .caption { color: var(--ink); mix-blend-mode: normal; }
.caption { position: absolute; z-index: 2; left: 22px; bottom: 20px; margin: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: white; mix-blend-mode: difference; }
.project-panel.text-panel { display: grid; place-items: center; padding: 12vw; }
.statement { max-width: 17ch; font-size: clamp(2rem, 5vw, 5.5rem); line-height: .98; letter-spacing: -.04em; }

.about { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; background: #d9d6cc; }
.about-visual { min-height: 100svh; position: relative; margin: 0; display: grid; place-items: center; padding: 0; background: #bbb9ad; overflow: hidden; }
.about-image { width: 100%; height: 100%; min-height: 100svh; display: block; object-fit: cover; object-position: 50% 43%; filter: saturate(.82) contrast(.96); }
.about-visual figcaption { position: absolute; left: 4vw; bottom: 3vh; color: white; mix-blend-mode: difference; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.about-copy { min-height: 100svh; padding: calc(var(--header-h) + 7vh) 6vw 8vh; display: flex; flex-direction: column; gap: 7vh; overflow-y: auto; }
.about-copy h1 { font-size: clamp(4rem, 9vw, 9rem); letter-spacing: -.07em; line-height: .85; font-weight: 500; margin-bottom: 0; }
.about-copy .bio { font-size: clamp(.9rem, 1.15vw, 1.25rem); line-height: 1.42; letter-spacing: -.01em; max-width: 42ch; }
.about-copy .bio p { margin: 0 0 1.35em; }
.about-copy .bio p:last-child { margin-bottom: 0; }
.about-contact { margin-top: auto; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact { display: inline-block; border-bottom: 1px solid; padding-bottom: 3px; }
.contact:hover { color: var(--signal); }

.philosophy { min-height: 100svh; background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + 7vh) 5vw 7vh; display: flex; flex-direction: column; justify-content: space-between; }
.philosophy h1 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 400; }
.philosophy blockquote { margin: 8vh 0; max-width: 18ch; font-size: clamp(3rem, 7.8vw, 8rem); line-height: .92; letter-spacing: -.055em; }
.philosophy footer { display: flex; justify-content: space-between; gap: 24px; color: #a9a79f; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.wip-rail { background: #d8d8d2; }
.wip-panel { isolation: isolate; background: #d8d8d2; }
.wip-intro { background: var(--signal); padding: calc(var(--header-h) + 8vh) 5vw 7vh; display: flex; flex-direction: column; justify-content: space-between; }
.wip-intro .eyebrow { font-size: .76rem; }
.wip-intro h1 { margin: 0; font-size: clamp(5rem, 14.5vw, 14rem); font-weight: 500; line-height: .72; letter-spacing: -.085em; }
.wip-intro h1 span { display: block; }
.wip-intro h1 span:last-child { margin-left: 17vw; }
.wip-note { align-self: flex-end; width: min(28ch, 34vw); margin: 0; font-size: clamp(1rem, 1.5vw, 1.4rem); line-height: 1.25; }
.wip-section-title { position: absolute; z-index: 8; top: calc(var(--header-h) + 2.5vh); left: 3vw; margin: 0; font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
.wip-section-title span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: .65rem; border: 1px solid currentColor; border-radius: 50%; }
.wip-frame { position: absolute; margin: 0; aspect-ratio: 1087 / 1447; overflow: hidden; background: white; box-shadow: 0 18px 50px rgba(17,17,15,.16); }
.wip-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wip-trace { background: #efeee9; }
.trace-a { width: min(32vw, 460px); left: 11vw; top: 15vh; transform: rotate(-2.5deg); }
.trace-b { width: min(29vw, 420px); right: 11vw; top: 9vh; transform: rotate(2deg); }
.wip-trace::after { content: "TRACE / TEST / ADJUST"; position: absolute; left: 42vw; bottom: 8vh; z-index: 1; color: var(--signal); font-size: clamp(2.4rem, 6vw, 6rem); font-weight: 700; line-height: .8; letter-spacing: -.06em; transform: rotate(-90deg); transform-origin: left bottom; white-space: nowrap; }
.wip-build { background: #c8c7c1; }
.build-a { width: min(25vw, 360px); left: 7vw; top: 8vh; transform: rotate(-2deg); z-index: 1; }
.build-b { width: min(31vw, 450px); left: 35vw; top: 17vh; z-index: 3; }
.build-c { width: min(25vw, 360px); right: 6vw; top: 7vh; transform: rotate(2.5deg); z-index: 2; }
.wip-volume { background: var(--ink); color: var(--paper); }
.volume-a { width: min(31vw, 450px); left: 8vw; top: 12vh; z-index: 1; transform: rotate(-1.5deg); }
.volume-b { width: min(24vw, 350px); left: 39vw; top: 25vh; z-index: 3; transform: rotate(2deg); }
.volume-c { width: min(27vw, 390px); right: 7vw; top: 9vh; z-index: 2; transform: rotate(-1deg); }
.wip-final { background: #f6f5f0; }
.final-a { width: min(24vw, 350px); left: 6vw; top: 17vh; transform: rotate(-1.5deg); }
.final-b { width: min(31vw, 450px); left: 34.5vw; top: 8vh; z-index: 2; }
.final-c { width: min(24vw, 350px); right: 6vw; top: 17vh; transform: rotate(1.5deg); }

.notes-page { min-height: 100svh; padding: calc(var(--header-h) + 8vh) 5vw 8vh; background: #d7d34c; }
.notes-head { display: flex; justify-content: space-between; align-items: start; gap: 40px; }
.notes-head h1 { font-size: clamp(4rem, 11vw, 10rem); line-height: .82; letter-spacing: -.07em; font-weight: 500; max-width: 7ch; }
.notes-head p { max-width: 28ch; line-height: 1.45; }
.note-card { width: min(56vw, 760px); margin: 12vh auto 0; }
.note-card .thumb { aspect-ratio: 16/10; }

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .page-name { display: none; }
  .nav { gap: 12px; overflow-x: auto; max-width: 66vw; scrollbar-width: none; }
  .nav a:nth-child(n+4) { display: none; }
  .horizontal { scroll-snap-type: x proximity; }
  .project-page.horizontal { display: block; height: auto; min-height: 100svh; overflow-x: hidden; overflow-y: visible; scroll-snap-type: none; }
  .project-page .panel { display: block; width: 100%; height: auto; min-height: 0; overflow: visible; scroll-snap-align: none; }
  .project-page .project-copy { min-height: 72svh; }
  .project-page .project-media { position: relative; width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .project-page .project-image, .project-page .project-video { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  .project-page .project-panel:first-child { display: flex; flex-direction: column; }
  .project-page .project-panel:first-child .project-copy { display: contents; }
  .project-page .project-panel:first-child .project-copy > div { order: 1; padding: calc(var(--header-h) + 7vh) 22px 7vh; }
  .project-page .project-panel:first-child .project-media { order: 2; }
  .project-page .project-panel:first-child .project-copy .summary { order: 3; padding: 7vh 22px 9vh; margin: 0; max-width: 35ch; }
  .project-page .project-panel.board, .project-page .project-panel.full { padding: 0 16px; }
  .project-page .project-panel.board .project-image, .project-page .project-panel.full .project-image { background: white; }
  .project-page .project-panel.study-pair { display: block; padding: 7vh 16px 5vh; }
  .project-page .study-pair-item { margin-bottom: 6vh; }
  .project-page .study-pair-item:last-child { margin-bottom: 0; }
  .project-page .study-pair-item .project-image { transform: none; }
  .project-page .caption { position: relative; left: auto; bottom: auto; padding: 12px 0 0; }
  .project-page ~ .scroll-cue, .project-page ~ .progress { display: none; }
  .rail-controls { right: 12px; top: auto; bottom: 54px; transform: none; }
  .rail-controls button { width: 42px; height: 42px; }
  .home-panel { padding: 0 20px 9vh; }
  .home-panel .label { display: block; }
  .home-panel .index { margin-top: 16px; }
  .display { font-size: clamp(3.4rem, 17vw, 6rem); }
  .scroll-cue { left: 16px; }
  .progress { right: 16px; }
  .index-page { padding: 16vh 20px 12vh; }
  .index-heading { grid-template-columns: 1fr; gap: 32px; margin-bottom: 12vh; }
  .project-grid { grid-template-columns: 1fr; gap: 14vh; }
  .project-card:nth-child(2) { margin-top: 0; }
  .project-panel { grid-template-columns: 82vw 100vw; }
  .project-panel.study-pair { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; padding: 7vh 16px 5vh; }
  .study-pair-item.plan .project-image { transform: scale(1.08); }
  .study-pair-item.samples .project-image { transform: scale(1.18); }
  .project-copy { padding: calc(var(--header-h) + 7vh) 22px 7vh; }
  .project-panel.text-panel { padding: 24px; }
  .statement { font-size: 2.6rem; }
  .about { grid-template-columns: 1fr; }
  .about-visual { min-height: 72svh; padding: 0; }
  .about-image { min-height: 72svh; object-position: 50% 42%; }
  .about-visual figcaption { left: 20px; bottom: 3vh; }
  .about-copy { min-height: auto; padding: 13vh 22px 8vh; gap: 6vh; overflow-y: visible; }
  .about-copy .bio { font-size: .98rem; line-height: 1.42; max-width: none; }
  .philosophy { padding-left: 22px; padding-right: 22px; }
  .philosophy blockquote { font-size: 3.2rem; }
  .philosophy footer { flex-direction: column; }
  .wip-intro { padding: calc(var(--header-h) + 8vh) 20px 9vh; }
  .wip-intro h1 { font-size: clamp(4rem, 19vw, 7rem); line-height: .78; }
  .wip-intro h1 span:last-child { margin-left: 9vw; }
  .wip-note { width: 62vw; }
  .wip-section-title { left: 18px; top: calc(var(--header-h) + 2vh); }
  .wip-frame { box-shadow: 0 10px 30px rgba(17,17,15,.18); }
  .trace-a { width: 58vw; left: 8vw; top: 19vh; }
  .trace-b { width: 45vw; right: 6vw; top: 39vh; z-index: 2; }
  .wip-trace::after { left: 10vw; bottom: 6vh; transform: none; font-size: 2.4rem; }
  .build-a { width: 43vw; left: 5vw; top: 16vh; }
  .build-b { width: 53vw; left: 25vw; top: 28vh; }
  .build-c { width: 39vw; right: 4vw; top: 10vh; }
  .volume-a { width: 52vw; left: 5vw; top: 17vh; }
  .volume-b { width: 42vw; left: 31vw; top: 36vh; }
  .volume-c { width: 43vw; right: 4vw; top: 11vh; }
  .final-a { width: 42vw; left: 4vw; top: 19vh; }
  .final-b { width: 51vw; left: 24vw; top: 29vh; }
  .final-c { width: 39vw; right: 3vw; top: 12vh; }
  .notes-page { padding-left: 22px; padding-right: 22px; }
  .notes-head { display: block; }
  .notes-head h1 { font-size: 5rem; }
  .note-card { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .scroll-cue span { animation: none; }
}
