:root {
  --paper: #e8e4da;
  --ink: #302f28;
  --stone: #c5bdac;
  --mist: #d5d5cf;
  --olive: #b1b09e;
  --limestone: #dedbd2;
  --warm-grey: #bbb9b0;
  --section-space: clamp(24px, 3vw, 48px);
  --content-space: 24px;
  --gallery-space: 16px;
  --body-size: clamp(16px, 1.15vw, 18px);
  --heading-size: clamp(28px, 4vw, 56px);
  --concept-size: clamp(28px, 5vw, 80px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cinzel", Georgia, serif;
}

nav {
  display: flex;
  justify-content: space-between;
  gap: var(--content-space);
  padding: 24px 4vw 6px;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* One continuous document, with sections sized by their content. */
.process-scroll-hint {
  margin: 0 0 var(--section-space);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-align: center;
}
.process-scroll-hint span { display: block; margin-top: 6px; font-size: 18px; }

main {
  max-width: 1600px;
  margin-inline: auto;
  padding: 4px 4vw 0;
}

.chapter,
.connector {
  margin-bottom: var(--section-space);
}

.section-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(24px, 5vw, 80px);
  row-gap: var(--content-space);
  align-items: start;
}

.title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: var(--heading-size);
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.c1 .section-content {
  row-gap: var(--content-space);
}

.c1 .rail {
  grid-row: 2 / 4;
  margin-top: clamp(24px, 4vw, 64px);
}

.c1 .rail > .frame:first-child {
  margin-top: clamp(80px, 12vw, 180px);
}

.c1 .title {
  margin-top: clamp(80px, 10vw, 160px);
}

h1.title {
  font-size: var(--concept-size);
  letter-spacing: -0.04em;
  white-space: normal;
  overflow-wrap: normal;
}

@media (min-width: 761px) {
  .c1 .section-content {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.copy {
  grid-column: 1;
  grid-row: 3;
  max-width: 28ch;
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: var(--body-size);
  line-height: 1.5;
}

.kicker {
  grid-column: 1;
  grid-row: 1;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copy.concept-copy {
  margin-top: var(--section-space);
  width: 100%;
  max-width: none;
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: var(--body-size);
  line-height: 1.5;
}

.concept-copy p {
  margin: 0 0 1em;
}

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

.rail {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 64px);
  min-width: 0;
}

.frame,
.focus {
  position: relative;
  width: 88%;
  aspect-ratio: 4 / 3;
  align-self: flex-end;
  overflow: hidden;
  border: 1px solid currentColor;
  background: var(--frame-color, var(--stone));
}

.frame.small {
  width: 62%;
  aspect-ratio: 1;
}

.frame.portrait {
  width: 88%;
  aspect-ratio: 1 / 2;
}

.frame.portrait.tower-image {
  width: 66%;
  align-self: center;
}

.tower-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47.8% center;
}

.frame.tower-image::before,
.frame.tower-image::after {
  content: none;
}

.frame.hero {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  height: auto;
  min-height: calc(100svh - 48px);
  aspect-ratio: auto;
  border: 0;
  background: transparent;
}

.hero-visual {
  overflow: hidden;
}

.frame.hero img {
  display: block;
  width: 100%;
  height: calc(100svh - 90px);
  object-fit: cover;
  object-position: center;
  animation: hero-pulse 6s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.frame.hero::before,
.frame.hero::after {
  content: none;
}

.hero-credit {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: none;
}

.frame.wide {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.rail .frame:nth-child(even) {
  align-self: flex-start;
}

.frame::before,
.frame::after,
.focus::before,
.focus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145%;
  height: 1px;
  background: currentColor;
  opacity: 0.17;
}

.frame::before,
.focus::before {
  transform: translate(-50%, -50%) rotate(32deg);
}

.frame::after,
.focus::after {
  transform: translate(-50%, -50%) rotate(-32deg);
}

.frame span,
.focus span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.c1 { --frame-color: var(--stone); }
.c2 { --frame-color: var(--mist); }
.c3 { --frame-color: var(--olive); }
.c4 { --frame-color: var(--warm-grey); }
.c5 { --frame-color: var(--limestone); }

.focus {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 100%;
}

.chapter.c1 {
  margin-bottom: 0;
}

.chapter.c2 {
  margin-top: clamp(-96px, -6vw, -40px);
}

.horizontal-process .section-content {
  display: flex;
  flex-direction: column;
  gap: var(--content-space);
}

.horizontal-process.is-horizontal .section-content {
  position: sticky;
  top: 0;
  height: 100svh;
  justify-content: flex-start;
  padding-block: 16px;
}

.process-heading .title {
  margin-top: 16px;
  font-size: var(--heading-size);
  overflow-wrap: normal;
}

.process-window {
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.copy.process-copy {
  max-width: 110ch;
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: var(--body-size);
  line-height: 1.5;
  flex-shrink: 0;
}

.process-copy p {
  margin: 0 0 1em;
}

.process-subtitle {
  margin: 0 0 12px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.3;
}

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

.is-horizontal .process-window {
  overflow: hidden;
}

.process-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
}

.is-horizontal .process-gallery {
  flex-direction: row;
  gap: var(--gallery-space);
  will-change: transform;
}

.is-horizontal .process-image {
  flex-basis: 86%;
  width: 86%;
  transform-origin: left center;
}

.process-image {
  transform-origin: center center;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.process-image img {
  display: block;
  width: 100%;
  height: auto;
}

.is-horizontal .process-image img {
  height: var(--process-image-height, min(35svh, 400px));
  object-fit: contain;
  object-position: left center;
}

.process-image figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.process-panel .column-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gallery-space);
  align-items: start;
}

.column-image {
  min-width: 0;
  margin: 0;
}

.process-panel .column-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 2548 / 1498;
  max-height: var(--panel-image-height, 35svh);
  object-fit: cover;
  object-position: center top;
}

.is-horizontal .process-panel {
  flex-basis: 100%;
  width: 100%;
}

.process-panel .process-copy {
  margin-bottom: var(--content-space);
}

.is-horizontal .process-panel .process-copy {
  min-height: var(--panel-copy-height, 0px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Keep the Blender images on one evenly sized, three-column track. */
.blender-process .process-gallery {
  --image-gap: var(--gallery-space);
  --image-width: calc((100% - 2 * var(--image-gap)) / 3);
}

.blender-process.is-horizontal .process-gallery {
  gap: var(--image-gap);
  align-items: flex-end;
}

.blender-process.is-horizontal .process-image {
  flex-basis: var(--image-width);
  width: var(--image-width);
}

.blender-process.is-horizontal .process-panel {
  flex-basis: 100%;
  width: 100%;
}

.blender-process.is-horizontal .process-panel:has(.column-images-pair) {
  flex-basis: calc((200% - var(--image-gap)) / 3);
  width: calc((200% - var(--image-gap)) / 3);
}

.blender-process .process-panel .column-images {
  gap: var(--image-gap);
}

.blender-process .column-images-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blender-process .process-image > .process-copy {
  margin: 0 0 24px;
  padding: 0;
}

.blender-process.is-horizontal .process-image > .process-copy {
  min-height: var(--panel-copy-height, 0px);
}

.blender-process.is-horizontal .process-image img {
  height: var(--blender-image-height);
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

@media print {
  .horizontal-process.is-horizontal { height: auto !important; }
  .horizontal-process.is-horizontal .section-content { position: static; height: auto; }
  .is-horizontal .process-gallery { flex-direction: column; transform: none !important; }
}

.end {
  padding: clamp(32px, 6vw, 96px) 0 clamp(64px, 10vw, 160px);
}

.end h2 {
  margin: 0;
  font-size: clamp(48px, 10vw, 150px);
  line-height: 1;
  letter-spacing: -0.075em;
}

/* Scroll transforms preserve the natural document flow. */
.frame,
.focus {
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce), print {
  .frame.hero img {
    animation: none;
  }

  .rail,
  .title,
  .copy,
  .process-heading,
  .process-image,
  .frame,
  .focus {
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 760px) {
  .frame.hero {
    height: auto;
    aspect-ratio: auto;
  }

  .frame.hero img {
    object-fit: contain;
  }

  .c1 .rail {
    grid-row: 4;
    margin-top: 12px;
  }

  .section-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 20px;
  }

  .title {
    font-size: var(--heading-size);
  }

  h1.title {
    font-size: var(--concept-size);
  }

  .copy {
    max-width: 42ch;
  }

  .rail,
  .focus {
    grid-column: 1;
    grid-row: 4;
    margin-top: 12px;
  }
}

.blender-process {
  margin-bottom: var(--section-space);
}

.chapter.new-concept {
  margin-bottom: var(--section-space);
}

.image-overview .section-content {
  gap: var(--content-space);
}

.image-overview .process-heading .title {
  line-height: 1.15;
}

.image-overview .process-window {
  flex-shrink: 0;
}

.image-overview.is-horizontal .process-gallery {
  gap: var(--gallery-space);
}

.image-overview.is-horizontal .process-image {
  flex-basis: var(--background-image-width, 90%);
  width: var(--background-image-width, 90%);
}

.image-overview.is-horizontal .process-image img {
  height: var(--background-image-height);
  object-fit: contain;
  object-position: center;
}

.design-variants .process-image img {
  aspect-ratio: 1856 / 406;
  object-fit: cover;
}

.design-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gallery-space);
}

.design-stack-image {
  margin: 0;
  min-width: 0;
}

.design-variants.is-horizontal .process-image img {
  object-fit: cover;
}

.design-variants .design-image-full img {
  aspect-ratio: 1494 / 476;
  object-fit: contain;
}

.design-variants.is-horizontal .design-image-full img {
  height: auto;
  object-fit: contain;
}

.new-concept .section-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  grid-template-rows: auto auto;
  padding-top: 0;
}

.new-concept .title {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: var(--concept-size);
  letter-spacing: -0.04em;
  overflow-wrap: normal;
}

.new-concept .concept-copy {
  grid-row: 2;
  max-width: 72ch;
  margin-top: var(--section-space);
}

.new-concept .rail {
  grid-column: 2;
  grid-row: 2;
  margin-top: clamp(80px, 10vw, 160px);
}

.new-concept .concept-visual {
  margin: 0;
  width: 100%;
  aspect-ratio: 1306 / 792;
  border: 0;
  background: transparent;
}

.new-concept .concept-visual::before,
.new-concept .concept-visual::after {
  content: none;
}

.new-concept .concept-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.new-concept .concept-copy ul {
  margin: 0;
  padding-left: 1.2em;
}

@media (max-width: 760px) {
  .new-concept .section-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .new-concept .rail {
    grid-column: 1;
    grid-row: 3;
    margin-top: 32px;
  }

  .new-concept .title {
    font-size: var(--concept-size);
  }
}

.final-video .section-content {
  display: flex;
  flex-direction: column;
  gap: var(--content-space);
}

.final-video.video-with-scroll-hint {
  margin-bottom: 12px;
}

.final-video.tor-alva-video {
  margin-bottom: 4px;
}

.tor-alva-video .section-content {
  gap: 8px;
}

.tor-alva-video .copy {
  margin: 0;
}

.final-video video {
  display: block;
  width: 100%;
  max-height: 80svh;
  background: #000;
}

.ux-project {
  --paper: #f5fbfd;
  --ink: #10191d;
  --stone: #d5eef4;
  --mist: #e8f6fa;
  --olive: #b9e1eb;
  --limestone: #d5eef4;
  --warm-grey: #b9e1eb;
  --app-blue: #2e98bd;
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.ux-project .copy,
.ux-project .process-copy,
.ux-project .hero-credit {
  font-family: inherit;
}

.ux-project .title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ux-project nav {
  background: var(--olive);
  padding-bottom: 24px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.ux-project .hero-credit {
  color: #176582;
}

.ux-project a:focus-visible {
  outline: 3px solid var(--app-blue);
  outline-offset: 4px;
}

.ux-project .copy a {
  text-decoration-color: var(--app-blue);
}

.ux-project .frame.hero img {
  object-fit: contain;
}

.ux-project .chapter.c1 {
  margin-bottom: var(--section-space);
}

@media (min-width: 761px) {
  .ux-project .c1 .section-content {
    grid-template-rows: auto 1fr;
  }

  .ux-project .c1 .frame.hero {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 0;
  }

  .ux-project .c1 .title {
    grid-column: 1;
    grid-row: 1;
    margin-top: clamp(40px, 8vw, 120px);
  }

  .ux-project .c1 .concept-copy {
    grid-column: 1;
    grid-row: 2;
  }
}

.ux-project .process-image a {
  display: block;
  color: inherit;
}

.ux-project .chapter[aria-labelledby="ux-2-title"] .process-gallery {
  --gallery-space: 8px;
  gap: 8px;
}

.project-without-images .chapter.c1 {
  margin-bottom: var(--section-space);
}
.project-without-images .chapter.c2 {
  margin-top: var(--section-space);
}

.cybercity-project {
  color-scheme: dark;
  --paper: #202323;
  --ink: #ece5d8;
  --stone: #353936;
  --mist: #30373a;
  --olive: #49483e;
  --limestone: #3b3c36;
  --warm-grey: #45433c;
}

.cybercity-project { font-family: "Rajdhani", Arial, sans-serif; font-weight: 500; }
.cybercity-project .title, .cybercity-project .process-subtitle {
  font-family: "Orbitron", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: .02em;
}
.cybercity-project .copy, .cybercity-project .hero-credit { font-family: inherit; }

.cybercity-project .chapter.c1 {
  margin-bottom: var(--section-space);
}

.cybercity-project .process-image a {
  display: block;
  color: inherit;
}

.cybercity-project a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.data-project {
  --paper: #2d4f45;
  --ink: #ead384;
  font-family: "Favorit", Arial, sans-serif;
}
.data-project .copy, .data-project .process-copy { font-family: inherit; }
.data-project a { color: inherit; }
.data-project nav a { text-decoration: none; }
.data-project a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.data-project .title { font-weight: 500; letter-spacing: -0.03em; }
.data-final > .process-image { width: min(100%, 920px); margin-inline: auto; }
.data-final > .process-image img { width: 100%; height: auto; }
.data-final > .process-image figcaption { text-align: center; }
.data-intro { display: grid; grid-template-columns: 1fr 2fr; gap: var(--content-space); margin-block: clamp(32px, 5vw, 72px); }
.data-intro .copy { grid-column: auto; grid-row: auto; max-width: 65ch; margin: 0; }
.data-intro .copy p:first-child { margin-top: 0; }
.data-project .process-image a { display: block; }
@media (max-width: 760px) { .data-intro { grid-template-columns: 1fr; } }
