.experience {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.scene-layer {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 38%, rgba(95, 111, 120, 0.12), transparent 27rem),
    linear-gradient(135deg, #030405 0%, #07090a 46%, #020304 100%);
  pointer-events: none;
}

#webgl-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-premium);
}

.webgl-ready #webgl-canvas {
  opacity: 1;
}

.no-webgl #webgl-canvas {
  opacity: 0;
}

.webgl-ready .fallback-scene {
  opacity: 0;
}

.chapter {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: calc(var(--header-h) + 4rem) 0 7.5rem;
  scroll-margin-top: 0;
}

.chapter::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.95) 0%, rgba(4, 5, 6, 0.78) 34%, rgba(4, 5, 6, 0.05) 67%, rgba(4, 5, 6, 0.28) 100%);
  content: "";
  opacity: 0.78;
  transition: opacity 900ms var(--ease-premium);
}

.chapter.is-active::before {
  opacity: 0.56;
}

.chapter--hero {
  min-height: 100svh;
  padding-bottom: 3.5rem;
}

.chapter--hero::before {
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.93) 0%, rgba(4, 5, 6, 0.68) 37%, rgba(4, 5, 6, 0.02) 68%, rgba(4, 5, 6, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 5, 6, 0.64), transparent 42%);
}

.chapter--architecture,
.chapter--process {
  min-height: 118svh;
}

.chapter--contact {
  min-height: 170svh;
  padding-bottom: 10rem;
}

.chapter-frame {
  width: var(--shell);
  min-height: calc(100svh - var(--header-h) - 11.5rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chapter-frame--split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(25rem, 0.58fr);
  align-items: center;
  gap: clamp(4rem, 9vw, 10rem);
}

.chapter-heading {
  max-width: 53rem;
}

.chapter-heading--wide {
  max-width: 69rem;
}

.chapter-index {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.chapter-index::after {
  width: clamp(4rem, 9vw, 9rem);
  height: 1px;
  background: linear-gradient(90deg, var(--faint), transparent);
  content: "";
}

.chapter-index span {
  color: var(--bone);
}

.chapter-title {
  margin-top: 2rem;
  font-size: clamp(2.65rem, 5.4vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.chapter-title__muted,
.contact-title__muted {
  color: rgba(244, 245, 246, 0.36);
}

.chapter-summary {
  max-width: 39rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.75;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(15rem, 1.05fr)
    minmax(15rem, 0.85fr)
    minmax(10rem, auto)
    minmax(13.5rem, auto);
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: start;
  border-top: 1px solid var(--hairline);
  background: #030405;
  padding: 5rem max(1.5rem, calc((100vw - 94rem) / 2)) 2rem;
}

.site-footer > p {
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.site-footer__channels,
.site-footer__legal {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  justify-items: start;
  font-family: var(--font-tech);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.site-footer__channels a,
.site-footer__legal a {
  color: var(--muted);
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.site-footer__channels a:hover,
.site-footer__legal a:hover {
  color: var(--bone);
}

.site-footer__channels a:active,
.site-footer__legal a:active {
  color: #ffffff;
  transform: translateY(1px);
}

.site-footer__legal {
  min-width: 13.5rem;
  gap: 0.85rem;
}

.site-footer__legal h2 {
  margin: 0 0 0.3rem;
  color: var(--faint);
  font-family: var(--font-tech);
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
}

.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.5;
}

.site-footer__legal svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  color: var(--faint);
  transition: color 220ms ease;
}

.site-footer__legal a:hover svg,
.site-footer__legal a:focus-visible svg {
  color: var(--bone);
}

.site-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--hairline-soft);
  margin-top: 2rem;
  padding-top: 1.5rem;
  color: var(--faint);
  font-family: var(--font-tech);
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer__bottom a {
  color: var(--muted);
}
