/* ============================================================
   SANA PORTFOLIO — STYLES
   Homepage: Playfair Display + Inter, sage/forest green palette
   Case studies: Cormorant Garamond + Manrope, cream palette
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* ── Legacy variables (used by case study pages) ── */
  --cream:   #F7F2EA;
  --sand:    #F3E8DD;
  --beige:   #E8D1B5;
  --burnt:   #C45A1A;
  --orange:  #F26B2E;
  --charcoal:#4A3F35;
  --black:   #1A1614;

  /* ── Homepage design tokens ── */
  --bg-hero:        #E8EDE6;
  --bg-work:        #1F2922;
  --bg-about:       #D4DDD0;
  --bg-contact:     #1F2922;
  --bg-footer:      #162116;
  --bg-card:        #111713;
  --bg-card-thumb:  #1A2018;
  --bg-info-card:   #F0F4EE;
  --bg-nav:         #E8EDE6;

  --accent:         #C45A1A;
  --accent-hover:   #A84A14;

  --sage-mid:       #8FA882;
  --sage-dark:      #4A6A50;
  --sage-label:     #7A8A74;

  --text-dark:      #1E2820;
  --text-body:      #3A4A34;
  --text-light:     #E8EDE6;
  --text-white:     #FFFFFF;
  --text-muted:     #4A5A44;

  --border-light:   #C8D4C0;
  --border-card:    #B8C8B0;
  --border-dark:    #2A3828;

  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
html {
  margin: 0;
  padding: 0;
  background: #121914;
}
body {
  font-family: 'Manrope', sans-serif;
  background: #121914;
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}
body.cs-page {
  background: #FFFFFF;
  min-height: 100vh;
}

body.cs-page,
body.cs-page html,
body.cs-page .cs-sidebar,
body.cs-page .cs-body,
body.cs-page .cs-content,
body.cs-page .cs-meta {
  background: #FFFFFF !important;
}

body.cs-page .cs-content,
body.cs-page .cs-section {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.main-container, main, #root, .wrapper {
  background: #121914;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.cs-page {
  background: #FFFFFF !important;
  color: #1E2820 !important;
}

@media (max-width: 768px) {
  body.cs-page {
    background: #FFFFFF !important;
    color: #1E2820 !important;
  }
}

/* ── Case study pages: white background only ── */
body.cs-page,
body.cs-page html {
  background: #FFFFFF;
}

body.cs-page .cs-hero,
body.cs-page .cs-meta,
body.cs-page .cs-body,
body.cs-page .cs-content,
body.cs-page .cs-bottom-nav {
  background: #FFFFFF;
}

h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Shared homepage utility ── */
.sec-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.c-accent  { color: var(--accent); }
.highlight { color: var(--accent); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 40px;
  background: var(--bg-nav);
  border-bottom: 0.5px solid var(--border-light);
  transition: box-shadow 0.25s;
}
.nav.scrolled {
  box-shadow: 0 2px 12px rgba(30,40,32,0.10);
}
.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--accent); }
.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 40px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 52px;
  align-items: center;
}

/* ── Hero Left ── */
.hero-left {
  min-width: 0;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.06;
  color: var(--text-dark);
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-tag {
  font-size: 11px;
  font-weight: 500;
  color: #1F2922;
  background: rgba(31, 41, 34, 0.08);
  border: 0.5px solid rgba(31, 41, 34, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  letter-spacing: 0.02em;
}

.hero-body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 18px;
}
.hero-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-bottom: 28px;
}
.hero-cta:hover { opacity: 0.72; }
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-scroll-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--sage-mid);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.hero-scroll-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-scroll-btn:hover svg path { stroke: white; }
.hero-scroll-label {
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  color: var(--sage-mid);
  font-weight: 500;
  text-transform: uppercase;
}

/* ── Chat Card ── */
.chat-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-card {
  width: 300px;
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 28px rgba(30,50,28,0.12);
  flex-shrink: 0;
}
.chat-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border-light);
}
.chat-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-card-name {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dark);
}
.chat-card-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--sage-mid);
  margin-top: 2px;
}
.chat-chip {
  border: 0.5px solid var(--border-light);
  border-radius: 22px;
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-dark);
  margin-bottom: 7px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  user-select: none;
}
.chat-chip:last-of-type { margin-bottom: 10px; }
.chat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chat-input {
  border: 0.5px solid var(--border-light);
  border-radius: 22px;
  padding: 8px 8px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chat-input-placeholder {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #A8B8A0;
}
.chat-send-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.chat-send-btn:hover { background: var(--accent-hover); }
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5BAD6F;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(91,173,111,0.45); }
  50%      { box-shadow: 0 0 0 4px rgba(91,173,111,0); }
}
.chat-status-label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  color: #6A7A64;
}

/* ============================================================
   SKILL TICKERS
   ============================================================ */
.ticker-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.ticker-1 { background: #C45A1A; }
.ticker-2 { background: #1F2922; }

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 35s linear infinite;
}

.ticker-track span {
  display: inline-block;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.ticker-1 .ticker-track span { color: rgba(255,255,255,0.9); }
.ticker-2 .ticker-track span { color: rgba(143,168,130,0.65); }

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

/* ============================================================
   FEATURED WORK
   ============================================================ */
.featured-work {
  position: relative;
  overflow: hidden;
  background: var(--bg-work);
  padding: 40px 40px 52px;
}
.featured-work .sec-tag {
  display: block;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  padding-left: 0;
}
.work-inner {
  position: relative;
  z-index: 1;
}
.proj-card {
  display: flex;
  flex-direction: row;
  min-height: 280px;
  background: #111713;
  border-radius: 14px;
  overflow: hidden;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
  min-height: 340px;
  transition: transform 0.2s;
}
.proj-card:last-child { margin-bottom: 0; }
.proj-card:hover { transform: translateY(-2px); }
.proj-content {
  flex: 0 0 42%;
  max-width: 42%;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proj-meta {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--sage-dark);
  margin-bottom: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proj-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-light);
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 700;
}
.proj-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #C0D4C0;
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 420px;
}
.view-btn {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  border: 0.5px solid #8FA882;
  border-radius: 20px;
  padding: 7px 18px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  color: #8FA882;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.view-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.proj-thumb {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.proj-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.95) saturate(0.85);
  transition: filter 0.3s, transform 0.3s;
}
.proj-card:hover .proj-thumb img {
  filter: brightness(0.85) saturate(0.75);
  transform: scale(1.03);
}
.proj-thumb::after {
  display: none;
}

/* ============================================================
   ABOUT ME
   ============================================================ */
.about {
  position: relative;
  overflow: hidden;
  padding: 56px 40px 60px;
  background: var(--bg-about);
}
.about-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.about-left {
  max-width: 440px;
}
.about-headline {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.about-body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 28px;
}
.design-approach-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #8FA882;
  margin-bottom: 9px;
  text-transform: uppercase;
}
.design-approach-block {
  background: rgba(31,41,34,0.06);
  border-radius: 10px;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  max-width: 380px;
}
.design-approach-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.design-approach-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #3A4A34;
  line-height: 1.75;
}

/* Info card */
.about-card {
  flex: 0 0 380px;
  max-width: 380px;
  min-width: 380px;
  background: var(--bg-info-card);
  border: 0.5px solid var(--border-card);
  border-radius: 16px;
  padding: 22px;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border-light);
}
.info-row:last-of-type { border-bottom: none; }
.info-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0.5px solid var(--sage-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.info-label {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--sage-label);
  margin-bottom: 3px;
  text-transform: uppercase;
}
.info-value {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  white-space: nowrap;
}
.info-row:first-child .info-value {
  white-space: normal;
  max-width: 300px;
}
.cta-connect {
  display: block;
  width: 100%;
  margin-top: 18px;
  background: var(--accent);
  border-radius: 30px;
  padding: 12px;
  text-align: center;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  color: white;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.cta-connect:hover { background: var(--accent-hover); }
.resume-link {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--sage-mid);
  padding-bottom: 1px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  width: fit-content;
  margin: 0 auto;
}
.resume-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Legacy about-card classes (kept for case studies if referenced) */
.btn-primary {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  border-radius: 100px;
  border: none;
  transition: background 0.2s;
  margin-bottom: 14px;
  font-family: 'Manrope', sans-serif;
}
.btn-primary:hover { background: var(--burnt); }
.text-link {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--burnt);
  transition: opacity 0.2s;
  font-family: 'Manrope', sans-serif;
}
.text-link:hover { opacity: 0.65; }
.text-link.light { color: rgba(255,255,255,0.5); }

/* ============================================================
   LET'S CONNECT
   ============================================================ */
.contact {
  position: relative;
  background: var(--bg-contact);
  padding: 48px 40px;
  overflow: hidden;
}
.contact-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 480px 300px 220px;
  gap: 32px;
  align-items: center;
}
.contact-headline-col { position: relative; z-index: 2; text-align: left; min-width: 0; max-width: none; }
.contact-headline {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  max-width: none;
  white-space: normal;
  color: var(--text-light);
  margin-top: 10px;
}
.contact-headline .highlight { color: var(--accent); }
.contact-body-col {
  padding-top: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  max-width: 400px;
  min-width: 0;
}
.contact-para {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #C8D8C4;
  line-height: 1.75;
  border-left: 2px solid var(--border-dark);
  padding-left: 16px;
  margin-bottom: 0;
  max-width: 380px;
}
.contact-resume {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #8FA882;
  border-bottom: 1px solid #8FA882;
  padding-bottom: 2px;
  padding-left: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  width: fit-content;
  display: block;
  margin-top: 12px;
  text-align: left;
}
.contact-resume:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.contact-details-col {
  flex: 0 0 200px;
  min-width: 0;
  padding-top: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: -20px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(143,168,130,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  color: rgba(240,237,230,0.6);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.contact-icon:hover {
  background: rgba(143,168,130,0.15);
  border-color: rgba(143,168,130,0.6);
  color: var(--accent);
}
.contact-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--sage-mid);
  margin-bottom: 3px;
  text-transform: uppercase;
}
.contact-value {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-white);
  line-height: 1.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-footer);
  padding: 14px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-sans);
  font-size: 9px;
  color: #2E4030;
  letter-spacing: 0.07em;
}
.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(240,237,230,0.6);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.back-to-top {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-work);
  border: 0.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.back-to-top:hover { background: var(--accent); }
.back-to-top:hover svg path { stroke: white; }

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 40px; right: 40px;
  z-index: 200;
  width: 46px; height: 46px;
  background: var(--charcoal);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover { background: var(--burnt); }

/* ============================================================
   CASE STUDY — SHARED
   ============================================================ */
/* Case study top hero */
.cs-hero {
  padding-top: 68px; /* clears the fixed nav */
  background: #fff;
  overflow: hidden;
}
.cs-hero-images {
  /* full-bleed container — no side padding, no max-width */
  width: 100%;
  display: block;
  line-height: 0; /* remove any inline-block gap */
}

/* Case study screenshot displayed full-width */
.cs-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Meta row */
.cs-meta {
  background: #fff;
  border-bottom: 1px solid var(--beige);
}
.cs-meta-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px 56px;
  display: flex;
  gap: 0;
}
.cs-meta-item {
  flex: 1;
  padding: 16px 24px;
  border-right: 1px solid var(--beige);
  text-align: left;
  vertical-align: top;
}
.cs-meta-item:first-child { padding-left: 0; }
.cs-meta-item:last-child  { border-right: none; }
.cs-meta-key {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.38;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: left;
}
.cs-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.45;
  text-align: left;
}

/* Case study body: sidebar + content */
.cs-body {
  max-width: 1380px;
  margin: 0 auto;
  padding: 56px 56px 100px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 80px;
  background: #FFFFFF;
}

/* Sticky sidebar */
.cs-sidebar {
  position: sticky;
  top: 92px;
  height: fit-content;
  align-self: start;
  background: #FFFFFF !important;
  border-right: 1px solid #E8EDE6;
}
.cs-nav-link {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9A8878 !important;
  opacity: 1;
  padding: 9px 0 9px 14px;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}
.cs-nav-link:hover { opacity: 0.75; }
.cs-nav-link.active {
  color: #C45A1A !important;
  border-left: 2px solid #C45A1A;
  background: transparent !important;
}

/* Case study content */
.cs-content {
  min-width: 0;
  background: #FFFFFF;
  color: #2A2820;
}

.cs-content h1,
.cs-content h2,
.cs-content h3 {
  color: #1E2820;
}
.cs-project-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.cs-intro {
  font-size: 15px;
  line-height: 1.78;
  color: var(--charcoal);
  opacity: 0.78;
  margin-bottom: 14px;
  max-width: 680px;
}
.cs-section { padding-top: 56px; }
.cs-h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}
.cs-h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 28px 0 10px;
}
.cs-h3.orange { color: var(--burnt); }
.cs-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--charcoal);
  opacity: 0.76;
  margin-bottom: 12px;
  max-width: 680px;
}
.cs-list {
  padding-left: 20px;
  margin: 10px 0 16px;
}
.cs-list li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--charcoal);
  opacity: 0.76;
  margin-bottom: 5px;
  list-style: disc;
}
.cs-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--burnt);
  margin: 16px 0;
}
.cs-callout::before { content: '⟶'; flex-shrink: 0; }

/* Two-column layout */
.cs-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 20px 0;
  align-items: start;
}

/* Image placeholder boxes */
.cs-img {
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--beige);
  margin: 20px 0;
}
.cs-img img { width: 100%; display: block; }
.cs-img-label {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.4;
}

/* Before / After grid */
.cs-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 20px 0;
}
.cs-ba-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cs-ba-label.before { color: var(--burnt); }
.cs-ba-label.after  { color: #52b869; }

/* Process flow */
.cs-flow {
  display: flex;
  gap: 6px;
  margin: 20px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cs-flow-step {
  flex: 1;
  min-width: 110px;
  background: var(--sand);
  border: 1px solid var(--beige);
  border-radius: 8px;
  padding: 14px 12px;
}
.cs-flow-step.highlight {
  background: var(--burnt);
  border-color: var(--burnt);
}
.flow-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.45;
  margin-bottom: 5px;
}
.flow-text { font-size: 11.5px; line-height: 1.5; color: var(--charcoal); }
.cs-flow-step.highlight .flow-num  { color: rgba(255,255,255,0.65); opacity: 1; }
.cs-flow-step.highlight .flow-text { color: #fff; }

/* Mockup phone container */
.phones-row {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.phone-card {
  flex-shrink: 0;
  width: 120px;
  height: 210px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff 0%, #f5f0e8 100%);
  border: 1.5px solid rgba(74,63,53,0.14);
  overflow: hidden;
  padding: 12px 10px;
}

/* Bottom navigation */
.cs-bottom-nav {
  padding: 40px 56px 60px;
  border-top: 1px solid var(--beige);
  display: flex;
  justify-content: center;
  gap: 14px;
}
.btn-back {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid #1F2922;
  color: #1F2922;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 30px;
  transition: background 0.22s, color 0.22s;
}
.btn-back:hover { background: #1F2922; color: #fff; }
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #C45A1A;
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 30px;
  transition: background 0.22s;
}
.btn-next:hover { background: var(--burnt); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav, .hero-inner, .work, .about, .contact { padding-left: 32px; padding-right: 32px; }
  .hero-inner { gap: 40px; }
  .hero-title { font-size: 64px; }
  .project-card { gap: 40px; }
  .about-inner { gap: 56px; }
  .contact-inner { gap: 32px; }
  .cs-body, .cs-meta-inner, .cs-bottom-nav, .cs-hero-images { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 900px) {
  .hero-inner  { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-bg     { height: 50%; top: auto; bottom: 0; max-width: 100%; }
  .chat-wrap   { justify-content: flex-start; }
  .project-card { grid-template-columns: 1fr; gap: 28px; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-col-blurb { border-left: none; border-right: none; border-top: 1px solid var(--beige); border-bottom: 1px solid var(--beige); padding: 28px 0; }
  .cs-body     { grid-template-columns: 1fr; }
  .cs-sidebar  {
    position: sticky;
    top: 68px;
    z-index: 999;
    background: #FFFFFF !important;
    border-right: none !important;
    border-bottom: 1px solid #E8EDE6;
    padding: 0 20px;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    box-shadow: none;
  }
  .cs-sidebar::-webkit-scrollbar {
    display: none;
  }
  .cs-body {
    overflow: visible !important;
  }
  html, body.cs-page {
    overflow-x: clip;
  }
  .cs-nav-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    color: #9A8878 !important;
    opacity: 1;
    flex-shrink: 0;
  }
  .cs-nav-link.active {
    border-left: none;
    border-bottom-color: #C45A1A;
    background: transparent !important;
    color: #C45A1A !important;
  }
  .cs-body {
    overflow: visible;
  }

  .cs-meta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 20px;
  }
  .cs-meta-item {
    flex: unset;
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--beige);
  }
  .cs-meta-item:first-child { padding-left: 0; }
  .cs-meta-item:last-child  { border-bottom: none; }
}
.nav-hamburger {
  display: none;
}

@media (max-width: 768px) {

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: #E8EDE6;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 24px;
    letter-spacing: 0.1em;
    color: #1E2820;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1000;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1E2820;
    border-radius: 2px;
    transition: all 0.3s;
  }

  /* 1. HERO */
  .hero {
    flex-direction: column;
    padding: 32px 20px;
    overflow: hidden;
  }

  .hero-title {
    font-size: 32px !important;
    line-height: 1.1;
  }

  .hero-body {
    font-size: 14px;
  }

  .chat-card {
    width: 100%;
    flex: none;
    margin-top: 24px;
  }

  /* 2. FEATURED WORK */
  .proj-card {
    flex-direction: column;
  }

  .proj-content {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
  }

  .proj-thumb {
    flex: none;
    width: 100%;
    height: 220px;
  }

  .proj-thumb img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .featured-work {
    padding: 32px 20px;
  }

  /* 3. ABOUT ME */
  .about {
    flex-direction: column;
    padding: 36px 20px;
  }

  .about-headline {
    font-size: 28px;
  }

  .about-card {
    width: 100%;
    flex: none;
    min-width: 0;
    max-width: 100%;
    margin-top: 24px;
  }

  /* 4. LET'S CONNECT */
  .contact {
    padding: 36px 20px;
  }

  .contact-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .contact-headline {
    font-size: 32px;
  }

  .contact .contact-headline,
  .contact h2 {
    color: #E8EDE6 !important;
  }

  .contact .contact-para,
  .contact p {
    color: #E8EDE6 !important;
  }

  .contact-headline-col,
  .contact-body-col,
  .contact-details-col {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  /* 5. NAV */
  nav,
  .nav,
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #E8EDE6;
    padding: 12px 20px;
  }

  html, body {
    overflow-x: clip;
  }

  /* Hide thumbnail text overlays on mobile */
  .proj-thumb .thumb-text,
  .proj-thumb h3,
  .proj-thumb p,
  .proj-thumb .proj-overlay-text {
    display: none !important;
  }

  /* Project card text — restore dark-bg colours overridden by body rule */
  .proj-card .proj-title {
    color: #E8EDE6 !important;
  }
  .proj-card .proj-desc {
    color: #B0C8B0 !important;
  }
  .proj-card .proj-meta {
    color: #4A6A50 !important;
  }

  /* 6. FOOTER */
  .footer {
    padding: 14px 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    background: #121914 !important;
  }
  .footer-copy,
  .footer span,
  .footer p {
    color: #3A5038 !important;
  }
  .footer-links a {
    color: #3A5038 !important;
  }

  /* 7. CASE STUDY — match desktop light theme */
  .cs-content {
    padding: 20px !important;
    padding-top: 24px !important;
    background: #FFFFFF !important;
  }

  .cs-section {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .cs-content h1,
  .cs-content h2,
  .cs-content h3 {
    color: #1E2820 !important;
  }

  .cs-content p,
  .cs-content li {
    color: #2A2820 !important;
  }

  body,
  .case-study-wrapper,
  .page-wrapper,
  .case-study-content,
  .section-content,
  .content-area,
  main {
    background: #FFFFFF !important;
    color: #1E2820 !important;
  }

  h1, h2, h3, h4 {
    color: #1E2820 !important;
  }

  p, li {
    color: #2A2820 !important;
  }

  .orange,
  [style*="#C45A1A"] {
    color: #C45A1A !important;
  }

  .case-study-footer {
    background: #FFFFFF !important;
    border-top: 0.5px solid #E8EDE6;
  }

  .back-btn {
    color: #1E2820 !important;
    border-color: #1E2820 !important;
  }

}

@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-link  { font-size: 10px; letter-spacing: 1.5px; }
  .hero-inner { padding: 88px 20px 60px; }
  .hero-title { font-size: 48px; }
  .chat-widget { width: 100%; }
  .work, .about, .contact { padding-left: 20px; padding-right: 20px; }
  .about-title  { font-size: 36px; }
  .contact-title { font-size: 36px; }
  .cs-body, .cs-meta-inner, .cs-bottom-nav { padding-left: 20px; padding-right: 20px; }
  .cs-project-title { font-size: 30px; }
  .cs-two, .cs-ba { grid-template-columns: 1fr; }
  .cs-bottom-nav { flex-direction: column; align-items: center; }
}

/* ── Case study overrides — maximum specificity, load last ── */
body.cs-page .cs-sidebar {
  background: #FFFFFF !important;
}

body.cs-page .cs-nav-link {
  color: #9A8878 !important;
}

body.cs-page .cs-nav-link.active {
  color: #C45A1A !important;
  border-color: #C45A1A !important;
  background: transparent !important;
}

body.cs-page .cs-body {
  background: #FFFFFF !important;
}
