:root {
  --ink: #171716;
  --ink-muted: #464640;
  --ink-soft: #777669;
  --warm: #fffdf2;
  --cream: #f3efdf;
  --surface: #fffdf8;
  --border: #ded8c7;
  --olive: #7a8c2e;
  --olive-dark: #526113;
  --lime: #dfe87a;
  --pink: #e9adb5;
  --ff-display: "DM Serif Display", serif;
  --ff-body: "Instrument Sans", sans-serif;
  --ff-mono: "DM Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --case-gutter-x: clamp(24px, 6vw, 64px);
  --case-gutter-y: clamp(54px, 6.5vw, 68px);
  --case-gutter-y-tight: clamp(42px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  color: var(--ink);
  font-family: var(--ff-body);
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 173, 181, 0.34), transparent 22%),
    radial-gradient(circle at 84% 35%, rgba(223, 232, 122, 0.28), transparent 24%),
    linear-gradient(120deg, #fffdf2 0%, #f4eedc 58%, #f6dadb 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: url("assets/Cusor point.svg") 4 4, auto;
}

body.green-theme { --project: #08c96a; --project-dark: #078b4d; --project-soft: #dff9ea; }
body.sx-theme { --project: #bd8b08; --project-dark: #8c6704; --project-soft: #fbf1d4; }
body.orange-theme { --project: #ff6a19; --project-dark: #c94500; --project-soft: #fff0e6; }
body.teal-theme { --project: #06a982; --project-dark: #08765d; --project-soft: #e1f7f1; }

a, button { color: inherit; cursor: url("assets/Cusor point.svg") 4 4, pointer; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(122, 140, 46, 0.5); outline-offset: 4px; }

.back {
  position: fixed;
  top: clamp(22px, 3vw, 52px);
  left: clamp(22px, 3.2vw, 72px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 32px rgba(23, 23, 22, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.back:hover,
.back:focus-visible {
  transform: translateY(-0.15rem);
  box-shadow: 0 18px 40px rgba(23, 23, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.86);
}

.back:active {
  transform: scale(0.96);
}

.case-hero-art {
  min-height: clamp(300px, 36vw, 520px);
  display: grid;
  place-items: center;
  padding: clamp(80px, 9vw, 138px) var(--case-gutter-x) 0;
  background: var(--project);
  overflow: hidden;
}

.delivery-top {
  min-height: clamp(360px, 37vw, 535px);
  padding: clamp(104px, 10vw, 170px) clamp(30px, 6.6vw, 150px) clamp(48px, 5vw, 84px);
  background: #08c96a;
  overflow: hidden;
}
.delivery-top h2 {
  margin-bottom: clamp(34px, 4vw, 64px);
  color: #fffdf2;
  font-family: var(--ff-body);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}
.delivery-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: clamp(18px, 4vw, 74px);
  max-width: 1520px;
}
.delivery-icon {
  aspect-ratio: 1.35;
  border-radius: 38% 48% 40% 48%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 253, 242, 0.9) 0 24%, transparent 25%),
    radial-gradient(circle at 50% 50%, var(--blob) 0 62%, transparent 63%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.04);
}
.delivery-icon svg {
  width: 58%;
  height: 58%;
  color: var(--icon);
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.08));
}
.case-hero-art img {
  width: min(1040px, 88vw);
  max-height: clamp(220px, 31vw, 430px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 56px rgba(0, 0, 0, 0.18));
}
.case-hero-art.cover img {
  width: 100%;
  max-height: none;
  height: clamp(260px, 34vw, 500px);
  object-fit: cover;
  object-position: center;
  filter: none;
  border-radius: 0;
}
.case-hero-art.sx-hero {
  min-height: 0;
  padding: 0;
  background: #0784b7;
}
.case-hero-art.sx-hero img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: none;
  border-radius: 0;
}
.delivery-banner {
  min-height: 0;
  padding: clamp(92px, 10vw, 138px) var(--case-gutter-x) clamp(24px, 3vw, 42px);
  background: #08c96a;
}
.delivery-banner img {
  width: min(1440px, 100%);
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
  border-radius: 22px;
}

.case-intro {
  padding: var(--case-gutter-y) var(--case-gutter-x) var(--case-gutter-y);
  background: rgba(255, 253, 242, 0.78);
}
.case-title {
  max-width: 1420px;
  margin-bottom: clamp(20px, 3vw, 38px);
  font-family: var(--ff-body);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}
.case-meta {
  display: grid;
  gap: 6px;
  margin-bottom: clamp(34px, 4.6vw, 70px);
  color: #0d0d0c;
  font-size: clamp(18px, 1.55vw, 30px);
  font-weight: 700;
  line-height: 1.28;
}
.case-copy {
  max-width: 1500px;
  color: var(--ink-muted);
  font-size: clamp(19px, 1.55vw, 30px);
  font-weight: 600;
  line-height: 1.48;
}
.case-copy h2 {
  margin: clamp(28px, 3vw, 44px) 0 14px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 24px;
  font-weight: 800;
}
.case-copy p + p { margin-top: 26px; }

.phone-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(28px, 5vw, 88px);
  padding: var(--case-gutter-y-tight) var(--case-gutter-x);
  background: var(--project);
}

.delivery-phone-strip {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: clamp(32px, 5.2vw, 96px);
  padding-top: clamp(42px, 4.6vw, 78px);
  padding-bottom: clamp(42px, 4.6vw, 78px);
}
.delivery-phone-strip img {
  max-height: 680px;
}
.phone-strip img {
  width: 100%;
  max-height: 660px;
  object-fit: contain;
  filter: none;
}

.content {
  padding: var(--case-gutter-y) var(--case-gutter-x);
}
.card-stack {
  display: grid;
  gap: 28px;
  max-width: 1420px;
  margin: 0 auto clamp(56px, 7vw, 120px);
}
.insight-card {
  padding: clamp(30px, 3.8vw, 58px);
  border: 1px solid rgba(138, 132, 112, 0.28);
  border-radius: clamp(18px, 2vw, 32px);
  background: rgba(255, 253, 248, 0.78);
}
.insight-card h2 {
  margin-bottom: 18px;
  font-family: var(--ff-body);
  font-size: 48px;
  font-weight: 800;
}
.insight-card p,
.insight-card li {
  color: var(--ink-muted);
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 600;
  line-height: 1.48;
}
.insight-card ul { display: grid; gap: 8px; margin-top: 16px; padding-left: 1.1em; }

.section-heading {
  max-width: 1420px;
  margin: 0 auto 28px;
  font-family: var(--ff-body);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0;
}
.section-copy {
  max-width: 1420px;
  margin: 0 auto 42px;
  color: var(--ink-muted);
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 600;
  line-height: 1.46;
}
.showcase {
  max-width: 1510px;
  margin: 0 auto clamp(58px, 7vw, 112px);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}
.showcase img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
}

.reference-slice {
  width: 100%;
  height: clamp(340px, 54vw, 740px);
  object-fit: cover;
  object-position: center var(--slice-y, 62%);
}

.light-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(30px, 5vw, 86px);
  max-width: 1420px;
  margin: 0 auto;
  align-items: center;
}
.light-hero {
  padding: clamp(92px, 12vw, 180px) var(--case-gutter-x) var(--case-gutter-y);
  background: var(--project-soft);
}
.light-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

img[src$=".png"] {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (max-width: 860px) {
  :root {
    --case-gutter-x: 24px;
    --case-gutter-y: 48px;
    --case-gutter-y-tight: 40px;
  }
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .back {
    top: 18px;
    left: 18px;
    width: 42px;
    height: 42px;
  }
  .case-hero-art { min-height: 260px; padding-top: 88px; }
  .case-hero-art img {
    width: min(100%, 760px);
    max-height: 360px;
  }
  .case-hero-art.cover img,
  .case-hero-art.sx-hero img {
    width: 100%;
    height: auto;
    max-height: none;
  }
  .delivery-banner {
    padding: 88px var(--case-gutter-x) 12px;
  }
  .delivery-banner img {
    border-radius: 0;
  }
  .case-intro { padding-left: var(--case-gutter-x); padding-right: var(--case-gutter-x); }
  .case-title {
    font-size: clamp(34px, 12vw, 42px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }
  .case-copy h2 { font-size: 24px; }
  .insight-card h2,
  .section-heading {
    font-size: clamp(30px, 9vw, 48px);
  }
  .case-meta { font-size: 17px; }
  .case-copy { font-size: 18px; }
  .phone-strip {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-left: var(--case-gutter-x);
    padding-right: var(--case-gutter-x);
  }
  .phone-strip img { max-height: 560px; }
  .delivery-top { padding: 92px 22px 44px; }
  .delivery-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .delivery-icon:last-child { grid-column: 1 / -1; justify-self: center; width: 48%; }
  .reference-slice { height: 380px; }
  .content { padding-left: var(--case-gutter-x); padding-right: var(--case-gutter-x); }
  .light-grid { grid-template-columns: 1fr; }
  .light-hero { padding-left: var(--case-gutter-x); padding-right: var(--case-gutter-x); }
  .showcase {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .showcase img {
    min-width: 0;
  }
  .insight-card {
    padding: clamp(24px, 7vw, 34px);
  }
}

@media (max-width: 560px) {
  :root {
    --case-gutter-x: 18px;
    --case-gutter-y: 42px;
    --case-gutter-y-tight: 34px;
  }

  .back {
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
  }

  .case-hero-art {
    min-height: 220px;
    padding-top: 72px;
  }

  .delivery-banner {
    padding-top: 72px;
  }

  .delivery-banner img,
  .case-hero-art.sx-hero img {
    width: calc(100% + 12px);
    max-width: none;
    margin-left: -6px;
  }

  .case-title {
    font-size: clamp(32px, 11vw, 40px);
  }

  .case-meta,
  .case-copy,
  .section-copy,
  .insight-card p,
  .insight-card li {
    font-size: 16px;
  }

  .case-copy p + p {
    margin-top: 18px;
  }

  .insight-card h2,
  .section-heading {
    font-size: clamp(28px, 8.5vw, 36px);
  }

  .phone-strip {
    gap: 28px;
  }

  .phone-strip img {
    width: min(100%, 290px);
    max-height: 520px;
  }

  .reference-slice {
    height: 300px;
  }

  .light-hero {
    padding-top: 78px;
  }

  .light-hero img {
    max-height: 320px;
  }

  .meal-match-section {
    width: calc(100vw + 2px);
  }
}

/* Interactive Design */
body.interactive-design-page {
  min-height: 100vh;
  background: #fff6dd;
  color: #090908;
}

.interactive-design-page .interactive-back {
  position: fixed;
  top: 32px;
  left: 34px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 92px;
  height: 36px;
  padding-left: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 0 rgba(23, 23, 22, 0.18), 0 12px 30px rgba(64, 42, 13, 0.08);
  color: #070707;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.interactive-design-page .interactive-back:hover,
.interactive-design-page .interactive-back:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.76);
}

.interactive-page-shell {
  position: relative;
  padding: 152px clamp(42px, 6.7vw, 94px) 160px;
  overflow: hidden;
}

.interactive-page-shell::before {
  content: none;
}

.interactive-bg-shape {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  min-width: 980px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.interactive-intro,
.meal-match-section {
  position: relative;
  z-index: 2;
}

.interactive-intro {
  max-width: 1240px;
}

.interactive-intro h1 {
  margin-bottom: 34px;
  font-family: var(--ff-body);
  font-size: clamp(34px, 3.6vw, 47px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.interactive-meta {
  display: grid;
  gap: 2px;
  margin-bottom: 34px;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}

.interactive-overview {
  max-width: 1215px;
}

.interactive-overview h2 {
  margin-bottom: 12px;
  font-family: var(--ff-body);
  font-size: clamp(24px, 2.25vw, 31px);
  font-weight: 800;
  letter-spacing: 0;
}

.interactive-overview p {
  font-size: clamp(16px, 1.31vw, 21px);
  font-weight: 500;
  line-height: 1.28;
}

.meal-match-section {
  display: grid;
  grid-template-columns: minmax(280px, min(100%, 520px));
  justify-content: center;
  align-items: start;
  width: 100vw;
  max-width: none;
  margin-top: 145px;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 40px clamp(24px, 6.7vw, 94px);
  background: linear-gradient(90deg, rgba(255, 216, 74, 0.82) 0%, rgba(255, 178, 47, 0.82) 58%, rgba(255, 152, 41, 0.82) 100%);
}

.meal-phone {
  position: relative;
  width: 100%;
  min-height: clamp(680px, 78vh, 920px);
  aspect-ratio: 393 / 852;
  padding: 0;
  border-radius: 44px;
  background: transparent;
  box-shadow: none;
}

.meal-prototype-board {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
}

.meal-phone-speaker {
  display: none;
}

.meal-phone-iframe-board {
  overflow: hidden;
}

.meal-prototype-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 44px;
  background: #fef7e4;
}

.meal-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 42px 22px 22px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 205, 82, 0.42), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(255, 122, 87, 0.24), transparent 28%),
    linear-gradient(180deg, #fff9e9 0%, #fff0c9 58%, #ffe4be 100%);
  overflow: hidden;
}

.meal-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #221710;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.meal-progress {
  width: 100%;
  height: 8px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(99, 62, 18, 0.12);
  overflow: hidden;
}

.meal-progress span {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: #ff7b2d;
  transition: width 260ms var(--ease);
}

.meal-screen {
  display: grid;
  flex: 1;
  min-height: 0;
}

.meal-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.meal-eyebrow {
  margin-bottom: 12px;
  color: #9d4a13;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meal-card h3 {
  margin-bottom: 26px;
  color: #1a120d;
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.meal-options {
  display: grid;
  gap: 12px;
}

.meal-option,
.meal-restart {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(96, 55, 12, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #1a120d;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(111, 70, 22, 0.08);
  transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.meal-option::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

.meal-option:hover,
.meal-option:focus-visible,
.meal-restart:hover,
.meal-restart:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(111, 70, 22, 0.14);
}

.meal-result {
  align-items: center;
  text-align: center;
}

.meal-result h3 {
  margin-bottom: 12px;
}

.meal-result p:not(.meal-eyebrow) {
  max-width: 260px;
  margin-bottom: 24px;
  color: #55371d;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.meal-bowl {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, #fff9e8 0 34%, transparent 35%),
    radial-gradient(circle at 38% 42%, #44b868 0 10%, transparent 11%),
    radial-gradient(circle at 62% 42%, #ffcf5a 0 12%, transparent 13%),
    radial-gradient(circle at 50% 66%, #f0633b 0 12%, transparent 13%),
    #ff8f41;
  box-shadow: inset 0 -12px 0 rgba(98, 39, 8, 0.12), 0 18px 36px rgba(111, 70, 22, 0.18);
}

.meal-bowl span {
  position: absolute;
  width: 14px;
  height: 48px;
  border-radius: 999px;
  background: #2f7f4c;
}

.meal-bowl span:nth-child(1) {
  top: 22px;
  left: 40px;
  transform: rotate(-42deg);
}

.meal-bowl span:nth-child(2) {
  top: 22px;
  right: 40px;
  transform: rotate(42deg);
}

.meal-bowl span:nth-child(3) {
  bottom: 26px;
  left: 58px;
  height: 30px;
  background: #f7c948;
}

.meal-restart {
  justify-content: center;
  width: 100%;
  max-width: 220px;
  background: #1d1712;
  color: #fff8e5;
}

@media (max-width: 860px) {
  .interactive-design-page .interactive-back {
    top: 20px;
    left: 20px;
    width: 78px;
    height: 34px;
    padding-left: 22px;
    font-size: 1.35rem;
  }

  .interactive-page-shell {
    padding: 96px 24px 96px;
  }

  .interactive-page-shell::before {
    content: none;
  }

  .interactive-bg-shape {
    left: -330px;
    width: 1180px;
    min-width: 1180px;
  }

  .interactive-intro h1 {
    margin-bottom: 24px;
  }

  .interactive-meta {
    margin-bottom: 28px;
  }

  .interactive-overview p {
    line-height: 1.34;
  }

  .meal-match-section {
    grid-template-columns: minmax(280px, min(100%, 520px));
    margin-top: 121px;
    justify-items: center;
    padding: 40px 24px;
  }

  .meal-phone {
    width: 100%;
    min-height: clamp(620px, 82vh, 780px);
    aspect-ratio: 393 / 852;
  }
}
