/* ═══════════════════════════════════════════════════════
   PORTFOLIO — Adnane Dahioui
   Minimaliste · Editorial · Dark/Light Mode
   ═══════════════════════════════════════════════════════ */

/* ─── 1. VARIABLES & THEMES ─── */
:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --accent: #B9FF8D;
  --accent-rgb: 185, 255, 141;
  --accent-dark: #2d5a1b;
}

[data-theme="light"] {
  --blob1: #9AE830;
  --blob2: #2BB898;
  --blob3: #B4F562;
  --bg: #F8F8F8;
  --bg-2: #F0F0F0;
  --bg-card: #FFFFFF;
  --bg-dark: #1E1E1E;
  --text: #1E1E1E;
  --text-2: #5C5C5C;
  --text-3: #9A9A9A;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --nav-bg: rgba(248, 248, 248, 0.85);
  --card-hover: rgba(0, 0, 0, 0.03);
  --hero-overlay: rgba(248, 248, 248, 0.0);
  --input-line: rgba(0, 0, 0, 0.2);
  --input-focus: #1E1E1E;
  --tag-bg: rgba(0, 0, 0, 0.06);
  --tag-text: #5C5C5C;
  --toggle-track: #E0E0E0;
  --toggle-thumb: #1E1E1E;
}

[data-theme="dark"] {
  --blob1: #7EDB1A;
  --blob2: #1EA882;
  --blob3: #96E840;
  --bg: #141414;
  --bg-2: #1E1E1E;
  --bg-card: #1E1E1E;
  --bg-dark: #0A0A0A;
  --text: #F0F0F0;
  --text-2: #9A9A9A;
  --text-3: #5C5C5C;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(20, 20, 20, 0.85);
  --card-hover: rgba(255, 255, 255, 0.03);
  --hero-overlay: rgba(20, 20, 20, 0.0);
  --input-line: rgba(255, 255, 255, 0.2);
  --input-focus: #F0F0F0;
  --tag-bg: rgba(255, 255, 255, 0.07);
  --tag-text: #9A9A9A;
  --toggle-track: #333333;
  --toggle-thumb: #F0F0F0;
}

/* ─── 2. RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #1E1E1E; }

/* ─── 3. NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9000;
  padding: 18px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

.nav.nav-glass {
  background-color: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  padding: 14px 52px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 32px;
  flex-shrink: 0;
}

.nav-logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

.logo-main   { fill: var(--text); }
.logo-accent { fill: #D9FC67; }

/* Footer logo variant (slightly smaller) */
.footer-logo-svg {
  height: 26px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .nav-status { color: var(--accent); }

.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.25s;
  letter-spacing: 0.01em;
}

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

.nav-links a.active { color: var(--text); }

.nav-ext-icon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nav-ext-icon svg { width: 11px; height: 11px; opacity: 0.5; }

/* ─── 4. DARK MODE TOGGLE ─── */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--toggle-track);
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  transition: transform 0.3s var(--ease), background 0.3s;
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(20px);
}

.theme-toggle-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  pointer-events: none;
}

.theme-toggle-icons svg { width: 11px; height: 11px; }

/* ─── 5. PAGE TRANSITION ─── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--text);   /* always dark for a clean wipe */
  z-index: 9999;
  transform: translateY(101%); /* starts BELOW screen — invisible on load */
  pointer-events: none;
  will-change: transform;
}

/* ─── 6. HERO — INDEX ─── */
.hero-index {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 52px 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  opacity: 0;
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--text-3);
}

.hero-eyebrow span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 600;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  opacity: 0;
  overflow: hidden;
}

.hero-title .line { overflow: hidden; display: block; }
.hero-title .word { display: inline-block; }

.hero-title em {
  font-style: italic;
  color: var(--text-2);
}

.hero-title .accent-word {
  position: relative;
  display: inline-block;
}

.hero-title .accent-word::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}

.hero-title .accent-word.visible::after { transform: scaleX(1); }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  opacity: 0;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 440px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.35s var(--ease);
  border: 1.5px solid var(--text);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1E1E1E;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1.5px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.35s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

/* ─── 7. HERO IMAGE GRID ─── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 12px;
  height: 380px;
  padding: 0 52px;
  max-width: 1300px;
  margin: 0 auto 80px;
  opacity: 0;
}

.hero-grid-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}

.hero-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-grid-item:hover img { transform: scale(1.04); }

.hero-grid-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-grid-stack .hero-grid-item { flex: 1; }

/* ─── 8. CERTIFICATIONS SLIDER ─── */
.certs-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.certs-label {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 32px;
  font-weight: 600;
}

.certs-track-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.certs-track {
  display: flex;
  gap: 16px;
  animation: scrollLeft 32s linear infinite;
  width: max-content;
}

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

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

.cert-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color 0.25s;
}

.cert-card:hover { border-color: var(--accent); }

.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cert-info {}

.cert-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  letter-spacing: -0.01em;
}

.cert-issuer {
  font-size: 0.7rem;
  color: var(--text-3);
  display: block;
  margin-top: 1px;
}

/* ─── 9. SECTION GLOBAL LAYOUT ─── */
.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 52px;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--text-3);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 52px;
}

.section-title sup {
  font-family: var(--sans);
  font-size: 0.4em;
  font-weight: 500;
  vertical-align: super;
}

/* ─── 10. ABOUT BAND ─── */
.about-band {
  padding: 80px 52px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 52px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.about-band-photo {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  flex-shrink: 0;
}

.about-band-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-band-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.about-band-text p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 560px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 3px;
  transition: all 0.25s;
}

.link-arrow:hover {
  border-color: var(--text);
  gap: 10px;
}

/* ─── 11. PROJECT CARDS ─── */
.work-section {
  padding: 80px 52px;
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.project-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease), border-color 0.3s;
  cursor: pointer;
}

.project-featured:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.project-featured:hover .pf-img img { transform: scale(1.03); }

.pf-content {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

[data-theme="dark"] .pf-badge { color: var(--accent); }

.pf-year {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.pf-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.tag {
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  transition: all 0.25s;
}

.tag:hover { background: var(--bg-2); }

.pf-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s;
}

.pf-cta:hover { gap: 10px; }

.pf-img {
  overflow: hidden;
  background: var(--bg-2);
}

.pf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s;
  cursor: pointer;
}

.project-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.project-card:hover .pc-img img { transform: scale(1.03); }

.pc-content { padding: 28px 32px 20px; }

.pc-year {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.pc-logo {
  height: 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.pc-logo span { font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; }

.pc-content h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.pc-img {
  overflow: hidden;
  aspect-ratio: 16/11;
  background: var(--bg-2);
}

.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

/* ─── 12. SKILLS ─── */
.skills-section {
  padding: 80px 52px;
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.skills-headline {
  max-width: 600px;
  margin-bottom: 52px;
}

.skills-headline h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.skills-headline p { font-size: 0.95rem; color: var(--text-2); }

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

.skills-group-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 14px;
}

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

.pill {
  padding: 8px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  background: transparent;
}

.pill:hover { background: var(--bg-2); border-color: var(--text-3); }

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
  background: transparent;
  transition: all 0.25s var(--ease);
}

.tool-pill:hover { background: var(--bg-2); color: var(--text); border-color: var(--border-strong); }

.tool-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

/* ─── 13. CTA BAND ─── */
.cta-band {
  margin: 40px 52px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 80px 52px;
  text-align: center;
}

.cta-band-inner { max-width: 560px; margin: 0 auto; }

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: #F0F0F0;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-band p {
  font-size: 0.92rem;
  color: rgba(240, 240, 240, 0.55);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-band-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #F0F0F0;
  color: #1E1E1E;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  border: 1.5px solid transparent;
}

.btn-white:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1.5px solid rgba(240, 240, 240, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.7);
  transition: all 0.3s var(--ease);
}

.btn-outline-white:hover {
  border-color: rgba(240, 240, 240, 0.5);
  color: #F0F0F0;
}

/* ─── 14. FOOTER ─── */
footer {
  padding: 52px;
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-copy { line-height: 1.6; }
.footer-copy strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 2px; font-size: 0.85rem; }

.footer-nav { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.footer-nav a { transition: color 0.25s; }
.footer-nav a:hover { color: var(--text); }

.footer-social { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-social a { display: inline-flex; align-items: center; gap: 5px; transition: color 0.25s; }
.footer-social a:hover { color: var(--text); }
.footer-social svg { width: 11px; height: 11px; opacity: 0.5; }

/* ─── 15. CASE STUDY — HERO ─── */
.cs-hero {
  background: var(--bg-dark);
  color: #F0F0F0;
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cs-hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cs-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 52px;
  position: relative;
  z-index: 2;
}

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(240, 240, 240, 0.4);
  margin-bottom: 48px;
  font-weight: 500;
}

.cs-breadcrumb a {
  color: var(--accent);
  transition: opacity 0.2s;
}

.cs-breadcrumb a:hover { opacity: 0.7; }

.cs-hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cs-logo-box {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-logo-box svg { width: 26px; height: 26px; }
.cs-logo-box span { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: #1E1E1E; }

.cs-hero-badge {
  padding: 4px 14px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cs-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 820px;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.cs-hero-desc {
  font-size: 1.12rem;
  color: rgba(240, 240, 240, 0.65);
  max-width: 660px;
  margin-bottom: 36px;
  line-height: 1.75;
}

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

.cs-hero-tags span {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.75);
}

/* ─── 16. CASE STUDY — MOCKUP AREA ─── */
.cs-hero-mockup {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════
   iPhone 14 Pro — dimensions réelles Figma
   Device frame : 431 × 890   (ratio 1 : 2.066)
   Écran logique : 393 × 852  (ratio 1 : 2.168)
   Corner radius device ≈ 55 pt
   Dynamic Island : pill flottant (≠ notch iPhone 13)
   ══════════════════════════════════════════════ */
.phone-frame {
  position: relative;
  background: #1C1C1E;
  /* Scale factor main-phone : 360 / 431 ≈ 0.835
     → border-radius : 55 × 0.835 ≈ 46px */
  border-radius: 46px;
  /* Bezel : (431 - 393) / 2 × 0.835 ≈ 16px h  |  (890 - 852) / 2 × 0.835 ≈ 16px v */
  padding: 16px 14px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.13),
    0 0 0 1.5px rgba(255,255,255,0.07),
    0 0 0 3.5px rgba(0,0,0,0.7),
    0 40px 110px rgba(0,0,0,0.65),
    0 12px 40px rgba(0,0,0,0.35);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}

.phone-frame:hover { transform: translateY(-12px); }

/* ── Dynamic Island — pill flottant (iPhone 14 Pro)
   Dimensions réelles : ~125 × 37 pt → ×0.835 ≈ 104 × 31 px
   Mais on adapte visuellement en % de la largeur frame ── */
.phone-frame::before {
  content: '';
  position: absolute;
  /* top = padding-top (16px) → positionné dans le bezel de l'écran */
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  /* ~125pt sur 393pt screen ≈ 32% de la largeur de l'écran */
  width: 30%;
  height: 26px;
  background: #1C1C1E;
  /* Pill complet — DIFFÉRENT du notch iPhone 13 */
  border-radius: 30px;
  z-index: 5;
}

/* Home indicator */
.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
}

.phone-frame .screen {
  /* Screen corner radius iPhone 14 Pro ≈ 44pt × 0.835 ≈ 37px */
  border-radius: 37px;
  overflow: hidden;
  background: #000;
  /* Aspect ratio exact de l'écran iPhone 14 Pro : 393 × 852 */
  aspect-ratio: 393 / 852;
}

.phone-frame .screen img { width: 100%; height: auto; display: block; }

.phone-frame.main-phone { width: 360px; }
.phone-frame.side-phone { width: 290px; opacity: 0.78; margin-top: 64px; }

.screen-placeholder {
  width: 100%;
  aspect-ratio: 393/852; /* iPhone 14 Pro exact */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}

.screen-light { background: linear-gradient(180deg, #f5f5f5 0%, #e8ffe5 50%, #f5f5f5 100%); }
.screen-dark { background: linear-gradient(180deg, #1a1a1a 0%, #222 100%); color: var(--accent); }

.cs-hero-fade {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 3;
}

/* UBA — desktop mockup */
.cs-hero-desktop-mockup {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 52px;
  position: relative;
  z-index: 2;
}

.desktop-frame {
  background: #1a1a1a;
  border-radius: 16px 16px 0 0;
  padding: 10px 10px 0;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
}

.desktop-frame .browser-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}

.browser-dots { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

.browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Support both old (dots as direct children) and new (.browser-dots wrapper) */
.browser-bar > .browser-dot:nth-child(1),
.browser-dots .browser-dot:nth-child(1) { background: #ff5f57; }
.browser-bar > .browser-dot:nth-child(2),
.browser-dots .browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-bar > .browser-dot:nth-child(3),
.browser-dots .browser-dot:nth-child(3) { background: #28ca41; }

.desktop-screen {
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: var(--bg-2);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ─── 17. CASE STUDY — META ─── */
.cs-meta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-bottom: 1px solid var(--border);
}

.cs-meta-item label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 8px;
}

.cs-meta-item p { font-size: 0.9rem; font-weight: 500; line-height: 1.5; }
.cs-meta-item a { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; }

[data-theme="dark"] .cs-meta-item a { color: var(--accent); }

/* ─── 18. CASE STUDY — CONTENT ─── */
.cs-content { max-width: 840px; margin: 0 auto; padding: 0 52px; }

.cs-section { padding: 84px 0; }
.cs-section + .cs-section { border-top: 1px solid var(--border); }

.cs-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cs-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text);
}

.cs-section p {
  font-size: 1.02rem;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.85;
}

.cs-section p strong { color: var(--text); font-weight: 600; }

/* ─── 19. CASE STUDY — SPECIAL COMPONENTS ─── */
.feature-box {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin: 32px 0;
  color: #F0F0F0;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.feature-box h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: #F0F0F0;
  position: relative;
}

.feature-box .accent { color: var(--accent); }

.feature-box p {
  color: rgba(240, 240, 240, 0.6);
  font-size: 0.92rem;
  margin: 0;
  position: relative;
  line-height: 1.75;
}

/* Sprint timeline */
.sprint-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.sprint-card {
  background: var(--bg-dark);
  color: #F0F0F0;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.sprint-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.sprint-day-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.sprint-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.sprint-card p {
  font-size: 0.72rem;
  color: rgba(240, 240, 240, 0.45);
  margin: 0;
  line-height: 1.5;
}

/* Methods grid */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.method-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: border-color 0.25s;
}

.method-chip:hover { border-color: var(--accent); }
.method-chip .icon { font-size: 1.2rem; margin-bottom: 6px; }
.method-chip h5 { font-size: 0.78rem; font-weight: 600; color: var(--text); }

/* Userflow */
.userflow-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 52px;
}

.userflow-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

[data-theme="dark"] .userflow-label { color: var(--accent); }

.userflow-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 24px 0 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.flow-step { flex-shrink: 0; text-align: center; }

/* ── Images Userflow (Sans mockup) ── */
.flow-step img {
  width: 100%;
  max-width: 220px; /* Taille de l'écran */
  height: auto;
  border-radius: 28px; /* Arrondi style iPhone */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); /* Ombre douce */
  border: 1px solid var(--border); /* Bordure subtile */
  margin-bottom: 16px;
  display: block;
}

/* On centre la flèche par rapport aux images (et pas au texte) */
.flow-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.2rem;
  padding-bottom: 40px; 
}

.flow-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.2rem;
  padding-bottom: 40px;
}

.flow-label { font-size: 0.7rem; font-weight: 600; color: var(--text-2); }

/* Figma links */
.figma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.figma-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
}

.figma-card:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
  transform: translateY(-2px);
}

.figma-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.figma-card p { font-size: 0.78rem; color: var(--text-3); margin: 0; }
.figma-card-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  transition: gap 0.2s;
}

[data-theme="dark"] .figma-card-arrow { color: var(--accent); }
.figma-card:hover .figma-card-arrow { letter-spacing: 0.03em; }

/* Results stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.stat-card {
  background: var(--bg-dark);
  color: #F0F0F0;
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label { font-size: 0.72rem; color: rgba(240, 240, 240, 0.45); line-height: 1.4; }

/* Learnings */
.insight-list { margin: 24px 0; }

.insight-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.insight-item:last-child { border-bottom: none; }

.insight-dot {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1E1E1E;
  margin-top: 2px;
  flex-shrink: 0;
}

.insight-item p { margin: 0; font-size: 0.92rem; line-height: 1.75; }

/* Next project */
.next-project-bar {
  background: var(--bg-2);
  padding: 60px 52px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.next-project-bar p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 14px;
}

.next-project-bar h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
}

.next-project-bar h3 a {
  color: var(--text);
  transition: color 0.2s;
}

.next-project-bar h3 a:hover { color: var(--accent-dark); }
[data-theme="dark"] .next-project-bar h3 a:hover { color: var(--accent); }

/* ─── 20. UBA — SPECIFIC ─── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.problem-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: border-color 0.25s;
}

.problem-card:hover { border-color: var(--border-strong); }

.problem-card .number {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.problem-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.problem-card p { font-size: 0.8rem; color: var(--text-2); margin: 0; line-height: 1.6; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.process-step {
  background: var(--bg-dark);
  color: #F0F0F0;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
}

.process-step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.process-step h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.process-step p { font-size: 0.72rem; color: rgba(240, 240, 240, 0.45); margin: 0; line-height: 1.5; }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.persona-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.persona-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--bg);
}

.persona-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.persona-card .role { font-size: 0.75rem; color: var(--text-3); margin-bottom: 12px; }
.persona-card p { font-size: 0.78rem; color: var(--text-2); line-height: 1.6; margin: 0; }

.figma-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.figma-card-large {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--text);
  transition: all 0.25s;
}

.figma-card-large:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
  transform: translateY(-2px);
}

.figma-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-dark);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1rem;
}

.figma-card-large h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.figma-card-large p { font-size: 0.78rem; color: var(--text-3); margin: 0; }

.stats-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.learning-check {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.learning-check:last-child { border-bottom: none; }

.learning-tick {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

[data-theme="dark"] .learning-tick { color: var(--accent); }
.learning-check p { margin: 0; font-size: 0.92rem; line-height: 1.75; }

/* BA Before/After */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.ba-side {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ba-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  background: var(--bg-2);
}

.ba-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  font-size: 0.82rem;
  color: var(--text-3);
  text-align: center;
  padding: 20px;
}

/* ─── 21. CONTACT PAGE ─── */
.contact-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 52px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-top: 52px;
}

.contact-info h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 360px;
}

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

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  color: var(--text);
}

.contact-link-item:hover {
  border-color: var(--text);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-icon svg { width: 18px; height: 18px; }

.contact-link-text { flex: 1; }
.contact-link-text strong { display: block; font-size: 0.85rem; font-weight: 600; }
.contact-link-text span { font-size: 0.75rem; color: var(--text-3); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 0; }

.form-field {
  position: relative;
  padding-bottom: 40px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--input-line);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color 0.3s;
  line-height: 1.6;
}

.form-field textarea { min-height: 100px; }

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-3);
  font-size: 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--input-focus);
}

.form-field-line {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease);
}

.form-field:focus-within .form-field-line { width: 100%; }

.form-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--text);
  color: var(--bg);
  border: 1.5px solid var(--text);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.02em;
}

.btn-send:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1E1E1E;
  transform: translateY(-2px);
}

.btn-send svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn-send:hover svg { transform: translateX(3px); }

/* ─── 22. SPLIT TEXT / LINE CLIPPING ─── */

/* Outer line container — clips the inner span as it slides up */
.split-line {
  overflow: hidden;
  display: block;
}

/* SplitText chars clip wrapper */
.char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Line-wrap used by scroll SplitText reveal */
.line-wrap {
  overflow: hidden;
}

/* cs-title-line used by SplitText on CS hero h1 */
.cs-title-line {
  overflow: hidden;
  display: block;
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-delay-1.visible { transition-delay: 0.1s; }
.reveal-delay-2.visible { transition-delay: 0.2s; }
.reveal-delay-3.visible { transition-delay: 0.3s; }
.reveal-delay-4.visible { transition-delay: 0.4s; }

/* ─── 23. RESPONSIVE ─── */
@media (max-width: 1100px) {
  .nav { padding: 16px 28px; }
  .nav.scrolled { padding: 12px 28px; }
  .hero-index { padding: 120px 28px 60px; }
  .hero-grid { padding: 0 28px; height: 300px; }
  .hero-grid-stack { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .section-container,
  .work-section,
  .skills-section,
  .about-band { padding-left: 28px; padding-right: 28px; }
  .cta-band { margin: 32px 28px; }
  .project-featured { grid-template-columns: 1fr; }
  .pf-img { aspect-ratio: 16/9; }
  footer { padding: 40px 28px; grid-template-columns: 1fr; gap: 24px; }
  .footer-social { align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-page { padding: 120px 28px 60px; }
  .cs-hero-inner { padding: 0 28px; }
  .cs-content { padding: 0 28px; }
  .cs-meta { padding: 48px 28px; }
  .userflow-wrapper { padding: 0 28px; }
  .next-project-bar { padding: 48px 28px; }
}

@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-status { display: none; }
  .nav-links { gap: 18px; font-size: 0.78rem; }
  .hero-index { padding: 110px 20px 48px; }
  .hero-grid { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about-band { grid-template-columns: 1fr; padding: 52px 20px; }
  .about-band-photo { width: 100%; height: 260px; }
  .work-section { padding: 52px 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-section { padding: 52px 20px; }
  .cta-band { margin: 24px 20px; padding: 52px 28px; }
  .sprint-grid { grid-template-columns: 1fr 1fr; }
  .methods-grid { grid-template-columns: 1fr 1fr; }
  .figma-grid { grid-template-columns: 1fr; }
  .figma-grid-3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-3 { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .persona-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .cs-hero-mockup { gap: 12px; padding: 0 20px; }
  /* iPhone 14 Pro — breakpoint tablet */
  .phone-frame.main-phone { width: 220px; border-radius: 38px; }
  .phone-frame.side-phone { width: 172px; border-radius: 32px; margin-top: 40px; }
  .phone-frame::before { height: 20px; border-radius: 20px; }
  .phone-frame::after { height: 4px; }
  .phone-frame .screen { border-radius: 28px; }
  .flow-phone { width: 148px; border-radius: 30px; }
  .flow-phone::before { height: 17px; border-radius: 15px; }
  .flow-screen { border-radius: 22px; }
  .cs-hero-inner, .cs-content, .cs-meta, .userflow-wrapper { padding-left: 20px; padding-right: 20px; }
  .next-project-bar { padding: 40px 20px; }
  footer { padding: 32px 20px; }
  .contact-page { padding: 100px 20px 48px; }
}

@media (max-width: 480px) {
  .nav-links a:not(:last-child) { display: none; }
  .hero-title { font-size: 2.2rem; }
  .sprint-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ═══════════════════════════════════════════════════════
   WELCOME SCREEN
   ═══════════════════════════════════════════════════════ */
#welcomeScreen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* clips the blobs to the screen */
}

.welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  max-width: 520px;
  width: 100%;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.welcome-logo-wrap {
  opacity: 0;
}

.welcome-logo-wrap svg {
  height: 40px;
  width: auto;
}

.welcome-section {
  width: 100%;
  text-align: center;
  opacity: 0;
}

.welcome-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 16px;
}

.welcome-options {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.welcome-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text);
  font-family: var(--sans);
  transition: border-color .25s, background .25s, opacity .25s;
  min-width: 120px;
  user-select: none;
}

.welcome-option:hover {
  border-color: var(--accent);
}

.welcome-option.selected {
  border-color: var(--accent);
  background: rgba(185, 255, 141, 0.08);
}

.welcome-option-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.welcome-option-label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.welcome-continue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: background .25s, color .25s;
}

.welcome-continue:hover {
  background: var(--accent);
  color: #1E1E1E;
}

@media (max-width: 600px) {
  .welcome-options { flex-direction: column; align-items: center; }
  .welcome-option { min-width: 200px; flex-direction: row; padding: 16px 24px; }
  .welcome-inner { gap: 32px; }
}

/* ═══════════════════════════════════════════════════════
   LANGUAGE TOGGLE (nav)
   ═══════════════════════════════════════════════════════ */
.lang-toggle {
  display: flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: transparent;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .25s, border-color .25s;
  text-transform: uppercase;
  flex-shrink: 0;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ═══════════════════════════════════════════════════════
   COMING SOON OVERLAY
   ═══════════════════════════════════════════════════════ */
.project-row.coming-soon {
  cursor: default;
  overflow: hidden;
}

.project-row.coming-soon:hover {
  padding-left: 0;
}

.project-row.coming-soon .pr-arrow {
  opacity: 0.25;
}

.project-row.coming-soon:hover .pr-arrow {
  background: transparent;
  border-color: var(--border-strong);
}

.project-row.coming-soon:hover .pr-arrow svg {
  transform: none;
  color: var(--text-3);
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 248, 248, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.22, 1, .36, 1);
  z-index: 2;
}

[data-theme="dark"] .coming-soon-overlay {
  background: rgba(20, 20, 20, 0.92);
}

.project-row.coming-soon:hover .coming-soon-overlay {
  opacity: 1;
}

.coming-soon-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-2);
  letter-spacing: -.01em;
  transform: translateY(4px);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1) .05s;
}

.project-row.coming-soon:hover .coming-soon-text {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   WORK PAGE
   ═══════════════════════════════════════════════════════ */
.work-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 140px 52px 80px;
}

.work-page-header {
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.work-page-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.work-page-eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--text-3);
}

.work-page-eyebrow span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-3);
  font-weight: 600;
}

.work-page-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.work-page-sub {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 480px;
}

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

.work-card {
  display: block;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color .3s, transform .3s cubic-bezier(.22, 1, .36, 1);
  margin: 1px;
}

.work-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.work-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  color: var(--text-3);
  overflow: hidden;
}

.work-card-body {
  padding: 24px;
}

.work-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.work-card-badge {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--tag-bg);
  color: var(--tag-text);
}

.work-card-badge.badge-cs {
  background: rgba(185, 255, 141, 0.15);
  color: var(--accent-dark);
}

[data-theme="dark"] .work-card-badge.badge-cs {
  color: var(--accent);
}

.work-card-badge.badge-soon {
  background: var(--tag-bg);
  color: var(--text-3);
}

.work-card-name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.work-card-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.work-card-tag {
  font-size: .68rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.work-card-year {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: 16px;
}

/* Coming soon card overlay */
.work-card.card-soon {
  cursor: default;
}

.work-card.card-soon:hover {
  transform: none;
}

.work-card-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 248, 248, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 2;
}

[data-theme="dark"] .work-card-soon-overlay {
  background: rgba(20, 20, 20, 0.88);
}

.work-card.card-soon:hover .work-card-soon-overlay {
  opacity: 1;
}

.work-card-soon-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .work-page { padding: 120px 24px 60px; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .work-page { padding: 100px 20px 48px; }
  .work-page-title { font-size: 2.2rem; }
}
