:root {
  --ink: #0a0a09;
  --paper: #f0efe9;
  --muted: #aaa99f;
  --line: rgba(240, 239, 233, .2);
  --accent: #d8ff45;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem var(--pad);
  background: linear-gradient(to bottom, rgba(10,10,9,.9), transparent);
  mix-blend-mode: difference;
}
.brand { font-weight: 700; letter-spacing: .08em; font-size: .82rem; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); font-size: .82rem; }
nav a { opacity: .75; transition: opacity .2s; }
nav a:hover, nav a:focus-visible { opacity: 1; }
.nav-contact { border-bottom: 1px solid currentColor; padding-bottom: .2rem; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  padding: clamp(8rem, 15vh, 11rem) var(--pad) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero-light {
  position: absolute;
  width: 60vw;
  height: 60vw;
  top: -30vw;
  right: -8vw;
  border-radius: 50%;
  background: rgba(216,255,69,.09);
  filter: blur(80px);
  animation: drift 10s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-12vw, 16vw) scale(1.2); } }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 7vh 0 10vh;
  max-width: none;
  font-size: clamp(3rem, 7.3vw, 8rem);
  line-height: .86;
  letter-spacing: -.065em;
  font-weight: 500;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  color: var(--muted);
}
.hero-bottom p { margin: 0; font-size: .9rem; }
.scroll-link { color: var(--paper); font-size: .88rem; }
.scroll-link span { color: var(--accent); margin-left: .5rem; }

.work-section { padding: 8rem var(--pad) 3rem; }
.section-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.section-heading .eyebrow { color: #fff; font-size: .9rem; }
.counter { margin: 0; color: var(--muted); font-size: .75rem; }
.frame-carousel { margin-top: 3rem; }
.frame-track {
  display: flex;
  gap: clamp(.75rem, 1.5vw, 1.75rem);
  margin-inline: calc(var(--pad) * -1);
  padding: 2rem max(var(--pad), 12vw);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}
.frame-track::-webkit-scrollbar { display: none; }
.frame-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.frame-slide {
  position: relative;
  flex: 0 0 min(74vw, 1100px);
  margin: 0;
  scroll-snap-align: center;
  opacity: .38;
  transform: scale(.92);
  transition: opacity .45s ease, transform .45s ease;
}
.frame-slide.is-active { opacity: 1; transform: scale(1); }
.frame-slide img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; pointer-events: none; }
.frame-slide figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .45rem .65rem;
  background: rgba(10,10,9,.72);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .35s ease;
}
.frame-slide.is-active figcaption { opacity: 1; }
.frame-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.frame-controls p { display: flex; gap: 1rem; margin: 0; }
.frame-project { color: var(--paper); }
.frame-count { color: var(--muted); }
.frame-controls button {
  width: 3rem;
  height: 3rem;
  margin-left: .4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.frame-controls button:hover { background: var(--paper); color: var(--ink); }
.frame-hint { margin: .8rem 0 0; color: var(--muted); font-size: .75rem; }
.frame-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 7rem);
  margin: 8rem 0 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.frame-notes article { display: grid; grid-template-columns: minmax(7rem, .55fr) 1fr; gap: 1rem 2rem; }
.frame-notes h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.frame-notes article > p:last-child { grid-column: 2; margin: .5rem 0 0; color: #d1d0c9; line-height: 1.6; }
.project { margin: 4rem 0 9rem; }
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  background: #161614;
  overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.project-number { margin: 0 0 .4rem; color: var(--accent); font-size: .72rem; }
.project h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.project-details { align-self: end; color: var(--muted); }
.project-details p { margin: .15rem 0; }
.project-details .project-description {
  max-width: 38rem;
  margin-top: 1.35rem;
  color: #d1d0c9;
  line-height: 1.6;
}

.statement {
  padding: 10rem var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement p {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.statement p + p { margin-top: 1.2rem; color: #6c6b65; }
.statement span { color: #e3262e; }

.presentation { padding: 9rem var(--pad); }
.presentation-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}
.presentation-heading h2 {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 500;
}

.about {
  padding: 9rem var(--pad);
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.portrait-wrap {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  background: #191917;
}
.portrait-wrap img { width: 100%; height: auto; display: block; }
.about-copy h2 {
  margin: 2.5rem 0 4rem;
  font-size: clamp(2.25rem, 4vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 500;
}
.about-copy > p:not(.eyebrow) { max-width: 39rem; color: #c0bfb8; font-size: clamp(1rem, 1.4vw, 1.22rem); }

.services { padding: 5rem var(--pad) 10rem; }
.service-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.service-list div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.service-list span { color: var(--accent); font-size: .72rem; }
.service-list p { margin: 0; font-size: clamp(1.45rem, 3vw, 3rem); letter-spacing: -.035em; }

.contact { background: var(--paper); color: var(--ink); padding: 9rem var(--pad) 4rem; }
.contact .eyebrow { color: #68675f; }
.contact h2 {
  margin: 3rem 0 7rem;
  font-size: clamp(3.3rem, 9vw, 10rem);
  line-height: .82;
  letter-spacing: -.07em;
  font-weight: 500;
}
.contact-grid { border-top: 1px solid rgba(10,10,9,.25); }
.contact-grid a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(10,10,9,.25);
  transition: padding .25s, color .25s;
}
.contact-grid a:hover { padding-left: .7rem; color: #596c00; }
.contact-grid span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-grid strong { font-weight: 500; text-align: right; }
.contact-label { display: inline-flex; align-items: center; gap: .75rem; }
.social-icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-icon .icon-fill { fill: currentColor; stroke: none; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--pad);
  color: var(--muted);
  font-size: .75rem;
}
footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-light { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 720px) {
  .site-header nav a:not(.nav-contact) { display: none; }
  .hero { padding-top: 8rem; }
  .hero h1 { margin-top: 5rem; }
  .hero h1 span { white-space: normal; }
  .hero-bottom { display: block; }
  .scroll-link { display: inline-block; margin-top: 1.5rem; }
  .work-section { padding-top: 6rem; }
  .frame-track { padding-inline: 8vw; }
  .frame-slide { flex-basis: 84vw; }
  .frame-controls { align-items: flex-start; }
  .frame-controls p { display: block; }
  .frame-count { display: block; margin-top: .3rem; }
  .frame-notes { grid-template-columns: 1fr; margin-top: 5rem; }
  .frame-notes article { grid-template-columns: 1fr; }
  .frame-notes article > p:last-child { grid-column: 1; }
  .project { margin: 2.5rem 0 6rem; }
  .project-meta { grid-template-columns: 1fr; }
  .project-details { margin-top: .5rem; }
  .statement { padding-block: 7rem; }
  .presentation { padding-block: 6rem; }
  .presentation-heading { grid-template-columns: 1fr; margin-bottom: 2rem; }
  .about { grid-template-columns: 1fr; padding-block: 6rem; }
  .portrait-wrap { width: 88%; }
  .about-copy h2 { margin-bottom: 2.5rem; }
  .contact { padding-top: 7rem; }
  .contact h2 { margin-bottom: 5rem; }
  .contact-grid a { display: block; }
  .contact-grid strong { display: block; margin-top: .4rem; text-align: left; overflow-wrap: anywhere; }
  footer { display: block; }
  footer p + p { margin-top: .35rem; }
}

/* Landscape filmstrip: preserve the complete original frame. */
.frame-track { position: relative; align-items: flex-start; gap: 16px; padding-inline: max(10vw, calc((100% - 1100px) / 2)); touch-action: pan-x pan-y; }
.frame-slide { flex: 0 0 min(80vw, 1100px); min-width: 0; transform: none; opacity: .45; }
.frame-slide.is-active { transform: none; opacity: 1; }
.frame-slide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.frame-track.is-dragging { scroll-snap-type: none; }
@media (max-width: 720px) { .frame-track { padding-inline: 10vw; gap: 10px; } .frame-slide { flex-basis: 80vw; } }
@media (prefers-reduced-motion: reduce) { .frame-track { scroll-behavior: auto; } .frame-slide { transition: none; } }

.frame-slide a { display: block; }
.restored-project-copy { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.restored-project-copy > p:last-child { max-width: 48rem; color: var(--muted); line-height: 1.6; }
