/* Visual V4 · Hero Living Game-World Stage + World Atmosphere Shift & Oversized Parallax Depth.
 * Self-contained layer on top of V2 stylesheets.
 * Preserves approved copy, accessibility, keyboard focus visibility, and M04 LCP discipline.
 */

body.editorial-v4 {
  --active-accent: var(--signal);
  --border-subtle: rgb(243 240 232 / 11%);
  --border-strong: rgb(243 240 232 / 20%);
  --signal-soft: rgb(215 255 115 / 10%);
  --signal-border: rgb(215 255 115 / 34%);
  --surface-glass: rgb(18 19 25 / 78%);
  --radius-control: 4px;
  --radius-media: 8px;
  --radius-card: 10px;
  --shadow-stage: 0 26px 60px rgb(0 0 0 / 50%);
  overflow-x: clip;
  position: relative;
}

/* Keep content layers above fixed atmosphere */
.editorial-v4 .mast-shell { position: sticky; top: 0; z-index: 40; }
.editorial-v4 main,
.editorial-v4 footer { position: relative; z-index: 1; }

/* ── Full-Viewport Ambient World Atmosphere ── */
.editorial-v4 .world-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.editorial-v4 .atmo-layer {
  position: absolute;
  inset: -6%;
  opacity: 0;
  transition: opacity 800ms cubic-bezier(.22, 1, .36, 1);
  will-change: opacity;
}
.editorial-v4 .atmo-layer.is-active {
  opacity: 1;
}
.editorial-v4 .atmo-hero {
  background:
    radial-gradient(54rem 38rem at 76% 24%, rgb(215 255 115 / 10%), transparent 65%),
    radial-gradient(46rem 34rem at 22% 18%, rgb(138 156 232 / 8%), transparent 70%);
}
.editorial-v4 .atmo-slime {
  background:
    radial-gradient(58rem 42rem at 26% 48%, rgb(156 238 88 / 15%), transparent 62%),
    radial-gradient(42rem 32rem at 64% 38%, rgb(255 202 82 / 9%), transparent 68%);
}
.editorial-v4 .atmo-cable {
  background:
    radial-gradient(58rem 42rem at 74% 48%, rgb(172 122 255 / 17%), transparent 62%),
    radial-gradient(44rem 34rem at 34% 44%, rgb(78 212 255 / 10%), transparent 68%);
}
.editorial-v4 .atmo-oasis {
  background:
    radial-gradient(60rem 44rem at 28% 48%, rgb(246 186 104 / 17%), transparent 62%),
    radial-gradient(44rem 34rem at 68% 42%, rgb(110 198 182 / 10%), transparent 68%);
}

/* ── Sticky Masthead & Dynamic Scroll Rail ── */
.editorial-v4 .mast-shell {
  width: 100%;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--motion-micro, 200ms) var(--ease-state, ease),
              box-shadow var(--motion-micro, 200ms) var(--ease-state, ease);
}
.editorial-v4 .mast-shell.is-scrolled {
  border-bottom-color: var(--border-strong);
  box-shadow: 0 12px 34px rgb(0 0 0 / 34%);
}
.editorial-v4 .mast-shell .mast {
  position: static;
  left: auto;
  transform: none;
  width: min(calc(100vw - 2 * var(--gutter)), 92rem);
  margin-inline: auto;
  padding-block: .8rem;
  border-bottom: 0;
}
.editorial-v4 .mast nav a {
  position: relative;
  color: var(--secondary);
  font-weight: 550;
  padding-inline: .1rem;
  text-decoration: none;
}
.editorial-v4 .mast nav a:hover,
.editorial-v4 .mast nav a[aria-current="location"] {
  color: var(--ink);
  text-decoration: none;
}
.editorial-v4 .mast nav a:not(.contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--active-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-micro, 200ms) var(--ease-enter, ease),
              background-color 400ms ease;
}
.editorial-v4 .mast nav a:not(.contact):hover::after,
.editorial-v4 .mast nav a:not(.contact)[aria-current="location"]::after {
  transform: scaleX(1);
}
.editorial-v4 .mast .contact {
  min-height: 36px;
  padding: .42rem .95rem;
  border: 1px solid var(--signal-border);
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal);
  font-weight: 650;
  transition: background-color var(--motion-instant, 120ms) ease,
              color var(--motion-instant, 120ms) ease,
              border-color var(--motion-instant, 120ms) ease;
}
.editorial-v4 .mast .contact:hover,
.editorial-v4 .mast .contact[aria-current="location"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--canvas);
}
.editorial-v4 .scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.editorial-v4 .scroll-rail span {
  display: block;
  height: 100%;
  background: var(--active-accent);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  transition: background-color 450ms ease;
  will-change: transform;
}

.editorial-v4 #work,
.editorial-v4 .portfolio-section {
  scroll-margin-top: 5.5rem;
}

/* ── Hero Copy & CTAs ── */
.editorial-v4 .hero-v2 {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  padding-block: clamp(2.1rem, 4.4vh, 3.5rem) clamp(2.6rem, 5.5vh, 4.4rem);
  align-items: center;
}
.editorial-v4 .hero-title .role {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--signal-border);
  background: var(--signal-soft);
  color: var(--signal);
  letter-spacing: .1em;
}
.editorial-v4 .hero-title .role::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}
.editorial-v4 .hero-v2 .hero-title h1 {
  margin-block: .85rem .7rem;
}
.editorial-v4 .hero-v2 .hero-title .focus {
  color: var(--ink);
  font-weight: 500;
  opacity: .94;
}
.editorial-v4 .hero-actions {
  gap: .75rem 1rem;
  margin-top: 1.5rem;
  align-items: center;
}
.editorial-v4 .hero-actions .jump {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .72rem 1.25rem;
  border: 1px solid var(--signal);
  border-radius: var(--radius-control);
  background: var(--signal);
  color: var(--canvas);
  font-weight: 700;
  font-size: .9375rem;
}
.editorial-v4 .hero-actions .jump span { color: currentColor; }
.editorial-v4 .hero-actions .jump:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
}
.editorial-v4 .cv-slot {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .68rem 1.05rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-control);
  background: rgb(255 255 255 / 2.5%);
  color: var(--secondary);
  font-size: .9rem;
  font-weight: 550;
}
.editorial-v4 .cv-slot:disabled {
  color: var(--muted);
  cursor: not-allowed;
}
.editorial-v4 .cv-slot .slot-tag {
  font: 600 .68rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .22rem .45rem;
  border-radius: 3px;
  background: var(--surface-raised);
  color: var(--secondary);
}

/* ── Hero Living Game-World Stage + Centered 4:5 Portrait ── */
.editorial-v4 .hero-stage {
  grid-area: portrait;
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 1 / 1.02;
  justify-self: end;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.editorial-v4 .hero-aura {
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 32%, rgb(156 238 88 / 18%), transparent 46%),
    radial-gradient(circle at 78% 28%, rgb(172 122 255 / 18%), transparent 46%),
    radial-gradient(circle at 38% 82%, rgb(246 186 104 / 16%), transparent 48%);
  filter: blur(26px);
}
.editorial-v4 .hero-aura::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgb(243 240 232 / 9%);
}
.editorial-v4 .hero-aura::after {
  content: "";
  position: absolute;
  inset: 22% 8%;
  border-top: 1px solid rgb(243 240 232 / 6%);
  border-bottom: 1px solid rgb(243 240 232 / 6%);
}

/* Layered game plates orbiting the portrait */
.editorial-v4 .stage-plate {
  position: absolute;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgb(243 240 232 / 20%);
  background: var(--surface);
  box-shadow: 0 22px 48px rgb(0 0 0 / 56%);
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1),
              border-color 220ms ease,
              box-shadow 260ms ease,
              filter 260ms ease;
  will-change: transform;
}
.editorial-v4 .stage-plate img,
.editorial-v4 .stage-plate video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) brightness(.84);
  transition: filter 260ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1);
}
.editorial-v4 .stage-plate .plate-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: .22rem .52rem;
  border-radius: 3px;
  background: rgb(16 17 22 / 84%);
  border: 1px solid rgb(243 240 232 / 18%);
  color: var(--ink);
  font: 600 .65rem/1.2 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.editorial-v4 .stage-plate--combat {
  z-index: 2;
  width: 39%;
  aspect-ratio: 9 / 16;
  left: 0;
  top: 2%;
  transform: translate3d(var(--px-1, 0px), var(--py-1, 0px), 0) rotate(-7deg);
}
.editorial-v4 .stage-plate--combat .plate-tag { color: #c8ff6b; border-color: rgb(200 255 107 / 34%); }

.editorial-v4 .stage-plate--puzzle {
  z-index: 1;
  width: 39%;
  aspect-ratio: 3 / 4;
  right: 0;
  top: 6%;
  transform: translate3d(var(--px-2, 0px), var(--py-2, 0px), 0) rotate(7.5deg);
}
.editorial-v4 .stage-plate--puzzle .plate-tag {
  left: auto;
  right: 8px;
  top: 8px;
  bottom: auto;
  color: #cbb2ff;
  border-color: rgb(203 178 255 / 34%);
}

.editorial-v4 .stage-plate--world {
  z-index: 2;
  width: 48%;
  aspect-ratio: 16 / 10;
  left: 3%;
  bottom: 1%;
  transform: translate3d(var(--px-3, 0px), var(--py-3, 0px), 0) rotate(-3.5deg);
}
.editorial-v4 .stage-plate--world .plate-tag { color: #f6c47b; border-color: rgb(246 196 123 / 34%); }

@media (hover: hover) and (pointer: fine) {
  .editorial-v4 .stage-plate:hover {
    z-index: 5;
    transform: translate3d(0, -6px, 0) scale(1.045) rotate(0deg);
    border-color: var(--signal);
    box-shadow: 0 28px 64px rgb(0 0 0 / 68%);
  }
  .editorial-v4 .stage-plate:hover img,
  .editorial-v4 .stage-plate:hover video {
    filter: saturate(1.06) brightness(1);
    transform: scale(1.03);
  }
}

/* Foreground 4:5 Portrait Frame */
.editorial-v4 .hero-portrait {
  grid-area: auto;
  justify-self: center;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 60%;
  margin-left: 10%;
  aspect-ratio: 4 / 5;
  padding: 1.15rem 1.15rem;
  border-radius: var(--radius-card);
  border: 1px solid rgb(243 240 232 / 24%);
  background:
    radial-gradient(circle at 50% 35%, rgb(215 255 115 / 9%), transparent 56%),
    radial-gradient(rgb(243 240 232 / 9%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(28 30 38 / 90%) 0%, rgb(20 21 27 / 94%) 100%);
  background-size: 100% 100%, 16px 16px, 100% 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 72px rgb(0 0 0 / 65%), inset 0 1px 0 rgb(255 255 255 / 8%);
  overflow: hidden;
  transform: translate3d(var(--px-hero, 0px), var(--py-hero, 0px), 0);
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}
.editorial-v4 .hero-portrait::before,
.editorial-v4 .hero-portrait::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--signal-border);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.editorial-v4 .hero-portrait::before { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.editorial-v4 .hero-portrait::after { right: 8px; bottom: 8px; border-width: 0 1.5px 1.5px 0; }

.editorial-v4 .portrait-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  font: 600 .62rem/1.35 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.editorial-v4 .portrait-status {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: var(--signal);
}
.editorial-v4 .portrait-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
}
.editorial-v4 .portrait-emblem {
  place-self: center;
  display: grid;
  place-items: center;
  gap: .55rem;
  text-align: center;
}
.editorial-v4 .portrait-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgb(16 17 22 / 78%);
  font: 650 1.65rem/1 var(--display);
  letter-spacing: -.05em;
  color: var(--ink);
  box-shadow: inset 0 0 0 5px rgb(243 240 232 / 3.5%);
}
.editorial-v4 .portrait-monogram span { color: var(--signal); }
.editorial-v4 .portrait-caption {
  font: 500 .68rem/1.45 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.editorial-v4 .portrait-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border-subtle);
}
.editorial-v4 .portrait-meta div { min-width: 0; }
.editorial-v4 .portrait-meta dt {
  font: 600 .62rem/1.3 var(--mono);
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--muted);
}
.editorial-v4 .portrait-meta dd {
  margin: .15rem 0 0;
  font: 550 .8rem/1.3 var(--body-face);
  color: var(--ink);
}
/* Drop-in real photo support: hides placeholder chrome automatically */
.editorial-v4 .hero-portrait:has(img) {
  display: block;
  padding: 0;
  background: #2f2d2c;
  border-color: rgb(243 240 232 / 22%);
}
.editorial-v4 .hero-portrait:has(img) > :not(img) { display: none; }
.editorial-v4 .hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transform-origin: 50% 82%;
}

/* ── Unified Section Headers ── */
.editorial-v4 .section-header {
  display: grid;
  gap: .45rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(1.75rem, 3.2vw, 2.75rem);
}
.editorial-v4 .section-header--wide {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 2 * var(--gutter)), 92rem);
}
.editorial-v4 .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 600 var(--type-meta)/1.4 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--signal);
}
.editorial-v4 .section-kicker span { color: var(--muted); }
.editorial-v4 .section-header h2,
.editorial-v4 #work-title {
  position: static;
  left: auto;
  transform: none;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--display);
  font-size: var(--type-section);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: var(--heading-tracking);
  text-transform: none;
  color: var(--ink);
}
.editorial-v4 #work-title::after { display: none; }

/* ── Featured Projects — Per-World Lighting, Floating Gallery, Oversized Numerals & Multi-Plane Parallax ── */
.editorial-v4 .featured-project {
  --world-accent: var(--signal);
  --world-glow: rgb(215 255 115 / 18%);
  --world-glow-secondary: rgb(140 160 220 / 12%);
  --world-border: rgb(215 255 115 / 30%);
  --world-tint: rgb(215 255 115 / 8%);
  margin-bottom: clamp(3.75rem, 7vw, 6.25rem);
}
.editorial-v4 #slimeslicer {
  --world-accent: #c8ff6b;
  --world-glow: rgb(156 238 88 / 22%);
  --world-glow-secondary: rgb(255 202 82 / 14%);
  --world-border: rgb(200 255 107 / 32%);
  --world-tint: rgb(200 255 107 / 8%);
}
.editorial-v4 #cablenest {
  --world-accent: #cbb2ff;
  --world-glow: rgb(172 122 255 / 24%);
  --world-glow-secondary: rgb(78 212 255 / 14%);
  --world-border: rgb(203 178 255 / 34%);
  --world-tint: rgb(203 178 255 / 9%);
}
.editorial-v4 #the-last-oasis {
  --world-accent: #f6c47b;
  --world-glow: rgb(246 186 104 / 24%);
  --world-glow-secondary: rgb(110 198 182 / 14%);
  --world-border: rgb(246 196 123 / 34%);
  --world-tint: rgb(246 196 123 / 9%);
}
.editorial-v4 .featured-project + .featured-project {
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(3rem, 5.2vw, 4.75rem);
}

/* Floating media over per-game atmospheric halo (no heavy grey outer box!) */
.editorial-v4 .featured-project > figure {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  padding: 0;
}
.editorial-v4 .featured-project > figure::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, var(--world-glow), var(--world-glow-secondary) 48%, transparent 74%);
  filter: blur(26px);
  pointer-events: none;
}
.editorial-v4 .slime-footage video,
.editorial-v4 .oasis-showcase video,
.editorial-v4 .combat-stills a {
  border-radius: var(--radius-media);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 24px 56px rgb(0 0 0 / 52%);
}
.editorial-v4 .oasis-showcase video {
  aspect-ratio: 16 / 9;
  background: var(--surface-raised);
  object-fit: cover;
}
.editorial-v4 .combat-stills a {
  position: relative;
  background: var(--surface-raised);
}
.editorial-v4 .combat-stills a::after {
  content: "↗";
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(20 21 27 / 84%);
  border: 1px solid rgb(243 240 232 / 24%);
  color: var(--ink);
  font: 700 13px/1 var(--body-face);
  pointer-events: none;
  transition: background-color var(--motion-instant, 120ms) ease,
              color var(--motion-instant, 120ms) ease,
              border-color var(--motion-instant, 120ms) ease,
              transform var(--motion-micro, 200ms) var(--ease-enter, ease);
}
.editorial-v4 .combat-stills a:hover::after,
.editorial-v4 .combat-stills a:focus-visible::after {
  background: var(--world-accent);
  border-color: var(--world-accent);
  color: var(--canvas);
  transform: scale(1.08);
}

.editorial-v4 .combat-toggle { bottom: 6px; right: 6px; }
.editorial-v4 .combat-toggle svg {
  border: 1px solid rgb(243 240 232 / 22%);
  box-shadow: 0 4px 14px rgb(0 0 0 / 38%);
}

/* Oversized Architectural Numerals layered behind .project-title */
.editorial-v4 .project-title {
  position: relative;
  isolation: isolate;
  padding-top: clamp(2.8rem, 4.8vw, 4.2rem);
}
.editorial-v4 .chapter-numeral {
  position: absolute;
  top: -.2em;
  left: -.04em;
  z-index: -1;
  font: 700 clamp(6.2rem, 11.5vw, 10.5rem)/.82 var(--display);
  letter-spacing: -.065em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--world-border);
  background: linear-gradient(180deg, var(--world-accent) 0%, transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .42;
  mask-image: linear-gradient(180deg, #000 24%, rgb(0 0 0 / 38%) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 24%, rgb(0 0 0 / 38%) 70%, transparent 100%);
  pointer-events: none;
  user-select: none;
  transform: translate3d(0, var(--parallax-numeral, 0px), 0);
  will-change: transform;
}
.editorial-v4 .project-title .meta {
  display: block;
  color: var(--world-accent);
  line-height: 1.65;
}
.editorial-v4 .project-title .meta::before { display: none; }
.editorial-v4 .featured-content h3 { margin-top: .45rem; }
.editorial-v4 .featured-content > :is(.lead, .contribution, .highlights, .links) {
  margin-top: clamp(1rem, 1.8vw, 1.45rem);
}

/* World-tinted Highlight Pills */
.editorial-v4 .featured-content .highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
.editorial-v4 .featured-content .highlights li {
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--world-border);
  background: var(--world-tint);
  color: var(--ink);
  font: 550 .76rem/1.35 var(--mono);
  letter-spacing: .02em;
}
.editorial-v4 .featured-content .links {
  gap: .75rem 1rem;
  align-items: center;
}
.editorial-v4 .featured-content .button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .68rem 1.2rem;
  border-radius: var(--radius-control);
  font-weight: 700;
}
.editorial-v4 .featured-content .links a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .65rem 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: rgb(255 255 255 / 2.5%);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--motion-instant, 120ms) ease,
              background-color var(--motion-instant, 120ms) ease,
              color var(--motion-instant, 120ms) ease;
}
.editorial-v4 .featured-content .links a:not(.button):hover {
  border-color: var(--world-accent);
  background: var(--world-tint);
  color: var(--world-accent);
  text-decoration: none;
}

/* Multi-plane parallax depth on desktop */
@media (min-width: 841px) and (prefers-reduced-motion: no-preference) {
  .editorial-v4 .featured-project .combat-player {
    transform: translate3d(0, var(--parallax-primary, 0px), 0);
    will-change: transform;
  }
  .editorial-v4 .featured-project .combat-stills {
    transform: translate3d(0, var(--parallax-stills, 0px), 0);
    will-change: transform;
  }
  .editorial-v4 .featured-project + .featured-project::before {
    background: var(--world-accent);
  }
}

/* Lightbox polish + Two-Way FLIP transitions */
.editorial-v4 .combat-stills a img {
  transition: opacity 180ms ease, filter 160ms ease;
}
.editorial-v4 .combat-stills a.is-expanded img {
  opacity: .28;
}
.editorial-v4 .design-detail img {
  border-radius: var(--radius-media);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgb(0 0 0 / 58%);
}
.editorial-v4 .design-detail button {
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  bottom: calc(100% + 8px);
  transition: border-color 140ms ease, color 140ms ease, transform 160ms cubic-bezier(.22, 1, .36, 1);
}
.editorial-v4 .design-detail button:hover {
  border-color: var(--signal);
  color: var(--signal);
  transform: scale(1.04);
}
.editorial-v4 .design-detail[data-closing]::backdrop {
  opacity: 0;
  transition: opacity 210ms ease-out;
}

/* ── Additional Projects — Clean Architectural Editorial Shelf ── */
.editorial-v4 #other-games .project-shelf {
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: 0;
}
.editorial-v4 #other-games .small-project {
  position: relative;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform var(--motion-micro, 200ms) var(--ease-enter, ease),
              border-color var(--motion-micro, 200ms) ease;
}
@media (hover: hover) and (pointer: fine) {
  .editorial-v4 #other-games .small-project:hover {
    transform: translateY(-3px);
    border-bottom-color: var(--signal-border);
  }
}
.editorial-v4 .additional-cover {
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-media);
  margin-bottom: 14px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 38%);
}
.editorial-v4 .additional-cover .cover-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  opacity: 0;
  pointer-events: none;
  background: var(--surface);
  transition: opacity 240ms cubic-bezier(.22, 1, .36, 1);
}
.editorial-v4 .additional-cover.is-previewing .cover-preview {
  opacity: 1;
}
.editorial-v4 .additional-cover .preview-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .2rem .52rem;
  border-radius: 999px;
  background: rgb(16 17 22 / 82%);
  border: 1px solid var(--signal-border);
  color: var(--signal);
  font: 600 .64rem/1.2 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 200ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.editorial-v4 .additional-cover.is-previewing .preview-pill {
  opacity: 1;
  transform: translateY(0);
}
.editorial-v4 .additional-cover::after {
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(243 240 232 / 24%);
}
.editorial-v4 .additional-cover::before {
  z-index: 3;
  right: 23px;
  bottom: 23px;
}
.editorial-v4 .small-project h3 { margin-top: 4px; }
.editorial-v4 .small-project .project-notes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.editorial-v4 .small-project summary {
  margin-top: 0;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.45;
}
.editorial-v4 .small-project details p {
  font-size: .9375rem;
  line-height: 1.6;
}
.editorial-v4 .small-project .links { margin-top: 12px; }
.editorial-v4 .small-project .links a {
  color: var(--signal);
  font-weight: 600;
  font-size: .9rem;
}

/* ── Skills — Architectural Hairline Columns with Gradient Top Glow ── */
.editorial-v4 .capabilities { gap: clamp(20px, 2.4vw, 30px); }
.editorial-v4 .capabilities > div {
  position: relative;
  border-top: 2px solid var(--rule);
  padding: 20px 0 6px;
  background: linear-gradient(180deg, rgb(255 255 255 / 2.2%) 0%, transparent 72%);
  transition: border-color var(--motion-micro, 200ms) ease;
}
.editorial-v4 .capabilities > div:hover { border-top-color: var(--border-strong); }
.editorial-v4 .capabilities #design-skills {
  border-top-color: var(--signal);
  background: linear-gradient(180deg, rgb(215 255 115 / 6%) 0%, transparent 75%);
}
.editorial-v4 .capability-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--border-subtle);
  color: var(--ink);
}
.editorial-v4 #design-skills .capability-icon {
  background: var(--signal-soft);
  border-color: var(--signal-border);
  color: var(--signal);
}
.editorial-v4 .capabilities svg { width: 19px; height: 19px; }
.editorial-v4 .capabilities h3 { margin: 14px 0 12px; }
.editorial-v4 .capabilities ul {
  display: grid;
  gap: 7px;
  font-size: .95rem;
  line-height: 1.5;
}
.editorial-v4 .capabilities li {
  position: relative;
  padding-left: 14px;
}
.editorial-v4 .capabilities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rule);
}
.editorial-v4 #design-skills li::before { background: var(--signal); }

/* ── Professional Experience — Gallery Stage + Perspective Callout ── */
.editorial-v4 .career-feature figure {
  position: relative;
  z-index: 1;
}
.editorial-v4 .career-feature figure::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgb(255 148 72 / 14%), transparent 68%);
  filter: blur(22px);
  pointer-events: none;
}
.editorial-v4 .career-feature figure img {
  border-radius: var(--radius-media);
  border: 1px solid rgb(255 255 255 / 12%);
  box-shadow: 0 22px 50px rgb(0 0 0 / 48%);
}
.editorial-v4 .career-copy > .profile-label {
  display: inline-block;
  padding: .24rem .65rem;
  border-radius: 999px;
  background: var(--signal-soft);
  border: 1px solid var(--signal-border);
  color: var(--signal);
  margin-bottom: .35rem;
}
.editorial-v4 .career-copy ul li::marker { color: var(--signal); }
.editorial-v4 .production-note {
  background: linear-gradient(90deg, rgb(215 255 115 / 6%), transparent 70%);
  border-left: 3px solid var(--signal);
  padding: 16px 20px;
}

/* ── About & Contact ── */
.editorial-v4 .philosophy {
  padding-left: 20px;
  border-left: 2px solid var(--signal-border);
}
.editorial-v4 .philosophy blockquote { color: var(--ink); }
.editorial-v4 .contact-line {
  background:
    radial-gradient(40rem 18rem at 100% 50%, rgb(215 255 115 / 9%), transparent 70%),
    rgb(255 255 255 / 2.2%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: clamp(1.35rem, 2.8vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.editorial-v4 .contact-heading p {
  margin-top: .35rem;
  color: var(--secondary);
  font-size: .95rem;
}
.editorial-v4 .contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}
.editorial-v4 .profile-email {
  border-radius: var(--radius-control);
  gap: .45rem;
}
.editorial-v4 .copy-email {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: rgb(20 21 27 / 55%);
  color: var(--ink);
  font: 550 .875rem/1.2 var(--mono);
  cursor: pointer;
  transition: border-color var(--motion-instant, 120ms) ease,
              color var(--motion-instant, 120ms) ease,
              background-color var(--motion-instant, 120ms) ease;
}
.editorial-v4 .copy-email:hover {
  border-color: var(--signal);
  color: var(--signal);
}
.editorial-v4 .copy-email[data-copied="true"] {
  border-color: var(--signal);
  background: var(--signal-soft);
  color: var(--signal);
}

/* ── Tablet & Mobile Responsive Rules ── */
@media (max-width: 1080px) and (min-width: 841px) {
  .editorial-v4 .hero-stage { width: min(100%, 28rem); }
  .editorial-v4 .hero-portrait { width: 62%; }
}

@media (max-width: 840px) {
  .editorial-v4 .hero-v2 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "intro" "portrait";
    gap: 1.5rem;
  }
  .editorial-v4 .hero-stage {
    justify-self: center;
    width: min(100%, 27rem);
  }
  .editorial-v4 .section-header--wide {
    width: 100%;
    left: auto;
    transform: none;
  }
  /* Keep CableNest in the exact same tight 2-column magazine spread as SlimeSlicer */
  .editorial-v4 .cable-footage {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) calc((100% - 15.625px) / 2.21875);
  }
  .editorial-v4 .cable-footage .combat-player {
    width: 100%;
    justify-self: stretch;
  }
  .editorial-v4 .cable-footage .combat-stills { grid-template-columns: 1fr; }
  .editorial-v4 .oasis-stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .editorial-v4 .mast-shell .mast {
    width: 90%;
    display: grid;
    gap: .3rem;
    padding-block: .65rem .45rem;
  }
  .editorial-v4 .mast nav {
    gap: .35rem 1rem;
    justify-content: flex-start;
  }
  .editorial-v4 .mast .contact {
    padding: .3rem .75rem;
    min-height: 34px;
    font-size: .82rem;
  }
  .editorial-v4 .hero-v2 {
    gap: 1.05rem;
    padding-block: 1.15rem 2rem;
  }
  .editorial-v4 .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.1rem;
  }
  .editorial-v4 .hero-actions .jump,
  .editorial-v4 .hero-actions .cv-slot {
    flex: 1 1 13rem;
    justify-content: center;
    padding-inline: 1rem;
    font-size: .9rem;
    white-space: nowrap;
  }
  /* Compact fanned Hero Stage on mobile */
  .editorial-v4 .hero-stage {
    width: 100%;
    aspect-ratio: auto;
    display: block;
    padding-top: 4.9rem;
  }
  .editorial-v4 .stage-plate--combat {
    width: 31%;
    height: 7.2rem;
    aspect-ratio: auto;
    left: 2%;
    top: 0;
    transform: rotate(-6deg);
  }
  .editorial-v4 .stage-plate--world {
    width: 40%;
    height: 6.7rem;
    aspect-ratio: auto;
    left: 30%;
    top: .35rem;
    bottom: auto;
    z-index: 2;
    transform: rotate(1.5deg);
  }
  .editorial-v4 .stage-plate--puzzle {
    width: 31%;
    height: 7.2rem;
    aspect-ratio: auto;
    right: 2%;
    top: 0;
    transform: rotate(6deg);
  }
  .editorial-v4 .stage-plate .plate-tag {
    left: 5px;
    top: 5px;
    bottom: auto;
    padding: .16rem .38rem;
    font-size: .56rem;
  }
  .editorial-v4 .stage-plate--puzzle .plate-tag {
    left: auto;
    right: 5px;
  }
  .editorial-v4 .hero-portrait:not(:has(img)) {
    width: 100%;
    margin-left: 0;
    aspect-ratio: auto;
    grid-template-rows: auto auto;
    padding: 1.05rem 1.1rem;
    gap: .75rem;
  }
  .editorial-v4 .hero-portrait:not(:has(img)) .portrait-emblem {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: .8rem;
    text-align: left;
  }
  .editorial-v4 .hero-portrait:not(:has(img)) .portrait-monogram {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }
  .editorial-v4 .hero-stage:has(.hero-portrait img) {
    padding-top: 4.4rem;
  }
  .editorial-v4 .hero-portrait:has(img) {
    width: min(74%, 15.5rem);
    margin-left: auto;
    aspect-ratio: 4 / 5;
    margin-inline: auto;
  }
  .editorial-v4 .project-title { padding-top: 2.7rem; }
  .editorial-v4 .chapter-numeral {
    font-size: 5.4rem;
    top: -.1em;
  }
  .editorial-v4 .combat-stills a::after {
    width: 24px;
    height: 24px;
    font-size: 11px;
    right: 6px;
    bottom: 6px;
  }
  .editorial-v4 .philosophy { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-v4 .atmo-layer,
  .editorial-v4 .stage-plate,
  .editorial-v4 .hero-portrait,
  .editorial-v4 .mast nav a:not(.contact)::after,
  .editorial-v4 .small-project,
  .editorial-v4 .combat-stills a::after,
  .editorial-v4 .additional-cover .cover-preview,
  .editorial-v4 .additional-cover .preview-pill,
  .editorial-v4 .design-detail button,
  .editorial-v4 :is(.hero-actions .jump, .featured-content .button, .profile-email)::after {
    transition: none !important;
  }
  .editorial-v4 .hero-aura {
    animation: none !important;
  }
  .editorial-v4 .chapter-numeral,
  .editorial-v4 .featured-project .combat-player,
  .editorial-v4 .featured-project .combat-stills,
  .editorial-v4 .hero-portrait,
  .editorial-v4 .stage-plate {
    transform: none !important;
  }
}

/* ── Surgical Motion Polish (Hero Fan-Out Intro, Aura Breathing, Tactile CTA Sheen) ── */
@keyframes aura-breathe {
  from { transform: scale(1) translate3d(0, 0, 0); opacity: .86; }
  to { transform: scale(1.06) translate3d(1.5%, -1.5%, 0); opacity: 1; }
}
@keyframes portrait-settle {
  from { opacity: 0; scale: .94; translate: 0 16px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}
@keyframes deal-combat {
  from { opacity: 0; transform: translate3d(38%, 12%, 0) scale(.86) rotate(0deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(-7deg); }
}
@keyframes deal-puzzle {
  from { opacity: 0; transform: translate3d(-34%, 10%, 0) scale(.86) rotate(0deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(7.5deg); }
}
@keyframes deal-world {
  from { opacity: 0; transform: translate3d(30%, -14%, 0) scale(.88) rotate(0deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(-3.5deg); }
}
@keyframes deal-mobile-card {
  from { opacity: 0; translate: 0 18px; scale: .93; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .editorial-v4 .hero-aura {
    animation: aura-breathe 9s ease-in-out infinite alternate;
  }
  .motion-intro .editorial-v4 .hero-portrait {
    animation: portrait-settle 420ms cubic-bezier(.22, 1, .36, 1) 70ms backwards;
  }
  @media (min-width: 841px) {
    .motion-intro .editorial-v4 .stage-plate--combat {
      animation: deal-combat 460ms cubic-bezier(.18, 1, .32, 1) 180ms backwards;
    }
    .motion-intro .editorial-v4 .stage-plate--puzzle {
      animation: deal-puzzle 460ms cubic-bezier(.18, 1, .32, 1) 240ms backwards;
    }
    .motion-intro .editorial-v4 .stage-plate--world {
      animation: deal-world 450ms cubic-bezier(.18, 1, .32, 1) 290ms backwards;
    }
  }
  @media (max-width: 840px) {
    .motion-intro .editorial-v4 .stage-plate--combat {
      animation: deal-mobile-card 400ms cubic-bezier(.18, 1, .32, 1) 160ms backwards;
    }
    .motion-intro .editorial-v4 .stage-plate--puzzle {
      animation: deal-mobile-card 400ms cubic-bezier(.18, 1, .32, 1) 220ms backwards;
    }
    .motion-intro .editorial-v4 .stage-plate--world {
      animation: deal-mobile-card 400ms cubic-bezier(.18, 1, .32, 1) 280ms backwards;
    }
  }

  /* Tactile CTA specular sheen & directional arrow */
  .editorial-v4 :is(.hero-actions .jump, .featured-content .button, .profile-email) {
    position: relative;
    overflow: hidden;
  }
  .editorial-v4 :is(.hero-actions .jump, .featured-content .button, .profile-email)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / 38%) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 460ms cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
  }
  .editorial-v4 :is(.hero-actions .jump, .featured-content .button, .profile-email):hover::after {
    transform: translateX(120%);
  }
  .editorial-v4 :is(.hero-actions .jump, .featured-content .button, .profile-email):active {
    transform: translateY(1.5px) scale(.985);
  }
  .editorial-v4 .featured-content .button:hover .link-arrow {
    transform: translateX(3px);
  }
}
