/* ==========================================================================
   WEBGRID.STUDIO — TYPE IS THE INTERFACE
   Brutalist, font-driven, no diagonals, no decoration. Every headline is
   fitted edge-to-edge by script (.fit). Yellow #FFCD05 · Coral #F16267 ·
   Ink #16141A · Cream #FFFBF0
   ========================================================================== */

:root {
  --cream: #fffbf0;
  --ink: #16141a;
  --yellow: #ffcd05;
  --coral: #f16267;
  --muted: #6f6a60;
  --display: 'Anton', 'Arial Black', sans-serif;
  --body: 'Space Grotesk', sans-serif;
  --mono: 'Space Grotesk', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

/* fitted lines: script sets font-size so text touches both edges */
.fit {
  display: block;
  white-space: nowrap;
  width: 100%;
}

.ltr {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 78%;
}

/* small utility label, mono style */
.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
}

.label em {
  font-style: normal;
  color: var(--coral);
}

/* ------------------------------------------------------------------ cursor
   square cursor — blocky like the logo */
@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button,
  [role="button"],
  .pcard,
  .slider-btn,
  .port-close,
  .accordion-trigger,
  .thumb-block,
  .slider-dot,
  .menu-btn,
  .totop {
    cursor: none !important;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  will-change: transform;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--coral);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s;
}

.cursor-ring.is-hover {
  width: 70px;
  height: 70px;
  background: rgba(255, 205, 5, 0.4);
  border-color: var(--coral);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------------------------------------------------------- progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  transform-origin: 0 0;
  background: var(--coral);
  z-index: 1001;
  transform: scaleX(0);
}

/* ----------------------------------------------------------- click stamps */
.stamp-word {
  position: fixed;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  z-index: 900;
  animation: stamp-pop 0.9s var(--ease) forwards;
}

@keyframes stamp-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  18% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
  30% {
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -65%) scale(1);
    opacity: 0;
  }
}

/* ------------------------------------------------------------------- nav
   just the full logo and a nine-square grid burger */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(255, 251, 240, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--ink);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav-logo {
  display: block;
  line-height: 0;
}

.nav-logo img {
  height: 56px;
  width: auto;
  transition: transform 0.35s var(--ease);
}

.nav-logo:hover img {
  transform: scale(1.06);
}

body.menu-open .nav {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* grid burger — nine brand squares; open = an X made of squares */
.grid-burger {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border: 3px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.25s;
}

.grid-burger i {
  display: block;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s, background 0.2s;
}

.grid-burger:hover {
  background: var(--yellow);
}

.grid-burger:hover i {
  animation: burger-pop 0.55s var(--ease);
}

.grid-burger:hover i:nth-child(1) { animation-delay: 0s; }
.grid-burger:hover i:nth-child(2) { animation-delay: 0.04s; }
.grid-burger:hover i:nth-child(3) { animation-delay: 0.08s; }
.grid-burger:hover i:nth-child(4) { animation-delay: 0.12s; }
.grid-burger:hover i:nth-child(5) { animation-delay: 0.16s; }
.grid-burger:hover i:nth-child(6) { animation-delay: 0.2s; }
.grid-burger:hover i:nth-child(7) { animation-delay: 0.24s; }
.grid-burger:hover i:nth-child(8) { animation-delay: 0.28s; }
.grid-burger:hover i:nth-child(9) { animation-delay: 0.32s; }

@keyframes burger-pop {
  50% {
    transform: scale(0.15);
    background: var(--coral);
  }
}

body.menu-open .grid-burger {
  background: var(--coral);
}

body.menu-open .grid-burger i {
  background: var(--cream);
  animation: none;
}

/* keep corners + center: an X of squares */
body.menu-open .grid-burger i:nth-child(2),
body.menu-open .grid-burger i:nth-child(4),
body.menu-open .grid-burger i:nth-child(6),
body.menu-open .grid-burger i:nth-child(8) {
  transform: scale(0);
  opacity: 0;
}

/* ----------------------------------------------------- fullscreen menu */
body.menu-open {
  overflow: hidden;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4vh;
  padding: 100px 28px 32px;
  clip-path: circle(0px at calc(100% - 56px) 40px);
  transition: clip-path 0.75s var(--ease);
  pointer-events: none;
}

body.menu-open .menu {
  clip-path: circle(150% at calc(100% - 56px) 40px);
  pointer-events: auto;
}

.menu-echo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30vw;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 251, 240, 0.1);
  pointer-events: none;
  will-change: transform;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.6vh;
  position: relative;
  z-index: 1;
}

.menu-item-wrap {
  overflow: hidden;
  position: relative;
}

.menu-idx {
  position: absolute;
  top: 8px;
  left: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--coral);
  z-index: 2;
}

.menu-item {
  text-decoration: none;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--cream);
  transform: translateY(115%);
  transition: transform 0.65s var(--ease), color 0.25s,
    -webkit-text-stroke-color 0.25s;
}

.menu-item:hover {
  color: var(--yellow);
  -webkit-text-stroke-color: var(--yellow);
}

body.menu-open .menu-item-wrap:nth-child(1) .menu-item { transition-delay: 0.12s; }
body.menu-open .menu-item-wrap:nth-child(2) .menu-item { transition-delay: 0.18s; }
body.menu-open .menu-item-wrap:nth-child(3) .menu-item { transition-delay: 0.24s; }
body.menu-open .menu-item-wrap:nth-child(4) .menu-item { transition-delay: 0.3s; }
body.menu-open .menu-item-wrap:nth-child(5) .menu-item { transition-delay: 0.36s; }

body.menu-open .menu-item {
  transform: none;
}

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
  border-top: 3px solid rgba(255, 251, 240, 0.25);
  padding-top: 24px;
}

.menu-mail {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 22px);
  border-bottom: 3px solid var(--coral);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.menu-mail:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.menu .btn {
  border-color: var(--cream);
}

.menu-soc {
  display: flex;
  gap: 18px;
}

.menu-soc a {
  color: rgba(255, 251, 240, 0.7);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  border: 2px solid rgba(255, 251, 240, 0.3);
  padding: 8px 12px;
  transition: color 0.2s, border-color 0.2s;
}

.menu-soc a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* bracket buttons — flat, square, type-only */
.btn {
  display: inline-block;
  padding: 16px 28px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--ink);
  color: var(--yellow);
}

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

/* ------------------------------------------------------------------ hero
   a full-bleed type poster; letters stretch near the cursor */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px 0 0;
  border-bottom: 8px solid var(--ink);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 28px 4vh;
}

.hero-stage {
  position: relative;
}

.hero-title {
  padding: 0;
  user-select: none;
}

.hero-title .fit {
  padding: 0 0.5vw;
}

/* inverted world revealed through the cursor lens (clone built by script) */
.hero-title--alt {
  position: absolute;
  inset: 0;
  background: var(--ink);
  pointer-events: none;
  clip-path: circle(0px at -300px -300px);
  will-change: clip-path;
}

.hero-title--alt .line-ink {
  color: var(--yellow);
}

.hero-title--alt .line-coral {
  color: var(--cream);
}

.hero-title--alt .line-outline {
  -webkit-text-stroke: 0;
  color: var(--coral);
}

/* typographic comet trail following the pointer */
.trail-glyph {
  position: fixed;
  font-family: var(--display);
  line-height: 1;
  pointer-events: none;
  z-index: 800;
  animation: glyph-fade 0.7s ease-out forwards;
}

@keyframes glyph-fade {
  from {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -130%) scale(1);
    opacity: 0;
  }
}

.line-ink {
  color: var(--ink);
}

.line-coral {
  color: var(--coral);
}

.line-outline {
  color: transparent;
  -webkit-text-stroke: max(2px, 0.18vw) var(--ink);
}

.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 4px solid var(--ink);
  margin-top: 5vh;
  padding: 26px 28px;
}

.hero-sub p {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
}

.hero-sub p strong {
  background: var(--yellow);
  padding: 0 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hint {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- marquees
   straight, huge, speed reacts to scroll velocity (script-driven) */
.strip {
  border-top: 8px solid var(--ink);
  border-bottom: 8px solid var(--ink);
  overflow: clip;
}

.strip + .strip {
  border-top: none;
}

.strip--yellow {
  background: var(--yellow);
}

.strip--ink {
  background: var(--ink);
  color: var(--cream);
}

.strip--coral {
  background: var(--coral);
  color: var(--cream);
}

.marquee {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  font-family: var(--display);
  font-size: clamp(70px, 13vw, 230px);
  text-transform: uppercase;
  line-height: 1.06;
  padding: 0.02em 0.3em;
  display: inline-block;
}

.marquee-item--ghost {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
}

.strip--ink .marquee-item--ghost,
.strip--coral .marquee-item--ghost {
  -webkit-text-stroke: 2.5px var(--cream);
}

.marquee-star {
  font-size: clamp(34px, 6vw, 110px);
  display: inline-block;
}

/* --------------------------------------------------------------- sections */
.section {
  padding: 14vh 28px;
  border-bottom: 8px solid var(--ink);
}

.section--flush {
  padding-left: 0;
  padding-right: 0;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 7vh;
}

.section--flush .section-label {
  padding: 0 28px;
}

/* -------------------------------------------------------------- manifesto */
.manifesto {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 110px);
  line-height: 1.04;
  text-transform: uppercase;
  max-width: 100%;
}

.manifesto .hl-y,
.manifesto .hl-c {
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.manifesto .hl-y {
  background: var(--yellow);
}

.manifesto .hl-c {
  background: var(--coral);
  color: var(--cream);
}

.manifesto .flip {
  color: var(--coral);
  display: inline-block;
  min-width: 3.2em;
}

.manifesto .ghost {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
}

/* ----------------------------------------------------------------- stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 5vh 28px;
  border-right: 4px solid var(--ink);
  transition: background 0.25s;
}

.stat:last-child {
  border-right: none;
}

.stat:hover {
  background: var(--yellow);
}

.stat-num {
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 170px);
  line-height: 0.95;
  display: block;
}

.stat-num i {
  font-style: normal;
  color: var(--coral);
}

.stat-label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- services
   full-bleed fitted words; row floods ink on hover */
.service-row {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-top: 4px solid var(--ink);
  padding: 3.5vh 0;
  overflow: hidden;
}

.service-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}

.service-row:hover::after {
  transform: scaleY(1);
}

.service-row > * {
  position: relative;
  z-index: 1;
}

.service-title {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.95;
  padding: 0 0.5vw;
  transition: color 0.3s;
}

.service-row:hover .service-title {
  color: var(--yellow);
}

.service-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 28px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.service-row:hover .service-meta {
  color: var(--cream);
}

/* ------------------------------------------------------------------ work
   type rows with a cursor-chasing image preview */
.work-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 4vw;
  text-decoration: none;
  color: var(--ink);
  border-top: 4px solid var(--ink);
  padding: 5vh 28px;
  transition: background 0.25s, color 0.25s;
}

.work-row:hover {
  background: var(--coral);
  color: var(--cream);
}

.work-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  min-width: 56px;
}

.work-title {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 130px);
  text-transform: uppercase;
  line-height: 0.95;
  flex: 1;
}

.work-cat,
.work-year {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 230px;
  object-fit: cover;
  border: 4px solid var(--ink);
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  will-change: transform;
}

.work-preview.is-on {
  opacity: 1;
  transform: scale(1);
}

/* ------------------------------------------------------------- city block */
.city {
  background: var(--ink);
  color: var(--cream);
  padding: 16vh 0;
  border-bottom: 8px solid var(--ink);
  text-align: center;
}

.city .fit {
  padding: 0 0.5vw;
}

.city .line-a {
  color: var(--cream);
}

.city .line-b {
  color: var(--yellow);
}

.city .line-c {
  color: transparent;
  -webkit-text-stroke: max(2px, 0.18vw) var(--coral);
}

.city-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 7vh;
  padding: 0 28px;
}

.city kbd {
  font-family: var(--body);
  background: transparent;
  border: 2px solid rgba(255, 251, 240, 0.5);
  border-bottom-width: 5px;
  padding: 6px 13px;
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
}

.city-note {
  display: block;
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 251, 240, 0.5);
}

.city .btn {
  border-color: var(--cream);
}

.city .btn:hover {
  background: var(--coral);
  color: var(--cream);
}

/* ---------------------------------------------------------------- footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 14vh 0 40px;
}

.footer-cta {
  display: block;
  text-decoration: none;
  color: transparent;
  -webkit-text-stroke: max(2px, 0.2vw) var(--cream);
  transition: color 0.35s var(--ease);
  padding: 0 0.5vw;
}

.footer-cta:hover {
  color: var(--yellow);
  -webkit-text-stroke-color: var(--yellow);
}

.footer-email {
  display: block;
  text-align: center;
  margin: 5vh auto 10vh;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 4px solid var(--coral);
  width: fit-content;
  padding-bottom: 6px;
  transition: color 0.25s, border-color 0.25s;
}

.footer-email:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 28px 0;
  border-top: 4px solid rgba(255, 251, 240, 0.3);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: rgba(255, 251, 240, 0.75);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  width: fit-content;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-logo {
  width: 100%;
  padding: 0 28px;
  margin: 10vh auto 0;
  display: block;
  transition: transform 0.5s var(--ease), opacity 0.9s var(--ease);
}

.footer-logo:hover {
  transform: scale(1.015);
}

/* footer reveals keep their slide but stagger a touch later */
.footer-email.reveal {
  transition-delay: 0.1s;
}

.footer-grid.reveal {
  transition-delay: 0.18s;
}

/* ------------------------------------------------- back-to-top elevator
   a vertical conveyor of brand squares riding up forever */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  width: 58px;
  padding: 12px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  cursor: pointer;
  transform: translateY(140px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease),
    background 0.2s;
}

.totop.is-visible {
  transform: none;
  opacity: 1;
}

.totop:hover {
  background: var(--coral);
}

.totop-track {
  position: relative;
  width: 14px;
  height: 44px;
  overflow: hidden;
  display: block;
}

.totop-track i {
  position: absolute;
  left: 1px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  animation: totop-ride 1.5s linear infinite;
}

.totop-track i:nth-child(2) {
  animation-delay: 0.5s;
}

.totop-track i:nth-child(3) {
  animation-delay: 1s;
}

.totop:hover .totop-track i {
  animation-duration: 0.5s;
  background: var(--cream);
}

@keyframes totop-ride {
  from {
    top: 44px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  to {
    top: -14px;
    opacity: 0;
  }
}

.totop-label {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.totop:hover .totop-label {
  color: var(--cream);
}

/* click = the button itself takes the elevator */
.totop.is-launching {
  animation: totop-launch 0.7s var(--ease);
}

@keyframes totop-launch {
  0% {
    transform: translateY(0) scaleY(1);
  }
  25% {
    transform: translateY(8px) scaleY(0.82);
  }
  60% {
    transform: translateY(-34px) scaleY(1.12);
  }
  100% {
    transform: translateY(0) scaleY(1);
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 30px 28px 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 251, 240, 0.5);
}

/* --------------------------------------------------------------- reveals */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::after,
  *::before {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .menu-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    border-bottom: 4px solid var(--ink);
  }
  .stat:nth-child(even) {
    border-right: none;
  }
  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: none;
  }
  .work-cat {
    display: none;
  }
  .work-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 10px 16px;
  }
  .nav-logo img {
    height: 44px;
  }
  .grid-burger {
    width: 48px;
    height: 48px;
  }
  .menu {
    padding: 80px 18px 24px;
  }
  .section {
    padding: 10vh 18px;
  }
  .section--flush {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-meta,
  .hero-sub,
  .service-meta,
  .work-row {
    padding-left: 18px;
    padding-right: 18px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 4px solid var(--ink);
  }
  .stat:nth-child(3) {
    border-bottom: 4px solid var(--ink);
  }
  .stat:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   SUPPORTING PAGES — built from the same kit as the landing
   ========================================================================== */

/* sub-page hero: sized to the full viewport */
.hero--page {
  min-height: 100svh;
  justify-content: flex-start;
  padding: 130px 0 0;
}

.hero--page .hero-stage {
  margin-top: auto;
}

.hero--page .hero-title {
  margin-top: 3vh;
}


.hero-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
  position: relative;
  z-index: 10;
}

.hero-back:hover {
  color: var(--coral);
}

.hero-lead {
  max-width: 720px;
  margin: 4vh 28px 5vh;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  font-weight: 500;
}

.hero-lead strong {
  background: var(--yellow);
  padding: 0 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* capabilities — full-bleed text columns, like a spec sheet */
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 4px solid var(--ink);
}

.cap {
  padding: 5vh 28px;
  border-right: 4px solid var(--ink);
  transition: background 0.25s;
}

.cap:last-child {
  border-right: none;
}

.cap:hover {
  background: var(--yellow);
}

.cap-idx {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--coral);
}

.cap h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 46px);
  text-transform: uppercase;
  line-height: 0.95;
  margin: 14px 0 18px;
}

.cap ul {
  list-style: none;
}

.cap li {
  font-size: 15px;
  font-weight: 600;
  padding: 9px 0;
  border-top: 1px solid rgba(22, 20, 26, 0.18);
}

.cap li::before {
  content: '✦ ';
  color: var(--coral);
}

/* portfolio card grid — brutalist tiles with offset shadows */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
  gap: 40px;
}

.pcard {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}

.pcard:hover {
  transform: translate(-6px, -6px) rotate(-1deg);
  box-shadow: 18px 18px 0 var(--coral);
}

.pcard:nth-child(even):hover {
  transform: translate(-6px, -6px) rotate(1deg);
  box-shadow: 18px 18px 0 var(--yellow);
}

.pcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.12) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.5s;
}

.pcard:hover .pcard-media img {
  transform: scale(1.07);
  filter: saturate(1.05);
}

.pcard-media.media-fail {
  background: var(--ink);
}

.pcard-media.media-fail::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 70px;
  color: var(--yellow);
}

.pcard-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pcard-no {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--cream);
  background: var(--ink);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.pcard-body {
  padding: 22px 22px 26px;
}

.pcard-body h3 {
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 38px);
  text-transform: uppercase;
  line-height: 0.95;
}

.pcard-body p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.pcard-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* contact split */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
}

.contact-form {
  padding: 7vh 28px;
  border-right: 4px solid var(--ink);
}

.contact-info {
  padding: 7vh 28px;
  display: flex;
  flex-direction: column;
  gap: 5vh;
}

.field {
  margin-bottom: 26px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.field label em {
  font-style: normal;
  color: var(--coral);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 14px 16px;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field textarea:focus {
  background: #fff;
  box-shadow: 6px 6px 0 var(--yellow);
  transform: translate(-2px, -2px);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(22, 20, 26, 0.35);
}

.field--error input,
.field--error textarea {
  box-shadow: 6px 6px 0 var(--coral);
  background: rgba(241, 98, 103, 0.08);
}

/* budget / type pill choices */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choices label {
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  background: var(--cream);
  margin: 0;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.choices label:hover {
  background: var(--yellow);
}

.choices input:checked + label {
  background: var(--ink);
  color: var(--yellow);
}

.contact-submit {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 18px 32px;
  cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease),
    background 0.2s, color 0.2s;
}

.contact-submit:hover {
  background: var(--coral);
  color: var(--cream);
}

.contact-submit:active {
  transform: translate(8px, 8px);
  box-shadow: 0 0 0 var(--ink);
}

.info-block h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.info-block a,
.info-block p {
  display: block;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}

.info-block a {
  border-bottom: 2px solid transparent;
  width: fit-content;
  transition: border-color 0.2s, color 0.2s;
}

.info-block a:hover {
  color: var(--coral);
  border-color: var(--coral);
}

/* contact success takeover */
.csent {
  display: none;
  text-align: center;
  padding: 8vh 0;
}

.csent.is-on {
  display: block;
  animation: stamp-pop 0.6s var(--ease);
}

.csent .big {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 120px);
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--coral);
}

.csent p {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .contact-form {
    border-right: none;
    border-bottom: 4px solid var(--ink);
  }
  .cap {
    border-right: none;
    border-bottom: 4px solid var(--ink);
  }
  .cap:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   PER-PAGE SIGNATURE COMPONENTS — each supporting page gets its own toy
   ========================================================================== */

/* ---- availability status pill (contact) ------------------------------ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 3vh 28px 0;
  padding: 10px 18px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-pill .led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #57d977;
  box-shadow: 0 0 0 0 rgba(87, 217, 119, 0.7);
  animation: led-pulse 1.8s infinite;
}

@keyframes led-pulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 217, 119, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(87, 217, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 217, 119, 0); }
}

/* ---- SERVICES: two-pane switchboard selector ------------------------- */
.svc-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 4px solid var(--ink);
}

.svc-list {
  border-right: 4px solid var(--ink);
}

.svc-item {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: none;
  border-bottom: 4px solid var(--ink);
  padding: 5vh 28px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s var(--ease), color 0.3s;
}

.svc-item:last-child {
  border-bottom: none;
}

.svc-item .svc-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--coral);
}

.svc-item .svc-name {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 72px);
  text-transform: uppercase;
  line-height: 0.95;
  margin-top: 8px;
  transition: transform 0.35s var(--ease);
}

.svc-item.is-active {
  background: var(--ink);
  color: var(--cream);
}

.svc-item.is-active .svc-name {
  color: var(--yellow);
  transform: translateX(18px);
}

.svc-item.is-active .svc-no {
  color: var(--cream);
}

.svc-stage {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  min-height: 520px;
  padding: 12vh 36px 6vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--yellow);
  overflow: hidden;
}

.svc-stage-ghost {
  position: absolute;
  right: -4vw;
  bottom: -8vh;
  font-family: var(--display);
  font-size: 46vh;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 3px currentColor;
  opacity: 0.16;
  pointer-events: none;
}

.svc-stage h3 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 86px);
  text-transform: uppercase;
  line-height: 0.92;
  position: relative;
}

.svc-stage p {
  margin-top: 22px;
  max-width: 460px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  position: relative;
}

.svc-stage-row {
  display: flex;
  gap: 30px;
  margin-top: 32px;
  position: relative;
}

.svc-stage-row div span {
  display: block;
}

.svc-stage-row .n {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
}

.svc-stage-row .l {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

.svc-stage .btn {
  margin-top: 36px;
  align-self: flex-start;
  position: relative;
}

/* ---- PORTFOLIO: animated filter bar ---------------------------------- */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 0 28px 5vh;
}

.filter-chip {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.filter-chip:hover {
  background: var(--yellow);
}

.filter-chip.is-active {
  background: var(--ink);
  color: var(--yellow);
}

.filter-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.pcard {
  transition: transform 0.45s var(--ease), box-shadow 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.pcard.is-hidden {
  display: none;
}

/* ---- WEB DESIGN: drag-to-resize browser ------------------------------ */
.browser {
  border: 4px solid var(--ink);
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  max-width: 100%;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--ink);
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cream);
  display: block;
}

.browser-dots i:nth-child(1) { background: var(--coral); }
.browser-dots i:nth-child(2) { background: var(--yellow); }
.browser-dots i:nth-child(3) { background: #57d977; }

.browser-url {
  flex: 1;
  background: rgba(255, 251, 240, 0.12);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.browser-size {
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.browser-stage {
  display: flex;
  background: repeating-linear-gradient(45deg, #d8d3c4, #d8d3c4 12px, #cfc9ba 12px, #cfc9ba 24px);
  padding: 0;
}

.browser-viewport {
  width: 100%;
  background: var(--cream);
  border-right: 4px solid var(--ink);
  overflow: hidden;
}

/* the placeholder "site" reflows by width */
.mini-site {
  padding: 22px;
}

.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 14px;
  gap: 10px;
}

.mini-nav .ml {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
}

.mini-nav .mlinks {
  display: flex;
  gap: 14px;
}

.mini-nav .mlinks span {
  width: 46px;
  height: 10px;
  background: var(--ink);
  opacity: 0.5;
  display: block;
}

.mini-hero {
  font-family: var(--display);
  font-size: clamp(28px, 7cqw, 64px);
  text-transform: uppercase;
  line-height: 0.92;
  margin: 22px 0;
}

.mini-hero em {
  font-style: normal;
  color: var(--coral);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-cards div {
  height: 90px;
  border: 3px solid var(--ink);
  background: var(--yellow);
}

.mini-cards div:nth-child(2) { background: var(--coral); }
.mini-cards div:nth-child(3) { background: var(--cream); }

.browser-handle {
  width: 26px;
  background: var(--ink);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 18px;
  flex-shrink: 0;
  touch-action: none;
  user-select: none;
}

/* container query so the mock truly reflows with its own width */
.browser-viewport {
  container-type: inline-size;
}

@container (max-width: 560px) {
  .mini-nav .mlinks { display: none; }
  .mini-cards { grid-template-columns: 1fr; }
}

.browser-hint {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- WEB APPS: live dashboard ---------------------------------------- */
.dash {
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 3px solid rgba(255, 251, 240, 0.18);
}

.dash-top .dt {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--yellow);
}

.dash-live i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #57d977; animation: led-pulse 1.6s infinite;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.dash-metric {
  padding: 20px;
  border-right: 1px solid rgba(255, 251, 240, 0.15);
  border-bottom: 1px solid rgba(255, 251, 240, 0.15);
}

.dash-metric:last-child { border-right: none; }

.dash-metric .mn {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 44px);
  color: var(--yellow);
}

.dash-metric .ml {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 251, 240, 0.65);
  margin-top: 4px;
}

.dash-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 220px;
  padding: 24px;
  border-right: 1px solid rgba(255, 251, 240, 0.15);
}

.dash-bars span {
  flex: 1;
  background: var(--coral);
  height: 30%;
  transition: height 0.5s var(--ease);
  min-height: 4px;
}

.dash-bars span:nth-child(even) { background: var(--yellow); }

.dash-spark {
  padding: 24px;
}

.dash-spark svg {
  width: 100%;
  height: 130px;
  overflow: visible;
}

.dash-spark .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 251, 240, 0.65);
  margin-bottom: 10px;
}

/* ---- MOBILE: tilt phone ---------------------------------------------- */
.phonewrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4vh 0;
  perspective: 1100px;
}

.phone {
  position: relative;
  width: 300px;
  height: 620px;
  max-width: 78vw;
  border: 5px solid var(--ink);
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 18px 18px 0 var(--coral);
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
  overflow: hidden;
}

.phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: var(--ink);
  border-radius: 0 0 18px 18px;
  z-index: 5;
}

.phone-screens {
  position: absolute;
  inset: 8px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--cream);
}

.pscreen {
  position: absolute;
  inset: 0;
  padding: 54px 22px 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.pscreen.is-on {
  opacity: 1;
  transform: none;
}

.pscreen h4 {
  font-family: var(--display);
  font-size: 34px;
  text-transform: uppercase;
  line-height: 0.95;
}

.pscreen .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
}

.pscreen .blocks {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pscreen .blocks span {
  height: 46px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  display: block;
}

.pscreen .blocks span:nth-child(2) { background: var(--coral); }
.pscreen .blocks span:nth-child(3) { background: var(--cream); }
.pscreen .blocks span:nth-child(4) { background: var(--yellow); width: 70%; }

.pscreen--coral { background: var(--coral); color: var(--cream); }
.pscreen--coral .tag { color: var(--ink); }
.pscreen--ink { background: var(--ink); color: var(--cream); }

.phone-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.phone-dots button {
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  background: var(--cream);
  cursor: pointer;
  padding: 0;
}

.phone-dots button.is-on {
  background: var(--coral);
}

/* ---- BRANDING: logo playground --------------------------------------- */
.brandplay {
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
}

.brand-stage {
  height: 460px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  transition: background 0.4s var(--ease);
  position: relative;
}

.brand-stage img {
  width: min(320px, 64%);
  height: auto;
  transition: transform 0.4s var(--ease);
}

.brand-stage.bg-ink { background: var(--ink); }
.brand-stage.bg-coral { background: var(--coral); }
.brand-stage.bg-cream { background: var(--cream); }
.brand-stage.bg-yellow { background: var(--yellow); }

.brand-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-top: 4px solid var(--ink);
  background: var(--cream);
}

.brand-controls .grp {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-controls .glabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.swatch {
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s var(--ease);
}

.swatch:hover { transform: scale(1.12); }
.swatch.is-on { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--ink); }
.swatch--yellow { background: var(--yellow); }
.swatch--coral { background: var(--coral); }
.swatch--cream { background: #fffbf0; }
.swatch--ink { background: var(--ink); }

.shape-btn {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.shape-btn.is-on {
  background: var(--ink);
  color: var(--yellow);
}

.brand-rand {
  margin-left: auto;
}

@media (max-width: 860px) {
  .svc-select { grid-template-columns: 1fr; }
  .svc-list { border-right: none; border-bottom: 4px solid var(--ink); }
  .svc-stage { position: relative; height: auto; min-height: 0; top: auto; padding: 9vh 24px; }
  .svc-stage-ghost { font-size: 30vh; }
  .dash-metrics { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
  .dash-bars { border-right: none; border-bottom: 1px solid rgba(255,251,240,0.15); }
  .brand-rand { margin-left: 0; }
}

/* ==========================================================================
   PORTFOLIO MODAL TAKEOVER
   ========================================================================== */

body.modal-open {
  overflow: hidden !important;
}

/* 1. Modal Overlay Layout */
.port-modal {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.port-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* 2. Left Immersive Spec Deck Pane */
.port-modal-left {
  width: 55vw;
  height: 100vh;
  position: relative;
  border-right: 4px solid var(--ink);
  background: #0d0c0f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.port-modal.is-active .port-modal-left {
  transform: translateX(0);
}

.port-slider {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-slide:hover img {
  transform: scale(1.06);
}

/* 3. Typographic Thumbnail Deck */
.thumb-deck {
  height: 120px;
  background: var(--ink);
  border-top: 4px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.thumb-block {
  background: var(--cream);
  border-right: 4px solid var(--ink);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.thumb-block:last-child {
  border-right: none;
}

.thumb-block .thumb-num {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
}

.thumb-block .thumb-preview {
  width: 60px;
  height: 60px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}

.thumb-block .thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-block:hover {
  background: var(--yellow);
}

.thumb-block:hover .thumb-preview {
  transform: scale(1.1) translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.thumb-block.is-active {
  background: var(--coral);
}

.thumb-block.is-active .thumb-num {
  color: #fff;
}

.thumb-block.is-active .thumb-preview {
  border-color: #fff;
  box-shadow: 2px 2px 0 #fff;
}

/* 4. Creative Slider Hover-Zone Controls */
.slider-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.slider-btn--prev {
  left: 0;
}

.slider-btn--next {
  right: 0;
}

.slider-btn:hover {
  opacity: 1;
  background: rgba(22, 20, 26, 0.2);
}

.slider-btn::before {
  content: '';
  width: 56px;
  height: 56px;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}

.slider-btn--prev::before {
  content: '←';
}

.slider-btn--next::before {
  content: '→';
}

.slider-btn:hover::before {
  transform: scale(1.1) translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--yellow);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 30px;
  display: flex;
  gap: 12px;
  z-index: 10;
  background: rgba(22, 20, 26, 0.85);
  border: 2px solid var(--ink);
  padding: 8px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  display: none; /* Hide default dots as we have the typographic thumb-deck */
}

.slider-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #000;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slider-dot.is-active {
  background: var(--yellow);
  transform: scale(1.3);
}

/* 5. Right Spec Console Panel */
.port-modal-right {
  width: 45vw;
  height: 100vh;
  background: var(--cream);
  overflow-y: auto;
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.port-modal.is-active .port-modal-right {
  transform: translateX(0);
}

/* Custom Wide Close Badge */
.port-close {
  position: absolute;
  top: 24px;
  right: 28px;
  height: 48px;
  padding: 0 20px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10020;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.port-close:hover {
  background: var(--coral);
  color: #fff;
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.port-cat-tag {
  background: var(--coral);
  color: var(--cream);
  border: 3px solid var(--ink);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 3px 3px 0 var(--ink);
}

.port-title {
  font-family: var(--display);
  font-size: clamp(38px, 4vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-top: -10px;
}

/* Hazard Warning tape Divider */
.hazard-stripe {
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--yellow), var(--yellow) 10px, var(--ink) 10px, var(--ink) 20px);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  width: 100%;
  margin: 8px 0;
}

/* Specs Window explorer Shell */
.spec-window {
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--cream);
  overflow: hidden;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
}

.spec-window-header {
  background: var(--ink);
  color: var(--cream);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--ink);
  user-select: none;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}

.window-dots span:nth-child(1) { background: #f16267; }
.window-dots span:nth-child(2) { background: #ffcd05; }
.window-dots span:nth-child(3) { background: #52c41a; }

.spec-window-body {
  padding: 24px;
  background: var(--cream);
}

/* Retro Spec Cards Grid */
.port-meta-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.port-meta-card {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.port-meta-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--yellow);
}

.port-meta-card:nth-child(even):hover {
  background: var(--coral);
  color: #fff;
}

.port-meta-card:nth-child(even):hover .port-meta-label {
  color: rgba(255, 255, 255, 0.7);
}

.port-meta-card:nth-child(even):hover .port-meta-val {
  color: #fff;
}

.port-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
}

.port-meta-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* Rich Description with Drop Cap */
.port-desc {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--ink);
  margin-top: 10px;
}

.port-desc p + p {
  margin-top: 16px;
}

.port-desc p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 54px;
  float: left;
  line-height: 0.85;
  margin-right: 8px;
  color: var(--coral);
  -webkit-text-stroke: 1.5px var(--ink);
}

/* Receipt Client Memo Layout */
.port-receipt {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px;
  font-family: var(--mono);
  color: var(--ink);
  position: relative;
  transform: rotate(-0.5deg);
  transition: transform 0.3s var(--ease);
  margin-top: 24px;
}

.port-receipt:hover {
  transform: rotate(0.5deg) scale(1.01);
}

.receipt-header {
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.05em;
}

.receipt-divider {
  font-size: 11px;
  color: var(--ink);
  opacity: 0.4;
  text-align: center;
  margin: 12px 0;
  user-select: none;
}

.receipt-sign-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-stamp {
  border: 3px double var(--coral);
  color: var(--coral);
  font-family: var(--display);
  font-size: 14px;
  font-weight: bold;
  padding: 4px 10px;
  transform: rotate(-10deg);
  letter-spacing: 0.1em;
  border-radius: 4px;
  opacity: 0.9;
  user-select: none;
}

.receipt-barcode {
  background: repeating-linear-gradient(90deg, var(--ink), var(--ink) 2px, transparent 2px, transparent 4px, var(--ink) 4px, var(--ink) 8px, transparent 8px, transparent 10px);
  height: 36px;
  width: 100%;
  margin-top: 8px;
}

.receipt-serial {
  font-size: 9px;
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.port-quote-text {
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.58;
  margin: 12px 0;
  color: var(--ink);
}

.port-quote-author {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.port-quote-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.6;
  margin: 2px 0 0;
}

/* 5. Fluid Responsive Breakdown */
@media (max-width: 960px) {
  .port-modal {
    flex-direction: column;
    overflow-y: auto;
  }
  .port-modal-left {
    width: 100vw;
    height: 60vh;
    border-right: none;
    border-bottom: 4px solid var(--ink);
    transform: translateY(-100%);
  }
  .port-modal.is-active .port-modal-left {
    transform: translateY(0);
  }
  .port-modal-right {
    width: 100vw;
    height: auto;
    padding: 48px 20px;
    transform: translateY(100%);
  }
  .port-modal.is-active .port-modal-right {
    transform: translateY(0);
  }
  .thumb-deck {
    height: 90px;
  }
  .thumb-block {
    padding: 0 12px;
  }
  .thumb-block .thumb-num {
    font-size: 24px;
  }
  .thumb-block .thumb-preview {
    width: 44px;
    height: 44px;
  }
  .slider-btn {
    width: 70px;
  }
  .slider-btn::before {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .port-close {
    position: fixed;
    top: 16px;
    right: 16px;
    height: 40px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .port-meta-container {
    grid-template-columns: 1fr;
  }
  .port-meta-card[style*="grid-column"] {
    grid-column: auto !important;
  }
  .port-title {
    font-size: 36px;
  }
}

/* Brutalist Accordion Container */
.port-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.accordion-item {
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.accordion-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.accordion-item.is-active {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* Accordion Trigger/Header */
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.accordion-item.is-active .accordion-trigger {
  background: var(--yellow);
  border-bottom-color: var(--ink);
}

.accordion-title {
  letter-spacing: 0.05em;
}

.accordion-icon {
  font-size: 16px;
  font-weight: 900;
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s var(--ease);
  padding: 0 20px;
}

.accordion-item.is-active .accordion-content {
  max-height: 500px;
  padding: 20px;
}

/* Detailed Tech Stack grid & pills */
.tech-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 6px 12px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  cursor: default;
}

.tech-pill:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--coral);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO MODAL v2 — DARK CINEMATIC REDESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Right panel: dark ink instead of cream */
.port-modal-right {
  background: var(--ink);
  color: var(--cream);
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* only .port-modal-body scrolls */
}

/* Top bar */
.port-modal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(240,237,225,0.1);
  flex-shrink: 0;
}

.port-project-index {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(240,237,225,0.35);
}

/* Override close button for dark bg */
.port-close {
  position: static;
  background: transparent;
  border: 1.5px solid rgba(240,237,225,0.25);
  color: rgba(240,237,225,0.7);
  box-shadow: none;
  height: 36px;
  padding: 0 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.port-close:hover {
  background: var(--accent, var(--yellow));
  border-color: var(--accent, var(--yellow));
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

/* Scrollable inner body */
.port-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(240,237,225,0.15) transparent;
}

/* Title wrap with ghost number */
.port-title-wrap {
  position: relative;
  margin-bottom: 20px;
}

.port-ghost-num {
  position: absolute;
  top: -28px;
  right: -10px;
  font-family: var(--display);
  font-size: clamp(90px, 13vw, 160px);
  line-height: 1;
  color: rgba(240,237,225,0.04);
  user-select: none;
  pointer-events: none;
  letter-spacing: -4px;
}

/* Cat tag on dark background */
.port-cat-tag {
  background: var(--accent, var(--coral));
  color: #fff;
  border-color: transparent;
  box-shadow: none;
  margin-bottom: 10px;
  display: inline-block;
}

/* Title on dark */
.port-title {
  color: var(--cream);
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 3.5vw, 52px);
  margin-top: 0;
}

/* Stats strip */
.port-stats-strip {
  display: flex;
  gap: 0;
  border: 1px solid rgba(240,237,225,0.12);
  margin: 16px 0 24px;
}

.port-stat {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid rgba(240,237,225,0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.port-stat:last-child { border-right: none; }

.port-stat-val {
  font-family: var(--display);
  font-size: 16px;
  color: var(--cream);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.port-stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,225,0.38);
}

/* Tabs */
.port-tabs {
  display: flex;
  border-bottom: 1px solid rgba(240,237,225,0.12);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.port-tab {
  background: none;
  border: none;
  color: rgba(240,237,225,0.38);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease);
}

.port-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent, var(--yellow));
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
  transform-origin: left;
}

.port-tab.is-active { color: var(--cream); }
.port-tab.is-active::after { transform: scaleX(1); }
.port-tab:hover:not(.is-active) { color: rgba(240,237,225,0.65); }

/* Tab panels */
.port-tab-content { display: none; padding-bottom: 24px; }
.port-tab-content.is-active { display: block; }

/* Description on dark bg */
.port-desc {
  color: rgba(240,237,225,0.75);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.port-desc p + p { margin-top: 14px; }

.port-desc p:first-of-type::first-letter {
  color: var(--accent, var(--yellow));
  -webkit-text-stroke: 1px rgba(240,237,225,0.2);
}

/* Challenge / creative boxes */
.port-challenge-box,
.port-creative-box {
  border-left: 3px solid var(--accent, var(--yellow));
  padding: 14px 18px;
  margin-bottom: 14px;
  background: rgba(240,237,225,0.04);
}

.port-challenge-label,
.port-creative-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent, var(--yellow));
  margin-bottom: 8px;
}

.port-challenge-box p,
.port-creative-box p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(240,237,225,0.65);
  margin: 0;
}

/* Stack tab */
.port-scope-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(240,237,225,0.04);
  border: 1px solid rgba(240,237,225,0.1);
}

.port-scope-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent, var(--yellow));
  white-space: nowrap;
  padding-top: 2px;
}

.port-scope-row span:last-child {
  font-size: 13px;
  color: rgba(240,237,225,0.75);
  line-height: 1.5;
}

/* Tech pills on dark */
.tech-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pill {
  background: rgba(240,237,225,0.07);
  border: 1.5px solid rgba(240,237,225,0.18);
  color: rgba(240,237,225,0.85);
  padding: 8px 14px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
}

.tech-pill:hover {
  background: var(--accent, var(--yellow));
  border-color: var(--accent, var(--yellow));
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

/* Feedback / quote tab */
.port-quote-block { padding: 8px 0 24px; }

.port-quote-mark {
  display: block;
  font-family: var(--display);
  font-size: 96px;
  line-height: 0.75;
  color: var(--accent, var(--yellow));
  margin-bottom: 12px;
}

.port-quote-text {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--cream);
  font-style: italic;
  margin-bottom: 28px;
}

.port-quote-author-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(240,237,225,0.15);
}

.port-quote-author {
  font-family: var(--display);
  font-size: 18px;
  color: var(--cream);
  text-transform: uppercase;
}

.port-quote-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(240,237,225,0.4);
  text-transform: uppercase;
}

/* Project nav bar */
.port-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  border-top: 1px solid rgba(240,237,225,0.1);
  flex-shrink: 0;
}

.port-nav-btn {
  background: none;
  border: 1.5px solid rgba(240,237,225,0.18);
  color: rgba(240,237,225,0.45);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.port-nav-btn:hover {
  background: var(--accent, var(--yellow));
  border-color: transparent;
  color: var(--ink);
}

/* Responsive */
@media (max-width: 768px) {
  .port-modal-topbar,
  .port-modal-body,
  .port-nav-bar { padding-left: 20px; padding-right: 20px; }

  .port-stat-val { font-size: 13px; }

  .port-tab { padding: 10px 12px; font-size: 9px; }

  .port-quote-text { font-size: 15px; }
}

/* ==========================================================================
   PORTFOLIO — "Live website" display mode (iframe embeds)
   ========================================================================== */

/* Card grid: zoomed-out live preview when a website project has no cover image */
.pcard-media .pcard-web {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  border: 0;
  background: #fff;
  transform: scale(0.25);
  transform-origin: top left;
  pointer-events: none;
}

/* Detail modal: full live embed replaces the image slider */
.slider-slide--web {
  background: #fff;
  position: relative;
}
.port-web-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  display: block;
}
.port-web-open {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  background: var(--ink, #16141a);
  color: var(--yellow, #ffcd05);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 13px;
  border: 2px solid var(--ink, #16141a);
  text-decoration: none;
}
.port-web-open:hover { background: var(--yellow, #ffcd05); color: var(--ink, #16141a); }

/* Website mode has a single slide: hide the gallery arrows + thumbnail deck */
.port-modal.is-website .slider-btn,
.port-modal.is-website .thumb-deck { display: none; }

/* Multi-Service App Layout styling inside modal */
.port-split-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.port-app-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.port-app-title {
  font-family: var(--display), sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent, var(--yellow));
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

