:root {
  --bg: #f4f1ea;
  --fg: #171717;
  --muted: #5c5c5c;
  --line: #d9d3c7;
  --font-body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --gutter: clamp(18px, 2.2vw, 28px);
  --panel-pad: clamp(18px, 2.2vw, 32px);
  --panel-radius: 28px;
  --max-width: 1600px;
  --shadow: 0 20px 60px rgba(23, 23, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  scroll-behavior: auto;
}

body {
  position: relative;
}

.seo-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 30;
  padding: 18px 0 0;
}

.site-nav {
  display: flex;
  gap: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--fg);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site {
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 84px;
}

.panel {
  min-height: 100svh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-bottom: 1px solid var(--line);
  display: grid;
  align-items: stretch;
  justify-items: center;
  padding: clamp(18px, 2vw, 28px);
}

.panel-inner {
  width: min(100%, var(--max-width));
  height: 100%;
  display: grid;
  gap: var(--gutter);
}

.intro .panel-inner {
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.9fr);
  align-content: center;
  align-items: center;
  max-width: 1200px;
}

.intro .panel-inner.intro-image-only,
.contact .panel-inner {
  grid-template-columns: 1fr;
  max-width: none;
}

.intro-shell,
.contact-shell {
  align-content: center;
  padding: 0 clamp(24px, 5vw, 56px);
}

.intro-copy {
  display: grid;
  gap: 14px;
}

.intro-visual {
  width: 100%;
  min-height: min(58svh, 620px);
  display: grid;
  align-items: center;
}

.intro-media,
.intro-placeholder {
  margin: 0;
  width: 100%;
  height: 100%;
}

.intro-image-only {
  width: 100%;
  max-width: none;
  height: 100%;
  place-items: center;
  align-content: center;
  justify-items: center;
  padding: 0;
}

.panel.intro {
  padding: 0;
}

.intro-image-only .intro-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.intro-image-only .intro-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 20px);
  object-fit: contain;
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.intro-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 23, 23, 0.2);
  background:
    linear-gradient(140deg, rgba(23, 23, 23, 0.08), rgba(23, 23, 23, 0.02)),
    repeating-linear-gradient(-45deg, rgba(23, 23, 23, 0.04) 0 14px, transparent 14px 28px);
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  max-width: 9ch;
}

.lede {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
}

.project .panel-inner {
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.6fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
}

.panel.project {
  border-bottom: 0;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-aspect-ratio, 16 / 9);
  background: #0d0d0d;
  border-radius: 2px;
  overflow: hidden;
}

.video-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-track::-webkit-scrollbar {
  display: none;
}

.video-slide {
  margin: 0;
  min-width: 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-next {
  position: absolute;
  top: 50%;
  right: clamp(8px, 1.2vw, 14px);
  transform: translateY(-50%);
  width: clamp(40px, 4.2vw, 56px);
  height: clamp(40px, 4.2vw, 56px);
  border: 0;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.9);
  color: #171717;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.video-prev {
  position: absolute;
  top: 50%;
  left: clamp(8px, 1.2vw, 14px);
  transform: translateY(-50%);
  width: clamp(40px, 4.2vw, 56px);
  height: clamp(40px, 4.2vw, 56px);
  border: 0;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.9);
  color: #171717;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.video-next:hover {
  background: #ffffff;
}

.video-prev:hover {
  background: #ffffff;
}

.video-prev.is-hidden,
.video-next.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.video-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.video-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

.meta {
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 8px;
  padding-right: clamp(8px, 1.2vw, 12px);
}

.meta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.2;
  font-weight: 600;
}

.project-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.project-logo-wrap {
  display: flex;
  align-items: center;
  min-height: 74px;
  margin-bottom: 4px;
}

.project-logo {
  display: block;
  width: min(200px, 100%);
  max-height: 100px;
  object-fit: contain;
}

.meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.project-blurb {
  white-space: pre-line;
}

.project-client-tag {
  margin: 0;
}

.project-client-tag-inline {
  display: block;
}

.project-client-tag-footer {
  display: none;
}

.credit-block {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.credit-label {
  margin: 0;
  color: #202020;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.credit-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 0;
  border: 1px solid rgba(23, 23, 23, 0.12);
  color: #363636;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-heading .tag-list {
  margin-top: 0;
}

.project-heading .tag {
  padding: 3px 7px;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.95fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 3.2vw, 70px);
}

.contact-visual {
  margin: 0;
  justify-self: end;
  margin-left: -18%;
  margin-right: -8%;
  z-index: 1;
}

.contact-visual img {
  display: block;
  width: 115%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.contact-copy {
  display: grid;
  gap: clamp(10px, 1.2vw, 14px);
  max-width: 47ch;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.contact-copy-line {
  margin: 0;
  color: #242424;
  font-size: clamp(1rem, 1.2vw, 1.36rem);
  line-height: 1.22;
}

.contact-email {
  margin-top: -8px;
}

.contact-email-label {
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-link {
  color: #f53c29;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 60, 41, 0.5);
}

.contact-link:hover {
  border-bottom-color: #f53c29;
}

.scroll-indicator {
  position: fixed;
  top: 50%;
  right: clamp(8px, 1.6vw, 20px);
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: auto;
}

.scroll-indicator-rail {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 10px 8px;
  border: 0;
  background: rgba(244, 241, 234, 0.9);
  border-radius: 999px;
}


.scroll-indicator-dots {
  display: grid;
  gap: 10px;
}

.scroll-indicator-dot {
  position: relative;
  width: 26px;
  height: 26px;
  border: 0;
  outline: none;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
  opacity: 0.72;
}

.scroll-indicator-dot.active {
  transform: scale(1.2);
  opacity: 1;
  filter: none;
}

.scroll-indicator-dot:hover {
  opacity: 1;
  animation: heartJiggle 450ms ease-in-out infinite alternate;
}

@keyframes heartJiggle {
  0% {
    transform: translate(0, 0) rotate(-2deg) scale(1.05);
  }

  50% {
    transform: translate(0.5px, -0.5px) rotate(2deg) scale(1.08);
  }

  100% {
    transform: translate(-0.5px, 0.5px) rotate(-1deg) scale(1.05);
  }
}

@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  .scroll-indicator-dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    color: #171717;
    background: rgba(244, 241, 234, 0.96);
    border: 1px solid rgba(23, 23, 23, 0.12);
    padding: 4px 8px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 140ms ease;
  }

  .scroll-indicator-dot:hover::after {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .site-header {
    display: none;
  }

  .site {
    scroll-padding-top: 0;
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .panel {
    border-bottom: 0;
    padding-bottom: calc(clamp(18px, 2vw, 28px) + 96px + env(safe-area-inset-bottom));
  }

  .panel.intro {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .intro .panel-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
  }

  .intro .panel-inner.intro-image-only {
    grid-template-rows: 1fr;
    align-content: center;
    height: 100svh;
  }

  .intro-visual {
    min-height: 42svh;
  }

  .intro-image-only .intro-media img {
    max-height: 94svh;
  }

  .project .panel-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 18px;
  }

  .contact-visual {
    justify-self: stretch;
    margin-left: 0;
    margin-right: 0;
  }

  .contact-visual img {
    width: 100%;
    max-width: 100%;
  }

  .contact-copy {
    max-width: none;
    gap: 14px;
    margin-top: 0;
  }

  .contact-copy-line {
    font-size: clamp(1.02rem, 4.2vw, 1.24rem);
    line-height: 1.33;
  }

  .contact-email {
    margin-top: -10px;
  }

  .meta {
    align-content: start;
    border-left: 0;
    border-top: 0;
    gap: 6px;
    padding-top: 10px;
    padding-left: 0;
  }

  .project-heading {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .project-client-tag-inline {
    display: none;
  }

  .project-client-tag-footer {
    display: block;
    margin-top: 4px;
  }

  .scroll-indicator {
    display: block;
    top: auto;
    left: 50%;
    right: auto;
    bottom: calc(8px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
  }

  .scroll-indicator::before {
    content: none;
  }

  .scroll-indicator-rail {
    padding: 8px 10px;
    background: transparent;
    box-shadow: none;
  }

  .scroll-indicator-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .scroll-indicator-dot {
    width: 16px;
    height: 16px;
    opacity: 0.82;
    filter: drop-shadow(0 1px 3px rgba(23, 23, 23, 0.22));
  }

  .video-next {
    width: 40px;
    height: 40px;
    font-size: 1.9rem;
    right: 10px;
  }

  .video-prev {
    width: 40px;
    height: 40px;
    font-size: 1.9rem;
    left: 10px;
  }

  .project-logo-wrap {
    min-height: 48px;
    margin-bottom: 2px;
  }

  .project-logo {
    width: min(120px, 100%);
    max-height: 60px;
  }

  .meta h2 {
    font-size: clamp(0.95rem, 4.2vw, 1.1rem);
  }

  .project-blurb {
    font-size: 0.88rem;
  }
}

@media (min-width: 961px) {
  .contact-copy {
    margin-top: clamp(180px, 35vh, 277px);
  }

  .panel.project {
    padding-right: clamp(88px, 7vw, 128px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site {
    scroll-snap-type: none;
  }

  .panel {
    scroll-snap-align: none;
  }
}
