@font-face {
  font-family: Switzer;
  src: url("../fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Switzer;
  src: url("../fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Switzer;
  src: url("../fonts/switzer-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f1ea;
  --fg: #1c1b17;
  --muted: #6f6b63;
  --line: rgba(28, 27, 23, 0.16);
  --soft: #e8e4db;
  --font: Switzer, "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(20px, 3vw, 40px);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 22px var(--pad) 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.links {
  display: flex;
  gap: 22px;
}

.links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.links a[aria-current="page"],
.links a:hover { color: var(--fg); }

.clock {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

body.home {
  height: 100dvh;
  overflow: hidden;
  background: #f7f4ee;
}

.studio {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.identity {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 36px 24px;
  border-right: 1px solid var(--line);
  background: #f7f4ee;
}

.identity-top,
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.identity-top .links a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.identity-main { min-width: 0; }

.monogram {
  width: 132px;
  height: 132px;
  margin: 8px 0 28px;
  display: grid;
  place-items: center;
  background: #1c1b17;
  color: #f4f1ea;
  font-size: 18px;
  letter-spacing: 0.16em;
}

body.home h1 {
  margin: 0;
  max-width: none;
  color: #3f3c36;
  font-size: clamp(42px, 4.4vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-transform: uppercase;
}

.bio {
  margin: 22px 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.identity-foot {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.works {
  min-height: 0;
  overflow: auto;
  padding: 26px 32px 64px;
  background: #ece8e0;
}

.works-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
}

.work-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.work-frame {
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 340px;
  overflow: hidden;
  background: #ddd8ce;
}

.work-frame picture,
.work-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.work-frame img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card:hover .work-frame img,
.work-card:focus-visible .work-frame img { transform: scale(1.03); }

.work-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.work-meta span:first-child {
  color: var(--fg);
  min-width: 0;
}

.work-meta span:last-child {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding: 16px var(--pad) 14px;
}

.mast .kicker { margin: 0; flex: none; }

.mast p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.rail {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  min-height: 0;
  cursor: grab;
}

.rail::-webkit-scrollbar { display: none; }

.rail.dragging { cursor: grabbing; }

.rail.dragging .panel { pointer-events: none; }

.panel {
  position: relative;
  flex: 0 0 86vw;
  scroll-snap-align: start;
  min-height: 100%;
  padding: 28px 32px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: transparent;
  overflow: hidden;
  transition: background 0.25s ease;
}

.panel:hover,
.panel:focus-visible { background: var(--soft); }

.panel.photo {
  padding: 0;
  color: #f6f3ec;
  background: #1c1b17;
}

.panel.photo:hover,
.panel.photo:focus-visible { background: #1c1b17; }

.panel.photo .panel-visual {
  position: absolute;
  inset: 0;
  margin: 0;
}

.panel.photo .panel-visual img {
  transform: scale(1.02);
  transition: transform 0.6s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.panel.photo:hover .panel-visual img,
.panel.photo:focus-visible .panel-visual img { transform: scale(1.06); }

.panel-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 72px 28px 28px;
  background: linear-gradient(to top, rgba(16, 14, 10, 0.9) 8%, rgba(16, 14, 10, 0.46) 46%, transparent 78%);
}

.panel.photo .panel-top,
.panel.photo .blurb { color: rgba(246, 243, 236, 0.78); }

.panel.photo h2 { color: #f6f3ec; max-width: 12ch; }

.panel-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-visual {
  flex: 1 1 auto;
  min-height: 0;
  margin: 18px 0 18px;
  overflow: hidden;
  background: var(--soft);
}

.panel-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.panel.photo .panel-visual picture {
  position: absolute;
  inset: 0;
}

.panel-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-quote {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  margin: 18px 0 4px;
  max-width: 16ch;
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.case .panel-quote {
  flex: none;
  max-width: 18ch;
  margin: 36px 0 0;
}

.panel h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(32px, 3.2vw, 52px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.panel .blurb {
  margin: 18px 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 15px;
}

.view {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
  width: max-content;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.view::after {
  content: "";
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.35s ease;
}

.panel:hover .view::after,
.panel:focus-visible .view::after { width: 100%; }

.foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px var(--pad) 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meter {
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}

.meter span {
  display: block;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0.08);
  transform-origin: left center;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page main { flex: 1; }

.case,
.about {
  padding: clamp(36px, 6vw, 80px) var(--pad) 72px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.deck {
  max-width: 38rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 18px 16px;
  margin: 42px 0 8px;
}

.gallery figure,
.frame {
  margin: 0;
}

.gallery picture,
.frame picture { display: block; }

.gallery img,
.frame img {
  width: 100%;
  display: block;
  background: var(--soft);
}

.gallery figcaption,
.frame figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.frame.wide { max-width: 920px; margin: 36px 0 8px; }

.frame.board { max-width: 760px; margin: 28px 0 8px; }

.frame.hero {
  max-width: 760px;
  margin: 36px 0 8px;
}

.frame.hero img {
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
  object-position: center 40%;
}

.frame.still {
  max-width: 420px;
  margin: 36px 0 8px;
}

.frame.still.wide { max-width: 640px; }

.frame.still img {
  width: 100%;
  height: auto;
}

.section-label {
  margin: 36px 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 16px;
  margin: 0 0 12px;
}

.film {
  background: #e7e2d8;
  aspect-ratio: 9 / 16;
}

.film.wide {
  aspect-ratio: 16 / 9;
  max-width: 920px;
  grid-column: 1 / -1;
}

.film iframe,
.film video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #111;
}

.film video { object-fit: contain; }

.work-plain {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: #e4dfd6;
  color: #1c1b17;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.prose {
  max-width: 40rem;
  margin-top: 42px;
}

.prose h2 {
  margin: 2.4em 0 0.6em;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.prose p { margin: 0 0 1em; }

.prose a { color: var(--fg); }

.refs {
  margin-top: 2.5em;
  color: var(--muted);
  font-size: 14px;
}

.refs h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.next {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.next small {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.next strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.more {
  display: grid;
  gap: 0;
  margin-top: 48px;
}

.more a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 16px;
}

.more a:last-child { border-bottom: 1px solid var(--line); }

.more a[aria-current="page"] { color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 40rem);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.portrait {
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #e4dccf;
  border: 1px solid var(--line);
  display: block;
  position: relative;
  overflow: hidden;
}

.portrait .plate {
  width: 100%;
  height: 100%;
  display: block;
}

.portrait.has-photo .plate { display: none; }

.portrait img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.portrait.has-photo img { display: block; }

.portrait.has-photo .mark { display: none; }

.mark {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.about h1 { max-width: none; }

.work-index {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  max-width: 40rem;
}

.work-index a {
  display: grid;
  grid-template-columns: 3ch 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  align-items: baseline;
}

.work-index li:last-child a { border-bottom: 1px solid var(--line); }

.work-index span { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }

.work-index strong {
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 22px;
}

.page .foot { margin-top: auto; }

.external {
  display: inline-block;
  margin: 8px 18px 0 0;
  color: var(--fg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 4px;
}

.action {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--fg);
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.action:hover,
.action:focus-visible {
  background: var(--fg);
  color: var(--bg);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 18px 28px;
  margin: 32px 0 8px;
  padding: 0;
}

.facts div { min-width: 0; }

.facts dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts dd { margin: 0; font-size: 16px; }

.practices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .panel { flex-basis: min(38vw, 520px); }
}

@media (max-width: 860px) {
  body.home {
    height: auto;
    overflow: auto;
  }

  .studio {
    height: auto;
    grid-template-columns: 1fr;
  }

  .identity {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 28px;
  }

  .monogram {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
  }

  .works-grid { grid-template-columns: 1fr; }

  .work-frame {
    aspect-ratio: 4 / 3;
    max-height: 460px;
  }
}

@media (max-width: 760px) {
  .nav {
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
  }

  .page .clock { display: none; }

  .mast { flex-direction: column; align-items: flex-start; gap: 8px; }

  .films,
  .gallery,
  .facts { grid-template-columns: 1fr 1fr; }

  .panel.photo .panel-visual {
    position: absolute;
    aspect-ratio: auto;
    min-height: 0;
  }

  .about-grid { grid-template-columns: 1fr; }

  .portrait { max-width: 240px; }

  .work-index a { grid-template-columns: 3ch 1fr; }

  .work-index span:last-child { display: none; }

  h1 { max-width: 12ch; }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--bg);
  cursor: pointer;
  animation: intro-leave 0.45s cubic-bezier(0.76, 0, 0.18, 1) 0.95s forwards;
}

.intro-mark {
  margin: 0;
  display: flex;
  gap: 0.12em;
  font-weight: 500;
  font-size: clamp(64px, 12vw, 128px);
  letter-spacing: -0.075em;
  line-height: 0.85;
}

.intro-mark span {
  display: block;
  opacity: 0;
  transform: translateY(0.42em);
  animation: intro-letter 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-mark span:nth-child(1) { animation-delay: 0.02s; }
.intro-mark span:nth-child(2) { animation-delay: 0.1s; }
.intro-mark span:nth-child(3) { animation-delay: 0.18s; }

.intro-line {
  position: absolute;
  top: calc(50% + clamp(48px, 8vw, 86px));
  left: 50%;
  width: 7.25rem;
  height: 1px;
  background: var(--fg);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  animation: intro-rule 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.intro.is-done {
  display: none;
}

@keyframes intro-letter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-rule {
  to { transform: translateX(-50%) scaleX(1); }
}

@keyframes intro-leave {
  to {
    transform: translateY(-101%);
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .intro { display: none !important; }
}
