/* ==========================================================================
   JELQO.SPACE — Chromatic Fold
   ========================================================================== */

:root {
  --plum: #24152e;
  --peach: #f6d8c9;
  --coral: #ff5d67;
  --cyan: #72d9d2;
  --cream: #fff7ec;

  --grad-primary: linear-gradient(125deg, #ff5d67 0%, #72d9d2 100%);
  --grad-secondary: linear-gradient(135deg, #f6d8c9 0%, #ff5d67 100%);

  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --nav-h: 4.5rem;
  --pad-x: clamp(1.25rem, 4vw, 4.5rem);
  --radius-nav: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--coral);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--plum);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  background: var(--plum);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  box-shadow: var(--focus);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--plum {
  background: var(--plum);
  color: var(--cream);
}

.btn--plum:hover {
  background: #1a0f22;
}

.btn--ghost {
  background: transparent;
  color: var(--plum);
  border-color: rgba(36, 21, 46, 0.22);
}

.btn--ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.btn--outline-cream {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 247, 236, 0.45);
}

.btn--outline-cream:hover {
  border-color: var(--cream);
  background: rgba(255, 247, 236, 0.08);
}

/* --------------------------------------------------------------------------
   Floating Navigation
   -------------------------------------------------------------------------- */

.nav-wrap {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 3.4rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 247, 236, 0.92);
  border: 1px solid rgba(36, 21, 46, 0.14);
  border-radius: var(--radius-nav);
  animation: navIn 0.9s var(--ease) both;
}

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav__brand-main {
  font-size: 0.95rem;
}

.nav__brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.55;
  letter-spacing: 0.04em;
}

.nav__field {
  justify-self: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.55;
}

.nav__enter {
  justify-self: end;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: color 0.3s var(--ease);
}

.nav__enter:hover {
  color: var(--coral);
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   1. Chromatic Fold Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 2.5rem) var(--pad-x) 5rem;
  background: var(--cream);
  overflow: hidden;
}

.hero__grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
}

.hero__copy {
  grid-column: 1 / span 6;
  max-width: 36rem;
  animation: revealUp 1s var(--ease) 0.1s both;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(36, 21, 46, 0.55);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  color: var(--coral);
}

.hero__lead {
  margin-top: 1.75rem;
  max-width: 28rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(36, 21, 46, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero__visual {
  grid-column: 7 / span 6;
  position: relative;
  min-height: clamp(320px, 48vw, 560px);
  display: grid;
  place-items: center;
  animation: revealUp 1.1s var(--ease) 0.25s both;
}

/* Jelqo Fold Sculpture */
.fold-sculpture {
  position: relative;
  width: min(420px, 82%);
  aspect-ratio: 1;
  animation: foldShift 10s ease-in-out infinite;
}

.fold-sculpture__plane {
  position: absolute;
  border: 1px solid rgba(36, 21, 46, 0.12);
  box-shadow: 0 18px 40px rgba(36, 21, 46, 0.08);
}

.fold-sculpture__plane--a {
  inset: 18% 8% 8% 22%;
  background: var(--peach);
  border-radius: 28px 18px 42px 16px;
  transform: rotate(-14deg);
  z-index: 1;
}

.fold-sculpture__plane--b {
  inset: 8% 18% 28% 8%;
  background: var(--plum);
  border-radius: 22px 40px 18px 32px;
  transform: rotate(18deg);
  z-index: 2;
}

.fold-sculpture__plane--c {
  width: 46%;
  height: 38%;
  top: 42%;
  left: 38%;
  background: var(--coral);
  border-radius: 14px 28px 12px 24px;
  transform: rotate(-28deg);
  z-index: 4;
  border-color: transparent;
}

.fold-sculpture__plane--d {
  width: 34%;
  height: 28%;
  top: 18%;
  right: 10%;
  background: var(--cyan);
  border-radius: 20px 10px 26px 12px;
  transform: rotate(32deg);
  z-index: 3;
  border-color: transparent;
  animation: layerDrift 12s ease-in-out infinite;
}

.fold-sculpture__tri {
  position: absolute;
  z-index: 5;
}

.fold-sculpture__tri--left {
  width: 120px;
  height: 120px;
  left: 8%;
  bottom: 16%;
  background: var(--peach);
  clip-path: polygon(0 0, 100% 18%, 62% 100%, 0 78%);
  border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: 0 12px 28px rgba(36, 21, 46, 0.1);
}

.fold-sculpture__tri--right {
  width: 90px;
  height: 100px;
  right: 14%;
  bottom: 10%;
  background: var(--plum);
  clip-path: polygon(18% 0, 100% 22%, 78% 100%, 0 68%);
  transform: rotate(12deg);
}

.fold-sculpture__gradient {
  position: absolute;
  width: 140px;
  height: 180px;
  top: 28%;
  left: 28%;
  background: var(--grad-primary);
  border-radius: 18px 32px 14px 28px;
  transform: rotate(-22deg);
  z-index: 6;
  box-shadow: 0 16px 32px rgba(255, 93, 103, 0.18);
  animation: gradShift 9s ease-in-out infinite;
}

.fold-sculpture__dot {
  position: absolute;
  width: 36px;
  height: 36px;
  top: 14%;
  left: 48%;
  background: var(--coral);
  border-radius: 50%;
  z-index: 7;
  animation: layerDrift 8s ease-in-out infinite reverse;
}

.fold-sculpture__edge {
  position: absolute;
  width: 2px;
  height: 110px;
  top: 36%;
  right: 22%;
  background: var(--cream);
  transform: rotate(28deg);
  z-index: 8;
  opacity: 0.85;
}

.tech-label {
  position: absolute;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(36, 21, 46, 0.45);
  white-space: nowrap;
}

.tech-label--1 {
  top: 6%;
  left: 4%;
}

.tech-label--2 {
  top: 18%;
  right: 2%;
}

.tech-label--3 {
  bottom: 22%;
  left: 0;
}

.tech-label--4 {
  bottom: 8%;
  right: 6%;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: var(--pad-x);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(36, 21, 46, 0.65);
  transition: color 0.3s var(--ease);
}

.hero__scroll:hover {
  color: var(--coral);
}

.hero__scroll-line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--coral);
  transform-origin: left center;
  animation: lineDraw 2.4s var(--ease) infinite;
}

/* --------------------------------------------------------------------------
   2. Brand Statement
   -------------------------------------------------------------------------- */

.statement {
  background: var(--plum);
  color: var(--cream);
  padding: clamp(5rem, 12vw, 9rem) var(--pad-x);
}

.statement__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-label--cream {
  grid-column: 1 / -1;
  color: rgba(255, 247, 236, 0.55);
  margin-bottom: 0.5rem;
}

.statement__title {
  grid-column: 1 / span 8;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.statement__title span {
  display: block;
}

.statement__bar {
  grid-column: 1 / span 8;
  width: 90px;
  height: 4px;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  border-radius: 999px;
}

.statement__text {
  grid-column: 1 / span 7;
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 247, 236, 0.78);
}

/* --------------------------------------------------------------------------
   3. Fold Principles
   -------------------------------------------------------------------------- */

.principles {
  background: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x);
  border-top: 1px solid rgba(36, 21, 46, 0.08);
}

.principles__list {
  max-width: 1440px;
  margin: 0 auto;
}

.principle {
  border-bottom: 1px solid rgba(36, 21, 46, 0.12);
}

.principle:first-child {
  border-top: 1px solid rgba(36, 21, 46, 0.12);
}

.principle__link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0.25rem;
  overflow: hidden;
}

.principle__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(36, 21, 46, 0.14);
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
}

.principle__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.principle__desc {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(36, 21, 46, 0.65);
}

.principle__arrow {
  font-size: 1.5rem;
  color: rgba(36, 21, 46, 0.35);
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
}

.principle__indicator {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 0;
  background: var(--coral);
  transform: translateY(-50%);
  transition: height 0.4s var(--ease);
}

.principle__grad {
  position: absolute;
  right: 3.5rem;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--grad-primary);
  opacity: 0;
  transform: translateY(-50%) scale(0.7) rotate(-8deg);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
}

.principle__link:hover .principle__num,
.principle__link:focus-visible .principle__num {
  color: rgba(36, 21, 46, 0.28);
  transform: translateX(8px);
}

.principle__link:hover .principle__arrow,
.principle__link:focus-visible .principle__arrow {
  color: var(--coral);
  transform: translateX(8px);
}

.principle__link:hover .principle__indicator,
.principle__link:focus-visible .principle__indicator {
  height: 48%;
}

.principle__link:hover .principle__grad,
.principle__link:focus-visible .principle__grad {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(-8deg);
}

/* --------------------------------------------------------------------------
   4. Jelqo Object
   -------------------------------------------------------------------------- */

.object {
  background: var(--peach);
  padding: clamp(5rem, 10vw, 8rem) var(--pad-x);
  overflow: hidden;
}

.object__grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 1.5rem;
  align-items: center;
}

.object__copy {
  grid-column: 1 / span 5;
}

.object__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.object__title span {
  display: block;
}

.object__text {
  margin-top: 1.5rem;
  max-width: 26rem;
  color: rgba(36, 21, 46, 0.72);
  font-size: 1.0625rem;
}

.object__stage {
  grid-column: 6 / span 7;
  position: relative;
  min-height: clamp(340px, 42vw, 520px);
  display: grid;
  place-items: center;
}

.jelqo-object {
  position: relative;
  width: min(460px, 90%);
  aspect-ratio: 1.05 / 1;
  animation: foldShift 11s ease-in-out infinite;
}

.jelqo-object__base {
  position: absolute;
  inset: 18% 10% 8% 18%;
  background: var(--plum);
  border-radius: 32px 20px 48px 18px;
  transform: rotate(-10deg);
  z-index: 1;
}

.jelqo-object__coral {
  position: absolute;
  width: 58%;
  height: 48%;
  top: 12%;
  left: 8%;
  background: var(--coral);
  border-radius: 18px 36px 14px 28px;
  transform: rotate(16deg);
  clip-path: polygon(0 8%, 100% 0, 92% 100%, 0 86%);
  z-index: 2;
}

.jelqo-object__cyan {
  position: absolute;
  width: 46%;
  height: 52%;
  right: 6%;
  bottom: 10%;
  background: var(--cyan);
  border-radius: 28px 12px 34px 16px;
  transform: rotate(-18deg);
  clip-path: polygon(12% 0, 100% 14%, 88% 100%, 0 78%);
  z-index: 3;
  animation: layerDrift 10s ease-in-out infinite;
}

.jelqo-object__intersection {
  position: absolute;
  width: 72px;
  height: 96px;
  top: 38%;
  left: 42%;
  background: var(--grad-primary);
  border-radius: 16px 22px 12px 20px;
  transform: rotate(-26deg);
  z-index: 4;
  box-shadow: 0 14px 28px rgba(36, 21, 46, 0.12);
}

.jelqo-object__line {
  position: absolute;
  width: 140px;
  height: 2px;
  top: 46%;
  left: 22%;
  background: var(--cream);
  transform: rotate(28deg);
  z-index: 5;
}

.jelqo-object__fold {
  position: absolute;
  width: 110px;
  height: 110px;
  top: 22%;
  right: 18%;
  background: var(--peach);
  clip-path: polygon(0 20%, 100% 0, 78% 100%, 8% 84%);
  transform: rotate(8deg);
  z-index: 4;
  border: 1px solid rgba(36, 21, 46, 0.08);
}

.object-label {
  position: absolute;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(36, 21, 46, 0.5);
}

.object-label--1 {
  top: 8%;
  left: 4%;
}

.object-label--2 {
  top: 18%;
  right: 2%;
}

.object-label--3 {
  bottom: 18%;
  left: 0;
}

.object-label--4 {
  bottom: 6%;
  right: 8%;
}

/* --------------------------------------------------------------------------
   5. Color Field
   -------------------------------------------------------------------------- */

.field {
  background: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) var(--pad-x);
  overflow: hidden;
}

.field__title {
  max-width: 1440px;
  margin: 0 auto 3.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.field__title span {
  display: block;
}

.field__canvas {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
  min-height: 420px;
}

.color-field {
  position: relative;
  min-height: 220px;
  overflow: visible;
}

.color-field__name {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(36, 21, 46, 0.5);
}

.color-field--coral {
  grid-column: 1 / span 4;
}

.color-field--cyan {
  grid-column: 5 / span 4;
  margin-top: 3rem;
}

.color-field--plum {
  grid-column: 9 / span 4;
  margin-top: 1rem;
}

.color-field--fold {
  grid-column: 3 / span 5;
  margin-top: -2rem;
}

.color-field__shape {
  position: relative;
}

.color-field__shape--coral {
  width: 110px;
  height: 140px;
  background: var(--coral);
  border-radius: 18px 28px 12px 24px;
  transform: rotate(-18deg) translate(20%, 10%);
  box-shadow: 0 16px 30px rgba(255, 93, 103, 0.18);
}

.color-field__shape--cyan {
  width: 180px;
  height: 28px;
  background: var(--cyan);
  border-radius: 999px;
  transform: rotate(-28deg) translateX(-10%);
}

.color-field__shape--cyan::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 160px;
  top: -40px;
  left: 70px;
  border: 1px solid rgba(36, 21, 46, 0.18);
  border-radius: 20px 12px 32px 14px;
  transform: rotate(38deg);
}

.color-field__shape--plum {
  width: min(100%, 260px);
  height: 280px;
  background: var(--plum);
  border-radius: 24px 40px 18px 36px;
  transform: rotate(8deg) translate(8%, -8%);
}

.color-field__shape--fold {
  width: 96px;
  height: 120px;
  background: var(--grad-primary);
  border-radius: 16px 24px 12px 20px;
  transform: rotate(22deg) translate(40%, 20%);
  animation: gradShift 8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   6. Perspective Section
   -------------------------------------------------------------------------- */

.perspective {
  position: relative;
  background: var(--plum);
  color: var(--cream);
  padding: clamp(6rem, 14vw, 11rem) var(--pad-x);
  overflow: hidden;
}

.perspective__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.perspective__line {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 1px;
  background: rgba(255, 247, 236, 0.16);
  transform-origin: left center;
}

.perspective__line--1 {
  top: 38%;
  transform: rotate(-18deg);
  animation: lineReveal 1.6s var(--ease) both;
}

.perspective__line--2 {
  top: 52%;
  transform: rotate(12deg);
  animation: lineReveal 1.8s var(--ease) 0.15s both;
}

.perspective__line--3 {
  top: 46%;
  transform: rotate(34deg);
  animation: lineReveal 2s var(--ease) 0.3s both;
}

.perspective__point {
  position: absolute;
  top: 48%;
  left: 52%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(114, 217, 210, 0.08);
}

.perspective__title {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.perspective__title span {
  display: block;
}

.perspective__accent {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   7. Dark Immersive Section
   -------------------------------------------------------------------------- */

.immersive {
  background: var(--plum);
  padding: clamp(3rem, 8vw, 5rem) var(--pad-x) clamp(6rem, 12vw, 9rem);
}

.immersive__frame {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  min-height: clamp(420px, 62vh, 680px);
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid rgba(255, 247, 236, 0.14);
  border-radius: 28px 48px 22px 56px;
  overflow: hidden;
}

.immersive__frame::before,
.immersive__frame::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 247, 236, 0.1);
  pointer-events: none;
}

.immersive__frame::before {
  inset: 12% 18% 28% 10%;
  border-radius: 40px 18px 48px 22px;
  transform: rotate(-6deg);
}

.immersive__frame::after {
  inset: 30% 8% 12% 22%;
  border-radius: 18px 42px 20px 36px;
  transform: rotate(9deg);
  border-color: rgba(255, 93, 103, 0.28);
}

.immersive__meta {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2rem);
  left: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 247, 236, 0.45);
}

.immersive__status {
  color: var(--cyan);
}

.immersive__accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.immersive__accent {
  position: absolute;
  border-radius: 50%;
}

.immersive__accent--coral {
  width: 14px;
  height: 14px;
  top: 22%;
  right: 18%;
  background: var(--coral);
}

.immersive__accent--cyan {
  width: 42px;
  height: 8px;
  bottom: 24%;
  left: 16%;
  border-radius: 999px;
  background: var(--cyan);
  transform: rotate(-24deg);
}

.immersive__title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.immersive__title span {
  display: block;
}

/* --------------------------------------------------------------------------
   8. Final CTA
   -------------------------------------------------------------------------- */

.cta {
  background: var(--coral);
  color: var(--cream);
  padding: clamp(5rem, 12vw, 9rem) var(--pad-x);
}

.cta__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 9vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  max-width: 14ch;
}

.cta__title span {
  display: block;
}

.cta__text {
  margin-top: 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 247, 236, 0.9);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.cta .btn--plum:focus-visible {
  box-shadow: 0 0 0 3px var(--coral), 0 0 0 5px var(--cream);
}

.cta .btn--outline-cream:focus-visible {
  box-shadow: 0 0 0 3px var(--coral), 0 0 0 5px var(--cream);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--plum);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x) 2rem;
}

.footer__top {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 247, 236, 0.12);
}

.footer__brand {
  grid-column: 1 / span 5;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.footer__logo-main {
  display: block;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
}

.footer__logo-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.footer__tagline {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: rgba(255, 247, 236, 0.7);
}

.footer__cols {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer__heading {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 247, 236, 0.45);
}

.footer__col a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: rgba(255, 247, 236, 0.82);
  transition: color 0.3s var(--ease);
}

.footer__col a:hover {
  color: var(--cyan);
}

.footer__bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 247, 236, 0.45);
}

.footer__swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--grad-primary);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes foldShift {
  0% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-10px);
  }
  100% {
    transform: rotate(-2deg) translateY(0);
  }
}

@keyframes layerDrift {
  0%,
  100% {
    transform: rotate(32deg) translateY(0);
  }
  50% {
    transform: rotate(28deg) translateY(-8px);
  }
}

@keyframes gradShift {
  0%,
  100% {
    filter: hue-rotate(0deg);
    transform: rotate(-22deg) translateY(0);
  }
  50% {
    filter: hue-rotate(12deg);
    transform: rotate(-18deg) translateY(-6px);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineDraw {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.35);
    opacity: 0.55;
  }
}

@keyframes lineReveal {
  from {
    transform: scaleX(0) rotate(var(--line-rot, -18deg));
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.perspective__line--1 {
  --line-rot: -18deg;
}

.perspective__line--2 {
  --line-rot: 12deg;
}

.perspective__line--3 {
  --line-rot: 34deg;
}

/* Object cyan uses different base rotation */
.jelqo-object__cyan {
  animation-name: cyanDrift;
}

@keyframes cyanDrift {
  0%,
  100% {
    transform: rotate(-18deg) translateY(0);
  }
  50% {
    transform: rotate(-14deg) translateY(-8px);
  }
}

.color-field__shape--fold {
  animation-name: foldGradDrift;
}

@keyframes foldGradDrift {
  0%,
  100% {
    transform: rotate(22deg) translate(40%, 20%);
  }
  50% {
    transform: rotate(26deg) translate(40%, calc(20% - 8px));
  }
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__copy {
    grid-column: 1 / -1;
    max-width: 40rem;
  }

  .hero__visual {
    grid-column: 1 / -1;
    min-height: 420px;
  }

  .fold-sculpture {
    width: min(360px, 78%);
  }

  .statement__title,
  .statement__bar,
  .statement__text {
    grid-column: 1 / -1;
  }

  .object__copy,
  .object__stage {
    grid-column: 1 / -1;
  }

  .object__stage {
    min-height: 400px;
  }

  .field__canvas {
    grid-template-columns: repeat(6, 1fr);
  }

  .color-field--coral {
    grid-column: 1 / span 3;
  }

  .color-field--cyan {
    grid-column: 4 / span 3;
    margin-top: 1rem;
  }

  .color-field--plum {
    grid-column: 1 / span 3;
  }

  .color-field--fold {
    grid-column: 4 / span 3;
    margin-top: 0;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__cols {
    grid-column: 1 / -1;
  }

  .principle__grad {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --pad-x: 1.35rem;
  }

  .nav {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
  }

  .nav__field {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 4.5rem;
  }

  .hero__title {
    font-size: clamp(3.25rem, 18vw, 4.75rem);
  }

  .hero__meta {
    gap: 0.5rem 0.85rem;
    font-size: 0.6rem;
  }

  .hero__visual {
    min-height: 300px;
    order: 2;
  }

  .hero__copy {
    order: 1;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
  }

  .fold-sculpture {
    width: min(280px, 86%);
  }

  .fold-sculpture__gradient {
    width: 100px;
    height: 130px;
  }

  .tech-label--2,
  .tech-label--3 {
    display: none;
  }

  .hero__scroll {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .principle__link {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .principle__arrow {
    display: none;
  }

  .principle__num {
    font-size: 2.5rem;
  }

  .object-label--2,
  .object-label--3 {
    display: none;
  }

  .field__canvas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 0;
  }

  .color-field {
    min-height: 160px;
    margin: 0 !important;
  }

  .color-field__shape--plum {
    height: 200px;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .immersive__frame {
    border-radius: 24px 36px 20px 40px;
    min-height: 380px;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
