/* ==========================================================================
   RAW EDITORIAL & BRUTALIST DESIGN ENGINE — MARC BELLE
   ========================================================================== */

@font-face { 
  font-family: 'Borna';
  src: url('borna-regular-webfont.eot');
  src: url('borna-regular-webfont.eot?#iefix') format('embedded-opentype'),
       url('borna-regular-webfont.woff') format('woff'),
       url('borna-regular-webfont.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Crisp Vector Antialiasing Override */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

body {
  background-color: #0d0d0d;
  font-family: 'Borna', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #ffffff;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  margin: 0;
  padding: 30px;
}

/* 2. Micro-Noise Layer with Top-to-Bottom Fade & Animated Grain Engine */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1000px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fineNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fineNoise)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
  
  /* Static Animation Loop */
  animation: staticGrain 0.8s steps(4) infinite;
}

/* Stepped Grain Keyframes */
@keyframes staticGrain {
  0% { background-position: 0 0; }
  25% { background-position: -50px 20px; }
  50% { background-position: 30px -40px; }
  75% { background-position: -20px -30px; }
  100% { background-position: 40px 10px; }
}

/* High-Contrast Crisp Selection */
::selection {
  background: #ffffff !important;
  color: #000000 !important;
}

h1, p, ul {
  margin: 0;
  padding: 0;
}

a {
  color: #ffffff;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Section Wrapper Base */
.site-section {
  margin-top: 75px;
  margin-bottom: 70px;
}

/* ==========================================================================
   MASTHEAD & NAVIGATION
   ========================================================================== */

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001; /* Above overlay layer */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 30px;
  background: transparent;
  pointer-events: none; /* Clicks pass through empty grid spaces */
}

/* Re-enable pointer events specifically for interactive elements */
.masthead-brand,
.masthead-desktop-nav,
.hamburger-trigger {
  pointer-events: auto;
}

.masthead-brand {
  grid-column: 1 / 2;
}

.masthead-brand a {
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

/* Base Vector Underline Track */
.masthead-brand a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0); /* Starts hidden, or change to 1 if you want it visible by default */
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.masthead-brand a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.masthead-desktop-nav {
  grid-column: 2 / 3;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.nav-link {
  font-size: 18px;
  line-height: 24px;
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* 2-Line Dynamic Morph Trigger */
.hamburger-trigger {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1002;
  grid-column: 3 / 4;
  justify-self: end;
}

.burger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.burger-line.line-1 {
  top: 6px;
}

.burger-line.line-2 {
  top: 14px;
}

/* Morph to X when active */
.hamburger-trigger.open .burger-line.line-1 {
  top: 10px;
  transform: rotate(45deg);
}

.hamburger-trigger.open .burger-line.line-2 {
  top: 10px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   FULL-SCREEN OVERLAY ENGINE (TOP SLIDE IN / DISSOLVE OUT)
   ========================================================================== */

.sidemenu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background-color: #0d0d0d;
  padding: 140px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  
  /* Closed State: Instant vanish, no click blocking */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  /* Dissolve close transition */
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidemenu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidemenu-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 80vw;
}

.menu-link {
  font-size: 72px;
  line-height: 80px;
  color: #ffffff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  display: inline-block;
  
  /* Fast dissolve exit for menu copy */
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered entrance animation when menu opens */
.sidemenu.open .menu-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidemenu.open .menu-link:nth-child(1) { transition-delay: 0.12s; }
.sidemenu.open .menu-link:nth-child(2) { transition-delay: 0.18s; }
.sidemenu.open .menu-link:nth-child(3) { transition-delay: 0.24s; }

/* Kinetic underline wipe on big menu links */
.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ==========================================================================
   TYPOGRAPHY & HERO STATEMENT
   ========================================================================== */

.hero-section {
  margin-top: 100px;
}

.intro-statement {
  font-size: 72px;
  line-height: 80px;
  color: #ffffff;
  max-width: 60vw;
}

.section-title {
  font-size: 18px;
  line-height: 44px;
  font-weight: 400;
  margin-bottom: 10px;
}

.down-arrow {
  margin-bottom: 30px;
  margin-top: -10px;
  width: 20px !important;
  height: auto;
}

.card-subtitle {
  color: hsla(0, 0%, 100%, 0.6);
}

/* ==========================================================================
   CASE STUDIES GRID ENGINE
   ========================================================================== */

.case-studies-feed {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-card-row {
  display: flex;
  gap: 16px;
}

.case-card.full-width {
  width: 100%;
}

.case-card.half-width {
  width: 50%;
}

.case-card-link {
  display: block;
  text-decoration: none;
  width: 100%;
}

.card-media {
  margin-bottom: 16px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  filter: brightness(1);
  will-change: filter;
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card-link:hover .card-media img {
  filter: brightness(0.85);
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.card-title {
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  width: 100%;
  margin: 0;
}

img.casestudyArrow {
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: block;
  object-fit: contain;
  align-self: flex-start;
  transform: translate3d(0, 0, 0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

img.pressArrow {
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: block;
  object-fit: contain;
  transform: translate3d(0, 0, 0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.case-card-link:hover img.casestudyArrow {
  transform: translate3d(6px, 0, 0);
}

.table-row-link:hover img.pressArrow {
  transform: translate3d(8px, 0, 0);
}

/* ==========================================================================
   EDITORIAL TABLES (ARCHIVE & PRESS — PURE CSS GRID)
   ========================================================================== */

.editorial-table {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.table-row {
  border-top: 1px solid #4b4b4b;
  padding: 20px 0;
}

.editorial-table .table-row:last-child {
  border-bottom: 1px solid #4b4b4b;
}

.table-row-link,
.table-row-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  width: 100%;
}

.table-row-link {
  color: hsla(0, 0%, 100%, 0.6);
  transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.table-row-link:hover {
  color: #ffffff;
}

.table-row.disabled {
  cursor: default;
}

.table-row-content {
  color: #3c3c3c;
  user-select: none;
}

.col-action {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.table-row-link:hover img.pressArrow {
  transform: translate3d(8px, 0, 0);
}

/* ==========================================================================
   ABOUT, SERVICES & FOOTER
   ========================================================================== */

.about-paragraph {
  font-size: 52px;
  line-height: 68px;
  max-width: 100%;
}

.servicelist {
  font-size: 18px;
  line-height: 28px;
  color: hsla(0, 0%, 100%, 0.6);
}

.contact-block {
  font-size: 18px;
  line-height: 24px;
}

.contact-email {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.contact-email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer-section {
  margin-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer-copy {
  grid-column: 1 / 2;
}

.footer-links {
  grid-column: 2 / 3;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.footer-link {
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ==========================================================================
   DESKTOP OVERRIDE (HARD-KILL MOBILE OVERLAY ON RESIZE)
   ========================================================================== */

@media (min-width: 768px) {
  .sidemenu,
  .sidemenu.open {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (RAZOR MOBILE ENGINE)
   ========================================================================== */

@media (max-width: 767px) {
  body {
    padding: 20px;
    font-size: 15px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-meta {
    gap: 0;
  }

  .masthead {
    display: flex;
    justify-content: space-between;
    padding: 20px;
  }

  .masthead-desktop-nav {
    display: none;
  }

  .hamburger-trigger {
    display: block;
  }

  .sidemenu {
    padding-top: 100px;
  }

  .menu-link {
    font-size: 42px;
    line-height: 50px;
  }

  .hero-section {
    margin-top: 80px;
  }

  .intro-statement {
    font-size: 38px;
    line-height: 42px;
    max-width: 100%;
  }

  .case-card-row {
    flex-direction: column;
    gap: 40px;
  }

  .case-card.half-width {
    width: 100%;
  }

  .table-row-link,
  .table-row-content {
    grid-template-columns: 1fr;
  }

  .col-action {
    justify-content: flex-start;
    text-align: left;
  }

  .about-paragraph {
    font-size: 24px;
    line-height: 36px;
    max-width: 100%;
  }

  .contact-block {
    font-size: 18px;
    line-height: 24px;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   EDITORIAL PROJECT PAGE ENGINE
   ========================================================================== */

.project-container {
  margin-top: 140px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Title & Back Link Container (Optical Midpoint Alignment) */
.project-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Kinetic Back Link */
.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-4px); /* Precision optical lift against capital 'M' */
}

.back-text {
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

img.project-arrow-left {
  height: 20px !important;
  display: block;
  object-fit: contain;
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Kinetic Hover */
.project-back-link:hover img.project-arrow-left {
  transform: translate3d(-6px, 0, 0);
}

.project-back-link:hover .back-text {
  opacity: 0.7;
}

.project-title {
  font-size: 72px;
  line-height: 80px;
  font-weight: 400;
  color: #ffffff;
}

/* Asymmetrical Spec Bar Engine (Preserves existing HTML) */
.project-spec-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid #4b4b4b;
  border-bottom: 1px solid #4b4b4b;
}

/* Left Column: Subtitle + Role */
.project-spec-bar .spec-col:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.project-subtitle {
  color: #ffffff;
  font-size: 18px;
  line-height: 24px;
  padding-right: 0;
}

.spec-label {
  font-size: 18px;
  line-height: 24px;
  color: hsla(0, 0%, 100%, 0.4);
  display: inline-flex;
  align-items: center;
}

/* Appends an optical trailing slash after role title on desktop */
.spec-label::after {
  content: "";
  color: hsla(0, 0%, 100%, 0.4);
  margin-left: 4px;
}

/* Right Column: Pinned to right margin */
.project-spec-bar .spec-col:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

.spec-value {
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
}

/* Centered Display Copy Block */
.project-copy-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
  text-align: left;
}

.editorial-body {
  font-size: 52px;
  line-height: 68px;
  color: #ffffff;
}
/*
.text-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}*/
/* ==========================================================================
   INLINE EDITORIAL LINKS — DUAL-SWEEP KINETIC ENGINE
   ========================================================================== */

.text-link,
.project-copy-block a,
.editorial-body a {
  color: #ffffff !important;
  text-decoration: none !important;
  position: relative;
  display: inline;
  padding-bottom: 4px;
  cursor: pointer;
}

/* Base Vector Track */
.text-link::after,
.project-copy-block a::after,
.editorial-body a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #ffffff;
  transform-origin: right center;
  transform: scaleX(1);
  /* Triggers the "Hover-Off" redraw animation when cursor leaves */
  animation: sweepOutIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, transform-origin;
}

/* HOVER ON: Line #1 wipes right -> Line #2 sweeps in from left */
.text-link:hover::after,
.project-copy-block a:hover::after,
.editorial-body a:hover::after {
  animation: sweepInNew 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Subtle Editorial Dip */
.text-link:hover,
.project-copy-block a:hover,
.editorial-body a:hover {
  color: hsla(0, 0%, 100%, 0.75) !important;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* KEYFRAMES: Hover On (Collapse Right -> Draw from Left) */
@keyframes sweepInNew {
  0% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  49% {
    transform: scaleX(0);
    transform-origin: right center;
  }
  50% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* KEYFRAMES: Hover Off (Collapse Right -> Redraw from Left) */
@keyframes sweepOutIn {
  0% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  49% {
    transform: scaleX(0);
    transform-origin: right center;
  }
  50% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* Media Display Engine */
.project-media-block.full img {
  width: 100%;
  height: auto;
  display: block;
}

.project-media-grid.half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-media-grid.half img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   AUTOMATIC SEQUENTIAL MEDIA SIBLING COLLAPSE ENGINE (16PX GAP)
   ========================================================================== */

.project-media-block + .project-media-block,
.project-media-block + .project-media-grid,
.project-media-grid + .project-media-block,
.project-media-grid + .project-media-grid {
  margin-top: -44px; /* Cancels 60px flex container gap down to exactly 16px */
}

/* Mobile Breakpoints */
@media (max-width: 767px) {
  .project-container {
    margin-top: 100px;
    gap: 40px;
  }

  .project-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .project-back-link {
    transform: translateY(0);
    gap: 6px;
  }

  .back-text {
    font-size: 15px;
  }

  img.project-arrow-left {
    height: 18px !important;
  }

  .project-title {
    font-size: 38px;
    line-height: 44px;
  }

  /* Spec Bar Mobile Reset (Full-Width Left-Aligned Vertical Stack) */
  .project-spec-bar {
    grid-template-columns: 1fr;
    gap: 0;
  }

    .spec-col {
      gap: 0;
  }

  .project-spec-bar .spec-col:first-child,
  .project-spec-bar .spec-col:last-child {
    align-items: flex-start;
    text-align: left;
  }

  .spec-label::after {
    content: ""; /* Removes trailing slash on mobile */
  }

  .project-subtitle,
  .spec-label,
  .spec-value {
    font-size: 15px;
    line-height: 20px;
  }

  .project-copy-block {
    max-width: 100%;
    margin: 0;
  }

  .editorial-body {
    font-size: 24px;
    line-height: 36px;
  }

  .project-media-grid.half {
    grid-template-columns: 1fr;
  }

  /* Mobile Sequential Sibling Collapse Engine */
  .project-media-block + .project-media-block,
  .project-media-block + .project-media-grid,
  .project-media-grid + .project-media-block,
  .project-media-grid + .project-media-grid {
    margin-top: -24px; /* Cancels 40px mobile flex gap down to 16px */
  }
}


/* ==========================================================================
   HIGH-CONTRAST MONOLITH PASSWORD GATE (VIEWPORT CENTERED & 35% CARD WIDTH)
   ========================================================================== */

/* 1. Viewport Centering Stage: Forces strict 100vh flex centering */
.password-gate-viewport {
  min-height: calc(100vh - 120px);
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* 2. Tight Editorial Card: Locked to ~35% viewport width on desktop */
.password-gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 440px; /* Locks card to 30-40% desktop canvas width */
  margin: 0 auto;
}

/* Label Above Field */
.password-gate-label {
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  text-align: center;
  font-weight: 400;
  width: 100%;
}

.password-gate-form {
  width: 100%;
}

/* 3. Solid Light Monolith Box */
.password-field-container {
  position: relative;
  width: 100%;
  height: 64px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 4. Input Styling & Optical Baseline Lift for Borna */
.password-gate-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Borna', system-ui, -apple-system, sans-serif;
  font-size: 28px;
  line-height: 64px; /* Matches container height for vertical centering */
  color: #000000;
  padding: 0 54px 0 0; /* Buffer for enlarged arrow */
  margin: 0;
  display: block;
  transform: translateY(-2px); /* Lifts Borna bullet font metrics onto center axis */
  box-sizing: border-box;
}

/* 5. Unconstrained Submit Button */
.password-gate-submit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* 6. High-Impact 32px Arrow */
img.gate-arrow {
  height: 20px !important;
  display: block;
  object-fit: contain;
  filter: brightness(0); /* Pure black inside white box */
  transform: translate3d(0, 0, 0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* KINETIC HOVER: Kinetic shift triggers ONLY on direct arrow hover */
.password-gate-submit:hover img.gate-arrow {
  transform: translate3d(8px, 0, 0);
}

/* Mobile Responsive Reset (Expands to Edge Margins) */
@media (max-width: 767px) {
  .password-gate-viewport {
    min-height: calc(100vh - 160px);
    padding: 20px;
  }

  .password-gate-card {
    max-width: 100%; /* Edge-to-edge card on mobile screen */
  }

  .password-gate-label {
    font-size: 15px;
    line-height: 20px;
  }

  .password-field-container {
    height: 54px;
    padding: 0 16px;
  }

  .password-gate-input {
    font-size: 20px;
    line-height: 54px;
    padding-right: 44px;
    transform: translateY(0);
  }

}

/* ==========================================================================
   BRUTALIST SCROLL REVEAL ENGINE (KINETIC ENTRANCE)
   ========================================================================== */

/* Elements waiting to be scrolled into view */
.reveal-on-scroll {
  opacity: 0;
  /*transform: translate3d(0, 10px, 0);*/
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active State: Lifted into place as user scrolls past */
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Progressive Staggering for Sibling Media/Grids */
.reveal-on-scroll.in-view:nth-child(2) { transition-delay: 0.08s; }
.reveal-on-scroll.in-view:nth-child(3) { transition-delay: 0.14s; }

/* Accessibility Fallback (Disables animation for users preferring reduced motion) */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   INLINE TYPOGRAPHIC AUDIO PLAYER ENGINE (OPTICAL SYMMETRY OVERRIDE)
   ========================================================================== */

.editorial-audio-player.inline-style {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 0 0 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
}

/* Raw Text Play/Pause Trigger */
.audio-toggle-text {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  font-family: 'Borna', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-width: 72px; /* Holds fixed footprint */
  flex-shrink: 0;
  text-align: left;
}

/* Inner Text Span */
.audio-toggle-text span {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  margin-right: 18px; /* Clean breathing space before track starts */
}

/* Kinetic Underline Wipe (Strictly bound to word length) */
.audio-toggle-text span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.audio-toggle-text:hover span::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Scrubbing Track Span */
.audio-scrub-container {
  flex-grow: 1;
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-right: 28px; /* EXPANDED: Gives the timestamp extra optical breath */
}

.audio-progress-track {
  width: 100%;
  height: 2px;
  background-color: #3c3c3c;
  position: relative;
  overflow: hidden;
}

.audio-progress-fill {
  width: 0%;
  height: 100%;
  background-color: #ffffff;
  transition: width 0.1s linear;
}

/* Monospaced Timecode Display */
.audio-time-display {
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
  font-family: 'Borna', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile Breakpoint Alignment */
@media (max-width: 767px) {
  .audio-toggle-text {
    min-width: 58px;
    font-size: 15px;
    line-height: 20px;
  }

  .audio-toggle-text span {
    margin-right: 12px;
  }

  .audio-scrub-container {
    margin-right: 18px;
  }

  .audio-time-display {
    font-size: 15px;
    line-height: 20px;
  }
}

/* ==========================================================================
   HIGH-CONTRAST MONOLITH PASSWORD GATE (PINNED BOTTOM-LEFT RETURN)
   ========================================================================== */

/* 1. Full-Height Locked Viewport Stage */
.password-gate-viewport {
  position: relative;
  min-height: calc(100vh - 120px);
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 40px 30px;
  box-sizing: border-box;
}

/* 2. Tight Centered Card */
.password-gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* 3. Bottom-Left Escape Hatch (Anchored to Site Grid) */
.password-gate-back {
  position: absolute;
  left: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
}

/* Mobile Breakpoint Alignment */
@media (max-width: 767px) {
  .password-gate-viewport {
    min-height: calc(100vh - 100px);
    padding: 20px;
  }

  .password-gate-back {
    left: 20px;
    bottom: 25px;
  }
}