:root {
  --bg: #070708;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.14);
  --soft: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: #fff;
  color: #070708;
  padding: 0.6rem 0.9rem;
  z-index: 40;
}

.skip:focus {
  transform: none;
}

.logo {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 7, 8, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: 4.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.site-nav a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
}

.pill,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #070708;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.pill:hover,
.btn:hover {
  background: transparent;
  color: #fff;
}

.btn-line {
  background: transparent;
  color: #fff;
}

.btn-line:hover {
  background: #fff;
  color: #070708;
}

.rail {
  position: fixed;
  left: 1.15rem;
  top: 50%;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transform: translateY(-50%);
}

.rail a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.rail a.is-active {
  color: #fff;
}

.rail-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1080px, calc(100% - 6.5rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  color: #fff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media.frame {
  position: absolute;
  aspect-ratio: auto;
  width: auto;
  height: auto;
}

.hero-media img {
  filter: brightness(1.65) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.5) 0%, rgba(7, 7, 8, 0) 22%, rgba(7, 7, 8, 0.08) 58%, rgba(7, 7, 8, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 7, 8, 0.82) 0%, rgba(7, 7, 8, 0.34) 38%, rgba(7, 7, 8, 0.08) 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1080px, calc(100% - 6.5rem));
  margin-inline: auto;
  padding: 7.5rem 0 4.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
.contact-display {
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-weight: 450;
}

h1 {
  margin: 0.75rem 0 0;
  max-width: 10ch;
  font-size: clamp(3.5rem, 7.6vw, 6.8rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede,
.section-lede {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.lede {
  max-width: 36rem;
  margin: 1.25rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0.75rem 0 0;
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.section-lede {
  max-width: 36rem;
  margin: 1rem 0 0;
}

.section-intro {
  margin-bottom: 2.5rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 3.5rem;
  align-items: end;
}

.portrait {
  margin: 0;
}

.portrait figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-copy p {
  max-width: 38rem;
  color: var(--muted);
}

.studio-copy h2 + p {
  margin-top: 1.25rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.stats strong {
  display: block;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.stats span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats .tag {
  margin-top: 0.55rem;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: middle;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discipline-grid article {
  padding: 1.6rem 1.5rem 1.7rem 0;
  border-top: 1px solid var(--line);
}

.discipline-grid h3,
.work-meta h3,
.steps h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.discipline-grid p,
.work-meta p,
.steps p {
  margin: 0.55rem 0 0.9rem;
  color: var(--muted);
}

.studio-grid > *,
.work-grid > *,
.discipline-grid > *,
.notes-grid > *,
.process-layout > *,
.contact-layout > * {
  min-width: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

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

a.work-card {
  transition: transform 0.45s var(--ease);
}

a.work-card:hover {
  transform: translateY(-4px);
}

a.work-card:hover .work-action {
  color: #fff;
}

.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}

.frame-tall,
.contact-figure .frame {
  aspect-ratio: 3 / 4;
}

.frame img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  max-width: none;
  height: 118%;
  object-fit: cover;
}

.work-meta {
  padding-top: 0.9rem;
}

.work-kicker,
.work-action {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-kicker .tag {
  margin-left: 0.35rem;
  letter-spacing: 0.12em;
}

.work-action {
  margin-top: 0.8rem;
  transition: color 0.3s var(--ease);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.steps li > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding-top: 0.35rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

blockquote {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

blockquote p {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

blockquote footer {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.vrail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-left: 1px solid var(--line);
}

.vrail a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: color 0.3s var(--ease);
}

.vrail a:hover {
  color: #fff;
}

.contact-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.contact-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 8, 0.05), rgba(7, 7, 8, 0.35));
}

.contact-display {
  position: absolute;
  z-index: 1;
  right: 1rem;
  top: 50%;
  margin: 0;
  color: #fff;
  font-family: "Inter Tight", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  translate: 0 -50%;
}

.contact-card .section-lede a {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  color-scheme: dark;
}

.contact-form label {
  display: grid;
  gap: 0.2rem;
}

.contact-form label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 1rem;
}

.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: #8d8d8d;
  font-size: 0.9rem;
}

.frame img {
  will-change: transform;
}

html.motion .hero-copy > * {
  opacity: 0;
  animation: rise 0.95s var(--ease) forwards;
}

html.motion .hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
html.motion .hero-copy > *:nth-child(2) { animation-delay: 0.2s; }
html.motion .hero-copy > *:nth-child(3) { animation-delay: 0.34s; }
html.motion .hero-copy > *:nth-child(4) { animation-delay: 0.48s; }

html.motion .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

html.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.motion .reveal .stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

html.motion .reveal.is-in .stagger > * {
  opacity: 1;
  transform: none;
}

html.motion .reveal.is-in .stagger > *:nth-child(1) { transition-delay: 0.05s; }
html.motion .reveal.is-in .stagger > *:nth-child(2) { transition-delay: 0.12s; }
html.motion .reveal.is-in .stagger > *:nth-child(3) { transition-delay: 0.19s; }
html.motion .reveal.is-in .stagger > *:nth-child(4) { transition-delay: 0.26s; }
html.motion .reveal.is-in .stagger > *:nth-child(5) { transition-delay: 0.33s; }
html.motion .reveal.is-in .stagger > *:nth-child(6) { transition-delay: 0.4s; }

html.motion .reveal.is-in .stagger > a.work-card:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.motion .hero-copy > *,
  html.motion .reveal,
  html.motion .reveal .stagger > *,
  html.motion .reveal.is-in .stagger > * {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

@media (min-width: 1181px) {
  .header-bar {
    padding-left: 3.25rem;
  }
}

@media (max-width: 1180px) {
  .rail {
    display: none;
  }

  .wrap,
  .hero-copy {
    width: min(1080px, calc(100% - 3rem));
  }
}

@media (max-width: 980px) {
  .studio-grid,
  .process-layout,
  .contact-layout,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .discipline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vrail {
    flex-direction: row;
    gap: 1.5rem;
    min-height: 0;
    padding: 0 0 0.25rem;
    border-left: none;
  }

  .vrail a {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .process-figure {
    order: -1;
  }
}

@media (max-width: 760px) {
  .header-bar {
    flex-wrap: wrap;
    width: min(1280px, calc(100% - 2rem));
  }

  .logo {
    margin-right: auto;
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    order: 2;
    margin-left: 0.6rem;
    min-height: 2.25rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .pill {
    order: 3;
  }

  .site-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0;
    padding: 0.35rem 0 0.2rem;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .hero-copy,
  .wrap {
    width: min(1080px, calc(100% - 2rem));
  }

  .work-grid,
  .discipline-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .pill {
    display: none;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.7rem, 12vw, 3.5rem);
  }

  h2 {
    max-width: 16ch;
    font-size: clamp(2.15rem, 10vw, 2.9rem);
  }

  .hero {
    min-height: 100svh;
  }

  .hero-copy {
    padding: 6.5rem 0 2.75rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 7, 8, 0.55) 0%, rgba(7, 7, 8, 0.05) 28%, rgba(7, 7, 8, 0.15) 50%, rgba(7, 7, 8, 0.92) 100%);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn {
    min-height: 2.75rem;
  }

  .stats strong {
    font-size: 2rem;
  }

  .portrait .frame {
    max-height: 28rem;
  }

  .contact-figure .frame {
    aspect-ratio: 4 / 5;
    max-height: 26rem;
  }

  .contact-display {
    right: auto;
    left: 1rem;
    bottom: 1rem;
    top: auto;
    translate: none;
    writing-mode: horizontal-tb;
    font-size: clamp(2.4rem, 11vw, 3.2rem);
    line-height: 0.9;
    max-width: 8ch;
  }

  .site-nav a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .site-footer .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}
