/* =============================================
   RESET & VARIABLES
   ============================================= */

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

:root {
  --black: #111111;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-300: #cccccc;
  --gray-100: #f0efec;
  --off-white: #f7f6f3;
  --white: #ffffff;
  --accent: #c05a2b;
  --accent-bg: #f5ede8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1100px;
  --nav-h: 60px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   NAVIGATION
   ============================================= */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 4px;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover { background: var(--gray-100); color: var(--black); }
.nav-links a.active { color: var(--black); font-weight: 600; }

.nav-spacer { flex: 1; }

.lang-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.lang-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* =============================================
   SOCIAL LINKS
   ============================================= */

.social-links { display: flex; gap: 10px; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  transition: all var(--transition);
  flex-shrink: 0;
}

.social-link:hover { border-color: var(--black); color: var(--black); background: var(--gray-100); }
.social-link svg { width: 18px; height: 18px; }

/* =============================================
   BILINGUAL CONTENT TOGGLE
   ============================================= */

body.lang-en .pt { display: none; }
body.lang-pt .en { display: none; }

/* Card brand color overrides — escalável por cliente */
.cs-brand-santander {
  --accent:    #EC0000;
  --accent-bg: #FFF2F2;
}

.cs-brand-storetag {
  --accent:    #6366f1;
  --accent-bg: #EEF2FF;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  border-top: 1px solid var(--gray-100);
  padding: 28px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-links a {
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition);
}

.footer-links a:hover { background: var(--gray-100); color: var(--black); }

.footer-spacer { flex: 1; }

.footer-social { display: flex; gap: 8px; }
.footer-social .social-link { width: 34px; height: 34px; }
.footer-social .social-link svg { width: 16px; height: 16px; }

/* =============================================
   HOME — HERO
   ============================================= */

.hero {
  padding: 64px 0 56px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 820px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--gray-700);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* =============================================
   HOME — WORK SECTION
   ============================================= */

.work-section { padding: 16px 0 80px; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.case-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card-image img { transform: scale(1.04); }

/* Browser bar overlay on card image */
.card-browser-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #E4E3DF;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  z-index: 2;
}

/* Phone variant card image */
.case-card-image.is-phone {
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-card .phone-frame-outer {
  width: 100px;
  padding: 7px 6px 10px;
  border-radius: 26px;
}

.phone-card .phone-pill {
  width: 48px;
  height: 14px;
  top: 7px;
  border-radius: 0 0 10px 10px;
}

.phone-card .phone-screen { border-radius: 20px; }

.case-card-info {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
}

.case-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.case-type-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.case-card-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 12px;
}

.case-card-metric {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 7px 13px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
  align-self: flex-start;
}

.case-card-desc {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
  width: fit-content;
  transition: gap var(--transition);
}

.case-link:hover { gap: 9px; }

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-page { padding: 60px 0 80px; }

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-photo-wrap { order: -1; }

.about-photo {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.about-content h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.about-bio {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 40px;
}

.about-exp-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.about-exp-text {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.6;
}

.about-exp-text a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.about-exp-text a:hover { border-color: var(--accent); }

/* =============================================
   CASE STUDY — PASSWORD GATE
   ============================================= */

#gate {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gate-box {
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.gate-icon { font-size: 36px; margin-bottom: 20px; }

.gate-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.gate-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 28px;
}

.gate-input-wrap { display: flex; gap: 8px; margin-bottom: 10px; }

#gate-input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 9px;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
  min-width: 0;
}

#gate-input:focus { border-color: var(--black); }

.gate-btn {
  padding: 13px 20px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.gate-btn:hover { background: #333; }

#gate-error {
  display: none;
  font-size: 13px;
  color: #d0392b;
  margin-top: 6px;
}

/* =============================================
   CASE STUDY — HERO
   ============================================= */

.cs-hero {
  background: var(--off-white);
  padding: 56px 0 0;
}

.cs-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.cs-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cs-hero-title {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.cs-hero-tagline {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 24px;
  line-height: 1.6;
}

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

.cs-metric {
  background: var(--accent);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.cs-hero-image { padding-bottom: 0; }

.cs-hero-image .browser-frame {
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.cs-hero-image .browser-frame img {
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}

/* =============================================
   CASE STUDY — CONTENT
   ============================================= */

.cs-upper  { padding: 60px 0 48px; }
.cs-lower  { padding: 48px 0 80px; }

.cs-section { margin-bottom: 64px; }

.cs-section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 48px;
}

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

.cs-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.cs-block h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cs-block h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.cs-block p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 10px;
}

.cs-block ul,
.cs-block ol {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  padding-left: 18px;
}

.cs-block li { margin-bottom: 7px; }
.cs-block strong { color: var(--black); font-weight: 600; }

/* =============================================
   PROJECT FACTS BAR
   ============================================= */

.cs-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 56px;
}

@media (min-width: 600px) {
  .cs-facts { grid-template-columns: repeat(3, 1fr); }
}

.cs-fact {
  background: var(--white);
  padding: 20px 22px;
}

.cs-fact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 7px;
}

.cs-fact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.45;
}

/* =============================================
   DOMAIN PRIMER (lighter, secondary)
   ============================================= */

.cs-primer {
  background: var(--off-white);
  border-radius: 14px;
  padding: 28px 24px;
  margin-top: 48px;
  margin-bottom: 0;
}

.cs-primer-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.cs-primer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.cs-primer h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cs-primer p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 8px;
}

.cs-primer ul {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  padding-left: 18px;
}

.cs-primer li { margin-bottom: 4px; }

/* =============================================
   PROBLEM → SOLUTION (before / after)
   ============================================= */

.cs-ps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 56px;
}

.cs-ps-card {
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.cs-ps-card.is-problem {
  background: #f7f3f1;
  border: 1px solid #ecdcd4;
}

.cs-ps-card.is-solution {
  background: var(--accent-bg);
  border: 1px solid #e6d2c6;
}

.cs-ps-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs-ps-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.is-problem .cs-ps-eyebrow { color: #a8503a; }
.is-problem .cs-ps-eyebrow::before { background: #c06a4f; }
.is-solution .cs-ps-eyebrow { color: var(--accent); }
.is-solution .cs-ps-eyebrow::before { background: var(--accent); }

.cs-ps-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cs-ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.cs-ps-chip {
  background: var(--white);
  border: 1px solid #ecdcd4;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cs-ps-chip b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #a8503a;
  line-height: 1;
}

.cs-ps-chip span {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

.cs-ps-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-ps-card li {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
  margin-bottom: 12px;
}

.cs-ps-card li:last-child { margin-bottom: 0; }

.cs-ps-card li strong { color: var(--black); font-weight: 700; }

.is-problem li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 2px;
  background: #c06a4f;
  border-radius: 2px;
}

.is-solution li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 13px;
  height: 13px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cs-ps-arrow {
  display: none;
}

/* =============================================
   PROCESS INTRO LEAD
   ============================================= */

.cs-lead {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
  color: var(--gray-700);
  text-align: center;
  max-width: 620px;
  margin: -24px auto 48px;
}

.cs-lead strong { color: var(--black); font-weight: 600; }

/* =============================================
   LIVE STATUS INDICATOR
   ============================================= */

.cs-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 20px;
}

.cs-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* =============================================
   DESIGN CHALLENGE CALLOUT
   ============================================= */

.cs-callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin: 48px 0;
}

.cs-callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.cs-callout p {
  font-size: 16px;
  color: var(--black);
  line-height: 1.75;
  font-weight: 500;
}

/* =============================================
   PHASE HEADERS (new full-width opener)
   ============================================= */

.cs-phase-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}

.cs-phase-number {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--gray-200);
  flex-shrink: 0;
  user-select: none;
  margin-top: -4px;
  min-width: 64px;
}

.cs-phase-header-info { flex: 1; }

.cs-phase-title {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cs-phase-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 3px 9px;
  border-radius: 20px;
}

.cs-phase-goal-text {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* =============================================
   STATS GRID (Key Results)
   ============================================= */

.cs-results-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.cs-stat {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 20px 20px;
  border: 1px solid var(--gray-100);
}

.cs-stat-number {
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}

.cs-stat-unit {
  font-size: 0.55em;
  letter-spacing: 0;
}

.cs-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 3px;
}

.cs-stat-context {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* =============================================
   LEARNING CARDS
   ============================================= */

.cs-learning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cs-learning-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.cs-learning-card::before {
  content: attr(data-num);
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(0,0,0,0.05);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.cs-learning-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  position: relative;
}

.cs-learning-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  position: relative;
}

.cs-learning-card em { font-style: italic; }

/* =============================================
   QUOTE CAROUSEL — ENHANCED
   ============================================= */

.quote-carousel {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-100);
  padding: 8px 0 32px;
  margin: 40px 0 0;
}

.quote-carousel .carousel-slide {
  padding: 8px 32px 8px;
  flex-direction: column;
  align-items: center;
}

.quote-carousel .carousel-slide::before {
  content: '\201C';
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 80px;
  line-height: 0.7;
  color: var(--gray-200);
  text-align: center;
  margin-bottom: 12px;
}

.quote-carousel .carousel-slide blockquote {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--black);
  font-style: italic;
  max-width: 620px;
  margin-bottom: 16px;
}

.quote-carousel .carousel-slide cite {
  font-size: 13px;
  color: var(--gray-500);
  font-style: normal;
  font-weight: 500;
}

/* Legacy support */
.cs-phase-label { display: none; }
.cs-phase-goal  { display: none; }

/* Divider with label */
.cs-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}

.cs-divider::before,
.cs-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.cs-divider-label {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  font-weight: 500;
}

/* =============================================
   PHASES STICKY NAV
   ============================================= */

.cs-phases-wrapper {
  position: relative;
  background: #faf9f7;
}

.cs-steps-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  width: 100%;
}

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

.cs-section[id] {
  padding-top: 48px;
  scroll-margin-top: calc(var(--nav-h) + 56px + 8px);
}

/* Steps timeline */
.cs-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 14px 0;
  margin-bottom: 0;
}

.cs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
  max-width: 130px;
  position: relative;
}

.cs-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 21px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 1px;
  background: var(--gray-300);
}

.cs-step { cursor: pointer; user-select: none; }

.cs-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.cs-step-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  text-align: center;
  transition: color 0.25s ease;
}

.cs-step:hover .cs-step-num {
  border-color: var(--gray-500);
  color: var(--gray-500);
}

.cs-step.active .cs-step-num {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.cs-step.active .cs-step-label {
  color: var(--accent);
  font-weight: 600;
}

/* Double diamond */
.double-diamond-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
}

.double-diamond-svg { max-width: 420px; width: 100%; }

.diamond-desc { font-size: 15px; color: var(--gray-700); line-height: 1.7; max-width: 540px; }
.diamond-desc ol { padding-left: 18px; }
.diamond-desc li { margin-bottom: 6px; }
.diamond-desc strong { color: var(--black); font-weight: 600; }

/* Flow section */
.cs-flow-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
  align-items: flex-start;
}

.cs-flow-image img { width: 100%; border-radius: 12px; }

.cs-flow-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

/* Confidentiality notice */
.cs-confidential {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 24px 20px;
  margin: 40px 0;
  text-align: center;
}

.cs-confidential p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 10px;
}

.cs-confidential p:last-child { margin-bottom: 0; }

.cs-confidential a { color: var(--accent); }

/* =============================================
   CAROUSELS — QUOTES
   ============================================= */

.quote-carousel { padding: 20px 0 40px; }

.carousel { position: relative; overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px;
}

.carousel-slide blockquote {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--black);
  max-width: 680px;
  margin-bottom: 18px;
}

.carousel-slide cite {
  font-size: 13px;
  color: var(--gray-500);
  font-style: normal;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.carousel-dot.active { background: var(--black); }

.carousel-prev,
.carousel-next {
  display: none;
}

/* =============================================
   CASE STUDY — IMAGE GALLERIES
   ============================================= */

.cs-gallery-section { margin-bottom: 48px; }

.cs-gallery-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.gallery-carousel .carousel-slide {
  padding: 0;
  background: var(--off-white);
  border-radius: 10px;
  overflow: hidden;
}

.gallery-carousel .carousel-slide img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* =============================================
   CASE STUDY — RESULTS
   ============================================= */

.cs-results {
  background: var(--off-white);
  border-radius: 16px;
  padding: 36px 24px;
  margin-top: 60px;
}

/* =============================================
   PHONE MOCKUP FRAME
   ============================================= */

.phone-wrap {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.phone-frame-outer {
  width: 200px;
  border-radius: 44px;
  background: #1c1c1e;
  padding: 14px 10px 18px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07) inset,
    0 28px 64px rgba(0,0,0,0.38);
  position: relative;
}

.phone-pill {
  width: 80px;
  height: 22px;
  background: #1c1c1e;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: var(--accent-bg);
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  cursor: zoom-in;
}

/* Placeholder screen */
.phone-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
}

.phone-placeholder-icon { font-size: 28px; line-height: 1; }

.phone-placeholder-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}

/* Feature layout with phone (mobile showcase) */
.cs-feature-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 64px;
}

.cs-feature-mobile .cs-feature-head { width: 100%; }

/* =============================================
   FINAL UI — FEATURE SHOWCASE
   ============================================= */

.cs-feature { margin-bottom: 72px; }
.cs-feature:last-child { margin-bottom: 0; }

.cs-feature-head {
  max-width: 660px;
  margin-bottom: 24px;
}

.cs-feature-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.cs-feature-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cs-feature-desc {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.65;
}

/* Browser frame */
.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  background: var(--white);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #E4E3DF;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  font-size: 12px;
  color: var(--gray-500);
  background: var(--white);
  border-radius: 7px;
  padding: 5px 14px;
  flex: 1;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame img {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

/* Supporting thumbnails */
.cs-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.cs-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  background: var(--off-white);
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
  position: relative;
}

.cs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.35s ease;
}

.cs-thumb:hover img { transform: scale(1.05); }

.cs-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.cs-thumb:hover::after { background: rgba(17,17,17,0.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,17,17,0.93);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-out;
  -webkit-overflow-scrolling: touch;
}

.lightbox.open { display: flex; }

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  touch-action: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.24); }

.lightbox-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* =============================================
   RESPONSIVE — TABLET (768px+)
   ============================================= */

@media (min-width: 768px) {
  .container, .nav-inner, .footer-inner { padding: 0 40px; }

  .nav-inner { gap: 16px; }
  .nav-links a { font-size: 15px; padding: 6px 14px; }

  .hero { padding: 88px 0 72px; }

  .case-card {
    flex-direction: row;
    min-height: 340px;
  }

  .case-card-image {
    width: 48%;
    height: auto;
    order: 2;
    flex-shrink: 0;
  }

  .case-card-info {
    padding: 40px 40px;
    order: 1;
    flex: 1;
  }

  .about-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }

  .about-photo-wrap {
    order: 2;
    flex-shrink: 0;
    width: 320px;
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }

  .about-photo { max-width: 100%; }

  .about-content { flex: 1; order: 1; }

  .cs-hero-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 56px;
  }

  .cs-hero-content { flex: 1; padding-bottom: 48px; }
  .cs-hero-image { flex: 1; }

  .cs-grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; }
  .cs-grid-3 { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }

  .cs-flow-wrap { flex-direction: row; align-items: flex-start; gap: 48px; }
  .cs-flow-image { flex: 1; }
  .cs-flow-text { flex: 1; }

  .double-diamond-wrap { flex-direction: row; align-items: center; gap: 40px; }
  .double-diamond-svg { flex-shrink: 0; max-width: 320px; }

  .carousel-slide { padding: 20px 60px; }

  .carousel-prev,
  .carousel-next {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1.5px solid var(--gray-300);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-700);
    transition: all var(--transition);
    z-index: 2;
  }

  .carousel-prev:hover, .carousel-next:hover { border-color: var(--black); color: var(--black); }
  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }

  .cs-results { padding: 48px 48px; }
  .cs-stats-grid { grid-template-columns: repeat(4, 1fr); }

  .cs-feature-mobile {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .cs-feature-mobile .cs-feature-head { flex: 1; }
  .cs-feature-mobile .phone-wrap { flex-shrink: 0; }
  .cs-learning-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-carousel .carousel-slide { padding: 8px 80px 8px; }
  .cs-phase-header { gap: 24px; }

  .cs-facts { grid-template-columns: repeat(4, 1fr); }
  .cs-primer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cs-thumbs { grid-template-columns: repeat(4, 1fr); }

  .cs-ps {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }
  .cs-ps-card.is-problem { border-radius: 18px 0 0 18px; }
  .cs-ps-card.is-solution { border-radius: 0 18px 18px 0; }
  .cs-ps-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    align-self: center;
    color: var(--gray-300);
    font-size: 22px;
    background: var(--white);
    height: 100%;
    border-top: 1px solid #ecdcd4;
    border-bottom: 1px solid #ecdcd4;
  }
}

/* =============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================= */

@media (min-width: 1024px) {
  .case-card-image { width: 50%; }
  .cs-steps { gap: 0; }
  .cs-hero-inner { padding: 0 40px; }
  .cs-content .container { padding: 0 40px; }
}
