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

:root {
  --teal: #2b7d7c;
  --teal-dark: #1c4f5a;
  --teal-light: #e8f2f2;
  --bg: #f7f5f0;
  --bg-off: #f0ede6;
  --bg-dark: #181816;
  --ink: #1a1a18;
  --ink-mid: #4a4a44;
  --ink-light: #9a9a90;
  --rule: rgba(26,26,24,0.1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Helvetica, Arial, sans-serif;

  /* SVG icon mask sources — keeps icons consistent across iOS/Android/desktop */
  --k62-arr-r:  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>");
  --k62-arr-l:  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='19' y1='12' x2='5' y2='12'/><polyline points='12 19 5 12 12 5'/></svg>");
  --k62-arr-ne: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='8 7 17 7 17 16'/></svg>");
  --k62-phone:  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
  --k62-spark:  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M12 2 L13.6 10.4 L22 12 L13.6 13.6 L12 22 L10.4 13.6 L2 12 L10.4 10.4 Z'/></svg>");
  --k62-target: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><circle cx='12' cy='12' r='9'/><circle cx='12' cy='12' r='3' fill='%23000'/></svg>");
  --k62-moon:   url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/></svg>");
  --k62-sun:    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4.5'/><line x1='12' y1='2.5' x2='12' y2='5'/><line x1='12' y1='19' x2='12' y2='21.5'/><line x1='4.5' y1='4.5' x2='6.3' y2='6.3'/><line x1='17.7' y1='17.7' x2='19.5' y2='19.5'/><line x1='2.5' y1='12' x2='5' y2='12'/><line x1='19' y1='12' x2='21.5' y2='12'/><line x1='4.5' y1='19.5' x2='6.3' y2='17.7'/><line x1='17.7' y1='6.3' x2='19.5' y2='4.5'/></svg>");
}

/* ── DARK MODE ─────────────────────────────────────────────────
   Two triggers: body.dark (explicit user toggle) and
   @media (prefers-color-scheme: dark) when user hasn't forced light. */
body.dark {
  --teal: #4db8b7;
  --teal-dark: #3a9e9d;
  --teal-light: rgba(77,184,183,0.12);
  --bg: #141412;
  --bg-off: #1c1c1a;
  --bg-dark: #0c0c0b;
  --ink: #f0ede6;
  --ink-mid: #a0a098;
  --ink-light: #9a968c;
  --rule: rgba(240,237,230,0.14);
}
@media (prefers-color-scheme: dark) {
  body:not(.light) {
    --teal: #4db8b7;
    --teal-dark: #3a9e9d;
    --teal-light: rgba(77,184,183,0.12);
    --bg: #141412;
    --bg-off: #1c1c1a;
    --bg-dark: #0c0c0b;
    --ink: #f0ede6;
    --ink-mid: #a0a098;
    --ink-light: #9a968c;
    --rule: rgba(240,237,230,0.14);
  }
}

/* ── ICON HELPERS (SVG-mask icons replacing emoji-vulnerable Unicode) */
.k62-icon {
  display: inline-block;
  width: 1em; height: 1em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  vertical-align: -0.14em;
  flex-shrink: 0;
}
.k62-icon-arr-r  { -webkit-mask-image: var(--k62-arr-r);  mask-image: var(--k62-arr-r); }
.k62-icon-arr-l  { -webkit-mask-image: var(--k62-arr-l);  mask-image: var(--k62-arr-l); }
.k62-icon-arr-ne { -webkit-mask-image: var(--k62-arr-ne); mask-image: var(--k62-arr-ne); }
.k62-icon-phone  { -webkit-mask-image: var(--k62-phone);  mask-image: var(--k62-phone); }
.k62-icon-spark  { -webkit-mask-image: var(--k62-spark);  mask-image: var(--k62-spark); }
.k62-icon-target { -webkit-mask-image: var(--k62-target); mask-image: var(--k62-target); }
.k62-icon-moon   { -webkit-mask-image: var(--k62-moon);   mask-image: var(--k62-moon); }
.k62-icon-sun    { -webkit-mask-image: var(--k62-sun);    mask-image: var(--k62-sun); }

/* Trail / lead arrow icons appended/prepended to text links via class */
.with-trail-arrow::after,
.with-lead-arrow::before {
  content: ""; display: inline-block;
  width: 0.85em; height: 0.85em; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  vertical-align: -0.1em;
}
.with-trail-arrow::after { margin-left: 0.5em; -webkit-mask-image: var(--k62-arr-r); mask-image: var(--k62-arr-r); }
.with-lead-arrow::before { margin-right: 0.5em; -webkit-mask-image: var(--k62-arr-l); mask-image: var(--k62-arr-l); }

/* Outcome icons — slight bump for legibility (was decorative serif glyph) */
.cs-result-icon .k62-icon { font-size: 22px; }
.cal-option-icon .k62-icon { font-size: 20px; }
.cta-arrow .k62-icon { font-size: 32px; }

/* ── NAV CONTROLS (lang toggle + theme toggle in case-study nav) */
.nav-controls {
  order: 4; display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.lang-toggle {
  display: flex; border: 1px solid var(--rule); overflow: hidden;
}
.lang-btn {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 10px; cursor: pointer;
  background: none; border: none; color: var(--ink-mid);
  transition: background .2s, color .2s;
}
.lang-btn.active { background: var(--teal-dark); color: #fff; }
.theme-toggle {
  width: 36px; height: 36px; border: 1px solid var(--rule); background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--ink-mid);
  transition: background .2s, color .2s, border-color .2s;
  padding: 0;
}
.theme-toggle:hover { background: var(--teal-light); border-color: var(--teal); color: var(--teal); }

@media (max-width: 768px) {
  .nav-controls { gap: 6px; }
  .lang-toggle { display: none; } /* keep nav clean on mobile; toggle still works via direct buttons if needed */
  .theme-toggle { width: 32px; height: 32px; }
}

/* ── DARK MODE ELEMENT-LEVEL FIXES ───────────────────────────── */
/* Form/input/dropdown legibility, tag pills, modal close buttons */
body.dark .cs-tag {
  border-color: rgba(255,255,255,0.32);
  color: rgba(255,255,255,0.78);
}
body.dark .modal-close,
body.dark .privacy-close { color: #c8c5bb; }
body.dark .cal-option { background: rgba(255,255,255,0.02); }
body.dark .cal-option:hover { background: var(--teal-light); }
body.dark .cal-option-desc,
body.dark .cal-note { color: #b5b1a7; }
body.dark .cs-work-item { background: var(--bg-off); border-color: var(--rule); }

@media (prefers-color-scheme: dark) {
  body:not(.light) .cs-tag {
    border-color: rgba(255,255,255,0.32);
    color: rgba(255,255,255,0.78);
  }
  body:not(.light) .modal-close,
  body:not(.light) .privacy-close { color: #c8c5bb; }
  body:not(.light) .cal-option { background: rgba(255,255,255,0.02); }
  body:not(.light) .cal-option:hover { background: var(--teal-light); }
  body:not(.light) .cal-option-desc,
  body:not(.light) .cal-note { color: #b5b1a7; }
  body:not(.light) .cs-work-item { background: var(--bg-off); border-color: var(--rule); }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 36px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  padding: 12px 36px; box-shadow: 0 1px 0 var(--rule);
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-back {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mid); text-decoration: none;
  display: flex; align-items: center; gap: 8px; transition: color .2s;
}
.nav-back:hover { color: var(--teal); }
/* Centre the "All work" link in the nav bar on desktop (mobile wraps it below) */
@media (min-width: 769px) {
  #main-nav .nav-back {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
  }
}
.nav-book {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  background: var(--teal-dark); border: 1px solid var(--teal-dark);
  padding: 9px 18px; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s; white-space: nowrap;
}
.nav-book:hover { background: var(--teal); border-color: var(--teal); }

/* ── GLOBAL SITE HEADER (case studies + studio-notes posts) ─────────────
   A slim dark brand+nav strip pinned above the existing context nav.
   Only affects pages that actually include <header id="site-header">. */
:root { --sh-h: 46px; }
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--sh-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  background: var(--teal-dark);
}
#site-header .sh-logo { display: flex; align-items: center; }
#site-header .sh-logo img {
  height: 22px; width: auto; display: block;
  filter: brightness(0) invert(1);
}
/* reset the global nav{} rules that would otherwise hit the inner <nav> */
#site-header .sh-nav {
  position: static; top: auto; left: auto; right: auto;
  background: none; border: none; box-shadow: none; padding: 0;
  display: flex; align-items: center; gap: 28px;
}
#site-header .sh-nav a {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.82);
  text-decoration: none; transition: color .2s; white-space: nowrap;
}
#site-header .sh-nav a:hover { color: #fff; }
/* Hamburger (hidden on desktop, shown on mobile) */
#site-header .sh-toggle {
  display: none;
  width: 38px; height: 38px; padding: 0; margin-right: -8px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
#site-header .sh-toggle span {
  display: block; width: 20px; height: 1.5px; background: #fff;
  transition: transform .3s, opacity .3s;
}
#site-header .sh-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#site-header .sh-toggle.open span:nth-child(2) { opacity: 0; }
#site-header .sh-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drop the existing context nav below the site header and de-dupe the logo */
body:has(#site-header) #main-nav { top: var(--sh-h); }
body:has(#site-header) #main-nav .nav-logo { display: none; }
@media (min-width: 769px) {
  body:has(#site-header) #main-nav .nav-back {
    position: static; transform: none; left: auto; top: auto;
  }
}
/* Posts: clear both bars (case-study heroes are full-bleed, bars overlay them) */
body:has(#site-header) .post { padding-top: 194px; }

/* HERO */
.cs-hero {
  min-height: 72vh; display: flex; flex-direction: column;
  justify-content: flex-end; position: relative; overflow: hidden;
  padding: 0;
}
.cs-hero-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg,#1a1a18 0px,#1a1a18 1px,#222220 1px,#222220 18px);
}
.cs-hero-bg img { width:100%; height:100%; object-fit:cover; display:block; }
.cs-hero-overlay { position:absolute; inset:0; background: linear-gradient(to top, rgba(4,14,18,0.96) 0%, rgba(6,20,24,0.7) 50%, rgba(0,0,0,0.2) 100%); }
.cs-hero-content {
  position: relative; z-index: 2;
  padding: 0 72px 72px;
  max-width: 1280px; margin: 0 auto; width: 100%;
}
.cs-eyebrow {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.cs-hero .cs-eyebrow { color: #7ec9c8; }
.cs-eyebrow::before { display:none; }
.cs-hero-title {
  font-family: var(--serif); font-size: clamp(48px, 6vw, 88px);
  font-weight: 300; line-height: 1.05; color: #fff; margin-bottom: 20px;
}
.cs-hero-title em { font-style: italic; color: rgba(255,255,255,0.55); }
.cs-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tag {
  font-family: var(--sans); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; padding: 6px 13px;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.6);
}
.cs-hero-site {
  display: inline-block; margin-top: 22px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 4px; transition: color .2s, border-color .2s;
}
.cs-hero-site:hover { color: var(--teal); border-color: var(--teal); }

/* LAYOUT */
.cs-inner { max-width: 1280px; margin: 0 auto; padding: 0 72px; }
.reveal { opacity:0; transform:translateY(24px); transition:opacity .85s ease, transform .85s ease; }
.reveal.visible { opacity:1; transform:none; }

/* META BAR */
.cs-meta {
  background: var(--bg-dark); padding: 0;
}
.cs-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.07);
}
.cs-meta-item {
  padding: 32px 36px; border-right: 1px solid rgba(255,255,255,0.07);
}
.cs-meta-label {
  font-family: var(--sans); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 7px;
}
.cs-meta-val {
  font-family: var(--serif); font-size: 18px; color: #fff; line-height: 1.25;
}

/* OVERVIEW */
.cs-overview { padding: 100px 0; }
.cs-overview-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.cs-section-label {
  font-family: var(--sans); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal);
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.cs-section-label::before { display:none; }
.cs-h2 { font-family: var(--serif); font-size: clamp(32px, 3.5vw, 52px); font-weight: 300; line-height: 1.1; color: var(--ink); margin-bottom: 24px; }
.cs-h2 em { font-style:italic; color:var(--teal); }
.cs-body { font-size: 15px; color: var(--ink-mid); line-height: 1.9; margin-bottom: 18px; }

/* CHALLENGE */
.cs-challenge { padding: 80px 0; background: var(--bg-off); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cs-challenge-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.cs-callout {
  border-left: 2px solid var(--teal); padding-left: 28px; margin-top: 28px;
}
.cs-callout p { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); line-height: 1.55; }

/* WORK DONE */
.cs-work { padding: 100px 0; }
.cs-work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 56px; }
.cs-work-item {
  padding: 36px 32px; background: var(--bg-off);
  border: 1px solid var(--rule);
}
.cs-work-num { font-family: var(--serif); font-size: 11px; color: var(--teal); letter-spacing: .05em; margin-bottom: 14px; }
.cs-work-title { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 10px; line-height: 1.15; }
.cs-work-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.75; }

/* GALLERY */
.cs-gallery { padding: 0 0 100px; }
.cs-gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 3px; }
.cs-gallery-item {
  background: repeating-linear-gradient(45deg,#e0ddd6 0px,#e0ddd6 1px,#ebe8e2 1px,#ebe8e2 12px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cs-gallery-item img { width:100%; height:100%; object-fit:cover; display:block; }
.cs-gallery-item span { font-family:var(--sans); font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-light); }
.cs-gi-a { grid-column: span 7; aspect-ratio: 16/9; }
.cs-gi-b { grid-column: span 5; aspect-ratio: 80/63; }
.cs-gi-c { grid-column: span 4; aspect-ratio: 1; }
.cs-gi-d { grid-column: span 4; aspect-ratio: 1; }
.cs-gi-e { grid-column: span 4; aspect-ratio: 1; }
.cs-gi-feature { grid-column: span 12; aspect-ratio: 16/9; }
.cs-gi-half { grid-column: span 6; aspect-ratio: 4/3; }
.cs-gi-third { grid-column: span 4; aspect-ratio: 4/3; }
.cs-gi-quarter { grid-column: span 3; aspect-ratio: 1; }

/* OUTCOME */
.cs-outcome { padding: 100px 0; background: var(--bg-dark); }
.cs-outcome .cs-section-label { color:rgba(255,255,255,0.4); }
.cs-outcome .cs-section-label::before { background:rgba(255,255,255,0.2); }
.cs-outcome .cs-h2 { color: #fff; }
.cs-outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; margin-top: 0; }
.cs-outcome-body { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.9; }
.cs-results { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.cs-result-item { display: flex; align-items: flex-start; gap: 20px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }
.cs-result-icon { font-family: var(--serif); font-size: 32px; color: var(--teal); line-height:1; flex-shrink:0; }
.cs-result-text strong { display:block; font-family:var(--sans); font-size:12px; letter-spacing:.06em; color:#fff; font-weight:500; margin-bottom:4px; }
.cs-result-text span { font-size:12.5px; color:rgba(255,255,255,0.45); line-height:1.6; }

/* CLIENT QUOTE */
.cs-quote {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.cs-quote-inner {
  max-width: 880px; margin: 0 auto; padding: 0 72px;
  text-align: center;
}
.cs-quote-mark {
  font-family: var(--serif); font-size: 80px; line-height: 1;
  color: var(--teal); font-style: italic; margin-bottom: 8px;
}
.cs-quote blockquote {
  font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 300; font-style: italic; line-height: 1.35;
  color: var(--ink); margin: 0 auto 32px; max-width: 760px;
}
.cs-quote-attr {
  font-family: var(--sans); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-light);
  display: inline-flex; align-items: center; gap: 14px;
}
.cs-quote-attr::before {
  content: none;
}

/* NAV CASES */
.cs-nav { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.cs-nav-item {
  padding: 52px 72px; display: flex; flex-direction: column;
  text-decoration: none; border-top: 1px solid var(--rule); transition: background .3s;
}
.cs-nav-item:first-child { border-right: 1px solid var(--rule); }
.cs-nav-item:hover { background: var(--teal-light); }
.cs-nav-dir { font-family:var(--sans); font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-light); margin-bottom:8px; }
.cs-nav-title { font-family:var(--serif); font-size:28px; color:var(--ink); line-height:1.15; }
.cs-nav-title em { font-style:italic; color:var(--teal); }

/* FOOTER */
.cs-footer {
  background: var(--bg-dark); padding: 36px 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cs-footer-logo img { height:32px; width:auto; filter:brightness(0) invert(1); opacity:.5; }
.cs-footer-copy { font-size:11px; color:rgba(255,255,255,0.25); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cs-inner { padding: 0 40px; }
  .cs-hero-content { padding: 0 40px 60px; }
  .cs-overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-challenge-inner { grid-template-columns: 1fr; gap: 40px; }
  .cs-outcome-grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-work-grid { grid-template-columns: repeat(2,1fr); }
  .cs-meta-grid { grid-template-columns: repeat(2,1fr); }
  .cs-nav-item { padding: 40px; }
}
@media (max-width: 768px) {
  nav { padding: 12px 16px; flex-wrap: wrap; gap: 10px 12px; }
  nav.scrolled { padding: 10px 16px; }
  /* Site header (mobile) — links collapse into a hamburger dropdown */
  #site-header { padding: 0 16px; }
  #site-header .sh-logo img { height: 18px; }
  #site-header .sh-toggle { display: flex; }
  #site-header .sh-nav {
    position: fixed; top: var(--sh-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--teal-dark);
    padding: 4px 18px 12px;
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 28px rgba(0,0,0,0.28);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform .26s ease, opacity .26s ease;
    max-height: calc(100vh - var(--sh-h)); overflow-y: auto;
  }
  #site-header .sh-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  #site-header .sh-nav a {
    font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.86);
    padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  #site-header .sh-nav a:last-child { border-bottom: none; }
  body:has(#site-header) #main-nav { justify-content: flex-end; }
  body:has(#site-header) .post { padding-top: 156px; }
  .nav-logo { order: 1; flex: 0 0 auto; }
  .nav-logo img { height: 32px; }
  .nav-book { order: 2; margin-left: auto; padding: 8px 14px; font-size: 9.5px; }
  .nav-back { order: 3; flex: 1 1 100%; font-size: 9.5px; }
  .cs-inner { padding: 0 24px; }
  .cs-hero-content { padding: 0 24px 48px; }
  .cs-work-grid { grid-template-columns: 1fr; }
  .cs-meta-grid { grid-template-columns: 1fr 1fr; }
  .cs-gallery-grid { grid-template-columns: 1fr; gap: 8px; }
  .cs-gi-a, .cs-gi-b, .cs-gi-c, .cs-gi-d, .cs-gi-e, .cs-gi-feature, .cs-gi-half, .cs-gi-third, .cs-gi-quarter { grid-column: 1 / -1 !important; aspect-ratio: 4/3; }
  .cs-nav { grid-template-columns: 1fr; }
  .cs-nav-item:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
  .cs-nav-item { padding: 36px 24px; }
  .cs-footer { flex-direction: column; gap: 16px; padding: 28px 24px; }
  .cs-overview { padding: 64px 0; }
  .cs-challenge { padding: 52px 0; }
  .cs-work { padding: 64px 0; }
  .cs-outcome { padding: 64px 0; }
  .cs-quote { padding: 72px 0; }
  .cs-quote-inner { padding: 0 24px; }
  .cs-quote-mark { font-size: 56px; }
}

@media (max-width: 480px) {
  nav { padding: 10px 14px; gap: 8px 10px; }
  nav.scrolled { padding: 8px 14px; }
  .nav-logo img { height: 28px; }
  .nav-back { font-size: 10px; }
  .nav-book { font-size: 10px; padding: 8px 12px; }
  #site-header { padding: 0 14px; }
  #site-header .sh-logo img { height: 16px; }

  .cs-inner { padding: 0 18px; }
  .cs-hero-content { padding: 0 18px 40px; }
  .cs-hero { min-height: 60vh; }
  .cs-hero-title { font-size: clamp(36px, 10vw, 56px); }

  /* Body copy on case studies — readable */
  .cs-body { font-size: 14px; line-height: 1.7; }
  .cs-work-desc { font-size: 14px; line-height: 1.7; }
  .cs-result-text span { font-size: 13.5px; }
  .cs-footer-copy { font-size: 11px; }

  .cs-meta-grid { grid-template-columns: 1fr; gap: 24px; }
  .cs-work-item { padding: 28px 22px; }
  .cs-nav-item { padding: 28px 18px; }
}


/* ── INLINE CTA (between sections) ─────────────────────────── */
.cs-inline-cta {
  padding: 80px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: var(--teal-dark);
}
.cs-inline-cta-title {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; color: #fff; line-height: 1.1; margin: 0;
}
.cs-inline-cta-title em { font-style: italic; color: rgba(255,255,255,0.55); }
.cs-inline-cta-sub {
  font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.6; margin: 0; max-width: 520px;
}
.cs-inline-cta-btn {
  display: inline-block; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark);
  background: #fff; padding: 16px 28px; text-decoration: none;
  cursor: pointer; border: none; transition: background .2s, color .2s;
  margin-top: 4px;
}
.cs-inline-cta-btn:hover { background: var(--teal); color: #fff; }

@media (max-width: 768px) {
  .cs-inline-cta { padding: 56px 22px; gap: 18px; }
}

/* ── FOOTER BOOK LINK ──────────────────────────────────────── */
.cs-footer-book {
  font-family: var(--sans); font-size: 11px; letter-spacing: .08em;
  text-transform: none; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color .2s;
  cursor: pointer; background: none; border: none; padding: 0;
}
.cs-footer-book:hover { color: var(--teal); }

/* ── MODAL BOOKING ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(24,24,22,0.7); z-index: 500;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg); width: min(92vw, 580px); padding: 52px 48px;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--ink-mid); line-height: 1;
}
.modal-title {
  font-family: var(--serif); font-size: 36px; font-weight: 300;
  color: var(--ink); margin-bottom: 8px;
}
.modal-title em { font-style: italic; color: var(--teal); }
.modal-sub {
  font-size: 13.5px; color: var(--ink-mid); margin-bottom: 32px; line-height: 1.7;
}
.cal-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px;
}
.cal-option {
  border: 1px solid var(--rule); padding: 20px; cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none; display: block;
}
.cal-option:hover { border-color: var(--teal); background: var(--teal-light); }
.cal-option-icon { font-size: 20px; margin-bottom: 8px; color: var(--teal); }
.cal-option-title {
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 4px; font-weight: 500;
}
.cal-option-desc { font-size: 12px; color: var(--ink-light); }
.cal-option-info {
  font-size: 12px; color: var(--ink-mid); line-height: 1.6; margin-top: 10px;
}
.cal-direct-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--teal-dark); color: #fff;
  text-decoration: none; font-family: var(--sans); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s; margin-top: 8px;
}
.cal-direct-link:hover { background: var(--teal); }
.cal-note {
  font-size: 11px; color: var(--ink-light); text-align: center;
  margin-top: 16px; line-height: 1.6;
}
@media (max-width: 640px) {
  .modal-box { padding: 40px 28px; }
  .modal-title { font-size: 28px; }
  .cal-options { grid-template-columns: 1fr; }
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; padding: 0;
  z-index: 998;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal); }
.back-to-top svg { width: 18px; height: 18px; display: block; }
@media (max-width: 768px) {
  .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}

/* ── LIGHTBOX (gallery image viewer with prev/next) ────────── */
.cs-gallery-item img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; background: rgba(24,24,22,0.96);
  z-index: 1000; display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px; color: rgba(255,255,255,0.5);
  font-size: 26px; cursor: pointer; background: none; border: none; line-height: 1;
  transition: color .2s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.5);
  padding: 16px; line-height: 1; transition: color .2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { color: #fff; }
.lightbox-nav .k62-icon { width: 34px; height: 34px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 600px) {
  .lightbox-prev { left: 2px; }
  .lightbox-next { right: 2px; }
  .lightbox-nav .k62-icon { width: 26px; height: 26px; }
}
