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

:root {
  color-scheme: dark;
  --paper: #181716;
  --ink: #f6f1e8;
  --muted: #aaa49b;
  --line: rgba(255,255,255,0.16);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

a {
  color: inherit;
}

.lab-header {
  display: flex;
  width: min(1500px, calc(100% - 4rem));
  min-height: 6.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.lab-brand {
  display: inline-block;
  width: min(260px, 40vw);
  padding: 0.55rem 0.8rem;
  background: rgba(255,255,255,0.94);
}

.lab-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.original-link {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.original-link:hover {
  color: white;
}

.intro {
  display: grid;
  width: min(1500px, calc(100% - 4rem));
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 5rem;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 11rem) 0 clamp(4rem, 8vw, 8rem);
  align-items: end;
}

.kicker,
.concept-number {
  margin: 0 0 1.1rem;
  color: #caa777;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro h1 {
  grid-column: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 11rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.78;
}

.intro .kicker {
  grid-column: 1 / -1;
  margin-bottom: -3rem;
}

.intro-copy {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.intro-copy strong {
  color: var(--ink);
}

.jump-nav {
  display: grid;
  width: min(1500px, calc(100% - 4rem));
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 7rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.jump-nav a {
  display: flex;
  min-height: 5.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.jump-nav a:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.04);
}

.jump-nav span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.concept-panel {
  padding: clamp(4rem, 8vw, 8rem) max(2rem, calc((100vw - 1500px) / 2));
  color: #171513;
}

.concept-panel--editorial {
  background: #eee8db;
}

.concept-panel--cinematic {
  color: #f5eee4;
  background: #0c0b0b;
}

.concept-panel--studio {
  color: #26332d;
  background: #f5dfd1;
}

.concept-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(3rem, 8vw, 10rem);
  margin-bottom: 4rem;
  align-items: end;
}

.concept-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 8vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

.concept-copy > div:last-child {
  max-width: 540px;
  justify-self: end;
  font-size: 0.96rem;
  line-height: 1.65;
}

.concept-panel--editorial .concept-number {
  color: #8a1f2d;
}

.concept-panel--cinematic .concept-number {
  color: #d19a60;
}

.concept-panel--studio .concept-number {
  color: #b94f4b;
}

.concept-copy ul {
  margin: 1.4rem 0 2rem;
  padding-left: 1.2rem;
}

.open-button {
  display: inline-flex;
  min-height: 3.4rem;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  border: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.open-button:hover {
  color: white;
  background: #181716;
}

.concept-panel--cinematic .open-button:hover {
  color: #15110d;
  background: #d19a60;
}

.concept-panel--studio .open-button:hover {
  background: #486a59;
}

.browser-shell {
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.28);
  border-radius: 0.6rem;
  background: white;
  box-shadow: 0 45px 120px rgba(0,0,0,0.22);
}

.concept-panel--cinematic .browser-shell {
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 45px 140px rgba(0,0,0,0.6);
}

.browser-bar {
  display: flex;
  height: 2.6rem;
  gap: 0.42rem;
  align-items: center;
  padding: 0 0.85rem;
  color: #777;
  background: #efefed;
  font-size: 0.65rem;
}

.browser-bar i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #c5c3be;
}

.browser-bar span {
  margin: 0 auto;
  padding-right: 2.8rem;
}

.browser-shell iframe {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
  background: white;
}

.decision {
  width: min(900px, calc(100% - 4rem));
  margin: 0 auto;
  padding: clamp(7rem, 13vw, 14rem) 0;
  text-align: center;
}

.decision > p:first-child {
  color: #caa777;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.decision h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.decision p:not(:first-child) {
  max-width: 670px;
  margin: 0 auto 2rem;
  color: var(--muted);
  line-height: 1.75;
}

.decision a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-footer {
  display: flex;
  width: min(1500px, calc(100% - 4rem));
  min-height: 6rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .lab-header,
  .intro,
  .jump-nav,
  .lab-footer {
    width: min(100% - 2rem, 650px);
  }

  .intro,
  .concept-copy {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro .kicker,
  .intro h1,
  .intro-copy {
    grid-column: 1;
  }

  .intro .kicker {
    margin-bottom: 0;
  }

  .intro h1 {
    font-size: clamp(4.2rem, 20vw, 7.5rem);
  }

  .jump-nav {
    grid-template-columns: 1fr;
  }

  .concept-panel {
    padding-inline: 1rem;
  }

  .concept-copy h2 {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .concept-copy > div:last-child {
    justify-self: start;
  }

  .browser-shell iframe {
    height: 650px;
  }
}

@media (max-width: 520px) {
  .original-link {
    max-width: 115px;
    text-align: right;
  }

  .browser-shell iframe {
    height: 560px;
  }

  .lab-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
