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

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #f5f5f7;
  --white: #fff;
  --line: rgba(0, 0, 0, 0.09);
  --purple: #794ca6;
  --purple-strong: #603783;
  --green: #2f7d52;
  --glass: rgba(255, 255, 255, 0.74);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.14);
  --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: linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 24%),         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;
  gap: 20px;
  min-height: 58px;
  padding: 10px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(245, 245, 247, 0.76);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

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

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

.header-context:focus-visible {
  outline: 2px solid rgba(121, 76, 166, 0.32);
  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(--purple);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(121, 76, 166, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--purple-strong);
  box-shadow: 0 18px 38px rgba(121, 76, 166, 0.28);
}

.btn.secondary {
  border-color: rgba(0, 0, 0, 0.08);
  color: #2f2f34;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
}

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

.snapshot-shell {
  width: min(calc(100% - 32px), 1460px);
  margin: 20px auto 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),         rgba(255, 255, 255, 0.46);
  box-shadow: 0 36px 120px rgba(29, 29, 31, 0.14);
  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 rgba(0, 0, 0, 0.06);
  color: #6f6a73;
  background: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.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(44px, 6vw, 82px) clamp(18px, 4vw, 54px) 32px;
  text-align: center;
}

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

h1 {
  margin: 0 auto;
  max-width: 1040px;
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(54px, 10vw, 132px);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

.marker {
  position: relative;
  display: inline-block;
  padding: 0 0 0.08em;
  white-space: nowrap;
  z-index: 0;
  text-decoration-line: underline;
  text-decoration-color: rgba(121, 76, 166, 0.86);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.marker::after {
  content: none;
}

.dark .marker {
  text-decoration-color: rgba(215, 188, 255, 0.96);
}

.hero-subtitle {
  max-width: 830px;
  margin: 22px auto 0;
  color: #4b4b50;
  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(30px, 5vw, 58px) auto 0;
  perspective: 1400px;
}

.product-shot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: #261535;
  box-shadow: var(--shadow);
  opacity: var(--hero-opacity, 1);
  filter: blur(var(--hero-blur, 0px));
  transform: rotateX(var(--hero-tilt, 4deg)) translate3d(0, var(--hero-parallax, 0px), 0) scale(var(--hero-scale, 0.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(121, 76, 166, 0.46), transparent 34%),         linear-gradient(135deg, #20102e, #3a2053);
  text-align: left;
}

.hero-feature-track {
  overflow: hidden;
}

.hero-feature-item {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}

.hero-feature-item.is-active {
  display: grid;
}

.hero-feature-item strong {
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1;
}

.hero-feature-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 620;
}

.hero-feature-count {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
}

.hero-feature-next {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-feature-next:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

/* 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: -14px auto clamp(34px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

.meta-item {
  padding: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.meta-item .module-icon {
  margin-bottom: 14px;
}

.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: #77717d;
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(50px, 6vw, 80px) clamp(18px, 4vw, 54px);
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

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

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 760;
}

.section-title {
  max-width: 900px;
  margin: 0;
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(42px, 6.7vw, 84px);
  line-height: 1.06;
  font-weight: 820;
  letter-spacing: 0;
}

.section-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: #4f4f55;
  font-size: clamp(18px, 2.15vw, 25px);
  line-height: 1.26;
  font-weight: 560;
}

.dark {
  position: relative;
  z-index: 3;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 18% 8%, rgba(121, 76, 166, 0.5), transparent 34%),         linear-gradient(135deg, #24122f, #41215e 54%, #2a2447);
}

.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.18) 1px, transparent 1.5px),         linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 36%, rgba(255, 255, 255, 0.05));
  background-size: 34px 34px, 100% 100%;
  mix-blend-mode: screen;
}

.dark > * {
  position: relative;
  z-index: 1;
}

.dark .section-title,     .dark .kicker {
  color: #fff;
}

.dark .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.problem-grid,     .card-grid,     .process-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glass-card,     .info-card,     .process-item {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(160%) blur(18px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.glass-card:hover,     .info-card:hover,     .process-item:hover,     .gallery-item:hover,     .workflow-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.13);
}

.glass-card {
  min-height: 220px;
  padding: clamp(24px, 3.6vw, 38px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.05;
}

.glass-card .module-icon {
  margin-bottom: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.glass-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.info-card,     .process-item {
  min-height: 160px;
  padding: 22px;
}

.info-card h3,     .process-item h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
}

.info-card .module-icon,     .process-item .module-icon,     .stat .module-icon {
  margin-bottom: 14px;
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.module-icon svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 19px;
  transform: translate(-50%, -50%);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card p,     .process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.process-number {
  display: block;
  margin-bottom: 13px;
  color: var(--green);
  font-size: 34px;
  font-weight: 760;
  line-height: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.stat {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(18px);
}

.stat strong {
  color: var(--ink);
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 0.94;
  letter-spacing: 0;
}

.stat .module-icon {
  color: var(--green);
}

.stat p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 560;
}

.stats {
  perspective: 1200px;
}

.stats .stat.reveal {
  position: relative;
  z-index: var(--stack-z, 1);
  overflow: hidden;
  opacity: var(--stack-opacity, 1);
  transform: translate3d(var(--stack-x, 0px), var(--stack-y, 0px), 0) rotate(var(--stack-rotate, 0deg)) scale(var(--stack-scale, 1));
  transform-origin: top left;
  will-change: transform, opacity;
}

.stat::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
}

.stat.is-counting::after {
  animation: stat-progress 1150ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes stat-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }

}

.animated-stat {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .stats .stat.reveal {
    opacity: 1;
    transform: none;
  }

  .stat.is-counting::after {
    animation: none;
    transform: scaleX(1);
  }

}

.typed-evidence {
  position: relative;
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),         rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(160%) blur(18px);
}

.typed-evidence::before {
  content: "Evidence note";
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.typed-evidence p {
  margin: 0;
  max-width: 980px;
  min-height: 4.8em;
  color: #2d2733;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 760;
  line-height: 1.18;
}

.typed-evidence p::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.1em;
  vertical-align: -0.08em;
  background: var(--purple);
  opacity: var(--typing-cursor, 1);
}

#solution {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: rgba(239, 233, 246, 0.64);
}

#solution .section-inner {
  position: relative;
  z-index: 1;
}

.research-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.research-backdrop::after {
  content: "";
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: 50%;
  border-left: 1px dashed rgba(100, 63, 134, 0.13);
}

.research-signal {
  position: absolute;
  color: rgba(93, 54, 130, 0.075);
  font-family: var(--display);
  font-size: clamp(92px, 15vw, 210px);
  font-weight: 850;
  line-height: 0.82;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translate3d(0, var(--research-shift, 0px), 0) rotate(var(--research-rotate, 0deg));
  will-change: transform;
}

.research-signal:nth-child(1) {
  top: 4%;
  left: -2%;
  --research-rotate: -4deg;
}

.research-signal:nth-child(2) {
  top: 28%;
  right: -3%;
  --research-rotate: 3deg;
}

.research-signal:nth-child(3) {
  top: 56%;
  left: 2%;
  --research-rotate: -2deg;
}

.research-signal:nth-child(4) {
  right: 1%;
  bottom: 3%;
  --research-rotate: 2deg;
}

@media (max-width: 640px) {
  .research-backdrop::after {
    left: 78%;
  }

  .research-signal {
    color: rgba(93, 54, 130, 0.065);
    font-size: clamp(64px, 25vw, 104px);
  }

  .research-signal:nth-child(1) {
    top: 8%;
    left: -8%;
  }

  .research-signal:nth-child(2) {
    top: 34%;
    right: -10%;
  }

  .research-signal:nth-child(3) {
    top: 61%;
    left: -5%;
  }

  .research-signal:nth-child(4) {
    right: -8%;
    bottom: 5%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .research-signal {
    transform: rotate(var(--research-rotate, 0deg));
  }

}

.workflow-showcase {
  margin-top: 36px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.1);
  backdrop-filter: saturate(160%) blur(20px);
}

.workflow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.workflow-head h3 {
  margin: 0;
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  font-weight: 820;
}

.workflow-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.workflow-head .kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.workflow-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: #fff;
}

.workflow-slider {
  overflow: hidden;
  border-radius: 20px;
}

.workflow-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.workflow-slide {
  display: grid;
  grid-template-rows: clamp(340px, 38vw, 500px) auto;
  min-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.workflow-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  padding: 12px;
  background: radial-gradient(circle at 18% 12%, rgba(121, 76, 166, 0.34), transparent 34%),         #30213b;
}

.workflow-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px 18px;
  min-height: 112px;
}

@media (max-width: 640px) {
  .workflow-slide {
    grid-template-rows: clamp(250px, 72vw, 360px) auto;
  }

  .workflow-caption {
    min-height: 132px;
  }
}

.workflow-caption strong {
  color: var(--ink);
  font-size: 17px;
}

.workflow-caption p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.workflow-step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 760;
}

.showcase-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(22px, 4vw, 56px);
  align-items: end;
}

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

.gallery-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.1);
  backdrop-filter: saturate(160%) blur(18px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-item img {
  height: clamp(220px, 27vw, 340px);
  object-fit: contain;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 245, 247, 0.96));
  transform: translate3d(0, var(--gallery-parallax, 0px), 0);
  will-change: transform;
}

.gallery-item.wide {
  grid-column: 1 / -1;
}

.gallery-item.wide img {
  height: auto;
  max-height: none;
  padding: clamp(12px, 2vw, 22px);
}

.gallery-item p {
  margin: 0;
  padding: 15px 17px;
  color: #4f4f55;
  font-size: 15px;
  font-weight: 650;
}

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

.impact-carousel {
  position: relative;
  margin-top: 32px;
  perspective: 1400px;
}

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

.impact-card {
  position: absolute;
  inset: 0;
  width: min(72%, 700px);
  height: 100%;
  margin: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(40, 22, 55, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, -180px) scale(0.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(40, 22, 55, 0.18);
}

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

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

.impact-card .module-icon {
  margin-bottom: 16px;
  color: var(--green);
}

.impact-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
  font-weight: 800;
}

.impact-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.45;
}

.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(121, 76, 166, 0.2);
  border-radius: 50%;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 28px rgba(40, 22, 55, 0.1);
  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(--purple);
  transform: translateY(-2px);
}

.impact-control:focus-visible {
  outline: 3px solid rgba(121, 76, 166, 0.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(121, 76, 166, 0.26);
  cursor: pointer;
  transition: width 260ms ease, background 260ms ease;
}

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

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

.reflection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(160%) blur(20px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--muted);
  font-size: 14px;
}

.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) {
  *,       *::before,       *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .product-shot,       .gallery-item img,       .reveal {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
  }

}

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

  .header-context {
    justify-self: start;
  }

  .meta-strip,       .problem-grid,       .card-grid,       .process-grid,       .stats,       .showcase-intro,       .workflow-head,       .reflection-card {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .snapshot-shell {
    width: calc(100% - 16px);
    border-radius: 22px;
  }

  .snapshot-bar,       .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(54px, 20vw, 82px);
    line-height: 1.02;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .product-shot,       .reflection-card {
    border-radius: 16px;
  }

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

  .meta-note {
    grid-column: auto;
  }

  .gallery-item img {
    height: auto;
    max-height: none;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-actions {
    justify-content: flex-start;
  }

  .workflow-slide img {
    max-height: none;
  }

}

/* 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;
}

/* Process cards: number block left, text block right. */
.process-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  row-gap: 8px;
  align-items: start;
}

.process-item > .process-number {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  margin: 2px 0 0;
}

.process-item > h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.process-item > p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.time-screen-column {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (max-width: 980px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

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

}

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

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

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

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

}

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

  .impact-card {
    width: 92%;
  }

}

/* 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: -52px;
}

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

.product-shot {
  box-shadow: 0 34px 110px rgba(35, 20, 48, .16);
}

.meta-strip {
  z-index: 5;
  margin-top: -36px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 30px 84px rgba(35, 20, 48, .15);
}

/* Research cards enter independently as a compact grid. */
#solution .stats,
#solution .card-grid {
  display: grid;
  align-items: stretch;
}

#solution .stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#solution .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#solution .stat,
#solution .info-card {
  min-height: 0;
  background: #fff;
  backdrop-filter: none;
}

#solution .stat.reveal,
#solution .info-card.reveal {
  z-index: auto;
  opacity: 0;
  transform: translate3d(-54px, 0, 0);
  transform-origin: center;
  transition: opacity 620ms ease, transform 760ms cubic-bezier(.2, .8, .2, 1);
}

#solution .stat.reveal:nth-child(even),
#solution .info-card.reveal:nth-child(even) {
  transition-delay: 90ms;
}

#solution .stat.reveal.is-visible,
#solution .info-card.reveal.is-visible {
  opacity: 1;
  transform: none;
}

#solution .stat.icon-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 14px;
}

#solution .stat.icon-card > .module-icon {
  grid-column: 1;
  grid-row: 1;
}

#solution .stat.icon-card > .stat-statement {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.42;
}

#solution .stat-statement strong {
  display: inline;
  margin-right: .12em;
  color: var(--ink);
  font-size: clamp(25px, 3.4vw, 44px);
  line-height: 1;
  vertical-align: -.04em;
}

/* Automatic process carousel: controls are intentionally absent. */
.workflow-head {
  grid-template-columns: minmax(0, 1fr);
}

.workflow-slider {
  margin-top: 22px;
}

.workflow-track {
  transition: transform 760ms cubic-bezier(.2, .8, .2, 1);
}

.time-screen-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 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) {
  #solution .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stage {
    margin-bottom: -34px;
  }

  .meta-strip {
    margin-top: -22px;
  }
}

/* Match Coffee Co.'s wider laptop canvas and crisp hero depth behavior. */
:root {
  --max: 1340px;
}

.snapshot-shell {
  width: min(calc(100% - 24px), 1680px);
}

.hero-inner {
  width: min(100%, 1400px);
}

.product-shot {
  opacity: 1;
  filter: none;
}

/* Cutout hero: laptop and rotating copy form one crisp scrolling unit. */
.hero-stage {
  width: min(100%, 1260px);
  margin-top: clamp(30px, 4vw, 48px);
  margin-bottom: -54px;
}

.product-shot {
  display: grid;
  justify-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-shot > img {
  width: min(100%, 1180px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 38px rgba(35, 20, 48, .2));
}

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

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

.hero-feature-count,
.hero-feature-next {
  display: none;
}

.hero-feature-item {
  justify-items: center;
  gap: 5px;
}

.hero-feature-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-feature-item strong {
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.08;
}

.hero-feature-item span {
  max-width: 650px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

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

  .hero-stage {
    margin-bottom: -18px;
  }

  .product-shot > img {
    width: min(112%, 760px);
    max-width: none;
  }

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

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

  .meta-strip {
    margin-top: -8px;
  }

  #solution .stats,
  #solution .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #solution .stat,
  #solution .info-card {
    padding: 18px;
  }

  #solution .stat.icon-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  #solution .stat-statement strong {
    font-size: clamp(24px, 8vw, 34px);
  }

  .time-screen-column {
    grid-template-columns: 1fr;
  }

  .impact-stage {
    height: 270px;
  }

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

@media (max-width: 430px) {
  #solution .stats,
  #solution .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #solution .stat.reveal,
  #solution .info-card.reveal {
    opacity: 1;
    transform: none;
  }
}

/* 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,
.icon-btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.rotation-toggle,
.motion-toggle {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(121, 76, 166, 0.24);
  border-radius: 999px;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.15;
  cursor: pointer;
}

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

.workflow-head .rotation-toggle {
  align-self: end;
}

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

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

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

.impact-dot.is-active {
  width: 24px;
  background: transparent;
}

.impact-dot.is-active::before {
  width: 20px;
  background: var(--purple);
}

.controlled-animation {
  position: relative;
}

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

@media (max-width: 640px) {
  .workflow-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .workflow-head .rotation-toggle {
    justify-self: start;
  }

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

  .hero-rotation-toggle {
    grid-column: 1 / -1;
    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;
  }
}
