/* coffee-co page styles
 * Organized as a standalone cached stylesheet for this static portfolio.
 */

:root {
  --ink: #211914;
  --muted: #746b64;
  --paper: #f6f2ed;
  --white: #fff;
  --line: rgba(48,32,22,.11);
  --blue: #7a4d2f;
  --coffee: #7a4d2f;
  --cream: #f4dfbf;
  --rose: #b46f63;
  --sage: #6d8061;
  --glass: rgba(255,255,255,.7);
  --shadow: 0 28px 90px rgba(74,43,26,.17);
  --radius: 18px;
  --max: 1180px;
  --display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,"Segoe UI",sans-serif;
  line-height: 1.45;
  background: radial-gradient(circle at 15% 8%,rgba(180,111,99,.2),transparent 28%),radial-gradient(circle at 88% 10%,rgba(122,77,47,.18),transparent 25%),radial-gradient(circle at 72% 82%,rgba(109,128,97,.14),transparent 28%),var(--paper);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 10px clamp(18px,4vw,54px);
  border-bottom: 1px solid rgba(255,255,255,.58);
  background: rgba(246,242,237,.78);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

.header-context {
  position: relative;
  color: #3a2b22;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-context:hover,.header-context:focus-visible {
  color: var(--coffee);
}

.header-context:focus-visible {
  outline: 2px solid rgba(122,77,47,.28);
  outline-offset: 6px;
  border-radius: 6px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--coffee);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(122,77,47,.22);
  transition: transform 180ms ease,box-shadow 180ms ease,background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #8c5b38;
  box-shadow: 0 18px 38px rgba(122,77,47,.28);
}

.btn.secondary {
  border-color: rgba(48,32,22,.1);
  color: #32251d;
  background: rgba(255,255,255,.66);
  box-shadow: none;
}

/* Portfolio frame --------------------------------------------------------- */

.snapshot-shell {
  width: min(calc(100% - 32px),1460px);
  margin: 20px auto 38px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background: linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.34)),rgba(255,255,255,.46);
  box-shadow: 0 36px 120px rgba(74,43,26,.17);
  backdrop-filter: saturate(160%) blur(22px);
}

.snapshot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px,4vw,48px);
  border-bottom: 1px solid var(--line);
  color: #746b64;
  background: rgba(255,255,255,.48);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.snapshot-bar strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  min-height: calc(100vh - 58px);
  display: grid;
  place-items: center;
  padding: clamp(42px,6vw,78px) clamp(18px,4vw,54px) 22px;
  text-align: center;
}

.hero-inner {
  width: min(100%,1220px);
  margin: 0 auto;
}

h1 {
  margin: 0 auto;
  max-width: 1040px;
  color: var(--coffee);
  font-family: var(--display);
  font-size: clamp(58px,10vw,138px);
  line-height: .98;
  font-weight: 850;
  letter-spacing: 0;
}

.marker {
  display: inline-block;
  padding: 0 0 .08em;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: rgba(122,77,47,.82);
  text-decoration-thickness: .12em;
  text-underline-offset: .18em;
}

.marker-yellow {
  text-decoration-color: #f4c94d;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 850px;
  margin: 22px auto 0;
  color: #4c3f36;
  font-size: clamp(22px,3vw,39px);
  line-height: 1.12;
  font-weight: 680;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stage {
  position: relative;
  z-index: 0;
  width: min(100%,1110px);
  margin: clamp(28px,5vw,54px) auto 0;
  perspective: 1400px;
}

.product-shot {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  background: #2a1910;
  box-shadow: var(--shadow);
  opacity: var(--hero-opacity,1);
  filter: blur(var(--hero-blur,0));
  transform: rotateX(var(--hero-tilt,4deg)) translate3d(0,var(--hero-parallax,0),0) scale(var(--hero-scale,.985));
  transform-origin: center;
  will-change: transform,filter;
  transition: box-shadow 220ms ease;
}

.hero-feature-carousel {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  color: #fff;
  background: radial-gradient(circle at 12% 20%,rgba(244,223,191,.22),transparent 34%),linear-gradient(135deg,#2a1910,#5f3923);
  text-align: left;
}

.carousel-kicker {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.carousel-title {
  margin-top: 3px;
  font-size: clamp(18px,2.2vw,26px);
  font-weight: 800;
  line-height: 1.12;
}

.carousel-caption {
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.4;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  cursor: pointer;
}

/* Project metadata -------------------------------------------------------- */

.meta-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px;
  width: min(calc(100% - 36px),var(--max));
  margin: clamp(24px,3.5vw,38px) auto clamp(16px,2.5vw,28px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  background: rgba(255,255,255,.4);
  box-shadow: 0 22px 70px rgba(74,43,26,.1);
  backdrop-filter: blur(20px);
  text-align: left;
}

.meta-item {
  padding: clamp(18px,2.8vw,24px);
  background: rgba(255,255,255,.7);
}

.meta-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  color: var(--ink);
  font-size: clamp(16px,2vw,21px);
  line-height: 1.16;
}

.meta-note {
  grid-column: 1/-1;
  padding: 13px 22px 15px;
  color: #776c64;
  background: rgba(255,255,255,.58);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}

.glass-card {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 20px 70px rgba(74,43,26,.11);
  backdrop-filter: blur(18px);
}

.module-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(135deg,var(--coffee),var(--rose));
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.glass-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.glass-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

section {
  content-visibility: auto;
  contain-intrinsic-size: auto 680px;
  padding: clamp(46px,6vw,76px) clamp(18px,4vw,54px);
}

.section-inner {
  width: min(100%,var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coffee);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(38px,6vw,78px);
  line-height: .98;
  font-weight: 830;
  letter-spacing: 0;
}

.section-lede {
  max-width: 780px;
  margin: 18px 0 0;
  color: #4b423c;
  font-size: clamp(20px,2.6vw,32px);
  line-height: 1.16;
  font-weight: 650;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(24px,5vw,64px);
  align-items: center;
}

/* Problem and research ---------------------------------------------------- */

#problem {
  padding-top: clamp(12px,2vw,28px);
}

#problem .two-col {
  grid-template-columns: minmax(0,1fr) minmax(360px,.78fr);
  align-items: end;
  gap: clamp(28px,5vw,68px);
}

#problem .two-col>* {
  min-width: 0;
}

#problem h2 {
  max-width: 780px;
  font-size: clamp(48px,7.7vw,112px);
  line-height: .96;
}

#problem .marker {
  white-space: normal;
}

.problem-side {
  position: relative;
  display: grid;
  justify-items: end;
  align-content: start;
  gap: clamp(12px,2.4vw,22px);
  min-height: clamp(460px,40vw,580px);
  margin-top: clamp(-104px,-7vw,-54px);
  isolation: isolate;
}

.route-context {
  display: block;
  width: clamp(460px,45vw,700px);
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 26px 44px rgba(74,43,26,.16));
  transform: rotate(-3deg);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom,transparent 0,#000 18%,#000 100%);
  mask-image: linear-gradient(to bottom,transparent 0,#000 18%,#000 100%);
}

#problem .section-lede {
  max-width: 640px;
  margin-top: clamp(24px,3.5vw,36px);
}

#problem .problem-card {
  align-self: start;
  max-width: 640px;
  margin: clamp(24px,3.6vw,42px) 0 0;
}

#problem .problem-side .problem-card {
  max-width: 560px;
  margin: 0;
}

#problem .stat-grid {
  margin-top: clamp(28px,4vw,48px);
}

.problem-card {
  position: relative;
  z-index: 2;
  padding: clamp(24px,4vw,44px);
  background: linear-gradient(135deg,rgba(255,255,255,.82),rgba(255,255,255,.48)),repeating-linear-gradient(45deg,rgba(122,77,47,.04) 0 1px,transparent 1px 8px);
}

.stat-grid,.module-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-top: 24px;
}

.stat-card,.module-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: var(--radius);
  background: rgba(255,255,255,.62);
  box-shadow: 0 18px 54px rgba(74,43,26,.1);
  backdrop-filter: blur(14px);
}

.stat-head {
  display: block;
}

.stat-value {
  color: var(--coffee);
  font-family: var(--display);
  font-size: clamp(34px,5vw,58px);
  line-height: .95;
  font-weight: 850;
}

.stat-label {
  margin-top: 5px;
  color: #5b4d44;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.stat-card p,.module-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.research-study {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 14px;
  margin-top: clamp(30px, 4vw, 48px);
}

.research-study-card,
.opportunity-card {
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 22px;
  box-shadow: 0 22px 64px rgba(74, 43, 26, .11);
}

.research-study-card {
  grid-column: 1 / -1;
  background: #fff;
}

.research-label {
  margin: 0 0 12px;
  color: var(--coffee);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.research-study h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.04;
}

.research-study-card > p:not(.research-label) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.5;
}

.research-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.research-facts span {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 77, 47, .15);
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.research-facts strong {
  color: var(--coffee);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.interview-section {
  grid-column: 1 / -1;
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid rgba(122, 77, 47, .14);
  border-bottom: 1px solid rgba(122, 77, 47, .14);
}

.interview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: end;
}

.interview-heading h3 {
  max-width: 720px;
}

.interview-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.interview-card {
  display: grid;
  align-content: start;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid rgba(122, 77, 47, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 44px rgba(74, 43, 26, .07);
}

.interview-card-wide {
  grid-column: 1 / -1;
}

.interview-number {
  color: var(--coffee);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.interview-card h4 {
  max-width: 620px;
  margin: 9px 0 13px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.15;
}

.interview-card blockquote {
  margin: 0;
  padding: 11px 0 0 15px;
  border-left: 2px solid rgba(122, 77, 47, .26);
  color: #655950;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.45;
}

.interview-card blockquote + blockquote {
  margin-top: 12px;
}

.opportunity-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
  color: var(--ink);
  background: #f2e5d5;
}

.opportunity-copy > p:not(.research-label) {
  margin: 16px 0 0;
  color: #65564c;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.48;
}

.opportunity-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.opportunity-points span {
  padding: 7px 11px;
  border: 1px solid rgba(122, 77, 47, .18);
  border-radius: 999px;
  color: var(--coffee);
  background: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 780;
}

.opportunity-jtbd {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 16px;
  color: #382719;
  background: #f4c94d;
  box-shadow: 0 18px 44px rgba(117, 73, 47, .14);
}

.opportunity-jtbd .research-label {
  color: rgba(56, 39, 25, .7);
}

.opportunity-jtbd h4 {
  margin: 0;
  color: #382719;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.08;
}

.opportunity-jtbd > p:not(.research-label) {
  margin: 14px 0 0;
  color: rgba(56, 39, 25, .72);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.opportunity-jtbd blockquote {
  margin: 12px 0 0;
  color: #382719;
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 680;
  line-height: 1.28;
}

@media (max-width: 920px) {
  .research-study {
    grid-template-columns: 1fr;
  }

  .interview-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .opportunity-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .interview-grid {
    grid-template-columns: 1fr;
  }

  .interview-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  .research-facts {
    grid-template-columns: 1fr;
  }
}

.media-frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.74);
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow);
}

.media-frame img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.caption {
  padding: 14px 18px 17px;
  color: #6f6258;
  font-size: 15px;
  line-height: 1.4;
  background: rgba(255,255,255,.72);
}

.final-flow-media .caption {
  color: #f8efe6;
  background: #24170f;
  text-align: center;
}

.dark {
  color: #fff;
  background: radial-gradient(circle at 8% 18%,rgba(244,223,191,.2),transparent 26%),radial-gradient(circle at 86% 18%,rgba(180,111,99,.24),transparent 26%),linear-gradient(135deg,#3a2114,#6f4529);
}

.dark h2,.dark .section-lede,.dark .eyebrow {
  color: #fff;
}

.dark .eyebrow {
  color: rgba(255,255,255,.72);
}

.dark .glass-card,.dark .module-card {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 22px 80px rgba(0,0,0,.16);
}

.dark .glass-card h3,.dark .module-card h3 {
  color: #fff;
}

.dark .glass-card p,.dark .module-card p {
  color: rgba(255,255,255,.74);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-top: 34px;
}

/* Design-process slideshow ------------------------------------------------ */

.process-slideshow {
  margin-top: clamp(20px,3.5vw,30px);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 28px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 24px 80px rgba(74,43,26,.12);
  overflow: hidden;
}

.process-viewport {
  overflow: hidden;
}

.process-track {
  display: flex;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.process-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr);
  align-items: stretch;
  background: rgba(255,255,255,.52);
}

.process-slide img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #eee;
}

.process-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px,3.5vw,38px);
  border-left: 1px solid rgba(48,32,22,.08);
}

.process-step {
  color: var(--coffee);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.process-slide-copy h3 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(28px,4vw,48px);
  line-height: 1;
}

.process-slide-copy p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.process-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(14px,2.2vw,20px);
  border-top: 1px solid rgba(48,32,22,.08);
  background: rgba(255,255,255,.58);
}

.prototype-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px,2.2vw,18px);
  border-top: 1px solid rgba(48,32,22,.08);
  background: rgba(255,255,255,.72);
}

.prototype-link-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.prototype-link-row .btn {
  box-shadow: none;
}

.prototype-text-link {
  flex: 0 0 auto;
  padding: 3px 0;
  color: var(--coffee);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: rgba(122, 77, 47, .42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.prototype-text-link:hover,
.prototype-text-link:focus-visible {
  color: #5d351f;
  text-decoration-color: currentColor;
}

.prototype-text-link:focus-visible {
  outline: 2px solid rgba(122, 77, 47, .28);
  outline-offset: 5px;
  border-radius: 4px;
}

.process-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.process-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(122,77,47,.26);
  cursor: pointer;
}

.process-dot[aria-current="true"] {
  width: 28px;
  background: var(--coffee);
}

.process-copy {
  padding: 20px;
}

.process-copy h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.process-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

/* Design system ----------------------------------------------------------- */

.design-system-feature {
  display: grid;
  grid-template-columns: minmax(0,1.18fr) minmax(280px,.82fr);
  gap: clamp(20px,3.5vw,38px);
  align-items: center;
  margin-top: clamp(24px,4vw,36px);
}

.design-system-feature .media-frame img {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.design-system-copy {
  padding: clamp(24px,4vw,44px);
}

.design-system-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px,4.6vw,56px);
  line-height: 1;
}

.design-system-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.48;
}

.design-system-gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin-top: clamp(16px,2.6vw,24px);
}

.design-system-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 24px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 22px 70px rgba(74,43,26,.11);
}

.design-system-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.design-system-card .process-copy {
  background: rgba(255,255,255,.64);
}

.full-bleed-media {
  width: min(calc(100% - 32px),1280px);
  margin: 28px auto 0;
}

.final-flow-media {
  width: min(100%,var(--max));
  margin: clamp(20px,3.5vw,30px) auto 0;
  background: #000;
}

.final-flow-media img {
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
  padding: clamp(8px,1.6vw,14px);
}

.impact-stack {
  display: grid;
  gap: 12px;
  margin-top: clamp(18px,3vw,28px);
}

.impact-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 16px;
  align-items: center;
  padding: clamp(18px,2.8vw,24px);
  border-radius: var(--radius);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 18px 54px rgba(74,43,26,.09);
}

.impact-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg,var(--coffee),var(--rose));
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
  align-self: center;
}

.footer {
  padding: 28px clamp(18px,4vw,54px) 40px;
  color: #756960;
  text-align: center;
  font-size: 14px;
}

@media (max-width:920px) {
  .meta-strip,.stat-grid,.module-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .two-col,.process-grid,.process-slide,.design-system-feature,#problem .two-col {
    grid-template-columns: 1fr;
  }

  .problem-side {
    justify-items: center;
    min-height: auto;
    margin-top: 0;
    padding-top: clamp(18px,5vw,34px);
    gap: clamp(16px,5vw,28px);
  }

  .route-context {
    width: min(360px,76vw);
    margin-inline: auto;
    opacity: 1;
    transform: rotate(-4deg);
    -webkit-mask-image: none;
    mask-image: none;
  }

  #problem .problem-card,#problem .problem-side .problem-card {
    max-width: none;
    margin: 0;
  }

  .process-slide-copy {
    border-left: 0;
    border-top: 1px solid rgba(48,32,22,.08);
  }

  .process-slide img {
    min-height: 220px;
  }

  .hero {
    min-height: auto;
  }

}

@media (max-width:640px) {
  .site-header,.snapshot-bar,.hero-feature-carousel,.design-system-gallery {
    grid-template-columns: 1fr;
  }

  .prototype-link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .prototype-link-row .btn {
    width: 100%;
  }

  .header-actions {
    justify-content: stretch;
  }

  .btn {
    width: 100%;
  }

  .meta-strip,.stat-grid,.module-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-shell {
    width: min(calc(100% - 18px),1460px);
    border-radius: 24px;
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(52px,17vw,86px);
  }

}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms cubic-bezier(.2,.8,.2,1),transform 760ms cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-shot {
    transform: none;
    filter: none;
  }

  .btn {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

/* Coffee Co responsive refinement */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 18px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .snapshot-shell {
    width: min(calc(100% - 22px), 1460px);
    margin: 12px auto 28px;
    border-radius: 26px;
  }

  .snapshot-bar {
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    padding: clamp(34px, 8vw, 58px) clamp(18px, 5vw, 34px) 18px;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-stage {
    width: 100%;
    margin-top: clamp(24px, 7vw, 42px);
  }

  .product-shot {
    border-radius: 20px;
    transform: none;
  }

  .meta-strip, .stat-grid, .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col, .process-grid, .process-slide, .design-system-feature, #problem .two-col {
    grid-template-columns: 1fr;
  }

  #problem {
    padding-top: clamp(28px, 7vw, 46px);
  }

  #problem h2 {
    max-width: 760px;
    font-size: clamp(48px, 13vw, 92px);
  }

  .headline-line {
    white-space: normal;
  }

  .problem-side {
    justify-items: center;
    min-height: auto;
    margin-top: 0;
    padding-top: clamp(18px, 5vw, 34px);
    gap: clamp(16px, 5vw, 28px);
  }

  .route-context {
    width: min(380px, 76vw);
    margin-inline: auto;
    opacity: 1;
    transform: rotate(-4deg);
    -webkit-mask-image: none;
    mask-image: none;
  }

  #problem .problem-card, #problem .problem-side .problem-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .process-slide-copy {
    border-left: 0;
    border-top: 1px solid rgba(48,32,22,.08);
  }

  .process-slide img {
    min-height: 240px;
  }

  .design-system-gallery {
    grid-template-columns: 1fr;
  }

  .full-bleed-media, .final-flow-media {
    width: min(calc(100% - 22px), 980px);
  }

}

@media (max-width: 640px) {
  .site-header, .snapshot-bar, .hero-feature-carousel {
    grid-template-columns: 1fr;
  }

  .snapshot-shell {
    width: min(calc(100% - 18px), 1460px);
    border-radius: 24px;
    margin-top: 10px;
  }

  .snapshot-bar {
    gap: 8px;
    padding: 14px 18px;
  }

  .hero {
    padding: 30px 14px 16px;
    text-align: left;
  }

  h1 {
    max-width: none;
    font-size: clamp(52px, 17vw, 86px);
    line-height: .96;
    text-align: left;
  }

  .hero-subtitle {
    margin-top: 16px;
    font-size: clamp(21px, 6.5vw, 28px);
    line-height: 1.12;
    text-align: left;
  }

  .hero-actions {
    justify-content: stretch;
    gap: 10px;
    margin-top: 22px;
  }

  .btn, .hero-actions .btn, .prototype-link-row .btn {
    width: 100%;
  }

  .hero-feature-carousel {
    gap: 12px;
    padding: 16px;
  }

  .hero-feature-carousel .icon-button {
    width: 100%;
    border-radius: 14px;
  }

  .meta-strip, .stat-grid, .module-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .meta-strip {
    margin: 24px auto 12px;
    border-radius: 18px;
  }

  section {
    padding: clamp(38px, 11vw, 56px) 14px;
  }

  .section-inner {
    width: 100%;
  }

  h2, #problem h2 {
    font-size: clamp(44px, 14vw, 70px);
    line-height: .98;
  }

  .section-lede, #problem .section-lede {
    max-width: none;
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.16;
  }

  .problem-card {
    padding: 22px;
  }

  .route-context {
    width: min(330px, 88vw);
  }

  .process-slideshow {
    border-radius: 20px;
  }

  .process-slide img {
    min-height: 210px;
    aspect-ratio: 4 / 3;
  }

  .process-slide-copy {
    padding: 22px;
  }

  .process-slide-copy h3 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .process-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .process-dots {
    flex-wrap: wrap;
    order: -1;
  }

  .prototype-link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .design-system-copy {
    padding: 22px;
  }

  .impact-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

}

/* Coffee Co carousel and fit refinements */
.hero-feature-carousel {
  grid-template-columns: minmax(0, 1fr);
}

.hero-feature-carousel > div {
  min-width: 0;
}

#solution h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#solution .marker {
  white-space: normal;
}

.design-system-feature {
  align-items: stretch;
}

.design-system-feature .media-frame, .design-system-feature .design-system-copy {
  height: 100%;
}

.design-system-feature .media-frame img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .design-system-feature .media-frame img {
    min-height: 260px;
  }

}

/* Coffee Co stable carousel and card proportions */
.hero-feature-carousel {
  min-height: clamp(136px, 11vw, 158px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 24px);
}

.hero-feature-carousel > div {
  display: grid;
  align-content: center;
  min-height: 92px;
}

.carousel-kicker, .carousel-title, .carousel-caption {
  transition: opacity 320ms ease, transform 320ms ease;
}

.hero-feature-carousel.is-fading .carousel-kicker,     .hero-feature-carousel.is-fading .carousel-title,     .hero-feature-carousel.is-fading .carousel-caption {
  opacity: 0;
  transform: translateY(6px);
}

.design-system-feature {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.design-system-feature .media-frame, .design-system-feature .design-system-copy, .design-system-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.design-system-feature .media-frame img, .design-system-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.design-system-copy, .design-system-card .process-copy {
  flex: 1;
  padding: clamp(22px, 3vw, 32px);
}

@media (max-width: 920px) {
  .design-system-feature {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .hero-feature-carousel {
    min-height: 172px;
  }

  .hero-feature-carousel > div {
    min-height: 124px;
  }

  .design-system-copy, .design-system-card .process-copy {
    padding: 22px;
  }

}

/* Coffee Co final responsive polish */
.design-system-feature {
  width: 100%;
  margin-bottom: clamp(26px, 4vw, 52px);
  padding-bottom: clamp(18px, 3vw, 34px);
  transform: translate3d(0, var(--system-parallax, 0px), 0) scale(var(--system-scale, 1));
  opacity: var(--system-opacity, 1);
  filter: blur(var(--system-blur, 0px));
  transform-origin: center;
  will-change: transform, filter, opacity;
}

.design-system-feature .media-frame,     .design-system-feature .design-system-copy {
  min-height: clamp(360px, 31vw, 470px);
}

.design-system-feature .media-frame {
  width: 100%;
}

.design-system-feature .media-frame img,     .design-system-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .process-slide img {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    background: rgba(255,255,255,.72);
  }

  .design-system-feature {
    margin-bottom: 34px;
    padding-bottom: 24px;
  }

  .design-system-feature .media-frame,       .design-system-feature .design-system-copy {
    min-height: 0;
  }

  .design-system-feature .media-frame img,       .design-system-card img {
    object-fit: contain;
    background: rgba(255,255,255,.72);
  }

}

@media (prefers-reduced-motion: reduce) {
  .design-system-feature {
    transform: none;
    filter: none;
    opacity: 1;
  }

}

/* Keep the sticker sheet and reusable-components cards visually equal. */
.design-system-feature {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(400px, 34vw, 480px);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.design-system-feature .media-frame,     .design-system-feature .design-system-copy {
  width: 100%;
  margin: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 24px;
}

.design-system-feature .media-frame {
  display: grid;
  place-items: center;
  padding: clamp(16px, 2vw, 24px);
}

.design-system-feature .media-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.design-system-feature .design-system-copy {
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(145deg, #75492f, #3b2519);
  box-shadow: 0 24px 70px rgba(74,43,26,.24);
}

.design-system-feature .design-system-copy h3 {
  color: #fff;
}

.design-system-feature .design-system-copy p {
  color: rgba(255,255,255,.78);
}

.solution-emphasis {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #solution h2 {
    font-size: 30px;
    line-height: 1.06;
  }

}

@media (max-width: 360px) {
  #solution h2 {
    font-size: 26px;
  }

}

@media (max-width: 980px) {
  .hero,       .hero .meta-strip {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  .hero .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

@media (max-width: 920px) {
  .design-system-feature {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .design-system-feature .media-frame,       .design-system-feature .design-system-copy {
    height: auto;
  }

  .design-system-feature .media-frame {
    aspect-ratio: 16 / 10;
  }

  .design-system-feature .design-system-copy {
    min-height: 260px;
  }

}

/* Consistent icon-title alignment across content cards. */
.icon-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  row-gap: 12px;
  align-items: start;
}

.icon-card > .module-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0;
}

.icon-card > h3,     .icon-card > strong {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
}

.icon-card > p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

/* Shared 3D impact carousel and final navigation. */
.site-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.header-actions {
  width: auto;
  justify-self: end;
}

#impact .section-lede {
  max-width: 820px;
}

/* Possible-impact carousel ------------------------------------------------ */

.impact-carousel {
  position: relative;
  margin-top: clamp(26px, 4vw, 38px);
  perspective: 1400px;
}

.impact-stage {
  position: relative;
  height: clamp(280px, 30vw, 330px);
  transform-style: preserve-3d;
}

.impact-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  row-gap: 14px;
  align-items: center;
  width: min(72%, 700px);
  height: 100%;
  margin: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 24px 70px rgba(74,43,26,.14);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, -180px) scale(.72);
  transform-origin: center;
  transition: transform 720ms cubic-bezier(.2,.8,.2,1), opacity 520ms ease, box-shadow 520ms ease;
  backdrop-filter: saturate(160%) blur(18px);
  will-change: transform, opacity;
}

.impact-card.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 70px) rotateY(0) scale(1);
  box-shadow: 0 34px 90px rgba(74,43,26,.2);
}

.impact-card.is-previous {
  z-index: 2;
  opacity: .42;
  transform: translate3d(-38%, 0, -110px) rotateY(20deg) scale(.82);
}

.impact-card.is-next {
  z-index: 2;
  opacity: .42;
  transform: translate3d(38%, 0, -110px) rotateY(-20deg) scale(.82);
}

.impact-card .impact-badge {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  margin: 0;
}

.impact-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
}

.impact-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.48;
}

.impact-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.impact-control {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(122,77,47,.2);
  border-radius: 50%;
  color: var(--coffee);
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(74,43,26,.12);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.impact-control:hover,     .impact-control:focus-visible {
  color: #fff;
  background: var(--coffee);
  transform: translateY(-2px);
}

.impact-control:focus-visible {
  outline: 3px solid rgba(122,77,47,.28);
  outline-offset: 3px;
}

.impact-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.impact-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(122,77,47,.26);
  cursor: pointer;
  transition: width 260ms ease, background 260ms ease;
}

.impact-dot.is-active {
  width: 28px;
  background: var(--coffee);
}

.impact-dot:focus-visible {
  outline: 2px solid var(--coffee);
  outline-offset: 3px;
}

#reflection .problem-card .btn {
  width: max-content;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .header-actions {
    width: auto;
    justify-self: end;
  }

}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions,       .header-actions .btn {
    width: auto;
  }

  .impact-stage {
    height: 360px;
  }

  .impact-card {
    width: 88%;
    padding: 24px;
  }

  .impact-card.is-previous {
    transform: translate3d(-28%, 0, -110px) rotateY(16deg) scale(.82);
  }

  .impact-card.is-next {
    transform: translate3d(28%, 0, -110px) rotateY(-16deg) scale(.82);
  }

  #reflection .problem-card .btn {
    width: 100%;
  }

}

@media (max-width: 380px) {
  .impact-stage {
    height: 390px;
  }

  .impact-card {
    width: 92%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .impact-card {
    transition: none;
  }

}

/* Keep every research value and its context on one bold line. */
.stat-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.stat-value,     .stat-label {
  color: var(--coffee);
  font-family: var(--display);
  font-weight: 850;
}

.stat-value {
  flex: 0 0 auto;
}

.stat-label {
  margin-top: 0;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

/* Equal-size inline research statements. */
.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  container-type: inline-size;
}

.stat-value,     .stat-label {
  font-size: clamp(24px, 4vw, 52px);
  font-size: clamp(24px, 9cqw, 52px);
  line-height: .95;
  font-weight: 850;
}

.stat-card p {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

}

/* Keep design-system examples in a grid and center the final reflection. */
.design-system-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.design-system-gallery .design-system-card {
  height: 100%;
}

.reflection-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: rgba(255,255,255,.11);
  box-shadow: 0 24px 80px rgba(0,0,0,.16);
  text-align: center;
  backdrop-filter: saturate(150%) blur(18px);
}

.reflection-card h2 {
  max-width: 820px;
  margin-inline: auto;
}

.reflection-card h3 {
  margin: 28px 0 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
}

.reflection-card > p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
}

.reflection-card .btn {
  width: max-content;
  margin: 26px auto 0;
}

@media (max-width: 640px) {
  .design-system-gallery {
    grid-template-columns: 1fr;
  }

  .reflection-card {
    padding: 26px 22px;
  }

  .reflection-card .btn {
    width: 100%;
  }

}

/* Match the full-width Healthy Bites reflection card. */
.reflection-card {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 0;
  text-align: left;
}

.reflection-card h2,     .reflection-card > div > p:not(.eyebrow) {
  max-width: 820px;
  margin-inline: 0;
}

.reflection-card .btn {
  width: max-content;
  margin: 0;
  justify-self: end;
}

@media (max-width: 980px) {
  .reflection-card {
    grid-template-columns: 1fr;
  }

  .reflection-card .btn {
    justify-self: start;
    margin-top: 4px;
  }

}

@media (max-width: 640px) {
  .reflection-card .btn {
    width: 100%;
  }

}

/* Smaller, deliberately staggered problem headline. */
#problem h2 {
  max-width: none;
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: .98;
}

#problem .headline-line {
  display: block;
  width: fit-content;
  white-space: nowrap;
  transform-origin: left center;
}

#problem .headline-line:nth-child(1) {
  transform: rotate(-1.25deg);
}

#problem .headline-line:nth-child(2) {
  transform: translateX(clamp(24px, 4.5vw, 64px)) rotate(1.25deg);
}

#problem .headline-line:nth-child(3) {
  display: flex;
  align-items: baseline;
  gap: clamp(24px, 3.4vw, 52px);
  transform: translateX(clamp(4px, 1.2vw, 18px)) rotate(-1deg);
}

#problem .headline-line:nth-child(3) > .marker:first-child {
  transform: translateY(-.08em) rotate(-1.2deg);
  transform-origin: right center;
}

#problem .headline-fragment {
  transform: translateY(.18em) rotate(1.35deg);
  transform-origin: left center;
}

@media (max-width: 980px) {
  #problem h2 {
    font-size: clamp(38px, 8vw, 72px);
  }

}

@media (max-width: 640px) {
  #problem h2 {
    font-size: clamp(30px, 9.4vw, 44px);
    line-height: 1;
  }

  #problem .headline-line:nth-child(2) {
    transform: translateX(22px) rotate(1.15deg);
  }

  #problem .headline-line:nth-child(3) {
    gap: 18px;
    transform: translateX(3px) rotate(-.8deg);
  }

  #problem .headline-fragment {
    transform: translateY(.14em) rotate(1deg);
  }

}

/* Keep the Healthy Bites hero depth animation at responsive widths. */
@media (max-width: 980px) {
  .product-shot {
    transform: rotateX(var(--hero-tilt, 4deg)) translate3d(0, var(--hero-parallax, 0px), 0) scale(var(--hero-scale, .985));
    transform-origin: center;
    will-change: transform, filter;
  }

}

@media (prefers-reduced-motion: reduce) {
  .product-shot {
    opacity: 1;
    filter: none;
    transform: none;
  }

}

/* Final refinement: metadata stays above a receding product preview. */
.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  padding-bottom: 0;
}

.hero-stage {
  z-index: 0;
  margin-bottom: -70px;
}

.hero-stage.reveal {
  opacity: 1;
  transform: none;
}

.product-shot {
  box-shadow: 0 34px 110px rgba(74, 43, 26, .18);
}

.hero .meta-strip {
  z-index: 5;
  margin-top: 0;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 30px 84px rgba(74, 43, 26, .18);
}

/* Research figures read as complete statements instead of split labels. */
.stat-card {
  min-height: 0;
  background: #fff;
  backdrop-filter: none;
}

.stat-card .stat-statement {
  margin: 0;
  color: var(--coffee);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.48;
}

.stat-card .stat-statement strong {
  display: inline;
  color: var(--coffee);
  font-family: var(--display);
  font-weight: 850;
  white-space: nowrap;
}

.stat-card .stat-value,
.stat-card .stat-label {
  display: inline;
  color: var(--coffee);
  font-family: var(--display);
  font-size: clamp(27px, 3.4vw, 44px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

/* Outlined reusable-components callout. */
.design-system-feature .design-system-copy.outline-card {
  border: 2px solid rgba(122, 77, 47, .72);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.design-system-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.design-system-heading h3 {
  margin: 0;
}

.recycle-icon {
  display: inline-grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(122, 77, 47, .34);
  border-radius: 50%;
  color: var(--coffee);
  background: rgba(255, 255, 255, .7);
}

/* Compact opaque impact cards; JavaScript matches the stage to each card. */
.impact-stage {
  height: 250px;
  min-height: 0;
  transition: height 420ms ease;
}

.impact-card {
  inset: 0 0 auto;
  height: auto;
  min-height: 0;
  background: #fff;
  opacity: 0;
  backdrop-filter: none;
}

.impact-card.is-previous,
.impact-card.is-next {
  opacity: 1;
}

@media (max-width: 980px) {
  .hero-stage {
    margin-bottom: -50px;
  }
}

@media (max-width: 640px) {
  .snapshot-shell {
    width: calc(100% - 18px);
  }
}

@media (max-width: 640px) {
  .hero-stage {
    margin-bottom: -24px;
  }

  .hero .meta-strip {
    margin-top: 0;
  }

  .impact-stage {
    height: 270px;
  }

  .impact-card {
    width: 88%;
  }
}

/* Cutout hero: the device floats while feature copy sits quietly below it. */
.hero-stage {
  width: min(100%, 980px);
  margin-top: clamp(30px, 4vw, 48px);
  margin-bottom: -54px;
}

.product-shot {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  filter: none;
  transform: rotateX(var(--hero-tilt, 4deg)) translate3d(0, var(--hero-parallax, 0), 0) scale(var(--hero-scale, .985));
  transform-origin: center;
  will-change: transform;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  place-items: center;
}

.hero-icon-marquee {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(138%, 1320px);
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.hero-icon-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: hero-icon-scroll 18s linear infinite;
}

.hero-icon-set {
  display: flex;
  align-items: center;
  gap: clamp(64px, 10vw, 138px);
  padding-right: clamp(64px, 10vw, 138px);
}

.hero-icon-set span {
  display: grid;
  place-items: center;
  width: clamp(64px, 7vw, 96px);
  height: clamp(64px, 7vw, 96px);
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 18px 46px rgba(74, 43, 26, .13);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1;
  opacity: .58;
  backdrop-filter: blur(14px);
}

.hero-message-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.hero-message {
  position: absolute;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: min(29vw, 292px);
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 18px;
  color: #2e251f;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 20px 54px rgba(52, 31, 20, .16);
  opacity: 0;
  backdrop-filter: saturate(150%) blur(18px);
  animation: hero-message-pop 9s cubic-bezier(.2, .8, .2, 1) infinite;
}

.message-boss {
  top: 17%;
  left: 1%;
}

.message-meeting {
  top: 43%;
  right: 1%;
  animation-delay: 3s;
}

.message-ready {
  bottom: 12%;
  left: 5%;
  animation-delay: 6s;
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #9c6749, #5b3825);
  font-size: 15px;
  font-weight: 850;
}

.message-avatar.message-app {
  color: #3b281d;
  background: #f2d79e;
}

.message-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.message-copy strong {
  font-size: 12px;
  line-height: 1.2;
}

.message-copy > span {
  color: #5f554e;
  font-size: 12px;
  line-height: 1.28;
}

.hero-message time {
  color: #887c74;
  font-size: 10px;
  line-height: 1.3;
}

.hero-visual > img,
.hero-feature-carousel {
  position: relative;
  z-index: 2;
}

@keyframes hero-icon-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes hero-message-pop {
  0%,
  8%,
  52%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(.94);
  }

  15%,
  42% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-visual > img {
  width: clamp(240px, 32vw, 390px);
  height: auto;
  max-height: min(69vh, 720px);
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(74, 43, 26, .2));
}

.hero-feature-carousel {
  display: block;
  width: min(100%, 760px);
  min-height: 128px;
  margin-top: clamp(14px, 2vw, 24px);
  padding: 0 clamp(8px, 2vw, 20px) clamp(72px, 7vw, 104px);
  color: var(--ink);
  background: transparent;
  opacity: 1;
  text-align: center;
  transition: opacity 420ms ease, transform 420ms ease;
}

.hero-feature-carousel .carousel-kicker {
  color: var(--coffee);
}

.hero-feature-carousel .carousel-title {
  color: var(--ink);
}

.hero-feature-carousel .carousel-caption {
  max-width: 650px;
  margin: 7px auto 0;
  color: var(--muted);
}

.hero-feature-carousel.is-fading {
  opacity: .1;
  transform: translateY(5px);
}

/* Four-line problem statement with more breathing room and subtle depth. */
#problem h2 {
  line-height: 1.08;
}

#problem .headline-line {
  width: fit-content;
  transform-origin: left center;
  will-change: transform;
}

#problem .headline-line:nth-child(1) {
  transform: translate3d(0, var(--headline-shift-1, 0), 0) rotate(-1deg);
}

#problem .headline-line:nth-child(2) {
  transform: translate3d(clamp(22px, 4vw, 58px), var(--headline-shift-2, 0), 0) rotate(.8deg);
}

#problem .headline-line:nth-child(3) {
  display: block;
  transform: translate3d(clamp(4px, 1vw, 16px), var(--headline-shift-3, 0), 0) rotate(-1.2deg);
}

#problem .headline-line:nth-child(4) {
  transform: translate3d(clamp(42px, 7vw, 108px), var(--headline-shift-4, 0), 0) rotate(1deg);
}

#problem .headline-line:nth-child(3) .marker,
#problem .headline-line:nth-child(4) .marker {
  transform: none;
}

/* Filled reusable-components callout with a prominent reuse cue. */
.design-system-feature .design-system-copy.outline-card {
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  background: linear-gradient(145deg, #75492f, #3b2519);
  box-shadow: 0 24px 70px rgba(74, 43, 26, .24);
  backdrop-filter: none;
}

.design-system-copy.outline-card h3,
.design-system-copy.outline-card p {
  color: #fff;
}

.design-system-copy.outline-card p {
  opacity: .86;
}

.recycle-icon {
  flex-basis: 64px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 12px 28px rgba(28, 16, 10, .18);
  font-size: 42px;
  line-height: 1;
}

@media (max-width: 640px) {
  .hero-stage {
    margin-bottom: -18px;
  }

  .hero-visual > img {
    width: clamp(220px, 72vw, 330px);
    max-height: none;
  }

  .hero-icon-marquee {
    width: calc(100% + 96px);
  }

  .hero-icon-set {
    gap: 42px;
    padding-right: 42px;
  }

  .hero-message {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 7px;
    width: min(66vw, 238px);
    padding: 9px 10px;
    border-radius: 15px;
  }

  .message-boss {
    top: 12%;
    left: -4%;
  }

  .message-meeting {
    top: 49%;
    right: -4%;
  }

  .message-ready {
    display: none;
  }

  .message-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .message-copy strong,
  .message-copy > span {
    font-size: 10px;
  }

  .hero-feature-carousel {
    min-height: 148px;
    padding-bottom: 62px;
  }

  #problem h2 {
    line-height: 1.12;
  }

  #problem .headline-line:nth-child(2) {
    transform: translate3d(18px, var(--headline-shift-2, 0), 0) rotate(.8deg);
  }

  #problem .headline-line:nth-child(4) {
    transform: translate3d(34px, var(--headline-shift-4, 0), 0) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-icon-track {
    animation: none;
  }

  .hero-message {
    opacity: 1;
    animation: none;
    transform: none;
  }

  #problem .headline-line {
    transform: none;
  }

  .hero-visual > img {
    filter: drop-shadow(0 20px 28px rgba(74, 43, 26, .16));
  }

  .product-shot {
    transform: none;
  }
}
/* Match the Healthy Bites project-details module on desktop. */
@media (min-width: 641px) {
  .hero .meta-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(calc(100% - 36px), var(--max));
    margin-top: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(45, 31, 23, 0.11);
    backdrop-filter: none;
  }

  .hero .meta-item {
    min-width: 0;
    padding: 11px clamp(20px, 2.2vw, 27px) 10px;
    background: #fff;
  }

  .hero .meta-item + .meta-item {
    border-left: 1px solid rgba(48, 32, 22, 0.1);
  }

  .hero .meta-item span {
    margin-bottom: 5px;
    color: #777078;
    font-size: 12px;
    font-weight: 800;
  }

  .hero .meta-item strong {
    color: var(--ink);
    font-size: clamp(17px, 1.65vw, 23px);
    line-height: 1.18;
  }

  .hero .meta-note {
    grid-column: 1 / -1;
    padding: 7px clamp(20px, 2.2vw, 27px) 9px;
    border-top: 0;
    color: #777078;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
  }
}

/* Accessibility controls ------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.header-context {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.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;
}

.btn:focus-visible,
.rotation-toggle:focus-visible,
.motion-toggle:focus-visible,
.process-dot:focus-visible {
  outline: 3px solid #f4c94d;
  outline-offset: 4px;
}

.rotation-toggle,
.motion-toggle {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(122, 77, 47, 0.24);
  border-radius: 999px;
  color: #5d351f;
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.15;
  cursor: pointer;
}

.hero-feature-carousel {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hero-rotation-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stage.is-paused .hero-icon-track,
.hero-stage.is-paused .hero-message {
  animation-play-state: paused;
}

.impact-rotation-toggle {
  margin-left: 4px;
}

.process-dot,
.impact-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: transparent;
}

.process-dot::before,
.impact-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(122, 77, 47, 0.34);
  content: "";
  transition: width 260ms ease, background 260ms ease;
}

.process-dot[aria-current="true"],
.impact-dot.is-active {
  width: 24px;
  background: transparent;
}

.process-dot[aria-current="true"]::before,
.impact-dot.is-active::before {
  width: 20px;
  background: var(--coffee);
}

.controlled-animation {
  position: relative;
}

.controlled-animation .motion-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.final-flow-media .controlled-animation {
  background: #000;
}

@media (max-width: 640px) {
  .hero-feature-carousel {
    grid-template-columns: 1fr;
  }

  .hero-rotation-toggle {
    justify-self: start;
  }

  .controlled-animation .motion-toggle {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotation-toggle {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
