:root {
  --ink: #111;
  --muted: #737373;
  --line: #dedede;
  --soft: #f4f4f2;
  --paper: #fff;
  --pad: clamp(1.15rem, 2.7vw, 3.2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { max-width: 100%; }

.site-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: .55rem var(--pad); border-bottom: 1px solid var(--line); position: relative; z-index: 5; background: rgba(255,255,255,.97); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 600; letter-spacing: -.04em; }
.brand-mark { width: 29px; height: 29px; border-radius: 50%; object-fit: cover; display: block; }
.brand-name > span { color: #777; }
nav { display: flex; gap: 1.65rem; font: 400 .66rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .03em; }
nav a:hover, .arrow-link:hover, .email:hover, footer a:hover { color: #777; }
.menu-toggle { display: none; border: 0; background: transparent; font: 500 .67rem "DM Mono", monospace; text-transform: uppercase; }

.eyebrow { margin: 0; color: var(--muted); font: 400 .65rem "DM Mono", monospace; letter-spacing: .03em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.hero { min-height: 58svh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem,4vw,4rem) var(--pad) 2rem; }
h1 { margin: 1.2rem 0; max-width: 1050px; font-size: clamp(3.1rem,8vw,8rem); font-weight: 400; line-height: .91; letter-spacing: -.075em; }
.hero-bottom { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.hero-bottom p { max-width: 420px; margin: 0; font-size: clamp(.95rem,1.2vw,1.18rem); letter-spacing: -.03em; }
.arrow-link { font: 400 .66rem "DM Mono", monospace; text-transform: uppercase; white-space: nowrap; }
.arrow-link span { font-size: .9rem; margin-left: .45rem; }

.image-reel { padding: .9rem 0 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.reel-label { padding: 0 var(--pad) .7rem; }
.reel-window { overflow: hidden; }
.reel-track { display: flex; width: max-content; gap: .55rem; animation: reel-drift 115s linear infinite; will-change: transform; }
.reel-set { display: flex; gap: .55rem; }
.reel-item { flex: 0 0 auto; height: clamp(92px,10vw,145px); width: auto; display: block; background: var(--soft); }
.reel-item img { display: block; width: auto; height: 100%; object-fit: contain; }
@keyframes reel-drift { to { transform: translateX(calc(-50% - .275rem)); } }

.work-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.62fr); gap: clamp(2rem,7vw,8rem); align-items: end; padding: clamp(5rem,8vw,8rem) var(--pad) clamp(2.7rem,5vw,5rem); }
.intro-copy { max-width: 700px; margin: 1.1rem 0 0; font-size: clamp(2rem,4.1vw,4.6rem); line-height: .98; letter-spacing: -.06em; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem .7rem; align-content: end; }
.filter { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--muted); cursor: pointer; font: 400 .63rem "DM Mono", monospace; text-transform: uppercase; }
.filter:hover, .filter.is-active { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; }
.filter span { margin-left: .35rem; opacity: .65; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(2rem,3.7vw,4.5rem) clamp(1rem,2.2vw,2.5rem); padding: 0 var(--pad) clamp(6rem,10vw,10rem); }
.project[hidden] { display: none; }
.project { min-width: 0; align-self: start; }
.project-main { --frame-pad: clamp(.35rem,.7vw,.7rem); position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.project-main img { position: absolute; inset: 0; width: 100%; height: 100%; padding: var(--frame-pad); display: block; object-fit: contain; object-position: center; opacity: 1; transition: opacity .14s ease; }
.project-main img.is-changing { opacity: .15; }
.project-roll { display: flex; gap: .4rem; overflow-x: auto; padding: .55rem 0 .15rem; scrollbar-width: thin; }
.roll-thumb { flex: 0 0 54px; width: 54px; height: 42px; padding: 0; border: 1px solid transparent; background: var(--soft); opacity: .5; cursor: pointer; }
.roll-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.roll-thumb:hover, .roll-thumb.is-active { opacity: 1; }
.roll-thumb.is-active { border-color: var(--ink); }
.project-info { display: flex; justify-content: space-between; gap: 1rem; padding-top: .65rem; border-top: 1px solid var(--line); margin-top: .65rem; }
.project-info h2 { margin: 0; font-size: clamp(.95rem,1.3vw,1.25rem); font-weight: 500; letter-spacing: -.035em; }
.project-info p { margin: .15rem 0 0; color: var(--muted); font: 400 .58rem "DM Mono", monospace; text-transform: uppercase; text-align: right; }
.project-count { color: var(--muted); font: 400 .6rem "DM Mono", monospace; white-space: nowrap; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; border-top: 1px solid var(--line); padding: clamp(4rem,7vw,7rem) var(--pad); }
.services h2, .contact h2 { margin: 1rem 0 0; font-size: clamp(2.8rem,4.8vw,5.6rem); font-weight: 400; line-height: .9; letter-spacing: -.07em; }
.services-copy { max-width: 580px; font-size: clamp(1.05rem,1.45vw,1.4rem); letter-spacing: -.035em; }
.services-copy p { margin-bottom: 1.05em; }
.services ul { margin: 2rem 0; padding: 0; border-top: 1px solid var(--line); list-style: none; font-size: .95rem; }
.services li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.services li span, .tools { color: var(--muted); }
.tools { font-size: .82rem; }
.contact { padding: clamp(4rem,7vw,7rem) var(--pad); background: #111; color: #fff; }
.contact .eyebrow { color: #aaa; }
.contact h2 { margin-bottom: 2.4rem; }
.email { font-size: clamp(1.35rem,2.7vw,3.2rem); letter-spacing: -.06em; border-bottom: 1px solid #777; }
.email span { font-size: .65em; margin-left: .2em; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; padding: 1.2rem var(--pad); background: #111; color: #aaa; border-top: 1px solid #333; font: 400 .6rem "DM Mono", monospace; text-transform: uppercase; }
footer span:last-child { text-align: right; }

@media (max-width: 980px) {
  .projects { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-intro { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { min-height: 62px; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 61px; left: 0; right: 0; background: #fff; padding: 1.1rem var(--pad); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; flex-direction: column; gap: 1rem; }
  .hero { min-height: 54svh; }
  .hero-bottom { align-items: start; flex-direction: column; }
  .reel-item { height: 90px; }
  .projects { grid-template-columns: 1fr; gap: 3rem; }
  .services { grid-template-columns: 1fr; gap: 2.5rem; }
  .roll-thumb { flex-basis: 48px; width: 48px; height: 38px; }
  footer { grid-template-columns: 1fr; gap: .5rem; }
  footer span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reel-window { overflow-x: auto; }
  .reel-track { animation: none; }
}
