:root {
  --ink: #11100e;
  --ink-2: #1b1916;
  --paper: #f3eee5;
  --paper-soft: #d9d0c3;
  --muted: #8f877b;
  --line: rgba(243, 238, 229, 0.16);
  --line-dark: rgba(17, 16, 14, 0.18);
  --accent: #b76f43;
  --accent-soft: #d6a27f;
  --max: 1440px;
  --gutter: clamp(18px, 4vw, 62px);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  background: var(--ink);
  color: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 25vw 100%,
    var(--ink);
  color: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.19;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  pointer-events: none;
}

.brand,
.nav-links {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  width: max-content;
  min-width: 82px;
  min-height: 28px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  display: none;
  width: auto;
  height: clamp(28px, 4vw, 46px);
  max-width: min(28vw, 180px);
  object-fit: contain;
}

.brand.has-logo .brand-logo {
  display: block;
}

.brand-fallback {
  display: grid;
  gap: 1px;
}

.brand.has-logo .brand-fallback {
  display: none;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  color: rgba(243, 238, 229, 0.76);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-links a,
.text-link,
.contact-details a {
  position: relative;
}

.nav-links a::after,
.text-link::after,
.contact-details a::after {
  position: absolute;
  right: 0;
  bottom: -0.32em;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.contact-details a:hover::after,
.contact-details a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  min-height: 100svh;
  padding-top: 118px;
  padding-bottom: clamp(34px, 7vw, 88px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 10.4ch;
  margin-bottom: 24px;
  font-size: clamp(4.25rem, 14vw, 13.2rem);
  line-height: 0.82;
}

.hero-lede {
  max-width: 45rem;
  margin-left: clamp(0px, 19vw, 258px);
  color: rgba(243, 238, 229, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: clamp(26px, 4vw, 48px);
  margin-left: clamp(0px, 19vw, 258px);
}

.text-link {
  color: rgba(243, 238, 229, 0.74);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link-strong {
  color: var(--paper);
}

.hero-reel {
  align-self: center;
  padding-top: 9vh;
}

.reel-frame,
.project-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(243, 238, 229, 0.11), transparent 46%),
    linear-gradient(22deg, var(--tone, #4b433b), #151310 72%);
}

.reel-frame {
  aspect-ratio: 9 / 13;
  min-height: 460px;
}

.reel-frame::before,
.project-media::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 16, 14, 0) 44%, rgba(17, 16, 14, 0.62)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 6px);
  mix-blend-mode: soft-light;
}

.reel-video,
.project-video,
.media-embed,
.poster-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-video,
.project-video,
.media-embed {
  z-index: 1;
  opacity: 0;
  transition: opacity 520ms ease;
  border: 0;
}

.media-embed {
  background: var(--ink);
  pointer-events: none;
  transform: scale(1.018);
  transform-origin: center;
}

.reel-frame .media-embed {
  inset: 50% auto auto 50%;
  width: 220%;
  height: 124%;
  transform: translate(-50%, -50%) scale(1.018);
}

.poster-image {
  z-index: 1;
  opacity: 0;
  transition: opacity 220ms ease;
}

.poster-image.is-loaded,
.lazy-video.has-embed .media-embed,
.lazy-video.is-playing video,
.lazy-video.has-video video {
  opacity: 1;
}

.lazy-video.is-loading-embed .media-embed {
  opacity: 0;
}

.lazy-video.has-embed video {
  opacity: 0;
}

.media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  align-content: end;
  padding: clamp(18px, 3vw, 34px);
}

.fallback-index {
  color: rgba(243, 238, 229, 0.22);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.76;
}

.fallback-label {
  max-width: 12rem;
  color: rgba(243, 238, 229, 0.55);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reel-toggle,
.project-play,
.sound-toggle {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(17, 16, 14, 0.52);
  border: 1px solid rgba(243, 238, 229, 0.42);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.reel-toggle {
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
}

.reel-toggle:hover,
.reel-toggle:focus-visible,
.project-play:hover,
.project-play:focus-visible,
.sound-toggle:hover,
.sound-toggle:focus-visible {
  background: rgba(17, 16, 14, 0.78);
  border-color: var(--paper);
  transform: scale(1.03);
}

.reel-note {
  width: 70%;
  margin: 14px 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.work-section {
  padding-top: clamp(92px, 13vw, 180px);
  padding-bottom: clamp(80px, 11vw, 150px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.26fr) minmax(0, 0.74fr);
  gap: 28px;
  align-items: start;
  margin-bottom: clamp(38px, 6vw, 76px);
}

.section-heading h2,
.about-copy h2,
.process-intro h2,
.contact-section h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6.4vw, 6.75rem);
  line-height: 0.92;
}

.section-heading.compact h2 {
  max-width: 650px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 58px) clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.project-card {
  display: grid;
  gap: 16px;
  grid-column: span 5;
}

.project-card:nth-child(1) {
  grid-column: 1 / span 8;
}

.project-card:nth-child(2) {
  grid-column: 10 / span 3;
  margin-top: 14vh;
}

.project-card:nth-child(3) {
  grid-column: 2 / span 3;
  margin-top: -3vh;
}

.project-card:nth-child(4) {
  grid-column: 6 / span 7;
  margin-top: 9vh;
}

.project-card:nth-child(5) {
  grid-column: 1 / span 3;
  margin-top: 4vh;
}

.project-card:nth-child(6) {
  grid-column: 5 / span 8;
  margin-top: 10vh;
}

.project-media {
  aspect-ratio: var(--ratio, 16 / 10);
}

.project-card.is-tall .project-media {
  aspect-ratio: 9 / 16;
}

.project-card.is-wide .project-media {
  aspect-ratio: 16 / 9;
}

.project-play {
  right: 14px;
  bottom: 14px;
  width: 54px;
  height: 54px;
}

.sound-toggle {
  left: 14px;
  bottom: 14px;
  width: 54px;
  height: 54px;
}

.button-icon {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
  pointer-events: none;
}

.reel-toggle .button-icon {
  width: 28px;
  height: 28px;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.icon-pause,
.icon-sound {
  display: none;
}

.lazy-video.is-playing .icon-play,
.lazy-video.is-unmuted .icon-muted {
  display: none;
}

.lazy-video.is-playing .icon-pause,
.lazy-video.is-unmuted .icon-sound {
  display: block;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.project-title {
  margin-bottom: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  font-weight: 400;
  line-height: 0.96;
}

.project-type {
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-description {
  grid-column: 1 / -1;
  max-width: 34rem;
  margin-bottom: 0;
  color: rgba(243, 238, 229, 0.66);
  font-size: 0.92rem;
  line-height: 1.55;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 0.36fr) minmax(260px, 0.3fr);
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(70px, 10vw, 120px);
  padding-bottom: clamp(80px, 12vw, 160px);
}

.about-rule {
  height: 1px;
  margin-top: 15px;
  background: var(--line);
}

.about-text {
  color: rgba(243, 238, 229, 0.72);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.68;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.worked-with-section {
  display: grid;
  grid-template-columns: minmax(160px, 0.2fr) minmax(0, 0.8fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  padding-top: clamp(38px, 5vw, 70px);
  padding-bottom: clamp(38px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.worked-with-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.worked-with-heading .kicker {
  margin-bottom: 0;
}

.worked-with-controls {
  display: flex;
  gap: 8px;
}

.worked-with-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(243, 238, 229, 0.78);
  background: transparent;
  border: 1px solid rgba(243, 238, 229, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.worked-with-button:hover,
.worked-with-button:focus-visible {
  color: var(--paper);
  border-color: rgba(243, 238, 229, 0.62);
  transform: translateY(-1px);
}

.worked-with-button .button-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.worked-with-list {
  display: flex;
  gap: clamp(28px, 5vw, 76px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
  list-style: none;
}

.worked-with-list::-webkit-scrollbar {
  display: none;
}

.worked-with-item {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  align-items: baseline;
}

.worked-with-item span {
  color: rgba(243, 238, 229, 0.28);
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.worked-with-item strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 3.05rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(28px, 6vw, 96px);
  padding-top: clamp(82px, 12vw, 150px);
  padding-bottom: clamp(80px, 12vw, 160px);
}

.process-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 22px;
  padding: clamp(20px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  counter-increment: process;
}

.process-item::before {
  color: var(--accent-soft);
  content: "0" counter(process);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.process-item h3 {
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 500;
}

.process-item p {
  max-width: 43rem;
  margin-bottom: 0;
  color: rgba(243, 238, 229, 0.64);
  line-height: 1.62;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(260px, 0.32fr);
  gap: clamp(28px, 7vw, 120px);
  align-items: end;
  min-height: 72svh;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(34px, 7vw, 92px);
  border-top: 1px solid var(--line);
}

.contact-details {
  display: grid;
  gap: 15px;
  color: rgba(243, 238, 229, 0.78);
  font-style: normal;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .hero,
  .about-section,
  .process-section,
  .contact-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-lede,
  .hero-actions {
    margin-left: 0;
  }

  .hero-reel {
    width: min(78vw, 480px);
    justify-self: end;
    padding-top: 0;
  }

  .reel-frame {
    min-height: 0;
  }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: span 6;
    margin-top: 0;
  }

  .about-rule {
    grid-column: 1 / -1;
    width: 44%;
  }

  .about-copy,
  .about-text {
    grid-column: 1 / -1;
  }

  .worked-with-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .worked-with-heading {
    align-items: center;
  }
}

@media (max-width: 700px) {
  body {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 50vw 100%,
      var(--ink);
  }

  .site-header {
    position: absolute;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    max-width: 8.6ch;
    font-size: clamp(3.2rem, 15vw, 5.2rem);
    line-height: 0.88;
  }

  .hero {
    padding-top: 138px;
  }

  .hero-reel {
    width: 86vw;
    justify-self: start;
    margin-left: 7vw;
  }

  .reel-note {
    width: 86%;
    margin-left: 0;
  }

  .work-section {
    padding-top: 78px;
  }

  .project-grid {
    display: block;
  }

  .project-card {
    margin-bottom: 52px;
  }

  .project-card:nth-child(even) {
    width: 82%;
    margin-left: auto;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .worked-with-section {
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .worked-with-list {
    gap: 34px;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-section {
    min-height: 64svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
