/* The exploration rail bridges the warm Understand and About surfaces. */
.cinema-scroll#home .cinema-slider {
  --theme-focus: var(--studio-focus-light);
  padding-block-end: clamp(22px, 3.2vw, 46px);
  color: var(--studio-ink);
  background: var(--studio-bg);
}

#home .slider-heading { color: var(--studio-ink); text-shadow: none; }
#home .slider-heading .eyebrow { color: var(--studio-accent-ink); }
#home .cinema-viewport { scrollbar-color: var(--studio-line-control) var(--studio-recessed); }
#home .cinema-card { --theme-focus: var(--studio-focus-dark); }

/* Keep the text stable while the architectural study on its left is revealed. */
#about {
  padding-block-start: clamp(20px, 2.8vw, 44px);
  background: var(--studio-surface);
}

/* The stepped material bands mark the change from the project rail to the studio. */
#about::before {
  --partition-walnut: clamp(68px, 11vw, 164px);
  --partition-stone: clamp(44px, 7vw, 110px);
  --partition-depth: clamp(6px, .7vw, 10px);
  content: '';
  grid-column: 1 / -1;
  block-size: calc(2 * var(--partition-depth) + 6px);
  border-block-end: 1px solid var(--studio-line);
  background:
    linear-gradient(var(--studio-walnut), var(--studio-walnut))
      left top / var(--partition-walnut) var(--partition-depth) no-repeat,
    linear-gradient(var(--studio-stone), var(--studio-stone))
      left var(--partition-walnut) top var(--partition-depth) / var(--partition-stone) var(--partition-depth) no-repeat;
}

#about > .eyebrow {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0;
  color: var(--studio-accent-ink);
}

#about > .reveal {
  --about-image-column: 7;
  --about-copy-end: 6;
  grid-column: 1 / -1;
  grid-template-columns: var(--studio-grid);
  align-items: start;
  row-gap: clamp(15px, 2.2vw, 34px);
  min-width: 0;
}

#about :is(h2, p, .textlink) {
  grid-column: 1 / var(--about-copy-end);
}

#about-title {
  grid-row: 1;
  max-inline-size: 100%;
  margin: 0;
  font-size: clamp(2.25rem, 4.25vw, 4.9rem);
  text-wrap: balance;
}

/* Set the stair's curve within a measured field of rectangular material swatches. */
#about .studio-study {
  position: relative;
  isolation: isolate;
  grid-column: var(--about-image-column) / -1;
  grid-row: 1 / 5;
  align-self: stretch;
  display: block;
  min-width: 0;
  min-height: clamp(390px, 39vw, 620px);
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(var(--studio-walnut), var(--studio-walnut)) right bottom / 29% 67% no-repeat,
    linear-gradient(var(--studio-forest-deep), var(--studio-forest-deep)) left bottom / 21% 17% no-repeat,
    repeating-linear-gradient(90deg, var(--studio-line) 0 1px, transparent 1px 20%),
    repeating-linear-gradient(0deg, var(--studio-line) 0 1px, transparent 1px 20%),
    var(--studio-recessed);
}

#about .studio-study::before,
#about .studio-study::after {
  position: absolute;
  pointer-events: none;
  content: '';
}

#about .studio-study::before {
  inset: 6% 7% auto auto;
  width: 51%;
  aspect-ratio: 1;
  border: 1px solid var(--studio-line-control);
  border-radius: 50%;
}

#about .studio-study::after {
  inset: auto 3.5% 3.5% auto;
  width: 21%;
  height: 24%;
  border-inline-end: 1px solid var(--studio-line-dark);
  border-block-end: 1px solid var(--studio-line-dark);
}

.studio-study-image {
  position: absolute;
  z-index: 1;
  inset: 8% auto auto 11%;
  display: block;
  width: 74%;
  height: 83%;
  border-radius: 50% 50% 0 0 / 45% 45% 0 0;
  object-fit: cover;
  object-position: 53% 55%;
}

#about p {
  max-inline-size: 42ch;
  margin: 0;
  color: var(--studio-muted);
  line-height: 1.65;
}

#about p:first-of-type {
  grid-row: 2;
  padding-block-start: clamp(13px, 1.6vw, 22px);
  border-block-start: 1px solid var(--studio-line);
  color: var(--studio-ink);
}

#about p + p { grid-row: 3; }

#about .textlink {
  grid-row: 4;
  justify-self: start;
  align-self: start;
  padding-bottom: 7px;
}

/* The existing photos keep their different original proportions. */
#media {
  border-block-start: 1px solid var(--studio-line);
  background: var(--studio-surface);
}

#media > .eyebrow { color: var(--studio-accent-ink); }

#media .explore-grid {
  row-gap: clamp(30px, 5vw, 74px);
  align-items: start;
}

#media .concept {
  overflow: visible;
  background: none;
}

#media .concept:nth-child(2) { margin-block-start: clamp(40px, 7vw, 106px); }

.moodboard-frame {
  overflow: hidden;
  background: var(--studio-recessed);
}

#media .moodboard-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1300 / 867;
  object-fit: contain;
  object-position: center;
  transition: transform var(--duration-slow) var(--ease-standard);
}

#media .concept:nth-child(2) img { aspect-ratio: 2 / 3; }

#media .concept:hover img { transform: none; }

#media .concept-info {
  gap: 8px 20px;
  padding-block: 18px 0;
  background: transparent;
}

#media .concept-info h3 {
  font-size: var(--type-subheading);
  line-height: 1.1;
}

#media .concept-info span { margin-block-start: .28em; }

#media .note {
  max-inline-size: 64ch;
  border-block-start: 1px solid var(--studio-line);
  margin-block-start: clamp(34px, 5vw, 66px);
  padding-block-start: 15px;
  line-height: 1.65;
}

/* Pair the surveyed envelope, partition study and circulation trace with the disclosures. */
#approach {
  align-items: start;
  row-gap: clamp(30px, 5.4vw, 76px);
}

#approach .approach-visual {
  grid-column: 1 / span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: clamp(10px, 1.6vw, 22px);
  min-width: 0;
}

.approach-diagram {
  display: block;
  width: 100%;
  max-width: 510px;
  height: auto;
  overflow: hidden;
  background: var(--theme-surface);
  border: 1px solid var(--studio-line-dark);
}

.approach-diagram pattern path {
  stroke: var(--studio-on-dark);
  stroke-opacity: .1;
  stroke-width: .75;
}

.diagram-guides {
  stroke: var(--studio-on-dark);
  stroke-opacity: .24;
  stroke-width: .7;
}

.diagram-stage {
  color: var(--studio-on-dark-muted);
  opacity: .65;
  stroke: currentColor;
  stroke-width: 1.35;
  transition: color var(--duration-medium) var(--ease-standard),
    opacity var(--duration-medium) var(--ease-standard);
}

#approach:has(details[open]) .diagram-stage { opacity: .29; }

#approach:has(details:nth-of-type(1)[open]) [data-stage='brief'],
#approach:has(details:nth-of-type(2)[open]) [data-stage='language'],
#approach:has(details:nth-of-type(3)[open]) [data-stage='experience'] {
  color: var(--studio-accent);
  opacity: 1;
}

#approach .approach-photo {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 12 / 5;
  overflow: hidden;
}

#approach .approach-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 58%;
}

#approach .photo-label { bottom: 12px; left: 12px; }

#approach > div:last-child {
  align-self: start;
  padding: 0;
}

#approach summary {
  min-height: 44px;
  gap: 14px;
  line-height: 1.35;
}

#approach summary:hover, #approach details[open] summary { color: var(--studio-accent); }

#approach details p {
  max-inline-size: 50ch;
  line-height: 1.65;
}

#about > .reveal, #media :is(.heading, .concept), #approach :is(.approach-photo, .reveal) {
  transform: none;
  opacity: 1;
  transition: none;
}

@media (max-width: 1150px) {
  #about > .reveal {
    --about-image-column: 5;
    --about-copy-end: 5;
  }
  #approach .approach-visual { grid-column: 1 / span 4; }
}

@media (max-width: 920px) {
  #about :is(h2, .studio-study, p, .textlink) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  #about-title {
    max-inline-size: 17ch;
    font-size: clamp(2.3rem, 6.8vw, 4rem);
  }

  #about .studio-study {
    min-height: 0;
    height: clamp(240px, 76vw, 520px);
  }

  #about p:first-of-type { grid-row: auto; border: 0; padding-block-start: 0; }
}

@media (max-width: 760px) {
  #media .concept:nth-child(2) { margin-block-start: 0; }
  #approach .approach-visual { grid-column: 1 / -1; }
  #approach > div:last-child { grid-row: 1; }
  #approach .approach-photo { aspect-ratio: 5 / 2; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #media .moodboard-frame:hover img { transform: scale(1.025); }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.studio-study, .moodboard-frame)[data-story-ready] {
    clip-path: inset(0 0 15% 0);
    transition: clip-path var(--duration-slow) var(--ease-expressive);
  }

  :is(.studio-study, .moodboard-frame)[data-story-visible] { clip-path: inset(0); }


  #media .concept:has(.moodboard-frame[data-story-ready]) .concept-info {
    transform: translateY(6px);
    transition: transform var(--duration-medium) var(--ease-standard);
  }

  #media .concept:has(.moodboard-frame[data-story-visible]) .concept-info { transform: none; }

  .approach-diagram[data-story-ready] .diagram-trace {
    stroke-dasharray: 1;
    stroke-dashoffset: calc((1 - var(--story-entrance, 1)) * .78);
  }
}
