@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg: #F1F2EF;
  --bg-panel: #E7E8E3;
  --ink: #16181A;
  --ink-soft: #53585C;
  --ink-faint: #86898C;
  --line: #D3D5CF;
  --accent: #D6402C;
  --white: #FAFAF8;

  --font-display: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 2.5vw, 28px);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: 90vw;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow--accent {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 242, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand .brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.05;
  max-width: 18ch;
}

.hero h1 .accent-word {
  color: var(--accent);
}

.hero p {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
}


.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 48px 0 24px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.2vw, 32px);
  padding-bottom: 96px;
}

.work-item {
  display: block;
}

.work-media {
  aspect-ratio: 3 / 2;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.25s ease;
}

.work-item:hover .work-media img,
.work-item:focus-visible .work-media img {
  transform: scale(1.03);
  opacity: 0.9;
}

.work-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 16px;
}

.work-tags {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.work-caption h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  position: relative;
  display: inline-block;
}

.work-caption h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.work-item:hover .work-caption h3::after,
.work-item:focus-visible .work-caption h3::after {
  width: 100%;
}

.placeholder-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 12px;
}

.view-link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.view-link:hover, .view-link:focus-visible {
  gap: 14px;
  border-color: var(--accent);
}



.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}

.footer-links a:hover, .footer-links a:focus-visible {
  border-color: var(--accent);
}

.footer-note {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-faint);
}

.cs-hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}

.cs-back {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.cs-back:hover { color: var(--accent); }

.cs-hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  max-width: 22ch;
  margin: 16px 0 24px;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cs-meta-item .eyebrow { margin-bottom: 6px; }

.cs-meta-item p {
  font-size: 14.5px;
}

.cs-hero-media {
  aspect-ratio: 16 / 9;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cs-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-hero-media-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.cs-hero-media-split .cs-hero-media {
  margin-top: 0;
  aspect-ratio: 4 / 3;
}

.cs-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.cs-section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

.cs-section-grid .eyebrow {
  padding-top: 6px;
}

.cs-section-grid .cs-copy p {
  max-width: 62ch;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 16.5px;
}

.cs-section-grid .cs-copy p:last-child { margin-bottom: 0; }

.cs-copy h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  margin: 28px 0 10px;
}

.cs-media { overflow: hidden; }

.cs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-media-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.cs-media-row.single { grid-template-columns: 1fr; }

.cs-media-row .cs-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-media-row.wide .cs-media { aspect-ratio: 16/9; }

.media-caption {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 10px;
}

.cs-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.timeline-year {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.timeline-year .eyebrow--accent { margin-bottom: 10px; }

.timeline-year .cs-media {
  aspect-ratio: 4/5;
  margin-bottom: 14px;
}

.cs-timeline--square .timeline-year .cs-media { aspect-ratio: 1/1; }

.timeline-year p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.timeline-extra {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.timeline-extra .cs-media {
  aspect-ratio: 1/1;
  flex: 1;
  margin-bottom: 0;
}

.timeline-extra-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.cs-next {
  padding: 56px 0 88px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.cs-next .eyebrow { margin-bottom: 10px; }

.cs-next h3 { font-size: 24px; }

.scope-list {
  list-style: none;
  margin-top: 8px;
}

.scope-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.scope-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.scope-list li span.scope-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.gallery-wrap {
  position: relative;
  margin-top: 8px;
}

.gallery-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(22, 24, 26, 0.85);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.85;
  z-index: 5;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.gallery-prev:hover,
.gallery-next:hover { opacity: 1; background: var(--ink); }

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-wrap.no-overflow .gallery-prev,
.gallery-wrap.no-overflow .gallery-next { display: none; }

.gallery-item {
  flex: 0 0 auto;
  height: 380px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 0;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.gallery-item img { height: 100%; width: auto; display: block; }

.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(22, 24, 26, 0.95);
}

.lightbox.open { display: block; }

.lightbox-scroll {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0 8vw;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lightbox-scroll::-webkit-scrollbar { display: none; }

.lightbox-scroll img {
  flex: 0 0 auto;
  max-height: 82vh;
  max-width: 84vw;
  width: auto;
  height: auto;
  scroll-snap-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  border: none;
  background: transparent;
  color: var(--white);
  font-family: var(--font-mono);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 32px;
  font-weight: 300;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 400;
  background: rgba(22, 24, 26, 0.85);
  border-radius: 50%;
  opacity: 0.85;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: var(--ink); }

.lightbox-close:hover { opacity: 1; }

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.cs-motion-grid {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 8px;
}

.motion-video,
.motion-gif {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.motion-frame {
  position: relative;
  height: 75vh;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink);
  border: 5px solid var(--ink);
  box-shadow: 0 24px 48px rgba(22, 24, 26, 0.16);
}

.motion-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.motion-frame-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.motion-frame-bar span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.motion-frame-bar span:first-child { background: rgba(255, 255, 255, 0.9); }

.motion-sound {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  background: rgba(22, 24, 26, 0.6);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.motion-orb {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(107, 33, 168, 0.16), transparent 72%);
}

.motion-orb img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.motion-video .media-caption,
.motion-gif .media-caption { text-align: center; margin-top: 14px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--gutter) 32px;
    gap: 20px;
  }

  .work-list { grid-template-columns: 1fr; gap: 40px; }

  .cs-meta { grid-template-columns: repeat(2, 1fr); }

  .cs-section-grid { grid-template-columns: 1fr; gap: 20px; }

  .cs-media-row { grid-template-columns: 1fr; }

  .cs-hero-media-split { grid-template-columns: 1fr; }

  .cs-timeline { grid-template-columns: 1fr; gap: 40px; }

  .cs-next { flex-direction: column; align-items: flex-start; }

  .scope-list li { grid-template-columns: 1fr; gap: 4px; }

  .gallery-item { height: 220px; }

  .lightbox-scroll { padding: 0 6vw; gap: 20px; }

  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 20px; }

  .gallery-prev, .gallery-next { width: 36px; height: 36px; font-size: 18px; }

  .cs-motion-grid { flex-direction: column; align-items: center; }
}
