/* ==========================================================================
   STUDIO ILMAH - CORE NEOBRUTALIST DESIGN SYSTEM & SHARED STYLES
   ========================================================================== */

:root {
  /* Studio Cream (Default light theme) */
  --ink: #211d28;
  --cream: #fff3d3;
  --yellow: #f7bf3e;
  --pink: #e951e8;
  --purple: #9b78ef;
  --green: #b8f24c;
  --dark: #201c26;
  --white: #fffdf7;
  --line: 2px solid var(--ink);
  
  /* Theme-specific aliases */
  --theme-bg: var(--cream);
  --theme-fg: var(--ink);
  --theme-card-bg: var(--white);
  --theme-shadow: var(--pink);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Midnight Punk Theme */
[data-theme="midnight-punk"] {
  --ink: #fffcf7;
  --cream: #14111a;
  --yellow: #fcc232;
  --pink: #f53bf4;
  --purple: #a684ff;
  --green: #c1fc44;
  --dark: #09070c;
  --white: #221d2b;
  --line: 2px solid var(--ink);
  
  --theme-bg: var(--cream);
  --theme-fg: var(--ink);
  --theme-card-bg: var(--white);
  --theme-shadow: var(--purple);
}

/* Acid Tangerine Theme */
[data-theme="acid-tangerine"] {
  --ink: #1b1622;
  --cream: #fff1eb;
  --yellow: #ff6825; /* Vivid Tangerine */
  --pink: #00ebd7; /* Hyper Cyan */
  --purple: #4679ff; /* Vibrant Cobalt */
  --green: #1fd68a; /* Bright Mint */
  --dark: #24130b;
  --white: #fffdfc;
  --line: 2px solid var(--ink);
  
  --theme-bg: var(--cream);
  --theme-fg: var(--ink);
  --theme-card-bg: var(--white);
  --theme-shadow: var(--purple);
}

/* Base Setup */
* {
  box-sizing: border-box;
}

img, video, iframe, svg, canvas {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--theme-fg);
  background: var(--theme-bg);
  width: 100%;
  max-width: 100%;
  transition: background var(--transition-normal), color var(--transition-normal);
}

body.no-scroll {
  overflow: hidden !important;
  height: 100dvh !important;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none; /* Hide standard cursor for our custom cursor */
}

button {
  cursor: none;
}

/* Texture overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.045;
  background-image: radial-gradient(var(--ink) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  mix-blend-mode: multiply;
}

.top-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pink);
  z-index: 100;
  transition: background var(--transition-normal);
}

/* Custom Interactive Cursor */
.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
  mix-blend-mode: difference;
}

.custom-cursor-circle {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

/* Custom Cursor States */
.custom-cursor.is-hovering {
  width: 14px;
  height: 14px;
  background: var(--green);
  mix-blend-mode: normal;
}

.custom-cursor-circle.is-hovering {
  width: 48px;
  height: 48px;
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
}

.custom-cursor-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed transparent;
  transition: border-color var(--transition-fast);
}

.custom-cursor-circle.is-hovering::after {
  border-color: var(--ink);
  animation: rotateDashed 8s linear infinite;
}

@keyframes rotateDashed {
  to { transform: rotate(360deg); }
}

/* Keyboard Focus Indicators - Neobrutalist focus outlines */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

/* Shared Brand Bar Styles */
.brand-bar {
  position: fixed;
  left: 22px;
  bottom: 28px;
  z-index: 90;
  display: grid;
  grid-template-columns: 88px 260px 250px;
  height: 92px;
  background: var(--theme-card-bg);
  border: var(--line);
  box-shadow: 4px 4px 0 var(--pink);
  transition: width var(--transition-normal), grid-template-columns var(--transition-normal), height var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-bar.is-compact {
  grid-template-columns: 72px 220px;
  height: 76px;
}

.brand-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: var(--line);
  font-weight: 800;
  transition: border-color var(--transition-normal);
}

.brand-cell:last-child {
  border-right: 0;
}

.brand-bar.is-compact .project-jump {
  display: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 1.8px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 0.9;
  font-family: "DM Mono", monospace;
  font-size: 18px;
  object-fit: cover;
  overflow: hidden;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.brand-cell:hover .brand-mark {
  background: var(--yellow);
  transform: rotate(-10deg) scale(1.05);
}

.brand-bar.is-compact .brand-mark {
  width: 50px;
  height: 50px;
  font-size: 16px;
}

.brand-name {
  font-size: 34px;
  letter-spacing: -2px;
  cursor: none;
  font-weight: 900;
}

.brand-bar.is-compact .brand-name {
  font-size: 28px;
}

.dashboard-btn {
  background: var(--pink);
  color: var(--ink);
  padding: 14px 28px;
  font-weight: 800;
  font-size: 21px;
  clip-path: polygon(6% 0, 94% 0, 94% 8%, 100% 8%, 100% 92%, 94% 92%, 94% 100%, 6% 100%, 6% 92%, 0 92%, 0 8%, 6% 8%);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.dashboard-btn:hover {
  transform: scale(1.04) rotate(-1deg);
  background: var(--green);
}

/* Floating Navigation Menu Button */
.menu-btn {
  position: fixed;
  right: 28px;
  top: 28px;
  width: 92px;
  height: 92px;
  z-index: 150;
  background: var(--theme-card-bg);
  border: var(--line);
  display: grid;
  place-items: center;
  cursor: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.menu-lines, .menu-lines::before, .menu-lines::after {
  width: 36px;
  height: 3px;
  background: var(--ink);
  display: block;
  content: "";
  transition: var(--transition-fast);
}

.menu-lines::before {
  transform: translateY(-11px);
}

.menu-lines::after {
  transform: translateY(8px);
}

.menu-btn.is-open {
  background: var(--white);
  box-shadow: 0 0 0 transparent;
}

.menu-btn.is-open .menu-lines {
  background: transparent;
}

.menu-btn.is-open .menu-lines::before {
  transform: rotate(45deg);
}

.menu-btn.is-open .menu-lines::after {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Floating Theme Switcher Widget */
.theme-switch-widget {
  position: fixed;
  right: 140px;
  top: 28px;
  height: 92px;
  background: var(--theme-card-bg);
  border: var(--line);
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  z-index: 120;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  padding: 0;
  cursor: none;
  transition: transform 0.15s ease, border-width 0.15s ease;
  position: relative;
}

.theme-btn:hover {
  transform: scale(1.15);
}

.theme-btn.is-active {
  border-width: 4px;
}

.theme-btn::before {
  content: attr(aria-label);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--ink);
  color: var(--white);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.15s ease;
  z-index: 130;
}

.theme-btn:hover::before {
  transform: translateX(-50%) scale(1);
}

.theme-btn-cream { background: #fff3d3; }
.theme-btn-punk { background: #221d2b; }
.theme-btn-acid { background: #ff6825; }

/* Menu Overlay Styles */
.menu-overlay {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 140;
  background: var(--pink);
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-slow), visibility var(--transition-slow);
  border: var(--line);
  overflow-y: auto;
}

.menu-overlay.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.menu-top {
  height: 132px;
  display: grid;
  grid-template-columns: 1fr 128px 290px 280px 110px;
  border-bottom: var(--line);
}

.menu-top > div {
  border-right: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-top > div:last-child {
  border-right: 0;
}

.mini-btn {
  border: var(--line);
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 18px;
  background: var(--white);
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

.menu-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.menu-link {
  min-height: 23vh;
  border-bottom: var(--line);
  border-right: var(--line);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  font-size: clamp(32px, 9vw, 140px);
  font-weight: 900;
  letter-spacing: -7px;
  transition: background var(--transition-fast), padding-left var(--transition-fast);
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.18);
  padding-left: 7vw;
}

.menu-link:nth-child(even) {
  border-right: 0;
}

.menu-link .arrow {
  margin-right: 18px;
  transition: transform var(--transition-fast);
}

.menu-link:hover .arrow {
  transform: translateX(10px);
}

/* Common Section Skeletons */
section {
  position: relative;
  min-height: 100vh;
}

section.intro, section.info-grid, section.process, section.screens, section.outcome, .project-banner {
  min-height: auto;
}

/* Project Banner Mockup Section */
.project-banner {
  border-bottom: var(--line);
  background: var(--theme-bg);
  padding: 8vh 4vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.project-banner-inner {
  max-width: 1200px;
  width: 100%;
  border: var(--line);
  box-shadow: 12px 12px 0 var(--ink);
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-normal);
}

.project-banner-inner:hover img {
  transform: scale(1.02);
}

/* Pills & Badges */
.kicker {
  display: inline-block;
  border: var(--line);
  border-radius: 999px;
  padding: 4px 15px;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
  background: var(--theme-card-bg);
}

.tag {
  display: inline-block;
  border: var(--line);
  border-radius: 999px;
  padding: 3px 15px;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  background: var(--theme-card-bg);
}

/* Highlight Text Effects */
.hl {
  border-radius: 999px;
  padding: 0 0.25em 0.08em;
  background: transparent;
  transition: background var(--transition-fast);
}

.hl.green { background: var(--green); }
.hl.yellow { background: var(--yellow); }
.hl.purple { background: var(--purple); }

/* Common Project Page layouts */
.project-visual {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(720px, 45vw);
  aspect-ratio: 4/3;
  border: var(--line);
  background: var(--white);
  box-shadow: 14px 14px 0 var(--pink);
  transform: rotate(4deg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-visual:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 8px 8px 0 var(--purple);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Info Card replacing Project Visual */
.hero-info-card {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(520px, 45vw);
  border: var(--line);
  background: var(--theme-card-bg, var(--white));
  box-shadow: 14px 14px 0 var(--shadow, var(--pink));
  transform: rotate(3deg);
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  color: var(--theme-fg, var(--ink));
}
.hero-info-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 8px 8px 0 var(--shadow, var(--pink));
}
.info-card-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px dashed rgba(120, 120, 120, 0.35);
  padding-bottom: 18px;
  text-align: left;
}
.info-card-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.info-label {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  opacity: 0.65;
  text-transform: uppercase;
  font-weight: 700;
}
.info-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.visual-tag {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 3;
  background: var(--green);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 800;
}

/* Case Study Content Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: var(--line);
}

.info-box {
  min-height: 230px;
  padding: 30px;
  border-right: var(--line);
  transition: background var(--transition-fast);
}

.info-box:hover {
  background: rgba(184, 242, 76, 0.1);
}

.info-box:nth-child(even):hover {
  background: rgba(155, 120, 239, 0.1);
}

.info-box:last-child {
  border-right: 0;
}

.info-box h3 {
  margin: 0 0 18px;
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 600;
}

.info-box p {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
}

/* Process Section */
.process {
  background: var(--process-bg);
  padding: 12vh 4vw 14vh;
  border-bottom: var(--line);
  transition: background var(--transition-normal);
}

.section-title {
  font-size: clamp(34px, 9vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin: 0 0 60px;
  font-weight: 900;
}

.process-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 250px;
  border: var(--line);
  border-bottom: 0;
  background: var(--white);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.process-row:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--ink);
  z-index: 10;
}

.process-row:last-child {
  border-bottom: var(--line);
}

.step-number {
  border-right: var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px;
  font-family: "DM Mono", monospace;
  font-size: 24px;
  font-weight: 800;
  background: rgba(33, 29, 40, 0.03);
}

.step-content {
  padding: 34px 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: start;
}

.step-content h3 {
  margin: 0;
  font-size: clamp(28px, 5vw, 86px);
  line-height: 0.9;
  letter-spacing: -4px;
  font-weight: 900;
}

.step-content p, .step-content li {
  font-size: 20px;
  line-height: 1.45;
}

/* Screens / Key Screens Section */
.screens {
  background: var(--screen-bg);
  padding: 12vh 5vw 16vh;
  border-bottom: var(--line);
  transition: background var(--transition-normal);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.screen-card {
  min-height: 330px;
  background: var(--white);
  border: var(--line);
  box-shadow: 10px 10px 0 var(--shadow);
  transform: rotate(var(--r));
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.screen-card:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 14px 14px 0 var(--ink);
  z-index: 5;
}

.screen-card:nth-child(1) { --r: -3deg; }
.screen-card:nth-child(2) { --r: 2deg; }
.screen-card:nth-child(3) { --r: -1deg; }

.screen-card-head {
  height: 58px;
  border-bottom: var(--line);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  font-family: "DM Mono", monospace;
  font-weight: 800;
}

.screen-card-head span, .screen-card-head strong {
  display: grid;
  place-items: center;
  border-right: var(--line);
}

.screen-card-head span:last-child {
  border-right: 0;
}

.screen-card p {
  padding: 26px;
  font-size: 20px;
  line-height: 1.45;
  margin: 0;
}

/* Outcome Section */
.outcome {
  background: var(--cream);
  padding: 12vh 6vw 18vh;
  transition: background var(--transition-normal);
}

.outcome-card {
  max-width: 1100px;
  margin: auto;
  background: var(--white);
  border: var(--line);
  box-shadow: 14px 14px 0 var(--shadow);
  padding: 52px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.outcome-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 18px 18px 0 var(--ink);
}

.outcome-card h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 7vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.outcome-card p {
  font-size: 22px;
  line-height: 1.45;
  margin: 0;
}

/* Next Project Navigation Footer */
.next-project-footer {
  background: var(--dark);
  color: var(--white);
  border-top: var(--line);
  padding: 12vh 6vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.next-project-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  pointer-events: none;
}

.next-project-kicker {
  font-family: "DM Mono", monospace;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  margin-bottom: 18px;
  letter-spacing: 2px;
  font-weight: 800;
}

.next-project-link {
  display: inline-block;
  font-size: clamp(30px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  transition: transform 0.25s ease, color 0.25s ease;
  margin-bottom: 40px;
}

.next-project-link:hover {
  color: var(--green);
  transform: scale(1.03) rotate(-1deg);
}

/* Shared Footer */
footer {
  background: var(--dark);
  color: var(--white);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 60px 20px 140px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-family: "DM Mono", monospace;
  letter-spacing: 1px;
  text-align: center;
}

footer .footer-links {
  display: flex;
  gap: 56px;
}

footer a:hover {
  color: var(--pink);
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 900px) {
  html, body {
    overflow-x: clip;
  }

  /* Disable custom cursor on mobile touch screens */
  .custom-cursor, .custom-cursor-circle {
    display: none !important;
  }
  
  body, a, button {
    cursor: auto !important;
  }

  .brand-bar {
    grid-template-columns: 70px 1fr;
    left: 18px !important;
    right: 130px !important; /* space for theme switcher */
    bottom: 18px !important;
    width: auto !important;
    height: 72px;
  }

  .brand-bar.is-compact {
    grid-template-columns: 70px 1fr;
    height: 72px;
  }

  .brand-cell.project-jump {
    display: none;
  }

  .brand-name {
    font-size: 24px;
  }

  .menu-btn {
    width: 72px;
    height: 72px;
    right: 18px;
    top: 18px;
  }

  .theme-switch-widget {
    right: 18px !important;
    bottom: 18px !important;
    top: auto !important;
    left: auto !important;
    height: 72px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    z-index: 120 !important;
  }

  .theme-btn {
    width: 24px;
    height: 24px;
  }

  .menu-overlay {
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .menu-top {
    flex: 0 0 auto !important;
    height: 72px !important;
    grid-template-columns: 1fr auto 1fr !important;
  }

  .menu-top > div:nth-child(1), .menu-top > div:nth-child(4) {
    display: none !important;
  }

  .menu-links {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    padding: 20px 0 !important;
    grid-template-columns: none !important;
  }

  .menu-link {
    flex: 1 !important;
    min-height: 0 !important;
    height: auto !important;
    font-size: clamp(28px, 4.5vh, 38px) !important;
    letter-spacing: -2px !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 10vw !important;
    border-right: 0 !important;
    border-bottom: var(--line) !important;
  }

  .menu-link:last-child {
    border-bottom: 0 !important;
  }

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

  .info-box {
    border-right: 0;
    border-bottom: var(--line);
    min-height: auto;
    padding: 24px;
  }

  .process-row {
    grid-template-columns: 1fr;
  }

  .step-number {
    border-right: 0;
    border-bottom: var(--line);
    padding: 20px;
  }

  .step-content {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }

  .screen-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .screen-card {
    min-height: auto;
  }

  .outcome-card {
    padding: 30px 24px;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .project-visual {
    width: calc(100% - 16px) !important;
    max-width: 500px !important;
    aspect-ratio: 4/3 !important;
    margin: 20px auto 0 !important;
    transform: rotate(0deg) !important;
    box-shadow: 8px 8px 0 var(--pink) !important;
  }

  /* Responsive Typography Overrides */
  .section-title {
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
  }
  .outcome-card h2 {
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
  }
  .next-project-link {
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
  }

  /* Responsive Project Info Card Layout */
  .hero-info-card {
    width: 100% !important;
    max-width: 500px !important;
    transform: none !important;
    padding: 24px 20px !important;
    gap: 16px !important;
    box-shadow: 8px 8px 0 var(--shadow, var(--pink)) !important;
  }
  .info-card-item {
    padding-bottom: 12px !important;
    gap: 4px !important;
  }
  .info-value {
    font-size: 20px !important;
  }
}

/* ==========================================================================
   CASE STUDY NAV BAR OVERRIDES (TOP NAVIGATION HEADER)
   ========================================================================== */
.brand-bar-top {
  top: 28px;
  bottom: auto;
  left: 28px;
  grid-template-columns: 88px 260px 420px;
}

.case-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  width: 100%;
  height: 100%;
}

.case-nav-links a {
  position: relative;
  font-size: 20px;
  font-weight: 500;
  padding: 34px 0;
  cursor: none;
}

.case-nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 24px;
  transform: translateX(-50%);
  background: var(--pink);
}

@media (max-width: 900px) {
  .brand-bar-top {
    top: 18px !important;
    bottom: auto !important;
    left: 18px !important;
    right: 100px !important; /* Leaves room for top right menu button */
    grid-template-columns: 70px 1fr !important;
    width: auto !important;
    height: 72px !important;
  }
}

/* ==========================================================================
   CASE STUDY HERO LAYOUTS
   ========================================================================== */
.hero-case {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 54% 46%;
  align-items: center;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  border-bottom: var(--line);
  padding: 180px 5vw 120px 5vw;
  position: relative;
}

.hero-case::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 1;
}

.hero-case::after {
  content: none;
}

.hero-case .hero-copy {
  padding: 0;
  max-width: 900px;
}

.hero-case .kicker {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  margin-bottom: 30px;
}

.hero-case h1 {
  font-size: clamp(60px, 7vw, 128px);
  line-height: .94;
  letter-spacing: -0.05em;
  margin: 0;
}

.hero-case-subtitle {
  max-width: 850px;
  margin: 34px 0 0;
  font-size: clamp(20px, 1.8vw, 31px);
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  .hero-case {
    grid-template-columns: 1fr;
    padding: 130px 20px 80px;
    gap: 50px;
  }
  .hero-case h1 {
    letter-spacing: -0.02em;
    line-height: 1.15;
  }
}


