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

:root {
  /* DS tokens */
  --bg:           #FBFBFA;
  --surface:      #ffffff;
  --subtle:       #F2EEEA;
  --border:       #E7E2DE;
  --border-strong:#D5D1CC;
  --headliner:    #09053a;
  --copy:         #09053a;
  --alt1:          #f1b761;
  --alt2:         #7df27a;
  --alt3:         #a7a4ff;
  --alt4:         #d52f9b;
  --alt-light:    rgba(57, 57, 57, 0.08);
  --alt-border:   rgba(36, 36, 36, 0.18);

  --font-sm:    14px;
  --font-md:    16.5px;
  --font-lg:    18px;
  --font-xl:    22px;
  --font-xxl:   28px;

  --sidebar-w: 272px;
  --font-display: "Work Sans", sans-serif;
  --font-body:    "Work Sans", sans-serif;

  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px (Base) */
  --space-6: 1.5rem;  /* 24px */
  --space-8: 2rem;    /* 32px */
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-md);
  background: var(--bg);
  color: var(--copy);
  display: flex;
}

.full-span-header{
      width:100%;
      padding:.75rem;
      border-bottom: 1px solid var(--border);
      margin:0;
      position:fixed;
      background-color: var(--bg);
      display:flex;
      align-items:center;
      gap:8px;
      z-index:150;
      transform: translateY(0);
      transition: transform .25s ease;
}
.full-span-header.hidden {
      transform: translateY(-100%);
}
.full-span-header a{
  color: var(--copy);
  text-decoration:none;
}
.full-span-header a:hover{
  text-decoration:underline;
}
.name{
  font-weight:600;
}
.header-right{
  margin:0 8px 0 auto;
  display:flex;
  align-items:center;
  gap:1rem;
  font-size: var(--font-sm);
}

/* -- HOME ----------------*/
.cs-btn-group {
  display: flex;
  gap: 1rem;
}
.cs-link-out{
  margin:2rem 0 0 0;
}
.btn{
  padding: .25rem .75rem;
  border-radius: .25rem;
  text-decoration: none;
  display: inline-flex;   /* was implicitly inline */
  align-items: center;    /* vertically centers icon + text */
  gap: .375rem;           /* replaces any margin you had between text and icon */
}
.primary{
  border: 1px solid var(--copy);
  color: var(--copy);
}
.primary:hover,
.primary:focus-visible {
  background: var(--subtle);
}

.secondary{
  color: var(--copy);
  border: 1px solid color-mix(in srgb, var(--copy) 40%, transparent);
}
.secondary:hover,
.secondary:focus-visible {
  background: var(--subtle);
}

.tertiary{
  color: color-mix(in srgb, var(--copy) 60%, var(--copy));
}
.tertiary:hover,
.tertiary:focus-visible {
  background: var(--subtle);
}

.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--alt1);
  color: var(--copy);
}
.text-link:hover {
  text-decoration:underline;
}

.cs-container{
  border: 1px solid var(--border-strong);
  padding: .3rem 2rem 1rem 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
}

.landing-container-line{
  padding:0;
  margin: 3rem 0;
}

/* ── HAMBURGER NAV (case study pages) ────────────────────── */

.cs-menu-btn {
  width: 32px;
  height: 32px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copy);
  flex-shrink: 0;
  transition: border-color .15s;
  border:none;
  border-radius:6px;
}
.cs-menu-btn:hover {
  background: var(--subtle);
}

.cs-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  max-width: 80vw;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  z-index: 200;
}
.cs-nav.open { transform: translateX(0); }

.cs-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9,5,58,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 190;
}
.cs-nav-backdrop.open { opacity: 1; pointer-events: all; }

.current{
      border-left:2px solid color-mix(in srgb, var(--copy) 30%, transparent);
    }

.cs-nav .nav-section-label {
  margin: 20px 0 10px 0;
  font-size: var(--font-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--headliner) 70%, transparent);
  text-transform: uppercase;
}

.cs-nav a {
  display: block;
  font-size: var(--font-md);
  color: var(--copy);
  text-decoration: none;
  padding: 4px 10px;
  margin:6px 0 0 -10px;
  line-height: auto;
  transition: color .15s, border-color .15s;
}
.cs-nav a:hover {
  color: var(--headliner);
  text-decoration:underline;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.project-type{
  padding:1px 4px;
  border-radius:8px;
  margin:0 .2rem;
}

.type-leadership{
  background-color: var(--alt1);
}
.type-discovery-design{
  background-color: var(--alt2);
}
.type-research{
  background-color: var(--alt3);
}

.section-eyebrow {
  font-size: var(--font-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--headliner) 90%, transparent);
  margin-bottom: 10px;
}

.home-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3vw, 48px);
  color: var(--headliner);
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin-bottom: 32px;
}

.content-block-home{
  margin: 80px 0 20px 0;
  padding: 80px 0 0 0;
  border-top:1px solid var(--border);
}

.home-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 28px);
  color: var(--headliner);
  line-height: 1;
  letter-spacing: -0.2px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--headliner);
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin-bottom: 32px;
}

/* Content blocks */
.content-block {
  padding: 0;
  margin:40px 0 24px 0;
}

p{
  font-size: var(--font-md);
  color: var(--copy);
  line-height: 1.8rem;
  margin:4px 0 16px 0;
}

h2{
  font-family: var(--font-display);
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--headliner);
  margin: 0 0 16px 0;
}
h3{
font-size: var(--font-lg);
  font-weight: 600;
  margin:32px 0 0 0;
}

.block-body {
  font-size: var(--font-md);
  color: var(--copy);
  line-height: 1.6;
  font-weight: 400;
  margin: 0 0 4rem 0;
}

.block-body ul {
  margin:4px 0;
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.block-body ul li {
    padding-left: 4px;
}
.block-body ul li::marker { color: var(--copy); }
.block-body strong { color: var(--headliner); font-weight: 400; }

table{
    width:100%;
    margin: 24px 0;
    padding:0;
    border-collapse: collapse;
}
tr{
    margin:0;
    padding:0;
}
td{
    border: 1px solid var(--border-strong);
    margin:0;
    padding:.5rem;

}

/* ── CASE STUDY IMAGES ────────────────────────────────────── */
.img-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 2rem 0;
  border: 1px solid var(--border);
  padding:40px 0 16px 0;
  border-radius: 0.75em;
  background: white;
  overflow: hidden;
}

.img-figure {
  border-radius: 0.75em;
  display: flex;
  flex-direction: column;
}
.img-figure img {
  width: 100%;
  display: block;
  border-radius: 8px;
  overflow:hidden;
  border: 1px solid var(--border);
  overflow:hidden;
}

.img-figure figcaption {
  font-size: var(--font-md);
  font-weight: 400;
  color: var(--copy);
  text-align: center;
  padding: 24px 16px;
  font-style:italic;
}

/* ── BEFORE/AFTER TOGGLE ─────────────────────────────────── */
.img-toggle, .img-single {
  margin: 4rem 0;
  border: 1px solid var(--border);
  border-radius: .75em;
  background: white;
  overflow: hidden;
  padding: 16px;
  text-align:center;
}

.img-toggle-bar {
  display: inline-flex;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 12px;
  gap:6px;
}

.img-toggle-btn {
  font-family: var(--font-body);
  font-size: var(--font-sm);
  font-weight: 400;
  color: var(--copy);
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background .15s, color .15s;
  border: 1px solid var(--border-strong);
  width:80px;
}
.img-toggle-btn:hover{
    color: color-mix(in srgb, var(--copy) 70%, transparent)
}

.img-toggle-btn.active {
  background: var(--subtle);
  color: var(--headliner);
  font-weight: 400;
  border: 1px solid var(--border-strong);
}

.img-toggle[data-state="after"] .img-toggle-before { display: none; }
.img-toggle[data-state="before"] .img-toggle-after { display: none; }

/* -- Landing page --*/

.landing-header-wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 64px;
  background-color:var(--alt3);
}
.landing-header-content{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 auto;
}

/* ── STANDALONE CASE STUDY PAGES ─────────────────────────── */
html:has(body.cs-page) {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

body.cs-page {
  display: block;
  height: auto;
  overflow: auto;
}

.cs-page-wrap {
  max-width: 760px;
  margin: 96px auto;
  padding: 48px 40px 80px;
}

.cs-page-wrap .img-toggle, .cs-page-wrap .img-single {
  position: relative;
  width: min(1080px, 100vw);
  left: 50%;
  transform: translateX(-50%);
  margin-bottom:4rem;
}

.cs-page-wrap .img-home{
  /*position: relative;
  width: min(1000px, 100vw);
  left: 50%;
  transform: translateX(-50%);*/
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  height:300px;
}
.cs-page-wrap .img-home img{
  width: 120%;
  margin:2.5rem 0 0 2.5rem;
  border-radius:.75rem;
}
@media (max-width: 768px) {
  .img-pair { grid-template-columns: 1fr; padding:16px; }
  .cs-page-wrap { padding: 32px 20px 64px; }
  .header-right { gap:.5rem; }
  .header-right a:first-child { display:none; }
}


/* --- MATERIAL ICONS --*/

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}
/* Rules for sizing the icon. */
.material-icons.md-16 { font-size: 16px; }
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }