:root {
  --brand: #2F7280;
  --brand-dark: #26313a;
  --secondary: #D1C6B8;
  --paper: #fbfaf7;
  --paper-warm: #f4f0e8;
  --line: rgba(38, 49, 58, 0.13);
  --progress: 0;
  --dock: 0;
  --extend-px: 0px;
  --frame-lift-px: 0px;
  --mark-stroke: clamp(22px, calc(22px + (var(--progress) * 8px)), 30px);
  --square-inset: calc(var(--progress) * (var(--mark-stroke) + clamp(12px, 1.4vmin, 26px)));
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--brand-dark);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.36) 34%, transparent 58%),
    linear-gradient(135deg, rgba(47, 114, 128, 0.07), transparent 32%),
    linear-gradient(180deg, var(--paper), var(--paper-warm));
  overflow: hidden;
}

.landing {
  min-height: 100vh;
}

.intro {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  place-items: center;
  isolation: isolate;
}

.intro::before,
.intro::after {
  content: none;
}

.brand-scene {
  position: fixed;
  top: calc((50vh - 84px) * (1 - var(--progress)) + (24px * var(--progress)));
  right: calc((50vw - 84px) * (1 - var(--progress)) + (24px * var(--progress)));
  bottom: calc((50vh - 84px) * (1 - var(--progress)) + (24px * var(--progress)) - var(--extend-px));
  left: calc((50vw - 84px) * (1 - var(--progress)) + (24px * var(--progress)));
  z-index: 2;
  pointer-events: none;
}

.brand-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translateY(calc(-1 * var(--frame-lift-px)));
  filter: drop-shadow(0 16px 34px rgba(38, 49, 58, calc(0.18 - (var(--progress) * 0.08))));
}

.frame-line {
  position: absolute;
  display: block;
  background: var(--brand);
}

.frame-top {
  top: 0;
  left: 0;
  width: 100%;
  height: var(--mark-stroke);
  border-radius: calc(24px - (var(--progress) * 16px)) calc(24px - (var(--progress) * 16px)) 0 0;
}

.frame-left {
  top: 0;
  left: 0;
  width: var(--mark-stroke);
  height: 100%;
  border-radius: calc(24px - (var(--progress) * 16px)) 0 0 calc(24px - (var(--progress) * 16px));
}

.frame-right {
  top: 0;
  right: 0;
  width: var(--mark-stroke);
  height: calc(56% - (var(--progress) * 16%));
  border-radius: 0 calc(24px - (var(--progress) * 16px)) 0 0;
}

.frame-bottom {
  left: 0;
  bottom: 0;
  width: calc(52% - (var(--progress) * 13%));
  height: var(--mark-stroke);
  border-radius: 0 0 0 calc(24px - (var(--progress) * 16px));
}

.brand-square {
  position: absolute;
  z-index: 1;
  right: calc(var(--progress) * -24px);
  bottom: calc((var(--progress) * -24px) + var(--extend-px));
  width: calc(31% + (var(--progress) * 15%));
  height: calc(31% + (var(--progress) * 56%));
  background: var(--secondary);
  box-shadow: 0 14px 32px rgba(38, 49, 58, calc(0.1 + (var(--progress) * 0.04)));
}

.brand-copy {
  position: fixed;
  left: calc(50vw + ((clamp(220px, 27vw, 430px) - 50vw) * var(--dock)));
  top: calc(50vh + ((clamp(118px, 18vh, 180px) - 50vh) * var(--dock)));
  z-index: 5;
  display: grid;
  gap: 18px;
  place-items: center;
  text-align: center;
  opacity: clamp(0, calc((var(--progress) - 0.48) * 2.9), 1);
  transform: translate(-50%, -50%) translateY(calc((1 - var(--progress)) * 24px)) scale(calc(1 - (var(--dock) * 0.54)));
  transform-origin: center;
  pointer-events: none;
}

.brand-copy h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(4.6rem, 13vw, 11rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.9;
}

.brand-copy p {
  margin: 0;
  color: rgba(38, 49, 58, 0.62);
  font-size: clamp(0.72rem, 1.25vw, 1.08rem);
  font-weight: 760;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.hub-context {
  display: block;
  max-width: min(34rem, 80vw);
  color: rgba(38, 49, 58, 0.58);
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  font-weight: 680;
  line-height: 1.4;
  opacity: clamp(0, calc((var(--dock) - 0.22) * 2.4), 1);
}

.studio-list {
  position: fixed;
  left: calc(50vw + ((clamp(220px, 27vw, 430px) - 50vw) * var(--dock)));
  top: calc(66vh + ((clamp(292px, 46vh, 430px) - 66vh) * var(--dock)));
  z-index: 5;
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 0;
  opacity: clamp(0, calc((var(--dock) - 0.34) * 2.2), 1);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.studio-list span {
  color: rgba(38, 49, 58, 0.62);
  font-size: clamp(1.05rem, 1.55vw, 1.46rem);
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-list a {
  color: var(--brand-dark);
  font-size: clamp(1.22rem, 1.8vw, 1.72rem);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 114, 128, 0.34);
  pointer-events: auto;
}

.studio-list a:hover {
  color: var(--brand);
}

.brand-message {
  position: fixed;
  left: calc(56vw + clamp(34px, 4vw, 78px));
  top: auto;
  right: clamp(42px, 5vw, 96px);
  bottom: clamp(142px, 24vh, 245px);
  z-index: 5;
  width: auto;
  max-width: 31rem;
  max-height: 34vh;
  color: rgba(38, 49, 58, 0.82);
  opacity: clamp(0, calc((var(--dock) - 0.42) * 2.8), 1);
  transform: translateY(calc((1 - var(--dock)) * 24px));
  overflow: visible;
  pointer-events: none;
}

.brand-message p {
  margin: 0;
  font-size: clamp(0.92rem, 1.1vw, 1.18rem);
  font-weight: 520;
  line-height: 1.48;
}

.brand-message .studio-note {
  margin-top: clamp(18px, 2.4vh, 30px);
  color: rgba(38, 49, 58, 0.72);
  font-size: clamp(0.82rem, 0.96vw, 1.02rem);
}

.studio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(20px, 2.8vh, 34px);
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
  background: var(--brand);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(38, 49, 58, 0.16);
  pointer-events: auto;
}

.studio-link:hover {
  background: #245a66;
}

.studio-link-context {
  display: block;
  margin-top: 10px;
  color: rgba(38, 49, 58, 0.6);
  font-size: clamp(0.72rem, 0.82vw, 0.86rem);
  font-weight: 680;
  line-height: 1.4;
}

.landing-disclaimer {
  display: block;
  margin-top: 14px;
  max-width: 30rem;
  color: rgba(38, 49, 58, 0.58);
  font-size: clamp(0.66rem, 0.76vw, 0.78rem);
  font-weight: 620;
  line-height: 1.42;
}

.plan-score {
  position: fixed;
  right: clamp(22px, 3.4vw, 58px);
  top: clamp(22px, 4vh, 42px);
  z-index: 6;
  display: grid;
  gap: 4px;
  min-width: 112px;
  padding: 0;
  color: rgba(38, 49, 58, 0.72);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.plan-score span {
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-score strong {
  color: var(--brand-dark);
  font-size: 1.38rem;
  line-height: 1;
}

@media (max-width: 720px) {
  body,
  .landing {
    min-height: 100vh;
  }

  .brand-scene {
    top: calc((50vh - 58px) * (1 - var(--progress)) + (14px * var(--progress)));
    right: calc((50vw - 58px) * (1 - var(--progress)) + (14px * var(--progress)));
    bottom: calc((50vh - 58px) * (1 - var(--progress)) + (14px * var(--progress)) - var(--extend-px));
    left: calc((50vw - 58px) * (1 - var(--progress)) + (14px * var(--progress)));
  }

  .brand-copy {
    gap: 13px;
    padding: 0 22px;
    left: calc(50vw + ((clamp(145px, 34vw, 260px) - 50vw) * var(--dock)));
    top: calc(50vh + ((clamp(92px, 16vh, 132px) - 50vh) * var(--dock)));
  }

  .brand-copy p {
    max-width: 22rem;
    line-height: 1.7;
  }

  .hub-context {
    max-width: 18rem;
  }

  .studio-list {
    left: calc(50vw + ((clamp(145px, 34vw, 260px) - 50vw) * var(--dock)));
    top: calc(70vh + ((clamp(252px, 48vh, 360px) - 70vh) * var(--dock)));
  }

  .brand-message {
    left: 42vw;
    top: auto;
    right: 22px;
    bottom: 96px;
    width: auto;
    max-height: 38vh;
  }

  .brand-message p {
    font-size: 1.04rem;
  }

  .plan-score {
    right: 14px;
    top: 14px;
    min-width: 96px;
    padding: 0;
  }

  .plan-score strong {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --progress: 1;
    --dock: 1;
  }

  body,
  .landing {
    min-height: 100vh;
  }

  .intro {
    position: relative;
  }
}
