@font-face {
  font-family: 'Porkys';
  src: url('../fonts/porkys.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Swiss721';
  src: url('../fonts/swiss721.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --black: #0b0b0c;
  --white: #ffffff;
  --grey: #8c8c86;
  --line: #dcdad3;
  --line-dark: rgba(247, 246, 242, 0.16);
  --rec: #e1261c;

  --display: 'Porkys', system-ui, sans-serif;
  --body: 'Swiss721', 'Helvetica Neue', Arial, sans-serif;

  --edge: clamp(20px, 4vw, 56px);
  --sprocket: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.dark { background: var(--black); color: var(--white); }

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

::selection { background: var(--black); color: var(--white); }
body.dark ::selection { background: var(--white); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--rec);
  outline-offset: 3px;
}

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

/* ---------- sprocket rail: ambient 16mm film texture on page edges ---------- */
.rail {
  position: fixed;
  top: 0; bottom: 0;
  width: var(--sprocket);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}
.rail.left { left: 0; }
.rail.right { right: 0; }
.rail span {
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--line);
}
body.dark .rail span { background: var(--line-dark); }
@media (max-width: 720px) {
  .rail { display: none; }
}

.wrap {
  padding-left: calc(var(--edge) + var(--sprocket));
  padding-right: calc(var(--edge) + var(--sprocket));
}
@media (max-width: 720px) {
  .wrap { padding-left: var(--edge); padding-right: var(--edge); }
}

/* ---------- nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
body.dark .topbar { background: var(--black); border-color: var(--line-dark); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
body.dark .brand img { filter: invert(1); }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rec);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

nav.links { display: flex; gap: 28px; }
nav.links a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
body.dark nav.links a { color: var(--white); }
nav.links a:hover, nav.links a[aria-current="page"] { border-color: var(--rec); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.links {
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px var(--edge);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  body.dark nav.links { background: var(--black); }
  nav.links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  nav.links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  body.dark nav.links a { border-color: var(--line-dark); }
  .status { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-family: var(--body);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--black);
    cursor: pointer;
    padding: 14px 8px;
    margin: -14px -8px;
  }
  body.dark .nav-toggle { color: var(--white); }
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 120px;
}
body.dark footer { border-color: var(--line-dark); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-mark {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}
.footer-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey);
  text-align: right;
}
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-edge {
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 0.94;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 46ch;
  color: var(--grey);
  margin: 0 0 28px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rec);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 13px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}
body.dark .btn { border-color: var(--white); background: var(--white); color: var(--black); }
.btn:hover { background: var(--rec); border-color: var(--rec); color: var(--white); }
.btn.ghost { background: transparent; color: var(--black); }
body.dark .btn.ghost { color: var(--white); }
.btn.ghost:hover { background: var(--rec); border-color: var(--rec); color: var(--white); }

/* ---------- viewfinder (hero moving centerpiece) ---------- */
.viewfinder {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--black);
  overflow: hidden;
}
.viewfinder video, .viewfinder img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.vf-corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--white);
  border-style: solid;
  border-width: 0;
  opacity: 0.9;
}
.vf-corner.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.vf-corner.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.vf-corner.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.vf-corner.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.vf-label {
  position: absolute;
  bottom: 14px; left: 16px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- section scaffolding ---------- */
section { padding-top: clamp(56px, 7vw, 96px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 36px;
}
body.dark .section-head { border-color: var(--line-dark); }
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0;
}
.section-num {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.08em;
}

.page-hero {
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(28px, 4vw, 40px);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.98;
  margin: 0 0 18px;
}
.page-hero p {
  max-width: 60ch;
  color: var(--grey);
  font-size: clamp(15px, 1.4vw, 18px);
  margin: 0;
}

/* ---------- reel strip (home) ---------- */
.reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
body.dark .reel { background: var(--line-dark); border-color: var(--line-dark); }
@media (max-width: 780px) {
  .reel { grid-template-columns: 1fr; }
}
.reel-frame {
  position: relative;
  background: var(--black);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.reel-frame img, .reel-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.reel-frame:hover img, .reel-frame:hover video { transform: scale(1.04); }
.reel-frame .frame-tag {
  position: absolute;
  top: 12px; left: 14px;
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.reel-frame .frame-name {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  color: var(--white);
  font-size: 15px;
}
.reel-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
}

/* ---------- services list ---------- */
.callsheet { border-top: 1px solid var(--line); }
body.dark .callsheet { border-color: var(--line-dark); }
.callsheet-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
body.dark .callsheet-row { border-color: var(--line-dark); }
.callsheet-row .num {
  font-size: 13px;
  color: var(--rec);
  font-variant-numeric: tabular-nums;
}
.callsheet-row h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
}
.callsheet-row p {
  margin: 0;
  color: var(--grey);
  max-width: 58ch;
  font-size: 15px;
}
.callsheet-row .tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .callsheet-row { grid-template-columns: 40px 1fr; }
  .callsheet-row .tag { display: none; }
}

/* ---------- work / case studies ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(56px, 7vw, 96px);
  align-items: center;
}
body.dark .case { border-color: var(--line-dark); }
.case:nth-child(even) .case-media { order: 2; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 24px; }
  .case:nth-child(even) .case-media { order: 0; }
}
.case-media {
  position: relative;
  background: var(--black);
  aspect-ratio: 9 / 16;
  max-height: 640px;
  overflow: hidden;
  margin-inline: auto;
  width: 100%;
  max-width: 360px;
}
.case-media video, .case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-frame-tag {
  position: absolute; top: 14px; left: 14px;
  color: var(--white); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.case-body .frame-num {
  font-size: 12px;
  color: var(--rec);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}
.case-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 0 0 14px;
}
.case-body .loc {
  color: var(--grey);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}
.case-body p.desc {
  font-size: 16px;
  color: var(--black);
  max-width: 52ch;
  margin: 0 0 20px;
}
body.dark .case-body p.desc { color: var(--white); }
.case-body .services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-body .services span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--grey);
}
body.dark .case-body .services span { border-color: var(--line-dark); }

/* ---------- clients / logo wall ---------- */
.client-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.client-wall span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  min-height: 120px;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.02em;
}
.client-wall img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 200ms ease;
}
.client-wall span:hover img { filter: grayscale(0); }
@media (max-width: 780px) {
  .client-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .client-wall span { min-height: 88px; padding: 20px 12px; }
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-bottom: clamp(56px, 7vw, 96px);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-family: var(--body);
  font-size: 16px;
  color: var(--black);
  resize: vertical;
}
body.dark .field input, body.dark .field textarea { color: var(--white); border-color: var(--line-dark); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rec); }
.field textarea { min-height: 120px; }
.contact-direct { border-left: 1px solid var(--line); padding-left: 56px; }
body.dark .contact-direct { border-color: var(--line-dark); }
@media (max-width: 860px) { .contact-direct { border-left: none; padding-left: 0; } }
.contact-direct .big-link {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 38px);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--black);
}
body.dark .contact-direct .big-link { border-color: var(--white); }
.contact-direct .big-link:hover { color: var(--rec); border-color: var(--rec); }
.contact-direct dl { margin: 0; }
.contact-direct dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 22px;
}
.contact-direct dd { margin: 6px 0 0; font-size: 16px; }

.form-note {
  font-size: 12px;
  color: var(--grey);
  margin-top: 8px;
}

/* ---------- utility ---------- */
.mono-list {
  list-style: none;
  margin: 0; padding: 0;
}

.center-cta {
  text-align: center;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.center-cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 64px);
  margin: 0 0 28px;
}
