/* ==========================================================================
   Weronika Kaczmarek — portfolio
   Plain CSS rebuild of the Framer site. Desktop values were measured from the
   live 1440px layout; tablet/mobile follow Framer's 810px / 1440px breakpoints.
   ========================================================================== */

/* ---------- Fonts (self-hosted; General Sans via Fontshare, Inter) ---------- */
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-300-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-300-latinext.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-300i-latin.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-300i-latinext.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-400-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-400-latinext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-400i-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-400i-latinext.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0F2369;
  --accent: #0D229E;
  --ink-body: #232846;      /* case-study paragraphs */
  --ink-intro: #2C374D;     /* home/about intro */
  --ink-nav: rgba(11, 24, 71, 0.9);
  --ink-muted: rgba(11, 24, 71, 0.7);
  --ink-label: #393E50;
  --ink-hint: #646E97;
  --lavender: #EEF0FA;
  --lavender-work: rgba(228, 232, 240, 0.6);
  --lavender-footer: rgba(229, 235, 247, 0.9);
  --tile: #FAFAFA;
  --band: #F7F8FA;
  --line: rgba(15, 35, 105, 0.12);
  --pill-border: #CFD1D5;
  --grid: url("../m0UXViPlAkpheZpPfvj0tsV9Ra4.png");

  --font-head: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 500; color: var(--navy); }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; color: var(--navy); font-weight: 400; }
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Nav — sticky, blurred
   ========================================================================== */
.site-header {
  position: sticky;
  top: 24px;
  z-index: 50;
  height: 60px;
  margin: 24px auto -84px;          /* overlays the hero, like the original */
  width: min(1200px, calc(100% - 2 * var(--gutter)));
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px 0 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.nav__menu { display: contents; }
.nav__brand { font-family: var(--font-head); font-weight: 500; font-size: 20px; line-height: 24px; color: var(--navy); white-space: nowrap; }
.nav__links { display: flex; gap: 9px; margin: 0 auto; }
.nav__link, .nav__cta {
  font-size: 18px; line-height: 27px; font-weight: 300; color: var(--ink-nav);
  padding: 6px 12px; border-radius: 48px;
  transition: background-color .2s ease, color .2s ease;
}
.nav__link:hover, .nav__cta:hover { background: rgba(15, 35, 105, 0.06); color: var(--navy); }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 400; }
.nav__toggle { display: none; }

/* ==========================================================================
   Shared bits
   ========================================================================== */
.grid-bg { background: #fff var(--grid) center top / cover no-repeat; }
.eyebrow { font-family: var(--font-body); font-size: 18px; line-height: 27px; font-weight: 400; letter-spacing: 0; color: var(--ink-label); text-transform: uppercase; }
.pill {
  display: inline-flex; align-items: center;
  padding: 2px 11px;
  border: 1px solid var(--pill-border); border-radius: 40px; background: #fff;
  font-size: 12px; line-height: 17px; font-weight: 400; color: var(--navy);
  white-space: nowrap;
}
/* Pills shrink on smaller screens, like Framer's (sized down from Framer's at Weronika's request) */
@media (max-width: 1439.98px) { .pill { font-size: 10.5px; line-height: 15px; padding: 2px 10px; } }
@media (max-width: 809.98px) { .pill { font-size: 10px; line-height: 14px; padding: 1px 9px; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* Stat tile: "46% → 23%" */
.stat { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; padding: 20px 12px; }
.stat__num { font-family: var(--font-head); font-weight: 500; font-size: 30px; line-height: 36px; letter-spacing: -0.01em; color: #10236A; white-space: nowrap; }
.stat__label { font-size: 14px; line-height: 21px; font-weight: 300; color: var(--ink-muted); max-width: 22ch; }
.arrow { font-family: var(--font-body); font-weight: 300; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero { min-height: 642px; display: flex; align-items: center; padding: 120px 0 60px; }
.hero__inner { width: min(1200px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 0 40px; }
.hero__title { font-size: 63px; line-height: 1.2; letter-spacing: -1.34px; color: var(--accent); }
.hero__sub { margin-top: 10px; font-family: var(--font-head); font-weight: 400; font-size: 40px; line-height: 48px; letter-spacing: -0.4px; color: #102369; max-width: 600px; }
.hero__intro { margin-top: 40px; max-width: 480px; font-size: 18px; line-height: 27px; font-weight: 300; font-style: italic; color: var(--ink-intro); }

/* Logo marquee */
.logos { position: relative; overflow: hidden; padding: 54px 0 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__track { display: flex; width: max-content; gap: 112px; padding-right: 112px; animation: marquee 32s linear infinite; }
.logos__track img { width: 72px; height: 30px; object-fit: contain; flex: none; }
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .logos__track [aria-hidden="true"] { display: none; } }

/* ==========================================================================
   Home / Case studies — Selected Work
   ========================================================================== */
.panel { margin: 0 var(--gutter); border-radius: 8px; }
.work { background: var(--lavender-work); padding: 100px 40px 72px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 64px; }
.section-head h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.01em; color: #12256A; }
.section-head p { margin-top: 32px; font-size: 18px; line-height: 27px; font-weight: 300; color: var(--ink-nav); }

.projects { display: flex; flex-direction: column; gap: 24px; max-width: 1312px; margin: 0 auto; }
.project {
  position: relative;
  display: grid;
  grid-template-columns: 843fr 469fr;
  min-height: 666px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.project__media { position: relative; overflow: hidden; background: #fff; }
.project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__body { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.project__title { margin-top: 40px; font-size: 30px; line-height: 36px; letter-spacing: -0.01em; color: #10236A; }
.project__desc { margin-top: 46px; font-size: 14px; line-height: 21px; font-weight: 300; color: var(--ink-muted); }
.project__stats { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.project__stats .stat { min-height: 131px; border: 0.5px solid #E3E4E9; border-radius: 4px; background: #fff; }
.project__stats .stat__num { font-weight: 400; font-size: 32px; line-height: 38px; color: #12256A; }
.project__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.project__link:focus-visible { outline: none; }
.project:has(.project__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   Testimonials — card stack
   ========================================================================== */
.testimonials { overflow: clip; margin-top: 24px; background: rgba(238, 242, 250, 0.6); padding: 100px 24px 72px; }
.testimonials .section-head { margin-bottom: 40px; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 22px; isolation: isolate; }
.stack__pile { position: relative; width: var(--pile-w, 560px); height: var(--pile-h, 560px); max-width: 100%; }
.stack__card {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  left: 50%; top: 50%;
  width: var(--card, 440px);
  min-height: var(--card, 440px);
  padding: 30px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
  text-align: left;
  color: var(--navy);
  font-family: var(--font-body);
  cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.stack__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.stack__quote { display: block; font-size: 17px; line-height: 25.5px; font-weight: 400; letter-spacing: -0.005em; }
.stack__who { display: flex; align-items: center; gap: 12px; text-align: left; }
.stack__who > span { display: flex; flex-direction: column; gap: 2px; }
.stack__who img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; flex: none; }
.stack__name { display: block; font-size: 16px; font-weight: 400; letter-spacing: -0.01em; }
.stack__role { display: block; font-size: 13px; line-height: 1.35; font-weight: 300; }
.stack__meta { display: flex; gap: 12px; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-hint); }
.stack__meta [aria-live] { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Footer — Let's Connect!
   ========================================================================== */
.footer { margin: 24px var(--gutter) 24px; padding: 48px 48px 40px; border-radius: 8px; background: var(--lavender-footer); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__title { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; color: #10236A; }
.copy-email {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 8px 0 20px; border: 0; border-radius: 8px; background: #fff; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--navy);
}
.copy-email__text { position: relative; display: grid; }
.copy-email__text > span { grid-area: 1 / 1; transition: opacity .2s ease, transform .3s var(--ease-out); }
.copy-email__done { opacity: 0; transform: translateY(6px); }
.copy-email.is-copied .copy-email__addr { opacity: 0; transform: translateY(-6px); }
.copy-email.is-copied .copy-email__done { opacity: 1; transform: none; }
.copy-email__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; transition: background .2s ease; }
.copy-email:hover .copy-email__icon { background: rgba(15, 35, 105, .06); }
.footer__rule { height: 1px; background: rgba(15, 35, 105, .15); margin: 32px 0 24px; border: 0; }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 18px; line-height: 27px; font-weight: 300; color: var(--navy); }
.footer__copy { display: flex; align-items: center; gap: 6px; }
.footer__social { display: flex; gap: 10px; justify-self: end; }
.footer__social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: var(--navy); transition: background .2s ease; }
.footer__social a:hover { background: rgba(15, 35, 105, .08); }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.cs { --cs-left: 100px; --cs-right: 320px; }
.cs-sec { position: relative; padding: 0 var(--cs-right) 0 var(--cs-left); max-width: 1440px; margin: 0 auto; }
.cs-sec + .cs-sec { margin-top: 96px; }
.band { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding-top: 72px; padding-bottom: 72px; }
.band--grid { background: var(--grid) center / cover; box-shadow: none; clip-path: none; max-width: none; padding-left: max(var(--cs-left), calc((100% - 1440px) / 2 + var(--cs-left))); padding-right: max(var(--cs-right), calc((100% - 1440px) / 2 + var(--cs-right))); }
.band--tile { --band: #FAFAFA; }

.cs-hero { max-width: none; padding: 150px max(100px, calc((100% - 1440px) / 2 + 100px)) 80px; }
.cs-hero__grid { display: grid; grid-template-columns: 413px minmax(0, 1fr); gap: 100px; align-items: center; }
.cs-hero__kicker { font-family: var(--font-head); font-size: 14px; line-height: 1.2; font-weight: 400; color: var(--navy); }
.cs-hero h1 { margin-top: 24px; font-size: 48px; line-height: 1.2; letter-spacing: -1.34px; }
.cs-hero__lede { margin-top: 32px; display: grid; gap: 24px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.cs-hero__media { justify-self: center; }
.cs-hero__media img { border-radius: var(--r, 0); max-height: 880px; width: auto; }
.cs-meta { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: 1140px; }
.cs-meta dt { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--navy); }
.cs-meta dd { margin: 8px 0 0; font-size: 14px; line-height: 21px; font-weight: 300; color: var(--ink-muted); }

.cs-kicker { font-family: var(--font-head); font-size: 14px; line-height: 1.2; font-weight: 400; color: var(--navy); text-transform: uppercase; }
.cs h2 { margin-top: 10px; font-size: 30px; line-height: 36px; letter-spacing: -0.01em; color: #10236A; }
.cs h2:first-child { margin-top: 0; }
.cs h3 { margin-top: 48px; font-size: 22px; line-height: 1.2; color: var(--navy); }
.cs h3 + p { margin-top: 16px; }
.prose > * + * { margin-top: 24px; }
.prose > h2 + * { margin-top: 24px; }
.prose > h2:not(:first-child) { margin-top: 64px; }
.prose p, .prose li { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.prose em { font-style: italic; }
.prose strong { color: var(--navy); }
.lead-quote { font-size: 20px !important; line-height: 30px !important; color: #14296A !important; }

.figure { margin-top: 40px; }
.figure img, .figure video { width: 100%; border-radius: var(--r, 0); }
.figure figcaption { margin-top: 20px; text-align: center; font-size: 16px; line-height: 24px; font-style: italic; font-weight: 400; color: var(--ink-body); }
.figure--wide { margin-left: calc(-1 * min(60px, var(--cs-left) - 24px)); margin-right: calc(-1 * min(60px, var(--cs-left) - 24px)); }
.figure--phone { display: flex; justify-content: center; }
.figure--phone video, .figure--phone img { width: min(499px, 100%); border-radius: 16px; }
.figure-pair { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.figure-pair figcaption { margin-top: 16px; text-align: center; font-size: 16px; line-height: 24px; color: var(--ink-body); font-weight: 400; }
.split { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.split--text-left { grid-template-columns: minmax(0, 640px) minmax(0, 316px); justify-content: space-between; }
.split > .prose { margin-top: 0; }

.tiles { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles .stat { min-height: 215px; border-radius: 12px; background: var(--tile); }
.band .tiles .stat, .band--tile .tiles .stat { background: #fff; }
.tiles--plain .stat { min-height: 0; background: none !important; padding: 0; }

/* Icon bullet list (reflection / changes) */
.ticks { display: grid; gap: 24px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 48px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2369' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks strong { font-weight: 500; }

/* "If / Then we expect / To / By / Because" sentence form */
.sentence { margin-top: 24px; display: grid; gap: 16px; }
.sentence div { display: flex; gap: 8px; flex-wrap: wrap; font-size: 16px; line-height: 24px; color: var(--ink-body); }
.sentence b { color: var(--navy); }

/* Tabs (OLX "What we decided to add", "Metric Report") */
.tabs { margin-top: 40px; }
.tabs__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 40px; margin-bottom: 36px; }
.tabs__tab {
  all: unset; cursor: pointer; padding: 2px 0;
  font-family: var(--font-head); font-size: 22px; line-height: 1.4; font-weight: 400; color: rgba(15, 35, 105, .55);
  border-bottom: 1.5px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.tabs__tab:hover { color: var(--navy); }
.tabs__tab[aria-selected="true"] { color: var(--navy); font-weight: 500; border-color: currentColor; }
.tabs__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tabs__panel { display: grid; grid-template-columns: minmax(0, 523px) minmax(0, 1fr); gap: 32px; align-items: start; animation: fade-in .35s ease; }
.tabs__panel[hidden] { display: none; }
.tabs__panel--wide { grid-template-columns: 1fr; }
.tabs__media { display: grid; gap: 8px; }
.tabs__media img { width: 100%; border-radius: 6px; }
.tabs__media--cards img { border-radius: 12px; }
.tabs__text h3 { margin-top: 0; }
.tabs__text p { margin-top: 16px; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }

/* Flywheel guardrail cards */
.cards-3 { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gcard { border-radius: 20px; padding: 32px; min-height: 263px; background: var(--c); }
.gcard__tag { display: inline-flex; height: 32px; align-items: center; padding: 0 15px; border-radius: 100px; background: var(--t); font-size: 12px; font-weight: 500; color: #1D3D14; }
.gcard h3 { margin-top: 12px !important; }
.gcard p { margin-top: 12px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.g-trust { --c: #EBF5EE; --t: #DAEDE0; }
.g-orient { --c: #EBF1F7; --t: #D8E2ED; }
.g-choice { --c: #FBFAF8; --t: #EDE9E1; }

/* Flywheel findings */
.finding { margin-top: 16px; max-width: 763px; padding: 32px; border-radius: 10px; background: #FCEFD8; }
.finding h3 { margin-top: 0 !important; }
.finding p { margin-top: 10px; font-size: 14px; line-height: 21px; font-weight: 500; color: #585858; }

/* Careem customer quotes */
.quotes { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.quotes figure { min-height: 272px; padding: 32px 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; text-align: center; background: rgba(251, 246, 207, .5); }
.quotes blockquote { font-size: 20px; line-height: 1.4; font-weight: 300; color: var(--navy); }
.quotes figcaption { font-size: 14px; font-weight: 300; color: var(--ink-muted); }
.hl { background: linear-gradient(transparent 55%, #FBF0B8 55%); padding: 0 2px; color: var(--navy); font-weight: 500; }

/* "In this case study" scroll-spy (from CaseStudyNav.tsx) */
.toc {
  position: fixed; top: 250px; right: max(48px, calc((100vw - 1440px) / 2 + 48px)); width: 220px; z-index: 20;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
}
.toc.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.toc__title { font-size: 13px; line-height: 19.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: #6B6F80; margin-bottom: 12px; }
.toc__list { position: relative; display: grid; gap: 10px; padding-left: 12px; }
.toc__list::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(20, 40, 80, .15); }
.toc__ind { position: absolute; left: 0; top: 0; width: 2px; border-radius: 2px; background: var(--navy); transition: transform .35s var(--ease-out), height .35s var(--ease-out); }
.toc a { font-size: 13px; line-height: 19.5px; font-weight: 400; color: #6B6F80; transition: color .18s ease; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--navy); }

/* More case studies */
.more { margin-top: 120px; padding: 64px var(--gutter) 72px; background: rgba(249, 249, 249, .6); }
.more h2 { text-align: center; }
.more__grid { margin: 40px auto 0; max-width: 1240px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.more-card { position: relative; display: block; border-radius: 8px; overflow: hidden; background: #fff; }
.more-card__img { aspect-ratio: 612 / 449; overflow: hidden; }
.more-card__img img { width: 100%; height: 100%; object-fit: cover; }
.more-card__body { padding: 24px 80px 32px 24px; }
.more-card h3 { margin-top: 16px; font-size: 30px; line-height: 36px; letter-spacing: -0.01em; }
.more-card p { margin-top: 12px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.more-card__go { position: absolute; right: 24px; bottom: 28px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); }
.cs ~ .footer, .cs .footer { margin-top: 0; }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero { padding: 180px 0 80px; }
.about-hero__grid { width: min(1200px, calc(100% - 2 * var(--gutter))); margin: 0 auto; display: grid; grid-template-columns: 1fr 433px; gap: 64px; align-items: center; padding: 0 74px; }
.about-hero h1 { font-size: 56px; line-height: 1.2; letter-spacing: -1.2px; }
.about-hero__sub { margin-top: 8px; font-family: var(--font-head); font-weight: 500; font-size: 30px; line-height: 36px; letter-spacing: -0.01em; color: #10236A; max-width: 360px; }
.about-hero__photo { width: 100%; aspect-ratio: 433 / 393; object-fit: cover; object-position: center 30%; border-radius: 8px; }
.about-me { width: min(1200px, calc(100% - 2 * var(--gutter))); margin: 100px auto 0; display: grid; grid-template-columns: 547px 593px; justify-content: space-between; gap: 40px; }
.about-me h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; color: #10236A; }
.about-me p { margin-top: 12px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink-body); }
.facts { border-top: 0; }
.facts li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 27px; font-weight: 300; color: var(--ink-nav); }
.facts li:last-child { border-bottom: 0; }
.facts b { font-weight: 500; color: var(--navy); }

.cv { width: min(1210px, calc(100% - 2 * var(--gutter))); margin: 64px auto 0; padding-bottom: 96px; }
.cv h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; color: #10236A; margin-bottom: 36px; }
.cv-row { display: flex; align-items: stretch; }
.cv-rail { position: relative; flex: 0 0 34px; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.cv-dot { width: 12px; height: 12px; margin-top: 30px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(15, 35, 105, .35); transition: background .4s var(--ease-out), border-color .4s var(--ease-out); }
.cv-row.is-open .cv-dot { background: var(--navy); border-color: var(--navy); }
.cv-connector { width: 1px; flex: 1; margin: 6px 0; background: rgba(15, 35, 105, .16); transition: background .5s var(--ease-out); }
.cv-row.is-open .cv-connector, .cv-row:hover .cv-connector { background: rgba(15, 35, 105, .6); }
.cv-body { flex: 1; min-width: 0; padding-left: 24px; border-bottom: 1px dashed rgba(15, 35, 105, .18); }
.cv-trigger { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 20px; width: 100%; padding: 16px 0; cursor: pointer; }
.cv-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.cv-lead { flex: 1; min-width: 0; }
.cv-company { display: block; font-family: var(--font-head); font-size: clamp(24px, 4.4vw, 28px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; color: rgba(15, 35, 105, .28); transition: color .35s ease; }
.cv-row.is-open .cv-company, .cv-row:hover .cv-company { color: var(--navy); }
.cv-meta { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 20px; line-height: 1.4; font-weight: 400; color: rgba(16, 35, 105, .6); }
.cv-arrow { flex: none; color: rgba(16, 35, 105, .6); opacity: .45; transition: opacity .3s ease, transform .4s var(--ease-out); }
.cv-row.is-open .cv-arrow { opacity: 1; transform: rotate(180deg); color: var(--navy); }
.cv-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.cv-row.is-open .cv-panel { grid-template-rows: 1fr; }
.cv-measuring .cv-panel, .cv-measuring .cv-panel * { transition: none !important; }
.cv-panel > div { overflow: hidden; }
.cv-pad { padding-bottom: 30px; max-width: 760px; font-family: var(--font-head); font-size: 15px; line-height: 1.6; font-weight: 400; color: #10236A; }
.cv-points { margin-top: 14px; display: grid; gap: 10px; }
.cv-points li { position: relative; padding-left: 18px; }
.cv-points li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 1px; background: rgba(16, 35, 105, .6); }
@media (prefers-reduced-motion: reduce) { .cv *, .stack__card, .tabs__panel { transition-duration: 1ms !important; animation: none !important; } }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 160px 24px 80px; }
.notfound h1 { font-size: 63px; color: var(--accent); letter-spacing: -1.34px; }
.notfound p { margin-top: 16px; font-size: 18px; color: var(--ink-intro); }
.notfound a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Responsive — tablet (≤1439) and mobile (≤809), matching Framer breakpoints
   ========================================================================== */
@media (max-width: 1439.98px) {
  .cs { --cs-left: 64px; --cs-right: 300px; }
  .cs-hero__grid { grid-template-columns: minmax(0, 413px) minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 1199.98px) {
  .cs { --cs-left: 48px; --cs-right: 48px; }
  .toc { display: none; }
  .project { grid-template-columns: 1.4fr 1fr; min-height: 560px; }
  .about-me { grid-template-columns: 1fr 1fr; }
  .about-hero__grid { padding: 0 24px; }
}
@media (max-width: 1023.98px) {
  .projects { gap: 20px; }
  .project { grid-template-columns: 1fr; min-height: 0; }
  .project__media { aspect-ratio: 4884 / 4104; }
  .project__title, .project__desc, .project__stats { margin-top: 20px; }
  .project__body { padding: 28px 24px 32px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .stat { min-height: 160px; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-hero__grid { grid-template-columns: 1fr 340px; gap: 40px; }
}
@media (max-width: 809.98px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 90px; }
  .site-header { top: 12px; margin-top: 12px; margin-bottom: -72px; }
  .nav { position: relative; padding: 0 8px 0 18px; }
  .nav__brand { font-size: 18px; }
  .nav__toggle { all: unset; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 8px; cursor: pointer; }
  .nav__toggle:focus-visible { outline: 2px solid var(--accent); }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 20px; height: 1.5px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .3s var(--ease-out), background .2s; }
  .nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
  .nav__toggle span::before { top: -6px; }
  .nav__toggle span::after { top: 6px; }
  .nav.is-open .nav__toggle span { background: transparent; }
  .nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  /* Full-height frosted menu, as on Framer: the nav card grows to fill the screen */
  .nav { align-items: flex-start; padding-top: 8px; transition: height .4s var(--ease-out), background-color .3s ease; }
  .nav__brand { line-height: 44px; }
  .nav.is-open { height: calc(100vh - 24px); height: calc(100dvh - 24px); background: rgba(255, 255, 255, .5); }
  .nav__menu { display: flex; flex-direction: column; justify-content: center; gap: 2px; position: absolute; left: 0; right: 0; top: 60px; bottom: 60px; padding: 0 24px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transition: opacity .3s ease .1s; }
  .nav__links { display: flex; flex-direction: column; gap: 2px; margin: 0; }
  .nav__link, .nav__cta { display: block; padding: 6px 12px; font-size: 14px; line-height: 21px; }
  html.menu-open { overflow: hidden; }

  .hero { min-height: 0; padding: 130px 0 40px; }
  .hero__inner { padding: 0 8px; }
  .hero__title { font-size: 40px; letter-spacing: -0.8px; }
  .hero__sub { font-size: 26px; line-height: 1.25; }
  .hero__intro { margin-top: 24px; font-size: 16px; line-height: 24px; }
  .logos { padding: 32px 0 24px; }
  .logos__track { gap: 56px; padding-right: 56px; }

  .work, .testimonials { padding: 64px 16px 40px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 28px; }
  .section-head p { margin-top: 16px; font-size: 15px; line-height: 23px; }
  .eyebrow { font-size: 14px; }
  .project__title { font-size: 24px; line-height: 1.2; }
  .stack__card { padding: 24px 20px; gap: 18px; }
  .stack__quote { font-size: 15px; line-height: 1.5; }
  .stack__who img { width: 44px; height: 44px; }
  .project__stats .stat { min-height: 104px; }
  .project__stats .stat__num { font-size: 24px; line-height: 1.2; }
  .stat__num { font-size: 24px; line-height: 1.2; white-space: normal; }

  .footer { padding: 32px 20px 28px; }
  .footer__title { font-size: 26px; }
  .copy-email { font-size: 15px; padding-left: 14px; max-width: 100%; }
  .footer__bottom { grid-template-columns: 1fr auto; font-size: 14px; line-height: 21px; }
  .footer__built { grid-column: 1 / -1; grid-row: 2; }

  .cs { --cs-left: 20px; --cs-right: 20px; }
  .cs-sec + .cs-sec { margin-top: 64px; }
  .band { padding-top: 48px; padding-bottom: 48px; }
  .cs-hero { padding: 120px 20px 48px; }
  .cs-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-hero h1 { font-size: 34px; letter-spacing: -0.8px; }
  .cs-hero__media img { max-height: 560px; }
  .cs-meta { gap: 20px; }
  .cs h2 { font-size: 24px; line-height: 1.25; }
  .cs h3 { font-size: 20px; margin-top: 36px; }
  .figure--wide { margin-left: 0; margin-right: 0; }
  .split, .split--text-left, .figure-pair, .tabs__panel { grid-template-columns: 1fr; }
  .tabs__list { gap: 4px 20px; }
  .tabs__tab { font-size: 17px; }
  .cards-3, .quotes { grid-template-columns: 1fr; }
  .quotes figure { min-height: 0; }
  .gcard { min-height: 0; padding: 24px; }
  .finding { padding: 22px; }
  .tiles .stat { min-height: 128px; padding: 16px 10px; }
  .more { margin-top: 72px; padding: 48px 16px; }
  .more__grid { grid-template-columns: 1fr; }
  .more-card h3 { font-size: 22px; line-height: 1.25; padding-right: 48px; }

  .about-hero { padding: 120px 0 40px; }
  .about-hero__grid { grid-template-columns: 1fr; padding: 0 8px; gap: 32px; }
  .about-hero h1 { font-size: 40px; }
  .about-hero__sub { font-size: 24px; line-height: 1.25; }
  .about-me { grid-template-columns: 1fr; margin-top: 56px; }
  .facts li { font-size: 16px; line-height: 24px; padding: 12px 8px; }
  .cv-meta { font-size: 15px; }
  .cv-rail { flex-basis: 26px; }
  .cv-body { padding-left: 14px; }
  .cv-dot { margin-top: 24px; }
}

/* Case-studies index: same panel as home, pushed below the fixed-height nav */
.page-top { padding-top: 108px; }
.section-head .h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.01em; color: #12256A; }
@media (max-width: 809.98px) { .page-top { padding-top: 84px; } .section-head .h2 { font-size: 28px; } }
.prose > .cs-kicker + h2, .band > .cs-kicker + h2 { margin-top: 12px; }

/* Flywheel hero: phone cropped by a rounded frame, as on Framer
   (desktop 684×637 frame, phone 407px wide, 40px from the top) */
.cs-hero__crop { justify-self: center; width: 100%; max-width: 684px; height: 637px; padding-top: 40px; border-radius: 32px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.cs-hero__crop img { width: 407px; max-width: none; height: auto; border-radius: 32px; flex: none; }
@media (max-width: 1199.98px) {
  .cs-hero__grid:has(.cs-hero__crop) { grid-template-columns: 1fr; }
  .cs-hero__crop { max-width: none; height: 420px; }
}
@media (max-width: 809.98px) {
  .cs-hero__crop img { width: 263px; border-radius: 21px; }
}

/* Project cards, as on Framer's desktop layout (≥1440px):
   every card sticks 100px from the top and the next one slides over it.
   On the Case Studies page the first card also springs up 150px on load. */
@keyframes card-rise { from { transform: translateY(150px); } }
@media (min-width: 1440px) {
  .project { position: sticky; top: 100px; }
  .page-top .project:first-child { animation: card-rise .9s cubic-bezier(0.22, 1.1, 0.36, 1) both; }
  @supports (animation-timing-function: linear(0, 1)) {
    .page-top .project:first-child { animation-timing-function: linear(0, 0.0224, 0.0795, 0.1582, 0.2488, 0.3438, 0.4379, 0.5273, 0.6097, 0.6837, 0.7488, 0.8048, 0.8521, 0.8914, 0.9234, 0.949, 0.969, 0.9842, 0.9956, 1.0036, 1.0091, 1.0126, 1.0144, 1.0151, 1.015, 1.0142, 1.0131, 1.0118, 1.0103, 1.0089, 1.0075, 1.0062, 1.0051, 1.0041, 1.0032, 1.0024, 1); }
  }
}
@media (prefers-reduced-motion: reduce) { .page-top .project:first-child { animation: none; } }

/* Numbered list (OWNE discovery questions) */
.steps { margin-top: 20px; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; padding-left: 40px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 4px; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); color: var(--navy); font-family: var(--font-head); font-size: 13px; font-weight: 500; }

/* OWNE trust ladder: four rungs */
.ladder { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ladder li { display: flex; flex-direction: column; gap: 8px; padding: 24px 20px; border-radius: 12px; background: #fff; }
.ladder__n { font-family: var(--font-head); font-size: 30px; line-height: 1; font-weight: 500; color: #10236A; }
.ladder strong { font-family: var(--font-head); font-size: 18px; line-height: 1.25; font-weight: 500; color: var(--navy); }
.ladder li > span:last-child { font-size: 14px; line-height: 21px; font-weight: 300; color: var(--ink-muted); }
@media (max-width: 1023.98px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 809.98px) { .ladder { grid-template-columns: 1fr; } }

/* Phones: side-by-side rows always stack (overrides per-row column sizes) */
@media (max-width: 809.98px) {
  .split { grid-template-columns: 1fr !important; }
  .split > img[height="3248"] { width: min(260px, 100%); justify-self: center; }
}
