/* Post-model surface chapter. This file is isolated to shore-type-lab.html. */

.surface-collection--editorial {
  --surface-paper: #eeece6;
  --surface-ink: #131411;
  position: relative;
  width: 100%;
  padding: clamp(7rem, 12svh, 14rem) clamp(2.5rem, 5vw, 10rem) clamp(11rem, 19svh, 22rem);
  overflow: clip;
  background:
    radial-gradient(circle at 18% 22%, rgb(255 255 255 / 58%), transparent 30%),
    var(--surface-paper);
  color: var(--surface-ink);
}

.surface-collection--editorial::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(19 20 17 / 2.5%) 1px, transparent 1px);
  background-size: 100% clamp(5rem, 8svh, 9rem);
  content: "";
  opacity: 0.32;
  pointer-events: none;
}

.surface-editorial-grid,
.surface-feature {
  position: relative;
  z-index: 1;
  width: min(210rem, 100%);
  margin-inline: auto;
}

.surface-editorial-grid {
  display: grid;
  height: min(74svh, 96rem);
  min-height: 54rem;
  grid-template-columns: minmax(0, 2.08fr) minmax(24rem, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 1.55vw, 3.3rem);
}

.surface-editorial-frame,
.surface-feature__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(19 20 17 / 11%);
  background: #e4e1da;
}

.surface-editorial-frame::after,
.surface-feature__media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 30%);
  content: "";
  pointer-events: none;
}

.surface-editorial-frame img,
.surface-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.surface-editorial-frame--lead {
  grid-row: 1 / 3;
}

.surface-editorial-frame--lead img {
  object-position: 50% 50%;
  transform: scale(1.015);
}

.surface-editorial-frame--detail-dark img {
  object-position: 50% 53%;
  transform: scale(1.045);
}

.surface-editorial-frame--detail-warm img {
  object-position: 50% 48%;
  transform: scale(1.08);
}

.surface-feature {
  display: grid;
  margin-top: clamp(10rem, 18svh, 22rem);
  grid-template-columns: minmax(0, 1.62fr) minmax(34rem, 0.72fr);
  align-items: center;
  gap: clamp(5rem, 7.5vw, 15rem);
}

.surface-feature__media {
  height: min(72svh, 94rem);
  min-height: 52rem;
}

.surface-feature__media img {
  object-position: 50% 49%;
  transform: scale(1.025);
}

.surface-feature__copy {
  max-width: 55rem;
  padding-left: clamp(3rem, 3.8vw, 7rem);
  border-left: 1px solid rgb(19 20 17 / 22%);
}

.surface-feature__eyebrow,
.surface-feature h2,
.surface-feature__lead,
.surface-feature__note {
  margin: 0;
}

.surface-feature__eyebrow {
  margin-bottom: clamp(1.5rem, 2.6svh, 2.5rem);
  color: rgb(19 20 17 / 52%);
  font-family: "Space Grotesk Lab", Arial, sans-serif;
  font-size: clamp(0.62rem, 0.58vw, 0.82rem);
  font-weight: 680;
  letter-spacing: 0.18em;
}

.surface-feature h2 {
  font-family: "Space Grotesk Lab", Arial, sans-serif;
  font-size: clamp(5.2rem, 5.7vw, 11rem);
  font-weight: 510;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.surface-feature h2 sup {
  position: relative;
  top: -0.42em;
  margin-left: 0.13em;
  font-size: 0.17em;
  font-weight: 620;
  letter-spacing: 0;
}

.surface-feature__lead {
  max-width: 42rem;
  margin-top: clamp(2.5rem, 4.8svh, 4.5rem);
  font-size: clamp(1.05rem, 1.12vw, 1.55rem);
  font-weight: 470;
  letter-spacing: -0.03em;
  line-height: 1.75;
  word-break: keep-all;
}

.surface-feature__process {
  display: grid;
  max-width: 44rem;
  margin: clamp(2.5rem, 4.8svh, 4.5rem) 0;
  padding: 0;
  border-top: 1px solid rgb(19 20 17 / 24%);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.surface-feature__process li {
  display: grid;
  min-height: clamp(4.3rem, 6.5svh, 6rem);
  padding: 1rem 0;
  border-bottom: 1px solid rgb(19 20 17 / 15%);
  font-size: clamp(0.78rem, 0.78vw, 1rem);
  font-weight: 570;
  letter-spacing: -0.02em;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
}

.surface-feature__process li:nth-child(2n) {
  padding-left: 1.3rem;
  border-left: 1px solid rgb(19 20 17 / 15%);
}

.surface-feature__process span {
  color: rgb(19 20 17 / 38%);
  font-family: "Space Grotesk Lab", Arial, sans-serif;
  font-size: 0.55rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.surface-feature__note {
  max-width: 39rem;
  color: rgb(19 20 17 / 59%);
  font-size: clamp(0.84rem, 0.86vw, 1.08rem);
  font-weight: 450;
  letter-spacing: -0.022em;
  line-height: 1.72;
  word-break: keep-all;
}

/* The model-to-surface bridge remains quiet and centered above the editorial frames. */
.type-lab__intro-morph[data-post05-bridge="true"] .surface-focus {
  display: block;
  background: transparent;
  color: #111316;
  opacity: 0;
  visibility: hidden;
}

.type-lab__intro-morph[data-post05-bridge="true"][data-surface-state="ready"] .surface-focus {
  opacity: 1;
  visibility: visible;
  transition: opacity 720ms ease 180ms;
}

.type-lab__intro-morph[data-post05-bridge="true"] .surface-focus__bridge {
  position: absolute;
  top: 69svh;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(760px, calc(100vw - 48px));
  color: #111316;
  opacity: 0;
  text-align: center;
  transform: translate3d(-50%, 16px, 0);
}

.type-lab__intro-morph[data-post05-bridge="true"] .surface-focus__bridge h2 {
  margin: 0;
  color: #111316;
  font-size: clamp(30px, 1.35vw, 48px);
  font-weight: 430;
  letter-spacing: -0.055em;
  line-height: 1.16;
  word-break: keep-all;
}

.type-lab__intro-morph[data-post05-bridge="true"] .surface-focus__bridge strong {
  color: #111316;
  font-weight: 680;
}

.type-lab__intro-morph[data-post05-bridge="true"][data-surface-state="ready"] .surface-focus__bridge {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  transition:
    opacity 720ms ease 180ms,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

@media (max-width: 64rem) {
  .surface-collection--editorial {
    padding: 7rem 1.2rem 10rem;
  }

  .surface-editorial-grid {
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 0.8rem;
  }

  .surface-editorial-frame {
    min-height: 19rem;
    aspect-ratio: 1 / 1;
  }

  .surface-editorial-frame--lead {
    min-height: 34rem;
    aspect-ratio: auto;
    grid-row: 1 / 3;
  }

  .surface-feature {
    display: block;
    margin-top: 8rem;
  }

  .surface-feature__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .surface-feature__copy {
    max-width: 50rem;
    margin-top: 4rem;
    padding: 3.5rem 0 0;
    border-top: 1px solid rgb(19 20 17 / 22%);
    border-left: 0;
  }

  .surface-feature h2 {
    font-size: clamp(4.5rem, 14vw, 8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .type-lab__intro-morph[data-post05-bridge="true"] .surface-focus,
  .type-lab__intro-morph[data-post05-bridge="true"] .surface-focus__bridge {
    transition: none !important;
  }
}
