/* Logic & Luster — Nocturnal Romantic Editorial layer
   Added as a visual refinement over the existing portfolio system.
   Direction: dark romance / gothic editorial / modern archive.
*/

:root {
  --ll-ink: #0a0909;
  --ll-charcoal: #151213;
  --ll-charcoal-2: #1d181a;
  --ll-bone: #e5ded2;
  --ll-bone-soft: #b9b0a5;
  --ll-plum: #43263f;
  --ll-lilac: #b9a4b5;
  --ll-line: rgba(229, 222, 210, .18);
}

.story-shell {
  --ink: var(--ll-bone);
  --ink-soft: var(--ll-bone-soft);
  --night: var(--ll-ink);
  --plum: #171315;
  --plum-light: #211a1d;
  --lilac: #b9a4b5;
  --moon: var(--ll-bone);
  --silver: #9f9790;
  background:
    radial-gradient(circle at 82% 8%, rgba(67, 38, 63, .18), transparent 24rem),
    var(--ll-ink);
  color: var(--ll-bone);
}

.story-shell::before {
  opacity: .045;
  mix-blend-mode: screen;
}

.story-nav {
  padding: 22px clamp(20px, 5vw, 72px);
  background: linear-gradient(to bottom, rgba(10, 9, 9, .94), rgba(10, 9, 9, .45), transparent);
  backdrop-filter: blur(5px);
}

.nav-mark {
  letter-spacing: .14em;
}

.nav-mark i {
  color: var(--ll-plum);
}

.nav-shop-link,
.nav-resume {
  color: var(--ll-bone) !important;
  background: transparent !important;
  border: 1px solid rgba(229, 222, 210, .32);
  border-radius: 0;
  box-shadow: none;
}

.nav-shop-link:hover,
.nav-shop-link:focus-visible,
.nav-resume:hover,
.nav-resume:focus-visible {
  color: var(--ll-bone) !important;
  background: var(--ll-plum) !important;
  border-color: var(--ll-plum);
}

.section {
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  left: clamp(20px, 7vw, 116px);
  right: clamp(20px, 7vw, 116px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,222,210,.15), transparent);
}

.eyebrow {
  color: var(--ll-plum);
  letter-spacing: .2em;
}

.section-title,
.hero-title,
.lab-title,
.contact-title,
.project-name,
.portfolio-card-body h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.hero {
  min-height: 100svh;
  background:
    radial-gradient(circle at 76% 30%, rgba(101,31,43,.17), transparent 18rem),
    linear-gradient(135deg, #0a0909 0%, #110e0f 55%, #171114 100%);
}

.hero-title {
  letter-spacing: -.055em;
}

.hero-title .accent-word {
  color: var(--ll-bone);
  text-shadow: 0 0 45px rgba(229,222,210,.08);
}

.hero-kicker {
  color: #9f9790;
}

.hero-intro {
  color: var(--ll-bone);
}

.hero-sub {
  color: #a69e96;
}

.button-primary {
  background: var(--ll-plum);
  border-color: var(--ll-plum);
  border-radius: 0;
}

.button-secondary {
  border-color: rgba(229,222,210,.38);
  border-radius: 0;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--ll-bone);
  color: var(--ll-ink);
}

.hero-visual {
  filter: saturate(.72);
}

.moon-archive {
  background:
    radial-gradient(circle at 63% 32%, rgba(229,222,210,.08), transparent 20%),
    linear-gradient(145deg, #241b20, #0d0b0c 72%);
  border: 1px solid rgba(229,222,210,.22);
  box-shadow: 18px 22px 0 rgba(0,0,0,.28);
  transform: rotate(1.5deg);
}

.archive-moon {
  background: var(--ll-bone);
  box-shadow: 0 0 70px rgba(229,222,210,.13);
}

.archive-orbit {
  border-color: rgba(229,222,210,.24);
}

.orbit-two {
  border-color: rgba(101,31,43,.58);
}

.archive-card {
  background: var(--ll-bone);
  color: var(--ll-ink);
  box-shadow: 12px 14px 0 rgba(0,0,0,.42);
}

.archive-card-main span {
  color: var(--ll-plum);
}

.archive-card-small {
  background: var(--ll-plum);
}

.hero-bat {
  color: var(--ll-bone);
}

.scroll-cue {
  color: #8f8881;
}

.manifesto {
  background:
    linear-gradient(110deg, #641f2b 0%, #4c1c26 54%, #37151d 100%);
}

.manifesto-copy em {
  color: var(--ll-bone);
}

.work {
  background:
    radial-gradient(circle at 12% 20%, rgba(67,38,63,.16), transparent 22rem),
    #100d0e;
}

.work-head {
  max-width: none;
  margin-bottom: 64px;
}

.work-head .section-title {
  max-width: 760px;
}

.work-head .section-title {
  font-size: 0;
}

.work-head .section-title::after {
  content: "The Archive";
  font: 400 clamp(52px, 7vw, 94px)/.9 "Instrument Serif", Georgia, serif;
  letter-spacing: -.045em;
}

.work-intro {
  max-width: 540px;
  color: #9f9790;
  font-family: "DM Sans", sans-serif;
  line-height: 1.75;
}

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(229,222,210,.14);
  border-top: 1px solid rgba(229,222,210,.14);
  border-left: 1px solid rgba(229,222,210,.14);
}

.portfolio-card {
  border: 0;
  border-right: 1px solid rgba(229,222,210,.14);
  border-bottom: 1px solid rgba(229,222,210,.14);
  border-radius: 0;
  background: #100d0e;
  transition: background .35s ease, transform .35s ease;
}

.portfolio-card::before {
  content: "ARCHIVE";
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 20px;
  color: rgba(229,222,210,.72);
  font: 700 8px "Space Mono", monospace;
  letter-spacing: .18em;
  pointer-events: none;
}

.portfolio-card:nth-child(1)::after,
.portfolio-card:nth-child(2)::after,
.portfolio-card:nth-child(3)::after,
.portfolio-card:nth-child(4)::after {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 20px;
  color: var(--ll-plum);
  font: 700 9px "Space Mono", monospace;
  letter-spacing: .12em;
  pointer-events: none;
}

.portfolio-card:nth-child(1)::after { content: "001"; }
.portfolio-card:nth-child(2)::after { content: "002"; }
.portfolio-card:nth-child(3)::after { content: "003"; }
.portfolio-card:nth-child(4)::after { content: "004"; }

.portfolio-card:hover {
  transform: none;
  background: #191416;
}

.portfolio-image {
  aspect-ratio: 16 / 10;
  background: #0a0909;
}

.portfolio-image::after {
  background: linear-gradient(to bottom, rgba(10,9,9,.08), rgba(10,9,9,.48));
}

.portfolio-image img {
  filter: saturate(.72) contrast(1.06) brightness(.86);
  transition: transform 700ms cubic-bezier(.2,.75,.25,1), filter 500ms ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.025);
  filter: saturate(.84) contrast(1.08) brightness(.92);
}

.portfolio-card-body {
  padding: 28px 28px 32px;
  min-height: 190px;
  background: linear-gradient(180deg, #151112, #0e0c0d);
}

.project-number {
  color: #a995a2;
}

.project-meta {
  color: #a69e96;
}

.portfolio-card-body h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -.025em;
}

.portfolio-card-body p {
  color: #918a84;
  max-width: 500px;
}

.portfolio-coming {
  margin-top: 1px;
  padding: 32px;
  border: 1px solid rgba(229,222,210,.14);
  border-radius: 0;
  background: #0d0b0c;
}

.lab {
  background:
    radial-gradient(circle at 72% 40%, rgba(101,31,43,.12), transparent 22rem),
    #090808;
}

.lab-title i {
  color: var(--ll-plum);
}

.orbit-ring {
  border-color: rgba(229,222,210,.24);
}

.orbit-core {
  background: var(--ll-bone);
  color: var(--ll-ink);
  box-shadow: 12px 14px 0 var(--ll-plum);
  border-radius: 50%;
}

.orbit-bat {
  color: var(--ll-bone);
}

.about {
  background: #171314;
}

.portrait-plate {
  background: var(--ll-bone);
  box-shadow: 14px 16px 0 rgba(0,0,0,.42);
  border-radius: 0;
}

.portrait-art {
  background: var(--ll-plum);
}

.portrait-art::before {
  background: #c7b7bc;
}

.fact {
  border-color: rgba(229,222,210,.28);
  border-radius: 0;
  color: #b9b0a5;
}

.contact {
  background:
    radial-gradient(circle at 72% 30%, rgba(67,38,63,.12), transparent 22rem),
    #0a0909;
}

.contact-title span {
  color: var(--ll-bone);
}

.contact-bat {
  color: var(--ll-plum);
}

.footer {
  border-top-color: rgba(229,222,210,.18);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--ll-bone);
}

.bat-guide {
  color: #b9a4b5;
}

.bat-guide-line {
  background: linear-gradient(#b9a4b5, transparent);
}

.bat-guide-label {
  color: #8f8881;
}

@media (max-width: 760px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card-body {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .work-head .section-title::after {
    font-size: clamp(52px, 16vw, 78px);
  }

  .portfolio-grid {
    border-right: 0;
  }

  .portfolio-card-body {
    padding: 24px 20px 28px;
  }
}

/* Case-study rooms inherit the same archive language. */
.project-page {
  background:
    radial-gradient(circle at 80% 5%, rgba(67,38,63,.16), transparent 22rem),
    #0a0909;
  color: var(--ll-bone);
}

.project-page .project-back {
  color: #a69e96;
}

.project-page .project-back:hover {
  color: var(--ll-bone);
}

.project-page .project-lede,
.project-page .project-content p {
  color: #aaa19a;
}

.project-page .nocturne-code-signal span {
  border-color: rgba(229,222,210,.2);
  color: #b9a4b5;
  background: rgba(229,222,210,.03);
}

.nocturne-project {
  background:
    radial-gradient(circle at 78% 12%, rgba(67,38,63,.2), transparent 25rem),
    #0a0909;
  color: var(--ll-bone);
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-image img {
    transition: none;
  }
}


/* Recruiter-facing polish: make the archive hierarchy explicit. */
.work-head .eyebrow {
  font-size: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.work-head .eyebrow::before {
  content: "01";
  font-size: 9px;
  color: var(--ll-plum);
}

.work-head .eyebrow::after {
  content: "ARCHIVE / SELECTED WORK";
  font-size: 9px;
  letter-spacing: .2em;
}

/* Keep live prototypes legible while preserving their nocturnal atmosphere. */
.portfolio-image-nocturne {
  background:
    radial-gradient(circle at 55% 48%, rgba(101,31,43,.18), transparent 45%),
    #10121c;
}

.portfolio-image-nocturne .portfolio-image-iframe {
  filter: brightness(2.15) contrast(1.32) saturate(1.25);
}

.portfolio-image-nocturne::before {
  content: "LIVE / INTERACTIVE";
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 20px;
  padding: 7px 9px;
  color: var(--ll-bone);
  background: rgba(10,9,9,.72);
  border: 1px solid rgba(229,222,210,.24);
  font: 700 8px "Space Mono", monospace;
  letter-spacing: .14em;
  pointer-events: none;
}

.portfolio-card-nocturne .portfolio-image-nocturne::after {
  background:
    linear-gradient(to bottom, rgba(10,9,9,.02) 0%, transparent 45%, rgba(10,9,9,.24) 100%);
}

/* Give photographic work the same restrained archival treatment as live work. */
.portfolio-image img {
  filter: saturate(.78) contrast(1.04) brightness(.9);
}

.portfolio-card:hover .portfolio-image img {
  filter: saturate(.9) contrast(1.06) brightness(.96);
}


/* =========================================================
   ART-DIRECTED EDITORIAL REVISION
   The archive is treated as a publication spread rather
   than a conventional portfolio card grid.
   ========================================================= */

.story-shell {
  --editorial-paper: #e6dfd3;
  --editorial-black: #111010;
  --editorial-rule: rgba(17,16,16,.28);
  --editorial-muted: #68615b;
}

/* Quieter, more typographic navigation. */
.story-nav {
  padding: 20px clamp(24px, 5vw, 72px);
  background: linear-gradient(to bottom, rgba(10,9,9,.96), rgba(10,9,9,.64), transparent);
}

.nav-mark {
  font-size: 10px;
  letter-spacing: .16em;
}

.nav-shop-link {
  border-radius: 0 !important;
  padding: 10px 14px !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--ll-bone) !important;
  border: 1px solid rgba(229,222,210,.3) !important;
}

.nav-shop-title {
  font-size: 15px;
}

.nav-shop-action {
  color: var(--ll-plum);
}

/* Hero: more magazine cover, less centered portfolio hero. */
.hero {
  min-height: 108svh;
  padding-top: 150px;
  overflow: hidden;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: end;
}

.hero-title {
  font-size: clamp(72px, 10.4vw, 150px);
  line-height: .78;
  letter-spacing: -.07em;
  max-width: 920px;
}

.hero-title span:nth-child(2) {
  margin-top: 20px;
  margin-left: clamp(48px, 9vw, 150px);
  max-width: 720px;
  color: #9f9790;
  font: 400 clamp(17px, 2vw, 29px)/1.05 "Space Mono", monospace;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 30px 0 0 clamp(48px, 9vw, 150px);
  max-width: 530px;
  color: var(--ll-plum);
  font: 700 9px/1.5 "Space Mono", monospace;
  letter-spacing: .18em;
}

.hero-visual {
  min-height: 590px;
  transform: translateY(-20px);
}

.moon-archive {
  transform: rotate(0);
  border: 0;
  box-shadow: 28px 30px 0 rgba(0,0,0,.3);
}

.hero-note {
  margin-left: clamp(48px, 9vw, 150px);
}

/* The work section becomes the paper editorial spread. */
.work {
  background: var(--editorial-paper);
  color: var(--editorial-black);
  padding-top: clamp(120px, 14vw, 210px);
  padding-bottom: clamp(120px, 14vw, 210px);
}

.work::after {
  background: linear-gradient(90deg, transparent, rgba(17,16,16,.24), transparent);
}

.work .eyebrow {
  color: var(--ll-plum);
}

.work-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(180px, 4fr);
  align-items: end;
  gap: 30px;
  margin-bottom: clamp(54px, 8vw, 100px);
  border-bottom: 1px solid var(--editorial-rule);
  padding-bottom: 24px;
}

.work-head .section-title {
  color: var(--editorial-black);
  margin-top: 10px;
}

.work-head .section-title::after {
  content: "The Archive";
  font-size: clamp(70px, 10vw, 148px);
  line-height: .78;
  letter-spacing: -.075em;
}

.work-head::after {
  content: "SELECTED WORK / 2017—2026\A PRODUCT · WEB · CREATIVE TECHNOLOGY";
  white-space: pre;
  align-self: end;
  padding-bottom: 5px;
  color: var(--editorial-muted);
  font: 700 8px/1.8 "Space Mono", monospace;
  letter-spacing: .15em;
  text-align: right;
}

/* 12-column publication grid. */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--editorial-rule);
  border-left: 1px solid var(--editorial-rule);
}

.portfolio-card {
  position: relative;
  grid-column: span 6;
  border: 0;
  border-right: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
  background: var(--editorial-paper);
  color: var(--editorial-black);
  border-radius: 0;
  transition: background .35s ease;
}

.portfolio-card:nth-child(1) { grid-column: span 7; }
.portfolio-card:nth-child(2) { grid-column: span 5; }
.portfolio-card:nth-child(3) { grid-column: span 5; }
.portfolio-card:nth-child(4) { grid-column: span 7; }

.portfolio-card:hover {
  background: #ddd5c8;
}

.portfolio-card::before {
  top: 16px;
  left: 17px;
  color: rgba(17,16,16,.65);
}

.portfolio-card:nth-child(1)::after,
.portfolio-card:nth-child(2)::after,
.portfolio-card:nth-child(3)::after,
.portfolio-card:nth-child(4)::after {
  top: 32px;
  left: 17px;
  color: var(--ll-plum);
}

/* Every project gets a deliberate editorial crop. */
.portfolio-image {
  aspect-ratio: auto;
  height: clamp(310px, 31vw, 540px);
  background: #171414;
}

.portfolio-card:nth-child(1) .portfolio-image {
  height: clamp(390px, 42vw, 680px);
}

.portfolio-card:nth-child(2) .portfolio-image {
  height: clamp(390px, 44vw, 640px);
}

.portfolio-card:nth-child(3) .portfolio-image {
  height: clamp(330px, 38vw, 560px);
}

.portfolio-card:nth-child(4) .portfolio-image {
  height: clamp(390px, 42vw, 650px);
}

.portfolio-image::after {
  background: linear-gradient(to bottom, rgba(10,9,9,.02), rgba(10,9,9,.22));
}

.portfolio-image img {
  filter: saturate(.72) contrast(1.08) brightness(.88);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.015);
  filter: saturate(.82) contrast(1.08) brightness(.94);
}

.portfolio-image-nocturne .portfolio-image-iframe {
  transform: scale(1.04);
  filter: brightness(2.05) contrast(1.3) saturate(1.18);
}

.portfolio-image-live .portfolio-image-iframe {
  min-height: 100%;
}

/* Strip the conventional "card description" feeling. */
.portfolio-card-body {
  min-height: 0;
  padding: 22px 24px 30px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  column-gap: 14px;
  background: transparent;
}

.project-number {
  grid-row: 1 / span 3;
  color: var(--ll-plum) !important;
  font: 700 9px/1.4 "Space Mono", monospace;
  letter-spacing: .12em;
}

.project-meta {
  color: var(--editorial-muted) !important;
  font: 700 8px "Space Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portfolio-card-body h3 {
  margin: 8px 0 6px;
  color: var(--editorial-black);
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: .88;
  letter-spacing: -.045em;
}

.portfolio-card-body p {
  margin: 8px 0 0;
  color: var(--editorial-muted);
  max-width: 540px;
  font-size: 12px;
  line-height: 1.55;
}

/* A subtle publication mark in the negative space. */
.work .section-inner::before {
  content: "L&L / ARCHIVE";
  position: absolute;
  top: -42px;
  right: 0;
  color: var(--editorial-muted);
  font: 700 8px "Space Mono", monospace;
  letter-spacing: .18em;
}

/* Keep the rest of the site dark so the archive feels like a deliberate
   editorial interruption rather than a global theme swap. */
.lab,
.about,
.contact {
  border-top: 0;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
    transform: none;
  }

  .work-head {
    grid-template-columns: 1fr;
  }

  .work-head::after {
    text-align: left;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .portfolio-card,
  .portfolio-card:nth-child(1),
  .portfolio-card:nth-child(2),
  .portfolio-card:nth-child(3),
  .portfolio-card:nth-child(4) {
    grid-column: span 1;
  }

  .portfolio-card:nth-child(1) .portfolio-image,
  .portfolio-card:nth-child(2) .portfolio-image,
  .portfolio-card:nth-child(3) .portfolio-image,
  .portfolio-card:nth-child(4) .portfolio-image {
    height: clamp(300px, 54vw, 460px);
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(64px, 18vw, 94px);
  }

  .hero-title span:nth-child(2),
  .hero-tagline,
  .hero-intro,
  .hero-sub,
  .hero-actions,
  .hero-note {
    margin-left: 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card:nth-child(1),
  .portfolio-card:nth-child(2),
  .portfolio-card:nth-child(3),
  .portfolio-card:nth-child(4) {
    grid-column: 1;
  }

  .portfolio-card:nth-child(1) .portfolio-image,
  .portfolio-card:nth-child(2) .portfolio-image,
  .portfolio-card:nth-child(3) .portfolio-image,
  .portfolio-card:nth-child(4) .portfolio-image {
    height: 430px;
  }

  .portfolio-card-body {
    grid-template-columns: 38px minmax(0,1fr);
  }
}


/* =========================================================
   MAGAZINE COLLAGE ARCHIVE
   Four projects become one art-directed spread.
   ========================================================= */

.work {
  min-height: 100svh;
  padding-top: clamp(96px, 9vw, 132px);
  padding-bottom: clamp(70px, 8vw, 110px);
  background:
    radial-gradient(circle at 12% 20%, rgba(106,43,57,.16), transparent 24rem),
    radial-gradient(circle at 88% 75%, rgba(74,39,70,.18), transparent 26rem),
    #0c0b0b;
  color: var(--ll-bone);
  overflow: hidden;
}

.work .section-inner {
  max-width: 1320px;
  min-height: calc(100svh - 210px);
  display: flex;
  flex-direction: column;
}

.work-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  border: 0;
  padding: 0;
  z-index: 8;
}

.work-head .section-title {
  color: var(--ll-bone);
}

.work-head .section-title::after {
  content: "The Archive";
  font-size: clamp(56px, 6.8vw, 96px);
  line-height: .8;
}

.work-head::after {
  content: "A COLLECTION OF DIGITAL ARTIFACTS / 01—04";
  color: #817a74;
  font: 700 8px/1.7 "Space Mono", monospace;
  letter-spacing: .14em;
  text-align: right;
  padding-bottom: 5px;
}

.portfolio-grid {
  position: relative;
  flex: 1;
  min-height: 620px;
  display: block;
  border: 0;
  background:
    linear-gradient(90deg, rgba(229,222,210,.05) 1px, transparent 1px),
    linear-gradient(rgba(229,222,210,.035) 1px, transparent 1px);
  background-size: 25% 100%, 100% 50%;
}

/* The cards are pieces of a single spread, not four repeated UI components. */
.portfolio-card,
.portfolio-card:nth-child(1),
.portfolio-card:nth-child(2),
.portfolio-card:nth-child(3),
.portfolio-card:nth-child(4) {
  position: absolute;
  display: block;
  border: 1px solid rgba(229,222,210,.26);
  border-radius: 0;
  background: #171414;
  box-shadow: 18px 22px 0 rgba(0,0,0,.28);
  overflow: visible;
  color: var(--ll-bone);
  transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease, z-index 0s;
}

.portfolio-card:nth-child(1) {
  z-index: 4;
  left: 4%;
  top: 3%;
  width: 42%;
  height: 73%;
  transform: rotate(-1.5deg);
}

.portfolio-card:nth-child(2) {
  z-index: 3;
  right: 7%;
  top: 7%;
  width: 31%;
  height: 61%;
  transform: rotate(2.2deg);
  background: #ddd3c4;
  color: #151111;
}

.portfolio-card:nth-child(3) {
  z-index: 5;
  left: 31%;
  bottom: 1%;
  width: 29%;
  height: 46%;
  transform: rotate(-2.4deg);
  background: #d8cebf;
  color: #151111;
}

.portfolio-card:nth-child(4) {
  z-index: 2;
  right: 3%;
  bottom: 1%;
  width: 35%;
  height: 45%;
  transform: rotate(1.5deg);
}

.portfolio-card:hover {
  z-index: 20;
  background: inherit;
  transform: translateY(-8px) rotate(0deg) !important;
  box-shadow: 25px 30px 0 rgba(0,0,0,.36);
}

.portfolio-card::before {
  content: "01 / WEB APPLICATION";
  top: -24px;
  left: 4px;
  color: #a49a91;
  font: 700 8px "Space Mono", monospace;
  letter-spacing: .15em;
}

.portfolio-card:nth-child(2)::before {
  content: "02 / DIGITAL PRODUCT";
  color: #a49a91;
}

.portfolio-card:nth-child(3)::before {
  content: "03 / BRAND + E-COMMERCE";
  color: #a49a91;
}

.portfolio-card:nth-child(4)::before {
  content: "04 / CREATIVE TECHNOLOGY";
  color: #a49a91;
}

.portfolio-card::after {
  content: "D. LAZZARA / LOGIC & LUSTER";
  position: absolute;
  right: 0;
  bottom: -22px;
  color: #6f6862;
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .13em;
  pointer-events: none;
}

.portfolio-image,
.portfolio-card:nth-child(1) .portfolio-image,
.portfolio-card:nth-child(2) .portfolio-image,
.portfolio-card:nth-child(3) .portfolio-image,
.portfolio-card:nth-child(4) .portfolio-image {
  width: 100%;
  height: calc(100% - 118px);
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: #090909;
  border-bottom: 1px solid rgba(229,222,210,.2);
}

.portfolio-image::after {
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), transparent 25%),
    linear-gradient(to bottom, transparent 62%, rgba(8,7,7,.5));
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.12) saturate(.68) contrast(1.12) brightness(.84);
  transition: transform .8s cubic-bezier(.2,.75,.25,1), filter .5s ease;
}

.portfolio-card:nth-child(2) .portfolio-image img,
.portfolio-card:nth-child(3) .portfolio-image img {
  filter: sepia(.25) saturate(.62) contrast(1.1) brightness(.9);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.045);
  filter: sepia(.08) saturate(.84) contrast(1.08) brightness(.94);
}

/* Nocturne becomes a photographic/editorial plate rather than an embedded app. */
.portfolio-image-fallback-nocturne {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 48%, rgba(154,66,180,.34), transparent 18%),
    radial-gradient(circle at 50% 48%, rgba(229,222,210,.1), transparent 38%),
    linear-gradient(145deg, #080a13 0%, #17152a 45%, #080809 100%);
  position: relative;
}

.portfolio-image-fallback-nocturne::before {
  content: "NOCTURNE\A MACHINE";
  white-space: pre;
  position: absolute;
  left: 11%;
  bottom: 10%;
  color: rgba(229,222,210,.78);
  font: 400 clamp(30px, 4vw, 72px)/.82 "Instrument Serif", Georgia, serif;
  letter-spacing: -.05em;
}

.portfolio-image-fallback-nocturne::after {
  content: "EXPERIMENT 001 / INTERACTIVE AUDIO EXPERIENCE";
  position: absolute;
  top: 13%;
  left: 11%;
  color: #b9a4b5;
  font: 700 8px "Space Mono", monospace;
  letter-spacing: .16em;
}

.portfolio-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 118px;
  padding: 15px 18px 17px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  column-gap: 10px;
  background: transparent;
  color: inherit;
}

.portfolio-card:nth-child(2) .portfolio-card-body,
.portfolio-card:nth-child(3) .portfolio-card-body {
  color: #151111;
}

.project-number {
  grid-row: 1 / span 3;
  font: 700 9px "Space Mono", monospace;
  color: var(--ll-plum) !important;
}

.project-meta {
  color: #8f8780 !important;
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-card:nth-child(2) .project-meta,
.portfolio-card:nth-child(3) .project-meta {
  color: #625b54 !important;
}

.portfolio-card-body h3 {
  margin: 5px 0 0;
  color: inherit;
  font-size: clamp(25px, 3vw, 44px);
  line-height: .84;
  letter-spacing: -.045em;
}

.portfolio-card-body p {
  display: none;
}

/* Physical collage artifacts. */
.portfolio-grid::before {
  content: "SELECTED\A EXPERIMENTS";
  white-space: pre;
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: 4%;
  color: rgba(229,222,210,.16);
  font: 400 clamp(38px, 5vw, 76px)/.8 "Instrument Serif", Georgia, serif;
  letter-spacing: -.05em;
  pointer-events: none;
}

.portfolio-grid::after {
  content: "ARCHIVE / 04\A LOGIC & LUSTER\A EST. 2017";
  white-space: pre;
  position: absolute;
  z-index: 1;
  right: 1%;
  top: 47%;
  color: #777069;
  font: 700 7px/1.8 "Space Mono", monospace;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

@media (max-width: 820px) {
  .work {
    min-height: auto;
  }

  .work .section-inner {
    min-height: 760px;
  }

  .portfolio-grid {
    min-height: 700px;
  }

  .portfolio-card:nth-child(1) { left: 2%; width: 54%; height: 58%; }
  .portfolio-card:nth-child(2) { right: 1%; width: 42%; height: 49%; }
  .portfolio-card:nth-child(3) { left: 17%; bottom: 2%; width: 43%; height: 40%; }
  .portfolio-card:nth-child(4) { right: 0; bottom: 1%; width: 48%; height: 38%; }
}

@media (max-width: 560px) {
  .work {
    padding-top: 90px;
  }

  .work-head {
    display: block;
    margin-bottom: 22px;
  }

  .work-head::after {
    display: block;
    margin-top: 16px;
    text-align: left;
  }

  .work .section-inner {
    min-height: 700px;
  }

  .portfolio-grid {
    min-height: 600px;
  }

  .portfolio-card:nth-child(1) { left: 0; top: 3%; width: 62%; height: 47%; }
  .portfolio-card:nth-child(2) { right: 0; top: 8%; width: 46%; height: 40%; }
  .portfolio-card:nth-child(3) { left: 8%; bottom: 2%; width: 49%; height: 38%; }
  .portfolio-card:nth-child(4) { right: 0; bottom: 1%; width: 49%; height: 34%; }

  .portfolio-card-body {
    min-height: 90px;
    padding: 10px 11px;
    grid-template-columns: 25px 1fr;
  }

  .portfolio-image,
  .portfolio-card:nth-child(1) .portfolio-image,
  .portfolio-card:nth-child(2) .portfolio-image,
  .portfolio-card:nth-child(3) .portfolio-image,
  .portfolio-card:nth-child(4) .portfolio-image {
    height: calc(100% - 90px);
  }

  .portfolio-card-body h3 {
    font-size: 24px;
  }

  .portfolio-card::before {
    font-size: 6px;
    top: -18px;
  }
}


/* =========================================================
   EDITORIAL HERO / QUIET COVER
   ========================================================= */

.hero {
  min-height: 100svh;
  padding-top: 126px;
  padding-bottom: 70px;
  background:
    radial-gradient(circle at 72% 42%, rgba(83,46,94,.22), transparent 28rem),
    #100d12;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker {
  margin-bottom: 34px;
  color: #a69d98;
  font-size: 8px;
  letter-spacing: .2em;
}

.kicker-line {
  width: 42px;
  background: var(--ll-plum);
}

.hero-title {
  max-width: 720px;
  font-size: clamp(68px, 8.6vw, 126px);
  line-height: .78;
  letter-spacing: -.075em;
}

.hero-title span:first-child {
  color: var(--ll-bone);
}

.hero-title span:nth-child(2) {
  display: block;
  margin: 24px 0 0 7vw;
  max-width: 520px;
  color: #918983;
  font: 400 clamp(16px, 1.65vw, 24px)/1.15 "Space Mono", monospace;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero-sub {
  max-width: 420px;
  margin: 38px 0 0 7vw;
  color: #c2b9b3;
  font: 400 15px/1.55 "DM Sans", sans-serif;
}

.hero-actions {
  align-items: center;
  margin: 28px 0 0 7vw;
  gap: 22px;
}

.hero-actions .button-secondary {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(229,222,210,.4);
  border-radius: 0;
  color: var(--ll-bone);
  background: transparent;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-actions .button-secondary:hover,
.hero-actions .button-secondary:focus-visible {
  background: transparent;
  border-color: var(--ll-plum);
  color: var(--ll-plum);
  transform: none;
}

.button-text {
  color: #8d8580;
  text-decoration: none;
  font: 700 8px "Space Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.button-text:hover,
.button-text:focus-visible {
  color: var(--ll-bone);
}

.hero-note {
  margin: 48px 0 0 7vw;
  color: #68615e;
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-visual {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait-frame {
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: rgba(229,222,210,.05);
  border: 1px solid rgba(229,222,210,.3);
  transform: rotate(1.2deg);
  box-shadow: 24px 28px 0 rgba(0,0,0,.24);
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(.72) sepia(.12) contrast(1.06) brightness(.9);
}

.hero-portrait-caption {
  display: block;
  padding: 9px 2px 1px;
  color: #77706c;
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .14em;
}

.scroll-cue {
  right: 4vw;
  bottom: 30px;
  opacity: .5;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 90px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(64px, 14vw, 100px);
  }

  .hero-title span:nth-child(2),
  .hero-sub,
  .hero-actions,
  .hero-note {
    margin-left: 0;
  }

  .hero-title span:nth-child(2) {
    margin-top: 20px;
    max-width: 460px;
  }

  .hero-sub {
    margin-top: 30px;
    max-width: 500px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-visual {
    min-height: 0;
    justify-content: flex-start;
  }

  .hero-portrait-frame {
    width: min(72vw, 350px);
    margin-left: 8vw;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 104px;
    padding-bottom: 72px;
  }

  .hero-kicker {
    margin-bottom: 28px;
    font-size: 7px;
  }

  .hero-title {
    font-size: clamp(56px, 17vw, 82px);
  }

  .hero-title span:nth-child(2) {
    margin-top: 17px;
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-sub {
    margin-top: 26px;
    max-width: 330px;
    font-size: 14px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 17px;
  }

  .hero-note {
    margin-top: 34px;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-portrait-frame {
    width: min(78vw, 320px);
    margin-left: 0;
    box-shadow: 14px 18px 0 rgba(0,0,0,.25);
  }
}


/* =========================================================
   MOBILE ARCHIVE / PRESERVE THE COLLAGE
   Keep the art-directed magazine composition on phones.
   The layout simply gets more breathing room so card
   typography never collides with neighboring plates.
   ========================================================= */

@media (max-width: 560px) {
  .work {
    padding: 86px 16px 90px;
  }

  .work .section-inner {
    min-height: auto;
    width: 100%;
  }

  .work-head {
    display: block;
    margin-bottom: 28px;
  }

  .work-head .section-title::after {
    font-size: clamp(54px, 16vw, 76px);
    line-height: .82;
  }

  .work-head::after {
    display: block;
    margin-top: 16px;
    max-width: 260px;
    font-size: 7px;
    line-height: 1.8;
    text-align: left;
  }

  /* Preserve the collage, but give it a taller canvas. */
  .portfolio-grid {
    min-height: 820px;
    height: 820px;
    display: block;
    overflow: visible;
    background:
      linear-gradient(90deg, rgba(229,222,210,.04) 1px, transparent 1px),
      linear-gradient(rgba(229,222,210,.03) 1px, transparent 1px);
    background-size: 50% 100%, 100% 33.333%;
    border: 0;
  }

  .portfolio-card,
  .portfolio-card:nth-child(1),
  .portfolio-card:nth-child(2),
  .portfolio-card:nth-child(3),
  .portfolio-card:nth-child(4) {
    position: absolute !important;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 0;
    border: 1px solid rgba(229,222,210,.3);
    border-radius: 0;
  }

  /* Large hero plate. */
  .portfolio-card:nth-child(1) {
    z-index: 4;
    left: 0;
    top: 3%;
    width: 58%;
    height: 44%;
    transform: rotate(-1.4deg);
  }

  /* Smaller paper plate sits beside it without crossing its text block. */
  .portfolio-card:nth-child(2) {
    z-index: 6;
    right: 0;
    top: 5%;
    width: 45%;
    height: 30%;
    transform: rotate(1.8deg);
  }

  /* Lower-left plate. */
  .portfolio-card:nth-child(3) {
    z-index: 5;
    left: 7%;
    bottom: 5%;
    width: 50%;
    height: 35%;
    transform: rotate(-2deg);
  }

  /* Lower-right plate. */
  .portfolio-card:nth-child(4) {
    z-index: 3;
    right: 1%;
    bottom: 2%;
    width: 45%;
    height: 32%;
    transform: rotate(1.4deg);
  }

  /* Keep the archival labels, but contain them inside each plate. */
  .portfolio-card::before {
    top: 11px;
    left: 11px;
    z-index: 7;
    padding: 5px 6px;
    color: var(--ll-bone);
    background: rgba(10,9,9,.74);
    border: 1px solid rgba(229,222,210,.16);
    font-size: 5.5px;
    line-height: 1.25;
    letter-spacing: .1em;
  }

  .portfolio-card:nth-child(2)::before,
  .portfolio-card:nth-child(3)::before {
    color: #625b54;
    background: rgba(229,222,210,.84);
    border-color: rgba(17,16,16,.12);
  }

  .portfolio-card::after {
    right: 9px;
    bottom: 9px;
    left: auto;
    top: auto;
    z-index: 7;
    padding: 4px 5px;
    color: rgba(229,222,210,.68);
    background: rgba(10,9,9,.62);
    font-size: 5.5px;
    letter-spacing: .09em;
  }

  .portfolio-card:nth-child(2)::after,
  .portfolio-card:nth-child(3)::after {
    color: rgba(17,16,16,.55);
    background: rgba(229,222,210,.7);
  }

  /* Keep image-to-caption proportions from the desktop art direction. */
  .portfolio-image,
  .portfolio-card:nth-child(1) .portfolio-image,
  .portfolio-card:nth-child(2) .portfolio-image,
  .portfolio-card:nth-child(3) .portfolio-image,
  .portfolio-card:nth-child(4) .portfolio-image {
    width: 100%;
    height: calc(100% - 88px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Compact metadata block: readable, but never large enough to collide. */
  .portfolio-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 88px;
    height: 88px;
    padding: 11px 11px 12px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 7px;
    background: rgba(17,16,16,.94);
  }

  .portfolio-card:nth-child(2) .portfolio-card-body,
  .portfolio-card:nth-child(3) .portfolio-card-body {
    background: rgba(216,206,191,.96);
  }

  .project-number {
    grid-row: 1 / span 2;
    padding-top: 1px;
    font-size: 7px;
    line-height: 1.2;
  }

  .project-meta {
    min-width: 0;
    overflow: hidden;
    font-size: 5.5px;
    line-height: 1.3;
    letter-spacing: .08em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .portfolio-card-body h3 {
    min-width: 0;
    margin: 5px 0 0;
    font-size: clamp(21px, 6.6vw, 28px);
    line-height: .84;
    letter-spacing: -.04em;
    white-space: normal;
    overflow-wrap: normal;
  }

  /* Descriptions are intentionally removed on phones.
     The image + category + title carry the editorial hierarchy. */
  .portfolio-card-body p {
    display: none;
  }

  .portfolio-grid::before {
    left: 0;
    bottom: 0;
    font-size: clamp(34px, 10vw, 52px);
  }

  .portfolio-grid::after {
    right: 0;
    top: 44%;
    font-size: 6px;
  }
}


/* =========================================================
   MOBILE ARCHIVE / CLARITY PASS
   Preserve the collage while keeping image previews clear
   and every project title fully readable.
   ========================================================= */

@media (max-width: 560px) {
  /* Let the source artwork read cleanly instead of sitting
     behind a heavy editorial veil. */
  .portfolio-image::after,
  .portfolio-card:nth-child(2) .portfolio-image::after,
  .portfolio-card:nth-child(3) .portfolio-image::after {
    background: linear-gradient(
      to bottom,
      rgba(10,9,9,0) 0%,
      rgba(10,9,9,0) 72%,
      rgba(10,9,9,.08) 100%
    );
  }

  .portfolio-image img {
    filter: sepia(.06) saturate(.82) contrast(1.04) brightness(.98);
  }

  .portfolio-card:nth-child(2) .portfolio-image img,
  .portfolio-card:nth-child(3) .portfolio-image img {
    filter: sepia(.08) saturate(.78) contrast(1.03) brightness(1);
  }

  /* Give every caption a clean editorial paper surface so
     titles are dark, crisp, and never disappear into imagery. */
  .portfolio-card-body,
  .portfolio-card:nth-child(2) .portfolio-card-body,
  .portfolio-card:nth-child(3) .portfolio-card-body,
  .portfolio-card:nth-child(4) .portfolio-card-body {
    height: 104px;
    min-height: 104px;
    box-sizing: border-box;
    padding: 12px 12px 13px;
    background: rgba(230,223,211,.97);
    color: #171214;
  }

  .project-number {
    color: var(--ll-plum) !important;
    font-size: 7px;
  }

  .project-meta,
  .portfolio-card:nth-child(2) .project-meta,
  .portfolio-card:nth-child(3) .project-meta {
    color: #5f5751 !important;
    font-size: 5.5px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .portfolio-card-body h3,
  .portfolio-card:nth-child(2) .portfolio-card-body h3,
  .portfolio-card:nth-child(3) .portfolio-card-body h3,
  .portfolio-card:nth-child(4) .portfolio-card-body h3 {
    color: #21171d !important;
    margin: 5px 0 0;
    font-size: clamp(20px, 6vw, 27px);
    line-height: .9;
    letter-spacing: -.035em;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
  }

  /* The image height follows the slightly taller caption. */
  .portfolio-image,
  .portfolio-card:nth-child(1) .portfolio-image,
  .portfolio-card:nth-child(2) .portfolio-image,
  .portfolio-card:nth-child(3) .portfolio-image,
  .portfolio-card:nth-child(4) .portfolio-image {
    height: calc(100% - 104px);
  }

  /* Keep the large decorative type inside the archive canvas,
     rather than letting it clip at the bottom. */
  .portfolio-grid::before {
    left: 0;
    bottom: 2%;
    max-width: 46%;
    font-size: clamp(28px, 8vw, 42px);
    line-height: .78;
    opacity: .55;
  }

  .portfolio-grid::after {
    top: 43%;
    right: 1%;
    font-size: 5.5px;
  }
}


/* =========================================================
   ARCHIVE / FINAL ART-DIRECTION PASS
   Clear the artwork, remove the decorative experiment stamp,
   recolor project titles, and give the lower plates room.
   ========================================================= */

/* Let the project artwork speak without a tonal veil. */
.portfolio-image::after,
.portfolio-card:nth-child(1) .portfolio-image::after,
.portfolio-card:nth-child(2) .portfolio-image::after,
.portfolio-card:nth-child(3) .portfolio-image::after,
.portfolio-card:nth-child(4) .portfolio-image::after {
  background: transparent !important;
}

.portfolio-image img {
  filter: none !important;
}

.portfolio-card:nth-child(2) .portfolio-image img,
.portfolio-card:nth-child(3) .portfolio-image img {
  filter: none !important;
}

/* The oversized "SELECTED EXPERIMENTS" decoration is removed. */
.portfolio-grid::before {
  display: none !important;
}

/* Project titles use the brand's plum family for a consistent archive accent. */
.portfolio-card-body h3,
.portfolio-card:nth-child(1) .portfolio-card-body h3,
.portfolio-card:nth-child(4) .portfolio-card-body h3 {
  color: var(--ll-plum) !important;
}

.portfolio-card:nth-child(2) .portfolio-card-body h3,
.portfolio-card:nth-child(3) .portfolio-card-body h3 {
  color: var(--ll-plum) !important;
}

/* Desktop: create a deliberate breathing channel between the
   upper and lower pair so the lower archival labels remain visible. */
@media (min-width: 821px) {
  .portfolio-card:nth-child(1) {
    top: 3%;
    height: 57%;
  }

  .portfolio-card:nth-child(2) {
    top: 5%;
    height: 49%;
  }

  .portfolio-card:nth-child(3) {
    left: 31%;
    bottom: 1%;
    width: 29%;
    height: 34%;
  }

  .portfolio-card:nth-child(4) {
    right: 3%;
    bottom: 1%;
    width: 35%;
    height: 33%;
  }

  .portfolio-card:nth-child(3)::before,
  .portfolio-card:nth-child(4)::before {
    z-index: 30;
  }
}

/* Mobile: retain the collage, but separate the lower pair enough
   for their archival category labels to sit in clean negative space. */
@media (max-width: 560px) {
  .portfolio-card:nth-child(1) {
    top: 3%;
    height: 41%;
  }

  .portfolio-card:nth-child(2) {
    top: 5%;
    height: 27%;
  }

  .portfolio-card:nth-child(3) {
    left: 7%;
    bottom: 4%;
    width: 50%;
    height: 31%;
  }

  .portfolio-card:nth-child(4) {
    right: 1%;
    bottom: 1%;
    width: 45%;
    height: 29%;
  }

  .portfolio-card:nth-child(3)::before,
  .portfolio-card:nth-child(4)::before {
    z-index: 30;
  }
}


/* =========================================================
   ARCHIVE / DESKTOP BREATHING ROOM + TITLE GLOW
   ========================================================= */

@media (min-width: 821px) {
  /* Push the lower pair farther down to create a clearer
     editorial gap beneath the upper plates. */
  .portfolio-card:nth-child(1) {
    top: 2%;
    height: 52%;
  }

  .portfolio-card:nth-child(2) {
    top: 4%;
    height: 44%;
  }

  .portfolio-card:nth-child(3) {
    left: 31%;
    bottom: 0;
    width: 29%;
    height: 30%;
  }

  .portfolio-card:nth-child(4) {
    right: 3%;
    bottom: 0;
    width: 35%;
    height: 29%;
  }

  /* A restrained atmospheric glow — enough to make the
     plum titles feel luminous without becoming neon. */
  .portfolio-card-body h3,
  .portfolio-card:nth-child(1) .portfolio-card-body h3,
  .portfolio-card:nth-child(2) .portfolio-card-body h3,
  .portfolio-card:nth-child(3) .portfolio-card-body h3,
  .portfolio-card:nth-child(4) .portfolio-card-body h3 {
    text-shadow:
      0 0 10px rgba(138, 57, 72, .18),
      0 0 22px rgba(67, 38, 63, .14);
  }
}

/* Keep the mobile titles clean and readable rather than glowing. */
@media (max-width: 820px) {
  .portfolio-card-body h3 {
    text-shadow: none;
  }
}


/* =========================================================
   ARCHIVE / DESKTOP GAP — EXPLICIT POSITIONING
   Use a real negative-space channel between the two rows.
   ========================================================= */

@media (min-width: 821px) {
  .portfolio-card:nth-child(1) {
    top: 2%;
    height: 44%;
  }

  .portfolio-card:nth-child(2) {
    top: 4%;
    height: 40%;
  }

  .portfolio-card:nth-child(3) {
    left: 31%;
    bottom: 0;
    width: 29%;
    height: 25%;
  }

  .portfolio-card:nth-child(4) {
    right: 3%;
    bottom: 0;
    width: 35%;
    height: 24%;
  }

  .portfolio-card-body h3 {
    text-shadow:
      0 0 5px rgba(138,57,72,.55),
      0 0 14px rgba(101,31,43,.42),
      0 0 26px rgba(67,38,63,.28) !important;
  }
}


/* =========================================================
   ARCHIVE / LOWER-CARD LABELS
   Move the subtle category labels to the bottom of the
   lower plates so the imagery and upper composition breathe.
   ========================================================= */

@media (min-width: 821px) {
  .portfolio-card:nth-child(3)::before,
  .portfolio-card:nth-child(4)::before {
    top: auto;
    bottom: -22px;
    left: 4px;
    color: #a49a91;
  }

  .portfolio-card:nth-child(3)::before {
    content: "03 / BRAND + E-COMMERCE";
  }

  .portfolio-card:nth-child(4)::before {
    content: "04 / CREATIVE TECHNOLOGY";
  }
}

/* =========================================================
   VHS ARCHIVE / HOME VIDEO EDITION
   Replaces the overlapping magazine collage with a tactile,
   cinematic project shelf inspired by analog video libraries.
   No extra assets or packages required.
   ========================================================= */

.vhs-archive {
  position: relative;
  width: 100%;
  padding-top: 4px;
}

.vhs-archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(17,16,16,.28);
}

.vhs-archive-kicker,
.vhs-archive-format {
  color: var(--ll-plum);
  font: 700 8px/1.4 "Space Mono", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.vhs-archive-head h3 {
  margin: 7px 0 0;
  color: var(--editorial-black);
  font: 400 clamp(24px, 3vw, 42px)/.95 "Instrument Serif", Georgia, serif;
  letter-spacing: -.035em;
}

.vhs-archive-format {
  color: var(--editorial-muted);
  white-space: nowrap;
  padding-bottom: 3px;
}

.vhs-shelf {
  position: relative;
  min-height: 610px;
  margin-top: 26px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(17,16,16,.02), rgba(17,16,16,.07)),
    #c9c0b4;
  border: 1px solid rgba(17,16,16,.22);
  box-shadow:
    inset 0 1px rgba(255,255,255,.25),
    0 16px 38px rgba(17,16,16,.08);
  isolation: isolate;
}

.vhs-shelf::before {
  content: "VIDEO ARCHIVE";
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 1;
  color: rgba(17,16,16,.42);
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .2em;
}

.vhs-shelf::after {
  content: "REWIND / SELECT / PLAY";
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 1;
  color: rgba(17,16,16,.42);
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .15em;
}

.vhs-shelf-line {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 78px;
  height: 11px;
  z-index: 1;
  background: #171315;
  box-shadow: 0 5px 0 rgba(17,16,16,.14);
}

.vhs-shelf-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(229,222,210,.24);
}

.vhs-spines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.vhs-spine {
  position: absolute;
  bottom: 84px;
  width: 72px;
  height: 310px;
  padding: 10px 7px;
  border: 1px solid rgba(17,16,16,.42);
  border-radius: 2px 2px 0 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12), transparent 14%, transparent 84%, rgba(0,0,0,.12)),
    #272123;
  color: #e5ded2;
  box-shadow: 5px 7px 0 rgba(17,16,16,.13);
  cursor: pointer;
  pointer-events: auto;
  transform-origin: bottom center;
  transition: transform .45s cubic-bezier(.2,.75,.25,1), opacity .35s ease, filter .35s ease;
}

.vhs-spine:hover,
.vhs-spine:focus-visible {
  transform: translateY(-14px) rotate(0deg) !important;
  outline: 1px solid var(--ll-plum);
  outline-offset: 4px;
}

.vhs-spine.is-left-far { left: 10%; transform: rotate(-2deg); opacity: .72; filter: saturate(.75); }
.vhs-spine.is-left { left: 24%; transform: rotate(-1deg); opacity: .9; }
.vhs-spine.is-right { right: 24%; transform: rotate(1deg); opacity: .9; }
.vhs-spine.is-right-far { right: 10%; transform: rotate(2deg); opacity: .72; filter: saturate(.75); }

.vhs-spine.is-active {
  left: 50%;
  bottom: 75px;
  width: 84px;
  height: 350px;
  transform: translateX(-50%) rotate(0deg);
  opacity: .16;
  filter: blur(1px);
  z-index: 0;
  pointer-events: none;
}

.vhs-spine-number {
  display: block;
  margin-bottom: 14px;
  color: var(--ll-plum);
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .08em;
}

.vhs-spine-title {
  position: absolute;
  inset: 48px 7px 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: left;
  color: #e5ded2;
  font: 400 14px/1 "Instrument Serif", Georgia, serif;
  letter-spacing: -.02em;
}

.vhs-spine-brand {
  position: absolute;
  bottom: 9px;
  left: 7px;
  color: rgba(229,222,210,.55);
  font: 700 6px "Space Mono", monospace;
  letter-spacing: .14em;
}

.vhs-case {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 5;
  width: min(39vw, 410px);
  height: min(53vw, 500px);
  min-height: 430px;
  transform: translateX(-50%) rotate(-1.1deg);
  text-decoration: none;
  transition: transform .45s cubic-bezier(.2,.75,.25,1);
}

.vhs-case:hover,
.vhs-case:focus-visible {
  transform: translateX(-50%) translateY(-8px) rotate(0deg);
}

.vhs-case-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(17,16,16,.48);
  background: #151213;
  box-shadow:
    14px 17px 0 rgba(17,16,16,.23),
    inset 0 0 0 8px rgba(17,16,16,.15);
}

.vhs-case-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06);
}

.vhs-case-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 2;
  border: 1px solid rgba(229,222,210,.22);
  pointer-events: none;
}

.vhs-case-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(105deg, rgba(255,255,255,.12), transparent 18%, transparent 72%, rgba(0,0,0,.14)),
    linear-gradient(to bottom, transparent 58%, rgba(10,9,9,.78) 100%);
  pointer-events: none;
}

.vhs-case-label {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 25px;
  z-index: 4;
  color: var(--ll-bone);
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}

.vhs-case-label > span {
  display: block;
  margin-bottom: 8px;
  color: #d5a6ad;
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .2em;
}

.vhs-case-label strong {
  display: block;
  font: 400 clamp(32px, 4vw, 54px)/.85 "Instrument Serif", Georgia, serif;
  letter-spacing: -.045em;
}

.vhs-case-label small {
  display: block;
  margin-top: 10px;
  max-width: 82%;
  color: rgba(229,222,210,.72);
  font: 700 7px/1.5 "Space Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vhs-case-sticker {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 4;
  padding: 7px 8px;
  color: #171315;
  background: var(--ll-bone);
  font: 700 6px/1.25 "Space Mono", monospace;
  letter-spacing: .12em;
  text-align: center;
  transform: rotate(2deg);
}

.vhs-case-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 30px;
  color: var(--ll-bone);
  background:
    radial-gradient(circle at 74% 25%, rgba(138,57,72,.32), transparent 28%),
    linear-gradient(145deg, #21171c 0%, #0c0a0b 72%);
}

.vhs-fallback-bat {
  position: absolute;
  top: 22%;
  left: 14%;
  color: var(--ll-plum);
  font-size: 70px;
  opacity: .6;
}

.vhs-fallback-word {
  font: 400 clamp(34px, 4vw, 56px)/.82 "Instrument Serif", Georgia, serif;
}

.vhs-fallback-sub {
  font: 400 clamp(38px, 4.6vw, 64px)/.82 "Instrument Serif", Georgia, serif;
  color: var(--ll-plum);
}

.vhs-fallback-code {
  margin-top: 16px;
  color: #aaa19a;
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .13em;
}

.vhs-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17,16,16,.38);
  border-radius: 50%;
  background: rgba(230,223,211,.72);
  color: #171315;
  font: 400 18px/1 "DM Sans", sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.vhs-arrow:hover,
.vhs-arrow:focus-visible {
  background: var(--ll-plum);
  color: var(--ll-bone);
  border-color: var(--ll-plum);
  outline: none;
}

.vhs-arrow-left { left: 24px; }
.vhs-arrow-right { right: 24px; }

.vhs-archive-info {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0 0;
  color: var(--editorial-black);
}

.vhs-counter {
  color: var(--ll-plum);
  font: 700 9px "Space Mono", monospace;
  letter-spacing: .12em;
}

.vhs-info-copy span {
  display: block;
  color: var(--editorial-muted);
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.vhs-info-copy strong {
  display: block;
  margin-top: 4px;
  font: 400 25px/.95 "Instrument Serif", Georgia, serif;
}

.vhs-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ll-plum);
  font: 700 8px "Space Mono", monospace;
  letter-spacing: .12em;
  text-decoration: none;
}

.vhs-open:hover,
.vhs-open:focus-visible {
  color: var(--ll-plum);
}

@media (max-width: 820px) {
  .vhs-shelf {
    min-height: 560px;
  }

  .vhs-case {
    width: min(48vw, 360px);
    height: min(66vw, 440px);
    min-height: 360px;
  }

  .vhs-spine {
    width: 54px;
    height: 255px;
    bottom: 72px;
  }

  .vhs-spine.is-left-far { left: 5%; }
  .vhs-spine.is-left { left: 17%; }
  .vhs-spine.is-right { right: 17%; }
  .vhs-spine.is-right-far { right: 5%; }

  .vhs-spine-title {
    font-size: 11px;
  }

  .vhs-arrow-left { left: 12px; }
  .vhs-arrow-right { right: 12px; }
}

@media (max-width: 560px) {
  .vhs-archive-head {
    display: block;
  }

  .vhs-archive-format {
    display: block;
    margin-top: 12px;
  }

  .vhs-shelf {
    min-height: 530px;
    margin-top: 20px;
  }

  .vhs-shelf::after {
    display: none;
  }

  .vhs-shelf-line {
    left: 3%;
    right: 3%;
    bottom: 62px;
    height: 8px;
  }

  .vhs-spine {
    width: 42px;
    height: 220px;
    bottom: 66px;
    padding: 7px 5px;
  }

  .vhs-spine.is-left-far { left: 1%; }
  .vhs-spine.is-left { left: 11%; }
  .vhs-spine.is-right { right: 11%; }
  .vhs-spine.is-right-far { right: 1%; }

  .vhs-spine-title {
    inset: 40px 5px 28px;
    font-size: 9px;
  }

  .vhs-spine-number,
  .vhs-spine-brand {
    font-size: 5px;
  }

  .vhs-case {
    width: 53vw;
    height: 74vw;
    min-height: 320px;
    max-height: 390px;
    bottom: 58px;
  }

  .vhs-case-frame::before {
    inset: 6px;
  }

  .vhs-case-label {
    left: 16px;
    right: 16px;
    bottom: 17px;
  }

  .vhs-case-label > span {
    font-size: 5px;
    margin-bottom: 6px;
  }

  .vhs-case-label strong {
    font-size: clamp(27px, 8vw, 39px);
  }

  .vhs-case-label small {
    font-size: 5px;
    margin-top: 7px;
  }

  .vhs-case-sticker {
    top: 15px;
    right: 15px;
    font-size: 5px;
  }

  .vhs-fallback-bat {
    font-size: 48px;
  }

  .vhs-arrow {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .vhs-archive-info {
    grid-template-columns: 45px 1fr;
    gap: 10px;
  }

  .vhs-open {
    grid-column: 2;
  }

  .vhs-info-copy strong {
    font-size: 22px;
  }
}


/* =========================================================
   VHS ARCHIVE / INTERACTIVE OBJECT MODEL
   Cover -> back -> shelf. The spine is the return control.
   ========================================================= */
.vhs-shelf {
  position: relative;
}

.vhs-spines {
  transition: opacity .3s ease;
}

.vhs-shelf.is-cover .vhs-spine:not(.is-active),
.vhs-shelf.is-back .vhs-spine:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

.vhs-shelf.is-cover .vhs-spine.is-active,
.vhs-shelf.is-back .vhs-spine.is-active {
  left: calc(50% - 286px);
  right: auto;
  bottom: 88px;
  width: 62px;
  height: 330px;
  opacity: 1;
  filter: none;
  transform: rotate(-1deg);
  z-index: 9;
  pointer-events: auto;
}

.vhs-spine.is-selected {
  cursor: pointer;
}

.vhs-spine-action {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 100px;
  transform: translateX(-50%);
  color: var(--ll-plum);
  font: 700 5px/1.45 "Space Mono", monospace;
  letter-spacing: .08em;
  text-align: center;
}

.vhs-shelf.is-shelf .vhs-spine {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.vhs-shelf.is-shelf .vhs-spine.is-active {
  left: 50%;
  right: auto;
  bottom: 84px;
  width: 72px;
  height: 310px;
  transform: translateX(-50%);
  z-index: 3;
}

.vhs-shelf.is-shelf .vhs-inspection {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
}

.vhs-inspection {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 5;
  width: min(39vw, 410px);
  height: min(53vw, 500px);
  min-height: 430px;
  transform: translateX(-50%);
  transition: opacity .32s ease, transform .45s cubic-bezier(.2,.75,.25,1);
}

.vhs-cover-panel,
.vhs-back-panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(17,16,16,.48);
  background: #151213;
  box-shadow:
    14px 17px 0 rgba(17,16,16,.23),
    inset 0 0 0 8px rgba(17,16,16,.15);
  animation: vhs-reveal .45s cubic-bezier(.2,.75,.25,1);
}

@keyframes vhs-reveal {
  from { opacity: .35; transform: translateY(8px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}


/* Preserve the approved VHS artwork sprite presentation. */
.vhs-cover-sprite {
  position: absolute;
  inset: 0;
  display: block;
  background-repeat: no-repeat;
  background-size: 100% 300%;
  background-position-x: 50%;
  background-position-y: 0%;
  transition: transform .6s cubic-bezier(.2,.75,.25,1), filter .4s ease;
  filter: saturate(.82) contrast(1.06);
}
.vhs-cover-art:hover .vhs-cover-sprite,
.vhs-cover-art:focus-visible .vhs-cover-sprite {
  transform: scale(1.025);
  filter: saturate(.92) contrast(1.08);
}

.vhs-cover-art {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.vhs-cover-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06);
  transition: transform .6s cubic-bezier(.2,.75,.25,1), filter .4s ease;
}

.vhs-cover-art:hover img,
.vhs-cover-art:focus-visible img {
  transform: scale(1.025);
  filter: saturate(.92) contrast(1.08);
}

.vhs-cover-art .vhs-case-fallback {
  padding: 30px;
}

.vhs-cover-print {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  color: var(--ll-bone);
  text-shadow: 0 2px 10px rgba(0,0,0,.72);
  pointer-events: none;
}

.vhs-cover-print > span {
  display: block;
  margin-bottom: 8px;
  color: #c8f28c;
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .18em;
}

.vhs-cover-print strong {
  display: block;
  font: 400 clamp(31px, 4vw, 54px)/.84 "Instrument Serif", Georgia, serif;
  letter-spacing: -.045em;
}

.vhs-cover-print small {
  display: block;
  margin-top: 10px;
  color: rgba(229,222,210,.76);
  font: 700 7px/1.5 "Space Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vhs-cover-art .vhs-case-sticker {
  pointer-events: none;
}

.vhs-inspection-action,
.vhs-inspection-project {
  position: absolute;
  z-index: 12;
  bottom: 18px;
  min-height: 28px;
  padding: 8px 10px;
  border: 1px solid rgba(229,222,210,.32);
  background: rgba(10,9,9,.76);
  color: var(--ll-bone);
  font: 700 7px/1 "Space Mono", monospace;
  letter-spacing: .11em;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.vhs-inspection-action:hover,
.vhs-inspection-action:focus-visible,
.vhs-inspection-project:hover,
.vhs-inspection-project:focus-visible {
  background: var(--ll-plum);
  border-color: var(--ll-plum);
  color: var(--ll-bone);
  outline: none;
}

.vhs-view-back {
  right: 18px;
}

.vhs-view-cover {
  left: 18px;
}

.vhs-inspection-project {
  right: 18px;
}

.vhs-shelf.is-cover .vhs-inspection-project {
  right: 18px;
}

.vhs-shelf.is-back .vhs-inspection-project {
  right: 18px;
}

/* HTML-rendered backs let the archive stay functional without
   requiring separate image assets for every project. */
.vhs-back-panel {
  padding: 28px;
  color: #e5ded2;
  background:
    radial-gradient(circle at 82% 17%, rgba(138,57,72,.22), transparent 28%),
    linear-gradient(145deg, #21171c, #0c0a0b 78%);
}

.vhs-back-header {
  border-bottom: 1px solid rgba(229,222,210,.24);
  padding-bottom: 15px;
}

.vhs-back-header > span {
  display: block;
  margin-bottom: 10px;
  color: #a49a91;
  font: 700 6px "Space Mono", monospace;
  letter-spacing: .15em;
}

.vhs-back-header strong {
  display: block;
  max-width: 86%;
  color: #d8f2a2;
  font: 400 clamp(22px, 2.7vw, 34px)/.92 "Instrument Serif", Georgia, serif;
  letter-spacing: -.025em;
}

.vhs-back-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  margin-top: 17px;
}

.vhs-back-copy p {
  margin: 0;
  color: rgba(229,222,210,.78);
  font: 400 9px/1.55 "DM Sans", sans-serif;
}

.vhs-back-features {
  margin-top: 18px;
}

.vhs-back-features strong {
  color: var(--ll-plum);
  font: 700 7px "Space Mono", monospace;
  letter-spacing: .14em;
}

.vhs-back-features ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.vhs-back-features li {
  margin: 5px 0;
  color: rgba(229,222,210,.78);
  font: 400 7px/1.35 "Space Mono", monospace;
  letter-spacing: .04em;
}

.vhs-back-features li::before {
  content: "✦ ";
  color: var(--ll-plum);
}

.vhs-back-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 7px;
}

.vhs-back-still {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(229,222,210,.24);
  color: rgba(229,222,210,.68);
  background:
    linear-gradient(135deg, rgba(138,57,72,.24), transparent),
    #161114;
  font: 400 20px "Instrument Serif", Georgia, serif;
}

.vhs-back-still.still-c {
  grid-column: span 2;
  min-height: 54px;
  color: var(--ll-plum);
  font: 700 6px "Space Mono", monospace;
  letter-spacing: .16em;
}

.vhs-back-footer {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 63px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(229,222,210,.5);
  font: 700 6px "Space Mono", monospace;
  letter-spacing: .1em;
}

.vhs-shelf.is-back .vhs-inspection {
  transform: translateX(-50%);
}

@media (max-width: 820px) {
  .vhs-shelf.is-cover .vhs-spine.is-active,
  .vhs-shelf.is-back .vhs-spine.is-active {
    left: 8%;
    bottom: 82px;
    width: 52px;
    height: 270px;
  }

  .vhs-inspection {
    width: min(48vw, 360px);
    height: min(66vw, 440px);
    min-height: 360px;
  }

  .vhs-back-panel {
    padding: 21px;
  }

  .vhs-back-layout {
    gap: 10px;
  }

  .vhs-back-copy p {
    font-size: 7px;
  }

  .vhs-back-features li {
    font-size: 6px;
  }

  .vhs-back-footer {
    left: 21px;
    right: 21px;
  }
}

@media (max-width: 560px) {
  .vhs-shelf.is-cover .vhs-spine.is-active,
  .vhs-shelf.is-back .vhs-spine.is-active {
    left: 3%;
    bottom: 67px;
    width: 42px;
    height: 220px;
  }

  .vhs-shelf.is-shelf .vhs-spine.is-active {
    left: 50%;
    bottom: 66px;
    width: 42px;
    height: 220px;
  }

  .vhs-inspection {
    width: 53vw;
    height: 74vw;
    min-height: 320px;
    max-height: 390px;
    bottom: 58px;
  }

  .vhs-cover-print {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .vhs-cover-print > span {
    font-size: 5px;
  }

  .vhs-cover-print strong {
    font-size: clamp(25px, 7.5vw, 38px);
  }

  .vhs-cover-print small {
    font-size: 5px;
  }

  .vhs-inspection-action,
  .vhs-inspection-project {
    bottom: 10px;
    padding: 7px 8px;
    font-size: 5px;
  }

  .vhs-view-back,
  .vhs-inspection-project {
    right: 10px;
  }

  .vhs-view-cover {
    left: 10px;
  }

  .vhs-back-panel {
    padding: 16px;
  }

  .vhs-back-header {
    padding-bottom: 9px;
  }

  .vhs-back-header > span {
    font-size: 5px;
    margin-bottom: 7px;
  }

  .vhs-back-header strong {
    font-size: clamp(17px, 5vw, 24px);
  }

  .vhs-back-layout {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .vhs-back-stills {
    display: none;
  }

  .vhs-back-copy p {
    font-size: 6px;
    line-height: 1.45;
  }

  .vhs-back-features {
    margin-top: 10px;
  }

  .vhs-back-features li {
    margin: 3px 0;
    font-size: 5px;
  }

  .vhs-back-footer {
    left: 16px;
    right: 16px;
    bottom: 45px;
    font-size: 4px;
  }
}


/* =========================================================
   VHS ARCHIVE / CONTROL + CAPTION CLARITY PASS
   ========================================================= */
.vhs-shelf.is-cover .vhs-view-back,
.vhs-shelf.is-back .vhs-view-cover {
  left: 18px;
  right: auto;
}

.vhs-shelf.is-cover .vhs-inspection-project,
.vhs-shelf.is-back .vhs-inspection-project {
  right: 18px;
  left: auto;
}

/* Keep the return instruction visibly attached to the selected spine. */
.vhs-spine-action {
  bottom: -38px;
  width: 150px;
  color: var(--ll-plum);
  font: 700 6px/1.5 "Space Mono", monospace;
  letter-spacing: .12em;
  text-shadow: 0 0 8px rgba(138,57,72,.3);
  white-space: nowrap;
  pointer-events: none;
}

/* The archive caption is part of the editorial composition, not hidden metadata. */
.vhs-archive-info {
  color: var(--ll-plum);
}

.vhs-counter {
  color: var(--ll-plum) !important;
  text-shadow: 0 0 8px rgba(138,57,72,.24);
}

.vhs-info-copy span {
  color: var(--ll-plum) !important;
  text-shadow: 0 0 8px rgba(138,57,72,.2);
}

.vhs-info-copy strong {
  color: var(--ll-plum) !important;
  text-shadow:
    0 0 5px rgba(138,57,72,.4),
    0 0 14px rgba(101,31,43,.25);
}

.vhs-open {
  color: var(--ll-plum) !important;
  text-shadow: 0 0 8px rgba(138,57,72,.24);
}

.vhs-open:hover,
.vhs-open:focus-visible {
  color: var(--ll-plum) !important;
}

/* Make the two cover controls read as separate physical instructions. */
.vhs-shelf.is-cover .vhs-inspection-action,
.vhs-shelf.is-cover .vhs-inspection-project {
  bottom: 16px;
}

@media (max-width: 560px) {
  .vhs-shelf.is-cover .vhs-view-back {
    left: 8px;
    right: auto;
  }

  .vhs-shelf.is-cover .vhs-inspection-project {
    right: 8px;
    left: auto;
  }

  .vhs-spine-action {
    bottom: -34px;
    width: 120px;
    font-size: 5px;
  }

  .vhs-shelf.is-cover .vhs-inspection-action,
  .vhs-shelf.is-cover .vhs-inspection-project {
    bottom: 8px;
    padding: 7px 8px;
  }

  .vhs-info-copy strong {
    color: var(--ll-plum) !important;
    font-size: 22px;
  }
}


/* =========================================================
   VHS ARCHIVE / RETURN CTA + MOBILE PARITY
   The selected spine itself is the return control.
   ========================================================= */
.vhs-shelf.is-cover .vhs-spine.is-active,
.vhs-shelf.is-back .vhs-spine.is-active {
  overflow: visible;
}

.vhs-spine-action {
  bottom: 10px;
  width: calc(100% - 10px);
  min-height: 24px;
  padding: 7px 4px;
  box-sizing: border-box;
  border: 1px solid rgba(138,57,72,.68);
  background: rgba(21,18,19,.92);
  color: var(--ll-plum);
  font: 700 5px/1.4 "Space Mono", monospace;
  letter-spacing: .08em;
  text-align: center;
  text-shadow: 0 0 7px rgba(138,57,72,.3);
  white-space: normal;
  pointer-events: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.vhs-spine.is-selected:hover .vhs-spine-action,
.vhs-spine.is-selected:focus-visible .vhs-spine-action {
  background: var(--ll-plum);
  border-color: var(--ll-plum);
  color: var(--ll-bone);
}

@media (max-width: 820px) {
  .vhs-shelf.is-cover .vhs-spine.is-active,
  .vhs-shelf.is-back .vhs-spine.is-active {
    left: 7%;
    bottom: 82px;
    width: 58px;
    height: 285px;
    z-index: 20;
  }

  .vhs-spine-action {
    bottom: 8px;
    width: 50px;
    min-height: 28px;
    padding: 6px 3px;
    font-size: 4.5px;
  }

  .vhs-shelf.is-cover .vhs-view-back,
  .vhs-shelf.is-back .vhs-view-cover {
    z-index: 25;
  }

  .vhs-shelf.is-cover .vhs-inspection-project,
  .vhs-shelf.is-back .vhs-inspection-project {
    z-index: 25;
  }

  .vhs-arrow {
    z-index: 26;
  }

  .vhs-archive-info {
    position: relative;
    z-index: 2;
  }

  .vhs-info-copy span,
  .vhs-info-copy strong,
  .vhs-counter,
  .vhs-open {
    color: var(--ll-plum) !important;
  }
}

@media (max-width: 560px) {
  .vhs-shelf.is-cover .vhs-spine.is-active,
  .vhs-shelf.is-back .vhs-spine.is-active {
    left: 2%;
    bottom: 67px;
    width: 46px;
    height: 225px;
    z-index: 20;
  }

  .vhs-spine-action {
    bottom: 7px;
    width: 40px;
    min-height: 31px;
    padding: 5px 2px;
    font-size: 4px;
    line-height: 1.25;
    letter-spacing: .05em;
  }

  .vhs-inspection {
    z-index: 10;
  }

  .vhs-shelf.is-cover .vhs-view-back,
  .vhs-shelf.is-cover .vhs-inspection-project,
  .vhs-shelf.is-back .vhs-view-cover,
  .vhs-shelf.is-back .vhs-inspection-project {
    z-index: 30;
  }

  .vhs-arrow {
    z-index: 31;
  }

  /* Mobile retains the full interaction model:
     spine = return, cover = project/back, back = cover/project, arrows = project navigation. */
  .vhs-shelf.is-cover .vhs-view-back {
    left: 8px;
    right: auto;
  }

  .vhs-shelf.is-cover .vhs-inspection-project,
  .vhs-shelf.is-back .vhs-inspection-project {
    right: 8px;
    left: auto;
  }

  .vhs-shelf.is-back .vhs-view-cover {
    left: 8px;
    right: auto;
  }

  .vhs-shelf.is-shelf .vhs-spine {
    z-index: 20;
  }
}


/* =========================================================
   VHS ARCHIVE / APPROVED PHYSICAL PACKAGING ART
   Front / spine / back all use the same approved artwork set.
   ========================================================= */
.vhs-spine-art {
  position: absolute;
  inset: 0;
  display: block;
  background-repeat: no-repeat;
  background-size: 300% 400%;
  background-color: #111;
  pointer-events: none;
}

.vhs-spine-number,
.vhs-spine-title,
.vhs-spine-brand {
  display: none !important;
}

.vhs-spine-action {
  z-index: 3;
}

.vhs-back-panel {
  padding: 0 !important;
  background-repeat: no-repeat !important;
  background-size: 300% 400% !important;
  background-color: #111 !important;
  overflow: hidden;
}

.vhs-back-panel::before {
  display: none !important;
}

.vhs-physical-credit {
  position: absolute;
  left: 12px;
  bottom: 52px;
  z-index: 4;
  color: rgba(229,222,210,.72);
  font: 700 5px/1.4 "Space Mono", monospace;
  letter-spacing: .08em;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

@media (max-width: 820px) {
  .vhs-back-panel {
    background-size: 300% 400% !important;
  }

  .vhs-physical-credit {
    left: 9px;
    bottom: 45px;
    font-size: 4px;
  }
}

@media (max-width: 560px) {
  .vhs-back-panel {
    background-size: 300% 400% !important;
  }

  .vhs-physical-credit {
    left: 7px;
    bottom: 38px;
    font-size: 3.5px;
  }
}


/* VHS ARTWORK FIT / KEEP FRONT-BACK-SPINE IN SYNC */
.vhs-cover-sprite {
  position: absolute;
  inset: 0;
  display: block;
  background-repeat: no-repeat;
  background-size: 300% 400%;
  background-color: #111;
  pointer-events: none;
}


.vhs-cover-art img {
  object-fit: cover !important;
  object-position: center !important;
}

.vhs-spine-art {
  background-size: 300% 400% !important;
  background-repeat: no-repeat !important;
}
.vhs-back-panel {
  background-size: 300% 400% !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 820px) {
  .vhs-spine-art {
    background-size: 300% 400% !important;
  }
  .vhs-back-panel {
    background-size: 300% 400% !important;
  }

  .vhs-inspection-action,
  .vhs-inspection-project {
    z-index: 30;
  }
}

@media (max-width: 560px) {
  .vhs-spine-art {
    background-size: 300% 400% !important;
  }
  .vhs-back-panel {
    background-size: 300% 400% !important;
  }

  .vhs-inspection-action,
  .vhs-inspection-project {
    min-height: 30px;
    padding: 8px 9px;
    z-index: 30;
  }

  .vhs-view-back {
    right: 8px;
  }

  .vhs-view-cover {
    left: 8px;
  }

  .vhs-inspection-project,
  .vhs-shelf.is-cover .vhs-inspection-project,
  .vhs-shelf.is-back .vhs-inspection-project {
    right: 8px;
  }
}


/* VHS ACTIVE SPINE / CENTERING + LEGIBILITY */
.vhs-shelf.is-cover .vhs-spine.is-active,
.vhs-shelf.is-back .vhs-spine.is-active {
  left: calc(50% - 286px) !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box;
}

.vhs-spine-action {
  color: #f3e8cf !important;
  background: rgba(39, 13, 28, .96);
  border: 1px solid rgba(196, 119, 145, .95);
  box-shadow: 0 2px 8px rgba(0,0,0,.65);
  padding: 6px 5px;
  width: 92px;
  z-index: 50 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}

@media (max-width: 820px) {
  .vhs-shelf.is-cover .vhs-spine.is-active,
  .vhs-shelf.is-back .vhs-spine.is-active {
    left: calc(50% - 214px) !important;
  }
}

@media (max-width: 560px) {
  .vhs-shelf.is-cover .vhs-spine.is-active,
  .vhs-shelf.is-back .vhs-spine.is-active {
    left: calc(50% - 166px) !important;
  }

  .vhs-spine-action {
    width: 84px;
    padding: 5px 4px;
    font-size: 5.5px !important;
    color: #f3e8cf !important;
    background: rgba(39, 13, 28, .98);
    border-color: rgba(196, 119, 145, .98);
  }
}


/* VHS SPINE FIT — preserve the approved spine artwork proportions instead of
   stretching the 3×4 archive sprite into the narrow shelf tape dimensions. */
.vhs-spine-art {
  background-size: auto 400% !important;
  background-repeat: no-repeat !important;
  background-color: #111 !important;
}

/* The sprite's spine columns are left / left / right for the approved set.
   The active artwork is centered inside the narrow physical tape. */
.vhs-spine {
  overflow: hidden;
}

@media (max-width: 820px) {
  .vhs-spine-art {
    background-size: auto 400% !important;
  }
}

@media (max-width: 560px) {
  .vhs-spine-art {
    background-size: auto 400% !important;
  }
}


/* ARCHIVE LEGIBILITY — keep the established plum / bone / charcoal palette,
   but assign each text tone according to the surface it sits on. */
.work-head .eyebrow,
.work-head .eyebrow::before,
.work-head .eyebrow::after {
  color: var(--ll-bone) !important;
}

.work-head .section-title::after {
  color: var(--ll-bone) !important;
}

/* The VHS header sits on the paper-colored shelf, so use the editorial ink
   hierarchy rather than plum-on-paper. */
.vhs-archive-kicker {
  color: var(--editorial-muted) !important;
}

.vhs-archive-format {
  color: var(--editorial-muted) !important;
}

.vhs-counter {
  color: var(--ll-bone) !important;
}

.vhs-info-copy span {
  color: var(--ll-bone-soft) !important;
}

.vhs-info-copy strong {
  color: var(--ll-bone) !important;
}

.vhs-open,
.vhs-open:hover,
.vhs-open:focus-visible {
  color: var(--ll-bone) !important;
}


/* ARCHIVE / CTA COLOR HIERARCHY
   Pink is the warm accent already present in the site's visual language.
   Lilac handles small editorial metadata; bone is reserved for high-contrast
   navigation and guide text. */
.nav-shop-action {
  color: #d5a6ad !important;
}

.work-head .eyebrow,
.work-head .eyebrow::before,
.work-head .eyebrow::after {
  color: var(--ll-lilac) !important;
}

.work-head::after {
  color: var(--ll-lilac) !important;
}

.vhs-archive-head h3 {
  color: #d5a6ad !important;
}

.vhs-archive-kicker,
.vhs-archive-format {
  color: var(--ll-lilac) !important;
}

.bat-guide-label {
  color: var(--ll-bone) !important;
}
