:root {
  --olive: #394438;
  --terra: #a65f45;
  --char: #252724;
  --bone: #f3efe6;
  --white: #fffdf8;
  --line: rgba(37, 39, 36, 0.22);
  --muted: #696b65;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --teps-sans: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  --banner-h: 95vh;
  --page-x: clamp(1.4rem, 6vw, 7rem);
  --page-y: clamp(1.6rem, 5vh, 4.5rem);
}

* { box-sizing: border-box; }
html { }
body {
  margin: 0;
  background: #fff;
  color: var(--char);
  font-family: var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
main { width: 100%; overflow: hidden; }

.portfolio-hero {
  position: relative;
  width: 100%;
  min-height: var(--banner-h);
  padding: var(--page-y) var(--page-x);
  display: grid;
  grid-template-rows: 1fr auto;
  background: #000;
  color: #fff;
  animation: hero-settle 3.5s cubic-bezier(0.5, 1, 0.36, 1) 1s both;
}

.portfolio-hero__privacy {
  position: absolute;
  z-index: 2;
  top: var(--page-y);
  right: var(--page-y);
  color: #8f8f8f;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.76rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.portfolio-hero__privacy:hover,
.portfolio-hero__privacy:focus-visible {
  color: #fff;
}

.portfolio-hero__privacy:focus-visible {
  outline: 0.0625rem solid #fff;
  outline-offset: 0.35rem;
}

@keyframes hero-settle {
  0%, 100% {
    min-height: var(--banner-h);
  }

  45%, 65% {
    min-height: calc(var(--banner-h) - 5vh);
  }

}

html.page-transition-preview .portfolio-hero {
  min-height: var(--banner-h);
  animation: none;
}

.portfolio-hero__copy {
  align-self: center;
  width: min(78vw, 78rem);
}

.portfolio-eyebrow {
  margin: 0 0 clamp(0.8rem, 1.8vh, 1.4rem);
  color: #9b9b9b;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.76rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portfolio-hero h1 {
  margin: 0;
  color: #fff;
  font: 500 clamp(3.8rem, 8vw, 9rem) / 0.88 var(--sans);
  letter-spacing: -0.015em;
}

.portfolio-hero__copy > p:last-child {
  max-width: 42rem;
  margin: clamp(1rem, 2.5vh, 2rem) 0 0;
  color: #a8a8a8;
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
  line-height: 1.65;
}

.portfolio-hero__link {
  width: fit-content;
  color: #a8a8a8;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.76rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.portfolio-hero__link span { margin-left: 0.5em; color: #fff; }

.portfolio-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.portfolio-hero__conversation {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

/* =========================
   VERO & TERRA — ORIGINAL DEMO LANGUAGE
   ========================= */

.vero-banner {
  width: 100%;
  height: var(--banner-h);
  background: var(--bone);
  color: var(--char);
}

.vero-banner__inner {
  width: 100%;
  height: 100%;
  padding: clamp(2rem, 5vh, 4.5rem) var(--page-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.index-mark {
  width: clamp(3rem, 3.8vw, 4rem);
  aspect-ratio: 1;
  margin-bottom: clamp(1.2rem, 2.8vh, 2.5rem);
}

.index-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  color: var(--terra);
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.64rem);
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.vero-banner h2 {
  max-width: 55rem;
  margin: clamp(0.7rem, 1.4vh, 1rem) 0;
  font: 400 clamp(3rem, 7vw, 7rem) / 0.95 var(--serif);
  letter-spacing: -0.055em;
}

.index-intro {
  max-width: 41rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  line-height: 1.7;
}

@media (min-width: 52.01rem) {
  .vero-banner h2 {
    max-width: 72rem;
  }

  .index-intro {
    max-width: 50rem;
  }
}

.index-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 0.0625rem solid var(--line);
}

.index-grid a {
  padding: clamp(1.1rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.7vh, 0.7rem);
  border-inline-start: 0.0625rem solid var(--line);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.index-grid a:last-child { border-inline-end: 0.0625rem solid var(--line); }
.index-grid a:hover,
.index-grid a:focus-visible {
  background: var(--olive);
  color: var(--white);
  outline: none;
}
.index-grid span { color: var(--terra); font-size: 0.7rem; }
.index-grid strong { font: clamp(1.1rem, 1.5vw, 1.5rem) var(--serif); }
.index-grid small { color: var(--muted); line-height: 1.5; }
.index-grid a:hover small,
.index-grid a:focus-visible small { color: rgba(255,255,255,.62); }

.index-note {
  margin: clamp(0.6rem, 1.3vh, 1rem) 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.vero-live-link {
  width: fit-content;
  margin-top: clamp(1.7rem, 4vh, 3.8rem);

  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  color: var(--terra);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.vero-live-link span {
  transform: translate(0.12rem, -0.12rem);
  font-size: 0.9rem;
  transition: transform 180ms ease;
}

.vero-live-link:hover span,
.vero-live-link:focus-visible span {
  transform: translate(0.22rem, -0.22rem);
}

/* =========================
   TEPS — FULL BLEED ARCHIVE
   ========================= */

.teps-project {
  position: relative;
  width: 100%;
  height: var(--banner-h);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #000;
  color: #fff;
  font-family: var(--teps-sans);
}

/* Scan-line / white band texture is deliberately contained to the header. */
.teps-scanlines {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(4.2rem, 8vh, 5.8rem);
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 0.1875rem,
    rgba(255,255,255,0.03) 0.1875rem,
    rgba(255,255,255,0.03) 0.25rem
  );
}

.teps-project__header,
.teps-project__body,
.teps-project__visit {
  position: relative;
  z-index: 1;
}

.teps-project__header {
  min-height: clamp(4.2rem, 8vh, 5.8rem);
  padding: clamp(0.8rem, 1.6vh, 1.35rem) var(--page-x);
  display: flex;
  align-items: center;
  border-bottom: 0.0625rem solid #444;
}

.teps-project__identity {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1vw, 1rem);
  min-width: 0;
}
.teps-project__identity img {
  width: clamp(2.2rem, 2.7vw, 3rem);
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: clamp(0.2rem, 0.3vw, 0.35rem);
}
.teps-project__identity div {
  display: flex;
  align-items: baseline;
  gap: clamp(0.7rem, 1vw, 1.1rem);
  min-width: 0;
}
.teps-project__identity strong {
  font-size: clamp(0.8rem, 1vw, 1.05rem);
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.teps-project__identity span {
  color: #999;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.66rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.teps-project__body {
  min-height: 0;
  padding: clamp(1.4rem, 3vh, 2.8rem) var(--page-x);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 7rem);
  align-items: center;
}

.teps-project__title > p,
.teps-label {
  margin: 0 0 clamp(0.55rem, 1vh, 0.85rem);
  color: #acacac;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.68rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.teps-project h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 7.2rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}
.teps-project h2 span { color: #f00; font-weight: 300; letter-spacing: 0.12em; }

.teps-project__study { min-width: 0; align-self: center; }
.teps-lead {
  max-width: 44rem;
  margin: 0;
  color: #fff;
  font-size: clamp(0.95rem, 1.25vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
}
.teps-study__columns {
  margin-top: clamp(1rem, 2vh, 1.8rem);
  padding-top: clamp(1rem, 2vh, 1.8rem);
  border-top: 0.0625rem solid #222;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.6vw, 3rem);
}
.teps-study__columns p {
  margin: 0;
  color: #999;
  font-size: clamp(0.72rem, 0.8vw, 0.92rem);
  line-height: 1.72;
}
.teps-credit {
  margin: clamp(.75rem, 1vh, 1.5rem) 0 clamp(1rem, 2vh, 1.7rem);
  color: #666;
  font-size: 0.7rem;
  line-height: 1.55;
}

.teps-project__visit {
  min-height: clamp(1rem, 2vh, 1.7rem) 0 0;
  padding: clamp(1rem, 3vh, 1.25rem) var(--page-x);
  margin-top: clamp(1rem, 2vh, 1.8rem);
  border: 0.0625rem solid #444;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  transition: background-color 160ms ease;
}
.teps-project__visit:hover,
.teps-project__visit:focus-visible { background: #111; outline: none; }
.teps-project__visit span {
  font-size: clamp(1rem, 1.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.teps-project__visit small {
  color: #999;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.68rem);
  letter-spacing: 0.25em;
}
.teps-project__visit b { 
  color: #f00; 
  font-size: clamp(1.2rem, 1.8vw, 2rem); 
  font-weight: 400;
  transform: translate(-1.25rem, -0.25rem);
 }

/* =========================
   GRUNG AUDIO — MOBILE SOUND
   ========================= */

.grung-project {
  position: relative;
  width: 100%;
  height: var(--banner-h);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #121212;
  color: #e5e5e5;
  font-family: Arial, sans-serif;
  isolation: isolate;
}

.grung-project::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .15;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) .0625rem, transparent .0625rem),
    linear-gradient(90deg, rgba(255,255,255,.018) .0625rem, transparent .0625rem);
  background-size: 2.5rem 2.5rem;
  mask-image: linear-gradient(90deg, #000, transparent 64%);
}

.grung-project__speaker {
  position: absolute;
  z-index: -1;
  right: clamp(-13rem, -10vw, -5rem);
  bottom: clamp(-20rem, -27vh, -10rem);
  width: clamp(27rem, 49vw, 54rem);
  aspect-ratio: 1;
  border: clamp(1.2rem, 2.2vw, 2.5rem) solid #1c1c1e;
  border-radius: 50%;
  opacity: .9;
  background:
    radial-gradient(circle, #121212 0 9%, #00bf63 9.2% 10%, #181818 10.2% 28%, #242424 28.2% 29.5%, #151515 30% 48%, #eb109b 48.2% 49%, #1c1c1e 49.3% 66%, #101010 66.3%);
  box-shadow: 0 0 0 clamp(.7rem, 1vw, 1.2rem) #0d0d0d, 0 0 5rem rgba(0,0,0,.75);
}

.grung-project__header,
.grung-project__body,
.grung-project__visit {
  position: relative;
  z-index: 1;
}

.grung-project__header {
  min-height: clamp(4.2rem, 8vh, 5.8rem);
  padding: clamp(.7rem, 1.3vh, 1rem) var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: .0625rem solid #292929;
  background: rgba(24,24,24,.88);
}

.grung-project__brand {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1vw, 1rem);
}

.grung-project__brand img {
  width: clamp(2.7rem, 3.7vw, 4rem);
  height: auto;
  display: block;
}

.grung-project__brand strong {
  color: #00bf63;
  font: 400 clamp(1rem, 1.55vw, 1.5rem) Rye, Georgia, "Times New Roman", serif;
  letter-spacing: .025em;
}

.grung-project__header > p {
  margin: 0;
  color: #8e8e8e;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), .72rem);
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.grung-project__header > p span { color: #eb109b; padding-inline: .55em; }

.grung-project__body {
  min-height: 0;
  padding: clamp(1.5rem, 3.2vh, 3rem) var(--page-x);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 8rem);
  align-items: center;
}

.grung-project__title { position: relative; }

.grung-project__title > p {
  margin: 0 0 clamp(.5rem, 1vh, .8rem);
  color: #00bf63;
  font: italic 400 clamp(.7rem, .9vw, 1rem) Georgia, "Times New Roman", serif;
  letter-spacing: .15em;
}

.grung-project h2 {
  margin: 0;
  color: #e5e5e5;
  font: 400 clamp(4.2rem, 8.2vw, 9.4rem) / .72 Rye, Georgia, "Times New Roman", serif;
  letter-spacing: -.075em;
  text-shadow: .055em .055em 0 #080808;
}

.grung-project h2 span {
  color: #00bf63;
  margin-left: clamp(1.3rem, 4vw, 5rem);
  text-shadow: .025em .025em 0 #eb109b, .065em .065em 0 #080808;
}

.grung-project__study {
  min-width: 0;
  padding: clamp(1.3rem, 2.3vw, 2.4rem);
  border: .0625rem solid #303030;
  background: rgba(28,28,30,.92);
  box-shadow: 1rem 1rem 0 rgba(0,0,0,.18);
}

.grung-label {
  width: fit-content;
  margin: 0 0 clamp(.75rem, 1.5vh, 1.15rem);
  padding: .42rem .62rem .34rem;
  background: #eb109b;
  color: #121212;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), .65rem);
  font-weight: 900;
  letter-spacing: .18em;
}

.grung-lead {
  max-width: 44rem;
  margin: 0;
  color: #fff;
  font: 700 clamp(1rem, 1.35vw, 1.45rem) / 1.48 Georgia, "Times New Roman", serif;
}

.grung-study__columns {
  margin-top: clamp(1rem, 2vh, 1.7rem);
  padding-top: clamp(1rem, 2vh, 1.7rem);
  border-top: .0625rem solid #3b3b3b;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.7vw, 3rem);
}

.grung-study__columns p {
  margin: 0;
  color: #a6a6a6;
  font-size: clamp(.7rem, .78vw, .88rem);
  line-height: 1.7;
}

.grung-project__tags {
  margin-top: clamp(1rem, 2vh, 1.7rem);
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.grung-project__tags span {
  padding: .4rem .6rem;
  border: .0625rem solid #414141;
  color: #00bf63;
  font-size: 0.7rem;
  letter-spacing: .08em;
}

.grung-project__visit {
  min-height: clamp(3.8rem, 7vh, 5rem);
  padding: clamp(.85rem, 1.8vh, 1.25rem) var(--page-x);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  border-top: .0625rem solid #353535;
  background: #1c1c1e;
  transition: background-color 160ms ease, color 160ms ease;
}

.grung-project__visit:hover,
.grung-project__visit:focus-visible {
  background: #eb109b;
  color: #121212;
  outline: none;
}

.grung-project__visit span {
  font: 400 clamp(1rem, 1.45vw, 1.45rem) Rye, Georgia, "Times New Roman", serif;
}

.grung-project__visit small {
  color: #00bf63;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), .65rem);
  font-weight: 800;
  letter-spacing: .2em;
}

.grung-project__visit .grung-project__arrow {
  display: block;
  color: #eb109b;
  font: 400 clamp(1.3rem, 1.8vw, 2rem) / 1 var(--sans);
}

.grung-project__visit:hover small,
.grung-project__visit:focus-visible small,
.grung-project__visit:hover .grung-project__arrow,
.grung-project__visit:focus-visible .grung-project__arrow { color: #121212; }

@media (max-width: 52rem), (max-aspect-ratio: 4 / 3) {
  .portfolio-hero,
  .vero-banner,
  .teps-project,
  .grung-project {
    height: auto;
    min-height: 80vh;
  }
  .vero-banner__inner { min-height: 80vh; }
  .teps-project__body { grid-template-columns: 1fr; align-content: center; }
  .teps-project__title { padding-top: clamp(1rem, 3vh, 2rem); }
  .teps-study__columns { grid-template-columns: 1fr; }
  .grung-project__body { grid-template-columns: 1fr; align-content: center; }
  .grung-project__title { padding-top: clamp(1rem, 3vh, 2rem); }
  .grung-project h2 { font-size: clamp(4rem, 14vw, 8rem); }
}

@media (max-width: 48rem) {
  .index-grid { grid-template-columns: 1fr; }
  .index-grid a { border-inline-end: 0.0625rem solid var(--line); }
}

@media (max-width: 38rem) {
  .portfolio-hero__copy { width: 100%; }
  .teps-project__identity div { display: block; }
  .teps-project__identity span { display: block; margin-top: 0.25rem; }
  .teps-project__visit { grid-template-columns: 1fr auto; }
  .teps-project__visit small { grid-column: 1; grid-row: 2; margin-top: -0.6rem; }
  .teps-project__visit b { grid-column: 2; grid-row: 1 / span 2; }
  .grung-project__header > p { display: none; }
  .grung-study__columns { grid-template-columns: 1fr; }
  .grung-project__visit { grid-template-columns: 1fr auto; }
  .grung-project__visit small { grid-column: 1; grid-row: 2; margin-top: -.6rem; }
  .grung-project__arrow { grid-column: 2; grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* =========================================
   EVOLVING VIEWPORT SCROLLBAR
   One continuous bar; viewport section boundaries paint it
   ========================================= */

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.evolving-scrollbar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 2.1rem;
  z-index: 1000;
  overflow: visible;
  cursor: ns-resize;
  touch-action: none;
}

.evolving-scrollbar__body {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.evolving-scrollbar__segment {
  position: absolute;
  right: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* The moving position marker is a different thumb in every stage.
   The continuous viewport-mapped rail underneath it never changes behavior. */
.evolving-scrollbar__position {
  position: absolute;
  right: 0;
  pointer-events: none;
  z-index: 20;
  box-sizing: border-box;
  top: 0;
  transform: translateY(-50%);
  will-change: transform;
}

/* 01 — Hero: familiar first. A slightly wider white rail with a tiny black oval thumb. */
.evolving-scrollbar__position--hero {
  right: 0.07rem;
  width: 0.42rem;
  height: 1.15rem;
  border-radius: 999rem;
  background: #080808;
}

/* 02 — Vero & Terra: deliberately simple again.
   Transparent rail, no frame, just a quiet sand thumb. */
.evolving-scrollbar__position--vero {
  right: 0.08rem;
  width: 0.58rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999rem;
  background: #d9c9ad;
  box-shadow: none;
}

/* 03 — TEPS: compact and deliberate. A red square with a black core. */
.evolving-scrollbar__position--teps {
  right: 0.08rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 0;
  border-radius: 0;
  background: #f00;
}

.evolving-scrollbar__position--teps::before {
  content: "";
  position: absolute;
  inset: 0.3rem;
  background: #090909;
}

.evolving-scrollbar__position--teps::after {
  content: none;
}

/* 04 — Grung: a compact DJ mixer channel-fader cap. */
.evolving-scrollbar__position--grung {
  right: 0;
  width: 2.05rem;
  height: 2.15rem;
  border: 2px solid #f2f2f2;
  border-radius: 0;
  background:
    linear-gradient(90deg,
      #0d0d0d 0,
      #282828 0.22rem,
      #181818 0.42rem,
      #181818 calc(100% - 0.42rem),
      #282828 calc(100% - 0.22rem),
      #0d0d0d 100%);
  box-shadow:
    inset 0 0.12rem rgba(255,255,255,.12),
    inset 0 -0.14rem rgba(0,0,0,.8),
    0 0.16rem 0 rgba(0,0,0,.55);
}

.evolving-scrollbar__position--grung::before {
  content: "";
  position: absolute;
  inset: 0.38rem 0.34rem;
  border-inline: 1px solid #080808;
  background:
    repeating-linear-gradient(180deg,
      #333 0 0.1rem,
      #111 0.1rem 0.2rem);
  box-shadow: inset 0.08rem 0 rgba(255,255,255,.08);
}

.evolving-scrollbar__position--grung::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0.24rem;
  right: 0.24rem;
  height: 0.18rem;
  border-block: 1px solid #ff79c8;
  background: #eb109b;
  transform: translateY(-50%);
}

/* 01 — Hero rail: still unmistakably a scrollbar, just a touch wider. */
.evolving-scrollbar__segment--hero {
  width: 0.56rem;
  background: #fff;
}

/* 02 — Vero & Terra rail: almost disappears. The sand thumb does the work. */
.evolving-scrollbar__segment--vero {
  width: 0.74rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.evolving-scrollbar__segment--vero::after {
  content: none;
}

/* 03 — TEPS: a hard white frame with sparse registration ticks rather than stripes. */
.evolving-scrollbar__segment--teps {
  width: 1.32rem;
  border-left: 1px solid #fff;
  background: #090909;
}

.evolving-scrollbar__segment--teps::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background:
    repeating-linear-gradient(180deg,
      transparent 0 1.4rem,
      #fff 1.4rem 1.48rem,
      transparent 1.48rem 2.8rem);
  pointer-events: none;
}

/* 04 — Grung: black rail, centered green stripe, and pink controls at both ends. */
.evolving-scrollbar__segment--grung {
  width: 2.05rem;
  border-left: 2px solid #f2f2f2;
  background:
    linear-gradient(90deg,
      #151515 0 calc(50% - 0.21rem),
      #00bf63 calc(50% - 0.21rem) calc(50% + 0.21rem),
      #151515 calc(50% + 0.21rem) 100%);
}

.evolving-scrollbar__segment--grung::before {
  content: "▲";
  position: absolute;
  left: 50%;
  top: 0.18rem;
  width: 1.48rem;
  height: 1.08rem;
  display: grid;
  place-items: center;
  background: #eb109b;
  color: #151515;
  border: 2px solid #f2f2f2;
  font: 900 0.76rem/1 Arial, sans-serif;
  transform: translateX(-50%);
  z-index: 2;
}

.evolving-scrollbar__segment--grung::after {
  content: "▼";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 1.48rem;
  height: 1.08rem;
  display: grid;
  place-items: center;
  background: #eb109b;
  color: #151515;
  border: 2px solid #f2f2f2;
  font: 900 0.76rem/1 Arial, sans-serif;
  transform: translateX(-50%);
  z-index: 2;
}

/* Each visible section touches the next at the exact same screen-space
   boundary as the banners themselves. No percentage-of-scroll interpolation. */
.evolving-scrollbar__segment--vero,
.evolving-scrollbar__segment--teps,
.evolving-scrollbar__segment--grung {
  border-radius: 0;
}

@media (max-width: 700px) {
  .evolving-scrollbar { width: 1.65rem; }
  .evolving-scrollbar__segment--grung { width: 1.65rem; }
  .evolving-scrollbar__segment--teps { width: 1.08rem; }
  .evolving-scrollbar__segment--vero { width: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .evolving-scrollbar__position { transition: none; }
}

/* Mobile: native scrolling only; stacked Vero demo cells keep their divisions. */
@media (max-width: 48rem) {
  .evolving-scrollbar {
    display: none !important;
  }

  .index-grid a + a {
    border-top: 0.0625rem solid var(--line);
  }
}

.portfolio-end {
  position: relative;
  z-index: 1001;
  min-height: 90vh;
  max-height: 100vh;
  padding:
    clamp(1rem, 2vw, 2rem)
    var(--page-x);

  display: grid;
  grid-template-rows: auto 1fr auto;

  background: #fff;
  color: var(--char);
  font-family: var(--serif);
}

/* HEADER */

.portfolio-end__header {
  padding-bottom: 0.55rem;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;

  border-bottom: 0.0625rem solid var(--char);
}

.portfolio-end__name {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.portfolio-end__name strong {
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 400;
}

.portfolio-end__name span,
.portfolio-end__contact-meta,
.portfolio-end__eyebrow,
.portfolio-end__label {
  font-family: var(--sans);
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.66rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-end__name span,
.portfolio-end__contact-meta {
  color: var(--muted);
}

.portfolio-end__contact-meta {
  display: flex;
  align-items: center;
}

.portfolio-end__contact-meta span {
  padding-inline: 1rem;
}

.portfolio-end__contact-meta span + span {
  border-left: 0.0625rem solid var(--line);
}

.portfolio-end__contact-meta span:last-child {
  padding-right: 0;
}

/* MAIN LAYOUT */

.portfolio-end__layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(16rem, 24vw, 22rem);
  border-bottom: 0.0625rem solid var(--char);
}

.portfolio-end__feature {
  padding:
    clamp(1.25rem, 2.5vh, 2.5rem)
    clamp(2rem, 4vw, 4.5rem)
    clamp(1.25rem, 2.5vh, 2.5rem)
    0;

  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: clamp(0.9rem, 1.6vh, 1.55rem);
}

.portfolio-end__eyebrow,
.portfolio-end__label {
  margin: 0;
  color: var(--char);
  letter-spacing: 0.18em;
}

.portfolio-end__headline {
  max-width: 58rem;
  margin: 0.6rem 0 0;

  font: 400 clamp(3.7rem, 6.2vw, 7.2rem) / 0.88 var(--serif);
  letter-spacing: -0.06em;
}

.portfolio-end__copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 1.5vw, 2.5rem) clamp(1.6rem, 3vw, 3.2rem);
  align-content: start;
}

.portfolio-end__copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 0.98vw, 1rem);
  line-height: 1.7;
}

.portfolio-end__copy .portfolio-end__lead {
  color: var(--char);
  font-size: clamp(1.02rem, 1.25vw, 1.5rem);
  line-height: 1.58;
}

.portfolio-end__highlight {
  align-self: end;

  margin: 0;
  padding-top: clamp(0.9rem, 2vh, 1.6rem);

  border-top: 0.0625rem solid var(--char);

  font: 400 clamp(1.5rem, 2.30vw, 3rem) / 1.08 var(--serif);
  letter-spacing: -0.03em;
}

/* RIGHT COLUMN */

.portfolio-end__sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr;

  border-left: 0.0625rem solid var(--char);
}

.portfolio-end__sidebar section {
  padding:
    clamp(1.25rem, 2.5vh, 2.2rem)
    0
    clamp(1.25rem, 2.5vh, 2.2rem)
    clamp(1.5rem, 2.7vw, 3rem);

  display: flex;
  flex-direction: column;
}

.portfolio-end__sidebar section + section {
  border-top: 0.0625rem solid var(--char);
}

.portfolio-end__sidebar .portfolio-end__label {
  margin-bottom: clamp(0.05rem, 1vh, 0.75rem)
}

.portfolio-end__sidebar p {
  margin: 0;

  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(0.76rem, 0.84vw, 0.9rem);
  line-height: 1.65;
}

.portfolio-end__sidebar p + p {
  margin-top: 0.65rem;
}

.portfolio-end__sidebar .portfolio-end__scope-copy {
  font-weight: 500;
}

.portfolio-end__pricing strong {
  color: var(--char);
  font-weight: 700;
}

.portfolio-end__sidebar .portfolio-end__pricing-note {
  margin-top: 0.2rem;
  font-size: clamp(0.62rem, calc(0.568rem + 0.21vw), 0.72rem);
  line-height: 1.45;
}

/* CTA */

.portfolio-end__cta {
  padding-top: 0.65rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.portfolio-end__cta p {
  margin: 0;
  font: 400 clamp(1.3rem, 1.8vw, 1.9rem) var(--serif);
}

.portfolio-end__cta a {
  color: inherit;

  font-family: var(--sans);
  font-size: clamp(0.7rem, calc(0.67rem + 0.12vw), 0.72rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.portfolio-end__cta a span {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 180ms ease;
}

.portfolio-end__cta a:hover span,
.portfolio-end__cta a:focus-visible span {
  transform: translateX(0.25rem);
}

/* MOBILE: retain the simpler editorial stack. */

@media (max-width: 48rem) {
  .portfolio-end {
    min-height: auto;
    max-height: none;
    padding-top: clamp(2rem, 8vw, 4rem);
    padding-bottom: clamp(1.25rem, 5vw, 2.5rem);
  }

  .portfolio-end__header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.75rem;
  }

  .portfolio-end__name {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-end__contact-meta {
    display: grid;
    gap: 0.35rem;
  }

  .portfolio-end__contact-meta span {
    padding: 0;
  }

  .portfolio-end__contact-meta span + span {
    border-left: 0;
  }

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

  .portfolio-end__feature {
    padding-right: 0;
  }

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

  .portfolio-end__sidebar {
    grid-template-rows: auto auto;
    border-left: 0;
    border-top: 0.0625rem solid var(--char);
  }

  .portfolio-end__sidebar section {
    padding-inline: 0;
  }

  .portfolio-end__sidebar section + section {
    border-top: 0.0625rem solid var(--char);
  }

  .portfolio-end__cta {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem
  }
  
}



/* =========================
   CONVERSATION DRAWER
   ========================= */

.portfolio-end__conversation-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--sans);
  font-size: clamp(1.3rem, 1.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
}

.portfolio-end__conversation-trigger span {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 180ms ease;
  font-size: 1em
}

.portfolio-end__conversation-trigger:hover span,
.portfolio-end__conversation-trigger:focus-visible span {
  transform: translateX(0.25rem);
}

.conversation-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}

.conversation-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.conversation-drawer__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(15, 15, 15, 0.34);
  opacity: 0;
  cursor: default;
  transition: opacity 260ms ease;
}

.conversation-drawer.is-open .conversation-drawer__scrim {
  opacity: 1;
}

.conversation-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(42rem, 92vw);
  max-width: 100%;
  top: 0;
  bottom: 0;
  height: auto;
  padding: clamp(1.4rem, 3vw, 2.8rem);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: var(--char);
  border-left: 0.0625rem solid var(--char);
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.conversation-drawer.is-open .conversation-drawer__panel {
  transform: translateX(0);
}

.conversation-drawer__header {
  padding-bottom: clamp(1rem, 2vh, 1.6rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 0.0625rem solid var(--line);
}

.conversation-drawer__eyebrow,
.conversation-form__field > span,
.conversation-drawer__close,
.conversation-form__foot p {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.conversation-drawer__eyebrow {
  margin: 0 0 0.65rem;
}

.conversation-drawer__header h2 {
  margin: 0;
  font: 400 clamp(2.7rem, 4.8vw, 5.2rem) / 0.9 var(--serif);
  letter-spacing: -0.055em;
}

.conversation-drawer__close {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.conversation-drawer__intro {
  max-width: 34rem;
  margin: clamp(1rem, 2vh, 1.5rem) 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 0.95vw, 1rem);
  line-height: 1.6;
}

.conversation-form {
  border-top: 0.0625rem solid var(--line);
}

.conversation-form__field {
  padding: clamp(0.9rem, 1.8vh, 1.35rem) 0;
  display: grid;
  gap: 0.55rem;
  border-bottom: 0.0625rem solid var(--line);
}

.conversation-form__field > span {
  display: flex;
  gap: 0.7rem;
}

.conversation-form__field > span b {
  color: var(--muted);
  font-weight: inherit;
}

.conversation-form textarea,
.conversation-form input {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: var(--char);
  font: 400 clamp(1rem, 1.3vw, 1.25rem) / 1.5 var(--serif);
}

.conversation-form textarea {
  min-height: 4.5rem;
}

.conversation-form textarea::placeholder,
.conversation-form input::placeholder {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
}

.conversation-form__field:focus-within {
  border-bottom-color: var(--char);
}

.conversation-form__identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
}


.conversation-form__budget-row {
  padding-block: 0.35rem 0.55rem;
  border-bottom: 0.0625rem solid var(--line);
}

.conversation-form__field--select select {
  width: 100%;
  padding: 0.2rem 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--char);
  font: 400 clamp(1rem, 1.25vw, 1.2rem) / 1.4 var(--serif);
  appearance: auto;
}

.conversation-form__field--select {
  border-bottom: 0;
}

.conversation-form__field--select select:focus-visible {
  outline: 0;
}

.conversation-form__foot {
  padding-top: clamp(1.35rem, 2.6vh, 1.9rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.conversation-form__foot p {
  margin: 0;
  color: var(--muted);
}

.conversation-form__foot button {
  padding: 0.75rem 1rem;
  border: 0.0625rem solid var(--char);
  background: var(--char);
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.conversation-form__foot button span {
  margin-left: 0.45rem;
}

.conversation-form__foot button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.conversation-form__status {
  min-height: 1.2em;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.conversation-form__status.is-error {
  color: #9f2525;
}

.conversation-form__status.is-success {
  color: #315f42;
}

body.conversation-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 48rem) {
  .conversation-drawer__panel {
    width: 100%;
    border-left: 0;
  }

  .conversation-form__identity {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .conversation-form__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-end__conversation-trigger {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    padding-bottom: clamp(1rem, 1.5vw, 2rem);
  }

  .portfolio-end__conversation-trigger span {
    font-size: 1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-drawer__panel,
  .conversation-drawer__scrim {
    transition: none;
  }
    .portfolio-hero {
    animation: none;
  }
}

/* Drawer remains independently scrollable without reserving or showing a scrollbar. */
.conversation-drawer__panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.conversation-drawer__panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}


/* =========================
   PROJECT RELATIONSHIP / RESPONSIBILITY META
   ========================= */

/* Vero & Terra */
.vero-project-meta {
  margin: clamp(.75rem, 1.5vh, 1.1rem) 0 clamp(.35rem, .8vh, .65rem);
}

.vero-project-meta__relationship {
  margin: 0 0 .55rem;
  color: var(--olive);
  font: 400 clamp(.78rem, .9vw, .95rem) / 1.35 var(--serif);
}

.vero-project-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.vero-project-meta__tags span {
  padding: .34rem .58rem;
  border: .0625rem solid rgba(57, 68, 56, .32);
  border-radius: 999rem;
  background: rgba(255, 253, 248, .34);
  color: var(--olive);
  font-size: 0.7rem;
  font-weight: 700;
}

/* TEPS */
.teps-project-meta {
  margin: 0 0 clamp(1rem, 1.8vh, 1.5rem);
}

.teps-project-meta__relationship {
  margin: 0 0 .6rem;
  color: #cfcfcf;
  font-size: 0.7rem;
  letter-spacing: .18em;
}

.teps-project-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
}

.teps-project-meta__tags span {
  padding: .34rem .52rem;
  border: .0625rem solid #3a3a3a;
  background: #080808;
  color: #bdbdbd;
  font-size: 0.7rem;
  letter-spacing: .12em;
}

/* Grung Audio */
.grung-project-meta {
  margin-top: clamp(1rem, 2vh, 1.7rem);
  padding-top: clamp(.9rem, 1.7vh, 1.35rem);
  border-top: .0625rem solid #3b3b3b;
}

.grung-project-meta__relationship {
  margin: 0 0 .7rem;
  color: #e5e5e5;
  font: 400 clamp(.72rem, .8vw, .9rem) / 1.35 Rye, Georgia, "Times New Roman", serif;
}

.grung-project-meta .grung-project__tags {
  margin-top: 0;
}

@media (max-width: 48rem) {
  .vero-project-meta__tags,
  .teps-project-meta__tags,
  .grung-project__tags {
    gap: .35rem;
  }
}

/* Vero closing project credit */
.vero-project-credit {
  margin-top: clamp(.8rem, 1.4vh, 1.1rem);
}
.vero-project-credit p { margin: 0; }
.vero-project-credit__roles {
  color: var(--olive);
  font-size: clamp(0.7rem, calc(0.67rem + 0.12vw), .78rem);
  font-weight: 650;
  line-height: 1.5;
}
.vero-project-credit__relationship {
  margin-top: .22rem !important;
  color: rgba(57, 68, 56, .68);
  font-family: var(--serif);
  font-size: 0.7rem;
  line-height: 1.45;
  text-transform: uppercase;
}


html.portfolio-motion-touch-ready main {
  overflow: clip;
}

html.portfolio-motion-touch-ready .portfolio-hero,
html.portfolio-motion-touch-ready .vero-banner,
html.portfolio-motion-touch-ready .teps-project,
html.portfolio-motion-touch-ready .grung-project {
  position: sticky;
  top: var(--motion-touch-stick-top, 0px);
  bottom: auto;
  overflow: hidden;
  transform: none;
  box-shadow: 0 -1.4rem 4.5rem rgba(0, 0, 0, var(--motion-stack-shadow, 0));
  will-change: box-shadow;
}

html.portfolio-motion-touch-ready .portfolio-hero { z-index: 10; }
html.portfolio-motion-touch-ready .vero-banner { z-index: 20; }
html.portfolio-motion-touch-ready .teps-project { z-index: 30; }
html.portfolio-motion-touch-ready .grung-project { z-index: 40; }
html.portfolio-motion-touch-ready .portfolio-end {
  z-index: 1001;
  box-shadow: 0 -1.4rem 4.5rem rgba(0, 0, 0, var(--motion-stack-shadow, 0));
}

html.portfolio-motion-touch-ready .portfolio-hero::after,
html.portfolio-motion-touch-ready .vero-banner::after,
html.portfolio-motion-touch-ready .teps-project::after,
html.portfolio-motion-touch-ready .grung-project::after {
  content: "";
  position: absolute;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  background: #000;
  opacity: var(--motion-stack-dim, 0);
  will-change: opacity;
}

@media (min-width: 52.01rem) and (min-aspect-ratio: 135 / 100) and (prefers-reduced-motion: no-preference) {
  html.portfolio-motion-ready main {
    overflow: clip;
  }

  html.portfolio-motion-ready .portfolio-hero,
  html.portfolio-motion-ready .vero-banner,
  html.portfolio-motion-ready .teps-project,
  html.portfolio-motion-ready .grung-project,
  html.portfolio-motion-ready .portfolio-end {
    position: sticky;
    top: 0;
    bottom: auto;
    overflow: hidden;
    transform: none;
    box-shadow: 0 -1.4rem 4.5rem rgba(0, 0, 0, var(--motion-stack-shadow, 0));
    will-change: box-shadow;
  }

  html.portfolio-motion-ready .portfolio-hero { z-index: 10; }
  html.portfolio-motion-ready .vero-banner { z-index: 20; }
  html.portfolio-motion-ready .teps-project { z-index: 30; }
  html.portfolio-motion-ready .grung-project { z-index: 40; }
  html.portfolio-motion-ready .portfolio-end { z-index: 1001; }

  html.portfolio-motion-ready .portfolio-hero::after,
  html.portfolio-motion-ready .vero-banner::after,
  html.portfolio-motion-ready .teps-project::after,
  html.portfolio-motion-ready .grung-project::after {
    content: "";
    position: absolute;
    z-index: 90;
    inset: 0;
    pointer-events: none;
    background: #000;
    opacity: var(--motion-stack-dim, 0);
    will-change: opacity;
  }
}

