/* ============================================================================
   /src/styles/main.css
   MADADS — Award-Level Creative & Digital Agency Stylesheet
   1. Clash Font Pairing: Unbounded + Syne + Instrument Serif Italic + Space Mono
   2. 3D Rolling Split-Flap Hover Typography (.roll-link & .roll-row-wrap)
   3. Inline Expanding Media Pills (.inline-media-pill & .row-inline-pill)
   4. Scroll-Scrubbed Ink Fill Manifesto (#ink-manifesto)
   ============================================================================ */

:root {
  --bg: #ffffff;
  --bg-subtle: #f6f6f7;
  --text: #09090c;
  --text-muted: #686873;
  --accent: #ff2a1f;
  --accent-dark: #d91b11;
  --line: #e4e4e7;
  --line-dark: #1f1f24;
  --font-display: "Unbounded", "Syne", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Syne", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-power4: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: auto !important;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  line-height: 1.3;
}

/* Top Scroll Progress Indicator */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 9998;
  pointer-events: none;
  will-change: transform;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================================
   TYPOGRAPHIC ACCENTS: SERIF ITALIC, MONO META & SPINNING STARS (✦)
   ============================================================================ */
.serif-italic,
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0em;
}

.serif-accent {
  color: var(--accent);
  font-size: 1.16em;
  line-height: 0.85;
  padding: 0 0.06em;
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spin-star {
  display: inline-block;
  color: var(--accent);
  animation: starSpin 5s linear infinite;
  margin-right: 4px;
}

@keyframes starSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================================
   3D ROLLING SPLIT-TEXT LINKS (.roll-link)
   ============================================================================ */
.roll-link {
  display: inline-block;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25em;
  position: relative;
}

.roll-inner {
  display: block;
  position: relative;
  transition: transform 0.45s var(--ease-expo);
}

.roll-inner::after {
  content: attr(data-alt);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.22em;
  letter-spacing: 0.02em;
}

.roll-link:hover .roll-inner {
  transform: translateY(-100%);
}

/* ============================================================================
   CUSTOM MAGNETIC CURSOR
   ============================================================================ */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  backface-visibility: hidden;
}

#cursor-dot {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
}

#cursor-ring {
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 11, 14, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s var(--ease-expo), height 0.25s var(--ease-expo),
              margin 0.25s var(--ease-expo), background-color 0.25s ease,
              border-color 0.25s ease;
}

#cursor-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
}

#cursor-ring.is-link {
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
  border-color: var(--accent);
  background-color: rgba(255, 42, 31, 0.08);
}

#cursor-ring.is-expanded {
  width: 82px;
  height: 82px;
  margin-left: -41px;
  margin-top: -41px;
  background-color: var(--accent);
  border-color: var(--accent);
}

#cursor-ring.is-expanded #cursor-label {
  opacity: 1;
}

[data-magnetic] {
  will-change: transform;
}

/* ============================================================================
   1. PRELOADER — Black BG, Red Accent, Kinetic "madads. .. ..."
   ============================================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #050507;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 1.05s var(--ease-power4);
  user-select: none;
}

#preloader::before {
  content: "";
  position: absolute;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 31, 0.24) 0%, transparent 68%);
  pointer-events: none;
  animation: pulseGlow 1.8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.18); opacity: 1; }
}

#preloader.is-revealing {
  clip-path: inset(0 0 100% 0);
}

.preloader-kinetic-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1.2vh, 14px);
}

.mad-line {
  overflow: hidden;
  line-height: 0.92;
  will-change: transform, opacity;
}

.mad-word-ghost {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9.5vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: lowercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 42, 31, 0.42);
  opacity: 0;
  transform: translateY(100%);
  animation: madSlideIn 0.65s var(--ease-expo) forwards;
}

.line-1 .mad-word-ghost { animation-delay: 0.05s; }
.line-3 .mad-word-ghost { animation-delay: 0.22s; }

.mad-word-main {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  color: #ffffff;
  text-shadow: 0 0 60px rgba(255, 42, 31, 0.45);
  opacity: 0;
  transform: translateY(100%);
  animation: madSlideIn 0.7s 0.12s var(--ease-expo) forwards;
}

.mad-red {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  padding-right: 0.04em;
}

.mad-dots {
  display: inline-block;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.mad-dots .dot {
  display: inline-block;
  opacity: 0;
}

.mad-dots .d1 { animation: dotStep1 0.9s infinite steps(1, end); }
.mad-dots .d2 { animation: dotStep2 0.9s infinite steps(1, end); }
.mad-dots .d3 { animation: dotStep3 0.9s infinite steps(1, end); }

@keyframes madSlideIn {
  to { opacity: 1; transform: translateY(0%); }
}

@keyframes dotStep1 {
  0%, 15% { opacity: 0; }
  16%, 100% { opacity: 1; }
}

@keyframes dotStep2 {
  0%, 45% { opacity: 0; }
  46%, 100% { opacity: 1; }
}

@keyframes dotStep3 {
  0%, 75% { opacity: 0; }
  76%, 100% { opacity: 1; }
}

.preloader-footer-bar {
  position: absolute;
  bottom: clamp(24px, 4vh, 44px);
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.preloader-progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

#preloader-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 16px var(--accent);
}

.preloader-pct {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================================
   2. HEADER
   ============================================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 16px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.45s var(--ease-expo);
}

#site-header.is-hidden {
  transform: translateY(-100%);
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-logo span {
  color: var(--accent);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px;
  background: var(--bg-subtle);
}

.lang-btn {
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: var(--text);
  color: #ffffff;
}

.pdf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}

.pdf-badge:hover {
  border-color: var(--accent);
  background: rgba(255, 42, 31, 0.05);
}

.pdf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.header-phone {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-phone:hover {
  color: var(--accent);
}

/* ============================================================================
   3D KINETIC CHARACTER CASCADE & SLOT-ROLL HEADINGS
   ============================================================================ */
.split-mask {
  display: inline-block;
  vertical-align: bottom;
}

.split-word {
  display: inline-block;
  white-space: nowrap;
}

.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  perspective: 600px;
}

.char-3d {
  position: relative;
  display: inline-block;
  transform: translate3d(0, 115%, 0) rotateX(-72deg) skewY(6deg);
  transform-origin: 50% 100%;
  transition: transform 0.72s var(--char-delay, 0s) var(--ease-expo),
              color 0.28s ease;
  will-change: transform;
}

.char-3d::after {
  content: attr(data-char);
  position: absolute;
  left: 0;
  top: 108%;
  color: var(--accent);
  transform: skewY(4deg);
}

.is-revealed .char-3d,
[data-split].is-revealed .char-3d {
  transform: translate3d(0, 0%, 0) rotateX(0deg) skewY(0deg);
}

/* Interactive 3D Slot-Roll Wave on Heading Hover */
.kinetic-heading:hover .char-3d {
  transition-delay: calc(var(--char-delay, 0s) * 0.45);
  transform: translate3d(0, -108%, 0);
}

/* ============================================================================
   SCROLL-SCRUBBED ARCHITECTURAL SECTION HEADERS (01 — 04)
   Smooth curtain rise + scroll-driven liquid crimson fill on italic serif
   ============================================================================ */
.scrub-header {
  --scrub-p: 1;
  position: relative;
  padding-bottom: 22px;
}

/* Scroll-Driven Laser Progress Line under Section Header */
.scrub-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 42, 31, 0.25) 60%, transparent 100%);
  transform: scaleX(var(--scrub-p, 1));
  transform-origin: left center;
  will-change: transform;
}

.scrub-header-left {
  position: relative;
}

.scrub-display-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.28em;
  row-gap: 4px;
}

.scrub-main-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.scrub-word-main {
  display: inline-block;
  transform: translate3d(0, calc((1 - var(--scrub-p, 1)) * 95%), 0);
  will-change: transform;
}

/* Scroll-Scrubbed Liquid Crimson Fill on Italic Serif Word (Zero Clipped Swashes!) */
.scrub-word-serif {
  display: inline-block;
  padding-right: 0.14em;
  transform: translate3d(calc((1 - var(--scrub-p, 1)) * 32px), 0, 0);
  background-image: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 50%,
    rgba(145, 145, 160, 0.28) 50.1%,
    rgba(145, 145, 160, 0.28) 100%
  );
  background-size: 200% 100%;
  background-position: calc((1 - var(--scrub-p, 1)) * 100%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform, background-position;
}

/* ============================================================================
   3. HERO SECTION
   ============================================================================ */
#hero {
  min-height: 100vh;
  padding: 106px clamp(20px, 4vw, 56px) 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: nowrap;
}

.hero-services-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(4px, 0.5vw, 8px);
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-services-pills::-webkit-scrollbar {
  display: none;
}

.hero-service-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 6px;
  padding: 6px clamp(8px, 0.9vw, 13px);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.25s var(--ease-expo);
}

.chip-star {
  color: var(--accent);
  transition: transform 0.35s var(--ease-expo);
}

.hero-service-chip:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-2px);
}

.hero-service-chip:hover .chip-star {
  transform: rotate(180deg) scale(1.2);
}

.hero-counter-box {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-counter-box .slash {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  margin: 0 4px;
}

.hero-showcase-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: auto 0;
  padding: 32px 0;
}

.hero-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-tag-pill {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}

.hero-project-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 18px;
  transition: letter-spacing 0.45s var(--ease-expo);
}

.hero-project-title:hover {
  letter-spacing: -0.02em;
}

.hero-project-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 26px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.go-circle-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  transition: background 0.25s ease;
}

.go-circle-btn:hover {
  background: var(--accent);
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.slide-arrow-btn:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.hero-dots {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.hero-dot-btn {
  width: 24px;
  height: 4px;
  background: var(--line);
  transition: background 0.25s, width 0.25s;
}

.hero-dot-btn.is-active {
  background: var(--accent);
  width: 40px;
}

.hero-visual-wrap {
  position: relative;
  height: clamp(320px, 46vh, 500px);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  will-change: transform;
}

#hero-visual-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: #fff;
  clip-path: inset(0 0 0 0);
}

#hero-visual-card.wipe-in {
  animation: heroClipWipe 0.85s var(--ease-power4);
}

@keyframes heroClipWipe {
  0% { clip-path: inset(0 100% 0 0); transform: scale(1.1); }
  100% { clip-path: inset(0 0% 0 0); transform: scale(1); }
}

#hero-webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.88;
}

.hero-visual-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  pointer-events: none;
}

.hero-art-Title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scroll-down-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollBounce 1.4s infinite ease-in-out;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(4px); }
}

/* ============================================================================
   3.5 SCROLL-SCRUBBED INK FILL MANIFESTO + INLINE EXPANDING MEDIA PILLS
   ============================================================================ */
.manifesto-block {
  background: #09090c;
  color: #ffffff;
  border-bottom: 1px solid var(--line-dark);
}

.manifesto-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

.ink-reveal-statement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-transform: uppercase;
}

.ink-word {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.24);
  transition: color 0.35s var(--ease-expo), -webkit-text-stroke 0.35s var(--ease-expo),
              transform 0.35s var(--ease-expo);
}

.ink-word.is-inked {
  color: #ffffff;
  -webkit-text-stroke: 1.5px #ffffff;
}

.ink-word.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18em;
  text-transform: none;
}

.ink-word.serif-accent.is-inked {
  color: var(--accent);
  -webkit-text-stroke: 0px transparent;
}

/* Inline Pill Media that expands on scroll & hover */
.inline-media-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  border-radius: 99px;
  background: rgba(255, 42, 31, 0.14);
  border: 1.5px solid rgba(255, 42, 31, 0.45);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: scale(0.88);
  opacity: 0.45;
  transition: all 0.4s var(--ease-expo);
}

.inline-media-pill.is-inked,
.inline-media-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: scale(1.06) rotate(-3deg);
  opacity: 1;
  box-shadow: 0 10px 30px rgba(255, 42, 31, 0.45);
}

/* ============================================================================
   SECTION GLOBAL LAYOUT
   ============================================================================ */
.section-block {
  padding: clamp(68px, 12vh, 140px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5.5vh, 64px);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-display-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-transform: uppercase;
}

.cta-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 99px;
  background: var(--text);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.25s ease;
}

.cta-pill-btn:hover {
  background: var(--accent);
}

/* ============================================================================
   4. WORK IN PROGRESS — 360° RADIAL CHRONO-DIALS & 4-STAGE PIPELINE DIAGRAM
   ============================================================================ */
.wip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wip-card {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  transition: background 0.4s var(--ease-expo), color 0.4s var(--ease-expo),
              border-color 0.4s var(--ease-expo), transform 0.4s var(--ease-expo),
              box-shadow 0.4s var(--ease-expo);
}

.wip-card:hover {
  background: #09090d;
  color: #ffffff;
  border-color: #09090d;
  transform: translateY(-4px);
  box-shadow: 0 26px 65px rgba(9, 9, 12, 0.22);
}

/* Top Telemetry Header */
.wip-telemetry-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.wip-card:hover .wip-telemetry-bar {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.wip-lab-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.wip-card:hover .wip-lab-code {
  color: #ffffff;
}

.wip-live-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 42, 31, 0.6);
  animation: wipPulse 2s infinite;
}

@keyframes wipPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 31, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(255, 42, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 31, 0); }
}

.wip-eta-tag {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.wip-card:hover .wip-eta-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

/* Radial Dial + Copy Split */
.wip-main-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.wip-radial-wrap {
  position: relative;
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wip-radial-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wip-dial-ticks {
  opacity: 0.28;
  transform-origin: 84px 84px;
  transition: transform 1.2s var(--ease-expo), opacity 0.35s ease;
}

.wip-card:hover .wip-dial-ticks {
  opacity: 0.55;
  transform: rotate(30deg);
}

.wip-radial-arc {
  filter: drop-shadow(0 0 8px rgba(255, 42, 31, 0.35));
}

.wip-radial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}

.wip-percent-num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  transition: color 0.3s ease;
}

.wip-card:hover .wip-percent-num {
  color: #ffffff;
}

.wip-phase-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 42, 31, 0.12);
  color: var(--accent);
}

.wip-copy-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wip-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.wip-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.wip-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.wip-card:hover .wip-note {
  color: rgba(255, 255, 255, 0.68);
}

/* 4-Node Architectural Pipeline Diagram */
.wip-pipeline-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.wip-card:hover .wip-pipeline-diagram {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.wip-stage-node {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-node-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.stage-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stage-node-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  transition: background 0.3s ease;
}

.wip-stage-node:last-child .stage-node-line {
  display: none;
}

.wip-stage-node.is-done .stage-node-dot {
  background: var(--text);
  border-color: var(--text);
}

.wip-card:hover .wip-stage-node.is-done .stage-node-dot {
  background: #ffffff;
  border-color: #ffffff;
}

.wip-stage-node.is-done .stage-node-line {
  background: var(--text);
}

.wip-card:hover .wip-stage-node.is-done .stage-node-line {
  background: rgba(255, 255, 255, 0.75);
}

.wip-stage-node.is-current .stage-node-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 42, 31, 0.22);
}

.stage-node-index {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.wip-stage-node.is-current .stage-node-index {
  color: var(--accent);
}

.stage-node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wip-stage-node.is-pending {
  opacity: 0.45;
}

/* ============================================================================
   5. PORTFOLIO TABS (3D Rolling Rows + Expanding Inline Metric Pill)
   ============================================================================ */
.portfolio-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.portfolio-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  background: #fff;
  transition: all 0.25s ease;
}

.portfolio-tab-btn .tab-icon-wrap {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.portfolio-tab-btn .tab-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.portfolio-tab-btn .tab-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}

.portfolio-tab-btn.is-active,
.portfolio-tab-btn:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 6.5fr 5.5fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: stretch;
}

#portfolio-main-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  border-radius: 10px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease-expo), background 0.25s ease, color 0.25s ease;
  animation: rowReveal 0.55s var(--ease-expo) backwards;
}

@keyframes rowReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.portfolio-row:hover,
.portfolio-row.is-active-row {
  padding-left: 26px;
  background: #09090c;
  color: #ffffff;
  border-bottom-color: transparent;
}

.row-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.row-title-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.row-sub-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.portfolio-row:hover .row-sub-tag,
.portfolio-row.is-active-row .row-sub-tag {
  color: rgba(255, 255, 255, 0.58);
}

.row-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* 3D Rolling Title inside Portfolio Row */
.roll-row-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: clamp(1.5rem, 2.3vw, 2.15rem);
  line-height: clamp(1.5rem, 2.3vw, 2.15rem);
}

.roll-row-primary,
.roll-row-secondary {
  display: block;
  transition: transform 0.48s var(--ease-expo);
  will-change: transform;
}

.roll-row-primary {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.85vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.roll-row-secondary {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.1vw, 2.05rem);
  color: var(--accent);
  letter-spacing: 0;
}

.portfolio-row:hover .roll-row-primary,
.portfolio-row:hover .roll-row-secondary,
.portfolio-row.is-active-row .roll-row-primary,
.portfolio-row.is-active-row .roll-row-secondary {
  transform: translateY(-100%);
}

/* Inline Metric Pill inside Row */
.row-inline-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.row-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.row-tag,
.row-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.portfolio-row:hover .row-year,
.portfolio-row.is-active-row .row-year {
  color: rgba(255, 255, 255, 0.55);
}

.row-go {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  padding: 3px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.portfolio-row:hover .row-go,
.portfolio-row.is-active-row .row-go {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Right Side: Live Interactive Case Showroom Stage (#portfolio-short-list) */
.portfolio-short-list {
  display: flex;
  flex-direction: column;
}

.portfolio-stage-card {
  position: relative;
  height: 100%;
  min-height: 360px;
  border-radius: 14px;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--stage-accent, #ff2a1f) 28%, transparent) 0%, #101018 58%, #07070b 100%);
  border: 1.5px solid #09090c;
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(9, 9, 12, 0.16);
  overflow: hidden;
  animation: stageFadeIn 0.35s var(--ease-expo);
}

@keyframes stageFadeIn {
  from { opacity: 0.7; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.portfolio-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.stage-case-code {
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.06em;
}

.stage-cat-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.portfolio-stage-visual {
  position: relative;
  height: 175px;
  border-radius: 10px;
  background: rgba(5, 5, 8, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
}

.stage-blueprint-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.45s var(--ease-expo);
}

.portfolio-stage-visual:hover .stage-blueprint-wrap {
  transform: scale(1.06);
}

.stage-watermark-num {
  position: absolute;
  right: 12px;
  bottom: -22px;
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.portfolio-stage-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stage-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-sub-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}

.stage-project-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-transform: uppercase;
}

.stage-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stage-kpi-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-kpi-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.stage-kpi-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}

.stage-open-btn {
  padding: 12px 20px;
  border-radius: 99px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.stage-open-btn:hover {
  background: #ffffff;
  color: #09090c;
  transform: translateY(-2px);
}

/* Floating Cursor Hover-Preview Card (Hidden since right-hand live stage is active) */
#portfolio-hover-preview {
  display: none !important;
}

/* ============================================================================
   6. CONTINUOUS KINETIC CINEMA-GLIDE PARTNER REEL (#clients)
   Zero-gap auto-gliding + scroll-accelerated horizontal partner gallery
   ============================================================================ */
.clients-scroll-runway {
  position: relative;
  width: 100%;
  border-top: 1px solid var(--line);
}

.clients-sticky-stage {
  border-top: none;
}

.clients-reel-header {
  margin-bottom: clamp(16px, 2.4vh, 26px);
}

.clients-header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.clients-reel-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
}

.clients-step-curr {
  color: var(--accent);
}

.clients-step-slash,
.clients-step-total {
  color: var(--text-muted);
  font-size: 11.5px;
}

.clients-step-bar {
  width: 84px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-left: 4px;
}

.clients-step-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.125);
  transform-origin: left center;
  transition: transform 0.2s var(--ease-expo);
}

.clients-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clients-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.clients-arrow-btn:hover {
  background: #09090c;
  color: #ffffff;
  transform: scale(1.06);
}

.clients-reel-stage {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vh, 22px);
}

/* Compact 3-Metric Executive Bar */
.clients-compact-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.compact-kpi-pill {
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.compact-kpi-pill.is-accent {
  background: #09090c;
  border-color: #09090c;
  color: #ffffff;
}

.compact-kpi-val {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.compact-kpi-pill.is-accent .compact-kpi-val {
  color: var(--accent);
}

.compact-kpi-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.compact-kpi-pill.is-accent .compact-kpi-lbl {
  color: rgba(255, 255, 255, 0.72);
}

/* Horizontal Cinema-Glide Viewport & Track */
.clients-reel-viewport {
  width: 100%;
  overflow: hidden;
  padding: 6px 2px;
}

.clients-reel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  transition: transform 0.08s linear;
}

.client-reel-card {
  position: relative;
  width: 356px;
  min-height: 330px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.35s ease, color 0.35s ease,
              transform 0.35s var(--ease-expo), box-shadow 0.35s ease;
}

.client-reel-card:hover,
.client-reel-card.is-active-card {
  background: #09090c;
  color: #ffffff;
  border-color: #09090c;
  box-shadow: 0 22px 50px rgba(9, 9, 12, 0.22);
  transform: translateY(-4px);
}

.client-card-watermark {
  position: absolute;
  right: 12px;
  bottom: -24px;
  font-family: var(--font-display);
  font-size: 7.5rem;
  font-weight: 900;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(9, 9, 12, 0.05);
  pointer-events: none;
  user-select: none;
}

.client-reel-card:hover .client-card-watermark,
.client-reel-card.is-active-card .client-card-watermark {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
}

.client-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.client-card-num {
  color: var(--accent);
}

.client-card-period {
  color: var(--text-muted);
}

.client-reel-card:hover .client-card-period,
.client-reel-card.is-active-card .client-card-period {
  color: rgba(255, 255, 255, 0.55);
}

.client-card-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-card-logo {
  width: 46px;
  height: 46px;
  color: currentColor;
  margin-bottom: 4px;
}

.client-card-logo svg {
  width: 100%;
  height: 100%;
}

.client-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-transform: uppercase;
}

.client-card-sector {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.client-reel-card:hover .client-card-sector,
.client-reel-card.is-active-card .client-card-sector {
  color: rgba(255, 255, 255, 0.65);
}

/* Bold Punchy Impact KPI Strip inside Card */
.client-card-kpi {
  padding: 12px 15px;
  border-radius: 8px;
  background: rgba(255, 42, 31, 0.08);
  border: 1px solid rgba(255, 42, 31, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-reel-card:hover .client-card-kpi,
.client-reel-card.is-active-card .client-card-kpi {
  background: rgba(255, 42, 31, 0.16);
  border-color: rgba(255, 42, 31, 0.5);
}

.client-kpi-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.client-kpi-value {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.client-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.client-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.client-mini-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--text);
}

.client-reel-card:hover .client-mini-chip,
.client-reel-card.is-active-card .client-mini-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.client-card-case-btn {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.client-card-case-btn:hover {
  background: #ffffff;
  color: #09090c;
  transform: scale(1.05);
}

/* Counter-Moving Partner Velocity Ticker */
.clients-bottom-ticker {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #09090c;
  color: #ffffff;
  padding: 11px 0;
}

.clients-ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  will-change: transform;
  transition: transform 0.08s linear;
}

.clients-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.ticker-dot {
  color: var(--accent);
}

.ticker-brand {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.ticker-metric {
  color: rgba(255, 255, 255, 0.55);
}


/* ============================================================================
   7 & 8. VELOCITY MARQUEES & 5 SERVICES SPECIFICATION
   ============================================================================ */
.marquee-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: var(--bg);
  user-select: none;
  contain: layout paint;
}

.marquee-strip.dark-strip {
  background: #09090c;
  color: #ffffff;
  border-bottom-color: var(--line-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}

.marquee-word {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.2vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-word.outline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3.3rem, 8.6vw, 9rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.dark-strip .marquee-word.outline {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.65);
}

.marquee-sep {
  color: var(--accent);
  font-size: clamp(1.8rem, 4vw, 3.8rem);
}

/* Services Cards Grid (All 5 Core Services with Icons) */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-spec-card {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.service-spec-card:hover {
  background: #09090c;
  color: #fff;
}

.service-spec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-spec-icon {
  width: 42px;
  height: 42px;
}

.service-spec-icon svg {
  width: 100%;
  height: 100%;
}

.service-spec-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.service-spec-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.service-spec-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.service-spec-card:hover .service-spec-desc {
  color: rgba(255, 255, 255, 0.72);
}

.service-spec-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-spec-go {
  color: var(--accent);
}

.ticker-small-word {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ============================================================================
   9. KINETIC FOOTER & CYBER CONTACT STAGE (#site-footer)
   ============================================================================ */
#site-footer {
  position: relative;
  background: #07070b;
  color: #ffffff;
  padding-bottom: 42px;
  overflow: hidden;
}

.footer-main {
  position: relative;
  padding: clamp(64px, 11vh, 120px) clamp(20px, 4vw, 56px) 52px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 44px;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Colossal 3D Background Monument Watermark */
.footer-bg-monument {
  position: absolute;
  right: -1vw;
  bottom: -4.5vw;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 17vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: translate3d(0, 40px, 0);
  opacity: 0;
  transition: transform 1.1s var(--ease-expo), opacity 1.1s ease, -webkit-text-stroke 0.45s ease;
}

.footer-main.is-inview .footer-bg-monument {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.footer-main:hover .footer-bg-monument {
  -webkit-text-stroke: 1.5px rgba(255, 42, 31, 0.14);
}

.footer-cta-col {
  position: relative;
  z-index: 2;
}

.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.3vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* Liquid Radar Pulse BOG'LANISH Button */
.feedback-giant-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 42px;
  border-radius: 99px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(255, 42, 31, 0.35);
  transition: background 0.35s var(--ease-expo), color 0.35s ease,
              transform 0.35s var(--ease-expo), box-shadow 0.35s ease;
}

.cta-pulse-ring {
  position: absolute;
  inset: -2px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  animation: ctaRadarRing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes ctaRadarRing {
  0% { transform: scale(0.96); opacity: 0.75; }
  100% { transform: scale(1.14); opacity: 0; }
}

.cta-arrow-orbit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  transition: transform 0.38s var(--ease-expo), background 0.3s ease, color 0.3s ease;
}

.feedback-giant-btn:hover {
  background: #ffffff;
  color: #09090c;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 60px rgba(255, 255, 255, 0.25);
}

.feedback-giant-btn:hover .cta-arrow-orbit {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(45deg) scale(1.12);
}

/* Kinetic Contact Links (+998 90 123 45 67, hello@madads.uz, Address) */
.footer-contacts {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.kinetic-contact-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.65s var(--ease-expo), opacity 0.65s ease, color 0.25s ease;
}

.footer-main.is-inview .kinetic-contact-link:nth-child(1) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.12s;
}

.footer-main.is-inview .kinetic-contact-link:nth-child(2) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.22s;
}

.kinetic-contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.42s var(--ease-expo);
}

.kinetic-contact-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.contact-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 2s infinite;
  flex-shrink: 0;
}

.footer-phone {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.35vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.footer-phone:hover {
  color: var(--accent);
  transform: translateX(6px);
}

.footer-email {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.footer-email:hover {
  color: #ffffff;
  transform: translateX(6px);
}

.contact-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-expo);
}

.footer-email:hover .contact-arrow {
  transform: translate(4px, -4px);
}

.footer-address-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.65s 0.32s var(--ease-expo), opacity 0.65s 0.32s ease,
              border-color 0.25s ease, background 0.25s ease;
}

.footer-main.is-inview .footer-address-pill {
  transform: translateY(0);
  opacity: 1;
}

.footer-address-pill:hover {
  border-color: var(--accent);
  background: rgba(255, 42, 31, 0.12);
  color: #ffffff;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  padding: 28px clamp(20px, 4vw, 56px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-rights-text {
  transition: color 0.25s ease;
}

.footer-rights-text:hover {
  color: #ffffff;
}

.footer-privacy-link {
  position: relative;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.footer-privacy-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

/* ============================================================================
   10. FEEDBACK MODAL (#modal-center)
   ============================================================================ */
#modal-center {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(9, 9, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-expo);
}

#modal-center.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 520px;
  max-width: 100%;
  background: #ffffff;
  color: #09090c;
  border-radius: 10px;
  padding: clamp(28px, 4vw, 42px);
  position: relative;
  transform: translateY(28px) scale(0.95);
  transition: transform 0.45s var(--ease-expo);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.4);
}

#modal-center.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--text);
  color: #fff;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

#feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field:focus {
  border-color: var(--accent);
}

.form-submit-btn {
  margin-top: 6px;
  padding: 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.form-submit-btn:hover {
  background: #09090c;
}

#modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
  gap: 14px;
}

#modal-success.is-shown {
  display: flex;
}

.checkmark-svg {
  width: 68px;
  height: 68px;
}

.checkmark-circle {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: drawStroke 0.65s var(--ease-expo) forwards;
}

.checkmark-path {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawStroke 0.55s 0.35s var(--ease-expo) forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

/* ============================================================================
   11. ANTI-AI STUDIO CRAFT UPGRADES:
   - Analog Film Grain (#film-grain-overlay)
   - Live Tashkent Studio Clock (.studio-status-pill)
   - Architectural Crosshair Markers (.section-block::before/after)
   - Hero Blueprint Stage (#hero-blueprint-stage)
   - Technical Vector Pills (.pill-code, .pill-glyph)
   - Editorial Swiss Services Spec Table (.services-swiss-table)
   - Interactive Case-Study Drawer (#case-study-drawer)
   ============================================================================ */

/* Subtle Analog Paper/Film Grain Overlay */
#film-grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Live Tashkent Studio Status Pill in Header */
.studio-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.live-pulse-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-sep {
  color: var(--text-muted);
}

/* Hero Service Chip Index Codes */
.chip-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 42, 31, 0.1);
}

.hero-service-chip:hover .chip-code {
  background: #fff;
  color: #09090c;
}

/* Hero Architectural Blueprint Stage inside #hero-visual-card */
.hero-blueprint-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  pointer-events: none;
}

.hero-blueprint-svg {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  transition: transform 0.65s var(--ease-expo);
}

#hero-visual-card:hover .hero-blueprint-svg {
  transform: scale(1.035);
}

.hero-visual-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-coords-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(9, 9, 12, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 10px;
  border-radius: 4px;
}

/* Architectural Crosshair Markers (+) on Section Blocks */
.section-block {
  position: relative;
}

.section-block::before,
.section-block::after {
  content: "+";
  position: absolute;
  top: -9px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  pointer-events: none;
}

.section-block::before {
  left: clamp(16px, 3.8vw, 52px);
}

.section-block::after {
  right: clamp(16px, 3.8vw, 52px);
}

/* Technical Vector Pills in Manifesto (Zero Emojis) */
.inline-media-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill-code {
  font-family: var(--font-mono);
  font-size: 0.58em;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.inline-media-pill:hover .pill-code {
  color: #ffffff;
}

.pill-glyph {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

/* Enhanced Portfolio Floating Hover-Preview with Blueprint */
.preview-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 2;
}

.preview-fig-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
}

.preview-blueprint-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  my: 4px;
}

.cat-blueprint-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 10px;
  z-index: 2;
}

/* Client Cell Top Index & Arrow */
.client-cell-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.client-arrow {
  transition: transform 0.25s var(--ease-expo), color 0.25s ease;
}

.client-cell:hover .client-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* ============================================================================
   FULL-WIDTH 3D SCROLL-STACKING ARCHITECTURAL MONOLITH SLABS (#services)
   Each scroll step glides the next full-width titanium slab up over the previous
   one, stacking their 48px top architectural spines with 3D scale + depth.
   ============================================================================ */
.services-monolith-stage {
  background: #07070b;
  color: #ffffff;
  border-top: 1px solid #1e1e26;
  border-bottom: 1px solid #1e1e26;
  position: relative;
  /* IMPORTANT: overflow must NOT be hidden so position: sticky works inside! */
  overflow: clip;
}

@supports not (overflow: clip) {
  .services-monolith-stage {
    overflow: visible;
  }
}

.services-dark-stage::before,
.services-dark-stage::after {
  color: var(--accent);
}

.services-dark-stage .section-eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.services-dark-stage .section-display-title {
  color: #ffffff;
}

.services-monolith-header {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.services-header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.services-scroll-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stepper-nums {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stepper-curr {
  color: var(--accent);
}

.stepper-slash,
.stepper-total {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.stepper-rail {
  width: 96px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.stepper-rail-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.2);
  transform-origin: left center;
  transition: transform 0.2s var(--ease-expo);
}

.dark-stage-cta {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.dark-stage-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* 3D Stacking Container */
.services-monolith-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  padding-bottom: 48px;
}

.service-monolith-card {
  position: sticky;
  top: calc(74px + (var(--card-index, 0) * 48px));
  z-index: calc(10 + var(--card-index, 0));
  width: 100%;
}

.monolith-card-surface {
  position: relative;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(145deg, #12121a 0%, #0b0b10 60%, #08080c 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.82),
              0 24px 60px rgba(0, 0, 0, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform-origin: center top;
  will-change: transform, filter;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-monolith-card:hover .monolith-card-surface {
  border-color: rgba(255, 42, 31, 0.55);
}

/* 48px Top Architectural Spine Bar (Always visible in stack) */
.monolith-spine-bar {
  height: 48px;
  padding: 0 clamp(18px, 2.5vw, 34px);
  background: linear-gradient(90deg, #161621 0%, #101018 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.25s ease;
}

.monolith-spine-bar:hover {
  background: linear-gradient(90deg, rgba(255, 42, 31, 0.18) 0%, #151520 100%);
}

.monolith-spine-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.monolith-spine-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.monolith-spine-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.monolith-spine-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monolith-spine-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.monolith-spine-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.monolith-spine-meta.accent-meta {
  color: #ffffff;
  border-color: rgba(255, 42, 31, 0.45);
  background: rgba(255, 42, 31, 0.14);
}

.monolith-spine-indicator {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.08em;
  padding-left: 6px;
}

/* Clean 2-Column Instant-Scan Architectural Slab Interior */
.monolith-body {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 290px;
}

/* Giant Outlined Background Watermark Number */
.monolith-watermark-num {
  position: absolute;
  left: 18px;
  bottom: -34px;
  font-family: var(--font-display);
  font-size: clamp(7.5rem, 13vw, 13rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.monolith-col {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.monolith-col-brand {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 0% 0%, rgba(255, 42, 31, 0.14) 0%, transparent 65%);
}

.monolith-brand-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.monolith-index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.monolith-big-index {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.3vw, 3.1rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.monolith-quick-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.monolith-pill-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

.monolith-pill-stat.is-accent {
  background: rgba(255, 42, 31, 0.14);
  border-color: rgba(255, 42, 31, 0.45);
  color: #ffffff;
}

.monolith-display-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

/* 3 Scannable Key Deliverable Chips */
.monolith-fast-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.monolith-fast-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.fast-chip-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
}

.monolith-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.monolith-primary-cta {
  padding: 13px 22px;
  border-radius: 99px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.monolith-primary-cta:hover {
  background: #ffffff;
  color: #09090c;
  transform: translateY(-2px);
}

.monolith-secondary-cta {
  padding: 13px 18px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.monolith-secondary-cta:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.monolith-top-case-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 10.5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.monolith-top-case-pill:hover {
  background: rgba(255, 42, 31, 0.18);
  border-color: var(--accent);
}

.top-case-lbl {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.top-case-val {
  color: var(--accent);
  font-weight: 700;
}

/* RIGHT COLUMN: Pure Visual CAD Blueprint Stage */
.monolith-col-proof {
  justify-content: center;
  background: rgba(5, 5, 8, 0.45);
}

.monolith-cad-box {
  position: relative;
  height: 100%;
  min-height: 220px;
  border-radius: 10px;
  background: #060609;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.blueprint-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 42, 31, 0.85) 50%, transparent 100%);
  animation: scanSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0% { top: 8%; opacity: 0.2; }
  50% { top: 88%; opacity: 0.9; }
  100% { top: 8%; opacity: 0.2; }
}

.monolith-cad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

.cad-live-dot {
  color: var(--accent);
}

.monolith-cad-svg {
  width: 100%;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

/* ============================================================================
   INTERACTIVE CASE-STUDY DRAWER (#case-study-drawer)
   ============================================================================ */
#case-study-drawer {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(9, 9, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-expo);
}

#case-study-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.case-drawer-panel {
  width: min(760px, 100vw);
  height: 100%;
  background: #ffffff;
  color: #09090c;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-expo);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
}

#case-study-drawer.is-open .case-drawer-panel {
  transform: translateX(0);
}

.case-drawer-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 20px clamp(22px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-drawer-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.case-drawer-close:hover {
  background: #09090c;
  color: #ffffff;
}

.case-drawer-body {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.case-drawer-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: uppercase;
}

.case-drawer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.6fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.case-meta-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-meta-cell:last-child {
  border-right: none;
}

.case-meta-cell strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.case-meta-cell.highlight-cell {
  background: rgba(255, 42, 31, 0.06);
}

.case-meta-cell.highlight-cell strong {
  color: var(--accent);
}

.case-drawer-visual {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #09090c;
}

.case-drawer-blueprint {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-drawer-blueprint svg {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
}

.case-drawer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.case-info-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-info-block p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.case-deliverables-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-deliv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-deliv-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--text);
  background: #ffffff;
}

.case-drawer-footer {
  padding-top: 10px;
}

.case-order-btn {
  width: 100%;
  padding: 18px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.25s ease;
}

.case-order-btn:hover {
  background: #09090c;
}

/* ============================================================================
   11. MINIMALIST CUSTOM TYPOGRAPHY LOGO ("madads.") IN NAVBAR
   Frameless Unbounded + Instrument Serif Italic + Living Dot / Spark Roll
   ============================================================================ */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--text);
  user-select: none;
}

.brand-logo.is-light-logo {
  color: #ffffff;
}

.brand-logo-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.18em;
  line-height: 1.18em;
}

.brand-logo-line {
  display: inline-flex;
  align-items: baseline;
  transition: transform 0.5s var(--ease-expo);
  will-change: transform;
}

.brand-logo-line.is-secondary {
  position: absolute;
  left: 0;
  top: 100%;
}

.brand-logo:hover .brand-logo-line.is-primary,
.brand-logo:hover .brand-logo-line.is-secondary {
  transform: translateY(-100%);
}

.brand-logo-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.16em;
  letter-spacing: -0.01em;
  color: var(--accent);
  padding-left: 0.02em;
  padding-right: 0.04em;
}

.brand-logo-dot {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 900;
  margin-left: 1px;
}

.brand-logo-spark {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72em;
  margin-left: 2px;
  transform: translateY(-0.12em) rotate(0deg);
  transition: transform 0.55s var(--ease-expo);
}

.brand-logo:hover .brand-logo-spark {
  transform: translateY(-0.12em) rotate(180deg);
}

/* ============================================================================
   12. CLEAN MOBILE MENU OVERLAY (For Phone & Tablet Navigation)
   ============================================================================ */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text);
}

.menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}

.menu-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

#mobile-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(7, 7, 11, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 40px) 34px;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 0.55s var(--ease-power4);
}

#mobile-menu-drawer.is-open {
  clip-path: inset(0 0 0% 0);
  pointer-events: auto;
}

.mobile-menu-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s var(--ease-expo), opacity 0.45s ease, color 0.2s ease;
}

#mobile-menu-drawer.is-open .mobile-nav-item:nth-child(1) { transition-delay: 0.08s; transform: translateY(0); opacity: 1; }
#mobile-menu-drawer.is-open .mobile-nav-item:nth-child(2) { transition-delay: 0.14s; transform: translateY(0); opacity: 1; }
#mobile-menu-drawer.is-open .mobile-nav-item:nth-child(3) { transition-delay: 0.20s; transform: translateY(0); opacity: 1; }
#mobile-menu-drawer.is-open .mobile-nav-item:nth-child(4) { transition-delay: 0.26s; transform: translateY(0); opacity: 1; }

.m-nav-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 12px;
}

.m-nav-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  flex: 1;
}

.m-nav-arrow {
  font-size: 20px;
  color: var(--accent);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-bottom-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.mobile-order-cta {
  padding: 15px 16px;
  border-radius: 99px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-call-pill {
  padding: 15px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   13. 5-TIER MULTI-DEVICE ADAPTIVE BREAKPOINTS & ANIMATION STATES
   Tier 1: Ultra-Wide (>= 1600px)
   Tier 2: Laptop (1025px - 1599px)
   Tier 3: Tablet / Mini-Laptop (768px - 1024px)
   Tier 4: Phone Large / Pro Max (391px - 767px)
   Tier 5: Phone Mini (<= 390px)
   ============================================================================ */

/* Scroll-Driven Active State for WIP Cards on Touch Devices (Phone & Tablet) */
.wip-card.is-mobile-focus {
  background: #09090d;
  color: #ffffff;
  border-color: #09090d;
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(9, 9, 12, 0.24);
}

.wip-card.is-mobile-focus .wip-telemetry-bar {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.wip-card.is-mobile-focus .wip-lab-code,
.wip-card.is-mobile-focus .wip-percent-num {
  color: #ffffff;
}

.wip-card.is-mobile-focus .wip-eta-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.wip-card.is-mobile-focus .wip-dial-ticks {
  opacity: 0.58;
  transform: rotate(30deg);
}

.wip-card.is-mobile-focus .wip-note {
  color: rgba(255, 255, 255, 0.68);
}

.wip-card.is-mobile-focus .wip-pipeline-diagram {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.wip-card.is-mobile-focus .wip-stage-node.is-done .stage-node-dot,
.wip-card.is-mobile-focus .wip-stage-node.is-done .stage-node-line {
  background: #ffffff;
  border-color: #ffffff;
}

/* TIER 1: ULTRA-WIDE / BIG DISPLAYS (>= 1600px) */
@media (min-width: 1600px) {
  #site-header,
  #hero,
  .section-block,
  .footer-main,
  .footer-bottom {
    padding-left: max(5vw, calc((100vw - 1800px) / 2));
    padding-right: max(5vw, calc((100vw - 1800px) / 2));
  }
  .hero-visual-wrap {
    height: clamp(440px, 50vh, 580px);
  }
  .client-reel-card {
    width: 396px;
    min-height: 356px;
  }
  .monolith-body {
    min-height: 330px;
  }
}

/* TIER 3: TABLET & MINI-LAPTOP (<= 1024px) */
@media (max-width: 1024px) {
  .header-nav,
  .pdf-badge,
  .header-phone {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-showcase-grid,
  .portfolio-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }
  /* On Tablet/Mobile, put Live Case Showroom Card right above rows for instant visual feedback */
  .portfolio-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }
  .portfolio-short-list {
    border-left: none;
    padding-left: 0;
  }
  .portfolio-stage-card {
    min-height: 290px;
  }
  /* Keep 3D Scroll-Stacking Monolith Slabs STICKY on Tablet & Phone too! */
  .service-monolith-card {
    position: sticky;
    top: calc(64px + var(--card-index, 0) * 40px);
  }
  .monolith-body {
    grid-template-columns: 1.2fr 0.8fr;
    min-height: auto;
  }
  .wip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-compact-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .client-reel-card {
    width: min(330px, 78vw);
  }
  .case-drawer-columns,
  .case-drawer-meta-grid {
    grid-template-columns: 1fr;
  }
  .case-meta-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* TIER 4: PHONE LARGE / PRO MAX (<= 767px) */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
  }

  #site-header {
    padding: 12px 16px;
  }
  .brand-logo-line {
    font-size: 19px;
  }
  .lang-switcher {
    gap: 2px;
    padding: 2px;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 10px;
    min-width: 26px;
  }
  .mobile-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }
  .mobile-menu-btn.is-active .menu-bars span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .mobile-menu-btn.is-active .menu-bars span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-counter-box {
    display: none !important;
  }
  #hero {
    min-height: auto;
    padding: 76px 16px 22px;
    gap: 16px;
  }
  .hero-top-meta {
    flex-wrap: nowrap;
    padding-bottom: 8px;
    width: 100%;
  }

  /* Phone Studio Discipline HUD */
  .hero-discipline-hud {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 3px 4px;
    gap: 4px;
    border-radius: 99px;
  }
  .hud-brand-tag {
    padding: 6px 10px;
    font-size: 9.5px;
  }
  .hud-disciplines-track {
    flex: 1 1 auto;
    scroll-snap-type: x mandatory;
    padding: 2px 0;
    gap: 3px;
  }
  .hud-discipline-btn {
    scroll-snap-align: center;
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 10.5px;
    font-weight: 700;
  }
  .hud-portfolio-link {
    display: none;
  }

  .hero-showcase-grid {
    padding: 8px 0;
    gap: 16px;
  }
  .hero-label-row {
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 12px;
  }
  .hero-tag-pill {
    font-size: 10px;
    padding: 4px 10px;
  }
  .hero-project-title {
    font-size: clamp(1.85rem, 8.8vw, 2.85rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    word-break: break-word;
    margin-bottom: 12px;
  }
  .hero-project-subtitle {
    font-size: 1.12rem;
    line-height: 1.35;
    margin-bottom: 16px;
  }
  .hero-actions-row {
    gap: 14px;
  }
  .go-circle-btn {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }
  .slide-arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .hero-visual-wrap {
    height: 270px;
    border-radius: 12px;
  }
  #hero-visual-card {
    padding: 16px;
  }
  .hero-bottom-bar {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10.5px;
    padding-top: 14px;
  }

  .section-block {
    padding: 48px 16px;
  }
  .section-display-title {
    font-size: clamp(1.85rem, 8.5vw, 2.65rem);
  }
  .ink-reveal-statement {
    font-size: clamp(1.45rem, 6.8vw, 2.15rem);
    gap: 6px 10px;
    line-height: 1.35;
  }
  .inline-media-pill {
    padding: 4px 12px;
    font-size: 0.58em;
    gap: 6px;
  }

  /* Work In Progress on Phone */
  .wip-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .wip-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .wip-radial-wrap {
    width: 148px;
    height: 148px;
  }
  .wip-percent-num {
    font-size: 2rem;
  }
  .wip-title {
    font-size: 1.18rem;
  }
  .wip-pipeline-diagram {
    gap: 4px;
  }
  .stage-node-label {
    font-size: 9px;
  }

  /* Portfolio Tabs & Rows on Phone */
  .portfolio-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .portfolio-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .portfolio-tab-btn {
    scroll-snap-align: center;
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 11px;
  }
  .portfolio-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 18px;
  }
  .portfolio-row {
    padding: 13px 8px;
    gap: 8px;
  }
  .row-index {
    font-size: 11.5px;
    width: 26px;
  }
  .roll-row-primary,
  .roll-row-secondary {
    font-size: clamp(0.98rem, 4.2vw, 1.2rem);
  }
  .row-sub-tag {
    font-size: 9.5px;
    margin-top: 3px;
  }
  .row-go {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--bg-subtle);
    color: var(--accent);
    transition: transform 0.25s ease, background 0.2s, color 0.2s;
  }
  .row-go-text {
    display: none !important;
  }
  .row-go-icon {
    display: inline-flex !important;
  }
  .portfolio-row:active .row-go,
  .portfolio-row.is-active-row .row-go {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: rotate(45deg);
  }
  .row-tag,
  .row-year,
  .row-inline-pill {
    display: none !important;
  }
  .portfolio-stage-card {
    min-height: 250px;
    padding: 18px 14px;
    border-radius: 12px;
  }
  .stage-open-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 11px;
  }

  /* Clients Section on Phone */
  .clients-compact-kpis {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .compact-kpi-pill {
    padding: 10px 14px;
  }
  .compact-kpi-val {
    font-size: 1.35rem;
  }
  .client-reel-card {
    width: min(285px, 80vw);
    min-height: 275px;
    padding: 18px 16px;
    border-radius: 12px;
  }
  .client-card-title {
    font-size: 1.25rem;
  }
  .client-card-case-btn {
    padding: 7px 12px;
    font-size: 10px;
  }

  /* Phone Tactile 3D Scroll-Stacking Services Monolith Slabs */
  .service-monolith-card {
    position: sticky;
    top: calc(56px + var(--card-index, 0) * 10px);
    margin-bottom: 20px;
  }
  .monolith-card-surface {
    border-radius: 14px;
  }
  .monolith-spine-bar {
    height: 38px;
    padding: 0 12px;
  }
  .monolith-spine-title {
    font-size: 11px;
  }
  .monolith-spine-right {
    display: none;
  }
  .monolith-body {
    grid-template-columns: 1fr;
  }
  .monolith-col {
    padding: 14px 12px;
  }
  .monolith-col-brand {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .monolith-big-index {
    font-size: 34px;
  }
  .monolith-display-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .monolith-fast-chips {
    gap: 5px;
    margin-bottom: 12px;
  }
  .monolith-fast-chip {
    padding: 4px 7px;
    font-size: 9.5px;
  }
  .monolith-actions-row {
    gap: 8px;
    padding-top: 12px;
  }
  .monolith-primary-cta {
    padding: 11px 16px;
    font-size: 10.5px;
    flex: 1 0 auto;
    text-align: center;
    justify-content: center;
  }
  .monolith-secondary-cta {
    padding: 11px 14px;
    font-size: 10px;
    flex: 1 0 auto;
    text-align: center;
    justify-content: center;
  }
  .monolith-top-case-pill {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 10px;
  }
  .monolith-cad-box {
    min-height: 90px;
    height: 90px;
    padding: 8px 10px;
  }
  .monolith-cad-svg {
    height: 60px;
  }

  /* iOS Bottom-Sheet Drawer on Phone (#case-study-drawer) */
  #case-study-drawer {
    align-items: flex-end;
  }
  .case-drawer-panel {
    width: 100vw;
    height: 88vh;
    border-radius: 20px 20px 0 0;
    padding: 14px 16px 24px;
    transform: translateY(100%);
  }
  .case-drawer-panel::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.28);
    margin: 0 auto 10px;
  }
  #case-study-drawer.is-open .case-drawer-panel {
    transform: translateY(0);
  }
  #case-drawer-close-text {
    display: none;
  }
  .case-drawer-columns,
  .case-drawer-meta-grid {
    grid-template-columns: 1fr;
  }
  .case-meta-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }
  .case-drawer-visual {
    height: 180px;
  }
  .case-order-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 18px;
    font-size: 11px;
  }

  /* iOS Bottom-Sheet Order Modal on Phone (#modal-center) */
  #modal-center {
    align-items: flex-end;
    padding: 0;
  }
  .modal-dialog {
    width: 100vw;
    max-width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px 20px 0 0;
    padding: 18px 18px 30px;
    transform: translateY(100%);
    box-sizing: border-box;
  }
  .modal-dialog::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(9, 9, 12, 0.25);
    margin: 0 auto 12px;
  }
  #modal-center.is-open .modal-dialog {
    transform: translateY(0);
  }

  /* Footer on Phone */
  .footer-main {
    padding: 44px 16px 28px;
    gap: 24px;
  }
  .footer-headline {
    font-size: clamp(1.8rem, 8.5vw, 2.5rem);
    margin-bottom: 20px;
  }
  .feedback-giant-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  .footer-contacts {
    gap: 10px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 16px 24px;
  }
}

/* TIER 5: PHONE MINI (<= 390px — iPhone SE / Mini) */
@media (max-width: 390px) {
  .brand-logo-line {
    font-size: 17px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 9.5px;
    min-width: 22px;
  }
  .hero-project-title {
    font-size: 1.75rem;
  }
  .hero-visual-wrap {
    height: 240px;
  }
  .client-reel-card {
    width: 255px;
    min-height: 260px;
    padding: 14px;
  }
  .wip-radial-wrap {
    width: 135px;
    height: 135px;
  }
  .wip-percent-num {
    font-size: 1.75rem;
  }
  .wip-title {
    font-size: 1.1rem;
  }
  .monolith-display-title {
    font-size: 1.25rem;
  }
  .stage-project-name {
    font-size: 1.2rem;
  }
}





/* ============================================================================
   14. NO-WRAP BUTTON FIX (Laptop: "KEYSNI OCHISH ↗" va boshqa tugmalar 2 qavat bo'lmasin)
   ============================================================================ */
.stage-open-btn,
.monolith-primary-cta,
.monolith-secondary-cta,
.monolith-top-case-pill,
.client-card-case-btn,
.cta-pill-btn,
.row-go,
.portfolio-tab-btn,
.hero-tag-pill,
.case-order-btn,
.feedback-giant-btn,
.pdf-badge,
.header-phone,
.lang-btn {
  white-space: nowrap;
}

.stage-kpi-row {
  flex-wrap: wrap;
}

.stage-kpi-box {
  min-width: 0;
}

.stage-kpi-val {
  white-space: nowrap;
}

.monolith-top-case-pill {
  max-width: 100%;
  overflow: hidden;
}

.monolith-top-case-pill .top-case-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Laptop (1025px - 1440px): Compact hero chips so all 5 fit in ONE row */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hero-service-chip {
    font-size: 10.5px;
    letter-spacing: 0.01em;
    padding: 6px 10px;
    gap: 5px;
  }
  .hero-service-chip .chip-code {
    font-size: 9px;
    padding: 1px 4px;
  }
  .hero-counter-box {
    font-size: 1.4rem;
    flex-shrink: 0;
  }
  .monolith-top-case-pill {
    margin-left: 0;
  }
  .stage-open-btn {
    padding: 11px 16px;
    font-size: 10.5px;
  }
}

/* ============================================================================
   15. STUDIO DISCIPLINE HUD (The Unified 5 Core Disciplines Matrix)
   Ultra-luxurious, zero 2-layer wrapping, zero ugly asterisks.
   ============================================================================ */
.hero-discipline-hud {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 99px;
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  max-width: 100%;
  isolation: isolate;
}

.hud-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  user-select: none;
}

.hud-live-spark {
  color: var(--accent);
  font-size: 11px;
  display: inline-block;
  animation: spinSlow 9s linear infinite;
}

.hud-disciplines-track {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hud-disciplines-track::-webkit-scrollbar {
  display: none;
}

.hud-discipline-btn {
  position: relative;
  display: inline-flex;
  flex-direction: row !important;
  align-items: center !important;
  white-space: nowrap !important;
  gap: 7px;
  padding: 7px clamp(10px, 0.9vw, 15px);
  border-radius: 99px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hud-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.9;
  letter-spacing: 0.02em;
  transition: color 0.2s, opacity 0.2s;
}

.hud-title {
  display: inline-block;
  white-space: nowrap !important;
}

.hud-discipline-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.hud-discipline-btn.is-active {
  background: linear-gradient(135deg, #ff4436 0%, var(--accent) 55%, #d91b11 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 42, 31, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hud-discipline-btn.is-active .hud-num {
  color: #ffffff;
  opacity: 1;
}

.hud-portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 42, 31, 0.12);
  border: 1px solid rgba(255, 42, 31, 0.32);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hud-portfolio-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Laptops (1025px - 1440px): streamlined font & padding so all 5 fit in ONE row */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hud-discipline-btn {
    padding: 6px 10px;
    font-size: 10.5px;
    gap: 5px;
  }
  .hud-brand-tag {
    padding: 5px 10px;
    font-size: 9.5px;
  }
}

/* Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hud-discipline-btn {
    padding: 6px 9px;
    font-size: 10px;
  }
  .hud-brand-tag {
    display: none;
  }
}

/* Phones (<= 767px): Touch Snap Scroll Track */
@media (max-width: 767px) {
  .hero-discipline-hud {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 4px;
    gap: 4px;
    border-radius: 99px;
  }
  .hud-brand-tag {
    padding: 6px 10px;
    font-size: 9.5px;
  }
  .hud-disciplines-track {
    flex: 1 1 auto;
    scroll-snap-type: x mandatory;
    padding: 2px 0;
    gap: 3px;
  }
  .hud-discipline-btn {
    scroll-snap-align: center;
    flex: 0 0 auto;
    padding: 8px 13px;
    font-size: 10.5px;
    font-weight: 700;
  }
  .hud-portfolio-link {
    display: none;
  }
}

/* Phone Mini (<= 390px) */
@media (max-width: 390px) {
  .hud-brand-tag {
    display: none;
  }
  .hud-discipline-btn {
    padding: 7px 11px;
    font-size: 10px;
  }
}
