/* ============================================================
   EMILY SCHMITTLER — SHARED STYLESHEET
   Used by: index.html, case-study-*.html
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --terracotta:       #F4613A;
  --terracotta-light: #F2A494;
  --terracotta-pale:  #FDE8E3;
  --navy:             #1A2340;
  --navy-soft:        #3D4F6B;
  --navy-muted:       rgba(30,30,44,0.45);
  --blue-mist:        #EDF2F7;
  --cream:            #FBF8F3;
  --sky:              #5BAFD6;
  --blush:            #F2A494;
  --white:            #FFFFFF;
  --border:           rgba(30,30,44,0.08);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-serif:   'Fraunces', serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
  animation: blobDot 3s ease-in-out infinite;
  flex-shrink: 0;
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--terracotta);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover { background: var(--navy); transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  padding: 2rem 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

footer a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   SHARED SECTION PRIMITIVES
   ============================================================ */
section { padding: 6rem 3rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-title strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--terracotta);
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
}

/* ============================================================
   SHARED CHIPS & TAGS
   ============================================================ */
.case-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.case-tag.sky   { background: rgba(91,175,214,0.1);  color: #3a8fb5;          border: 1px solid rgba(91,175,214,0.25); }
.case-tag.lime  { background: rgba(168,204,44,0.1);  color: #5e7a00;          border: 1px solid rgba(168,204,44,0.35); }
.case-tag.navy  { background: rgba(26,35,64,0.07);   color: var(--navy);      border: 1px solid rgba(26,35,64,0.15); }
.case-tag.coral { background: rgba(244,97,58,0.08);  color: var(--terracotta);border: 1px solid rgba(244,97,58,0.2); }

.impact-chip {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
}

.impact-chip.sky   { background: rgba(91,175,214,0.1);  color: #3a8fb5;          border: 1px solid rgba(91,175,214,0.25); }
.impact-chip.lime  { background: rgba(168,204,44,0.1);  color: #5e7a00;          border: 1px solid rgba(168,204,44,0.35); }
.impact-chip.coral { background: rgba(244,97,58,0.08);  color: var(--terracotta);border: 1px solid rgba(244,97,58,0.2); }
.impact-chip.navy  { background: rgba(26,35,64,0.07);   color: var(--navy);      border: 1px solid rgba(26,35,64,0.12); }

/* ============================================================
   SHARED BUTTONS & LINKS
   ============================================================ */
.btn-primary {
  background: var(--terracotta);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(244,97,58,0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(244,97,58,0.38); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-secondary:hover { border-color: rgba(30,30,44,0.3); transform: translateY(-2px); }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--terracotta);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}

.cta-link:hover { gap: 0.7rem; }

/* ============================================================
   TESTIMONIAL (shared — used on index carousel & case study)
   ============================================================ */
.testimonial-card {
  background: var(--terracotta);
  border-radius: 20px;
  padding: 48px 64px;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -30px; left: 36px;
  font-family: var(--font-serif);
  font-size: 220px;
  font-weight: 600;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card .quote-text {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  color: white;
  line-height: 1.55;
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.testimonial-card .quote-attr {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}

/* ============================================================
   INDEX — HERO
   ============================================================ */
#hero {
  background: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 64px;
  padding-top: 64px;
}

.hero-blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  pointer-events: none;
  animation: heroMorph var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes heroMorph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%  { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; }
  75%  { border-radius: 70% 30% 50% 40% / 40% 70% 50% 30%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-mist);
  border: 1px solid var(--blue-mist);
  color: #2e1f50;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
  animation: fadeUp 0.6s ease both;
}

.hero-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}

.hero-eyebrow-line {
  width: 24px; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.28s forwards;
}

.hero-heading strong {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.hero-heading strong::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 4px;
  background: var(--terracotta);
  border-radius: 2px;
  opacity: 0.3;
  animation: fadeUp 0.6s ease 0.9s both;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.44s forwards;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  padding: 9px 15px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  letter-spacing: 0.01em;
}

.skill-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.skill-chip.s1 { background: rgba(244,97,58,0.08);   color: var(--terracotta); }
.skill-chip.s2 { background: rgba(91,175,214,0.1);   color: #3a8fb5; }
.skill-chip.s3 { background: rgba(168,204,44,0.12);  color: #5e7a00; }
.skill-chip.s4 { background: rgba(242,164,148,0.18); color: #b84830; }
.skill-chip.s5 { background: var(--navy); color: rgba(255,255,255,0.88); }
.skill-chip.s6 { background: var(--blue-mist); color: var(--navy); }

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.58s forwards;
}

/* Hero stat cards */
.hero-visual { position: relative; z-index: 2; height: 420px; }

.hero-stat {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 40px rgba(30,30,44,0.1);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  animation: cardIn 0.6s cubic-bezier(0.34,1.56,0.64,1) var(--cin, 0.6s) forwards,
             floatCard var(--fdur, 4s) ease-in-out var(--cin, 0.6s) infinite;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(30,30,44,0.42);
  line-height: 1.4;
  max-width: 120px;
}

.hero-stat-accent {
  display: inline-block;
  width: 24px; height: 4px;
  border-radius: 2px;
  margin-top: 6px;
}

/* Hero blobs */
.blob-coral {
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, rgba(215,122,97,0.22) 0%, rgba(215,122,97,0.14) 30%, rgba(215,122,97,0.05) 60%, transparent 75%);
  filter: blur(28px);
  top: -60px; right: -60px;
  animation: floatPrimary 18s ease-in-out -4s infinite;
}

.blob-coral::after {
  content: '';
  position: absolute;
  inset: -100px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(216,180,160,0.08) 0%, transparent 65%);
  filter: blur(40px);
}

.blob-yellow {
  width: 380px; height: 380px;
  background: radial-gradient(circle at center, rgba(100,130,160,0.2) 0%, rgba(90,120,150,0.12) 35%, rgba(90,120,150,0.04) 60%, transparent 75%);
  filter: blur(26px);
  top: 40%; left: -80px;
  animation: floatSecondary 22s ease-in-out -8s infinite;
}

.blob-teal {
  width: 220px; height: 220px;
  background: radial-gradient(circle at center, rgba(216,180,160,0.22) 0%, rgba(215,122,97,0.1) 45%, transparent 70%);
  filter: blur(16px);
  top: 35%; right: 22%;
  animation: floatAccent 16s ease-in-out -6s infinite;
}

.blob-amber {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  width: 280px; height: 280px;
  background: radial-gradient(circle at center, rgba(110,140,170,0.18) 0%, rgba(100,130,160,0.1) 40%, transparent 70%);
  filter: blur(22px);
  bottom: 10%; left: 30%;
  animation: floatAmber 24s ease-in-out infinite reverse;
}

.blob-spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  width: 260px; height: 260px;
  background: radial-gradient(circle at center, rgba(215,122,97,0.15) 0%, rgba(215,122,97,0.07) 50%, transparent 75%);
  filter: blur(22px);
  top: 20%; left: 45%;
  animation: floatAccent 14s ease-in-out -10s infinite;
}

.blob-streak {
  position: absolute;
  width: 500px; height: 2px;
  background: linear-gradient(to right, transparent 0%, rgba(100,130,160,0.07) 30%, rgba(215,122,97,0.12) 50%, rgba(100,130,160,0.07) 70%, transparent 100%);
  filter: blur(2px);
  top: calc(15% + 110px); right: 0;
  transform: rotate(-3deg);
  pointer-events: none;
  animation: floatPrimary 18s ease-in-out infinite;
}

@keyframes floatPrimary {
  0%   { transform: translate(0px, 0px) scale(1); }
  20%  { transform: translate(-180px, 80px) scale(1.15); }
  45%  { transform: translate(-80px, 200px) scale(0.82); }
  70%  { transform: translate(60px, 120px) scale(1.12); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes floatSecondary {
  0%   { transform: translate(0px, 0px) scale(1); }
  25%  { transform: translate(220px, -80px) scale(1.18); }
  55%  { transform: translate(350px, -160px) scale(0.8); }
  80%  { transform: translate(180px, -60px) scale(1.1); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes floatAccent {
  0%   { transform: translate(0px, 0px) scale(1); }
  20%  { transform: translate(-200px, 80px) scale(1.2); }
  50%  { transform: translate(-300px, -40px) scale(0.78); }
  75%  { transform: translate(-120px, -160px) scale(1.14); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes floatAmber {
  0%   { transform: translate(0px, 0px) scale(1); }
  30%  { transform: translate(200px, -120px) scale(1.16); }
  60%  { transform: translate(320px, 60px) scale(0.84); }
  85%  { transform: translate(100px, 100px) scale(1.08); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* ============================================================
   INDEX — CASE STUDIES SECTION
   ============================================================ */
#work { background: var(--cream); }

.work-intro {
  max-width: 600px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy-soft);
  line-height: 1.8;
  margin-bottom: 5rem;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(30,30,44,0.07);
  margin-bottom: 2rem;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.case-study.animate-out { opacity: 0; transform: translateY(30px); }
.case-study.visible     { opacity: 1; transform: translateY(0); }

.case-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}

.case-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: -0.5rem;
  letter-spacing: -0.03em;
}

.case-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1rem;
}

.case-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--navy-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.case-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.case-stat-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 2px 12px rgba(30,30,44,0.05);
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.case-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}

.case-stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(30,30,44,0.45);
  line-height: 1.4;
}

.case-stat-accent {
  display: inline-block;
  width: 20px; height: 3px;
  border-radius: 2px;
  margin-top: 5px;
}

.case-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--terracotta);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}

.case-cta:hover { gap: 0.7rem; }

.case-visual {
  background: var(--white);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
}

.case-visual video,
.case-visual img {
  max-width: 100%;
  height: auto;
}

.visual-vbc        { background: var(--white); }
.visual-replatform { background: linear-gradient(135deg, #F2EAE6 0%, #D8B4A0 50%, #F7F4F0 100%); }
.visual-ai         { background: linear-gradient(135deg, #F7F4F0 0%, #F2EDE6 40%, #F2EAE6 100%); }

/* ============================================================
   INDEX — ABOUT
   ============================================================ */
#about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy-soft);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-text p strong { color: var(--navy); font-weight: 500; }

.about-aside { display: flex; flex-direction: column; gap: 1.5rem; }

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(30,30,44,0.04);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--navy-muted);
  font-weight: 400;
  line-height: 1.55;
}

.passion-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.passion-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--navy-soft);
  font-weight: 300;
  line-height: 1.5;
}

.passion-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* ============================================================
   INDEX — PHILOSOPHY
   ============================================================ */
#philosophy {
  background: var(--sky);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#philosophy .section-label { color: rgba(255,255,255,0.7); }
#philosophy .section-title  { color: var(--white); }
#philosophy .section-title em { color: rgba(255,255,255,0.85); }

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.philosophy-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: background 0.2s, border-color 0.2s;
}

.philosophy-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.philosophy-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: white;
}

.philosophy-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.philosophy-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.philosophy-deco {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20rem;
  color: rgba(26,35,64,0.08);
  right: -2rem;
  top: -3rem;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   INDEX — TESTIMONIALS CAROUSEL
   ============================================================ */
#testimonials { background: var(--white); }

.testimonial-carousel {
  position: relative;
  margin-top: 3rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* carousel variant of testimonial-card */
.testimonial-slide {
  display: none;
  background: var(--terracotta);
  border-radius: 20px;
  padding: 48px 64px;
  position: relative;
  overflow: hidden;
}

.testimonial-slide.active {
  display: block;
  animation: crossfadeDrift 0.6s ease forwards;
}

@keyframes crossfadeDrift {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.testimonial-slide::before {
  content: '"';
  position: absolute;
  top: -30px; left: 36px;
  font-family: var(--font-serif);
  font-size: 220px;
  font-weight: 600;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  pointer-events: none;
}

.testimonial-slide .quote-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  color: white;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.testimonial-slide .quote-attr {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.testimonial-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: white; }

.testimonial-dots { display: flex; justify-content: center; gap: 8px; }

.testimonial-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(26,35,64,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.testimonial-dot.active { background: var(--terracotta); transform: scale(1.3); }

/* ============================================================
   INDEX — WRITING / ARTICLE LIST
   ============================================================ */
#ai { background: var(--cream); }

.article-list-block {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 3rem;
}

.al-header {
  padding: 28px 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.al-header-left { display: flex; flex-direction: column; gap: 4px; }

.al-header-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.al-header-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
}

.al-filter-row { display: flex; gap: 6px; align-items: center; }

.al-filter {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
}

.al-filter.active          { background: var(--navy); color: white; border-color: var(--navy); }
.al-filter:not(.active)    { background: transparent; color: var(--navy-muted); border-color: var(--border); }
.al-filter:not(.active):hover { border-color: rgba(30,30,44,0.25); color: var(--navy); }

.al-list { list-style: none; }

.al-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 36px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
  cursor: pointer;
}

.al-item:last-child { border-bottom: none; }
.al-item:hover { background: var(--cream); }
.al-item:hover .al-arrow { background: var(--terracotta); color: white; transform: translateX(3px); }
.al-item:hover .al-title  { color: var(--terracotta); }

.al-source-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; }

.al-source-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.al-source-icon.linkedin { background: rgba(10,102,194,0.1);  color: #0a66c2; }
.al-source-icon.medium   { background: rgba(30,30,44,0.06);   color: var(--navy); }
.al-source-icon.pub      { background: rgba(244,97,58,0.08);  color: var(--terracotta); }
.al-source-icon.ux       { background: rgba(91,175,214,0.1);  color: #3a8fb5; }
.al-source-icon.iot      { background: rgba(26,35,64,0.07);   color: var(--navy); }

.al-tag {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 9px;
}

.al-tag.t-coral { background: rgba(244,97,58,0.08);  color: var(--terracotta); border: 1px solid rgba(244,97,58,0.2); }
.al-tag.t-sky   { background: rgba(91,175,214,0.1);  color: #3a8fb5;           border: 1px solid rgba(91,175,214,0.22); }
.al-tag.t-lime  { background: rgba(168,204,44,0.1);  color: #5e7a00;           border: 1px solid rgba(168,204,44,0.3); }
.al-tag.t-navy  { background: rgba(26,35,64,0.07);   color: var(--navy);       border: 1px solid rgba(26,35,64,0.12); }

.al-content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.al-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.al-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--navy);
  transition: color 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-excerpt {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(30,30,44,0.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.al-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-size: 13px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.al-item.featured {
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  padding: 28px 36px;
  background: var(--navy);
  align-items: start;
}

.al-item.featured:hover { background: #1e2b4a; }
.al-item.featured:hover .al-featured-title { color: var(--terracotta-light); }
.al-item.featured:hover .al-arrow { background: var(--terracotta); color: white; transform: translateX(3px); }

.al-featured-content { display: flex; flex-direction: column; gap: 8px; }

.al-featured-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--white);
  transition: color 0.18s ease;
}

.al-featured-excerpt {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
}

.al-featured-footer { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

.al-item.featured .al-tag   { background: rgba(91,175,214,0.15); color: #8dcef0; border-color: rgba(91,175,214,0.3); }
.al-item.featured .al-arrow { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }

.al-footer {
  padding: 18px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--white);
}

.al-view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--terracotta);
  cursor: pointer;
  transition: gap 0.2s ease;
  letter-spacing: 0.01em;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}

.al-view-all:hover { gap: 11px; }

/* ============================================================
   INDEX — CONTACT
   ============================================================ */
#contact {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 7rem 3rem;
}

#contact .section-label  { color: rgba(255,255,255,0.5); }
#contact .section-title  { color: var(--white); }
#contact .section-title em { font-style: normal; font-weight: 600; color: var(--terracotta-light); }

.contact-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.contact-email:hover { color: var(--terracotta-light); border-color: var(--terracotta-light); }

.contact-fun {
  margin-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */

/* Hero */
.cs-hero {
  padding-top: 64px;
  background: var(--cream);
}

.cs-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 64px 0;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-muted);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.cs-back:hover { color: var(--terracotta); }
.cs-back:hover svg { transform: translateX(-3px); }
.cs-back svg { transition: transform 0.2s; }

.cs-hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--navy);
  max-width: 760px;
  margin-bottom: 1.25rem;
}

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

.cs-hero-dek {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy-soft);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

/* Meta strip */
.cs-meta-strip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1.25rem 2rem 1.25rem 0;
  margin-right: 2rem;
  border-right: 1px solid var(--border);
  min-width: 120px;
}

.cs-meta-item:last-child { border-right: none; }

.cs-meta-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-muted);
}

.cs-meta-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
  padding-bottom: 3rem;
}

/* Hero image */
.cs-hero-img {
  width: 100%;
  aspect-ratio: 21/8;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #F2EAE6 0%, #D8B4A0 50%, #F7F4F0 100%);
}

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

/* Article column */
.cs-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.cs-article p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navy-soft);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.cs-article p strong { color: var(--navy); font-weight: 500; }

.cs-section-head {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 3rem 0 1.25rem;
}

.cs-section-head em { color: var(--terracotta); }

/* Pullquote */
.cs-pullquote {
  border-left: 3px solid var(--terracotta);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 2.5rem 0;
}

.cs-pullquote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--navy);
  font-style: italic;
  margin: 0 !important;
}

.cs-pullquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-muted);
}

/* Inline figure */
.cs-fig-inline { margin: 2.5rem -2rem; }

.cs-fig-inline .ph-wrap {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 16px;
}

.cs-fig-inline .fig-cap {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--navy-muted);
  padding: 0.6rem 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Wide figure */
.cs-fig-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
}

.cs-fig-wide .ph-wrap {
  aspect-ratio: 16/6;
  overflow: hidden;
  border-radius: 20px;
}

.cs-fig-wide .fig-cap {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--navy-muted);
  padding: 0.6rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  text-align: right;
  line-height: 1.5;
}

/* Placeholder image utilities */
.ph-wrap {
  position: relative;
  background: linear-gradient(135deg, #F2EAE6 0%, #E8DED4 50%, #F7F4F0 100%);
}

.ph-wrap.ph-blue  { background: linear-gradient(135deg, #E6EFF7 0%, #C8D8E8 50%, #F0F4F8 100%); }
.ph-wrap.ph-warm  { background: linear-gradient(135deg, #F2EAE6 0%, #D8B4A0 50%, #F7F4F0 100%); }
.ph-wrap.ph-sage  { background: linear-gradient(135deg, #E8F0E8 0%, #C0D0BC 50%, #F0F4F0 100%); }
.ph-wrap.ph-slate { background: linear-gradient(135deg, #E8ECF2 0%, #B8C4D4 50%, #F0F2F6 100%); }
.ph-wrap.ph-cream { background: var(--cream); }

.ph-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.ph-inner span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,35,64,0.28);
}

.ph-icon { opacity: 0.22; color: var(--navy); }

/* Impact strip */
.cs-impact {
  background: var(--navy);
  padding: 4rem 64px;
  margin: 3rem 0;
}

.cs-impact-inner { max-width: 1100px; margin: 0 auto; }

.cs-impact .section-label { color: var(--terracotta-light); margin-bottom: 2.5rem; }

.cs-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.cs-impact-stat { display: flex; flex-direction: column; gap: 6px; }

.cs-impact-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.cs-impact-accent {
  display: inline-block;
  width: 24px; height: 3px;
  border-radius: 2px;
  background: var(--terracotta);
  margin: 2px 0 4px;
}

.cs-impact-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}

/* Leader role box */
.cs-leader-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.cs-leader-eyebrow {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-leader-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  flex-shrink: 0;
}

.cs-leader-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.cs-leader-list li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--navy-soft);
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}

.cs-leader-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Scroll gallery */
.cs-gallery { padding: 0 0 0 64px; margin: 3rem 0; }

.cs-gallery-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-muted);
  margin-bottom: 1rem;
  padding-right: 64px;
}

.cs-gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 1rem;
  padding-right: 64px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scroll-snap-type: x mandatory;
}

.cs-gallery-track::-webkit-scrollbar { height: 3px; }
.cs-gallery-track::-webkit-scrollbar-track { background: transparent; }
.cs-gallery-track::-webkit-scrollbar-thumb { background: rgba(26,35,64,0.15); border-radius: 2px; }

.cs-gallery-card {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
}

.cs-gallery-card .ph-wrap {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
}

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

.cs-gallery-cap {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--navy-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  line-height: 1.5;
}

.cs-gallery-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  color: var(--terracotta);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  display: block;
}

/* Case study divider */
hr.cs-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Next case study band */
.cs-next {
  background: var(--cream);
  padding: 4rem 64px;
  border-top: 1px solid var(--border);
}

.cs-next-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cs-next-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-muted);
  margin-bottom: 0.5rem;
}

.cs-next-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--navy);
  max-width: 480px;
}

.cs-next-title em { color: var(--terracotta); font-style: italic; }

/* Testimonial placement on case study pages */
.cs-testimonial-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px 4rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }

  #hero { padding: 0 24px; padding-top: 64px; }

  section { padding: 4rem 1.5rem; }

  .case-study { grid-template-columns: 1fr; }
  .case-visual { min-height: 280px; }

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

  .testimonial-slide { padding: 36px 28px; }

  footer { padding: 2rem 24px; }

  /* Case study page mobile */
  .cs-hero-inner  { padding: 3rem 24px 0; }
  .cs-article     { padding: 3rem 24px; }
  .cs-fig-wide    { padding: 0 24px; }
  .cs-impact      { padding: 3rem 24px; }
  .cs-gallery     { padding-left: 24px; }
  .cs-gallery-track   { padding-right: 24px; }
  .cs-gallery-label   { padding-right: 24px; }
  .cs-gallery-card    { flex: 0 0 280px; }
  .cs-testimonial-wrap { padding: 0 24px 3rem; }
  .cs-next        { padding: 3rem 24px; }
  .cs-next-inner  { flex-direction: column; align-items: flex-start; }
  .cs-impact-num  { font-size: 2.2rem; }
  .cs-fig-inline  { margin: 2.5rem 0; }
  .cs-meta-item   { padding: 1rem 1rem 1rem 0; margin-right: 1rem; min-width: 90px; }
}
