/* =========================================================
   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);
}

/* =========================================================
   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(2.3rem, 4.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  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: 220px;
  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 Bento Puzzle Pieces (all different sizes fitting together) */
.cw-case-card.puzzle-1 {
  grid-column: span 5;
  grid-row: span 2;
}
.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-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.12) 15%, rgba(9, 7, 26, 0.88) 85%, 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;
}

.cw-case-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  margin: 0;
  color: #FFFFFF;
}

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

.cw-case-summary {
  margin: 0;
  color: #D8D3EE;
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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;
}

@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-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: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

.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-media {
  position: relative;
  min-height: 320px;
  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;
  gap: 12px;
  padding-top: 8px;
}

.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: 720px;
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 36px;
  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: 290px;
  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;
}

.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: crosshair;
}

/* =========================================================
   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: 540px) {
  .gateway {
    grid-template-columns: 1fr;
  }
  .gateway-center-badge {
    display: none;
  }
  .gateway-face {
    padding: 56px 22px;
  }
}
