/* ============================================================================
   DESIGN SYSTEM VARIABLES
   ============================================================================ */
:root {
  --bg: #FFFFFF;
  --bg-secondary: #F5F2EE;
  --text: #111111;
  --text-muted: #777777;
  --text-subtle: #AAAAAA;
  --accent: #EA3E49;
  --accent-light: rgba(234, 62, 73, 0.08);
  --border: #E5E0DA;
  --border-strong: #C0BAB2;
  --card-bg: #FFFFFF;
  --nav-h: 64px;
  --max-w-home: 1520px;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
  font-weight: 400;
}

strong, b {
  font-weight: 600;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 24px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
nav {
  height: var(--nav-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.nav-logo .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

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

.nav-links a.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.nav-email-btn,
.nav-links .nav-email-btn {
  background: var(--text);
  color: #FFFFFF !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
  border-bottom: none !important;
}

.nav-email-btn:hover,
.nav-links .nav-email-btn:hover {
  opacity: 1;
  background: var(--text-muted);
  border-bottom: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 0;
  padding: 16px 40px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 40px;
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ============================================================================
   CONTAINER & LAYOUT
   ============================================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* ============================================================================
   HOME PAGE - HERO
   ============================================================================ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  display: inline-block;
}

.hero h1 {
  font-size: 88px;
  line-height: 1.0;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  display: block;
  font-size: 64px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-left: 0;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 18px;
  line-height: 1.65;
  max-width: 560px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

/* ============================================================================
   HOME PAGE - WHAT I DO
   ============================================================================ */
.what-i-do {
  padding: 48px clamp(40px, 8vw, 200px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.what-i-do h2 {
  display: none;
}

.service-cards {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  max-width: var(--max-w-home);
}

.service-card {
  padding: 0 48px 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex: 1;
  min-width: 180px;
}

.service-card-number {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.service-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================================================
   HOME PAGE - SELECTED WORK
   ============================================================================ */
.selected-work {
  padding: 80px clamp(40px, 8vw, 200px);
}

.selected-work h2 {
  margin-bottom: 64px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: left;
}

.work-section {
  max-width: var(--max-w-home);
  margin: 0 auto;
}

.project-card {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 72px;
  align-items: center;
}

.project-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-content h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.tag.featured {
  color: var(--accent);
}

.project-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.project-cta:hover {
  text-decoration: underline;
}

/* Thumbnail link wrapper */
a.project-thumbnail-link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  text-decoration: none;
}

a.project-thumbnail-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.20);
}

.project-thumbnail {
  width: 100%;
  height: 360px;
  background: #0D1B2A;
  overflow: hidden;
}

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

/* hover handled on a.project-thumbnail-link */

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 16px;
}

/* ============================================================================
   PASSWORD MODAL
   ============================================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--card-bg);
  padding: 48px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-card h3 {
  margin-bottom: 12px;
}

.modal-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-input.error {
  border-color: #D32F2F;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.modal-error {
  color: #D32F2F;
  font-size: 12px;
  margin-bottom: 16px;
  display: none;
}

.modal-error.show {
  display: block;
}

.modal-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.modal-btn:hover {
  opacity: 0.85;
}

/* ============================================================================
   PASSWORD GATE (for protected pages)
   ============================================================================ */
#pw-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#pw-gate.hidden {
  display: none;
}

.pw-gate-card {
  background: var(--card-bg);
  padding: 48px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pw-gate-card h2 {
  margin-bottom: 12px;
}

.pw-gate-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ============================================================================
   ABOUT PAGE - SIDEBAR LAYOUT
   ============================================================================ */
.about-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.5px;
}

.about-info-value {
  font-size: 14px;
  color: var(--text);
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.about-links a {
  font-size: 14px;
  color: var(--accent);
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 48px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ============================================================================
   PERSONA CARD
   ============================================================================ */
.persona-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.persona-header {
  background: transparent;
  padding: 0 0 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--text);
  margin-bottom: 32px;
}

.persona-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-transform: none;
}

.persona-badge {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.persona-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--border);
}

.persona-section:nth-child(2n) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--border);
}

.persona-section:nth-last-child(-n+2) {
  border-bottom: none;
}

.persona-section h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.8px;
}

.persona-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.persona-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  padding-left: 0;
  position: relative;
}

.persona-list li:before {
  display: none;
}

/* ============================================================================
   RESUME PAGE
   ============================================================================ */
.resume-container {
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.resume-header {
  margin-bottom: 48px;
}

.resume-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.resume-title {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.resume-contact {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

.resume-contact a {
  color: var(--accent);
}

.resume-download {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.resume-download:hover {
  opacity: 0.85;
}

.resume-summary {
  background: var(--bg);
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 48px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.resume-section {
  margin-bottom: 48px;
}

.resume-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.experience-item {
  margin-bottom: 32px;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.experience-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.experience-company {
  font-size: 14px;
  color: var(--text-muted);
}

.experience-dates {
  font-size: 13px;
  color: var(--text-subtle);
}

.experience-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.experience-project {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--accent-light);
}

.experience-project-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.experience-bullets {
  list-style: none;
  margin-bottom: 16px;
}

.experience-bullets li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.experience-bullets li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.skills-group {
  margin-bottom: 24px;
}

.skills-group-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================================
   CASE STUDY PAGES - SHARED LAYOUT
   ============================================================================ */
.cs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent);
  padding: 40px 40px 0 40px;
  margin-bottom: 24px;
}

.cs-back-btn:hover {
  opacity: 0.8;
}

.cs-hero {
  position: relative;
  height: 560px;
  background: #0D1B2A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  margin-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

/* Coral radial glow from bottom */
.cs-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(234, 62, 73, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ── Option A: typographic centered hero ── */
.cs-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.cs-hero-title {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  color: white;
  letter-spacing: -0.04em;
  line-height: 0.95;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.cs-hero-tagline {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  line-height: 1.6;
  max-width: 680px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.cs-hero-meta-row {
  display: flex;
  gap: 56px;
  margin-top: 48px;
  position: relative;
  z-index: 2;
  justify-content: center;
}

.cs-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.cs-hero-meta-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
}

.cs-hero-meta-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ── Option C: split hero (light bg, title left + visual right) ── */
.cs-hero-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  text-align: left;
  padding: 60px 80px;
}

.cs-hero-split-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.cs-hero-split .cs-hero-title {
  font-size: clamp(40px, 5vw, 72px);
  text-align: left;
  color: var(--text);
  margin-top: 16px;
  max-width: 100%;
}

.cs-hero-split .cs-hero-eyebrow {
  color: var(--accent);
}

.cs-hero-split-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-hero-check-card {
  background: white;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.cs-hero-check-card.incomplete {
  opacity: 0.55;
}

.cs-hero-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  border: 2px solid #D0C8C0;
}

.cs-hero-check-circle.done {
  background: var(--accent);
  border-color: var(--accent);
}

.cs-hero-check-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Keep old .cs-hero-content for any remaining pages */

.cs-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
}

.cs-hero h1 {
  font-size: 42px;
  color: white;
  margin-bottom: 12px;
}

.cs-hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 120px;
  height: 100px;
}

.cs-hero-card-1 {
  top: 40px;
  right: 80px;
  transform: rotate(-8deg);
}

.cs-hero-card-2 {
  top: 140px;
  right: 40px;
  transform: rotate(4deg);
}

.cs-hero-card-3 {
  top: 80px;
  right: 240px;
  transform: rotate(-3deg);
}

.cs-hero-card::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.cs-hero-card::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  box-shadow:
    0 8px 0 rgba(255, 255, 255, 0.2),
    0 16px 0 rgba(255, 255, 255, 0.15),
    0 24px 0 rgba(255, 255, 255, 0.1);
}

.cs-header {
  max-width: 1220px;
  margin: 0 auto 60px;
  padding: 0 40px;
}

.cs-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cs-tags .tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.cs-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cs-tagline {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.5px;
}

.cs-meta-value {
  font-size: 14px;
  color: var(--text);
}

/* ============================================================================
   CASE STUDY CONTENT SECTIONS
   ============================================================================ */
.cs-content {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 40px 80px 40px;
}

.cs-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  margin-bottom: 0;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.cs-label {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: none;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.cs-section-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-lead {
  font-size: 26px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.cs-section-content > p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  max-width: 660px;
}

.cs-section-content > ul,
.cs-section-content > .experience-bullets {
  max-width: 660px;
}

.cs-section-content > h3 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cs-callout {
  color: var(--text);
  margin: 32px 0;
  font-size: 18px;
  line-height: 1.75;
}

.cs-callout strong {
  font-weight: 600;
}


.cs-image-placeholder {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  margin: 32px 0;
}

.cs-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.cs-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.cs-finding-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-finding-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.cs-finding-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.cs-chip {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-chip:hover {
  opacity: 1;
}

.cs-chip h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.cs-chip p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.cs-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
  padding: 24px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cs-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.cs-stat-number {
  font-size: clamp(36px, 3vw, 52px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.cs-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 6px;
}

/* ============================================================================
   CASE STUDY BOTTOM NAVIGATION
   ============================================================================ */
.cs-bottom-nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.cs-bottom-nav-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.cs-bottom-nav-back:hover {
  color: var(--text);
  opacity: 1;
}

.cs-bottom-nav-next {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-align: right;
  transition: opacity 0.2s ease;
}

.cs-bottom-nav-next span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

/* ============================================================================
   COLLAPSIBLE SECTION
   ============================================================================ */
.cs-collapsible {
  margin: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Full-width collapsible — breaks out of content column to span label column too */
.cs-collapsible-full {
  width: calc(100% + 260px + 64px);
  margin-left: calc(-260px - 64px);
  margin-top: 0;
  margin-bottom: 0;
}

.cs-collapsible-trigger {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.2s ease;
}

.cs-collapsible-trigger:hover {
  color: var(--accent);
}

.cs-collapsible-chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.cs-collapsible-chevron.open {
  transform: rotate(180deg);
}

.cs-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cs-collapsible-content.open {
  max-height: 8000px;
}

.cs-collapsible-body {
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================================================
   CASE STUDY IMAGES
   ============================================================================ */
.cs-img {
  width: 100%;
  border-radius: 0;
  border: none;
  display: block;
  margin: 32px 0;
}

/* Full-bleed image spanning both label + content columns */
.cs-img-full {
  width: calc(100% + 260px + 64px);
  margin-left: calc(-260px - 64px);
  border-radius: 0;
  border: none;
  display: block;
  margin-top: 32px;
  margin-bottom: 32px;
}

.cs-img-caption {
  font-size: 13px;
  color: var(--text-subtle);
  text-align: center;
  margin-top: -20px;
  margin-bottom: 32px;
}

/* Full-width annotated screen block */
.cs-annotated-screen {
  margin: 40px 0;
}

.cs-annotated-screen .cs-img {
  margin-top: 20px;
  margin-bottom: 0;
}

/* Annotation callout grid — 2 equal columns, white cards */
.cs-annotations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 4px;
}

.cs-annotation-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid rgba(0,0,0,0.1);
}

.cs-annotation-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.cs-annotation-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Design highlight — bold title + muted description, subtle left rule */
.cs-design-highlight {
  padding-left: 16px;
  border-left: 2px solid rgba(0,0,0,0.1);
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
}

.cs-design-highlight strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

/* Half-width image for small component screens */
.cs-img-half {
  max-width: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
   SCROLL REVEAL ANIMATION
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    padding: 16px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h1 em {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .what-i-do {
    padding: 60px 20px;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .selected-work {
    padding: 60px 20px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

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

  .resume-container {
    padding: 40px 20px;
  }

  .resume-contact {
    flex-direction: column;
    gap: 12px;
  }

  .cs-hero {
    height: 380px;
    padding: 40px 20px;
  }

  .cs-header {
    padding: 0 20px;
  }

  .cs-content {
    padding: 0 20px 60px 20px;
  }

  .cs-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }

  .cs-label {
    position: static;
    font-size: 22px;
  }

  .cs-section-content > p,
  .cs-section-content > ul,
  .cs-section-content > .experience-bullets {
    max-width: 100%;
  }

  .cs-2col-grid,
  .cs-3col-grid {
    grid-template-columns: 1fr;
  }

  .cs-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  footer {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .footer-links {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cs-title {
    font-size: 28px;
  }

  .cs-hero-card {
    display: none;
  }
}

/* ============================================================================
   AI EXPLORATIONS — LANDING SECTION (index.html)
   ============================================================================ */
.pg-landing-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.pg-landing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pg-landing-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pg-landing-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.pg-landing-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.pg-landing-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pg-landing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.18s, color 0.18s;
}

.pg-landing-chip:hover {
  border-color: var(--text);
}

.pg-landing-chip-arrow {
  font-size: 12px;
  color: var(--accent);
}

.pg-landing-viewall {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
}

.pg-landing-viewall:hover {
  color: var(--text);
}

/* ============================================================================
   AI PLAYGROUND — PAGE (playground.html)
   ============================================================================ */
.pg-header {
  padding: 100px 40px 64px;
  border-bottom: 1px solid var(--border);
}

.pg-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Anchor Nav */
.pg-anchor-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
}

.pg-anchor-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pg-anchor-inner::-webkit-scrollbar {
  display: none;
}

.pg-anchor-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 20px 14px 0;
  margin-right: 20px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.pg-anchor-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.pg-anchor-link.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.pg-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
}

.pg-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.pg-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 0;
}

.pg-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* Anchor scroll offset — accounts for sticky nav + anchor nav height */
.pg-project[id] {
  scroll-margin-top: 130px;
}

.pg-project {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0 40px;
}

.pg-project-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}

.pg-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-subtle);
}

.pg-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pg-tool-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 0;
  width: 72px;
  text-align: center;
  white-space: nowrap;
}

.pg-project-body {
  padding-bottom: 0;
}

.pg-project-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.pg-project-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pg-project-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
}

/* Live CTA — full-width bar flush under the screenshot */
.pg-live-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% + 168px);
  margin-left: -128px;
  background: #111111;
  color: #fff;
  text-decoration: none;
  padding: 22px 32px;
  border-radius: 12px;
  margin-top: 12px;
  margin-bottom: 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

.pg-live-cta:hover {
  background: #1a1a1a;
}

.pg-live-cta-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 1.8s ease-in-out infinite;
}

.pg-live-cta-arrow {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}

.pg-live-cta:hover .pg-live-cta-arrow {
  transform: translateX(4px);
}

@keyframes livePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.5); }
}

.pg-insight-block {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-top: 32px;
}

.pg-insight {
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.pg-insight:last-child {
  margin-bottom: 0;
}

.pg-image-placeholder {
  width: calc(100% + 168px);
  margin-left: -128px;
  height: 400px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  margin-top: 32px;
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 500;
}

.pg-image-placeholder img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.pg-image-placeholder img:hover {
  opacity: 0.92;
}

.pg-image-placeholder:has(img) {
  height: auto;
  background: none;
  border: none;
  display: block;
}

.pg-trilogy-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.pg-trilogy-label::before,
.pg-trilogy-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pg-trilogy-label span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: nowrap;
}

.pg-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}
