/* =========================================================
   LANE NGUYEN — DUAL-FACE PORTFOLIO STYLES
   Face 1 (Copywriter): Clean, Luxury Editorial, High Readability
   Face 2 (Game Designer): Creatively Colorful, Playful, Crisp
   ========================================================= */

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* Copywriter Tokens (Midnight Constellation Editorial) */
  --cw-bg: #09071A;
  --cw-surface: rgba(20, 16, 46, 0.78);
  --cw-ink: #F8F7FB;
  --cw-muted: #B8B3D1;
  --cw-gold: #E879F9;
  --cw-accent-blue: #6366F1;
  --cw-border: rgba(196, 181, 253, 0.16);

  /* Game Designer Tokens */
  --gd-bg: #110F22;
  --gd-surface: #1B1836;
  --gd-ink: #F8F7FF;
  --gd-muted: #B9B4D8;
  --gd-mint: #2EE59D;
  --gd-coral: #FF6B6B;
  --gd-amber: #FFD166;
  --gd-violet: #7C6BFF;
  --gd-border: rgba(255, 255, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #111114;
  color: #141417;
}

/* =========================================================
   STICKY HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body.mode-gateway .site-header {
  display: none;
}

body.mode-copywriter .site-header {
  background: rgba(9, 7, 26, 0.88);
  color: var(--cw-ink);
  border-bottom-color: var(--cw-border);
}

body.mode-game .site-header {
  background: rgba(17, 15, 34, 0.9);
  color: var(--gd-ink);
  border-bottom-color: var(--gd-border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.brand-sub {
  font-size: 11px;
  opacity: 0.65;
}

.persona-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.12);
}

.switch-btn {
  border: none;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s ease, color 0.2s ease;
}

.switch-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-copy { background: var(--cw-gold); }
.dot-game { background: var(--gd-mint); }

body.mode-copywriter .switch-btn[data-switch="copywriter"] {
  background: linear-gradient(135deg, #6366F1, #EC4899);
  color: #fff;
}

body.mode-game .switch-btn[data-switch="game"] {
  background: var(--gd-mint);
  color: #0D1B15;
}

.switch-gateway {
  opacity: 0.72;
}
.switch-gateway:hover {
  opacity: 1;
}

.header-cta {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

body.mode-copywriter .header-cta {
  background: linear-gradient(135deg, #6366F1, #EC4899);
  color: #fff;
}

body.mode-game .header-cta {
  background: var(--gd-coral);
  color: #110F22;
}

.header-cta:hover {
  transform: translateY(-1px);
}

/* =========================================================
   VIEW 0: DUAL-FACE GATEWAY
   ========================================================= */
.gateway {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gateway[hidden] {
  display: none;
}

.gateway-center-badge {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(14, 11, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 121, 249, 0.35);
  color: #F6F3EE;
  padding: 12px 22px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(720px, 92vw);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.gw-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gw-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E879F9;
  box-shadow: 0 0 18px rgba(232, 121, 249, 0.45);
  flex-shrink: 0;
}

.gw-badge-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gw-badge-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gw-bio {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #E2DFF0;
}

.gw-name {
  font-weight: 700;
}

.gw-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
}

.gw-prompt {
  color: #C8A97E;
  font-weight: 500;
}

.gateway-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 48px 64px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gateway-face:focus-visible {
  outline: 3px solid var(--gd-amber);
  outline-offset: -4px;
}

.face-copywriter {
  background: #F6F3EE;
  color: #141417;
  border-right: 1px solid #E4DDD3;
}

.face-game {
  background: radial-gradient(circle at 80% 20%, rgba(124, 107, 255, 0.35), transparent 50%),
              radial-gradient(circle at 20% 85%, rgba(46, 229, 157, 0.22), transparent 50%),
              var(--gd-bg);
  color: var(--gd-ink);
}

.face-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.face-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.face-copywriter .face-kicker {
  color: #A67C46;
}

.face-game .face-kicker {
  color: var(--gd-mint);
}

.face-title {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.06;
}

.face-copywriter .face-title {
  font-family: var(--font-serif);
  font-weight: 600;
}

.face-copywriter .face-title em {
  font-style: italic;
  color: #A67C46;
}

.face-game .face-title {
  font-family: var(--font-display);
  font-weight: 700;
}

.face-game .face-title span {
  background: linear-gradient(90deg, var(--gd-mint), var(--gd-amber), var(--gd-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.face-desc {
  margin: 0 0 24px;
  font-size: 16px;
  opacity: 0.86;
}

.face-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.face-highlights li {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.face-copywriter .face-highlights li {
  background: #ECE6DC;
  color: #141417;
}

.face-game .face-highlights li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gd-amber);
}

.face-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.face-copywriter .face-cta {
  background: #141417;
  color: #fff;
}

.face-game .face-cta {
  background: linear-gradient(135deg, var(--gd-mint), #1CC984);
  color: #0D1B15;
}

.gateway-face:hover .face-cta {
  transform: translateX(4px);
}

/* Gateway Explore Transition Animations */
.gateway-face {
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}

.gateway.gateway-leaving-copy .face-copywriter {
  transform: scale(1.04);
  z-index: 5;
}

.gateway.gateway-leaving-copy .face-game,
.gateway.gateway-leaving-copy .gateway-center-badge {
  opacity: 0;
  transform: translateX(40px);
}

.gateway.gateway-leaving-game .face-game {
  transform: scale(1.04);
  z-index: 5;
}

.gateway.gateway-leaving-game .face-copywriter,
.gateway.gateway-leaving-game .gateway-center-badge {
  opacity: 0;
  transform: translateX(-40px);
}

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

.profile-view:not([hidden]) {
  animation: viewEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Chibi Office Micro-Game: Kill the Cliché */
.cliche-game {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: min(650px, 92vw);
  background: rgba(18, 16, 36, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 194, 128, 0.4);
  border-radius: 18px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #F8F7FB;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.cliche-chibi {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@keyframes chibiSlam {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.16) rotate(-8deg); }
  70% { transform: scale(0.94) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.cliche-chibi.is-slamming {
  animation: chibiSlam 0.35s ease;
}

.cliche-body {
  flex: 1;
  min-width: 0;
}

.cliche-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #E6C280;
  margin-bottom: 3px;
}

.cliche-meta strong {
  color: #2EE59D;
}

.cliche-line {
  margin: 0;
  font-size: 13.5px;
  color: #D8D3EE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cliche-line.is-rewritten {
  color: #2EE59D;
  font-weight: 700;
}

.cliche-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cliche-btn {
  background: #FF5A5F;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.cliche-btn:hover {
  transform: scale(1.04);
}

.cliche-btn.is-next {
  background: #2EE59D;
  color: #0D1B15;
}

@keyframes stampIn {
  0% { transform: scale(1.8) rotate(-18deg); opacity: 0; }
  100% { transform: scale(1) rotate(-10deg); opacity: 1; }
}

.cliche-stamp-badge {
  border: 2px solid #FF5A5F;
  color: #FF5A5F;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 4px;
  animation: stampIn 0.22s ease forwards;
}

.cliche-play-btn {
  background: rgba(124, 107, 255, 0.22);
  color: #F8F7FB;
  border: 1px solid rgba(196, 181, 253, 0.45);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.cliche-play-btn:hover {
  transform: scale(1.04);
  background: rgba(124, 107, 255, 0.4);
}

/* Brief Breaker 2D Canvas Modal — Cozy-Tactile Anime Journal UI */
#brief-breaker-modal {
  z-index: 170;
}

#brief-breaker-modal .case-modal-backdrop {
  background: rgba(14, 14, 18, 0.72);
}

#brief-breaker-modal .bb-panel {
  position: relative;
  max-width: 780px;
  padding: 32px 34px;
  background: #FFFBF2;
  color: #1E1B2E;
  border: 3px solid #E9DCCB;
  border-radius: 26px;
  box-shadow: 0 28px 64px rgba(17, 15, 34, 0.45), 10px 10px 0 #EFE2D1;
  outline: 2px dashed rgba(178, 153, 128, 0.45);
  outline-offset: -12px;
  overflow: visible;
}

.bb-panel::before {
  content: '📎';
  position: absolute;
  top: -18px;
  left: 26px;
  font-size: 32px;
  transform: rotate(-18deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.bb-panel .modal-close {
  background: #F4EDE2;
  color: #1E1B2E;
  border-color: #DFD2C0;
}

.bb-stars {
  display: inline-block;
  color: #F59E0B;
  font-size: 14px;
  letter-spacing: 2px;
  margin-right: 6px;
}

.bb-tag {
  color: #7C6BFF;
}

.bb-title {
  margin: 4px 0 0;
  font-size: 26px;
  color: #1E1B2E;
}

.bb-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.bb-hud {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
}

.bb-hud span {
  background: #F3ECE1;
  border: 1px solid #E2D5C3;
  color: #4A4458;
  padding: 5px 14px;
  border-radius: 999px;
}

.bb-hud strong {
  color: #0D9488;
}

.bb-sub {
  margin: 10px 0 14px;
  font-size: 13px;
  color: #575366;
  text-align: center;
}

.bb-canvas-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #E6D8C5;
  background: #121024;
  box-shadow: 0 10px 26px rgba(30, 27, 46, 0.12);
}

#bb-canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
  touch-action: manipulation;
}

.bb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 251, 242, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
}

.bb-overlay[hidden] {
  display: none;
}

.bb-overlay h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0;
  color: #1E1B2E;
}

.bb-overlay p {
  margin: 0 0 10px;
  color: #4A4458;
  font-weight: 600;
}

.bb-end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bb-end-actions .gd-btn-mint {
  background: linear-gradient(180deg, #99F6E4 0%, #5EEAD4 100%);
  color: #0F2E2A;
  border: 2px solid #2DD4BF;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.25);
}

.bb-end-actions .cw-btn-primary {
  background: #1E1B2E;
  color: #FFFBF2;
  border-radius: 999px;
}

.bb-end-actions .gd-btn-coral {
  background: linear-gradient(180deg, #FECDD3 0%, #FDA4AF 100%);
  color: #3B1219;
  border: 2px solid #FB7185;
  border-radius: 999px;
}

/* =========================================================
   VIEW 1: SENIOR COPYWRITER (Midnight Constellation + Clean Editorial)
   ========================================================= */
.view-copywriter {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 18%, rgba(168, 85, 247, 0.22), transparent 45%),
              linear-gradient(160deg, #060417 0%, #0D0A26 55%, #120B2E 100%);
  color: var(--cw-ink);
  padding: 56px 24px 80px;
}

.cw-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cw-container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.cw-eyebrow, .cw-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E879F9;
}

.cw-hero {
  padding: 16px 0 56px;
  border-bottom: 1px solid var(--cw-border);
}

.cw-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: center;
}

.cw-hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.cw-hero-photo {
  width: 240px;
  height: 240px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid rgba(232, 121, 249, 0.45);
  box-shadow: 0 24px 56px rgba(236, 72, 153, 0.24), 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.cw-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.4vw, 3.05rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 14px 0 18px;
  max-width: 780px;
}

.cw-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #F8F7FB, #E879F9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cw-hero-lead {
  font-size: 17px;
  color: var(--cw-muted);
  max-width: 620px;
  margin: 0 0 28px;
}

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

.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cw-btn:hover {
  transform: translateY(-1px);
}

.cw-btn-primary {
  background: linear-gradient(90deg, #6366F1, #EC4899);
  color: #fff;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
}

.cw-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cw-ink);
  border-color: var(--cw-border);
}

.cw-btn-ghost {
  background: transparent;
  color: #E879F9;
}

.cw-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--cw-border);
}

.cw-section:last-child {
  border-bottom: none;
}

.cw-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 700;
  margin: 8px 0 8px;
}

.cw-sub {
  color: var(--cw-muted);
  margin: 0 0 28px;
}

.cw-case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 205px;
  gap: 14px;
}

.cw-case-card {
  position: relative;
  background: var(--cw-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cw-border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Interlocking 12x3 Bento Puzzle: 5x3 Tuborg Left + 7x3 Others Right */
.cw-case-card.puzzle-1 {
  grid-column: span 5;
  grid-row: span 3;
}
.cw-case-card.puzzle-2 {
  grid-column: span 4;
  grid-row: span 1;
}
.cw-case-card.puzzle-3 {
  grid-column: span 3;
  grid-row: span 1;
}
.cw-case-card.puzzle-4 {
  grid-column: span 3;
  grid-row: span 1;
}
.cw-case-card.puzzle-5 {
  grid-column: span 4;
  grid-row: span 1;
}
.cw-case-card.puzzle-6 {
  grid-column: span 7;
  grid-row: span 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
  background: rgba(17, 13, 40, 0.94);
}

.cw-logo-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.cw-logo-badge img {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.cw-case-card.puzzle-6 .cw-case-meta {
  justify-content: flex-start;
  gap: 12px;
}

.cw-case-card.puzzle-6 .cw-case-thumb {
  position: relative;
  inset: auto;
  height: 100%;
  overflow: hidden;
  background: #0D0A26;
}

.cw-case-card.puzzle-6 .cw-case-thumb::after {
  display: none;
}

.cw-case-card.puzzle-6 .cw-case-thumb img {
  object-fit: cover;
  object-position: center 18%;
}

.cw-case-card.puzzle-6 .cw-case-body {
  justify-content: center;
  padding: 18px 22px;
  min-width: 0;
}

.cw-case-card.puzzle-1 .cw-case-thumb::after {
  background: linear-gradient(180deg, rgba(9, 7, 26, 0) 58%, rgba(9, 7, 26, 0.9) 100%);
}

.cw-case-card.puzzle-1 .cw-case-thumb img {
  object-position: center top;
}

.cw-case-card.puzzle-2 .cw-case-meta span:last-child,
.cw-case-card.puzzle-3 .cw-case-meta span:last-child,
.cw-case-card.puzzle-4 .cw-case-meta span:last-child,
.cw-case-card.puzzle-5 .cw-case-meta span:last-child,
.cw-case-card.puzzle-6 .cw-case-meta span:last-child {
  display: none;
}

.cw-case-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #14102E;
}

.cw-case-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 7, 26, 0.04) 0%, rgba(9, 7, 26, 0.72) 48%, rgba(9, 7, 26, 0.96) 100%);
  pointer-events: none;
}

.cw-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cw-case-card:hover .cw-case-thumb img {
  transform: scale(1.05);
}

.cw-case-body {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.cw-case-card:hover {
  transform: translateY(-3px);
  border-color: #E879F9;
  box-shadow: 0 20px 44px rgba(236, 72, 153, 0.24);
}

.cw-case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E6C280;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.75);
}

.cw-case-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-case-card.puzzle-1 .cw-case-title {
  font-size: 24px;
}

.cw-case-summary {
  margin: 0;
  color: #D8D3EE;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-case-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.cw-case-read {
  color: #E6C280;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

@media (max-width: 960px) {
  .cw-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }
  .cw-case-card.puzzle-1 {
    grid-column: span 2;
    grid-row: span 1;
  }
  .cw-case-card.puzzle-2,
  .cw-case-card.puzzle-3,
  .cw-case-card.puzzle-4,
  .cw-case-card.puzzle-5 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .cw-case-card.puzzle-6 {
    grid-column: span 2;
    grid-row: span 1;
    grid-template-columns: 1fr;
  }
  .cw-case-card.puzzle-6 .cw-case-thumb {
    position: absolute;
    inset: 0;
  }
  .cw-case-card.puzzle-6 .cw-case-thumb::after {
    display: block;
  }
}

.cw-brands-intro {
  margin: 8px 0 20px;
  color: var(--cw-muted);
}

.cw-brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 14px;
}

.cw-brand-tile {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--cw-border);
  border-radius: 14px;
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 112px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cw-brand-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.2);
}

.cw-brand-tile img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  display: block;
}

.cw-brand-tile span {
  font-size: 11px;
  font-weight: 700;
  color: #141417;
  text-align: center;
}

.cw-brand-tile.is-text-logo {
  background: linear-gradient(135deg, #2B1055, #14102E);
  border-color: rgba(232, 121, 249, 0.45);
  justify-content: center;
}

.cw-brand-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #FFD166;
  text-align: center;
}

.cw-brand-tile.is-text-logo span {
  color: #B8B3D1;
}

.cw-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.cw-about-bio p {
  color: var(--cw-muted);
  font-size: 16px;
}

.cw-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.cw-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cw-gold);
  flex-shrink: 0;
}

.cw-cv-btn {
  margin-top: 10px;
}

.modal-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 22px;
  display: block;
}

.modal-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.modal-video-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-video-caption {
  font-size: 12px;
  font-weight: 600;
  color: #D8D3EE;
}

.modal-reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.modal-reel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.22);
  background: #1B163A;
  color: #F8F7FB;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.modal-reel-card:hover {
  transform: translateY(-2px);
  border-color: #E6C280;
}

.modal-reel-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1E3A2F, #0F172A);
}

.modal-reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2.2);
  transform-origin: 43% 52%;
  filter: brightness(0.82);
  display: block;
}

.modal-reel-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(230, 194, 128, 0.94);
  color: #14102E;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.modal-reel-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-reel-info strong {
  font-size: 13px;
  color: #FFFFFF;
}

.modal-reel-info span {
  font-size: 11px;
  color: #E6C280;
}

.modal-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  background: #09071A;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.modal-gallery img,
.modal-inline-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.modal-quote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 3px solid #E6C280;
  background: rgba(230, 194, 128, 0.08);
  border-radius: 0 10px 10px 0;
  color: #F8F7FB;
  font-style: italic;
}

.modal-beat {
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 181, 253, 0.14);
}

.modal-beat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E6C280;
  margin-bottom: 4px;
}

.modal-beat p {
  margin: 0;
}

.modal-links-group {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.modal-links-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E6C280;
}

.modal-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 181, 253, 0.24);
  color: #F8F7FB;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-link-pill:hover {
  border-color: #E6C280;
  background: rgba(230, 194, 128, 0.14);
}

.studio-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 8px 0;
}

.studio-file-btn {
  display: inline-block;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: #F8F7FB;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.studio-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
}

.cw-timeline-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
}

.cw-timeline-list li {
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.tl-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--cw-gold);
  min-width: 92px;
}

.cw-timeline-list strong {
  display: block;
  font-size: 15px;
}

.cw-timeline-list span {
  font-size: 13px;
  color: var(--cw-muted);
}

/* =========================================================
   VIEW 2: GAME DESIGNER (Creatively Colorful, Playful)
   ========================================================= */
.view-game {
  background: radial-gradient(circle at 12% 10%, rgba(124, 107, 255, 0.25), transparent 40%),
              radial-gradient(circle at 88% 28%, rgba(255, 107, 107, 0.18), transparent 38%),
              radial-gradient(circle at 50% 90%, rgba(46, 229, 157, 0.15), transparent 45%),
              var(--gd-bg);
  color: var(--gd-ink);
  padding: 64px 24px 80px;
}

.gd-container {
  max-width: 1100px;
  margin: 0 auto;
}

.gd-hero {
  padding: 20px 0 56px;
}

.gd-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.gd-pill {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
}

.pill-mint { background: rgba(46, 229, 157, 0.16); color: var(--gd-mint); border: 1px solid rgba(46, 229, 157, 0.35); }
.pill-amber { background: rgba(255, 209, 102, 0.16); color: var(--gd-amber); border: 1px solid rgba(255, 209, 102, 0.35); }
.pill-coral { background: rgba(255, 107, 107, 0.16); color: var(--gd-coral); border: 1px solid rgba(255, 107, 107, 0.35); }

.gd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 20px;
}

.gd-hero-title span {
  background: linear-gradient(90deg, var(--gd-mint), var(--gd-amber), var(--gd-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gd-hero-lead {
  font-size: 18px;
  color: var(--gd-muted);
  max-width: 680px;
  margin: 0 0 30px;
}

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

.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.gd-btn:hover {
  transform: translateY(-2px);
}

.gd-btn-mint {
  background: var(--gd-mint);
  color: #0D1B15;
}

.gd-btn-coral {
  background: var(--gd-coral);
  color: #190D12;
}

.gd-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gd-border);
  color: var(--gd-ink);
}

.gd-projects {
  display: grid;
  gap: 32px;
}

.gd-card {
  background: var(--gd-surface);
  border: 1px solid var(--gd-border);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

.gd-card-ivy {
  grid-template-columns: 1fr;
}

.gd-ivy-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
}

.gd-card-ivy .gd-card-media {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
}

.gd-ivy-intro {
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.gd-ivy-bottom {
  padding: 0 28px 28px;
  border-top: 1px solid var(--gd-border);
  padding-top: 20px;
}

@media (max-width: 900px) {
  .gd-ivy-top {
    grid-template-columns: 1fr;
  }
}

.gd-card-media {
  position: relative;
  min-height: 320px;
  min-width: 0;
  overflow: hidden;
  background: #0D0B1A;
}

.gd-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gd-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 15, 34, 0.88);
  color: var(--gd-mint);
  border: 1px solid rgba(46, 229, 157, 0.4);
}

.gd-card-art {
  background: linear-gradient(135deg, #FF6B6B 0%, #7C6BFF 55%, #FFD166 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 320px;
}

.wargency-poster {
  background: rgba(17, 15, 34, 0.88);
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.wp-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gd-amber);
}

.wp-logo {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.95;
  margin: 12px 0 18px;
  color: #fff;
}

.wp-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.wp-chips span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gd-mint);
}

.gd-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gd-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gd-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gd-mint);
  color: #0D1B15;
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.num-coral {
  background: var(--gd-coral);
  color: #190D12;
}

.gd-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0;
}

.gd-quote {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--gd-mint);
  background: rgba(46, 229, 157, 0.08);
  border-radius: 0 10px 10px 0;
  color: #E7FFF4;
  font-style: italic;
}

.quote-coral {
  border-left-color: var(--gd-coral);
  background: rgba(255, 107, 107, 0.1);
  color: #FFE9E9;
}

.gd-card-desc {
  margin: 0;
  color: var(--gd-muted);
  font-size: 15px;
}

.gd-loop-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  padding: 14px 16px;
}

.gd-loop-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gd-amber);
  margin-bottom: 10px;
}

.gd-loop-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.loop-step {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gd-ink);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.loop-step.is-active {
  background: var(--gd-mint);
  color: #0D1B15;
}

.loop-arrow {
  opacity: 0.5;
  font-size: 12px;
}

.gd-loop-detail {
  margin: 0;
  font-size: 13px;
  color: var(--gd-muted);
}

.gd-mechanics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gd-mech {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gd-border);
  border-radius: 12px;
  padding: 12px;
}

.gd-mech strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gd-amber);
}

.gd-mech span {
  font-size: 13px;
  color: var(--gd-ink);
}

.gd-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.gd-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gd-meta {
  font-size: 13px;
  color: var(--gd-muted);
}

.gd-bridge {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(124, 107, 255, 0.22), rgba(46, 229, 157, 0.14));
  border: 1px solid var(--gd-border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gd-bridge h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 12px 0 8px;
}

.gd-bridge p {
  margin: 0;
  color: var(--gd-muted);
  max-width: 620px;
}

/* =========================================================
   SHARED FOOTER
   ========================================================= */
.site-footer {
  padding: 64px 24px;
  border-top: 1px solid rgba(128, 128, 128, 0.18);
}

.site-footer[hidden] {
  display: none;
}

body.mode-copywriter .site-footer {
  background: #141417;
  color: #F6F3EE;
}

body.mode-game .site-footer {
  background: #0A0916;
  color: var(--gd-ink);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #C8A97E;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 8px 0 10px;
}

.footer-sub {
  margin: 0;
  color: rgba(246, 243, 238, 0.72);
  max-width: 480px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-email {
  font-size: 20px;
  font-weight: 700;
  color: #F6F3EE;
  text-decoration: none;
}

.contact-email:hover {
  color: #C8A97E;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #F6F3EE;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.contact-phone {
  color: #C8A97E;
  text-decoration: none;
  font-weight: 600;
}

.copyright {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: 0.55;
}

/* =========================================================
   CASE STUDY MODAL
   ========================================================= */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: blur(6px);
}

.case-modal-panel {
  position: relative;
  z-index: 2;
  background: #14102E;
  color: #F8F7FB;
  border: 1px solid rgba(196, 181, 253, 0.22);
  max-width: 920px;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cw-border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.modal-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E879F9;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  margin: 8px 0 16px;
}

.modal-metric-box {
  background: rgba(232, 121, 249, 0.1);
  border-left: 3px solid #E879F9;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-body p {
  color: var(--cw-muted);
  font-size: 16px;
}

.modal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--cw-border);
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #F8F7FB;
  border: 1px solid var(--cw-border);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   STUDIO MODE (Inline Text + Photo Crop/Zoom Editor)
   ========================================================= */
.studio-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  background: rgba(17, 15, 34, 0.92);
  color: #F8F7FB;
  border: 1px solid rgba(232, 121, 249, 0.45);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.studio-panel {
  position: fixed;
  right: 20px;
  bottom: 70px;
  z-index: 120;
  width: 310px;
  max-height: 80dvh;
  overflow-y: auto;
  background: rgba(14, 11, 32, 0.96);
  backdrop-filter: blur(14px);
  color: #F8F7FB;
  border: 1px solid rgba(232, 121, 249, 0.45);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}

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

.analytics-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}

.analytics-nav button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #F8F7FB;
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 10px;
}

.analytics-summary {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #B8B3D1;
}

.analytics-summary strong {
  color: #2EE59D;
}

.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 76px;
  padding-top: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.analytics-bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.analytics-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #2EE59D, #6366F1);
  transition: height 0.25s ease, opacity 0.15s ease;
}

.analytics-bar.is-today {
  background: linear-gradient(180deg, #E6C280, #EC4899);
}

.analytics-bar-wrap:hover .analytics-bar {
  opacity: 0.8;
}

.analytics-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8E89A8;
  margin-top: 2px;
}

.analytics-pages {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: #B8B3D1;
}

.analytics-pages strong {
  color: #E6C280;
}

.analytics-locations {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 6px;
}

.analytics-loc-list {
  display: grid;
  gap: 4px;
  font-size: 11px;
}

.analytics-loc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #E2DFF0;
}

.analytics-loc-row strong {
  color: #2EE59D;
}

.analytics-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.analytics-table th,
.analytics-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(196, 181, 253, 0.14);
}

.analytics-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E6C280;
}

#analytics-modal {
  z-index: 160;
}

.studio-panel[hidden] {
  display: none;
}

.studio-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.studio-head button {
  background: none;
  border: none;
  color: #F8F7FB;
  cursor: pointer;
  font-size: 15px;
}

.studio-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #B8B3D1;
}

.crop-controls {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.crop-controls[hidden] {
  display: none;
}

.crop-target-name {
  font-weight: 700;
  color: #E879F9;
  font-size: 12px;
}

.crop-controls label {
  display: grid;
  gap: 4px;
  font-size: 11px;
}

.studio-actions {
  display: flex;
  gap: 8px;
}

.studio-btn-sec, .studio-btn-pri {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.studio-btn-sec {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.studio-btn-pri {
  background: linear-gradient(90deg, #6366F1, #EC4899);
  color: #fff;
}

body.studio-active [data-edit-key] {
  outline: 1px dashed rgba(232, 121, 249, 0.65);
  outline-offset: 4px;
  border-radius: 4px;
}

body.studio-active [data-crop-key] {
  outline: 2px dashed #2EE59D;
  cursor: grab;
}

body.studio-active [data-crop-key].is-cropping {
  outline: 3px solid #2EE59D;
  box-shadow: 0 0 0 4px rgba(46, 229, 157, 0.25);
}

body.studio-active .cw-case-body {
  pointer-events: none;
}

body.studio-active .cw-case-title,
body.studio-active .cw-case-summary,
body.studio-active .cw-case-footer {
  pointer-events: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .gateway-face {
    padding: 132px 20px 40px;
  }
  .gateway-center-badge {
    top: 14px;
    padding: 10px 14px;
    gap: 12px;
  }
  .gw-avatar {
    width: 44px;
    height: 44px;
  }
  .gw-bio {
    font-size: 12px;
  }
  .face-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  }
  .face-desc {
    font-size: 14px;
  }
  .face-cta {
    padding: 11px 16px;
    font-size: 13px;
  }
  .cw-hero-grid,
  .cw-about-grid,
  .gd-card {
    grid-template-columns: 1fr;
  }
  .cw-hero-photo-wrap {
    order: -1;
    justify-content: flex-start;
  }
  .cw-hero-photo {
    width: 140px;
    height: 140px;
  }
  .cw-case-card.is-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .gd-bridge {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right {
    align-items: flex-start;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .gateway {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr 1fr;
    min-height: 100dvh;
  }
  .gateway-center-badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 10px 16px;
    gap: 12px;
    justify-content: center;
  }
  .gw-avatar {
    width: 38px;
    height: 38px;
  }
  .gw-bio {
    display: none;
  }
  .gateway-face {
    padding: 20px 20px 22px;
    align-items: center;
  }
  .face-copywriter {
    border-right: none;
    border-bottom: 1px solid #E4DDD3;
  }
  .face-kicker {
    font-size: 10px;
    margin-bottom: 6px;
  }
  .face-title {
    font-size: 1.55rem;
    margin-bottom: 8px;
  }
  .face-desc {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .face-highlights {
    margin-bottom: 14px;
    gap: 6px;
  }
  .face-highlights li {
    font-size: 11px;
    padding: 4px 10px;
  }
  .face-cta {
    padding: 10px 18px;
    font-size: 13px;
  }
  .cliche-game {
    display: none;
  }
}
