/* Citruz Playables — Bespoke Playable Ad Studio Portfolio */
:root {
  --bg: #080b08;
  --bg-elev: #101510;
  --bg-card: #131913;
  --bg-card-hover: #192219;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(132, 204, 0, 0.38);
  --text: #f4f7f2;
  --text-muted: #9aa797;
  --text-dim: #6f7c6d;
  --lime: #84cc00;
  --lime-bright: #9ee814;
  --solar: #f2d600;
  --accent-grad: linear-gradient(135deg, #84cc00 0%, #c8e600 55%, #f2d600 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.42);
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

.container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 11, 8, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.brand-mark-sm {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-citruz {
  font-size: 1.55rem;
  font-weight: 700;
  font-style: italic;
  color: var(--lime);
}

.brand-playables {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-wordmark-sm .brand-citruz { font-size: 1.25rem; }
.brand-wordmark-sm .brand-playables { font-size: 0.95rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.main-nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent-grad);
  color: #091005;
  box-shadow: 0 8px 26px rgba(132, 204, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(132, 204, 0, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  opacity: 0.18;
}

.hero-glow-left {
  top: -160px;
  left: -120px;
  background: #84cc00;
}

.hero-glow-right {
  top: -60px;
  right: -140px;
  background: #f2d600;
  opacity: 0.11;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(132, 204, 0, 0.1);
  border: 1px solid rgba(132, 204, 0, 0.28);
  color: var(--lime-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-bright);
  box-shadow: 0 0 10px var(--lime-bright);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Featured Device */
.hero-showcase {
  display: flex;
  justify-content: center;
}

.hero-device-card {
  width: 292px;
  background: #0d120d;
  border: 1px solid rgba(132, 204, 0, 0.34);
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.hero-device-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
}

.device-notch {
  width: 84px;
  height: 16px;
  border-radius: 999px;
  background: #060806;
  margin: 2px auto 10px;
}

.hero-device-screen {
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: #141c14;
  position: relative;
}

.hero-device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-device-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 6px 4px;
}

.device-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-bright);
}

.device-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

.btn-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 999px;
  border: none;
  background: var(--accent-grad);
  color: #081004;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Brand Strip */
.brand-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 20px 0;
}

.brand-strip-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 12px;
}

.brand-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime-bright);
  margin-bottom: 8px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
  font-size: 0.98rem;
}

/* Segmented Tabs */
.segmented-tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.is-active {
  background: var(--accent-grad);
  color: #081004;
}

/* Cards Grid */
.featured-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.playable-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.playable-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.playable-card.is-ar-card {
  border-color: rgba(132, 204, 0, 0.22);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0d120d;
  overflow: hidden;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
}

.playable-card:hover .card-thumb-img {
  transform: scale(1.03);
}

.playable-card.is-landscape-card .card-thumb-img {
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.72));
}

.card-thumb-backdrop {
  position: absolute;
  inset: -18px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.45) saturate(1.25);
  transform: scale(1.08);
  z-index: 1;
  pointer-events: none;
}

/* Fallback Poster when thumbnail hasn't been snapped yet */
.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, var(--poster-a, rgba(132, 204, 0, 0.35)), transparent 55%),
    radial-gradient(circle at 15% 85%, var(--poster-b, rgba(242, 214, 0, 0.22)), transparent 55%),
    linear-gradient(165deg, #131c13 0%, #0b0f0b 100%);
}

.poster-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.poster-year {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.poster-center {
  text-align: left;
  margin: auto 0;
  padding: 12px 0;
}

.poster-brand {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime-bright);
  font-weight: 700;
  margin-bottom: 8px;
}

.poster-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-mechanic {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.poster-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badges & Hover Play Overlay */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  z-index: 3;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.badge-ar {
  background: rgba(132, 204, 0, 0.92);
  color: #071003;
}

.badge-format {
  background: rgba(8, 11, 8, 0.76);
  color: #e8efe6;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge-year {
  background: rgba(8, 11, 8, 0.72);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-group-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-landscape {
  background: rgba(242, 214, 0, 0.18);
  color: var(--solar);
  border: 1px solid rgba(242, 214, 0, 0.38);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 8, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.playable-card:hover .play-overlay,
.playable-card:focus-visible .play-overlay {
  opacity: 1;
}

.play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #081004;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(132, 204, 0, 0.45);
}

.play-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 11, 8, 0.8);
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.card-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--lime-bright);
  font-weight: 600;
}

.card-region {
  color: var(--text-dim);
  font-weight: 500;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card-accent {
  border-color: rgba(132, 204, 0, 0.34);
  background: linear-gradient(180deg, rgba(132, 204, 0, 0.08) 0%, var(--bg-card) 55%);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(132, 204, 0, 0.14);
  color: var(--lime-bright);
  display: grid;
  place-items: center;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.service-bullets {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.87rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-bullets li::marker { color: var(--lime); }

/* Process */
.process-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.process-header { margin-bottom: 24px; }
.process-header h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.process-step {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lime-bright);
  letter-spacing: 0.08em;
}

.process-step h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 8px 0 6px;
}

.process-step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Search & Filter Panel */
.search-wrap {
  position: relative;
  width: min(390px, 100%);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease;
}

#search-input:focus { border-color: var(--lime); }

.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.filter-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  min-width: 102px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.pill.is-active {
  background: rgba(132, 204, 0, 0.16);
  border-color: var(--lime);
  color: var(--lime-bright);
  font-weight: 600;
}

.pill-count {
  opacity: 0.68;
  margin-left: 4px;
  font-size: 0.76rem;
}

.filter-row-meta {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
}

.filter-selects {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.select-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.select-group select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.84rem;
}

.btn-reset {
  background: transparent;
  border: none;
  color: var(--lime-bright);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}

.btn-reset:hover { text-decoration: underline; }

.results-counter {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* Contact */
.contact-card {
  background:
    radial-gradient(circle at 10% 10%, rgba(132, 204, 0, 0.16), transparent 50%),
    var(--bg-card);
  border: 1px solid rgba(132, 204, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.contact-copy h2 { margin-bottom: 14px; }
.contact-copy p {
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 54ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.meta-val {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: #060806;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-note, .footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Interactive Playable Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 6, 4, 0.86);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] { display: none; }

.modal-shell {
  width: min(980px, 100%);
  max-height: 92vh;
  background: #0e130e;
  border: 1px solid rgba(132, 204, 0, 0.28);
  border-radius: 26px;
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75);
}

.modal-sidebar {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  position: relative;
}

.modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime-bright);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 0;
}

.modal-brand {
  margin: -6px 0 4px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.modal-specs dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.modal-specs dd {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.modal-qr-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(132, 204, 0, 0.3);
}

.modal-qr-box {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.modal-qr-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.modal-qr-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-qr-heading {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--lime-bright);
}

.modal-qr-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.42;
  color: var(--text-muted);
}

.modal-qr-note strong {
  color: var(--text);
}

.modal-ar-note {
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(132, 204, 0, 0.1);
  border: 1px solid rgba(132, 204, 0, 0.28);
  color: #dff5b2;
}

.modal-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}

.modal-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.modal-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.72rem;
}

.modal-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 45%, rgba(132, 204, 0, 0.12), transparent 62%),
    #070a07;
}

.modal-close,
.modal-close-mobile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal-close-mobile { display: none; }

.phone-bezel {
  width: min(375px, 100%);
  height: min(695px, 84vh);
  background: #060806;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  transition: width 0.22s ease, height 0.22s ease;
}

.modal-shell.is-landscape {
  width: min(1180px, 100%);
}

.modal-shell.is-landscape .phone-bezel {
  width: min(720px, 100%);
  height: auto;
  aspect-ratio: 667 / 375;
  max-height: 78vh;
  flex-direction: row;
  padding: 10px 12px;
  border-radius: 30px;
}

.modal-shell.is-landscape .phone-speaker {
  width: 5px;
  height: 64px;
  margin: auto 10px auto 0;
}

.phone-speaker {
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 auto 10px;
  flex-shrink: 0;
}

.phone-viewport {
  position: relative;
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.phone-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.iframe-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0b0f0b;
  color: var(--text-muted);
  font-size: 0.85rem;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.iframe-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(132, 204, 0, 0.2);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 1080px) {
  .featured-grid,
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-showcase { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { grid-template-columns: 1fr; }
  .contact-meta { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 24px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid,
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .process-steps { grid-template-columns: 1fr; }
  .modal-shell {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
  .modal-stage { order: -1; padding: 12px; }
  .modal-close { display: none; }
  .modal-close-mobile {
    display: grid;
    position: absolute;
    top: 14px;
    right: 14px;
  }
  .phone-bezel { height: 72vh; }
  .modal-shell.is-landscape .phone-bezel {
    width: 100%;
    height: auto;
    aspect-ratio: 667 / 375;
    flex-direction: column;
  }
  .modal-shell.is-landscape .phone-speaker {
    width: 64px;
    height: 5px;
    margin: 0 auto 8px;
  }
}

@media (max-width: 460px) {
  .featured-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* Worked With Partners Section */
.partners-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 28px 0;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.partner-pill {
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid rgba(132, 204, 0, 0.24);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Brands Marquee Section */
.brands-marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 28px 0;
  overflow: hidden;
}

.marquee-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  animation: marquee-scroll 32s linear infinite;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
