:root {
  --black: #050505;
  --paper: #fff;
  --white: #fff;
  --muted-light: #b7b7b0;
  --muted-dark: #5f5f5a;
  --line-light: rgba(255, 255, 255, 0.25);
  --line-dark: rgba(5, 5, 5, 0.25);
  --accent: #9660ff;
  --page-gutter: 42px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input { font: inherit; }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button { color: inherit; }

a:focus-visible,
button:focus-visible,
video:focus-visible,
iframe:focus-visible,
.case-model-stage:focus-visible,
.case-mug-stage:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -64px;
  left: 20px;
  padding: 12px 14px;
  color: var(--black);
  background: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-height: 38px;
  padding: 0 var(--page-gutter);
  color: var(--white);
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-name {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.primary-nav a,
.project-index,
.project-open,
.info-label,
.site-footer,
.case-kicker,
.case-meta dt,
.media-caption,
.case-nav {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
}

.primary-nav a {
  padding: 5px 0;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  border-bottom-color: currentColor;
}

.menu-toggle { display: none; }

.project-panel {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: var(--black);
}

.project-panel-link,
.project-media-wrap,
.project-shade {
  position: absolute;
  inset: 0;
  display: block;
}

.project-panel-link { overflow: hidden; }

.project-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 900ms ease;
}

.project-shade {
  z-index: 1;
  background: rgba(0, 0, 0, 0.42);
  transition: background 500ms ease;
}

.project-panel-copy {
  position: absolute;
  z-index: 2;
  inset: 76px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.project-index {
  margin-bottom: 24px;
  color: var(--accent);
}

.project-panel--project-1 { --accent: #9660ff; }
.project-panel--project-2 { --accent: #6abcd0; }
.project-panel--project-3 { --accent: #e60012; }
.project-panel--project-4 { --accent: #aff96a; }
.project-panel--project-5 { --accent: #f20a7c; }

.project-panel h2 {
  max-width: 1180px;
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.project-description {
  max-width: 650px;
  margin-top: 23px;
  font-size: 17px;
  line-height: 1.45;
}

.project-open {
  margin-top: 38px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .project-panel-link:hover .project-media { transform: scale(1.035); }
  .project-panel-link:hover .project-shade { background: rgba(0, 0, 0, 0.25); }
}

.project-panel--long-title h2 { font-size: 60px; }

@media (min-width: 701px) {
  .project-panel--project-3 .project-media { object-position: 48% center; }
}

.info-band {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 54px;
  min-height: 70svh;
  padding: 130px var(--page-gutter) 90px;
  color: var(--white);
  background: var(--black);
  border-top: 1px solid var(--line-light);
  scroll-margin-top: 76px;
}

.info-band--light {
  color: var(--black);
  background: var(--paper);
  border-top-color: var(--line-dark);
}

.info-label { margin: 5px 0 0; }

.info-content {
  max-width: 1050px;
}

.info-content h2 {
  margin: 0;
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
}

.info-content p {
  max-width: 800px;
  margin: 34px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  line-height: 1.18;
}

.contact-title {
  max-width: 1050px;
  text-wrap: balance;
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 56px;
}

.contact-line,
.info-content .contact-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin: 0;
  color: var(--black);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 300;
  overflow-wrap: anywhere;
}

.contact-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: var(--black);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon-dot {
  fill: var(--black);
  stroke: none;
}

.contact-line span { min-width: 0; overflow-wrap: anywhere; }

a.contact-line {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

a.contact-line:hover { text-decoration-thickness: 2px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--page-gutter);
  color: var(--white);
  background: var(--black);
  border-top: 1px solid var(--line-light);
}

.site-footer a:hover { text-decoration: underline; }

/* Project pages */

.case-page { background: var(--paper); }

.case-page--p1 {
  --accent: #9660ff;
  background: var(--black);
}

.case-hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

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

.case-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.case-page--p1 .case-hero::after { background: rgba(0, 0, 0, 0.12); }

.case-hero-copy {
  position: absolute;
  z-index: 1;
  inset: 76px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-kicker {
  margin: 0 0 25px;
  color: var(--accent);
}

.case-hero h2 {
  max-width: 1180px;
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.case-hero--long-title h2 { font-size: 60px; }

.case-scroll-cue {
  position: absolute;
  bottom: 30px;
  font-size: 11px;
  font-weight: 700;
}

.case-intro,
.case-section {
  color: var(--black);
  background: var(--paper);
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.65fr);
  gap: 100px;
  padding: 112px var(--page-gutter) 126px;
}

.case-statement { max-width: 1000px; }

.case-statement .case-kicker,
.case-section .case-kicker { color: var(--muted-dark); }

.case-lead {
  max-width: 980px;
  margin: 0 0 34px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 48px;
  line-height: 1.12;
}

.case-body-copy {
  max-width: 720px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.case-meta {
  align-self: start;
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line-dark);
}

.case-meta div { padding: 0 0 28px; }

.case-meta div + div {
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.case-meta div:last-child { padding-bottom: 0; }

.case-meta dt {
  margin: 0 0 9px;
  color: var(--muted-dark);
}

.case-meta dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.case-film-section,
.case-section--dark {
  color: var(--white);
  background: var(--black);
}

.case-film-section {
  padding: 104px var(--page-gutter) 120px;
}

.case-heading-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 60px;
  margin-bottom: 48px;
}

.case-heading-row .case-kicker { margin: 7px 0 0; }

.case-heading-row h3 {
  max-width: 1000px;
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
  font-weight: 700;
}

.case-heading-row p:last-child {
  grid-column: 2;
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.6;
}

.case-film {
  margin: 0;
  background: #000;
}

.case-film video,
.case-film iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.case-film iframe {
  min-height: 200px;
  border: 0;
}

.media-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 0;
  color: var(--muted-light);
}

.media-caption a:hover { text-decoration: underline; }

.case-section {
  padding: 104px var(--page-gutter) 122px;
  border-top: 1px solid var(--line-dark);
}

.case-section--dark { border-top-color: var(--line-light); }

.case-section--dark .case-kicker { color: var(--accent); }

.case-media {
  margin: 0;
  background: #000;
}

.case-media + .case-media { margin-top: 38px; }

.case-media img {
  display: block;
  width: 100%;
  height: auto;
}

.case-media .media-caption { padding: 14px 16px; }

.case-page--p1 .case-section {
  color: var(--white);
  background: var(--black);
  border-top-color: var(--line-light);
}

.case-page--p1 .case-section .case-kicker { color: var(--accent); }


.case-model-section {
  color: var(--white);
  background: #000;
}

.case-model-stage {
  position: relative;
  width: 100%;
  height: clamp(440px, 44vw, 760px);
  overflow: hidden;
  outline-offset: -5px;
}

.case-model-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.case-model-stage canvas:active { cursor: grabbing; }

.model-status {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.model-status[hidden] { display: none; }

.case-model-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 var(--page-gutter);
  padding: 14px 0 24px;
  color: var(--muted-light);
  border-top: 1px solid var(--line-light);
  font-size: 11px;
  font-weight: 700;
}

.case-mug-section {
  color: var(--white);
  background: #000;
  border-top: 1px solid var(--line-light);
}

.case-mug-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding: 72px var(--page-gutter) 0;
}

.case-mug-heading .case-kicker { margin: 0; }

.case-mug-heading h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.case-mug-stage {
  position: relative;
  width: 100%;
  height: clamp(540px, 57vw, 860px);
  overflow: hidden;
  outline-offset: -5px;
}

.case-mug-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.case-mug-stage canvas:active { cursor: grabbing; }

.case-mug-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 0 var(--page-gutter);
  padding: 21px 0 28px;
  border-top: 1px solid var(--line-light);
  font-size: 11px;
  font-weight: 700;
}

.case-mug-caption { color: var(--muted-light); }

.case-mug-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.case-mug-actions input {
  min-width: 0;
  width: clamp(140px, 20vw, 300px);
  accent-color: #f5f5f5;
  cursor: pointer;
}

.case-mug-actions button {
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid #fff;
  color: #000;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.case-mug-actions button:hover { color: #fff; background: #000; }
.case-mug-actions button:disabled { opacity: 0.45; cursor: wait; }

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--page-gutter) 82px;
  color: var(--white);
  background: var(--black);
  border-top: 1px solid var(--line-light);
}

.case-nav a:hover { text-decoration: underline; }

@media (min-width: 1600px) {
  :root { --page-gutter: 56px; }
}

@media (max-width: 900px) {

  :root { --page-gutter: 24px; }
  .primary-nav { gap: 24px; }

  .project-panel h2,
  .info-content h2,
  .case-hero h2 { font-size: 54px; }

  .project-panel--long-title h2,
  .case-hero--long-title h2 { font-size: 46px; }

  .info-band,
  .case-intro {
    gap: 52px;
  }

  .case-intro { grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr); }
  .case-lead { font-size: 40px; }
}

@media (max-width: 700px) {
  :root { --page-gutter: 20px; }

  .site-header {
    min-height: 40px;
  }

  .site-name { font-size: 16px; }

  .menu-toggle {
    display: grid;
    align-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 7px 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 6px 20px 18px;
    background: rgba(5, 5, 5, 0.96);
    border-bottom: 1px solid var(--line-light);
  }

  .primary-nav.is-open { display: grid; gap: 0; }
  .primary-nav a { padding: 13px 0; font-size: 14px; }

  .project-panel {
    min-height: 620px;
  }

  .project-panel-copy {
    inset: 66px 20px 0;
  }

  .project-panel h2,
  .case-hero h2 {
    font-size: 38px;
    line-height: 1;
  }

  .project-panel--long-title h2,
  .case-hero--long-title h2 { font-size: 32px; }

  .project-description {
    max-width: 340px;
    margin-top: 18px;
    font-size: 15px;
  }

  .project-index { margin-bottom: 18px; }
  .project-open { margin-top: 28px; }

  .project-panel--project-3 .project-media {
    object-position: 67% center;
  }

  .info-band {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: 76svh;
    padding: 104px var(--page-gutter) 64px;
    scroll-margin-top: 66px;
  }

  .info-content h2 { font-size: 42px; }
  .info-content p { margin-top: 26px; font-size: 28px; }

  .contact-title { font-size: 40px; }

  .contact-list {
    gap: 10px;
    margin-top: 40px;
  }

  .contact-line,
  .info-content .contact-line {
    gap: 11px;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
  }

  .contact-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .case-hero {
    min-height: 620px;
  }

  .case-hero-copy { inset: 66px 20px 0; }

  .case-intro {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 74px var(--page-gutter) 82px;
  }

  .case-lead { font-size: 32px; }
  .case-body-copy { font-size: 16px; }

  .case-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
    padding: 28px 0 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .case-meta div,
  .case-meta div + div {
    padding: 0;
    border-top: 0;
  }

  .case-film-section,
  .case-section {
    padding: 72px var(--page-gutter) 82px;
  }

  .case-model-stage { height: clamp(500px, 75svh, 650px); }

  .case-mug-heading {
    display: block;
    padding: 52px var(--page-gutter) 0;
  }

  .case-mug-heading h3 { margin-top: 16px; font-size: 25px; }
  .case-mug-stage { height: clamp(470px, 70svh, 680px); }

  .case-mug-controls {
    flex-wrap: wrap;
    gap: 19px;
  }

  .case-mug-actions { width: 100%; gap: 12px; }
  .case-mug-actions input { width: auto; min-width: 0; flex: 1; }

  .case-heading-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 34px;
  }

  .case-heading-row .case-kicker { margin: 0 0 20px; }

  .case-heading-row h3 {
    font-size: 33px;
    line-height: 1.08;
  }

  .case-heading-row p:last-child {
    grid-column: 1;
    margin-top: 20px;
    font-size: 16px;
  }

  .media-caption { padding-top: 11px; }

  .case-nav { padding: 25px var(--page-gutter) 58px; }
  .site-footer { padding: 22px var(--page-gutter); }
}

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

  .project-media,
  .menu-toggle span { transition: none; }

}
