/* ========================================================================
   Neo Lavender Techwear — theme tokens (from DESIGN.md)
   ======================================================================== */
:root {
  /* colors */
  --page: #806a95;
  --page-deep: #6e5983;
  --canvas: #a18bb5;
  --section: #a58db8;
  --panel: #c9b1d9;
  --panel-soft: #d1bce0;
  --panel-light: #d9c8e5;
  --surface-dark: #3f2d57;
  --text-primary: #17131d;
  --text-secondary: #33283d;
  --text-muted: #675a70;
  --text-inverse: #f9f5fc;
  --border-strong: #221a29;
  --magenta: #ff087c;
  --hot-pink: #cd88f4;
  --electric-purple: #b312ff;
  --violet: #8b28ff;
  --gradient-start: #ff137e;
  --gradient-end: #a600ff;

  /* extensions: card-interior carbon (darkest step of the lavender ramp, pushed further for image scrims) */
  --carbon: #140f1f;
  --carbon-deep: #0b0714;
  /* extension: outer page well the hero card sits inset within */
  --well: #372a49;

  /* typography */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-technical: "Space Mono", "IBM Plex Mono", monospace;

  /* radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* motion */
  --duration-fast: 160ms;
  --duration-normal: 280ms;
  --duration-slow: 600ms;
  --duration-hero: 1000ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);

  /* shadows */
  --shadow-subtle: 0 12px 30px rgba(37, 23, 47, 0.1);
  --shadow-panel: 0 24px 60px rgba(48, 29, 58, 0.14);
  --shadow-floating: 0 30px 80px rgba(40, 24, 54, 0.18);
  --shadow-neon: 0 0 28px rgba(255, 19, 126, 0.45);
}

/* ========================================================================
   Reset
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--page-deep);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
body.hijack-scroll {
  height: 100vh;
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ========================================================================
   Page shell — the hero sits as a large rounded card inset from the
   viewport, revealing the darker "well" background around its edges.
   ======================================================================== */
.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(
    160deg,
    #4c3c62 0%,
    var(--well) 55%,
    #2c2138 100%
  );
  padding: clamp(14px, 2.2vw, 34px);
  display: flex;
}

/* ========================================================================
   View stage — hero and about live as stacked, full-bleed panels inside
   the same inset "card" footprint. JS drives which one is active; the
   inactive panel rests just off-frame (above or below) until summoned.
   With JS disabled, .view falls back to static stacking (see fallback
   rules at the bottom of this file) so the page still reads top-to-bottom.
   ======================================================================== */
.view-stage {
  position: relative;
  flex: 1;
  min-height: calc(100vh - clamp(28px, 4.4vw, 68px));
}

.view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: clamp(20px, 2.6vw, 40px);
  box-shadow: 0 40px 100px rgba(20, 10, 30, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6%);
  transition:
    opacity var(--duration-hero) var(--ease-enter),
    transform var(--duration-hero) var(--ease-enter),
    visibility 0s linear var(--duration-hero);
}
.view.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity var(--duration-hero) var(--ease-enter),
    transform var(--duration-hero) var(--ease-enter);
}
.view.is-before {
  transform: translateY(-6%);
  transition:
    opacity var(--duration-slow) var(--ease-exit),
    transform var(--duration-slow) var(--ease-exit),
    visibility 0s linear var(--duration-slow);
}

/* ========================================================================
   Content reveal — staggered fade/rise for each view's top-level blocks,
   so a section's content arrives as a beat rather than popping in flat
   the instant .is-active is toggled. Order in the DOM = stagger order.
   ======================================================================== */
.flow-item {
  --d: 0;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--duration-slow) var(--ease-enter),
    transform var(--duration-slow) var(--ease-enter);
  transition-delay: 0ms;
}
.view.is-active .flow-item {
  opacity: 1;
  transition-delay: calc(var(--d) * 80ms + 60ms);
}
@media (prefers-reduced-motion: reduce) {
  .flow-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (max-width: 1024px) {
  /* static stacked flow on mobile/tablet — reveal on scroll instead of
     view-activation, since .is-active never toggles off in that layout */
  .flow-item {
    opacity: 1;
    transform: none;
  }
}

.hero-card {
  background:
    radial-gradient(
      120% 90% at 78% 6%,
      rgba(217, 200, 229, 0.55) 0%,
      rgba(217, 200, 229, 0) 46%
    ),
    linear-gradient(152deg, #9686b7 0%, #806a95 34%, #6e5983 68%, #59496f 100%);
}

.hero-card::before {
  /* faint magenta atmosphere, kept to the upper-right focal zone only */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    38% 32% at 84% 6%,
    rgba(255, 19, 126, 0.16),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* soft purple atmosphere behind/around the portrait, giving it depth against the wall */
.portrait-glow {
  position: absolute;
  left: 18%;
  top: 3%;
  width: 62%;
  height: 96%;
  background:
    radial-gradient(
      46% 40% at 58% 96%,
      rgba(179, 18, 255, 0.4) 0%,
      rgba(179, 18, 255, 0) 70%
    ),
    radial-gradient(
      58% 64% at 62% 44%,
      rgba(30, 12, 50, 0.42) 0%,
      rgba(30, 12, 50, 0) 70%
    );
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
  transform-origin: 58% 70%;
  animation: glow-breathe 6.5s var(--ease-standard) infinite alternate;
}
@keyframes glow-breathe {
  from {
    opacity: 0.82;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* ========================================================================
   Header
   ======================================================================== */
.site-header {
  position: absolute;
  z-index: 6;
  top: 3.2%;
  left: 3.45%;
  right: 3.45%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  letter-spacing: 0.06em;
  color: var(--text-inverse);
  text-transform: uppercase;
}
.logo .logo-mark {
  color: var(--hot-pink);
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: opacity var(--duration-normal) var(--ease-standard);
}
.menu-btn:hover {
  opacity: 0.75;
}
.menu-btn svg {
  width: 20px;
  height: 14px;
}

/* ========================================================================
   Mega menu — full-screen navigation overlay
   ======================================================================== */
.mega-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: stretch;
  visibility: hidden;
  pointer-events: none;
}
.mega-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mega-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 7, 20, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}
.mega-menu.is-open .mega-menu-backdrop {
  opacity: 1;
}
.mega-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: linear-gradient(
    165deg,
    var(--carbon) 0%,
    var(--carbon-deep) 100%
  );
  border-left: 1px solid rgba(249, 245, 252, 0.14);
  padding: 28px 6% 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-enter);
  box-shadow: -30px 0 80px rgba(11, 7, 20, 0.45);
}
.mega-menu.is-open .mega-menu-panel {
  transform: translateX(0);
}
.mega-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-inverse);
  background: rgba(249, 245, 252, 0.1);
  border: 1px solid rgba(249, 245, 252, 0.2);
  transition:
    transform var(--duration-normal) var(--ease-standard),
    background var(--duration-normal) var(--ease-standard);
}
.menu-close:hover {
  transform: rotate(90deg);
  background: rgba(249, 245, 252, 0.18);
}
.menu-close svg {
  width: 14px;
  height: 14px;
}

.mega-menu-list {
  list-style: none;
  margin: auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-menu-list button {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(249, 245, 252, 0.12);
  color: var(--text-inverse);
  font-family: var(--font-display);
  transition:
    gap var(--duration-normal) var(--ease-standard),
    color var(--duration-normal) var(--ease-standard);
}
.mega-menu-list button:hover,
.mega-menu-list button:focus-visible {
  gap: 24px;
  color: var(--hot-pink);
}
.mega-menu-index {
  font-family: var(--font-technical);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.mega-menu-label {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mega-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.mega-menu-foot a {
  color: var(--text-inverse);
  font-weight: 600;
}
.mega-menu-foot a:hover {
  color: var(--hot-pink);
}
.menu-btn:focus-visible,
.btn-pill:focus-visible,
.btn-circle:focus-visible,
.expand-btn:focus-visible {
  outline: 2px solid var(--gradient-start);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ========================================================================
   Hero layout — positioned to match the reference composition precisely:
   the portrait's head sits above the outline type, the type and portrait
   barely touch, and the info panel is flush to the card's own top-right
   and bottom-right corners (clipped by .hero-card's own radius/overflow).
   ======================================================================== */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* -- Left: oversized outline type + tag -- */
.hero-copy {
  position: absolute;
  left: 3.45%;
  top: 15%;
  width: 34%;
  z-index: 2;
}

.hero-type {
  font-family: "Poppins", var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 11.4vw, 11.8rem);
  line-height: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(249, 245, 252, 0.75);
  margin: 0;
}
.hero-type span {
  display: block;
  clip-path: inset(0 100% 0 -2%);
}
.view.is-active .hero-type span {
  animation: type-wipe 900ms var(--ease-enter) forwards;
}
.view.is-active .hero-type span:nth-child(1) {
  animation-delay: 160ms;
}
.view.is-active .hero-type span:nth-child(2) {
  animation-delay: 300ms;
}
@keyframes type-wipe {
  to {
    clip-path: inset(0 0% 0 -2%);
  }
}

.hero-tag {
  margin: clamp(14px, 2.6vw, 26px) 0 0;
  font-family: var(--font-technical);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: rgba(249, 245, 252, 0.85);
}
.hero-tag .accent {
  color: var(--hot-pink);
}

/* -- Bottom-left: new-project panel -- */
.panel-project {
  position: absolute;
  left: 2.35%;
  bottom: 4.6%;
  z-index: 3;
  width: 18.5%;
  min-width: 210px;
  padding: 20px 22px 22px;
  border-radius: 24px 24px 24px 4px;
  background: rgba(217, 200, 229, 0.16);
  border: 1px solid rgba(249, 245, 252, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-panel);
}
.panel-project .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 245, 252, 0.7);
}
.panel-project p.copy {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-inverse);
}

/* -- Center: portrait — starts above the outline type, runs flush to the card floor -- */
.portrait {
  position: absolute;
  left: 31%;
  bottom: 0;
  width: 38%;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  margin: 0 !important;
}
.portrait-rise {
  transform: translateY(72px);
}
.view.is-active .portrait-rise {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .portrait-rise {
    transform: none;
  }
}

.panel-info-slide {
  transform: translateX(90px);
}
.view.is-active .panel-info-slide {
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .panel-info-slide {
    transform: none;
  }
}
.portrait::after {
  /* purple contact shadow pooling at the portrait's feet, outside the crop so it isn't clipped */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -7%;
  height: 22%;
  background: radial-gradient(
    50% 100% at 50% 100%,
    rgba(139, 40, 255, 0.55) 0%,
    rgba(139, 40, 255, 0) 75%
  );
  filter: blur(10px);
  z-index: 1;
}
.portrait-crop {
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}
.portrait img {
  --px: 0px;
  --py: 0px;
  width: 90%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1) translate3d(var(--px), var(--py), 0);
  transform-origin: center top;
  transition: transform 500ms var(--ease-standard);
}

.floating-card {
  position: absolute;
  left: 20%;
  bottom: 2%;
  z-index: 5;
  width: 12%;
  min-width: 148px;
  max-width: 215px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--carbon);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-floating);
}
.floating-card .art {
  position: relative;
  aspect-ratio: 1 / 1;
  animation: card-bob 4.5s var(--ease-standard) infinite;
  animation-delay: 1.5s;
}
@keyframes card-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.floating-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(249, 245, 252, 0.18);
  border: 1px solid rgba(249, 245, 252, 0.3);
  color: var(--text-inverse);
  cursor: pointer;
  transition:
    transform var(--duration-normal) var(--ease-standard),
    background var(--duration-normal) var(--ease-standard);
}
.expand-btn:hover {
  transform: scale(1.08);
  background: rgba(249, 245, 252, 0.3);
}
.expand-btn svg {
  width: 13px;
  height: 13px;
}

.card-dots {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 6px;
  padding: 10px;
}
.card-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-standard);
}
.card-dots span:hover {
  background: rgba(255, 255, 255, 0.6);
}
.card-dots span.is-active {
  background: var(--text-inverse);
  width: 16px;
  border-radius: var(--radius-pill);
  transition: width var(--duration-normal) var(--ease-standard);
}

/* -- Shared: pill button with gradient icon -- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 6px 0 20px;
  border-radius: var(--radius-pill);
  background: rgba(249, 245, 252, 0.7);
  border: 1px solid rgba(23, 19, 29, 0.25);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform var(--duration-normal) var(--ease-standard);
}
.btn-pill .icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
  box-shadow: var(--shadow-neon);
  color: var(--text-inverse);
}
.btn-pill .icon svg {
  width: 13px;
  height: 13px;
}
.btn-pill:hover {
  transform: translateY(-2px);
}

/* -- Right: editorial info panel — flush to the card's own top-right and
   bottom-right corners, so .hero-card's overflow:hidden clips it to match --  */
.panel-info {
  position: absolute;
  left: 64.8%;
  top: 8.9%;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(22px, 2.6vw, 36px) clamp(22px, 2.4vw, 34px)
    clamp(18px, 2.2vw, 28px);
  border-radius: clamp(40px, 5vw, 72px) 0 0 0;
  background: rgba(217, 200, 229, 0.55);
  border-top: 1px solid rgba(249, 245, 252, 0.35);
  border-left: 1px solid rgba(249, 245, 252, 0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
}

.panel-info .wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.panel-info .btn-pill {
  align-self: flex-start;
}

.panel-info .lede {
  margin: 12px 0 20px;
  max-width: 32ch;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.gallery {
  margin-top: auto;
  padding-top: clamp(14px, 2vw, 22px);
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.tile {
  position: relative;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--carbon);
  border: 1px solid rgba(23, 19, 29, 0.18);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-standard);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(11, 7, 20, 0.82) 0%,
    rgba(11, 7, 20, 0.06) 52%,
    rgba(11, 7, 20, 0) 70%
  );
}
.tile:hover img {
  transform: scale(1.06);
}

.tile-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}
.tile-foot span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-inverse);
}

.btn-circle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
  color: var(--text-inverse);
  flex: none;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-standard);
}
.btn-circle svg {
  width: 12px;
  height: 12px;
}
.tile:hover .btn-circle {
  transform: scale(1.08);
}

/* ========================================================================
   About view — same lavender room as the hero, one register darker, so the
   two panels read as one continuous space rather than a theme swap.
   ======================================================================== */
.about-card {
  background:
    radial-gradient(
      110% 85% at 18% 100%,
      rgba(179, 18, 255, 0.14) 0%,
      rgba(179, 18, 255, 0) 50%
    ),
    linear-gradient(158deg, #6e5983 0%, #59496f 46%, #3f2d57 100%);
}
/* fine paper grain — keeps the flat lavender field from reading as a
   digital gradient wash; texture, not color, does the work here */
.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.about-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(44px, 5vw, 78px) minmax(260px, 30%);
}

/* fading hairline with a single neon joint — the "border-over-shadow"
   separator between the copy and portrait columns */
.about-divider {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 100%;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(249, 245, 252, 0) 0%,
    rgba(249, 245, 252, 0.32) 22%,
    rgba(249, 245, 252, 0.32) 78%,
    rgba(249, 245, 252, 0) 100%
  );
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 900ms var(--ease-enter);
}
.view.is-active .about-divider {
  transform: scaleY(1);
  transition-delay: 140ms;
}
.about-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
  box-shadow: var(--shadow-neon);
  opacity: 0;
  transition: opacity 400ms var(--ease-standard);
}
.view.is-active .about-divider::before {
  opacity: 1;
  transition-delay: 900ms;
  animation: divider-pulse 3.4s var(--ease-standard) 1.1s infinite alternate;
}
@keyframes divider-pulse {
  from {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
  to {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-divider {
    transform: none;
  }
  .about-divider::before {
    opacity: 1;
    animation: none;
  }
}

.about-glow {
  position: absolute;
  right: 4%;
  top: 8%;
  width: 46%;
  height: 84%;
  background:
    radial-gradient(
      50% 46% at 68% 40%,
      rgba(255, 19, 126, 0.22) 0%,
      rgba(255, 19, 126, 0) 70%
    ),
    radial-gradient(
      60% 60% at 50% 60%,
      rgba(179, 18, 255, 0.28) 0%,
      rgba(179, 18, 255, 0) 70%
    );
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
  transform-origin: 55% 50%;
  animation: glow-breathe 7s var(--ease-standard) infinite alternate;
}

.about-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 80px 5.5% clamp(16px, 2.4vw, 28px);
}
.about-copy::-webkit-scrollbar {
  display: none;
}

.about-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 clamp(10px, 1vw, 14px);
}

.about-copy .eyebrow,
.exp-copy .eyebrow,
.work-top .eyebrow,
.about-top .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(249, 245, 252, 0.75);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hot-pink);
  box-shadow: 0 0 10px rgba(255, 19, 126, 0.7);
}
.about-index {
  margin: 0;
  font-family: var(--font-technical);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(249, 245, 252, 0.4);
}
.about-index span {
  color: rgba(249, 245, 252, 0.22);
}

.about-name {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--text-inverse);
}
.about-name .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--hot-pink);
}

.about-role {
  margin: clamp(16px, 2.2vw, 22px) 0 0;
  font-family: var(--font-technical);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(249, 245, 252, 0.8);
}
.about-role::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--hot-pink);
}

.about-lede {
  margin: 14px 0 0;
  max-width: 64ch;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(249, 245, 252, 0.78);
}

.impact-list {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  padding: clamp(14px, 1.8vw, 20px) 0;
  border-top: 1px solid rgba(249, 245, 252, 0.22);
  border-bottom: 1px solid rgba(249, 245, 252, 0.22);
}
.impact-item {
  display: flex;
  gap: 14px;
  padding-right: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 520ms var(--ease-enter),
    transform 520ms var(--ease-enter);
}
.view.is-active .impact-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 420ms;
}
.view.is-active .impact-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 500ms;
}
@media (prefers-reduced-motion: reduce) {
  .impact-item {
    opacity: 1;
    transform: none;
  }
}
.impact-item + .impact-item {
  padding-left: 24px;
  border-left: 1px solid rgba(249, 245, 252, 0.22);
}
.impact-index {
  flex: none;
  font-family: var(--font-technical);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--hot-pink);
  padding-top: 1px;
}
.impact-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-inverse);
}
.impact-item p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(249, 245, 252, 0.68);
}

.stack-block {
  margin-top: clamp(12px, 1.6vw, 18px);
}
.stack-label {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 245, 252, 0.6);
}
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.stack-chips li {
  font-family: var(--font-technical);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--text-inverse);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 245, 252, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 420ms var(--ease-enter),
    transform 420ms var(--ease-enter);
}
.view.is-active .stack-chips li {
  opacity: 1;
  transform: translateY(0);
}
.view.is-active .stack-chips li:nth-child(1) {
  transition-delay: 620ms;
}
.view.is-active .stack-chips li:nth-child(2) {
  transition-delay: 660ms;
}
.view.is-active .stack-chips li:nth-child(3) {
  transition-delay: 700ms;
}
.view.is-active .stack-chips li:nth-child(4) {
  transition-delay: 740ms;
}
.view.is-active .stack-chips li:nth-child(5) {
  transition-delay: 780ms;
}
.view.is-active .stack-chips li:nth-child(6) {
  transition-delay: 820ms;
}
@media (prefers-reduced-motion: reduce) {
  .stack-chips li {
    opacity: 1;
    transform: none;
  }
}
.stack-note {
  margin: 14px 0 0;
  max-width: 64ch;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(249, 245, 252, 0.6);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(14px, 2vw, 20px);
}
.email-link {
  font-family: var(--font-technical);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgba(249, 245, 252, 0.75);
  border-bottom: 1px solid rgba(249, 245, 252, 0.32);
  padding-bottom: 2px;
  transition:
    color var(--duration-normal) var(--ease-standard),
    border-color var(--duration-normal) var(--ease-standard);
}
.email-link:hover {
  color: var(--text-inverse);
  border-color: var(--text-inverse);
}

.about-portrait {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.about-mark {
  position: absolute;
  top: 12%;
  right: 6%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 16vw, 16rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(249, 245, 252, 0.16);
  user-select: none;
  transform-origin: 70% 40%;
  animation: mark-breathe 8s var(--ease-standard) infinite alternate;
}
@keyframes mark-breathe {
  from {
    opacity: 0.85;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.035);
  }
}
.about-portrait-rise {
  transform: translateY(80px);
}
.view.is-active .about-portrait-rise {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .about-portrait-rise {
    transform: none;
  }
}
.about-portrait-crop {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(420px, 78vh, 540px);
  border-radius: 0 0 42px 4px;
  overflow: hidden;
}
.about-portrait-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%;
}

/* ========================================================================
   Experience view — same lavender room as hero/about (continuity of
   space), glow flipped to the top-right for per-section variation. A
   single threaded timeline replaces the About view's split-column
   layout; the big outlined "03" reuses the About view's outlined-mark
   device as a page-index watermark instead of an initial.
   ======================================================================== */
.exp-card {
  background:
    radial-gradient(
      95% 80% at 88% 4%,
      rgba(179, 18, 255, 0.16) 0%,
      rgba(179, 18, 255, 0) 52%
    ),
    linear-gradient(162deg, #6e5983 0%, #59496f 46%, #3f2d57 100%);
}
.exp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.exp-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.exp-glow {
  position: absolute;
  right: -6%;
  top: -8%;
  width: 52%;
  height: 62%;
  background:
    radial-gradient(
      55% 55% at 60% 40%,
      rgba(255, 19, 126, 0.2) 0%,
      rgba(255, 19, 126, 0) 70%
    ),
    radial-gradient(
      60% 60% at 40% 55%,
      rgba(179, 18, 255, 0.26) 0%,
      rgba(179, 18, 255, 0) 70%
    );
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
  transform-origin: 55% 45%;
  animation: glow-breathe 7.5s var(--ease-standard) infinite alternate;
}

.exp-mark {
  position: absolute;
  top: 6%;
  right: 4%;
  z-index: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(10rem, 20vw, 19rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(249, 245, 252, 0.14);
  user-select: none;
  pointer-events: none;
  transform-origin: 70% 30%;
  animation: mark-breathe 8s var(--ease-standard) infinite alternate;
}
@media (max-width: 720px) {
  .exp-mark {
    top: 2%;
    right: -2%;
    font-size: clamp(7rem, 30vw, 10rem);
  }
}

.exp-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: clamp(32px, 12vh, 80px) 3.5% clamp(20px, 3vh, 40px);
}
.exp-copy::-webkit-scrollbar {
  display: none;
}

.exp-heading {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--text-inverse);
}

.exp-lede {
  margin: 10px 0 0;
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(249, 245, 252, 0.72);
}

/* horizontal timeline: three roles as parallel columns threaded by a
   single top rail, read left-to-right, most recent first — fits a
   full viewport without scrolling instead of stacking vertically */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(24px, 3vw, 48px);
  margin: clamp(16px, 2.4vh, 28px) 0 0;
  padding-top: 4px;
}
.timeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(249, 245, 252, 0.2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-enter);
}
.view.is-active .timeline::before {
  transform: scaleX(1);
  transition-delay: 280ms;
}
@media (prefers-reduced-motion: reduce) {
  .timeline::before {
    transform: none;
  }
}

.timeline-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 clamp(4px, 1.4vw, 18px) clamp(10px, 1.4vh, 16px) 0;
  border-bottom: 1px solid rgba(249, 245, 252, 0);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms var(--ease-enter),
    transform 560ms var(--ease-enter),
    border-color 320ms var(--ease-standard);
}
.timeline-item:hover {
  border-color: rgba(249, 245, 252, 0.22);
}
.timeline-item.is-latest:hover {
  border-color: rgba(255, 19, 126, 0.45);
}

.timeline-index {
  order: -1;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(249, 245, 252, 0.32);
  transition: -webkit-text-stroke-color 320ms var(--ease-standard);
}
.timeline-item:hover .timeline-index {
  -webkit-text-stroke-color: rgba(249, 245, 252, 0.55);
}
.timeline-item.is-latest .timeline-index {
  color: var(--hot-pink);
  -webkit-text-stroke: 0;
}
.view.is-active .timeline-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 520ms;
}
.view.is-active .timeline-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 620ms;
}
.view.is-active .timeline-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 720ms;
}
@media (prefers-reduced-motion: reduce) {
  .timeline-item {
    opacity: 1;
    transform: none;
  }
}

.timeline-rail {
  width: 8px;
  height: 8px;
  margin: 8px 0 10px;
}
.timeline-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface-dark);
  border: 1.5px solid rgba(249, 245, 252, 0.4);
  transform: scale(0);
  transition: transform 380ms var(--ease-standard);
}
.view.is-active .timeline-item:nth-child(1) .timeline-dot {
  transform: scale(1);
  transition-delay: 600ms;
}
.view.is-active .timeline-item:nth-child(2) .timeline-dot {
  transform: scale(1);
  transition-delay: 700ms;
}
.view.is-active .timeline-item:nth-child(3) .timeline-dot {
  transform: scale(1);
  transition-delay: 800ms;
}
@media (prefers-reduced-motion: reduce) {
  .timeline-dot {
    transform: none;
  }
}
.timeline-item.is-latest .timeline-dot {
  background: var(--hot-pink);
  border-color: var(--hot-pink);
  box-shadow: var(--shadow-neon);
}
.view.is-active .timeline-item.is-latest .timeline-dot {
  animation: dot-pulse 2.6s var(--ease-standard) 1.4s infinite;
}
@keyframes dot-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 19, 126, 0.5),
      var(--shadow-neon);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(255, 19, 126, 0),
      var(--shadow-neon);
  }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-item.is-latest .timeline-dot {
    animation: none;
  }
}

.timeline-dates {
  margin: 0;
  font-family: var(--font-technical);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(249, 245, 252, 0.8);
}
.timeline-dates span {
  color: rgba(249, 245, 252, 0.42);
}
.timeline-place {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(249, 245, 252, 0.42);
}

.timeline-body {
  margin-top: 10px;
  transition: transform 260ms var(--ease-standard);
}
.timeline-item:hover .timeline-body {
  transform: translateY(-3px);
}
.timeline-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--text-inverse);
}
.timeline-item.is-latest .timeline-body h3 {
  font-size: 1.2rem;
}
.timeline-company {
  margin: 0 0 8px;
  font-family: var(--font-technical);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hot-pink);
}
.timeline-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(249, 245, 252, 0.68);
}

/* ========================================================================
   Projects view — same lavender room as about/experience, restaged as a
   featured-banner + horizontal-row browser (reference: streaming-app
   "Trending Now" layout) reskinned in the site's editorial-glass language:
   hairline borders instead of rounded cards, gradient-icon buttons instead
   of solid play buttons, technical-mono meta instead of match percentages.
   ======================================================================== */
.work-card {
  background:
    radial-gradient(
      90% 70% at 10% 0%,
      rgba(255, 19, 126, 0.14) 0%,
      rgba(255, 19, 126, 0) 55%
    ),
    linear-gradient(162deg, #6e5983 0%, #59496f 46%, #3f2d57 100%);
}
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.work-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.work-glow {
  position: absolute;
  left: -8%;
  top: -6%;
  width: 56%;
  height: 56%;
  background:
    radial-gradient(
      55% 55% at 40% 40%,
      rgba(179, 18, 255, 0.24) 0%,
      rgba(179, 18, 255, 0) 70%
    ),
    radial-gradient(
      50% 50% at 60% 55%,
      rgba(255, 19, 126, 0.18) 0%,
      rgba(255, 19, 126, 0) 70%
    );
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
  transform-origin: 45% 45%;
  animation: glow-breathe 7s var(--ease-standard) infinite alternate;
}

.work-mark {
  position: absolute;
  top: 4%;
  right: 4%;
  z-index: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 18vw, 17rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(249, 245, 252, 0.12);
  user-select: none;
  pointer-events: none;
  transform-origin: 70% 30%;
  animation: mark-breathe 8s var(--ease-standard) infinite alternate;
}
@media (max-width: 720px) {
  .work-mark {
    display: none;
  }
}

.work-scroll-area {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 9vh, 64px) 3.5% clamp(20px, 3vh, 36px);
}

.work-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 clamp(8px, 1.2vw, 14px);
}
.work-top .eyebrow {
  color: var(--text-inverse);
}

.work-heading {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--text-inverse);
}

.work-lede {
  margin: 6px 0 0;
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(249, 245, 252, 0.72);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(217, 200, 229, 0.16);
  border: 1px solid rgba(249, 245, 252, 0.3);
  color: var(--text-inverse);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--duration-normal) var(--ease-standard);
}
.icon-btn svg {
  width: 13px;
  height: 15px;
}
.icon-btn:hover {
  transform: scale(1.08);
}

/* -- Filter tabs -- */
.work-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(18px, 2.6vw, 28px) 0 clamp(20px, 3vw, 30px);
}
.work-tabs-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
  box-shadow: var(--shadow-neon);
  z-index: 0;
  pointer-events: none;
  transition:
    transform 380ms var(--ease-standard),
    width 380ms var(--ease-standard);
}
@media (prefers-reduced-motion: reduce) {
  .work-tabs-indicator {
    transition: none;
  }
}
.work-tabs button {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(249, 245, 252, 0.68);
  border: 1px solid rgba(249, 245, 252, 0.22);
  background: transparent;
  transition:
    color var(--duration-normal) var(--ease-standard),
    border-color var(--duration-normal) var(--ease-standard);
}
.work-tabs button:hover {
  color: var(--text-inverse);
  border-color: rgba(249, 245, 252, 0.4);
}
.work-tabs button.is-active {
  color: var(--text-inverse);
  border-color: transparent;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
}

/* -- Rows -- */
.work-row {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.work-row + .work-row {
  margin-top: clamp(24px, 3.4vw, 36px);
}
.work-row-head {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 16px;
}
.work-row-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-inverse);
}
.see-all {
  font-family: var(--font-technical);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(249, 245, 252, 0.56);
  border-bottom: 1px solid rgba(249, 245, 252, 0.3);
  padding-bottom: 2px;
  transition: color var(--duration-normal) var(--ease-standard);
}
.see-all:hover {
  color: var(--text-inverse);
}

.work-nav {
  display: flex;
  gap: 6px;
}
.work-nav-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(217, 200, 229, 0.12);
  border: 1px solid rgba(249, 245, 252, 0.22);
  color: var(--text-inverse);
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-standard),
    opacity var(--duration-normal) var(--ease-standard);
}
.work-nav-btn svg {
  width: 12px;
  height: 12px;
}
.work-nav-btn:hover {
  background: rgba(217, 200, 229, 0.24);
}
.work-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.work-nav-btn:disabled:hover {
  background: rgba(217, 200, 229, 0.12);
}

.work-track {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  margin: 0 -3.5%;
  padding: 2px 3.5% 4px;
}
.work-track::-webkit-scrollbar {
  display: none;
}

.work-tile {
  position: relative;
  flex: none;
  height: 100%;
  width: auto;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--carbon);
  border: 1px solid rgba(23, 19, 29, 0.3);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 480ms var(--ease-enter),
    transform 480ms var(--ease-enter),
    border-color var(--duration-normal) var(--ease-standard),
    box-shadow var(--duration-normal) var(--ease-standard),
    translate var(--duration-normal) var(--ease-standard);
}
.view.is-active .work-tile {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 520ms;
}
.view.is-active .work-tile:nth-child(2) {
  transition-delay: 560ms;
}
.view.is-active .work-tile:nth-child(3) {
  transition-delay: 600ms;
}
.view.is-active .work-tile:nth-child(4) {
  transition-delay: 640ms;
}
.view.is-active .work-tile:nth-child(5) {
  transition-delay: 680ms;
}
.view.is-active .work-tile:nth-child(6) {
  transition-delay: 720ms;
}
.view.is-active .work-tile:nth-child(7) {
  transition-delay: 760ms;
}
.view.is-active .work-tile:nth-child(8) {
  transition-delay: 800ms;
}
.view.is-active .work-tile.is-hiding {
  opacity: 0;
  transform: scale(0.94);
  transition-delay: 0ms;
}
.work-tile:hover {
  border-color: rgba(255, 19, 126, 0.5);
  box-shadow: var(--shadow-panel);
  translate: 0 -4px;
}
@media (prefers-reduced-motion: reduce) {
  .work-tile:hover {
    translate: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-tile {
    opacity: 1;
    transform: none;
  }
}
.work-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-standard);
}
.work-tile.has-portrait-image {
  background:
    radial-gradient(circle at 50% 38%, rgba(205, 136, 244, 0.24), transparent 48%),
    linear-gradient(90deg, var(--carbon-deep) 0%, #24172f 50%, var(--carbon-deep) 100%);
}
.work-tile.has-portrait-image img {
  object-fit: contain;
}
.work-tile.has-portrait-image:hover img {
  transform: none;
}
.work-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(11, 7, 20, 0.95) 0%,
    rgba(11, 7, 20, 0.75) 30%,
    rgba(11, 7, 20, 0.12) 60%,
    rgba(11, 7, 20, 0) 78%
  );
}
.work-tile:hover img {
  transform: scale(1.06);
}

/* -- Text-only tile for projects without a captured screenshot -- */
.work-tile--noimg {
  background:
    radial-gradient(
      60% 55% at 75% 15%,
      rgba(255, 19, 126, 0.22) 0%,
      rgba(255, 19, 126, 0) 70%
    ),
    radial-gradient(
      65% 60% at 15% 85%,
      rgba(179, 18, 255, 0.24) 0%,
      rgba(179, 18, 255, 0) 70%
    ),
    var(--carbon);
}
.work-tile--noimg::after {
  background: linear-gradient(
    0deg,
    rgba(11, 7, 20, 0.7) 0%,
    rgba(11, 7, 20, 0.15) 56%,
    rgba(11, 7, 20, 0) 74%
  );
}
.work-tile-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.work-tile-placeholder span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(249, 245, 252, 0.22);
  user-select: none;
}
.work-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-technical);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-inverse);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(11, 7, 20, 0.55);
  border: 1px solid rgba(249, 245, 252, 0.3);
}
.work-tile-bookmark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
}
.work-tile-bookmark svg {
  width: 10px;
  height: 12px;
}

.work-tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 12px;
}
.work-tile-body h4 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.015em;
  color: var(--text-inverse);
}
.work-tile-meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: rgba(249, 245, 252, 0.78);
}
.work-tile-status {
  margin: 5px 0 10px;
  font-family: var(--font-technical);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  color: var(--hot-pink);
}
.work-tile .btn-circle {
  width: 26px;
  height: 26px;
}
.work-tile .btn-circle svg {
  width: 11px;
  height: 11px;
}
.work-tile:hover .btn-circle {
  transform: scale(1.08);
}

/* ========================================================================
   Closing view — the site's one "drenched" moment: a deep aurora of
   magenta/violet blooms over the same near-black the outer page-shell
   frame already uses, so the five-view sequence bookends itself. A
   single centered statement, no masthead grammar, quieter than the
   other three views on purpose.
   ======================================================================== */
.cta-card {
  background: linear-gradient(
    135deg,
    var(--carbon-deep) 0%,
    var(--well) 45%,
    var(--surface-dark) 100%
  );
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cta-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8%;
}

.cta-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      38% 42% at 22% 26%,
      rgba(255, 19, 126, 0.55) 0%,
      rgba(255, 19, 126, 0) 70%
    ),
    radial-gradient(
      44% 48% at 80% 20%,
      rgba(179, 18, 255, 0.5) 0%,
      rgba(179, 18, 255, 0) 70%
    ),
    radial-gradient(
      52% 52% at 50% 88%,
      rgba(139, 40, 255, 0.45) 0%,
      rgba(139, 40, 255, 0) 70%
    ),
    radial-gradient(
      34% 34% at 88% 82%,
      rgba(255, 19, 126, 0.32) 0%,
      rgba(255, 19, 126, 0) 70%
    );
  filter: blur(60px);
  animation: cta-drift 20s var(--ease-standard) infinite alternate;
}
@keyframes cta-drift {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-2%, 2%);
  }
}

.cta-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    58% 55% at 50% 50%,
    rgba(11, 7, 20, 0.3) 0%,
    rgba(11, 7, 20, 0.08) 55%,
    rgba(11, 7, 20, 0) 78%
  );
}

.cta-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.cta-kicker {
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  font-family: var(--font-technical);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(249, 245, 252, 0.56);
}

.cta-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-inverse);
}
.cta-heading .accent {
  color: var(--hot-pink);
}

.cta-sub {
  margin: clamp(16px, 2.4vh, 26px) auto 0;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(249, 245, 252, 0.72);
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.6vh, 40px);
}

.cta-loop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 3vh, 32px);
  font-family: var(--font-technical);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 245, 252, 0.6);
  transition: color var(--duration-normal) var(--ease-standard);
}
.cta-loop svg {
  width: 13px;
  height: 13px;
  transition: transform var(--duration-slow) var(--ease-standard);
}
.cta-loop:hover {
  color: var(--text-inverse);
}
.cta-loop:hover svg {
  transform: rotate(-360deg);
}

/* ========================================================================
   Templates section — grid of purchasable starter templates with preview
   images, descriptions, tech tags, and buy/preview actions.
   ======================================================================== */
.tpl-card {
  background:
    radial-gradient(
      62% 70% at 86% 20%,
      rgba(255, 19, 126, 0.22) 0%,
      rgba(255, 19, 126, 0) 64%
    ),
    radial-gradient(
      80% 82% at 8% 88%,
      rgba(179, 18, 255, 0.18) 0%,
      rgba(179, 18, 255, 0) 58%
    ),
    linear-gradient(148deg, #8c78a2 0%, #715a8a 42%, #4b3a5f 100%);
}
.tpl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tpl-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  grid-template-rows: 1fr auto;
  gap: clamp(18px, 2.8vw, 38px);
  align-items: end;
  padding: clamp(28px, 8vh, 62px) clamp(32px, 4vw, 64px) clamp(22px, 4vh, 42px);
}

.tpl-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      30% 42% at 78% 18%,
      rgba(255, 19, 126, 0.34) 0%,
      rgba(255, 19, 126, 0) 70%
    ),
    radial-gradient(
      42% 50% at 24% 78%,
      rgba(179, 18, 255, 0.3) 0%,
      rgba(179, 18, 255, 0) 70%
    );
  filter: blur(80px);
}

.tpl-mark {
  position: absolute;
  left: 4.2%;
  bottom: 3%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(8rem, 22vw, 19rem);
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(249, 245, 252, 0.12);
  user-select: none;
  pointer-events: none;
}

.tpl-copy {
  position: relative;
  z-index: 1;
  align-self: start;
  max-width: 560px;
}

.tpl-heading {
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--text-inverse);
}

.tpl-lede {
  margin: clamp(12px, 2vh, 20px) 0 0;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.08vw, 1rem);
  line-height: 1.62;
  color: rgba(249, 245, 252, 0.78);
}

.tpl-showcase {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: min(70vh, 610px);
  max-height: 78vh;
  max-width: 90%;
  justify-self: end;
  margin-top: 6vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(16, 10, 25, 0.58);
  border: 1px solid rgba(249, 245, 252, 0.18);
  box-shadow: 0 28px 70px rgba(23, 12, 32, 0.22);
  transition:
    border-color var(--duration-normal) var(--ease-standard),
    box-shadow var(--duration-normal) var(--ease-standard),
    translate var(--duration-normal) var(--ease-standard);
}
.tpl-showcase:hover {
  border-color: rgba(255, 19, 126, 0.45);
  box-shadow: 0 34px 86px rgba(23, 12, 32, 0.28);
  translate: 0 -3px;
}
@media (prefers-reduced-motion: reduce) {
  .tpl-showcase:hover {
    translate: none;
  }
}

.tpl-preview {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1855 / 848;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      70% 80% at 68% 26%,
      rgba(255, 19, 126, 0.16) 0%,
      rgba(255, 19, 126, 0) 62%
    ),
    var(--carbon-deep);
}
.tpl-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(11, 7, 20, 0.02) 0%,
      rgba(11, 7, 20, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 7, 20, 0.03) 0%,
      rgba(11, 7, 20, 0.22) 100%
    );
}
.tpl-preview img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  transition: transform var(--duration-slow) var(--ease-standard);
}
.tpl-showcase:hover .tpl-preview img {
  transform: scale(1.035);
}

.tpl-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-technical);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-inverse);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
  box-shadow: var(--shadow-neon);
}

.tpl-preview-rail {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-technical);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: rgba(249, 245, 252, 0.72);
}
.tpl-preview-rail::before {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(249, 245, 252, 0.46);
}

.tpl-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.48fr);
  column-gap: clamp(18px, 2.4vw, 30px);
  row-gap: 10px;
  align-items: end;
  padding: clamp(14px, 1.65vw, 20px);
  border-top: 1px solid rgba(249, 245, 252, 0.14);
  background:
    linear-gradient(
      180deg,
      rgba(249, 245, 252, 0.08) 0%,
      rgba(249, 245, 252, 0.02) 100%
    ),
    rgba(11, 7, 20, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tpl-panel-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(6px, 1vh, 12px);
}
.tpl-label {
  margin: 0;
  font-family: var(--font-technical);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 245, 252, 0.62);
}
.tpl-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.35vw, 2.25rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
}
.tpl-panel h3 {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.55vw, 1.62rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--text-inverse);
  overflow-wrap: anywhere;
}

.tpl-panel-copy {
  grid-column: 1;
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.48;
  color: rgba(249, 245, 252, 0.72);
}

.tpl-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}
.tpl-buy {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tpl-preview-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.tpl-preview-btn svg {
  width: 13px;
  height: 13px;
}

.tpl-includes {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 0;
  margin: 0;
  max-width: 540px;
  border-top: 1px solid rgba(249, 245, 252, 0.22);
  border-bottom: 1px solid rgba(249, 245, 252, 0.22);
}
.tpl-includes li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.42;
  color: rgba(249, 245, 252, 0.74);
}
.tpl-includes li + li {
  border-top: 1px solid rgba(249, 245, 252, 0.14);
}
.tpl-includes span {
  font-family: var(--font-technical);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--hot-pink);
}

/* ========================================================================
   View dots — fixed section indicator; the only affordance signaling that
   wheel/keyboard/swipe moves between panels instead of a normal scrollbar.
   ======================================================================== */
.view-dots {
  position: fixed;
  right: clamp(20px, 2.6vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.view-dots button {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding: 0;
  background: rgba(249, 245, 252, 0.3);
  transition:
    transform var(--duration-normal) var(--ease-standard),
    background var(--duration-normal) var(--ease-standard),
    height var(--duration-normal) var(--ease-standard);
}
.view-dots button::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  font-family: var(--font-technical);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inverse);
  background: rgba(11, 7, 20, 0.6);
  border: 1px solid rgba(249, 245, 252, 0.22);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition:
    opacity var(--duration-normal) var(--ease-standard),
    transform var(--duration-normal) var(--ease-standard);
}
.view-dots button:hover::after,
.view-dots button:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.view-dots button:hover {
  background: rgba(249, 245, 252, 0.6);
}
.view-dots button.is-active {
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--text-inverse);
  box-shadow: var(--shadow-neon);
}
.view-dots button:focus-visible {
  outline: 2px solid var(--gradient-start);
  outline-offset: 3px;
}

/* ========================================================================
   Responsive — the absolute composition above is desktop-only; below
   1024px everything reflows into a simple stacked column.
   ======================================================================== */
@media (max-width: 1024px) {
  /* below 1024px the fullpage hijack is switched off (see script.js);
     both views fall back to normal static, stacked document flow. */
  .view-stage {
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vw, 34px);
  }
  .view {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .view-dots {
    display: none;
  }

  .hero-card {
    min-height: auto;
    padding: 20px 20px 28px;
  }
  .site-header {
    position: static;
    margin-bottom: 28px;
  }
  .portrait-glow {
    display: none;
  }
  .hero-stage {
    position: static;
    display: flex;
    flex-direction: column;
  }
  .hero-copy,
  .panel-project,
  .portrait,
  .floating-card,
  .panel-info {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
  }
  .hero-copy {
    order: 0;
    margin-bottom: 24px;
  }
  .portrait {
    order: 1;
    width: min(100%, 320px);
    height: auto;
    max-height: 360px;
    margin: 0 auto 24px;
  }
  .portrait-crop {
    border-radius: 24px;
  }
  .portrait img {
    width: 100%;
    object-position: center top;
    transform: none;
  }
  .panel-project {
    order: 2;
    width: 100%;
    max-width: 340px;
    margin-bottom: 24px;
  }
  .floating-card {
    display: none;
  }
  .panel-info {
    order: 3;
    border-radius: 40px;
    padding: 28px 24px;
  }
  .gallery {
    min-height: 320px;
  }

  .about-card {
    padding: 20px 20px 28px;
  }
  .about-stage {
    position: static;
    display: block;
    padding: 28px 0 0;
  }
  .about-glow {
    display: none;
  }
  .about-divider {
    display: none;
  }
  .about-index {
    display: none;
  }
  .about-copy {
    height: auto;
    max-width: none;
    padding-top: 0;
    overflow-y: visible;
  }
  .about-mark {
    display: none;
  }
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cta-row .btn-pill {
    width: 100%;
    justify-content: space-between;
  }
  .about-portrait-rise {
    transform: none;
  }
  .about-portrait {
    height: auto;
    margin-top: 12px !important;
  }
  .about-portrait-crop {
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 380px;
    border-radius: 32px;
  }
  .impact-item + .impact-item {
    padding-left: 16px;
  }

  .exp-card {
    padding: 20px 20px 28px;
  }
  .exp-stage {
    position: static;
  }
  .exp-glow {
    display: none;
  }
  .exp-mark {
    display: none;
  }
  .exp-copy {
    padding: 0;
  }
  .timeline {
    display: block;
  }
  .timeline::before {
    display: none;
  }
  .timeline-item {
    align-items: stretch;
    width: 100%;
    padding: clamp(16px, 2.4vh, 22px) 0;
  }
  .timeline-item + .timeline-item {
    border-top: 1px solid rgba(249, 245, 252, 0.16);
  }
  .timeline-body,
  .timeline-desc {
    min-width: 0;
  }

  .work-card {
    padding: 20px 20px 28px;
  }
  .work-stage {
    position: static;
    min-width: 0;
  }
  .work-glow {
    display: none;
  }
  .work-scroll-area {
    min-width: 0;
    padding: 0;
    height: auto;
    overflow: visible;
  }
  .work-heading {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }
  .work-row {
    flex: none;
    min-width: 0;
  }
  .work-track {
    flex: none;
    min-width: 0;
  }
  .work-tile {
    height: auto;
    width: clamp(200px, 50vw, 280px);
  }

  .cta-card {
    padding: 20px 20px 28px;
  }
  .cta-stage {
    position: relative;
    inset: auto;
    min-height: 420px;
    padding: 40px 6%;
  }

  .tpl-card {
    padding: 20px 20px 28px;
  }
  .tpl-stage {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 22px;
    padding: 0;
    justify-content: space-between;
  }
  .tpl-glow {
    display: none;
  }
  .tpl-mark {
    display: none;
  }
  .tpl-heading {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }
  .tpl-copy {
    max-width: none;
  }
  .tpl-showcase {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 100%;
    justify-self: stretch;
    margin-top: 0;
  }
  .tpl-preview {
    min-height: 0;
    height: auto;
    aspect-ratio: 1855 / 848;
  }
  .tpl-preview img {
    width: 100%;
    height: 100%;
  }
  .tpl-preview::after {
    background: linear-gradient(
      180deg,
      rgba(11, 7, 20, 0.04) 0%,
      rgba(11, 7, 20, 0.22) 100%
    );
  }
  .tpl-panel {
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-left: 0;
    border-top: 1px solid rgba(249, 245, 252, 0.14);
  }
  .tpl-panel h3 {
    margin-top: 34px;
  }
  .tpl-includes {
    max-width: none;
  }

  /* content reveal in this static-stack layout is scroll-driven, not
     view-activation-driven (only the hero ever carries .is-active here),
     so every element gated behind ".view.is-active …" needs its finished
     on-screen state forced open, or it stays permanently hidden. */
  .hero-type span {
    clip-path: inset(0 0% 0 -2%);
    animation: none;
  }
  .portrait-rise,
  .panel-info-slide {
    transform: none;
  }
  .impact-item,
  .stack-chips li,
  .timeline-item,
  .work-tile,
  .tpl-showcase,
  .tpl-includes {
    opacity: 1;
    transform: none;
  }
  .timeline-dot {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 10px;
  }
  .hero-card,
  .about-card,
  .exp-card,
  .cta-card,
  .tpl-card {
    border-radius: 24px;
  }
  .hero-type {
    font-size: clamp(2.6rem, 16vw, 4rem);
    -webkit-text-stroke-width: 1px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .about-name {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
  .impact-list {
    grid-template-columns: 1fr;
  }
  .impact-item + .impact-item {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(249, 245, 252, 0.22);
    padding-top: 16px;
    margin-top: 16px;
  }

  .exp-heading {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }
  .timeline-item.is-latest .timeline-body h3 {
    font-size: 1.1rem;
  }

  .work-tile {
    width: 180px;
  }
}

/* ========================================================================
   Project lightbox — quick preview modal for tiles without an external link
   ======================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}
.lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 7, 20, 0.68);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}
.lightbox.is-open .lightbox-backdrop {
  opacity: 1;
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(
    165deg,
    var(--carbon) 0%,
    var(--carbon-deep) 100%
  );
  border: 1px solid rgba(249, 245, 252, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-floating);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition:
    transform var(--duration-slow) var(--ease-enter),
    opacity var(--duration-normal) var(--ease-standard);
}
.lightbox.is-open .lightbox-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-inverse);
  background: rgba(11, 7, 20, 0.5);
  border: 1px solid rgba(249, 245, 252, 0.25);
  transition:
    transform var(--duration-normal) var(--ease-standard),
    background var(--duration-normal) var(--ease-standard);
}
.lightbox-close:hover {
  transform: rotate(90deg);
  background: rgba(11, 7, 20, 0.75);
}
.lightbox-close svg {
  width: 14px;
  height: 14px;
}
.lightbox-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--carbon-deep);
  overflow: hidden;
}
.lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-media img[hidden] {
  display: none;
}

/* Portrait images — full height with gradient sides */
.lightbox-media.is-portrait {
  aspect-ratio: unset;
  max-height: 55vh;
}
.lightbox-media.is-portrait img {
  width: auto;
  height: 100%;
  max-width: none;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 0;
}
.lightbox-media.is-portrait::before,
.lightbox-media.is-portrait::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.lightbox-media.is-portrait::before {
  left: 0;
  background: linear-gradient(90deg, var(--carbon-deep) 0%, transparent 100%);
}
.lightbox-media.is-portrait::after {
  right: 0;
  background: linear-gradient(270deg, var(--carbon-deep) 0%, transparent 100%);
}
.lightbox-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5rem;
  color: rgba(249, 245, 252, 0.14);
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 19, 126, 0.14),
    transparent 65%
  );
}
.lightbox-placeholder.is-visible {
  display: flex;
}
.lightbox-body {
  padding: 28px 6% 32px;
}
.lightbox-badge {
  font-family: var(--font-technical);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--hot-pink);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.lightbox-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
  color: var(--text-inverse);
  margin: 0 0 10px;
}
.lightbox-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.lightbox-status {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(249, 245, 252, 0.72);
  margin: 0 0 12px;
}
.lightbox-description {
  max-width: 58ch;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(249, 245, 252, 0.82);
  margin: 0 0 22px;
}
.lightbox-description[hidden] {
  display: none;
}
.lightbox-link[hidden] {
  display: none;
}

/* -- Text-only lightbox for projects without an external link -- */
.lightbox-panel.is-text-only .lightbox-media {
  display: none;
}
.lightbox-panel.is-text-only .lightbox-body {
  padding: 40px 8% 44px;
  text-align: center;
}
.lightbox-panel.is-text-only .lightbox-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(255, 19, 126, 0.35);
  border-radius: 100px;
  font-size: 0.65rem;
  margin-bottom: 16px;
}
.lightbox-panel.is-text-only .lightbox-body h3 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 14px;
}
.lightbox-panel.is-text-only .lightbox-meta {
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.lightbox-panel.is-text-only .lightbox-status {
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.lightbox-panel.is-text-only .lightbox-description {
  margin: 0 auto 28px;
}
.lightbox-panel.is-text-only .lightbox-link {
  margin: 0 auto;
}

/* ========================================================================
   Engineering decisions
   ======================================================================== */
.decision-card {
  color: var(--text-inverse);
  background:
    radial-gradient(60% 72% at 92% 8%, rgba(179, 18, 255, 0.2), transparent 68%),
    radial-gradient(48% 54% at 10% 100%, rgba(255, 19, 126, 0.12), transparent 72%),
    linear-gradient(152deg, #24172f 0%, var(--carbon) 48%, var(--carbon-deep) 100%);
}
.decision-stage {
  position: absolute;
  inset: 0;
  padding: clamp(76px, 9vh, 104px) 5.5% clamp(24px, 4vh, 46px);
  overflow: hidden;
}
.decision-glow {
  position: absolute;
  width: min(46vw, 680px);
  aspect-ratio: 1;
  right: -18%;
  top: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 136, 244, 0.15), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}
.decision-mark {
  position: absolute;
  right: 4.4%;
  top: 7.5%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 15vw, 13rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(249, 245, 252, 0.035);
  pointer-events: none;
}
.decision-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: 100%;
}
.decision-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: end;
  margin: clamp(16px, 2.2vh, 24px) 0 clamp(18px, 2.6vh, 30px);
}
.decision-heading {
  margin: 0;
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -0.055em;
}
.decision-lede {
  max-width: 46ch;
  margin: 0 0 0.25rem;
  color: rgba(249, 245, 252, 0.67);
  font-size: clamp(0.86rem, 1vw, 1rem);
  line-height: 1.65;
}
.decision-list {
  --decision-gap: clamp(12px, 1.4vw, 20px);
  min-height: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--decision-gap)) / 2);
  grid-auto-rows: auto;
  gap: var(--decision-gap);
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-bottom: 0;
}
.decision-list::-webkit-scrollbar {
  display: none;
}
.decision-rail-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 44px;
  margin: -10px 0 12px;
}
.decision-rail-position {
  margin: 0;
  color: rgba(249, 245, 252, 0.56);
  font-family: var(--font-technical);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.decision-rail-controls {
  display: flex;
  gap: 8px;
}
.decision-rail-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text-inverse);
  border: 1px solid rgba(249, 245, 252, 0.16);
  border-radius: 50%;
  background: rgba(249, 245, 252, 0.05);
  transition: color var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) var(--ease-standard), background var(--duration-normal) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.decision-rail-btn:hover:not(:disabled) {
  color: var(--hot-pink);
  border-color: rgba(205, 136, 244, 0.5);
  background: rgba(205, 136, 244, 0.1);
  transform: translateY(-1px);
}
.decision-rail-btn:focus-visible,
.decision-list:focus-visible {
  outline: 2px solid var(--hot-pink);
  outline-offset: 3px;
}
.decision-rail-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.decision-rail-btn svg {
  width: 18px;
  height: 18px;
}
.decision-rail-btn path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.decision-list.has-expanded {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  height: auto;
  padding: clamp(22px, 4vw, 64px);
  background: rgba(11, 7, 20, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  scroll-snap-type: none;
}
.decision-list.has-expanded .decision-item:not(.is-expanded) {
  display: none;
}
.decision-list.has-expanded .decision-item.is-expanded {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1080px, calc(100% - clamp(32px, 8vw, 128px)));
  height: min(78%, 740px);
  align-self: center;
  background: linear-gradient(155deg, #261934 0%, var(--carbon) 54%, var(--carbon-deep) 100%);
  border-color: rgba(205, 136, 244, 0.28);
  box-shadow: 0 36px 110px rgba(3, 1, 8, 0.68);
  animation: decision-modal-in var(--duration-normal) var(--ease-enter) both;
}
.decision-list.has-expanded .decision-item.is-expanded .decision-summary {
  display: none;
}
body.decision-modal-open {
  overflow: hidden;
}
body.decision-modal-open .decision-card {
  z-index: 90;
  overflow: visible;
}
@keyframes decision-modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px)) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.decision-item {
  min-height: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(249, 245, 252, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(249, 245, 252, 0.045);
  box-shadow: 0 24px 70px rgba(5, 2, 10, 0.24);
  scroll-snap-align: start;
}
.decision-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  padding: clamp(20px, 2.4vw, 34px) clamp(20px, 3vw, 44px);
}
.decision-item.is-expanded .decision-summary {
  grid-template-columns: minmax(0, 1.4fr) minmax(380px, 0.9fr);
  gap: clamp(24px, 4vw, 68px);
}
.decision-type {
  margin: 0 0 8px;
  color: var(--hot-pink);
  font-family: var(--font-technical);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.decision-summary h3 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.decision-problem {
  max-width: 68ch;
  margin: 12px 0 0;
  color: rgba(249, 245, 252, 0.7);
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.55;
}
.decision-choice {
  max-width: 68ch;
  margin: 12px 0 0;
  color: var(--text-inverse);
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  line-height: 1.55;
}
.decision-choice span {
  margin-right: 8px;
  color: var(--hot-pink);
  font-family: var(--font-technical);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.decision-evidence {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(249, 245, 252, 0.16);
  border-bottom: 1px solid rgba(249, 245, 252, 0.16);
}
.decision-evidence > div {
  min-width: 0;
  padding: 14px clamp(10px, 1.4vw, 20px);
}
.decision-evidence > div + div {
  border-left: 1px solid rgba(249, 245, 252, 0.14);
}
.decision-evidence dt {
  margin-bottom: 7px;
  color: rgba(249, 245, 252, 0.52);
  font-family: var(--font-technical);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.decision-evidence dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.decision-evidence dd span {
  color: rgba(249, 245, 252, 0.45);
}
.decision-evidence dd strong {
  color: var(--hot-pink);
  font-weight: 700;
}
.decision-evidence--text dd {
  font-size: clamp(0.7rem, 0.9vw, 0.88rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.decision-evidence svg {
  width: clamp(16px, 1.4vw, 24px);
  flex: 0 0 auto;
}
.decision-evidence path {
  fill: none;
  stroke: rgba(249, 245, 252, 0.48);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.decision-toggle {
  min-height: 48px;
  padding: 0 clamp(20px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-inverse);
  border-top: 1px solid rgba(249, 245, 252, 0.13);
  background: rgba(249, 245, 252, 0.035);
  font-family: var(--font-technical);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    color var(--duration-normal) var(--ease-standard),
    background var(--duration-normal) var(--ease-standard);
}
.decision-toggle:hover {
  color: var(--hot-pink);
  background: rgba(205, 136, 244, 0.08);
}
.decision-toggle:focus-visible,
.decision-scroll:focus-visible {
  outline: 2px solid var(--hot-pink);
  outline-offset: -3px;
}
.decision-toggle-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(249, 245, 252, 0.2);
  border-radius: 50%;
  transition: transform var(--duration-normal) var(--ease-standard);
}
.decision-toggle-icon svg {
  width: 16px;
  height: 16px;
}
.decision-item.is-expanded .decision-toggle-icon {
  transform: rotate(45deg);
}
.decision-disclosure {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
  opacity: 1;
  transition:
    grid-template-rows var(--duration-slow) var(--ease-enter),
    opacity var(--duration-normal) var(--ease-standard);
}
.decision-disclosure[aria-hidden="true"] {
  display: none;
}
.decision-item.is-enhanced:not(.is-expanded) .decision-disclosure {
  grid-template-rows: 0fr;
  opacity: 0;
}
.decision-item.is-enhanced:not(.is-expanded) {
  align-self: stretch;
}
.decision-item.is-enhanced:not(.is-expanded) .decision-summary {
  flex: 1;
}
.decision-item.is-expanded .decision-disclosure {
  flex: 1;
}
.decision-list.has-expanded .decision-disclosure-inner,
.decision-list.has-expanded .decision-scroll {
  height: 100%;
}
.decision-list.has-expanded .decision-scroll {
  max-height: none;
}
.decision-disclosure-inner {
  min-height: 0;
  overflow: hidden;
}
.decision-scroll {
  max-height: min(36vh, 340px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(205, 136, 244, 0.55) transparent;
}
.decision-scroll::-webkit-scrollbar {
  width: 7px;
}
.decision-scroll::-webkit-scrollbar-thumb {
  border-radius: var(--radius-pill);
  background: rgba(205, 136, 244, 0.55);
}
.decision-article {
  width: min(100%, 78ch);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 54px) clamp(20px, 4vw, 52px) clamp(44px, 6vw, 76px);
  color: rgba(249, 245, 252, 0.74);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.72;
}
.decision-article section + section {
  margin-top: clamp(38px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 50px);
  border-top: 1px solid rgba(249, 245, 252, 0.13);
}
.decision-article h4 {
  margin: 0 0 18px;
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.decision-article h5 {
  margin: 0 0 8px;
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.3;
}
.decision-article p {
  margin: 0;
}
.decision-article p + p,
.decision-article ul + p,
.decision-article p + ul,
.decision-article blockquote + p,
.decision-article p + blockquote {
  margin-top: 14px;
}
.decision-article ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 1.15rem;
  list-style: disc;
}
.decision-article li::marker {
  color: var(--hot-pink);
}
.decision-article strong {
  color: var(--text-inverse);
  font-weight: 600;
}
.decision-article blockquote {
  margin: 18px 0 0;
  padding: 18px 20px;
  color: var(--text-inverse);
  border: 1px solid rgba(205, 136, 244, 0.24);
  border-radius: var(--radius-md);
  background: rgba(205, 136, 244, 0.07);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}
.decision-statement,
.decision-process {
  padding: 16px 18px;
  color: var(--text-inverse);
  border: 1px solid rgba(249, 245, 252, 0.14);
  border-radius: var(--radius-md);
  background: rgba(249, 245, 252, 0.04);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.45;
}
.decision-statement span,
.decision-process span {
  padding: 0 8px;
  color: var(--hot-pink);
}
.decision-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid rgba(249, 245, 252, 0.13);
}
.decision-work-grid > div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(249, 245, 252, 0.13);
}
.decision-work-grid > div:nth-child(odd) {
  padding-right: 24px;
}
.decision-work-grid > div:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid rgba(249, 245, 252, 0.13);
}
.decision-article code {
  padding: 0.14em 0.4em;
  color: var(--hot-pink);
  border-radius: var(--radius-sm);
  background: rgba(205, 136, 244, 0.09);
  font-family: var(--font-technical);
  font-size: 0.88em;
}
.decision-article pre {
  max-width: 100%;
  margin: 18px 0 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: rgba(249, 245, 252, 0.78);
  border: 1px solid rgba(249, 245, 252, 0.13);
  border-radius: var(--radius-md);
  background: rgba(5, 2, 10, 0.34);
  font-family: var(--font-technical);
  font-size: 0.76rem;
  line-height: 1.65;
  white-space: pre;
}
.decision-article pre code {
  padding: 0;
  color: inherit;
  background: none;
  font-size: inherit;
}
.decision-flow-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.decision-flow-pair pre {
  height: 100%;
  margin: 0;
}
.decision-flow-pair h5 + pre {
  margin-top: 10px;
}
.decision-principle blockquote:last-child {
  color: var(--hot-pink);
}
.decision-demonstrates {
  list-style: none !important;
  padding-left: 0 !important;
  counter-reset: demonstrated;
}
.decision-demonstrates li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  counter-increment: demonstrated;
}
.decision-demonstrates li::before {
  content: counter(demonstrated, decimal-leading-zero);
  color: var(--hot-pink);
  font-family: var(--font-technical);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .decision-intro {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
    margin-block: 12px 18px;
  }
  .decision-item.is-expanded .decision-summary {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    padding-block: 18px;
  }
  .decision-problem,
  .decision-choice {
    margin-top: 8px;
  }
}

@media (min-width: 1025px) and (max-height: 780px) {
  .decision-stage {
    padding-top: 56px;
    padding-bottom: 24px;
  }
  .decision-intro {
    margin-block: 6px 28px;
  }
  .decision-heading {
    font-size: clamp(2rem, 4.2vw, 3.55rem);
  }
  .decision-lede {
    line-height: 1.5;
  }
  .decision-summary,
  .decision-item.is-expanded .decision-summary {
    padding: 18px 24px;
  }
  .decision-problem,
  .decision-choice {
    margin-top: 8px;
  }
  .decision-evidence > div {
    padding-block: 11px;
  }
  .decision-toggle {
    min-height: 44px;
  }
}

@media (max-width: 1024px) {
  .decision-card {
    padding: 20px 20px 28px;
  }
  .decision-stage {
    position: static;
    padding: 28px 0 0;
    overflow: visible;
  }
  .decision-glow,
  .decision-mark {
    display: none;
  }
  .decision-shell {
    display: block;
    height: auto;
  }
  .decision-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px 0 24px;
  }
  .decision-lede {
    max-width: 60ch;
  }
  .decision-summary {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .decision-item.is-expanded .decision-summary {
    grid-template-columns: 1fr;
  }
  .decision-list {
    grid-auto-columns: 100%;
  }
  .decision-item {
    min-height: 0;
  }
  .decision-list:not(.has-expanded) .decision-item.is-expanded .decision-disclosure {
    flex: none;
  }
  .decision-list.has-expanded .decision-item.is-expanded .decision-disclosure {
    flex: 1;
    min-height: 0;
  }
  .decision-scroll {
    max-height: none;
    overflow: visible;
  }
  .decision-list.has-expanded .decision-scroll {
    height: 100%;
    overflow-y: auto;
  }
  .decision-scroll:focus-visible {
    outline: none;
  }
  .decision-article {
    width: min(100%, 74ch);
  }
}

@media (max-width: 640px) {
  .decision-card {
    border-radius: 24px;
  }
  .decision-list.has-expanded {
    padding: 12px;
  }
  .decision-list.has-expanded .decision-item.is-expanded {
    width: calc(100% - 24px);
    height: min(92dvh, 820px);
    border-radius: 18px;
  }
  .decision-heading {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }
  .decision-rail-head {
    justify-content: space-between;
    margin-top: -4px;
  }
  .decision-rail-btn {
    width: 44px;
    height: 44px;
  }
  .decision-summary {
    padding: 22px 18px;
  }
  .decision-summary h3 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }
  .decision-evidence {
    grid-template-columns: 1fr;
  }
  .decision-evidence > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 62px;
  }
  .decision-evidence > div + div {
    border-left: 0;
    border-top: 1px solid rgba(249, 245, 252, 0.14);
  }
  .decision-evidence dt {
    margin: 0;
  }
  .decision-toggle {
    width: 100%;
    min-height: 56px;
    padding-inline: 18px;
  }
  .decision-article {
    padding: 30px 18px 48px;
    font-size: 0.9rem;
  }
  .decision-work-grid {
    grid-template-columns: 1fr;
  }
  .decision-flow-pair {
    grid-template-columns: 1fr;
  }
  .decision-work-grid > div:nth-child(odd),
  .decision-work-grid > div:nth-child(even) {
    padding: 20px 0;
    border-left: 0;
  }
  .decision-process span {
    padding: 0 3px;
  }
}
