:root {
  --bg: #eef5ff;
  --bg-deep: #e4eefb;
  --text: #10151d;
  --muted: #667283;
  --blue: #78aef0;
  --blue-strong: #417fc8;
  --blue-ink: #265f9f;
  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .76);
  --line: rgba(91, 122, 158, .18);
  --white-line: rgba(255, 255, 255, .82);
  --shadow: 0 18px 44px rgba(53, 78, 111, .10), 0 4px 14px rgba(53, 78, 111, .06);
  --shadow-soft: 0 10px 24px rgba(53, 78, 111, .08), inset 0 1px 0 rgba(255,255,255,.82);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1240px;

  --fs-label: 13px;
  --fs-body: 17px;
  --fs-title: clamp(28px, 3vw, 42px);
  --fs-display: clamp(52px, 6.1vw, 86px);
  --fw-regular: 400;
  --fw-semibold: 600;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(125, 176, 236, .24), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(197, 220, 248, .52), transparent 36rem),
    radial-gradient(circle at 36% 70%, rgba(151, 192, 240, .16), transparent 42rem),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 50%, #f8fbff 100%);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.48;
  font-weight: var(--fw-regular);
  letter-spacing: -.012em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(58px);
  pointer-events: none;
}
body::before { top: 24vh; left: -11rem; background: rgba(98, 157, 226, .13); }
body::after { right: -9rem; bottom: 9vh; background: rgba(150, 188, 232, .17); }

h1, h2, h3, h4, p, dl, dd, blockquote, figure, ul { margin-top: 0; }
h1, h2, h3, h4, strong { font-weight: var(--fw-semibold); text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
video { width: 100%; height: auto; }
::selection { background: rgba(120, 174, 240, .30); }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(calc(100% - 28px), var(--max));
  min-height: 60px;
  margin: 12px auto 0;
  padding: 8px 10px 8px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(246, 250, 255, .64);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.brand {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  cursor: pointer;
}
.brand__dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.brand__name { font-size: var(--fs-label); font-weight: var(--fw-semibold); color: #324154; }
.nav--desktop { justify-self: center; display: flex; align-items: center; gap: 2px; }
.nav--desktop a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #425064;
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
}
.nav--desktop a:hover { background: rgba(255,255,255,.54); }
.header-cta,
.pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.90);
  background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(227,238,252,.58));
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.header-cta { color: white; background: linear-gradient(145deg, #17202a, #0d1117); border-color: rgba(255,255,255,.10); box-shadow: 0 10px 24px rgba(15,22,31,.18), inset 0 1px 0 rgba(255,255,255,.10); }
.header-cta:hover,
.pill:hover { transform: translateY(-1px); }
.mobile-menu { display: none; }

.eyebrow {
  margin-bottom: 0;
  color: var(--blue-strong);
  font-size: var(--fs-label);
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}
.section {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto 18px;
  padding: clamp(48px, 5.2vw, 70px) clamp(20px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(255,255,255,.65), rgba(238,246,255,.45));
  border: 1px solid var(--white-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(25px) saturate(125%);
  -webkit-backdrop-filter: blur(25px) saturate(125%);
}
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 32px; align-items: end; margin-bottom: 30px; }
.section-head--compact { display: block; }
.section-head h2,
.case h2,
.closing h2 { margin: 10px 0 0; max-width: 820px; font-size: var(--fs-title); line-height: 1.06; letter-spacing: -.03em; }
.section-head > p:last-child { max-width: 530px; margin: 0; color: var(--muted); }
.glass-card {
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.90);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: min(820px, calc(100svh - 84px));
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) 6px 46px;
}
.hero__intro { max-width: 860px; }
.hero__title {
  display: flex;
  flex-direction: column;
  gap: .08em;
  max-width: 920px;
  margin: 22px 0 28px;
  font-size: var(--fs-display);
  line-height: .84;
  letter-spacing: -.048em;
}
.hero__title > span { display: block; }
.hero__title-soft { color: #98a4b3; }
.hero__lead { max-width: 760px; margin-bottom: 0; color: #4d5c6e; font-size: var(--fs-body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill--primary { background: linear-gradient(145deg, #9fcaff, #79afef); color: #102036; border-color: rgba(255,255,255,.84); }
.quick-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  width: min(100%, 860px);
  margin: 42px 0 0 auto;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.90);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.quick-card__portrait { margin: 0; border-radius: 24px; overflow: hidden; min-height: 250px; }
.quick-card__portrait img { width: 100%; height: 100%; object-fit: cover; }
.quick-card__content { position: relative; min-width: 0; }
.quick-card__ambient { position: absolute; inset: 0 auto 0 0; width: 28%; background: radial-gradient(circle at 50% 50%, rgba(111,169,235,.42), transparent 72%); filter: blur(10px); opacity: .75; }
.quick-card__rows { position: relative; margin: 0; }
.quick-card__rows > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.quick-card__rows > div:first-child { border-top: 0; }
.quick-card dt { color: var(--muted); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; font-weight: var(--fw-semibold); }
.quick-card dd { margin: 0; font-weight: var(--fw-semibold); }

.cv .section-head--compact { margin-bottom: 24px; }
.cv .section-head--compact > p:last-child { max-width: 620px; margin: 12px 0 0; color: var(--muted); }
.cv-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
.cv-column > h3 { margin-bottom: 14px; font-size: var(--fs-body); }
.cv-item { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.cv-item__meta { color: var(--blue-strong); font-size: var(--fs-label); font-weight: var(--fw-semibold); }
.cv-item h4 { margin: 0 0 3px; font-size: var(--fs-body); }
.cv-item p { margin-bottom: 0; color: var(--muted); }
.cv-item__role { color: #415064 !important; }
.cv-item ul { margin: 14px 0 0; padding-left: 1.1em; color: #536174; }
.cv-item li + li { margin-top: 6px; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 20px; border-top: 1px solid var(--line); }
.skill-cloud span { padding: 8px 11px; border: 1px solid var(--white-line); border-radius: 999px; background: rgba(255,255,255,.45); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: #47586c; }

.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.meta-grid article { min-height: 90px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 17px; border: 1px solid var(--white-line); border-radius: var(--radius-md); background: rgba(255,255,255,.50); box-shadow: var(--shadow-soft); }
.meta-grid span { color: var(--blue-strong); font-size: var(--fs-label); font-weight: var(--fw-semibold); }
.meta-grid strong { max-width: 290px; line-height: 1.24; }
.note { width: fit-content; max-width: 720px; margin: 12px 0 0; padding: 10px 13px; border-radius: 12px; color: #536174; background: rgba(210,231,254,.48); border: 1px solid rgba(255,255,255,.84); font-size: var(--fs-label); }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 42px; }
.problem-card { min-height: 320px; display: flex; flex-direction: column; padding: 20px; }
.index,
.challenge-grid article > span,
.insight-card > span,
.cjm-grid article > span { color: var(--blue-strong); font-size: var(--fs-label); font-weight: var(--fw-semibold); }
.problem-card h3 { margin: 34px 0 10px; font-size: var(--fs-body); }
.problem-card > p { margin-bottom: 0; color: var(--muted); }
.hypothesis { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.hypothesis b { display: block; margin-bottom: 5px; color: var(--blue-ink); font-size: var(--fs-label); }
.hypothesis p { margin: 0; color: #455467; }

.media-section { margin-top: 44px; }
.media-heading { display: grid; grid-template-columns: .7fr 1fr; gap: 26px; align-items: end; margin-bottom: 14px; }
.media-heading--single { grid-template-columns: .7fr 1fr; }
.media-heading h3,
.solution__lead h3,
.prototype-note h3,
.research-intro h3,
.cjm-block > h3,
.mvp-next h3,
.goal-box h3,
.results-block h3,
.media-split__content h3,
.media-figure h3 { margin: 8px 0 0; font-size: var(--fs-title); line-height: 1.06; letter-spacing: -.03em; }
.media-heading > p { max-width: 560px; margin: 0; color: var(--muted); }
.feature-frame {
  margin: 0;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
}
.feature-frame img { width: 100%; border-radius: 20px; }

.solution { display: grid; grid-template-columns: .66fr 1.34fr; gap: 42px; margin-top: 46px; }
.solution-list article { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.solution-list article:last-child { border-bottom: 1px solid var(--line); }
.solution-list span { color: var(--blue-strong); font-size: var(--fs-label); font-weight: var(--fw-semibold); }
.solution-list h4 { margin: 0 0 6px; font-size: var(--fs-body); }
.solution-list p { margin: 0; max-width: 720px; color: #4e5c6e; }

.results-block { margin-top: 42px; padding: 22px; }
.results-block__head { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: 18px; align-items: start; }
.metric-callout {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(183,215,252,.68), rgba(244,249,255,.74));
  border: 1px solid rgba(255,255,255,.90);
}
.metric-callout span { display: block; color: var(--blue-ink); font-size: var(--fs-label); font-weight: var(--fw-semibold); letter-spacing: .08em; text-transform: uppercase; }
.metric-callout strong { display: block; margin-top: 8px; font-size: 22px; }
.metric-callout p { margin: 10px 0 0; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.result-grid article { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.86); }
.result-grid h4 { margin: 0 0 7px; font-size: var(--fs-body); }
.result-grid p { margin: 0; color: var(--muted); }

.video-section { margin-top: 40px; }
.video-frame { padding: 12px; border-radius: 28px; }
.video-frame video { border-radius: 20px; background: #dde8f6; }

.case--polosa { background: linear-gradient(145deg, rgba(227,239,254,.74), rgba(255,255,255,.57)); }
.project-link { margin-top: 14px; max-width: 100%; justify-content: flex-start; text-align: left; white-space: normal; padding: 12px 18px; min-height: 56px; }
.project-link span { flex: 0 0 auto; }
.hero-media { margin-top: 24px; padding: 12px; overflow: hidden; }
.hero-media img { width: 100%; border-radius: 20px; }
.challenge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 40px; }
.challenge-grid article { min-height: 220px; padding: 20px; }
.challenge-grid h3 { margin: 34px 0 9px; font-size: var(--fs-body); }
.challenge-grid p { margin: 0; color: var(--muted); }
.goal-box { margin-top: 40px; padding: 24px 28px; border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(183,215,252,.68), rgba(244,249,255,.70)); border: 1px solid rgba(255,255,255,.90); box-shadow: var(--shadow-soft); }
.goal-box h3 { max-width: 900px; margin-bottom: 0; }
.research-block,
.jtbd-block,
.cjm-block,
.process-block,
.mvp-next,
.media-split,
.media-grid-2 { margin-top: 42px; }
.research-intro { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; column-gap: 42px; align-items: end; margin-bottom: 18px; }
.research-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 8px; }
.research-intro h3 { margin: 0; }
.research-intro > p:last-child { margin: 0; color: var(--muted); }
.insight-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.insight-card { min-height: 210px; padding: 20px; }
.insight-card h4 { margin: 44px 0 8px; font-size: var(--fs-body); }
.insight-card p { margin: 0; color: var(--muted); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.quote-grid blockquote { min-height: 160px; margin: 0; padding: 20px; display: flex; align-items: flex-end; border: 1px solid rgba(255,255,255,.90); border-radius: var(--radius-lg); background: rgba(255,255,255,.55); box-shadow: var(--shadow-soft); font-weight: var(--fw-semibold); }
.cjm-block > h3 { margin-bottom: 16px; }
.cjm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cjm-grid article { min-height: 220px; padding: 20px; }
.cjm-grid h4 { margin: 34px 0 7px; font-size: var(--fs-body); }
.cjm-grid p { margin: 0; color: var(--muted); }

.media-split { display: grid; grid-template-columns: .74fr 1.26fr; gap: 20px; align-items: start; }
.media-split--tall { grid-template-columns: .78fr 1.22fr; }
.media-split__content p:not(.eyebrow) { color: var(--muted); }
.feature-list { margin: 16px 0 0; padding-left: 1.1em; color: #536174; }
.feature-list li + li { margin-top: 8px; }
.media-split__visual,
.media-figure { padding: 12px; margin: 0; }
.media-figure figcaption { margin-bottom: 12px; }
.media-figure figcaption p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.media-figure img { width: 100%; border-radius: 18px; }
.scroll-frame {
  max-height: 900px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(74,107,145,.26) transparent;
}
.scroll-frame img { width: 100%; border-radius: 18px; }
.media-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.process-block { padding: 20px 22px; border: 1px solid rgba(255,255,255,.92); border-radius: 999px; background: linear-gradient(100deg, rgba(255,255,255,.82), rgba(214,233,255,.72)); box-shadow: 0 13px 30px rgba(52,85,123,.12), inset 0 1px 0 #fff; }
.process-block .eyebrow { margin-bottom: 11px; color: var(--blue-ink); }
.process-line { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #1e2b3a; }
.process-line strong { font-size: var(--fs-body); }
.process-line span { color: var(--blue-strong); font-weight: var(--fw-semibold); }
.mvp-next { display: grid; grid-template-columns: .78fr 1.22fr; gap: 38px; align-items: start; }
.mvp-next > div:first-child > p:last-child { margin: 13px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric-grid article { min-height: 138px; padding: 18px; }
.metric-grid h4 { margin: 0 0 24px; font-size: var(--fs-body); }
.metric-grid p { margin: 0; color: var(--muted); }

.closing { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }
.closing > p:not(.eyebrow) { max-width: 700px; margin: 16px 0 0; color: var(--muted); }
footer { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 22px 6px 34px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: var(--fs-label); }
footer a { font-weight: var(--fw-semibold); }

@media (max-width: 920px) {
  .section-head,
  .solution,
  .research-intro,
  .mvp-next,
  .cv-grid,
  .media-split,
  .results-block__head { grid-template-columns: 1fr; }
  .section-head { gap: 14px; align-items: start; }
  .solution { gap: 20px; }
  .research-intro { gap: 10px; }
  .challenge-grid { grid-template-columns: 1fr 1fr; }
  .insight-rail { grid-template-columns: repeat(2, 1fr); }
  .quote-grid,
  .cjm-grid,
  .media-grid-2,
  .result-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root {
    --fs-body: 16px;
    --fs-title: 28px;
    --fs-display: clamp(50px, 15vw, 62px);
  }

  html { scroll-padding-top: 90px; }
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    min-height: 64px;
    margin-top: 8px;
    padding: 8px 9px 8px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .brand { min-width: 0; }
  .brand__name { display: block; max-width: 145px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .nav--desktop { display: none; }
  .header-cta { min-height: 46px; padding-inline: 16px; }
  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.985);
    pointer-events: none;
    background: rgba(247,251,255,.86);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .mobile-menu a { min-height: 42px; display: flex; align-items: center; padding: 0 13px; border-radius: 16px; background: rgba(255,255,255,.55); font-size: var(--fs-label); font-weight: var(--fw-semibold); }

  .hero {
    width: calc(100% - 24px);
    min-height: auto;
    padding: 78px 8px 34px;
  }
  .hero__title { gap: .085em; margin: 18px 0 22px; line-height: .85; letter-spacing: -.04em; }
  .hero__lead { max-width: 100%; }
  .hero__actions { margin-top: 22px; }
  .quick-card {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 32px;
    padding: 14px;
    border-radius: 28px;
  }
  .quick-card__portrait { min-height: 220px; }
  .quick-card__ambient { width: 44%; }
  .quick-card__rows > div { grid-template-columns: 112px 1fr; gap: 12px; padding: 13px 0; }

  .section { width: calc(100% - 16px); margin-bottom: 10px; padding: 38px 14px; border-radius: 26px; }
  .section-head { margin-bottom: 24px; }
  .cv .section-head--compact { margin-bottom: 18px; }
  .cv-grid { gap: 28px; }
  .cv-item { grid-template-columns: 82px 1fr; gap: 12px; padding: 18px 0; }
  .cv-item ul { padding-left: 1em; }

  .meta-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 24px; }
  .meta-grid article { min-height: 82px; }
  .problem-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 34px; }
  .problem-card { min-height: auto; padding: 18px; }
  .problem-card h3 { margin-top: 26px; }
  .hypothesis { margin-top: 18px; }

  .media-section,
  .solution,
  .results-block,
  .video-section,
  .challenge-grid,
  .goal-box,
  .research-block,
  .jtbd-block,
  .cjm-block,
  .process-block,
  .mvp-next,
  .media-split,
  .media-grid-2 { margin-top: 34px; }

  .media-heading { grid-template-columns: 1fr; gap: 7px; margin-bottom: 12px; }
  .feature-frame,
  .video-frame,
  .hero-media,
  .media-split__visual,
  .media-figure { padding: 8px; border-radius: 24px; }
  .feature-frame img,
  .video-frame video,
  .hero-media img,
  .media-split__visual img,
  .media-figure img { border-radius: 18px; }

  .solution-list article { padding: 14px 0; }
  .results-block { padding: 18px; }
  .metric-callout strong { font-size: 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: 1fr; gap: 8px; }
  .challenge-grid article { min-height: auto; }
  .challenge-grid h3 { margin-top: 26px; }
  .goal-box { padding: 22px 20px; border-radius: 26px; }

  .research-intro { margin-bottom: 14px; }
  .insight-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 10px;
    scrollbar-width: none;
  }
  .insight-rail::-webkit-scrollbar { display: none; }
  .insight-card { min-height: 204px; scroll-snap-align: start; }
  .insight-card h4 { margin-top: 38px; }

  .quote-grid,
  .cjm-grid,
  .media-grid-2 { grid-template-columns: 1fr; gap: 8px; }
  .quote-grid blockquote { min-height: 140px; }
  .cjm-grid article { min-height: 190px; padding: 18px; }
  .cjm-grid h4 { margin-top: 26px; }

  .scroll-frame { max-height: 640px; }
  .process-block { padding: 18px; border-radius: 25px; }
  .process-line { gap: 7px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 3px; }
  .process-line::-webkit-scrollbar { display: none; }
  .process-line strong { white-space: nowrap; }

  .mvp-next { gap: 20px; }
  .metric-grid { grid-template-columns: 1fr; gap: 8px; }
  .metric-grid article { min-height: 132px; }
  .metric-grid h4 { margin-bottom: 20px; }

  .closing { min-height: 44vh; }
  footer { width: calc(100% - 24px); padding-inline: 4px; }
}

@media (max-width: 390px) {
  .brand__name { max-width: 112px; }
  .header-cta { padding-inline: 14px; gap: 12px; }
  .quick-card__rows > div { grid-template-columns: 94px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   v5 — layout refinements
   ========================================================= */
.subsection-heading {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 28px;
  align-items: end;
  margin-top: 42px;
  margin-bottom: 14px;
}
.subsection-heading h3 {
  margin: 0;
  font-size: var(--fs-title);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.subsection-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

/* Restored compact carousel from v3 */
.updated-screens { margin-top: 42px; }
.screen-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, 246px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(74,107,145,.25) transparent;
  padding: 2px 2px 10px;
}
.screen-card {
  scroll-snap-align: start;
  margin: 0;
  padding: 9px;
  border-radius: 25px;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
}
.screen-card img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #eef2f7;
}
.screen-card figcaption {
  padding: 8px 4px 1px;
  color: var(--muted);
  font-size: var(--fs-label);
}

/* SELA results + compact prototype */
.results-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.results-bottom .result-grid { margin-top: 0; }
.compact-prototype {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(229,240,254,.68);
  border: 1px solid rgba(255,255,255,.88);
}
.compact-prototype__copy { width: 100%; }
.compact-prototype__copy > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--fs-label);
}
.phone-video {
  width: min(100%, 228px);
  overflow: hidden;
  padding: 6px;
  border-radius: 30px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(45,70,105,.14), inset 0 1px 0 rgba(255,255,255,.9);
}
.phone-video video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 24px;
  background: #dce7f5;
}

/* User flow is intentionally softer than a standalone case section */
.research-flow {
  width: min(100%, 820px);
  margin: 18px auto 0;
  padding: 8px;
  border-radius: 22px;
}
.research-flow img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 16px;
}
.research-flow figcaption {
  margin: 8px 4px 2px;
  color: var(--muted);
  font-size: var(--fs-label);
  line-height: 1.4;
}

/* Wireframes immediately after CJM */
.process-artifact {
  margin-top: 38px;
  padding: 10px;
}
.process-artifact figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding: 6px 7px 12px;
  color: var(--muted);
  font-size: var(--fs-label);
}
.process-artifact figcaption > span:last-child { max-width: 620px; }
.process-artifact img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  border-radius: 18px;
}

/* Main-page prototype stays visible beside copy without stretching the case */
.prototype-home-block {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
.prototype-home-block .media-split__visual {
  width: 300px;
  justify-self: end;
}
.prototype-home-block .scroll-frame {
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
}
.prototype-home-block .scroll-frame img { width: 100%; }

@media (max-width: 920px) {
  .subsection-heading { grid-template-columns: 1fr; gap: 7px; }
  .results-bottom { grid-template-columns: 1fr; }
  .compact-prototype { width: min(100%, 280px); justify-self: center; }
  .prototype-home-block { grid-template-columns: 1fr; }
  .prototype-home-block .media-split__visual { width: 280px; justify-self: center; }
}

@media (max-width: 720px) {
  .subsection-heading { margin-top: 34px; }
  .updated-screens { margin-top: 34px; }
  .screen-rail {
    grid-auto-columns: 76%;
    gap: 9px;
    padding-bottom: 9px;
    scrollbar-width: none;
  }
  .screen-rail::-webkit-scrollbar { display: none; }
  .screen-card { padding: 8px; border-radius: 23px; }
  .results-bottom { gap: 14px; }
  .compact-prototype { width: 100%; padding: 12px; }
  .phone-video { width: 205px; }
  .phone-video video { max-height: 320px; }
  .research-flow { margin-top: 14px; padding: 7px; }
  .research-flow img { max-height: 330px; }
  .process-artifact { margin-top: 32px; padding: 8px; }
  .process-artifact figcaption { display: grid; gap: 5px; }
  .process-artifact img { max-height: 430px; }
  .prototype-home-block .media-split__visual { width: 220px; }
  .prototype-home-block .scroll-frame { max-height: 460px; }
}

/* ==========================================================
   v6 — final density / SELA results / duplicated Polosa CTA
   ========================================================== */

/* Use desktop width more efficiently: hero copy + compact profile card side by side. */
@media (min-width: 921px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr);
    gap: clamp(42px, 5vw, 78px);
    align-items: center;
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 58px;
  }
  .hero__intro { max-width: 690px; }
  .hero__title {
    margin-top: 18px;
    margin-bottom: 24px;
    font-size: clamp(58px, 5.5vw, 82px);
  }
  .quick-card {
    width: 100%;
    margin: 0;
    grid-template-columns: minmax(170px, 205px) minmax(0, 1fr);
    align-self: center;
  }
  .quick-card__portrait { min-height: 285px; }
  .quick-card__rows > div { grid-template-columns: 105px 1fr; padding: 18px 0; }
}

/* Results: heading above; cards and metric on the left, full-height phone prototype on the right. */
.results-block__head {
  display: block;
  margin-bottom: 18px;
}
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}
.results-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.results-left .result-grid { margin-top: 0; }
.results-left .metric-callout {
  margin-top: auto;
  padding: 18px 20px;
}
.compact-prototype {
  height: 100%;
  min-height: 520px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 14px;
}
.compact-prototype__copy { flex: 0 0 auto; }
.phone-video {
  flex: 1 1 auto;
  width: 100%;
  min-height: 430px;
  margin-top: 4px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 7px;
}
.phone-video video {
  width: 100%;
  height: 100%;
  min-height: 416px;
  max-height: none;
  object-fit: contain;
}

/* The duplicated MVP link closes the Polosa case and visually mirrors the entry CTA. */
.project-end-cta {
  margin-top: 38px;
}
.project-link--end {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
}

@media (max-width: 920px) {
  .results-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .compact-prototype { min-height: 470px; }
  .phone-video { min-height: 380px; }
  .phone-video video { min-height: 366px; }
}

@media (max-width: 720px) {
  .results-layout { grid-template-columns: 1fr; }
  .results-left .metric-callout { order: 2; }
  .compact-prototype {
    width: min(100%, 330px);
    min-height: 0;
    justify-self: center;
  }
  .phone-video {
    width: 100%;
    min-height: 420px;
  }
  .phone-video video { min-height: 406px; }
  .project-end-cta { margin-top: 30px; }
}


/* v8 — custom-domain media paths + mobile overflow hardening */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

.project-link {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}

.project-link > span:first-child {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.project-link > span:last-child {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .project-link {
    padding-inline: 16px;
  }
}
