/* ============================================
   ENDOO LIMITED — MASTER STYLESHEET v3
   Premium, Distinctive, Mobile-First
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --bg-primary: #060608;
  --bg-secondary: #0d0d12;
  --bg-card: #0d0d11;
  --gold: #c4a564;
  --gold-light: #d4b570;
  --gold-dim: rgba(196, 165, 100, 0.12);
  --text-primary: #ede9e1;
  --text-secondary: #b8b5ad;
  --text-muted: #8f8d87;
  --border: #1c1c26;
  --border-accent: rgba(196, 165, 100, 0.28);
  --navy: #1a3a52;
  --slate-light: #6a7f9f;
  --white: #ffffff;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ---- CONTAINERS ---- */
.section { max-width: var(--max-width); margin: 0 auto; padding: 0 60px; width: 100%; }

/* ---- NAVIGATION ---- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 60px;
  background: rgba(6, 6, 8, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  transition: box-shadow var(--transition);
}

.nav-logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: 0.02em; flex-shrink: 0; font-style: italic; }
.nav-logo span { color: var(--gold); font-style: normal; }

.nav-links { display: flex; gap: 32px; list-style: none; margin: 0 auto; }
.nav-links a { font-size: 0.85rem; font-weight: 400; color: var(--text-secondary); letter-spacing: 0.01em; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold); color: var(--bg-primary) !important;
  padding: 9px 20px; border-radius: 3px; font-weight: 600; font-size: 0.82rem;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; }

.nav-mobile {
  display: none; flex-direction: column;
  background: rgba(6, 6, 8, 0.98); border-bottom: 1px solid var(--border);
  position: fixed; top: 53px; left: 0; right: 0; z-index: 999;
  backdrop-filter: blur(12px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 16px 24px; font-size: 1rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--gold); background: rgba(196,165,100,0.04); }

/* ---- STICKY MOBILE CTA ---- */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: rgba(6, 6, 8, 0.97); border-top: 1px solid var(--border-accent);
  padding: 12px 20px; backdrop-filter: blur(12px);
}
.mobile-cta-bar a {
  display: block; background: var(--gold); color: var(--bg-primary);
  text-align: center; padding: 14px; border-radius: 3px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
}

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 0; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&q=80');
  background-size: cover; background-position: center 40%;
  filter: brightness(0.1) saturate(0.3);
  opacity: 0; transition: opacity 1s ease;
}
.hero-bg.loaded { opacity: 1; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(196,165,100,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,165,100,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6,6,8,0.98) 0%, rgba(6,6,8,0.65) 55%, rgba(6,6,8,0.25) 100%);
}

.hero-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 260px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); width: 100%; margin: 0 auto;
  padding: 160px 60px 80px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 26px; font-weight: 500; font-family: var(--font-body);
}
.hero-eyebrow::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.1; margin-bottom: 28px; font-weight: 400; max-width: 840px;
}
.hero-title em { color: var(--gold); font-style: italic; }

.hero-body {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 600px; line-height: 1.9; margin-bottom: 44px; font-weight: 300;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px; }

.btn-primary, .btn-secondary {
  padding: 13px 32px; border-radius: 3px; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; border: none; transition: all var(--transition);
  display: inline-block; text-align: center; font-family: var(--font-body); letter-spacing: 0.02em;
}
.btn-primary { background: var(--gold); color: var(--bg-primary); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(196,165,100,0.28); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid rgba(196,165,100,0.35); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badge {
  background: rgba(196,165,100,0.07); color: var(--gold);
  padding: 7px 14px; border-radius: 2px; font-size: 0.72rem; font-weight: 500;
  white-space: nowrap; border: 1px solid rgba(196,165,100,0.18); letter-spacing: 0.04em;
  font-family: var(--font-body);
}

/* Stats bar */
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-width); margin: 0 auto;
  width: 100%; padding: 0 60px;
  border-top: 1px solid var(--border-accent);
}

.hero-stat {
  display: flex; flex-direction: column;
  padding: 32px 40px;
  border-right: 1px solid var(--border-accent);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }

.hero-stat-number {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 400;
  color: var(--gold); font-style: italic; line-height: 1;
}

.hero-stat-label {
  font-size: 0.68rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-top: 8px; font-weight: 500;
}

/* ---- SECTION LABELS / TITLES ---- */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); margin-bottom: 14px; font-weight: 600; font-family: var(--font-body);
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }

.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; margin-bottom: 16px; font-weight: 400; }
.section-title em { color: var(--gold); font-style: italic; }
.section-subtitle { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-top: 16px; font-weight: 300; }

/* ---- VALUE PROP ---- */
.value-prop { padding: 100px 0; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-accent); border: 1px solid var(--border-accent); }
.value-item { background: var(--bg-primary); padding: 36px 30px; transition: background var(--transition); }
.value-item:hover { background: rgba(196,165,100,0.04); }
.value-item h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 10px; font-weight: 400; color: var(--white); }
.value-item p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.8; font-weight: 300; }
.value-icon { font-size: 1.5rem; margin-bottom: 14px; }

/* ---- WHO THIS IS FOR ---- */
.for-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  background: linear-gradient(135deg, rgba(196,165,100,0.05) 0%, rgba(196,165,100,0.015) 100%);
}
.for-inner { display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start; }
.for-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 14px; font-weight: 600; font-family: var(--font-body); }
.for-title { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.2; font-weight: 400; }
.for-title em { color: var(--gold); font-style: italic; }
.for-subtitle { font-size: 0.92rem; color: var(--text-secondary); margin-top: 16px; line-height: 1.8; font-weight: 300; }

.for-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.for-card { border: 1px solid var(--border-accent); padding: 24px; border-radius: 3px; background: rgba(0,0,0,0.2); transition: border-color var(--transition); }
.for-card:hover { border-color: var(--gold); }
.for-card-role { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-weight: 600; margin-bottom: 8px; font-family: var(--font-body); }
.for-card p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.75; font-weight: 300; }

/* ---- SERVICES ---- */
#services { padding: 100px 0; }
.services-header { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; margin-bottom: 60px; }
.services-intro { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; font-weight: 300; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card {
  position: relative;
  background: linear-gradient(145deg, rgba(18,20,28,0.95) 0%, rgba(10,10,14,0.98) 100%);
  border: 1px solid var(--border-accent); padding: 34px; border-radius: 4px;
  transition: all 0.35s ease; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5; transition: opacity 0.3s;
}
.service-card:hover { border-color: rgba(196,165,100,0.55); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.service-card:hover::before { opacity: 1; }

.service-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.service-icon { width: 38px; height: 38px; color: var(--gold); }
.service-badge { font-family: var(--font-display); font-size: 0.85rem; color: var(--gold); opacity: 0.4; font-style: italic; }
.service-name { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; font-weight: 400; }
.service-desc { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; font-weight: 300; }
.service-points { list-style: none; }
.service-points li { font-size: 0.79rem; color: var(--text-muted); padding-left: 14px; margin-bottom: 6px; position: relative; }
.service-points li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }

/* ---- TESTIMONIAL ---- */
.testimonial-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  background: linear-gradient(135deg, rgba(26,58,82,0.12) 0%, transparent 60%);
}
.testimonial-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.6; color: var(--text-primary);
  margin-bottom: 36px; font-style: italic; font-weight: 400;
  position: relative; padding: 0 20px;
}
.testimonial-quote::before {
  content: '\201C'; font-size: 6rem; color: var(--gold); opacity: 0.2;
  position: absolute; top: -30px; left: -10px; line-height: 1;
  font-family: var(--font-display);
}
.testimonial-attribution { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.testimonial-divider { width: 36px; height: 1px; background: var(--gold); opacity: 0.45; }
.testimonial-name { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-family: var(--font-body); }
.testimonial-role { font-size: 0.76rem; color: var(--text-muted); font-family: var(--font-body); }

/* ---- EXPERTISE ---- */
.expertise-section { padding: 100px 0; border-top: 1px solid var(--border-accent); }
.expertise-header { text-align: center; margin-bottom: 70px; max-width: 800px; margin-left: auto; margin-right: auto; }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.expertise-card {
  background: linear-gradient(145deg, rgba(18,20,28,0.9) 0%, rgba(10,10,14,0.95) 100%);
  border: 1px solid var(--border-accent); padding: 28px; border-radius: 4px; transition: all 0.3s ease;
}
.expertise-card:hover { border-color: rgba(196,165,100,0.55); transform: translateY(-4px); }
.expertise-title { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 10px; font-weight: 400; }
.expertise-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; font-weight: 300; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.expertise-tags span { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); padding: 4px 9px; background: rgba(196,165,100,0.07); border: 1px solid rgba(196,165,100,0.18); border-radius: 2px; font-weight: 500; font-family: var(--font-body); }

/* ---- APPROACH ---- */
.approach-section { padding: 100px 0; border-top: 1px solid var(--border-accent); }
.approach-header { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; margin-bottom: 70px; }
.approach-intro { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; font-weight: 300; }
.approach-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 60px; }

.approach-step { position: relative; padding-left: 52px; }
.step-number { position: absolute; left: 0; top: -4px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; color: var(--gold); opacity: 0.18; line-height: 1; font-style: italic; }
.approach-step h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 10px; font-weight: 400; }
.approach-step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.8; font-weight: 300; }

.methodologies { background: linear-gradient(135deg, rgba(196,165,100,0.07) 0%, rgba(196,165,100,0.03) 100%); border: 1px solid var(--border-accent); padding: 40px; border-radius: 4px; text-align: center; }
.methodologies-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 22px; font-weight: 600; font-family: var(--font-body); }
.methodologies-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.method-tag { background: rgba(196,165,100,0.09); color: var(--gold); padding: 9px 18px; border-radius: 3px; font-size: 0.79rem; font-weight: 500; border: 1px solid rgba(196,165,100,0.2); font-family: var(--font-body); }

/* ---- CTA BANNER ---- */
.cta-banner {
  max-width: var(--max-width); margin: 100px auto;
  padding: 56px 60px;
  background: linear-gradient(135deg, rgba(196,165,100,0.09) 0%, rgba(196,165,100,0.03) 100%);
  border: 1px solid var(--border-accent); border-radius: 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold); }
.cta-banner-content { flex: 1; }
.cta-banner-title { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 10px; font-weight: 400; }
.cta-banner-title em { color: var(--gold); font-style: italic; }
.cta-banner-sub { font-size: 0.91rem; color: var(--text-secondary); line-height: 1.7; font-weight: 300; max-width: 560px; }
.cta-banner-actions { flex-shrink: 0; }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- FOOTER ---- */
footer { border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 60px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; letter-spacing: 0.02em; margin-bottom: 14px; font-style: italic; }
.footer-logo span { color: var(--gold); font-style: normal; }
.footer-tagline { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.75; font-weight: 300; }
.footer-col-title { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 16px; font-weight: 600; font-family: var(--font-body); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.83rem; color: var(--text-secondary); font-weight: 300; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding: 22px 60px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy, .footer-reg { font-size: 0.74rem; color: var(--text-muted); font-weight: 300; }

/* ---- ABOUT PAGE ---- */
.about-section { padding: 100px 0; }
.about-header { text-align: center; margin-bottom: 70px; max-width: 800px; margin-left: auto; margin-right: auto; }
.julian-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.headshot-image { width: 100%; border-radius: 4px; border: 2px solid rgba(106,127,159,0.28); box-shadow: 0 14px 50px rgba(0,0,0,0.55); object-fit: cover; aspect-ratio: 3 / 4; }
.headshot-label { text-align: center; font-size: 0.82rem; color: var(--text-secondary); margin-top: 12px; line-height: 1.5; font-weight: 300; }

.julian-text { background: linear-gradient(145deg, rgba(26,48,68,0.28) 0%, rgba(10,10,16,0.7) 100%); border: 1px solid rgba(106,127,159,0.22); padding: 42px; border-radius: 4px; position: relative; }
.julian-text::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(106,127,159,0.45), transparent); }
.julian-text h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 8px; font-weight: 400; }
.julian-credentials { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--slate-light); margin-bottom: 22px; font-weight: 600; font-family: var(--font-body); }
.julian-text p { font-size: 0.91rem; color: rgba(255,255,255,0.82); line-height: 1.85; margin-bottom: 15px; font-weight: 300; }
.julian-credentials-display { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; padding: 26px 0; border-top: 1px solid rgba(106,127,159,0.18); border-bottom: 1px solid rgba(106,127,159,0.18); text-align: center; }
.credential-number { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--slate-light); font-style: italic; }
.credential-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); font-weight: 500; font-family: var(--font-body); }
.julian-links { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.link-button { flex: 1; min-width: 130px; padding: 12px 20px; border-radius: 3px; text-align: center; font-weight: 600; font-size: 0.81rem; transition: all var(--transition); background: var(--slate-light); color: var(--white); border: 1px solid var(--slate-light); font-family: var(--font-body); }
.link-button:hover { background: transparent; color: var(--slate-light); }
.link-button.secondary { background: transparent; color: var(--slate-light); border: 1px solid var(--slate-light); }
.link-button.secondary:hover { background: var(--slate-light); color: var(--white); }

/* ---- CASE STUDIES PAGE ---- */
.case-studies-section { padding: 100px 0; background: linear-gradient(160deg, rgba(26,58,82,0.22) 0%, var(--bg-primary) 50%); border-top: 1px solid rgba(106,127,159,0.22); }
.case-studies-header { text-align: center; margin-bottom: 70px; max-width: 800px; margin-left: auto; margin-right: auto; }
.case-studies-header .section-label { color: var(--slate-light); }
.case-studies-header .section-label::before { background: var(--slate-light); }
.case-studies-header .section-title { color: var(--white); }
.case-studies-header .section-title em { color: var(--slate-light); }
.case-studies-intro { font-size: 1rem; color: rgba(255,255,255,0.62); margin-top: 18px; font-weight: 300; }
.case-studies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.case-study-card {
  background: linear-gradient(145deg, rgba(22,44,62,0.4) 0%, rgba(10,12,16,0.7) 100%);
  border: 1px solid rgba(106,127,159,0.22); padding: 38px; border-radius: 4px;
  position: relative; overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition);
}
.case-study-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(106,127,159,0.45), transparent); }
.case-study-card:hover { border-color: rgba(106,127,159,0.5); transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,0.35); }
.case-study-number { font-family: var(--font-display); font-size: 3rem; font-weight: 400; color: var(--slate-light); opacity: 0.16; margin-bottom: 16px; line-height: 1; font-style: italic; }
.case-study-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--white); margin-bottom: 14px; }
.case-study-desc { font-size: 0.87rem; color: rgba(255,255,255,0.73); line-height: 1.82; margin-bottom: 18px; flex-grow: 1; font-weight: 300; }
.case-study-impact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(106,127,159,0.18); }
.impact-badge { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-light); padding: 5px 10px; background: rgba(106,127,159,0.08); border: 1px solid rgba(106,127,159,0.2); border-radius: 2px; font-weight: 500; font-family: var(--font-body); }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
  .section { padding: 0 40px; }
  .nav { padding: 15px 40px; }
  .hero-content { padding: 120px 40px 70px; }
  .hero-stats { padding: 0 40px; }
  .footer-inner { padding: 50px 40px; }
  .footer-bottom { padding: 20px 40px; }
  .cta-banner { margin: 80px 40px; padding: 44px 40px; }
  .services-header { grid-template-columns: 1fr; gap: 28px; }
  .approach-header { grid-template-columns: 1fr; gap: 28px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .julian-grid { grid-template-columns: 260px 1fr; gap: 36px; }
  .for-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-stat { padding: 28px 24px; }
  .hero-stat:first-child { padding-left: 0; }
}

@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 68px; }

  .section { padding: 0 20px; }
  .hero-content { padding: 80px 20px 50px; }
  .hero-stats { padding: 0; grid-template-columns: repeat(2, 1fr); }
  .hero-stat { padding: 18px 20px; border-right: 1px solid var(--border-accent); border-bottom: 1px solid var(--border-accent); }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-bottom: none; }
  .hero-stat:nth-child(4) { border-right: none; }
  .hero-stat:first-child { padding-left: 20px; }

  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .case-studies-grid { grid-template-columns: 1fr; }
  .julian-grid { grid-template-columns: 1fr; }
  .for-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 36px 20px; gap: 26px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; text-align: center; }
  .cta-banner { flex-direction: column; text-align: center; margin: 60px 20px; padding: 34px 22px; }
  .cta-banner::before { width: 100%; height: 3px; bottom: auto; }
  .service-card, .expertise-card { padding: 24px; }
  .julian-text { padding: 28px; }
  .case-study-card { padding: 28px; }
  .methodologies { padding: 26px; }
  .for-section, .value-prop { padding: 70px 0; }
  #services, .expertise-section, .approach-section, .testimonial-section { padding: 70px 0; }
  .testimonial-quote::before { font-size: 3.5rem; top: -15px; left: 0; }
}

@media (max-width: 480px) {
  .nav { padding: 12px 16px; }
  .section { padding: 0 16px; }
  .hero-content { padding: 70px 16px 40px; }
  .hero-title { font-size: 1.7rem; }
  .section-title { font-size: 1.5rem; }
  .hero-body { font-size: 0.95rem; }
  .cta-banner { margin: 44px 16px; padding: 26px 16px; }
  .cta-banner-title { font-size: 1.35rem; }
  .footer-inner { padding: 26px 16px; }
  .footer-bottom { padding: 13px 16px; }
  .approach-steps { grid-template-columns: 1fr; }
  .julian-text { padding: 22px; }
  .julian-links { flex-direction: column; }
  .link-button { flex: none; width: 100%; }
  .julian-credentials-display { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
  .hero-stat-number { font-size: 1.9rem; }
}
