/* =========================================================
   radical_prototypes — design system
   ========================================================= */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #111111;
  --ink-soft: rgba(10, 10, 10, 0.62);
  --ink-faint: rgba(10, 10, 10, 0.32);
  --ink-line: rgba(10, 10, 10, 0.12);
  --ink-hair: rgba(10, 10, 10, 0.06);

  --hl: #fff36d;
  --hl-soft: rgba(255, 243, 109, 0.55);
  --hl-glow: rgba(255, 243, 109, 0.85);

  --green: #6ddf8a;
  --green-soft: rgba(109, 223, 138, 0.4);

  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Inter",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 900px) {
  html {
    scroll-snap-type: y proximity;
  }
  .section,
  .hero {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

body {
  cursor: none;
}

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

::selection {
  background: var(--hl);
  color: var(--ink);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  animation: drift 60s linear infinite;
}

.ambient__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.ambient__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 80% -10%,
      rgba(255, 243, 109, 0.08),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 0% 110%,
      rgba(10, 10, 10, 0.04),
      transparent 60%
    );
}

@keyframes drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 80px 80px, 80px 80px;
  }
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__dot {
  width: 4px;
  height: 4px;
  background: var(--ink);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    background 0.25s var(--ease);
}

.cursor__ring {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(10, 10, 10, 0.45);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

body.is-hover .cursor__ring {
  width: 46px;
  height: 46px;
  background: var(--hl-soft);
  border-color: transparent;
  box-shadow: 0 0 30px var(--hl-glow);
}

body.is-hover .cursor__dot {
  width: 0;
  height: 0;
}

@media (max-width: 900px), (hover: none) {
  body {
    cursor: auto;
  }
  .cursor {
    display: none;
  }
}

/* =========================================================
   META BAR
   ========================================================= */
.meta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.meta__left,
.meta__right,
.meta__center {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta__right {
  justify-content: flex-end;
}

.meta__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--ink);
}

.meta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}

.meta__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  animation: ping 2.8s var(--ease-out) infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* =========================================================
   SIDE NAV
   ========================================================= */
.sidenav {
  position: fixed;
  right: clamp(18px, 2.5vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}

.sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidenav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--ink-faint);
  transition: color 0.4s var(--ease);
}

.sidenav__label {
  position: absolute;
  right: 36px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}

.sidenav__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink-faint);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.sidenav__link:hover .sidenav__label {
  opacity: 1;
  transform: translateX(0);
}

.sidenav__link:hover .sidenav__dot {
  transform: scale(1.12);
  border-color: var(--ink);
}

.sidenav__link.is-active .sidenav__dot {
  background: var(--hl);
  border-color: var(--hl);
  transform: scale(1.35);
  box-shadow: 0 0 0 8px rgba(255, 243, 109, 0.18),
    0 0 28px rgba(255, 243, 109, 0.55);
}

@media (max-width: 720px) {
  .sidenav {
    right: 14px;
  }
  .sidenav__label {
    display: none;
  }
}

/* =========================================================
   STAGE / GENERIC LAYOUT
   ========================================================= */
.stage {
  position: relative;
  z-index: 1;
}

.hero,
.section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(80px, 12vh, 140px);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(32px, 6vh, 56px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-line);
}

.hero__title {
  font-size: clamp(54px, 12vw, 184px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  font-weight: 400;
  margin: 0;
  color: rgba(10, 10, 10, 0.88);
  text-transform: lowercase;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-feature-settings: "ss01" on, "ss02" on;
}

.hero__title > span {
  display: inline-block;
}

.hero__underscore {
  color: var(--ink);
  opacity: 0.4;
  letter-spacing: -0.1em;
  padding: 0 0.04em;
}

.hero__subtitle {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: clamp(32px, 5vh, 56px);
  letter-spacing: -0.01em;
}

.hero__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 8vh, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}

.hero__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__k {
  color: var(--ink-faint);
}

.hero__v {
  color: var(--ink);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .hero__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero__scroll {
  margin-top: 64px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 6px;
  align-self: flex-start;
  width: fit-content;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

.hero__scroll svg {
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* corner brackets */
.bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink-line);
  pointer-events: none;
}
.bracket--tl {
  top: 80px;
  left: var(--gutter);
  border-right: 0;
  border-bottom: 0;
}
.bracket--tr {
  top: 80px;
  right: var(--gutter);
  border-left: 0;
  border-bottom: 0;
}
.bracket--bl {
  bottom: 40px;
  left: var(--gutter);
  border-right: 0;
  border-top: 0;
}
.bracket--br {
  bottom: 40px;
  right: var(--gutter);
  border-left: 0;
  border-top: 0;
}

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section__head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(48px, 8vh, 96px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink-line);
}

.section__index {
  padding-top: 12px;
  color: var(--ink);
}

.section__title {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  grid-column: 2;
}

.section__lede {
  grid-column: 2;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 720px;
  margin: 24px 0 0;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .section__head {
    grid-template-columns: 1fr;
  }
  .section__title,
  .section__lede {
    grid-column: 1;
  }
}

/* =========================================================
   SECTION 01 — BUILT ENVIRONMENT
   ========================================================= */
.section__body--split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--ink-line);
  padding: 28px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 0.4s var(--ease),
    transform 0.6s var(--ease-out);
}

.card:hover {
  border-color: var(--ink);
}

.card--lined:nth-child(1) {
  grid-column: span 7;
}
.card--lined:nth-child(2) {
  grid-column: span 5;
}
.card--photo {
  grid-column: span 5;
  padding: 0;
  overflow: hidden;
}
.card--lined:nth-child(4) {
  grid-column: span 7;
}

@media (max-width: 900px) {
  .card,
  .card--lined:nth-child(1),
  .card--lined:nth-child(2),
  .card--lined:nth-child(4),
  .card--photo {
    grid-column: span 12;
  }
}

.card__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--ink-line);
}

.card__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.card__body {
  margin: 0;
  color: var(--ink-soft);
  max-width: 56ch;
}

.card__diagram {
  width: 100%;
  height: auto;
  margin-top: auto;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink-soft);
}
.ticks li span {
  color: var(--ink);
  margin-right: 8px;
}

/* facade tile grid */
.facade {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  padding: 16px;
  border: 1px solid var(--ink-line);
  background: rgba(0, 0, 0, 0.02);
}

.facade span {
  aspect-ratio: 1 / 1;
  background: rgba(10, 10, 10, 0.06);
  position: relative;
  transition: background 0.6s var(--ease);
}

.facade span:nth-child(3n)::before,
.facade span:nth-child(5n)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hl);
  opacity: 0;
  animation: tile 6s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * 200ms);
}

.facade span:nth-child(odd)::before {
  animation-delay: 1.4s;
}
.facade span:nth-child(7n)::before {
  animation-delay: 2.6s;
}

@keyframes tile {
  0%,
  100% {
    opacity: 0;
  }
  40%,
  60% {
    opacity: 0.85;
  }
}

/* flow lines */
.airflow .flow {
  stroke-dashoffset: 0;
  animation: flow 8s linear infinite;
}
.airflow .flow--2 {
  animation-duration: 10s;
}
.airflow .flow--3 {
  animation-duration: 12s;
}

@keyframes flow {
  to {
    stroke-dashoffset: -280;
  }
}

/* photo card */
.card__photo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.8s var(--ease);
}

.card--photo:hover .card__photo {
  filter: grayscale(0.6) contrast(1.05);
}

.card__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.6) 100%
  );
  mix-blend-mode: lighten;
}

.card__photo-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border: 1px solid var(--ink-line);
}

/* =========================================================
   SECTION 02 — MATERIALS
   ========================================================= */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.mat {
  grid-column: span 4;
  border: 1px solid var(--ink-line);
  padding: 28px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.mat--wide {
  grid-column: span 12;
}

.mat:hover {
  border-color: var(--ink);
}

@media (max-width: 900px) {
  .mat,
  .mat--wide {
    grid-column: span 12;
  }
}

.mat__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--ink-line);
}

.mat__title {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.mat__body {
  margin: 0;
  color: var(--ink-soft);
}

.lattice {
  margin-top: auto;
}
.lattice svg {
  width: 100%;
  height: auto;
  display: block;
}
.lattice__g {
  transform-origin: 100px 60px;
  transition: transform 0.8s var(--ease);
}
.mat:hover .lattice__g {
  transform: scale(1.04) rotate(-1deg);
}

.bars {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  align-items: end;
  height: 100px;
  margin-top: auto;
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 2px;
}
.bars span {
  display: block;
  background: var(--ink);
  height: var(--h);
  transition: height 0.8s var(--ease), background 0.4s var(--ease);
}
.mat:hover .bars span:nth-child(odd) {
  background: var(--hl);
}

.auxetic {
  margin-top: 12px;
  width: 100%;
  overflow: hidden;
}
.auxetic svg {
  width: 100%;
  height: 80px;
  display: block;
}
.auxetic__row {
  transform-origin: center;
  transform: scaleX(1);
  transition: transform 1.2s var(--ease);
}
.mat--wide:hover .auxetic__row {
  transform: scaleX(0.9) scaleY(1.05);
}

/* =========================================================
   SECTION 03 — MEDIA + MEMORY
   ========================================================= */
.section--03 {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(245, 245, 245, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.media-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.media-card--lg {
  grid-column: span 6;
}

@media (max-width: 900px) {
  .media-card,
  .media-card--lg {
    grid-column: span 12;
  }
}

.media-card__inner {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ink-line);
  overflow: hidden;
  background: #fafafa;
}

.media-card__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) blur(1px) contrast(1.05);
  transform: scale(1.04);
  transition: filter 1s var(--ease), transform 1s var(--ease);
}

.media-card:hover .media-card__photo {
  filter: grayscale(0.4) blur(0) contrast(1.05);
  transform: scale(1);
}

.media-card__photo--soft {
  filter: grayscale(1) blur(8px) brightness(1.1);
}

.media-card:hover .media-card__photo--soft {
  filter: grayscale(0.6) blur(2px) brightness(1.05);
}

.media-card__meta {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border: 1px solid var(--ink-line);
  z-index: 2;
}

.media-card__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.media-card__body {
  margin: 0;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* scan overlay */
.scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.scan__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ink),
    transparent
  );
  opacity: 0.55;
  animation: scan 4.2s var(--ease) infinite;
}

@keyframes scan {
  0% {
    top: -2%;
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 102%;
    opacity: 0;
  }
}

.scan__bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
}
.scan__bracket--tl {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}
.scan__bracket--tr {
  top: 12px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
}
.scan__bracket--bl {
  bottom: 12px;
  left: 12px;
  border-right: 0;
  border-top: 0;
}
.scan__bracket--br {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rec__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d04545;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* ghost stack */
.media-card__inner--ghost,
.media-card__inner--depth {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.ghost-stack {
  position: relative;
  width: 60%;
  aspect-ratio: 4 / 3;
}
.ghost-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  opacity: 0.18;
}
.ghost-stack span:nth-child(1) {
  transform: translate(0, 0);
  opacity: 0.9;
}
.ghost-stack span:nth-child(2) {
  transform: translate(8px, 6px);
}
.ghost-stack span:nth-child(3) {
  transform: translate(16px, 12px);
}
.ghost-stack span:nth-child(4) {
  transform: translate(24px, 18px);
}
.ghost-stack span:nth-child(5) {
  transform: translate(32px, 24px);
}

.media-card:hover .ghost-stack span {
  transition: transform 0.8s var(--ease);
}
.media-card:hover .ghost-stack span:nth-child(2) {
  transform: translate(-8px, -6px);
}
.media-card:hover .ghost-stack span:nth-child(3) {
  transform: translate(-16px, -12px);
}
.media-card:hover .ghost-stack span:nth-child(4) {
  transform: translate(-24px, -18px);
}
.media-card:hover .ghost-stack span:nth-child(5) {
  transform: translate(-32px, -24px);
}

/* depth */
.depth {
  position: relative;
  width: 70%;
  aspect-ratio: 5 / 3;
}
.depth span {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--ink);
  opacity: 0.18;
  transform-origin: center;
}
.depth span:nth-child(1) {
  transform: translateY(-40px) scaleX(0.3);
  opacity: 0.1;
}
.depth span:nth-child(2) {
  transform: translateY(-22px) scaleX(0.55);
  opacity: 0.2;
}
.depth span:nth-child(3) {
  transform: translateY(-8px) scaleX(0.78);
  opacity: 0.35;
}
.depth span:nth-child(4) {
  transform: translateY(8px) scaleX(0.78);
  opacity: 0.35;
}
.depth span:nth-child(5) {
  transform: translateY(22px) scaleX(0.55);
  opacity: 0.2;
}
.depth span:nth-child(6) {
  transform: translateY(40px) scaleX(0.3);
  opacity: 0.1;
}

/* exp soft */
.media-card__inner--exp {
  position: relative;
}

/* =========================================================
   SECTION 04 — STATUS
   ========================================================= */
.status-panel {
  border: 1px solid var(--ink);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.status-panel__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}
.status-panel__bar span {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-panel__bar-c {
  justify-self: center;
}
.status-panel__bar-r {
  justify-self: end;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.status-cell {
  padding: 28px;
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  position: relative;
  background: #fff;
  transition: background 0.5s var(--ease);
}

.status-cell:hover {
  background: rgba(255, 243, 109, 0.05);
}

.status-cell:nth-child(3n) {
  border-right: none;
}

.status-cell--wide {
  grid-column: span 3;
  border-right: none;
  border-bottom: none;
  min-height: auto;
}

@media (max-width: 900px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
  .status-cell,
  .status-cell--wide {
    grid-column: span 1;
    border-right: none;
  }
}

.status-cell__k {
  color: var(--ink-faint);
}

.status-cell__v {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 36ch;
}

.status-cell__bar {
  height: 4px;
  background: var(--ink-hair);
  position: relative;
  overflow: hidden;
}
.status-cell__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  animation: barfill 1.6s var(--ease-out) forwards;
  animation-delay: 0.4s;
}
@keyframes barfill {
  to {
    width: var(--w);
  }
}

.status-cell__foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
}

/* pulse dot */
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  display: inline-block;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.3;
  animation: pulse 2s var(--ease-out) infinite;
}

.pulse--green {
  background: var(--green);
}
.pulse--green::after {
  background: var(--green);
}

.pulse--yellow {
  background: var(--hl);
}
.pulse--yellow::after {
  background: var(--hl);
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  color: var(--ink-soft);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer__live {
  display: inline-flex;
  align-items: center;
}

.footer span.pulse {
  margin-right: 6px;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-links__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink-line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.contact-links__btn:hover {
  border-color: var(--ink);
  background: var(--hl);
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(255, 243, 109, 0.45);
}

.contact-links__btn svg {
  display: block;
}

/* =========================================================
   YELLOW HIGHLIGHT
   ========================================================= */
.hl {
  position: relative;
  display: inline;
  color: var(--ink);
  padding: 0 0.08em;
  white-space: normal;
  transition: color 0.4s var(--ease);
}

@media (hover: hover) {
  .hl {
    cursor: none;
  }
}

.hl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.05em;
  top: 0.2em;
  background: var(--hl);
  z-index: -1;
  transition: right 0.6s var(--ease-out);
}

.hl.is-lit::before,
.hl:hover::before {
  right: 0;
}

.hl:hover {
  color: var(--ink);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .ambient__grid,
  .scan__line,
  .pulse::after,
  .meta__dot::after,
  .rec__dot,
  .airflow .flow,
  .facade span::before,
  .hero__scroll svg {
    animation: none !important;
  }
}
