:root {
  color-scheme: light;

  /* Light mode colors (default) */
  --ink: #0b0b0b;
  --paper: #f8f6ef;
  --accent: #f0df4a;
  --accent-deep: #d6c33f;
  --shadow: #0b0b0b;

  /* Semantic colors for theme switching */
  --bg-body: radial-gradient(circle at 20% 20%, #fbf8f0, #f2ece1 55%, #e7e0d3);
  --bg-header: radial-gradient(circle at 15% 35%, #f5e268 0%, #2c2c12 55%, #0b0b0b 100%);
  --header-text: #f8f6ef;
  --bg-hero-base: radial-gradient(circle at 20% 35%, #f5e268 0%, #3b3b1c 45%, #0f0f0f 100%);
  --bg-hero-reveal: linear-gradient(120deg, #fff9df 0%, #f7edb1 60%, #f2df86 100%);
  --text-hero-base: #f8f6ef;
  --text-hero-reveal: #0b0b0b;
  --bg-section-light: #fbf6de;
  --bg-card: #ffffff;
  --border-card: rgba(11, 11, 11, 0.1);
  --hero-outline-base: rgba(0, 0, 0, 0.8);
  --hero-outline-reveal: rgba(255, 255, 255, 0.9);

  /* Animation properties */
  --trail-gap: 15%;
  --trail-gap-current: 15%;
  --progress: 0%;
  --spread: 0%;

  font-family: "Space Grotesk", system-ui, sans-serif;
}

/* Dark mode overrides */
[data-theme="dark"] {
  color-scheme: dark;

  /* Dark mode colors - inverted */
  --ink: #f8f6ef;
  --paper: #0d0d0d;
  --accent: #f0df4a;
  --accent-deep: #f2e36f;
  --shadow: #050505;

  /* Dark backgrounds */
  --bg-body: radial-gradient(circle at 20% 20%, #16160c, #101007 55%, #0b0b06);
  --bg-header: radial-gradient(circle at 15% 35%, #f4e46c 0%, #1f1f0e 55%, #080805 100%);
  --header-text: #f8f6ef;

  /* REVERSED: Swap hero base and reveal backgrounds */
  --bg-hero-base: linear-gradient(120deg, #fff8cf 0%, #f4e47f 60%, #f1d956 100%);
  --bg-hero-reveal: radial-gradient(circle at 15% 35%, #2a2a12 0%, #151506 60%, #0a0a05 100%);

  /* REVERSED: Swap hero text colors */
  --text-hero-base: #0b0b0b;
  --text-hero-reveal: #f8f6ef;

  /* Section backgrounds */
  --bg-section-light: #1a1a10;
  --bg-card: #14140d;
  --border-card: rgba(240, 223, 74, 0.15);
  --hero-outline-base: rgba(255, 255, 255, 0.9);
  --hero-outline-reveal: rgba(0, 0, 0, 0.8);
}

@property --progress {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --spread {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

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

body {
  min-height: 100vh;
  background: var(--bg-body);
  color: var(--ink);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8vw;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  color: var(--header-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.brand-wordmark {
  height: 30px;
  width: auto;
  display: block;
  transform: scale(1.9, 1.5);
  transform-origin: left center;
}

.brand-text {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0b0b0b !important;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 3px rgba(255, 255, 255, 0.8);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .brand-text {
  color: #f8f6ef !important;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 3px rgba(0, 0, 0, 0.8);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
}

.brand:hover {
  opacity: 0.85;
}

.brand .brand-logo {
  height: 32px;
  width: auto;
  margin-right: 12px;
  object-fit: contain;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--header-text);
  opacity: 0.85;
  transition: all 200ms ease;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 200ms ease;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.site-nav a:hover::after {
  width: 100%;
}

.cta {
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.cta:hover {
  background: transparent;
  color: var(--accent);
}

.theme-toggle {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  transition: all 300ms ease;
  font-weight: 600;
  font-size: 0.85rem;
}

.theme-toggle:hover {
  background: var(--accent);
  color: var(--ink);
}

.theme-label {
  /* Visibility controlled by JavaScript */
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  margin: 0 6vw 6vw;
  border-radius: 32px;
  background: linear-gradient(120deg, #fff7d6, #f7e688 45%, #f0d758);
  box-shadow: 0 40px 90px rgba(36, 25, 18, 0.18);
}

.hero-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh;
  overflow: hidden;
}

.hero-base {
  background: var(--bg-hero-base);
  color: var(--text-hero-base);
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-reveal {
  background: var(--bg-hero-reveal);
  color: var(--text-hero-reveal);
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
  --trail: clamp(0%, calc(var(--progress) - var(--trail-gap-current)), 140%);
  --tip-x: calc(100% - var(--trail));
  clip-path: polygon(
    var(--tip-x) 50%,
    100% calc(50% - var(--spread)),
    100% calc(50% + var(--spread))
  );
  pointer-events: none;
}

.hero-base,
.hero-reveal {
  opacity: 0;
  transition: opacity 350ms ease;
}

.hero-base {
  opacity: 1;
}

.hero.is-animating .hero-reveal {
  opacity: 1;
}

.hero-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  max-width: none;
  max-height: none;
  z-index: 1;
  display: none;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero.is-animating .hero-reveal {
  opacity: 1;
}

.hero.is-animating .hero-base .hero-image {
  animation: base-image-fade 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes base-image-fade {
  0%, 23% {
    opacity: 1;
  }
  28%, 96% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.hero-reveal .hero-actions {
  pointer-events: auto;
}

.hero-content {
  max-width: 520px;
  display: grid;
  gap: 18px;
}

.hero-base .eyebrow,
.hero-base .lede,
.hero-base .hero-actions a {
  /* -webkit-text-stroke: 1px var(--hero-outline-base); */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-base h1 {
  /* -webkit-text-stroke: 2px var(--hero-outline-base); */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-reveal .eyebrow,
.hero-reveal .lede,
.hero-reveal .hero-actions a {
  /* -webkit-text-stroke: 1px var(--hero-outline-reveal); */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.25);
}

.hero-reveal h1 {
  /* -webkit-text-stroke: 2px var(--hero-outline-reveal); */
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 3vw + 1.5rem, 4.5rem);
  line-height: 1.05;
}

.lede {
  font-size: 1.05rem;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.story {
  background: var(--bg-section-light);
  padding: 6vh 6vw;
}

.story .section-header {
  margin-bottom: 2.5rem;
}

.story-player {
  position: relative;
  width: min(920px, 100%);
  height: min(50vh, 520px);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.story-mute {
  position: absolute;
  right: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(10, 10, 10, 0.7);
  color: #f6f3ea;
  font-size: 0.9rem;
  cursor: pointer;
}

.story-mute[aria-pressed="false"] {
  background: rgba(246, 243, 234, 0.85);
  color: #1b1b1b;
  border-color: rgba(27, 27, 27, 0.5);
}

#story-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.primary,
.ghost {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: #1d120c;
}

.ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}

/* Anchor button styles */
a.primary,
a.ghost {
  display: inline-block;
  text-decoration: none;
  transition: all 200ms ease;
}

a.primary {
  background: var(--accent);
  color: #1d120c;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: none;
}

a.primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

a.ghost {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

a.ghost:hover {
  opacity: 0.8;
}

.slash {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, rgba(139, 46, 31, 0), #8b2e1f 45%, #8b2e1f 55%, rgba(139, 46, 31, 0));
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  opacity: 0;
  z-index: 3;
  box-shadow: 0 0 18px rgba(139, 46, 31, 0.45);
}

[data-theme="dark"] .slash {
  background: linear-gradient(90deg, rgba(232, 212, 200, 0), #e8d4c8 45%, #e8d4c8 55%, rgba(232, 212, 200, 0));
  box-shadow: 0 0 18px rgba(232, 212, 200, 0.45);
}

.sword-image {
  position: absolute;
  width: 240px;
  height: auto;
  left: 100%;
  top: 50%;
  transform: translate(0, -50%);
  opacity: 0;
  z-index: 3;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

.hero.is-animating .slash {
  animation: line-draw 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.hero.is-animating .sword-image {
  animation: sword-draw-line 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.hero.is-animating .hero-reveal {
  animation: reveal-grow 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes line-draw {
  0% {
    transform: translateY(-50%) scaleX(0);
    opacity: 0;
  }
  23% {
    transform: translateY(-50%) scaleX(0);
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  42% {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
  }
  96% {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scaleX(0);
    opacity: 0;
  }
}

@keyframes sword-draw-line {
  0% {
    left: 100%;
    transform: translate(0, -50%);
    opacity: 0;
  }
  23% {
    left: 100%;
    transform: translate(0, -50%);
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  42% {
    left: -1100px;
    transform: translate(0, -50%);
    opacity: 1;
  }
  96% {
    left: -1100px;
    transform: translate(0, -50%);
    opacity: 1;
  }
  100% {
    left: 100%;
    transform: translate(0, -50%);
    opacity: 0;
  }
}

@keyframes reveal-grow {
  /* Wait period */
  0%, 23% {
    --progress: 0%;
    --trail-gap-current: var(--trail-gap);
    --spread: 0%;
  }

  /* INSTANT SLASH: V-shape forms and expands to full fill (28% - 42%) - matches sword exactly */
  28% {
    --progress: 20%;
    --trail-gap-current: var(--trail-gap);
    --spread: 15%;
  }
  30% {
    --progress: 80%;
    --trail-gap-current: 2%;
    --spread: 50%;
  }
  32% {
    --progress: 150%;
    --trail-gap-current: 0%;
    --spread: 75%;
  }
  35% {
    --progress: 250%;
    --trail-gap-current: 0%;
    --spread: 100%;
  }
  42% {
    --progress: 400%;
    --trail-gap-current: 0%;
    --spread: 150%;
  }

  /* Complete fill hold (42% - 96%) */
  96% {
    --progress: 400%;
    --trail-gap-current: 0%;
    --spread: 150%;
  }

  /* Instant reset */
  100% {
    --progress: 0%;
    --trail-gap-current: var(--trail-gap);
    --spread: 0%;
  }
}

/* Section Base Styles */
section {
  margin: 0 6vw 6vw;
  padding: 8vh 6vw;
  border-radius: 32px;
  background: var(--paper);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 2.5vw + 1rem, 3.5rem);
  margin-bottom: 1rem;
  color: var(--ink);
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Offers Section */
.offers {
  background: linear-gradient(135deg, var(--bg-section-light), #efe3d4);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.offer-card {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.offer-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-icon svg {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.offer-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.offer-card p {
  line-height: 1.5;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
  background: radial-gradient(circle at 80% 20%, var(--bg-card), var(--bg-section-light) 60%);
  padding: 3rem 0;
}

/* ======================================
   Clients X Animation Container
   ====================================== */

.clients-x-animation-container {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  align-items: center;
}

/* ======================================
   Rolling List (Left Side - 6 visible items)
   ====================================== */

.rolling-list-container {
  flex: 0 0 40%;
  max-width: 450px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rolling-list-wrapper {
  position: relative;
  height: 480px; /* 6 items × 80px */
  overflow: hidden;
  will-change: transform;
}

.rolling-list-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  height: 80px;
  margin-bottom: 0;
  border-left: 4px solid transparent;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

[data-theme="dark"] .rolling-list-item {
  background-color: rgba(255, 255, 255, 0.02);
}

.rolling-item-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  min-width: 40px;
  transition: all 0.4s ease;
}

.rolling-item-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.4s ease;
  flex: 1;
}

/* Active state for rolling list */
.rolling-list-item.active {
  background-color: var(--bg-section-light);
  border-left-color: var(--accent);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
  transform: translateX(8px);
}

[data-theme="dark"] .rolling-list-item.active {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.rolling-list-item.active .rolling-item-number {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.15);
}

.rolling-list-item.active .rolling-item-name {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Hover effect */
.rolling-list-item:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.04);
  border-left-color: var(--accent);
  transform: translateX(4px);
}

[data-theme="dark"] .rolling-list-item:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.04);
}

/* ======================================
   Card Carousel (Right Side)
   ====================================== */

.card-carousel-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.card-carousel-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  will-change: transform;
}

.client-card {
  flex: 0 0 280px;
  min-width: 280px;
  background-color: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.6s ease;
  cursor: pointer;
  opacity: 0.5;
  transform: scale(0.85);
}

[data-theme="dark"] .client-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Active card - prominent visual state */
.client-card.active {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(245, 166, 35, 0.25);
  z-index: 10;
}

[data-theme="dark"] .client-card.active {
  box-shadow: 0 12px 35px rgba(245, 166, 35, 0.35);
}

.client-card:hover:not(.active) {
  opacity: 0.75;
  transform: scale(0.9);
}

/* Card image placeholder with gradient backgrounds */
.card-image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 7%;
  box-sizing: border-box;
}

/* Gradient definitions - 20+ unique gradients */
.card-image-placeholder[data-gradient="1"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image-placeholder[data-gradient="2"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-image-placeholder[data-gradient="3"] {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-image-placeholder[data-gradient="4"] {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-image-placeholder[data-gradient="5"] {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.card-image-placeholder[data-gradient="6"] {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.card-image-placeholder[data-gradient="7"] {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.card-image-placeholder[data-gradient="8"] {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.card-image-placeholder[data-gradient="9"] {
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.card-image-placeholder[data-gradient="10"] {
  background: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%);
}

.card-image-placeholder[data-gradient="11"] {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.card-image-placeholder[data-gradient="12"] {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.card-image-placeholder[data-gradient="13"] {
  background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 100%);
}

.card-image-placeholder[data-gradient="14"] {
  background: linear-gradient(135deg, #fad0c4 0%, #ffecd2 100%);
}

.card-image-placeholder[data-gradient="15"] {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.card-image-placeholder[data-gradient="16"] {
  background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%);
}

.card-image-placeholder[data-gradient="17"] {
  background: linear-gradient(135deg, #a8ecec 0%, #fed6e3 100%);
}

.card-image-placeholder[data-gradient="18"] {
  background: linear-gradient(135deg, #74ebd5 0%, #acb6e5 100%);
}

.card-image-placeholder[data-gradient="19"] {
  background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
}

.card-image-placeholder[data-gradient="20"] {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-icon {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: all 0.4s ease;
  color: rgba(255, 255, 255, 0.9);
  display: block;
}

.client-card.active .card-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.card-label {
  padding: 1.25rem 1.5rem;
  text-align: center;
  background-color: var(--bg-card);
  transition: all 0.4s ease;
}

.card-label h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
}

.card-label p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.5;
  color: var(--ink);
}

.client-card.active .card-label h4 {
  color: var(--accent);
  font-size: 1.1rem;
}

.client-card.active .card-label {
  padding: 1.5rem;
}

/* ======================================
   Console Controls
   ====================================== */

.clients-x-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--accent);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn svg {
  width: 24px;
  height: 24px;
}

.control-play-pause {
  width: 56px;
  height: 56px;
}

.control-play-pause svg {
  width: 26px;
  height: 26px;
}

.clients-mobile-progress {
  display: block;
  width: 35vw;
  height: 3px;
  margin: 0.5rem auto 0;
  background-color: rgba(26, 20, 16, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="dark"] .clients-mobile-progress {
  background-color: rgba(244, 239, 230, 0.2);
}

.clients-mobile-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--accent);
}

@keyframes clientsProgressFill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.portfolio-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ======================================
   Responsive Design
   ====================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .clients-x-animation-container {
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .rolling-list-container {
    flex: 0 0 35%;
    max-width: 380px;
  }

  .rolling-list-wrapper {
    height: 420px;
  }

  .client-card {
    flex: 0 0 260px;
    min-width: 260px;
  }

  .card-image-placeholder {
    height: 180px;
    padding: 7%;
  }

  .card-icon {
    display: block;
  }
}

/* Mobile (below 768px) */
@media (max-width: 768px) {
  .clients-x-animation-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .rolling-list-container {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .rolling-list-wrapper {
    height: 420px; /* 6 items × 70px */
  }

  .rolling-list-item {
    height: 70px;
    padding: 1rem;
  }

  .rolling-item-number {
    font-size: 1.25rem;
    min-width: 35px;
  }

  .rolling-item-name {
    font-size: 0.9rem;
  }

  .card-carousel-container {
    width: 100%;
    padding: 1.5rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-carousel-track {
    display: flex;
    gap: 0;
    align-items: center;
    will-change: auto;
    padding: 0;
    width: 100%;
    justify-content: center;
  }

  .client-card {
    flex: 0 0 auto;
    width: min(86vw, 340px);
    min-width: min(86vw, 340px);
    border-radius: 16px;
    opacity: 1;
    transform: scale(1);
    display: none;
    margin: 0 auto;
  }

  .client-card.active {
    display: block;
    opacity: 1;
    transform: scale(1);
  }

  .card-image-placeholder {
    height: min(50vw, 200px);
    padding: 7%;
  }

  .card-icon {
    display: block;
  }

  .card-label {
    padding: 1.25rem;
  }

  .card-label h4 {
    font-size: 1rem;
  }

  .clients-mobile-progress {
    width: 80vw;
  }

  .card-label p {
    font-size: 0.9rem;
  }

  .control-btn {
    width: 45px;
    height: 45px;
  }

  .control-play-pause {
    width: 50px;
    height: 50px;
  }

  .control-btn svg {
    width: 20px;
    height: 20px;
  }

  .control-play-pause svg {
    width: 22px;
    height: 22px;
  }
}

/* Company Section */
.company {
  background: linear-gradient(120deg, var(--bg-section-light), #f7f1e5 45%, #eed8c1);
}

[data-theme="dark"] .company {
  background: linear-gradient(120deg, #1a1410, #252018 45%, #2a2420);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.company-about h2,
.company-about h3 {
  font-family: "Playfair Display", serif;
  color: var(--ink);
  margin-bottom: 1rem;
}

.company-about h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
}

.company-about h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.company-about p {
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.experience-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
}

[data-theme="dark"] .experience-highlights {
  background: rgba(58, 53, 48, 0.8);
}

.highlight-item h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.highlight-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 0;
}

.benefits-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.benefits-list li {
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.team-grid {
  display: grid;
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.member-photo {
  width: 120px;
  height: 120px;
  background: var(--paper);
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.team-member h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Contact Section */
.contact {
  background: radial-gradient(circle at 15% 35%, #5c1414 0%, #3b0f11 55%, #2a0a0c 100%);
  color: #f7f0e8;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
  transition: opacity 300ms ease;
}

.contact-item a:hover {
  opacity: 0.8;
}

.contact-form form {
  display: grid;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(247, 240, 232, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f7f0e8;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  transition: border-color 300ms ease, background 300ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(247, 240, 232, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form button {
  justify-self: start;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 8vw;
  margin: 0;
  border-radius: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  text-align: center;
}

.footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 200ms ease;
}

.footer-brand:hover {
  opacity: 0.85;
}

.footer-brand .brand-logo {
  height: 28px;
  width: auto;
  margin-right: 10px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-brand .brand-wordmark {
  height: 26px;
  width: auto;
  display: block;
  transform: scale(1.9, 1.5);
  transform-origin: left center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 200ms ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Dark mode specific overrides */
[data-theme="dark"] .offer-card h3,
[data-theme="dark"] .client-card h4,
[data-theme="dark"] .section-header h2 {
  color: var(--ink);
}

[data-theme="dark"] .client-logo {
  background: #1a1410;
}

[data-theme="dark"] .experience-highlights {
  background: rgba(26, 20, 16, 0.6);
}

[data-theme="dark"] .contact {
  background: radial-gradient(circle at 15% 35%, #3a0e0e 0%, #2a0a0c 55%, #1a0608 100%);
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 12px;
  }

  .hero {
    margin: 0 5vw 10vw;
    min-height: 82vh;
  }

  .hero-layer {
    padding: 10vh 10vw 18vh;
  }

  .hero-image {
    display: none !important;
  }

  .company-grid,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  /* Mobile carousel layout - switch to grid */
  .carousel-wrapper {
    flex-direction: column;
    padding: 0;
  }

  .carousel-btn {
    display: none;
  }

  .carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 0;
  }

  .clients-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    transform: translateX(0) !important;
  }

  .client-card {
    min-width: unset;
    flex-shrink: unset;
  }

  .experience-highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .theme-toggle {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

}

@media (max-width: 700px) {
  .site-header {
    padding: 16px 6vw;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand .brand-logo {
    height: 24px;
    margin-right: 8px;
  }

  .brand-wordmark {
    height: 24px;
    transform: scale(1.9, 1.5);
    transform-origin: left center;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }

  .site-nav a {
    font-size: 0.9rem;
    padding-bottom: 2px;
  }

  .cta {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .hero-layer {
    padding: 9vh 10vw 30vh;
  }

  .sword-image {
    width: 200px;
    left: 100%;
  }

  section {
    margin: 0 5vw 5vw;
    padding: 6vh 6vw;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .offer-card {
    padding: 2rem 1.5rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .clients-carousel {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    gap: 1rem;
  }

  .theme-toggle {
    order: 2;
  }
}

@media (max-width: 700px) {
  .footer-brand .brand-logo {
    height: 20px;
    margin-right: 8px;
  }

  .footer-brand .brand-wordmark {
    height: 22px;
    transform: scale(1.9, 1.5);
    transform-origin: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-animating .hero-reveal,
  .hero.is-animating .slash,
  .hero.is-animating .sword-image {
    animation: none;
  }

  .hero-reveal {
    clip-path: none;
  }
}

/* ======================================
   Portfolio Modal System
   ====================================== */

/* Modal Overlay - Hidden by default */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active modal state */
.portfolio-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Modal Backdrop */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 20, 16, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1;
}

[data-theme="dark"] .modal-backdrop {
  background: rgba(10, 8, 6, 0.85);
}

/* Level 3 backdrop (darker to show hierarchy) */
.modal-backdrop[data-modal-level="3"] {
  background: rgba(26, 20, 16, 0.85);
}

[data-theme="dark"] .modal-backdrop[data-modal-level="3"] {
  background: rgba(10, 8, 6, 0.92);
}

/* Modal Container */
.modal-container {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border-radius: 32px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-modal.active .modal-container {
  transform: scale(1);
}

[data-theme="dark"] .modal-container {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* Grid Modal - wider */
.modal-grid-container {
  max-width: 1200px;
  width: 90vw;
}

/* Detail Modal - narrower */
.modal-detail-container {
  max-width: 900px;
  width: 85vw;
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem 1.5rem;
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  color: var(--ink);
  margin: 0;
}

/* Close Button */
.modal-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms ease;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1d120c;
  transform: scale(1.1);
}

.modal-close-btn:active {
  transform: scale(0.95);
}

.modal-close-btn svg {
  width: 24px;
  height: 24px;
}

/* Modal Body - Scrollable */
.modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-scrollable {
  padding: 2rem 3rem 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-section-light);
}

.modal-scrollable::-webkit-scrollbar {
  width: 8px;
}

.modal-scrollable::-webkit-scrollbar-track {
  background: var(--bg-section-light);
  border-radius: 4px;
}

.modal-scrollable::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.modal-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--accent-deep);
}

/* ======================================
   Level 2: Portfolio Grid
   ====================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

/* Grid Card */
.portfolio-grid-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-card);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.portfolio-grid-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(245, 166, 35, 0.2);
  border-color: var(--accent);
}

.portfolio-grid-card:active {
  transform: translateY(-4px);
}

/* Grid Card Image (same gradient system as carousel) */
.portfolio-grid-card-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Gradient definitions - reuse from carousel */
.portfolio-grid-card-image[data-gradient="1"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-grid-card-image[data-gradient="2"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.portfolio-grid-card-image[data-gradient="3"] {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.portfolio-grid-card-image[data-gradient="4"] {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.portfolio-grid-card-image[data-gradient="5"] {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.portfolio-grid-card-image[data-gradient="6"] {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.portfolio-grid-card-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 400ms ease;
  color: rgba(255, 255, 255, 0.9);
}

.portfolio-grid-card:hover .portfolio-grid-card-logo {
  transform: scale(1.1);
}

/* Grid Card Content */
.portfolio-grid-card-content {
  padding: 1.5rem;
  background: var(--bg-card);
}

.portfolio-grid-card-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 0.75rem 0;
  transition: color 300ms ease;
}

.portfolio-grid-card:hover .portfolio-grid-card-content h3 {
  color: var(--accent);
}

.portfolio-grid-card-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.8;
  margin: 0;
}

/* ======================================
   Level 3: Project Detail
   ====================================== */

.project-detail {
  display: grid;
  gap: 2.5rem;
}

/* Project Hero */
.project-detail-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--bg-section-light);
  border-radius: 24px;
}

.project-detail-logo-container {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Reuse gradient backgrounds */
.project-detail-logo-container[data-gradient="1"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-detail-logo-container[data-gradient="2"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-detail-logo-container[data-gradient="3"] {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-detail-logo-container[data-gradient="4"] {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-detail-logo-container[data-gradient="5"] {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-detail-logo-container[data-gradient="6"] {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.project-detail-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  color: rgba(255, 255, 255, 0.9);
}

.project-detail-intro h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--ink);
  margin: 0 0 1rem 0;
}

.project-detail-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  margin: 0;
}

/* Project Section */
.project-detail-section {
  display: grid;
  gap: 1rem;
}

.project-detail-section h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-card);
}

.project-detail-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.85;
  margin: 0;
}

/* Technologies List */
.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-section-light);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: all 300ms ease;
}

.tech-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1d120c;
}

/* Results List */
.project-results {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: grid;
  gap: 0.75rem;
}

.project-results li {
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--ink);
  opacity: 0.85;
}

.project-results li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ======================================
   Modal Responsive Design
   ====================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .modal-header {
    padding: 1.5rem 2rem 1rem;
  }

  .modal-scrollable {
    padding: 1.5rem 2rem 2rem;
  }

  .project-detail-hero {
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
  }

  .project-detail-logo-container {
    width: 150px;
    height: 150px;
  }

  .project-detail-logo {
    width: 100px;
    height: 100px;
  }
}

/* Mobile (below 768px) */
@media (max-width: 768px) {
  /* Full screen modals on mobile */
  .modal-container {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .modal-grid-container,
  .modal-detail-container {
    max-width: 100vw;
    width: 100vw;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .modal-header {
    padding: 1.25rem 1.5rem 1rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-scrollable {
    padding: 1.25rem 1.5rem 2rem;
  }

  .portfolio-grid-card-image {
    height: 160px;
  }

  .portfolio-grid-card-logo {
    width: 80px;
    height: 80px;
  }

  .project-detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .project-detail-logo-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .project-detail-logo {
    width: 100px;
    height: 100px;
  }
}

/* Coming Soon Cards - Dimmed styling */
.portfolio-grid-card[data-project-id*="comingsoon"] {
  opacity: 0.6;
  cursor: default;
}

.portfolio-grid-card[data-project-id*="comingsoon"]:hover {
  transform: none;
  border-color: var(--border-card);
}

.portfolio-grid-card[data-project-id*="comingsoon"] .portfolio-grid-card-image {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

/* Project Links and Visit Button */
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-link-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 300ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #1d120c;
}

.project-link-btn:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

.project-link-btn svg {
  transition: transform 300ms ease;
}

.project-link-btn:hover svg {
  transform: translateX(2px);
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}
