/* =========================================================
   IGNI/LINK product page
   XR glasses · open system · human intent interface
   ========================================================= */

.link-hero {
  position: relative;
  padding: clamp(136px, 15vh, 178px) 0 clamp(54px, 7vw, 92px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  isolation: isolate;
}

.link-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 54% at 67% 43%, rgba(255, 255, 255, 0.96), transparent 73%),
    linear-gradient(135deg, #f3f2ee 0%, #efeeea 52%, #f5f4f1 100%);
  pointer-events: none;
}

.link-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 17%;
  background: linear-gradient(to bottom, rgba(242, 241, 238, 0), var(--bg));
  content: "";
  pointer-events: none;
}

.link-hero-orbit {
  position: absolute;
  top: 0;
  right: -12%;
  width: min(1440px, 112vw);
  height: 100%;
  opacity: 0.95;
  pointer-events: none;
}

.link-hero-bg .hero-grid {
  opacity: 0.56;
}

.link-hero-inner {
  position: relative;
  z-index: 1;
}

.link-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.link-back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  transition:
    border-color 0.25s ease,
    transform 0.3s var(--ease);
}

.link-back:hover {
  color: var(--ink);
}

.link-back:hover .link-back-arrow {
  border-color: var(--line-strong);
  transform: translateX(-2px);
}

.link-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.link-state .status-dot {
  width: 4px;
  height: 4px;
  background: var(--muted-dark);
}

.link-hero-head {
  padding-top: clamp(26px, 3.6vw, 40px);
}

.link-title {
  max-width: 1240px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(58px, 8.15vw, 118px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.072em;
  text-wrap: balance;
}

.link-title > span {
  display: block;
}

.link-hero-lower {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 54px);
}

.link-hero-copy {
  max-width: 500px;
  padding-bottom: 6px;
}

.link-subtitle {
  color: var(--ink-soft);
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.link-subtitle > span {
  display: block;
}

.link-intro {
  max-width: 500px;
  margin-top: 17px;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.95;
}

.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.link-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 29px;
  border-top: 1px solid var(--line);
}

.link-specs li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted-dark);
  font-size: 10.5px;
  line-height: 1.5;
}

.link-specs li:nth-child(odd) {
  padding-right: 12px;
}

.link-specs li:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid var(--line-soft);
}

.link-spec-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

/* XR product stage */

.link-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.48 / 1;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 64% 58% at 56% 42%, rgba(255, 255, 255, 0.92), transparent 70%),
    linear-gradient(148deg, #f0efeb 0%, #e4e3de 100%);
  box-shadow:
    inset 0 0 0 1px rgba(23, 23, 21, 0.035),
    0 30px 80px rgba(23, 23, 21, 0.055);
  isolation: isolate;
}

.link-stage::before {
  position: absolute;
  top: 48%;
  left: 56%;
  width: 84%;
  aspect-ratio: 1.56;
  border: 1px solid rgba(23, 23, 21, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-17deg);
}

.link-stage::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: url("../img/grain.svg");
  background-size: 180px 180px;
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.17;
  pointer-events: none;
}

.link-stage-head,
.link-stage-foot {
  position: absolute;
  right: 23px;
  left: 23px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
  line-height: 1.5;
}

.link-stage-head {
  top: 20px;
}

.link-stage-foot {
  bottom: 18px;
  align-items: flex-end;
}

.link-stage-built {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}

.link-stage-built .status-dot {
  width: 4px;
  height: 4px;
  background: var(--muted-dark);
}

.link-stage-word {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 0;
  color: rgba(23, 23, 21, 0.038);
  font-family: var(--font-display);
  font-size: clamp(110px, 15vw, 200px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.08em;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
}

.link-stage-orbit {
  position: absolute;
  top: 51%;
  left: 54%;
  z-index: 0;
  width: 72%;
  aspect-ratio: 1.55;
  border: 1px solid rgba(23, 23, 21, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-17deg);
}

.link-stage-orbit::before {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(23, 23, 21, 0.09);
  border-radius: inherit;
  content: "";
}

.link-stage-orbit::after {
  position: absolute;
  top: 14%;
  right: 6%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
  opacity: 0.38;
}

.xr-device {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 1;
  width: 92%;
  height: auto;
  transform: translate(-50%, -50%);
}

.xr-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.xr-tag::before {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.xr-tag--human {
  top: 30%;
  left: 22px;
}

.xr-tag--machine {
  right: 22px;
  bottom: 26%;
  flex-direction: row-reverse;
}

/* Thesis */

.link-thesis {
  padding-top: clamp(80px, 10vw, 124px);
}

.link-thesis-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.8fr);
  gap: clamp(30px, 6vw, 86px);
  margin-top: 36px;
}

.link-thesis-notes .lead {
  max-width: 620px;
  font-size: clamp(16px, 1.45vw, 19px);
}

.link-thesis-notes .body-copy {
  max-width: 540px;
  margin-top: 14px;
}

.link-thesis-quote {
  align-self: start;
  padding: 17px 0 0 27px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.25vw, 31px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.035em;
}

.link-thesis-quote > span {
  display: block;
}

/* Intent flow */

.link-flow-section {
  overflow: hidden;
}

.link-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(46px, 6vw, 74px);
  border-top: 1px solid var(--line);
}

.flow-step {
  position: relative;
  min-height: 264px;
  padding: 24px 30px 0 0;
}

.flow-step + .flow-step {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.flow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flow-index {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.flow-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: right;
}

.flow-step h3 {
  margin-top: 62px;
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.flow-step p {
  max-width: 310px;
  margin-top: 12px;
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.9;
}

.flow-arrow {
  position: absolute;
  top: -7px;
  right: 22px;
  padding: 0 3px;
  background: var(--bg-deep);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.flow-step:last-child .flow-arrow {
  display: none;
}

.flow-note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.025em;
  line-height: 1.8;
}

/* System map */

.link-system-section {
  padding-top: clamp(90px, 11vw, 146px);
}

.link-system-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(42px, 8vw, 122px);
  align-items: start;
}

.link-system-copy {
  position: sticky;
  top: 118px;
}

.link-system-copy .section-label {
  margin-bottom: 27px;
}

.link-system-copy .lead {
  max-width: 430px;
  margin-top: 27px;
}

.link-system-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  padding: 8px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.045em;
  line-height: 1.5;
}

.link-system-note .status-dot {
  width: 4px;
  height: 4px;
  background: var(--muted-dark);
}

.system-map {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 78% 62% at 92% 0%, rgba(255, 255, 255, 0.82), transparent 66%),
    rgba(248, 247, 244, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 28px 70px rgba(23, 23, 21, 0.05);
}

.system-map::before {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(23, 23, 21, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.system-map-head,
.system-map-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.system-map-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.system-map-head span:last-child {
  color: var(--muted-dark);
}

.system-layer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line-soft);
}

.system-layer-code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.system-layer-copy h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.system-layer-copy p {
  max-width: 350px;
  margin-top: 5px;
  color: var(--muted-dark);
  font-size: 11.5px;
  line-height: 1.8;
}

.system-layer-state {
  padding: 4px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  white-space: nowrap;
}

.system-map-foot {
  padding-top: 17px;
}

/* Open source */

.link-open-head {
  max-width: 1080px;
}

.link-open-head .section-label {
  margin-bottom: 28px;
}

.link-open-quote {
  font-family: var(--font-serif);
  font-size: clamp(37px, 5.2vw, 78px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.link-open-quote > span {
  display: block;
}

.link-open-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  gap: clamp(36px, 7vw, 106px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 64px);
}

.link-open-copy .lead {
  max-width: 620px;
  font-size: clamp(16px, 1.4vw, 18px);
}

.link-open-copy .body-copy {
  max-width: 580px;
  margin-top: 19px;
}

.open-card {
  position: relative;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 90% at 90% 0%, rgba(255, 255, 255, 0.09), transparent 66%),
    #1a1a18;
  color: #f2f1ed;
  box-shadow: 0 30px 80px rgba(23, 23, 21, 0.13);
}

.open-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.open-card-head,
.open-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(242, 241, 237, 0.5);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.open-card-head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.open-card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f2f1ed;
  box-shadow: 0 0 0 4px rgba(242, 241, 237, 0.08);
}

.open-card-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.055em;
  line-height: 1.6;
}

.open-card-row span:first-child {
  color: rgba(242, 241, 237, 0.4);
}

.open-card-row span:last-child {
  color: rgba(242, 241, 237, 0.9);
  text-align: right;
}

.open-card-foot {
  padding-top: 18px;
}

.open-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 7vw, 82px);
  border-top: 1px solid var(--line);
}

.open-value {
  padding: 22px 30px 0 0;
}

.open-value + .open-value {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.open-value h3 {
  margin-top: 38px;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.open-value p {
  max-width: 320px;
  margin-top: 10px;
  color: var(--muted-dark);
  font-size: 12.5px;
  line-height: 1.9;
}

/* Closing */

.link-next-section {
  padding-top: clamp(80px, 10vw, 130px);
}

.link-closing-panel {
  min-height: 470px;
}

.link-next-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 21px;
}

.link-next-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.link-next-note {
  max-width: 360px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.015em;
  line-height: 1.7;
}

#interaction,
#system,
#open {
  scroll-margin-top: 112px;
}

/* Responsive */

@media (max-width: 1100px) {
  .link-hero-lower {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    margin-top: 34px;
  }

  .link-hero-copy {
    max-width: 660px;
  }

  .link-stage {
    max-width: 900px;
    min-height: 0;
    aspect-ratio: 1.5 / 1;
  }

  .link-intro {
    max-width: 600px;
  }

  .link-specs {
    max-width: 600px;
  }

  .link-system-grid {
    gap: 42px;
  }
}

@media (max-width: 980px) {
  .link-hero {
    padding-top: 146px;
  }

  .link-system-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .link-system-copy {
    position: static;
  }

  .link-system-copy .lead {
    max-width: 660px;
  }

  .open-values {
    margin-top: 46px;
  }

  .open-value {
    padding-right: 22px;
  }

  .open-value + .open-value {
    padding-left: 22px;
  }
}

@media (max-width: 900px) {
  .link-thesis-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .link-thesis-quote {
    max-width: 600px;
    padding: 20px 0 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    font-size: clamp(22px, 4vw, 30px);
  }

  .link-flow {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .flow-step {
    min-height: 0;
    padding: 22px 0 25px;
    border-top: 1px solid var(--line);
  }

  .flow-step + .flow-step {
    padding-left: 0;
    border-left: 0;
  }

  .flow-step h3 {
    margin-top: 24px;
  }

  .flow-step p {
    max-width: 580px;
  }

  .flow-arrow {
    display: none;
  }

  .link-open-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .open-card {
    max-width: 640px;
  }

  .open-values {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .open-value {
    padding: 19px 0;
    border-top: 1px solid var(--line);
  }

  .open-value + .open-value {
    padding-left: 0;
    border-left: 0;
  }

  .open-value h3 {
    margin-top: 15px;
  }
}

@media (max-width: 760px) {
  .link-hero {
    padding-top: 122px;
    padding-bottom: 54px;
  }

  .link-topline {
    align-items: flex-start;
    padding-bottom: 15px;
  }

  .link-state {
    max-width: 190px;
    white-space: normal;
  }

  .link-hero-head {
    padding-top: 28px;
  }

  .link-title {
    margin-top: 21px;
    font-size: clamp(45px, 11.6vw, 68px);
    line-height: 1.05;
  }

  .link-hero-lower {
    gap: 27px;
    margin-top: 28px;
  }

  .link-subtitle {
    font-size: 18px;
    line-height: 1.55;
  }

  .link-intro {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.9;
  }

  .link-actions {
    gap: 8px;
    margin-top: 21px;
  }

  .link-specs {
    margin-top: 24px;
  }

  .link-stage {
    aspect-ratio: 1.17 / 1;
    border-radius: 24px;
  }

  .link-stage-head,
  .link-stage-foot {
    right: 17px;
    left: 17px;
    font-size: 6.5px;
  }

  .link-stage-head {
    top: 15px;
  }

  .link-stage-foot {
    bottom: 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .link-stage-word {
    font-size: 34vw;
  }

  .xr-tag {
    display: none;
  }

  .link-thesis {
    padding-top: 65px;
  }

  .link-thesis-copy {
    margin-top: 27px;
  }

  .link-thesis-quote {
    font-size: clamp(22px, 5.9vw, 29px);
  }

  .link-flow {
    margin-top: 35px;
  }

  .flow-step {
    padding: 19px 0 22px;
  }

  .flow-step h3 {
    margin-top: 18px;
    font-size: 23px;
  }

  .flow-step p {
    margin-top: 8px;
    font-size: 12.5px;
  }

  .flow-note {
    margin-top: 25px;
  }

  .link-system-section {
    padding-top: 78px;
  }

  .link-system-grid {
    gap: 34px;
  }

  .system-map {
    padding: 20px 17px;
    border-radius: 22px;
  }

  .system-layer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 20px 0;
  }

  .system-layer-code {
    grid-column: 1 / -1;
  }

  .system-layer-copy h3 {
    font-size: 19px;
  }

  .system-layer-copy p {
    margin-top: 5px;
    font-size: 11.5px;
  }

  .system-layer-state {
    align-self: start;
  }

  .system-map-head,
  .system-map-foot {
    font-size: 7px;
  }

  .system-map-foot span:last-child {
    display: none;
  }

  .link-open-quote {
    font-size: clamp(25px, 7.2vw, 44px);
    line-height: 1.3;
  }

  .link-open-grid {
    margin-top: 32px;
  }

  .link-open-copy .lead {
    font-size: 15px;
  }

  .open-card {
    padding: 20px;
    border-radius: 20px;
  }

  .open-values {
    margin-top: 34px;
  }

  .open-value {
    padding: 17px 0;
  }

  .open-value p {
    font-size: 12px;
  }

  .link-next-section {
    padding-top: 64px;
  }

  .link-closing-panel {
    min-height: 0;
  }

  .link-next-note {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .link-title {
    font-size: clamp(37px, 10.9vw, 51px);
  }

  .link-topline {
    gap: 12px;
  }

  .link-back {
    font-size: 8px;
  }

  .link-back-arrow {
    width: 20px;
    height: 20px;
  }

  .link-state {
    max-width: 152px;
    padding: 6px 8px;
    font-size: 7.5px;
  }

  .link-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .link-actions .button {
    width: 100%;
  }

  .link-stage {
    aspect-ratio: 1.02 / 1;
  }

  .link-stage-word {
    font-size: 36vw;
  }

  .link-stage-head span:last-child {
    display: none;
  }

  .link-stage-foot {
    max-width: 220px;
    line-height: 1.6;
  }

  .system-layer-state {
    display: none;
  }

  .flow-meta {
    max-width: 140px;
  }

  .link-open-quote {
    font-size: clamp(22px, 6.7vw, 32px);
  }

  .open-card-head,
  .open-card-foot {
    font-size: 7px;
  }

  .open-card-row {
    font-size: 8.5px;
  }

  .link-next-tags span {
    font-size: 7.5px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .link-stage {
    animation: stageFloat 11s ease-in-out infinite alternate;
  }
}

@keyframes stageFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}


/* Real product render stage */

.link-stage.link-stage--render {
  min-height: 0;
  aspect-ratio: 1.3 / 1;
  background:
    radial-gradient(ellipse 58% 56% at 54% 45%, rgba(255, 255, 255, 0.96), transparent 72%),
    linear-gradient(148deg, #f2f1ed 0%, #e7e6e1 100%);
}

.link-stage--render::before {
  display: block;
}

.link-stage--render::after {
  opacity: 0.12;
}

.xr-render-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  margin: 0;
  pointer-events: none;
}

.xr-render {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 28px 26px rgba(23, 23, 21, 0.17));
  transform: translate(-50%, -50%);
}

@media (max-width: 1100px) {
  .link-stage.link-stage--render {
    max-width: 790px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .link-stage.link-stage--render {
    max-width: 100%;
    aspect-ratio: 1.17 / 1;
    border-radius: 24px;
  }

  .xr-render {
    max-width: 94%;
    max-height: 82%;
    filter: drop-shadow(0 20px 20px rgba(23, 23, 21, 0.16));
  }

  .link-stage--render::after {
    opacity: 0.09;
  }
}

@media (max-width: 480px) {
  .link-stage.link-stage--render {
    aspect-ratio: 1.02 / 1;
  }

  .xr-render {
    max-width: 94%;
    max-height: 78%;
  }
}
