:root {
  color-scheme: light;
  --ink: oklch(27% .038 51);
  --ink-muted: oklch(41% .052 59);
  --linen: oklch(95% .021 76);
  --sand: oklch(87% .053 73);
  --paper: oklch(98% .012 77);
  --warm: oklch(96% .018 73);
  --rule: oklch(43% .052 52 / .28);
  --display: "Marcellus", Georgia, serif;
  --body: "Hanken Grotesk", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.7vw, 5rem);
  --space-section: clamp(3.5rem, 8vw, 8rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root[lang="ar"] {
  --display: "Noto Naskh Arabic", Georgia, serif;
  --body: "Noto Naskh Arabic", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .state h3, .journey h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.048em;
}
h2 { font-size: clamp(3rem, 6vw, 6rem); }
:lang(ar):is(h1, h2, h3) { line-height: 1.12; letter-spacing: 0; }
.shell { width: 100%; max-width: 100rem; padding-inline: var(--gutter); margin-inline: auto; }
.label { font-weight: 700; font-size: .875rem; letter-spacing: .13em; text-transform: uppercase; }
:lang(ar).label { font-size: 1.125rem; letter-spacing: 0; }
.skip {
  position: fixed;
  z-index: 4;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  padding: .7rem 1rem;
  background: var(--paper);
  transform: translateY(-170%);
}
.skip:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 3; background: var(--linen); border-block-end: 1px solid var(--rule); }
.reading-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: oklch(54% .08 54);
  transform: scaleX(var(--page-scroll, 0));
  transform-origin: left;
  pointer-events: none;
}
[dir="rtl"] .reading-progress { transform-origin: right; }
.header nav a[aria-current] { text-decoration: underline; text-underline-offset: .36em; text-decoration-thickness: 1px; }
html { scroll-padding-block-start: 5.25rem; }
.header-inner, .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.header-inner { min-height: 5.25rem; }
.brand { display: block; width: 8.6rem; }
.art-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.lockup-svg { display: block; width: 100%; height: auto; direction: ltr; }
.header nav, .footer nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
.header nav a, .footer nav a { min-height: 44px; display: grid; align-content: center; font-weight: 600; }
.header nav a:hover, .footer nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.language {
  justify-self: end;
  min-height: 44px;
  min-width: 4.75rem;
  padding-inline: .9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 100vw;
  font-weight: 600;
}
.language[lang="ar"] { font: 600 1.125rem/1.2 "Noto Naskh Arabic", Georgia, serif; }
.language[lang="en"] { font-family: "Hanken Grotesk", Arial, sans-serif; }
.language:hover { background: var(--sand); color: var(--ink); }

.hero { display: grid; grid-template-columns: 40fr 60fr; background: var(--ink); color: var(--paper); }
.hero-copy {
  min-width: 0;
  min-height: clamp(25rem, 42vw, 45rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter);
}
.hero h1 {
  margin-block: .35em .43em;
  font-size: clamp(2.4rem, 4.65vw, 5.75rem);
  line-height: .99;
}
.hero h1 span { display: block; }
.hero h1:lang(ar) { font-size: clamp(2.65rem, 5.5vw, 6.2rem); line-height: 1.1; }
.hero-photo { position: relative; min-height: 100%; background: var(--warm); }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero .primary { background: var(--paper); color: var(--ink); }
.hero .primary:hover { background: var(--linen); }
.hero .text-link { color: var(--linen); }
.hero-actions { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); flex-wrap: wrap; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: fit-content;
  min-height: 48px;
  padding: .28rem .3rem .28rem .95rem;
  padding-inline: .95rem .3rem;
  border: 1px solid transparent;
  border-radius: 100vw;
  font-weight: 700;
  transition: background-color .24s var(--ease), color .24s var(--ease);
}
.arrow {
  min-width: 2.02rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
}
[dir="rtl"] .arrow { transform: scaleX(-1); }
.primary { background: var(--ink); color: var(--paper); }
.primary .arrow { background: var(--sand); color: var(--ink); }
.primary:hover { background: var(--ink-muted); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .28em;
  font-weight: 700;
}
.text-link:hover { text-decoration-thickness: 2px; }

.products { padding-block: var(--space-section); }
.products h2 { margin-block-end: clamp(1.25rem, 3vw, 2.5rem); }
.product-grid, .spoon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.65vw, 1.6rem); }
.product-photo { position: relative; overflow: hidden; aspect-ratio: .90; border-radius: .35rem; background: var(--warm); }
.product-photo img { position: absolute; width: 200%; max-width: none; height: auto; top: 49%; left: 0; transform: translateY(-50%); }
.product-photo-sesame img, .product-photo-almond img { left: auto; right: 0; }
.product-grid { row-gap: clamp(1.4rem, 3vw, 2.25rem); }
.product-caption { min-height: 5.85rem; border-block-end: 1px solid var(--rule); padding: .75rem .05rem .85rem; }
.product h3 { font: 400 clamp(1.22rem, 2.4vw, 2.25rem)/1.2 var(--display); }
.product-status { margin-block-start: .25rem; color: var(--ink-muted); font-size: .95rem; }
@media (min-width: 65rem) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.story { background: var(--ink); color: var(--paper); }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 6vw, 6rem); padding-block-start: clamp(3.25rem, 7vw, 7rem); }
.story-photo img { width: 100%; height: auto; aspect-ratio: 1.28; object-fit: cover; object-position: center 61%; border-radius: .35rem; }
.story-copy p, .uses-copy p {
  margin-block-start: 1.35rem;
  max-width: 31ch;
  font-size: clamp(1.15rem, 1.75vw, 1.65rem);
  line-height: 1.5;
}
.story-copy p { color: var(--linen); }
.journey { display: grid; grid-template-columns: 1fr 2.6fr; gap: 1rem; padding-block: clamp(2rem, 4vw, 4rem); align-items: baseline; }
.journey h3 { font-size: clamp(1.45rem, 2.3vw, 2.2rem); letter-spacing: -.025em; }
.journey ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  color: var(--linen);
}
.journey li { border-block-start: 1px solid oklch(92% .024 75 / .42); padding-block-start: .65rem; }

.uses {
  display: grid;
  grid-template-columns: .83fr 1.4fr;
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: center;
  padding-block: var(--space-section);
}
.uses h2 { max-width: 9ch; }
.uses .text-link { margin-block-start: .85rem; }
.spoon-grid img { width: 100%; height: auto; aspect-ratio: .86; object-fit: cover; border-radius: .35rem; }
.spoon-grid figcaption { margin-block-start: .5rem; font-weight: 600; color: var(--ink-muted); }

.quiz { background: var(--sand); }
.quiz-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(38rem, 63vw, 53rem);
  padding: 3.75rem var(--gutter);
}
.quiz-orbit {
  --turn: 0deg;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  rotate: var(--turn);
  pointer-events: none;
  direction: ltr;
  transition: opacity .4s var(--ease);
}
.quiz-stage.in-quiz .quiz-orbit { opacity: .27; }
.orbit-item {
  --position-angle: var(--angle);
  position: absolute;
  filter: drop-shadow(0 .2rem .18rem oklch(30% .042 50 / .19));
  transform: rotate(var(--position-angle)) translateX(var(--radius))
    rotate(calc(var(--tilt) - var(--position-angle) - var(--turn)));
}
.orbit-0 { --radius: clamp(18rem, 25.5vw, 24rem); --size: clamp(2.7rem, 4.3vw, 4.3rem); }
.orbit-1 { --radius: clamp(20rem, 34vw, 34rem); --size: clamp(3.6rem, 5.75vw, 5.6rem); }
.orbit-2 { --radius: clamp(26rem, 44vw, 44rem); --size: clamp(4.5rem, 7.2vw, 7rem); }
.orbit-item .pouch-sprite { translate: -50% -50%; }
.pouch-sprite {
  display: block;
  width: var(--size);
  aspect-ratio: .72;
  background: url("assets/pouch-pair.webp") var(--sprite-x, 15.6%) var(--sprite-y, 43%) / 283% 137% no-repeat;
  clip-path: polygon(0 8%, 1% 4%, 5% 1%, 10% 0, 90% 0, 96% 1%, 99% 4%, 100% 8%, 99% 17%, 100% 19%, 97% 89%, 96% 96%, 92% 99%, 7% 99%, 4% 97%, 3% 93%, 0 19%, 1% 17%);
}
.pouch-sesame { --sprite-x: 84.7%; }
.pouch-egg-white, .pouch-almond { background-image: url("assets/upcoming-pouch-pair.webp"); }
.pouch-almond { --sprite-x: 84.7%; }
.orbit-toggle {
  position: absolute;
  inset-block-end: .85rem;
  inset-inline-end: var(--gutter);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  font: 700 1rem/1 var(--body);
}
.orbit-toggle:hover { background: var(--linen); }
.quiz-copy { text-align: center; display: grid; justify-items: center; width: min(100%, 38rem); }
.quiz-copy h2 { font-size: clamp(3.3rem, 4.8vw, 5.3rem); text-wrap: balance; }
.quiz-copy p { max-width: 31ch; margin-block: 1.1rem 1.45rem; color: var(--ink-muted); font-size: clamp(1.05rem, 1.4vw, 1.35rem); }
.quiz-states { width: min(100%, 42rem); }
.state { background: var(--paper); border: 1px solid var(--rule); border-radius: .55rem; padding: clamp(1.25rem, 4vw, 3rem); }
.state h3 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.state h3:focus { outline: none; }
.progress { display: flex; gap: .75rem; align-items: center; color: var(--ink-muted); font-weight: 700; margin-block-end: .7rem; }
.progress-track { display: flex; gap: .25rem; }
.progress-track i { display: block; width: 1.35rem; height: .2rem; border-radius: 1rem; background: var(--sand); }
.progress-track i:first-child, [data-step="1"] .progress-track i { background: var(--ink); }
.quiz-options { display: grid; gap: .65rem; margin-block-start: 1.4rem; }
[data-step="0"] .quiz-options { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex;
  gap: .5rem;
  align-items: center;
  width: 100%;
  min-height: 48px;
  text-align: start;
  padding: .6rem .85rem;
  border: 1px solid var(--rule);
  background: var(--warm);
  border-radius: .35rem;
  font-weight: 700;
  line-height: 1.24;
  transition: background-color .24s var(--ease);
}
.choice:hover { background: var(--linen); }
.choice:has(.choice-photo) { min-height: 5rem; }
.choice-photo { --size: 2.2rem; flex-shrink: 0; }
.choice-title { min-width: 0; }
.choice .arrow { margin-inline-start: auto; min-width: 1rem; }
.back { margin-block-start: 1.25rem; border-color: var(--rule); background: transparent; }
.back:hover { background: var(--linen); }
.result { display: grid; grid-template-columns: .86fr 1fr; padding: 0; overflow: hidden; }
.result > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.result-copy { padding: clamp(1.2rem, 3vw, 2rem); }
.result h3 { margin-block: .42rem .7rem; }
.result p:not(.label) { line-height: 1.45; }
.jar-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; background: var(--paper); }
.jar-gallery img { width: 100%; height: auto; aspect-ratio: 1.43; object-fit: cover; object-position: center 62%; }
.footer { background: var(--ink); color: var(--paper); padding-block: 1.4rem; }
.footer .brand { filter: brightness(0) invert(.96) sepia(.1); }
.footer .language { border-color: oklch(92% .024 75 / .42); }
.footer nav { flex-wrap: wrap; column-gap: 1.4rem; row-gap: 0; }

@media (max-width: 58rem) {
  .hero-copy { min-height: min(27rem, 46vw); }
  .uses { grid-template-columns: .88fr 1.2fr; }
}
@media (max-width: 44rem) {
  html { scroll-padding-block-start: 0; }
  .header { position: relative; }
  .header-inner, .footer-inner { grid-template-columns: 1fr 1fr; column-gap: 1rem; row-gap: 0; }
  .header nav, .footer nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .header nav { border-block-start: 1px solid var(--rule); }
  .header nav a, .footer nav a { font-size: .95rem; }
  .header nav:lang(ar) a, .footer nav:lang(ar) a { font-size: 1rem; }
  .brand { width: 6.7rem; margin-block: .6rem; }
  .hero, .uses { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; padding-block: 2.5rem 2.65rem; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4.6rem); }
  .hero h1:lang(ar) { font-size: clamp(3.25rem, 11vw, 5rem); }
  .hero-photo { min-height: 0; aspect-ratio: 1.5; }
  .product-photo { aspect-ratio: .83; }
  .jar-gallery img { aspect-ratio: .75; }
  .story-inner { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .journey li { font-size: .93rem; }
  .uses h2 { max-width: none; }
  .uses-copy p { margin-block-start: .75rem; }
  .quiz-stage { min-height: 34rem; }
  .orbit-item { --position-angle: var(--phone-angle); }
  .orbit-0 { --radius: 11.9rem; --size: 2.55rem; }
  .orbit-1 { --radius: 16rem; --size: 3.15rem; }
  .orbit-2 { --radius: 20.3rem; --size: 4.1rem; }
  .orbit-desktop { display: none; }
  .quiz-copy h2 { font-size: clamp(3rem, 11vw, 4.35rem); max-width: 14ch; }
  .choice:has(.choice-photo) { display: grid; grid-template-columns: 1fr auto; }
  .choice-photo { grid-column: 1 / -1; justify-self: center; --size: 2.5rem; }
}
@media (max-width: 24rem) {
  .header nav { gap: .35rem; }
  .header nav a { font-size: .875rem; }
  .choice { padding-inline: .5rem; gap: .28rem; }

}
@media (max-width: 30rem) {
  .result { grid-template-columns: 1fr; }
  .result > img { height: 10rem; object-position: 50% 59%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
