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

:root {
  --bg: #0c0c0c;
  --text: #fff;
  --muted: #8c8c8c;
  --soft: #767676;
  --pink: #ffbcf2;
  --panel: #111111;
  --line: rgba(255, 255, 255, 0.1);
  --case-outer: 1240px;
}

body.light {
  --bg: #fcfcfc;
  --text: #000;
  --muted: #666;
  --soft: #777;
  --pink: #ffbcf2;
  --panel: #fafafa;
  --line: rgba(0, 0, 0, 0.06);
}
html,
body {
  height: 100%;
  font-family: "Sora", sans-serif;
  background: var(--bg);
  color: var(--text);
}
body {
  display: flex;
  overflow: hidden;
}

.left {
  position: relative;
  z-index: 2;
  display: flex;
  width: 500px;
  height: 100vh;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 3rem 4rem;
  border-right: 1px solid var(--line);
  background: var(--bg);
}
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 5rem;
}
.logo {
  margin-right: auto;
  color: var(--text);
  font-size: 1.6rem;
  text-decoration: none;
}
.nav-link {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--pink);
  opacity: 1;
}
.nav-link.active {
  color: var(--text);
  opacity: 1;
}

.overview {
  display: flex;
  max-width: none;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 6rem;
}
.eyebrow,
.story-label {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.overview h1 {
  margin-top: 1rem;
  font-size: clamp(2.8rem, 3.7vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}
.overview-summary {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.project-facts {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.project-facts div {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
dt {
  color: var(--soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
dd {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  font-weight: 500;
}
.project-facts a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}
.project-facts a:hover,
.project-facts a:focus-visible {
  color: var(--pink);
}
.theme-switcher {
  position: absolute;
  bottom: 3rem;
  left: 4rem;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.theme-switcher svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.theme-switcher .sun-icon,
body.light .theme-switcher .moon-icon {
  display: none;
}
body.light .theme-switcher .sun-icon {
  display: block;
}

.right {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 3rem;
  scrollbar-width: none;
}
.right::-webkit-scrollbar {
  display: none;
}
.story {
  display: flex;
  width: 100%;
  max-width: var(--case-outer);
  margin: 0 auto;
  flex-direction: column;
  gap: 5rem;
  padding-bottom: 4rem;
}
figure {
  margin: 0;
}
.hero-media,
.story-media {
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel);
}
.hero-media img,
.story-media img {
  display: block;
  width: 100%;
  min-height: 440px;
  object-fit: cover;
}
.hero-media video,
.story-media video {
  display: block;
  width: 100%;
  min-height: 440px;
  background: #000;
  object-fit: cover;
}
.hero-media img:not([src]),
.story-media img:not([src]),
.hero-media img.is-missing,
.story-media img.is-missing {
  display: none;
}
figcaption {
  padding-top: 0.7rem;
  color: var(--soft);
  font-size: 0.72rem;
}
.story-section {
  width: 100%;
  max-width: none;
}
.story-section h2 {
  margin: 0.8rem 0 1.2rem;
  max-width: none;
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.24;
}
.story-section > p:not(.story-label) {
  max-width: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
}
.story-section p + p {
  margin-top: 1.15rem;
}
.callout {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--line);
  color: var(--text) !important;
  max-width: none;
  font-size: 1rem !important;
  font-weight: 500;
  line-height: 1.6 !important;
}

/* Every case study uses the same page grid for copy and media. */
.case-story > .story-section,
.case-story > .story-section > h2,
.case-story > .story-section > p:not(.story-label),
.lab-story > .story-section,
.lab-hero,
.experiment-copy,
.flow-intro {
  width: 100%;
  max-width: none;
}
.source-link,
.live-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--text) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
}
.live-link {
  margin-right: 1rem;
}
.source-link:hover,
.live-link:hover {
  color: var(--pink) !important;
}
.story-media {
  align-self: stretch;
}
.story-media.wide {
  width: 100%;
}
.next-project {
  display: block;
  width: min(var(--case-outer), 100%);
  max-width: var(--case-outer);
  margin: 0 auto 3rem;
  padding: 1.6rem;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease;
}
.next-project:hover {
  transform: translateY(-3px);
}
.next-project:hover strong,
.next-project:hover span {
  color: var(--pink);
}
.next-project span {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.next-project strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.65rem;
  letter-spacing: -0.045em;
}
.next-project p {
  margin-top: 0.45rem;
  color: var(--muted);
}
.next-preview {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 1.3rem;
  padding: 0;
}
.next-preview img {
  width: 210px;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
}
.next-preview div {
  padding: 1rem 1.25rem 1rem 0;
}
.design-lab .lab-story {
  display: grid;
  width: 100%;
  max-width: var(--case-outer);
  margin: 0 auto;
  gap: 4.25rem;
  padding-bottom: 4rem;
}
.design-lab .lab-hero {
  width: 100%;
  max-width: none;
}
.design-lab .lab-hero h2,
.design-lab .experiments-heading {
  margin-top: 0.8rem;
  max-width: none;
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.design-lab .lab-hero p:not(.story-label) {
  max-width: none;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.72;
}
.design-lab .experiments-heading {
  margin: 0;
  color: var(--text);
}
.design-lab .experiment {
  display: grid;
  gap: 1.5rem;
}
.design-lab .experiment-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.design-lab .experiment-media video,
.design-lab .experiment-media img {
  display: block;
  width: 100%;
  min-height: 410px;
  background: #111;
  object-fit: cover;
}
.design-lab .experiment-media.music-shot {
  display: block;
  min-height: 0;
}
.design-lab .experiment-media.music-shot img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}
.design-lab .experiment-copy {
  width: 100%;
  max-width: none;
}
.design-lab .experiment-copy h3 {
  margin-top: 0.7rem;
  max-width: none;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.24;
}
.design-lab .experiment-copy p:not(.story-label) {
  max-width: none;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.7;
}
.design-lab .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.2rem;
}
.design-lab .project-links a {
  color: var(--text) !important;
  text-decoration: none !important;
}
.design-lab .project-links a:hover {
  color: var(--pink) !important;
}
.design-lab .explored {
  padding-top: 1rem;
}
.design-lab .exploration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.design-lab .exploration-grid article {
  min-height: 160px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.design-lab .exploration-grid h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.design-lab .exploration-grid p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.events-case .case-story {
  display: grid;
  width: 100%;
  max-width: var(--case-outer);
  margin: 0 auto;
  gap: 4.5rem;
  padding-bottom: 4rem;
}
.events-case .snapshot-grid,
.events-case .decision-grid,
.events-case .scope-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.events-case .snapshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
  counter-reset: snapshot;
}
.events-case .snapshot-grid span {
  position: relative;
  padding: 1rem 0 1rem 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  counter-increment: snapshot;
}
.events-case .snapshot-grid span::before {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--soft);
  content: "0" counter(snapshot);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.events-case .decision-grid article,
.events-case .scope-grid article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.events-case .decision-grid,
.events-case .scope-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.events-case .decision-grid h3,
.events-case .scope-grid h3 {
  color: var(--text);
  font-size: 1rem;
}
.events-case .decision-grid p,
.events-case .scope-grid p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.events-case .product-showcase {
  display: grid;
  gap: 4rem;
}
.events-case .flow-group {
  display: grid;
  gap: 1.4rem;
}
.events-case .flow-intro {
  display: block;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.events-case .flow-intro h2 {
  max-width: none;
  margin-top: 0.7rem;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.28;
}
.events-case .flow-intro > span {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.events-case .flow-intro h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}
.events-case .flow-intro p {
  max-width: none;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.events-case .flow-intro .story-label {
  margin-top: 0;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.klone-case .scope-note {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.klone-case .scope-note strong {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}
.events-case .mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.events-case .mockup-grid.single {
  grid-template-columns: 1fr;
}
.events-case .product-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.events-case .product-frame.wide {
  grid-column: 1 / -1;
}
.events-case .landing-page-frame {
  max-height: 1100px;
  overflow: hidden;
}
.events-case .landing-page-frame img {
  width: 100%;
  height: auto;
  object-position: top;
}
.events-case .window-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--line);
  background: #171717;
}
.events-case .window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
}
.events-case .window-bar i:first-child {
  background: #777;
}
.events-case .product-frame img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}
.klone-case .mobile-frame {
  display: grid;
  min-height: 34rem;
  place-items: center;
  padding: 1rem;
  background: #151515;
}
.klone-case .mobile-frame img {
  width: auto;
  max-width: 100%;
  max-height: 48rem;
}
.klone-case .campaign-frame {
  grid-column: 1 / -1;
  padding: 0;
}
.events-case .product-frame figcaption {
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}
.copylint-case .hero-media {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #151515;
}
.copylint-case .hero-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 760px;
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
}
.copylint-case .hero-media figcaption {
  width: 100%;
}
.copylint-case .plugin-frame img {
  background: #fff;
}
@media (max-width: 760px) {
  .events-case .case-story {
    gap: 3.5rem;
  }
  .events-case .snapshot-grid,
  .events-case .decision-grid,
  .events-case .scope-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .events-case .mockup-grid {
    grid-template-columns: 1fr;
  }
  .events-case .product-frame.wide {
    grid-column: auto;
  }
  .events-case .product-showcase {
    gap: 3rem;
  }
}
@media (max-width: 560px) {
  .next-preview {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .next-preview img {
    width: 100%;
    height: 190px;
  }
  .next-preview div {
    padding: 1rem 0;
  }
}
@media (max-width: 760px) {
  .design-lab .lab-story {
    gap: 3.5rem;
  }
  .design-lab .experiment-media video,
  .design-lab .experiment-media img,
  .design-lab .experiment-media.music-shot {
    min-height: 260px;
  }
  .design-lab .exploration-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .design-lab .experiment-media.music-shot,
  .design-lab .experiment-media.music-shot img {
    min-height: 0;
  }
}

@media (max-width: 1050px) {
  body {
    display: block;
    height: auto;
    overflow-y: auto;
  }
  .left {
    width: 100%;
    height: auto;
    min-height: 400px;
    padding: 2.5rem 3rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .overview {
    width: 100%;
    max-width: none;
    min-height: 260px;
    padding-bottom: 3rem;
  }
  .overview-summary {
    max-width: none;
  }
  .project-facts {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .right {
    width: 100%;
    height: auto;
    padding: 3rem;
  }
}

@media (max-width: 760px) {
  body {
    display: block;
    height: auto;
    overflow-y: auto;
  }
  .left {
    width: 100%;
    height: auto;
    min-height: 430px;
    padding: 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    margin-bottom: 2.5rem;
  }
  .overview {
    min-height: 250px;
    padding-bottom: 3.5rem;
  }
  .theme-switcher {
    position: static;
  }
  .right {
    height: auto;
    padding: 1.5rem;
  }
  .project-facts {
    grid-template-columns: 1fr;
  }
  .story {
    gap: 4rem;
  }
  .hero-media img,
  .story-media img {
    min-height: 270px;
  }
  .hero-media video,
  .story-media video {
    min-height: 270px;
  }
  .next-project {
    width: auto;
    margin: 0 1.5rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
