:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --line: #26262a;
  --text: #f2f0ea;
  --muted: #9a978f;
  --accent: #e8ff59;
  --accent-ink: #0b0b0c;
  --radius: 14px;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: 14px 22px;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px max(16px, calc((100% - 1240px) / 2));
  background: linear-gradient(rgba(11,11,12,.85), rgba(11,11,12,0));
  backdrop-filter: blur(6px);
}
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 30%, #2a2a20, var(--bg) 70%); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(11,11,12,.2) 60%, rgba(11,11,12,.5)); }
.hero-inner { position: relative; padding: 140px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 7.5rem); max-width: 14ch; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Clients marquee */
.clients { display: flex; gap: 28px; align-items: center; padding: 26px 0; border-block: 1px solid var(--line); }
.label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 0; flex: none; }
.marquee { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.clients li { font-weight: 600; font-size: 19px; color: #cfccc4; white-space: nowrap; }
.clients li::before { content: "✦"; color: var(--accent); margin-right: 48px; font-size: 13px; vertical-align: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .clients { flex-direction: column; align-items: flex-start; gap: 14px; } .marquee { width: 100%; } }

/* Work */
.work, .graphics, .about { padding: 110px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; font: 500 14px var(--sans); cursor: pointer;
}
.filters button:hover { color: var(--text); }
.filters button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters .count { opacity: .75; margin-left: 6px; font-size: 12px; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}
.group-title {
  grid-column: 1 / -1;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); padding: 34px 0 4px; border-top: 1px solid var(--line); margin-top: 18px;
}
.see-all {
  grid-column: 1 / -1; justify-self: start; margin-top: 4px;
  background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px;
  padding: 10px 18px; font: 600 14px var(--sans); cursor: pointer;
}
.see-all:hover { border-color: var(--accent); color: var(--accent); }
.group-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.card { grid-column: span 6; position: relative; cursor: pointer; border: 0; padding: 0; background: none; color: inherit; text-align: left; font: inherit; }
.card.vertical { grid-column: span 3; }
.card.square { grid-column: span 4; }
.card.featured { grid-column: span 12; }
@media (max-width: 900px) {
  .card { grid-column: span 12; }
  .card.vertical, .card.square { grid-column: span 6; }
}
.card.square .thumb { aspect-ratio: 1/1; }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.card.vertical .thumb { aspect-ratio: 9/16; }
.card.featured .thumb { aspect-ratio: 21/9; }
@media (max-width: 900px) { .card.featured .thumb { aspect-ratio: 16/9; } }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.thumb video { opacity: 0; }
.card:hover .thumb img { transform: scale(1.04); }
.card.previewing .thumb video { opacity: 1; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); }
.play {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  transform: scale(.85); opacity: .9; transition: transform .25s ease;
}
.card:hover .play, .card:focus-visible .play { transform: scale(1); opacity: 1; }
.dur { position: absolute; z-index: 2; left: 12px; bottom: 14px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 6px; }
.card-meta { padding: 12px 2px 0; }
.card-meta h3 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; }
.card-meta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }

/* Graphics */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry button { display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: transform .5s ease; }
.masonry button:hover img { transform: scale(1.03); }

/* About teaser (home) */
.about-teaser { padding: 110px 0 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .about-teaser { grid-template-columns: 1fr; gap: 36px; } }
.portrait { display: block; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-2); }
.portrait img, .ab-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.portrait:hover img { transform: scale(1.03); }
.portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); border-radius: inherit; }
.about-text h2 { margin-bottom: 18px; }
.about-short { color: #cfccc4; font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 48ch; margin: 0 0 30px; }
.services h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.services ul { list-style: none; margin: 0 0 30px; padding: 0; columns: 2 220px; column-gap: 28px; }
.services li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; break-inside: avoid; }
.services .tools { display: flex; flex-wrap: wrap; gap: 8px; columns: auto; }
.services .tools li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; }

/* Contact */
.contact { margin-top: 120px; padding: 100px 0; background: var(--accent); color: var(--accent-ink); }
.contact .eyebrow { color: var(--accent-ink); opacity: .7; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; }
.contact em { color: var(--accent-ink); }
.contact .lede { color: #2a2a20; }
.contact-email {
  display: inline-block; margin-top: 30px; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700;
  color: var(--accent-ink); text-decoration: none; border-bottom: 3px solid var(--accent-ink); padding-bottom: 2px; word-break: break-all;
}
.contact-email:hover { opacity: .75; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-links a { background: var(--accent-ink); color: var(--accent); text-decoration: none; border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 15px; }
.contact-form {
  background: var(--accent-ink); color: var(--text); border-radius: 22px; padding: clamp(22px, 4vw, 36px);
  display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .contact-form .row2 { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; font: 400 16px/1.4 var(--sans); text-transform: none; letter-spacing: 0;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,255,89,.18); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-dark { background: var(--accent); color: var(--accent-ink); justify-content: center; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff8a8a; }
.form-status a { color: inherit; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* About page */
.nav-solid { background: rgba(11,11,12,.85); }
.nav nav a[aria-current="page"] { color: var(--text); }
.ab-hero { padding: 130px 0 40px; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .ab-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 100px; } }
.ab-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-2); }
.ab-badge { position: absolute; left: 16px; bottom: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.ab-intro h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 14ch; margin-bottom: 22px; }
.ab-body p { color: #cfccc4; font-size: 1.12rem; max-width: 58ch; margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 28px 0 32px; }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.ab-section { padding-top: 100px; }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.svc-grid li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 24px; font-size: 19px; font-weight: 600; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.num { color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 400; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: none; }
.process li { border-top: 2px solid var(--accent); padding: 20px 4px 0; }
.process h3 { font-size: 22px; margin: 8px 0 8px; }
.process p { color: var(--muted); margin: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini { position: relative; display: block; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: var(--bg-2); text-decoration: none; }
.mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mini:hover img { transform: scale(1.05); }
.mini span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; font-weight: 600; font-size: 15px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.page-about .clients { margin-top: 100px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5,5,6,.94); display: grid; place-items: center; padding: 56px 16px 24px; }
.lightbox[hidden] { display: none; }
.lb-stage { width: min(1200px, 100%); max-height: calc(100svh - 140px); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.lb-stage.vertical { width: auto; height: min(calc(100svh - 140px), 860px); aspect-ratio: 9/16; max-width: 100%; }
.lb-stage.square { width: auto; height: min(calc(100svh - 140px), 900px); aspect-ratio: 1/1; max-width: 100%; }
.lb-stage.image { aspect-ratio: auto; background: none; width: auto; display: grid; place-items: center; }
.lb-stage.image img { max-height: calc(100svh - 140px); width: auto; border-radius: 12px; }
.lb-stage iframe, .lb-stage video { width: 100%; height: 100%; border: 0; }
.lb-meta { width: min(1200px, 100%); padding-top: 14px; color: var(--muted); font-size: 15px; text-align: center; }
.lb-meta strong { color: var(--text); }
.lb-close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .thumb img, .masonry img { transition: none; }
  .clients ul { animation: none; flex-wrap: wrap; width: auto; gap: 10px 32px; }
  .clients li[aria-hidden] { display: none; }
}

.lb-empty { padding: 24px; color: var(--muted); }
.consent { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent a { color: var(--text); }
.foot-links { display: inline-flex; gap: 18px; }

/* Legal pages */
.legal { max-width: 760px; padding: 130px 0 40px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #cfccc4; font-size: 1.05rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }

/* Swipe feed (TikTok-style) */
.feed { position: fixed; inset: 0; z-index: 60; background: #000; }
.feed[hidden] { display: none; }
.feed-track {
  height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.feed-track::-webkit-scrollbar { display: none; }
.feed-slide {
  position: relative; height: 100svh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; place-items: center; overflow: hidden; cursor: pointer;
}
.feed-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (min-width: 700px) {
  .feed-slide video { width: auto; height: calc(100svh - 40px); max-width: calc(100vw - 160px); aspect-ratio: 9 / 16; border-radius: 14px; }
  .feed-slide.sq video { aspect-ratio: 1 / 1; }
  .feed-slide.h video { aspect-ratio: 16 / 9; height: auto; width: calc(100vw - 160px); max-height: calc(100svh - 40px); }
}
.feed-paused {
  position: absolute; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.45); color: #fff; opacity: 0; transform: scale(.8); transition: .2s ease; pointer-events: none;
}
.feed-slide.is-paused .feed-paused { opacity: 1; transform: scale(1); }
.feed-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 84px 26px 18px; cursor: default;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); display: grid; gap: 4px;
}
.feed-meta strong { font-size: 17px; }
.feed-meta span { color: #cfccc4; font-size: 14px; }
@media (min-width: 700px) { .feed-meta { left: 50%; transform: translateX(-50%); width: min(560px, 100%); padding-right: 18px; background: none; text-shadow: 0 1px 8px rgba(0,0,0,.8); } }
.feed-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.feed-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.feed-ui { position: absolute; inset: 0; pointer-events: none; }
.feed-ui > * { pointer-events: auto; }
.feed-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(20,20,22,.6); color: #fff; backdrop-filter: blur(8px); font-size: 28px; line-height: 1;
}
.feed-btn:hover { background: rgba(40,40,44,.8); }
.feed-btn:disabled { opacity: .3; cursor: default; }
.feed-close { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; }
.feed-mute { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; }
.feed-mute .ic-off, .feed-mute.is-muted .ic-on { display: none; }
.feed-mute.is-muted .ic-off { display: block; }
.feed-count {
  position: absolute; top: max(26px, calc(env(safe-area-inset-top) + 12px)); left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 600; color: #cfccc4; background: rgba(20,20,22,.6); padding: 4px 10px; border-radius: 999px;
}
.feed-arrows { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
@media (hover: none) { .feed-arrows { display: none; } }   /* touch phones swipe instead */
.feed-hint {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); display: none; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px;
  animation: hint 1.6s ease-in-out infinite; pointer-events: none;
}
.feed.show-hint .feed-hint { display: inline-flex; }
@keyframes hint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
@media (prefers-reduced-motion: reduce) { .feed-hint { animation: none; } .feed-track { scroll-behavior: auto; } }
