/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #fcfcf8;
  --paper-alt: #f6f5ee;
  --ink: #16160f;
  --ink-soft: #6e6c61;
  --line: #e4e1d6;
  --line-strong: #c9c6b8;

  --cyan: #00aeef;
  --magenta: #ec008c;
  --yellow: #ffd400;

  --max-w: 1200px;
  --gap: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Bricolage Grotesque", "Archivo", sans-serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 96px 0;
}

/* ---------- Color bar (signature motif) ---------- */
.swatchbar {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}

.swatchbar span {
  width: 7px;
  height: 7px;
}

.swatchbar span:nth-child(1) { background: var(--cyan); }
.swatchbar span:nth-child(2) { background: var(--magenta); }
.swatchbar span:nth-child(3) { background: var(--yellow); }
.swatchbar span:nth-child(4) { background: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 248, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.nav__links a {
  transition: color 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 88px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 17ch;
}

.hero h1 em {
  font-style: normal;
  box-shadow: inset 0 -0.28em 0 var(--yellow);
}

.hero p {
  margin-top: 24px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track img {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin: 18px 36px;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}

.marquee__track img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.section-head__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Logo grid ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.logo-tile {
  position: relative;
  background: var(--paper);
  outline: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background 0.25s var(--ease);
}

.logo-tile::before,
.logo-tile::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: var(--line-strong);
  transition: border-color 0.25s var(--ease);
  pointer-events: none;
}

.logo-tile::before {
  top: 6px;
  left: 6px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.logo-tile::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.logo-tile:hover::before,
.logo-tile:hover::after {
  border-color: var(--magenta);
}

.logo-tile__tag {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--line-strong);
}

.logo-tile__media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
}

.logo-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}

.logo-tile:hover .logo-tile__media img {
  transform: scale(1.05);
}

.logo-tile:hover {
  background: var(--paper-alt);
}

.logo-tile__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
}

/* ---------- Project grid (web/animation placeholders) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.project-card {
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.project-card:hover {
  border-color: var(--magenta);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}

.project-card__media video {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.project-card:hover .project-card__media video {
  transform: scale(1.03);
}

.project-card__expand {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(22, 22, 15, 0.55);
  padding: 4px 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.project-card:hover .project-card__expand {
  opacity: 1;
  transform: translateY(0);
}

.project-card__body {
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.project-card__body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.project-card__body p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--line-strong);
  flex-shrink: 0;
}

/* ---------- Motion lanes ---------- */
.motion-lane {
  margin-top: 64px;
}

.motion-lane:first-of-type {
  margin-top: 0;
}

.motion-lane__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.motion-lane__index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.motion-lane__head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.motion-lane__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- Reveal cards (video) ---------- */
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.reveal-card {
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.reveal-card:hover {
  border-color: var(--magenta);
}

.reveal-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  cursor: pointer;
}

.reveal-card--square .reveal-card__media {
  aspect-ratio: 1 / 1;
}

.reveal-card--vertical .reveal-card__media {
  aspect-ratio: 9 / 16;
}

.reveal-card--wide {
  grid-column: 1 / -1;
}

.reveal-card--wide .reveal-card__media {
  aspect-ratio: 21 / 9;
}

.reveal-card__media video {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.reveal-card:hover .reveal-card__media video {
  transform: scale(1.03);
}

.reveal-card__expand {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(22, 22, 15, 0.55);
  padding: 4px 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.reveal-card:hover .reveal-card__expand {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card__body {
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.reveal-card__body h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.reveal-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--line-strong);
  flex-shrink: 0;
}

/* ---------- Campaign pair (square + vertical) ---------- */
.campaign-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-top: var(--gap);
}

.campaign-row .reveal-card {
  flex: 0 0 auto;
}

.campaign-row .reveal-card__media {
  height: 320px;
  width: auto;
}

/* ---------- Filmstrip card (LED Media highlights) ---------- */
.filmstrip-card {
  border: 1px solid var(--line);
  padding: 20px;
}

.filmstrip-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.filmstrip-card__head h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.filmstrip-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--line-strong);
  flex-shrink: 0;
}

.filmstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filmstrip__item {
  position: relative;
  flex: 0 0 auto;
  width: 100px;
  aspect-ratio: 608 / 1080;
  outline: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: outline-color 0.25s var(--ease);
}

.filmstrip__item:hover {
  outline-color: var(--magenta);
}

.filmstrip__item video {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  display: block;
}

.filmstrip__item span {
  position: absolute;
  bottom: 4px;
  left: 2px;
  right: 2px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(22, 22, 15, 0.9);
  padding: 40px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__video {
  max-width: min(900px, 100%);
  max-height: 85vh;
  outline: 1px solid var(--line-strong);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1;
  color: var(--paper);
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

footer .footer__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

footer a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

footer a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Scroll fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .reveal-grid {
    grid-template-columns: 1fr;
  }
  .campaign-row .reveal-card__media {
    height: 260px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }
  .nav__links {
    display: none;
  }
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding: 96px 0 64px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .motion-lane__head {
    flex-wrap: wrap;
  }
  .motion-lane__count {
    margin-left: 0;
    flex-basis: 100%;
  }
  .campaign-row {
    flex-direction: column;
  }
  .campaign-row .reveal-card__media {
    height: auto;
    width: 100%;
  }
  .campaign-row .reveal-card--square .reveal-card__media {
    aspect-ratio: 1 / 1;
  }
  .campaign-row .reveal-card--vertical .reveal-card__media {
    aspect-ratio: 9 / 16;
  }
  .lightbox {
    padding: 20px;
  }
}
