*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Colors */
  --bg: #080808;
  --fg: #e8e8e8;
  --dim: #636363;

  /* Type scale — 18px base, perfect fifth (×1.5), rounded */
  --step--1:  12px;
  --step-0:   18px;
  --step-1:   27px;
  --step-2:   41px;
  --step-3:   61px;
  --step-4:   91px;
  --step-5:  137px;

  /* Spacing — same scale steps */
  --space-xs:   12px;   /* --step--1 */
  --space-sm:   18px;   /* --step-0  */
  --space-md:   27px;   /* --step-1  */
  --space-lg:   41px;   /* --step-2  */
  --space-xl:   61px;   /* --step-3  */
  --space-2xl:  91px;   /* --step-4  */
  --space-3xl: 137px;   /* --step-5  */

  /* Grid — fluid from step-0 (18px) to step-2 (41px) */
  --gut:  18px;
  --edge: clamp(18px, calc(9.9px + 2.16vw), 41px);

  --font: 'Switzer', -apple-system, 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: var(--space-2xl); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--fg); color: var(--bg); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gut);
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* Nav */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gut);
  padding: var(--space-md) var(--edge);
  pointer-events: none;
}
nav > * { pointer-events: auto; }

.nav-name {
  grid-column: 1 / 5;
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
}

.nav-links {
  grid-column: 10 / 13;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-lg);
  list-style: none;
  font-size: var(--step-1);
  font-weight: 400;
}

.nav-links a { opacity: 0.4; transition: opacity 0.25s; }
.nav-links a:hover { opacity: 1; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 24px;
  line-height: 1;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  opacity: 0;
  transition: color 0.25s;
  animation: heroFadeIn 0.8s ease 0.5s forwards, scrollBounce 2s ease-in-out 1.3s infinite;
}

.hero-scroll:hover { color: var(--fg); }

@keyframes heroFadeIn {
  to { opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* Projects */

.projects {
  padding-top: clamp(91px, calc(74.8px + 4.319vw), 137px);      /* step-4 → step-5 */
}

.projects-label {
  grid-column: 1 / 13;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: var(--space-lg);
}

.project-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gut);
  padding-left: var(--edge);
  padding-right: var(--edge);
  margin-bottom: clamp(91px, calc(50px + 8vw), 180px);
  align-items: start;
}

.project-row.stagger { align-items: end; }

.case { position: relative; overflow: hidden; }

.case-img {
  width: 100%;
  background-color: #111;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  position: relative;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

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

.case-img video {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-img video.playing { opacity: 1; }

.case-meta { padding: var(--space-xs) 0 0; }

.case-meta-title {
  font-size: clamp(18px, calc(14.83px + 0.845vw), 27px);        /* step-0 → step-1 */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  text-decoration: none;
}

a.case-meta-title::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.case-hover-label {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.case:hover .case-hover-label { opacity: 1; }

.case-meta-sub {
  font-size: clamp(18px, calc(14.83px + 0.845vw), 27px);        /* step-0 → step-1 */
  font-weight: 400;
  color: var(--dim);
  margin-top: 4px;
}

/* Vertical offset for staggered pairs */
.push-down { margin-top: clamp(61px, calc(34.24px + 7.136vw), 137px); }  /* step-3 → step-5 */

/* Column placements — left-start (c-N = 1 / N+1) */
.c-1  { grid-column: 1 / 2; }
.c-2  { grid-column: 1 / 3; }
.c-3  { grid-column: 1 / 4; }
.c-4  { grid-column: 1 / 5; }
.c-5  { grid-column: 1 / 6; }
.c-6  { grid-column: 1 / 7; }
.c-7  { grid-column: 1 / 8; }
.c-8  { grid-column: 1 / 9; }
.c-9  { grid-column: 1 / 10; }
.c-10 { grid-column: 1 / 11; }
.c-11 { grid-column: 1 / 12; }
.c-12 { grid-column: 1 / 13; }

/* Column placements — right-end (c-N-r = 13-N / 13) */
.c-1-r  { grid-column: 12 / 13; }
.c-2-r  { grid-column: 11 / 13; }
.c-3-r  { grid-column: 10 / 13; }
.c-4-r  { grid-column: 9 / 13; }
.c-5-r  { grid-column: 8 / 13; }
.c-6-r  { grid-column: 7 / 13; }
.c-7-r  { grid-column: 6 / 13; }
.c-8-r  { grid-column: 5 / 13; }
.c-9-r  { grid-column: 4 / 13; }
.c-10-r { grid-column: 3 / 13; }
.c-11-r { grid-column: 2 / 13; }

/* About */

.about {
  padding-top: clamp(91px, calc(74.8px + 4.319vw), 137px);      /* step-4 → step-5 */
  padding-bottom: clamp(91px, calc(74.8px + 4.319vw), 137px);
}

.about-label {
  grid-column: 1 / 3;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding-top: 8px;
}

.about-text {


}

.about-text {
  grid-column: 3 / 10;
  font-size: clamp(27px, calc(22.07px + 1.315vw), 41px);        /* step-1 → step-2 */
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.about-text span { color: var(--dim); }

/* Clients */

.clients { padding-bottom: clamp(91px, calc(74.8px + 4.319vw), 137px); }  /* step-4 → step-5 */

.clients-label {
  grid-column: 1 / 3;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding-top: 10px;
}

.clients-names {
  grid-column: 3 / 13;
  font-size: clamp(41px, calc(23.4px + 4.695vw), 91px);         /* step-2 → step-4 */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--dim);
}

.clients-names span { transition: color 0.25s; cursor: default; }
.clients-names span:hover { color: var(--fg); }
.csep { opacity: 0.15; }

/* Status */

.status {
  padding-bottom: clamp(91px, calc(74.8px + 4.319vw), 137px);   /* step-4 → step-5 */
}

.status-label {
  grid-column: 1 / 3;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding-top: 8px;
}

.status-text {
  grid-column: 3 / 10;
  font-size: clamp(27px, calc(22.07px + 1.315vw), 41px);        /* step-1 → step-2 */
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--dim);
}

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
}

.status-dim { display: block; color: var(--dim); }

/* Contact */

.contact {
  padding-top: clamp(61px, calc(50.44px + 2.817vw), 91px);      /* step-3 → step-4 */
  padding-bottom: var(--space-md);
}

.contact-heading {
  grid-column: 1 / 10;
  font-size: clamp(61px, calc(50.44px + 2.817vw), 91px);        /* step-3 → step-4 */
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.contact-heading a { color: var(--dim); transition: color 0.25s; }
.contact-heading a:hover { color: var(--fg); }

.contact-links {
  grid-column: 1 / 5;
  margin-top: clamp(41px, calc(33.96px + 1.878vw), 61px);       /* step-2 → step-3 */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--step-1);
  font-weight: 300;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  transition: color 0.25s;
}
.contact-links a:first-child { font-weight: 500; color: var(--fg); }
.contact-links a:hover { color: var(--fg); }

.contact-link-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.contact-social {
  grid-column: 1 / 5;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--step-0);
  font-weight: 300;
}

.contact-social .contact-icon { font-size: 18px; }

.contact-social a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  transition: color 0.25s;
}
.contact-social a:hover { color: var(--fg); }

.contact-arrow {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

/* Footer */

.footer {
  padding: var(--space-md) var(--edge);
}

.copyright {
  grid-column: 1 / 13;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step--1);
  font-weight: 300;
  color: var(--dim);
  opacity: 0.65;
  padding-bottom: 8px;
}

.footer-logo {
  width: 36px;
  height: auto;
  filter: brightness(0) invert(1) opacity(0.3);
}

/* Scroll reveal */

.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.rv.vis { opacity: 1; transform: translateY(0); }

/* Case study page */

.case-hero {
  padding-top: clamp(91px, calc(74.8px + 4.319vw), 137px);      /* step-4 → step-5 */
  padding-bottom: clamp(41px, calc(33.96px + 1.878vw), 61px);   /* step-2 → step-3 */
}

.case-hero-title {
  grid-column: 1 / 13;
  font-weight: 500;
  font-size: clamp(41px, calc(7.2px + 9.014vw), 137px);         /* step-2 → step-5 */
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.case-hero-info {
  grid-column: 1 / 5;
  margin-top: var(--space-md);
}

.case-hero-client {
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.case-hero-type {
  font-size: var(--step-0);
  font-weight: 400;
  color: var(--dim);
  margin-top: 6px;
}

.case-body-video {
  grid-column: 1 / 13;
  margin-bottom: var(--gut);
}

.case-body-video video {
  width: 100%;
  display: block;
}

.case-body-video-half-l {
  grid-column: 1 / 7;
  margin-bottom: var(--gut);
}

.case-body-video-half-r {
  grid-column: 7 / 13;
  margin-bottom: var(--gut);
}

.case-body-video-half-l video,
.case-body-video-half-r video {
  width: 100%;
  display: block;
}

.case-body-img {
  width: 100%;
  display: block;
}

.case-body-text {
  grid-column: 3 / 10;
  font-size: clamp(27px, calc(22.07px + 1.315vw), 41px);        /* step-1 → step-2 */
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-top: clamp(41px, calc(23.4px + 4.695vw), 91px);        /* step-2 → step-4 */
  margin-bottom: clamp(41px, calc(23.4px + 4.695vw), 91px);
}

.case-body-text span { color: var(--dim); }

.case-back {
  grid-column: 1 / 13;
  margin-top: clamp(41px, calc(23.4px + 4.695vw), 91px);        /* step-2 → step-4 */
}

.case-back a {
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  transition: color 0.25s;
}

.case-back a:hover { color: var(--fg); }

.case-more {
  grid-column: 1 / 13;
  margin-top: clamp(91px, calc(74.8px + 4.319vw), 137px);
  margin-bottom: clamp(91px, calc(74.8px + 4.319vw), 137px);
}

.case-more-label {
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  display: block;
  margin-bottom: var(--space-lg);
}

.case-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gut);
}

.case-more-grid .case-meta-title {
  font-size: var(--step-0);
  font-weight: 600;
}

.case-more-grid .case-meta-sub {
  font-size: var(--step-0);
}

/* Case body — stills grid */

.case-body-stills {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: var(--gut);
  margin-bottom: var(--gut);
}

.case-body-stills img {
  width: 100%;
  display: block;
}

/* Case body — before/after slider */

.case-slider {
  grid-column: 1 / 13;
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  margin-bottom: var(--gut);
}

.case-slider img {
  width: 100%;
  display: block;
}

.case-slider-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.case-slider-before img {
  width: 100%;
  display: block;
}

.case-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--fg);
  pointer-events: none;
}

.case-slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
}

.case-slider-label {
  position: absolute;
  bottom: var(--space-sm);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  background: var(--bg);
  padding: 4px 10px;
  pointer-events: none;
}

.case-slider-handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  line-height: 1;
  color: var(--bg);
  z-index: 1;
}

.case-slider-label-before { left: var(--space-sm); }
.case-slider-label-after  { right: var(--space-sm); }

/* About page */

.about-hero {
  padding-top: clamp(91px, calc(74.8px + 4.319vw), 137px);      /* step-4 → step-5 */
  padding-bottom: clamp(41px, calc(33.96px + 1.878vw), 61px);   /* step-2 → step-3 */
}

.about-hero-title {
  grid-column: 1 / 13;
  font-weight: 500;
  font-size: clamp(41px, calc(7.2px + 9.014vw), 137px);         /* step-2 → step-5 */
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.about-bio {
  padding-bottom: clamp(91px, calc(74.8px + 4.319vw), 137px);   /* step-4 → step-5 */
}

.about-bio-text {
  grid-column: 3 / 10;
  font-size: clamp(27px, calc(22.07px + 1.315vw), 41px);        /* step-1 → step-2 */
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.about-bio-text span { color: var(--dim); }

/* 404 page */

.four-oh-four {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gut);
  padding: 0 var(--edge);
  align-content: center;
}

.four-oh-four h1 {
  grid-column: 1 / 13;
  font-weight: 500;
  font-size: clamp(41px, calc(7.2px + 9.014vw), 137px);         /* step-2 → step-5 */
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.four-oh-four p {
  grid-column: 1 / 13;
  margin-top: var(--space-md);
  font-size: var(--step-0);
  font-weight: 300;
  color: var(--dim);
}

.four-oh-four p a {
  color: var(--fg);
  transition: color 0.25s;
}

/* Responsive — tablet */

@media (max-width: 900px) {
  .nav-links { font-size: var(--step-0); gap: var(--space-sm); }

  .project-row { margin-bottom: clamp(27px, 4vh, 41px); }
  .c-1, .c-2, .c-3, .c-4, .c-5, .c-6, .c-7, .c-8, .c-9, .c-10, .c-11, .c-12,
  .c-1-r, .c-2-r, .c-3-r, .c-4-r, .c-5-r, .c-6-r, .c-7-r, .c-8-r, .c-9-r, .c-10-r, .c-11-r { grid-column: 1 / 7; }
  .c-1-r, .c-2-r, .c-3-r, .c-4-r, .c-5-r, .c-6-r, .c-7-r, .c-8-r, .c-9-r, .c-10-r, .c-11-r { grid-column: 7 / 13; }
  .c-12 { grid-column: 1 / 13; }
  .push-down { margin-top: 0; }

  .about-label, .clients-label, .status-label { grid-column: 1 / 13; margin-bottom: var(--space-sm); }
  .about-text, .status-text { grid-column: 1 / 13; }
  .clients-names { grid-column: 1 / 13; }
  .contact-heading { grid-column: 1 / 13; }
  .contact-links { grid-column: 1 / 13; }
  .contact-social { grid-column: 1 / 13; }
  .case-hero-info { grid-column: 1 / 9; }
  .case-body-text { grid-column: 1 / 13; }
  .case-body-video-half-l, .case-body-video-half-r { grid-column: 1 / 13; }
  .case-body-stills { grid-template-columns: repeat(var(--cols-md, 1), 1fr); }
  .about-bio-text { grid-column: 1 / 13; }
  .case-more-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive — mobile */

@media (max-width: 600px) {
  .c-1, .c-2, .c-3, .c-4, .c-5, .c-6, .c-7, .c-8, .c-9, .c-10, .c-11, .c-12,
  .c-1-r, .c-2-r, .c-3-r, .c-4-r, .c-5-r, .c-6-r, .c-7-r, .c-8-r, .c-9-r, .c-10-r, .c-11-r { grid-column: 1 / 13; }
  .project-row { margin-bottom: clamp(18px, 4vh, 27px); row-gap: clamp(18px, 4vh, 27px); }
  .case-body-stills { grid-template-columns: 1fr; }
  .case-more-grid { grid-template-columns: 1fr; row-gap: var(--space-md); }
}
