/* Nómada — four full-screen chapters. All artwork is independent of the text. */
:root {
  --paper: #f4efe6;
  --ink: #151310;
  --orange: #ef793d;
  --white: #fff;
  --ink-muted: #534d44;
  --paper-muted: #d7d1c7;
  --ink-line: #15131030;
  --cream-line: #f4efe650;
  --backdrop: #151310cc;
  --clear: transparent;
  --product-shadow: #25170b35;
  --food-shadow: #080502a6;
  --space: 8px;
  --gutter: 24px;
  --header-height: 72px;
  --interface: var(--ink);
  --header-background: #151310;
  --header-foreground: #fff;
  font-family: Barlow, system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
body[data-scene="crunch"] { --interface: var(--paper); }
body, button, a { -webkit-tap-highlight-color: var(--clear); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; font: inherit; color: inherit; background: none; cursor: pointer; }
a, button { touch-action: manipulation; }
img { display: block; width: 100%; height: auto; }
picture { display: block; }
button, a { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 16px; z-index: 100; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: calc(var(--header-height) + env(safe-area-inset-top)); padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--interface); pointer-events: none; transition: color .2s, background-color .2s; }
.site-header.is-scrolled { background: var(--header-background); color: var(--header-foreground); pointer-events: auto; }
body .site-header.is-scrolled .brand img { filter: brightness(0) invert(1); }
body .site-header.is-scrolled .desktop-nav { background: var(--clear); }
.site-header > * { pointer-events: auto; }
.brand { display: block; width: 104px; }
.brand img { filter: brightness(0); transition: filter .25s; }
body[data-scene="crunch"] .brand img { filter: none; }
.desktop-nav { display: none; }
.menu-toggle { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.menu-toggle span { width: 28px; height: 2px; background: currentColor; }
.scene-nav { position: fixed; right: 4px; top: 16%; display: grid; z-index: 15; color: var(--interface); }
.scene-nav a { width: 28px; height: 24px; display: grid; place-items: center; }
.scene-nav span { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--cream-line); transition: background .2s, transform .2s; }
.scene-nav [aria-current] span { background: var(--orange); transform: scale(1.3); border-color: var(--ink); }
body[data-scene="momentos"] .scene-nav [aria-current] span { background: var(--ink); }
.scene { position: relative; isolation: isolate; min-height: 100dvh; height: max(100dvh, 720px); overflow: clip; scroll-snap-align: start; scroll-snap-stop: always; }
.scene-number { position: absolute; z-index: 8; bottom: max(24px, env(safe-area-inset-bottom)); left: var(--gutter); font-size: 13px; font-weight: 600; line-height: 1; }
.button { position: relative; display: inline-flex; min-height: 56px; padding: 16px 24px; align-items: center; justify-content: center; gap: 16px; border-radius: 100px; color: var(--paper); background: var(--ink); font-size: 22px; font-weight: 600; line-height: 1; transition: transform .2s, background .2s, color .2s; }
.button .icon { width: 22px; height: 22px; flex-basis: 22px; }
.button--small { min-height: 44px; font-size: 17px; padding: 12px 24px; gap: 8px; }
.button--cream { background: var(--paper); color: var(--ink); }
.next-scene { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); right: 16px; width: 44px; height: 44px; display: grid; place-items: center; z-index: 8; }
.next-scene .icon { width: 26px; height: 26px; }
.scene-action { position: absolute; left: 72px; right: 72px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 8; text-align: center; }
.thread { position: absolute; z-index: 0; pointer-events: none; color: var(--orange); }
.thread path { stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.product-layer img { width: 100%; height: 100%; object-fit: contain; }

/* 01 — instant appetite, product recognition, and a direct purchase route. */
.hero { background: var(--paper); }
.hero-title { display: contents; }
.hero-word { position: absolute; left: 5%; right: 5%; display: block; font-weight: 900; font-size: clamp(96px, 31vw, 160px); line-height: .78; letter-spacing: -.065em; }
.hero-word--top { top: 13%; color: var(--ink); z-index: 1; }
.hero-word--bottom { bottom: 17%; color: var(--orange); z-index: 4; transform: scaleX(.8); transform-origin: left center; }
.hero-definition { position: absolute; top: 36%; left: 6%; max-width: 88px; z-index: 6; font-size: 14px; font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.hero-definition span { display: block; margin-top: 24px; }
.hero-definition::after { content: ''; display: block; width: 48px; height: 2px; margin-top: 8px; background: var(--orange); rotate: -5deg; }
.hero-pouch { position: absolute; z-index: 3; top: 26%; left: 19%; width: 72%; height: 47%; rotate: -12deg; }
.hero-chip { position: absolute; pointer-events: none; }
.hero-chip--front { z-index: 5; width: 38%; left: -3%; bottom: 27%; rotate: 17deg; }
.hero-chip--back { z-index: 2; width: 25%; right: -4%; top: 32%; rotate: -24deg; }
.hero-thread { inset: 12% -3% auto; width: 106%; height: 78%; }
.hero-weight { position: absolute; right: 5%; top: 68%; font-size: 16px; line-height: 1; font-weight: 600; z-index: 6; }
.hero-weight span { display: none; margin-top: 4px; max-width: 72px; font-size: 12px; line-height: 1.1; }
.hero-weight::after { content: ''; display: block; width: 40px; height: 2px; background: var(--orange); margin-top: 8px; rotate: -7deg; }
.hero-action { position: absolute; bottom: 7%; left: var(--gutter); right: var(--gutter); z-index: 8; }
.hero-action .button { width: 100%; }
.hero-action p { position: absolute; top: calc(100% + 16px); left: 0; font-size: 11px; font-weight: 600; }
.hero .scene-number { display: none; }
.hero .next-scene { bottom: 8px; }

/* 02 — the sound and texture take over the entire viewport. */
.flavor { background: var(--ink); color: var(--paper); }
.flavor-eyebrow { position: absolute; left: 7%; top: 12%; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.flavor-word { position: absolute; z-index: 1; font-size: clamp(120px, 43vw, 240px); line-height: .72; font-weight: 900; letter-spacing: -.055em; }
.flavor-word--outline { left: 5%; top: 21%; color: var(--clear); -webkit-text-stroke: 1px var(--paper); }
.flavor-word--solid { left: 3%; bottom: 23%; color: var(--orange); rotate: -6deg; font-size: clamp(120px, 40vw, 224px); transform: scaleX(.82); transform-origin: left center; }
.crunch-layer { position: absolute; z-index: 3; left: -17%; width: 134%; top: 29%; rotate: -7deg; pointer-events: none; }
.crunch-layer img { width: 100%; height: auto; }
.flavor-description { position: absolute; left: 7%; bottom: 15%; z-index: 5; font-size: 17px; line-height: 1.15; font-weight: 600; }
.flavor-description::after { content: ''; display: block; width: 88px; height: 2px; margin-top: 8px; background: var(--orange); rotate: -7deg; }
.flavor-thread { width: 115%; height: 80%; left: -12%; top: 24%; }

/* 03 — native horizontal swiping, independently of the vertical story. */

/* 04 — appetite resolves into a simple choice in the Shopify store. */
.purchase { background: var(--paper); }
.purchase-orange { position: absolute; z-index: -1; inset: 0; background: var(--orange); clip-path: polygon(0 81%,100% 69%,100% 100%,0 100%); }
.purchase-title { position: absolute; left: 6%; right: 6%; top: 13%; font-size: clamp(48px, 15.7vw, 88px); font-weight: 900; line-height: .9; letter-spacing: -.05em; z-index: 3; }
.purchase-title > span { color: var(--orange); font-size: 1.2em; }
.purchase-pouch { position: absolute; z-index: 2; left: 21%; top: 34%; height: 42%; width: 65%; rotate: 7deg; }
.purchase-thread { left: -4%; top: 17%; width: 108%; height: 75%; }
.purchase-chip { position: absolute; z-index: 4; width: 31%; left: -4%; top: 65%; rotate: -24deg; pointer-events: none; }
.macro { position: absolute; z-index: 5; font-size: 14px; font-weight: 600; line-height: 1.1; }
.macro strong { display: block; font-size: 22px; line-height: 1; }
.macro--protein { top: 48%; left: 6%; }
.macro--sugar { top: 59%; right: 7%; }
.macro--sugar strong { font-size: 32px; }
.macro::after { content: ''; display: block; width: 40px; height: 2px; margin-top: 8px; background: var(--orange); rotate: -6deg; }
.purchase-action { position: absolute; z-index: 8; bottom: 9%; left: var(--gutter); right: var(--gutter); }
.purchase-action > p { margin-bottom: 24px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.purchase-action .button { width: 100%; }
.purchase-footer { position: absolute; z-index: 8; bottom: max(20px, env(safe-area-inset-bottom)); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; font-weight: 600; }
.purchase-footer a { min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
.purchase-footer .icon { width: 12px; height: 12px; flex-basis: 12px; }
.purchase-footer .contact-link { display: none; }

/* Navigation uses the native modal focus model; Escape and backdrop close it. */
.site-menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(32px, env(safe-area-inset-bottom)); color: var(--paper); background: var(--ink); border: 0; }
.site-menu::backdrop { background: var(--backdrop); }
.site-menu[open] { display: flex; flex-direction: column; }
.menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 64px; }
.menu-top img { width: 104px; height: auto; }
.menu-close { width: 40px; height: 40px; font-size: 40px; line-height: 1; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .15em; }
.site-menu nav { margin: 24px 0 32px; display: grid; }
.site-menu nav a { padding: 16px 0; border-bottom: 1px solid var(--cream-line); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: clamp(28px, 8vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.site-menu nav span { font-size: 13px; font-weight: 400; color: var(--orange); }
.menu-product-link { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; align-self: flex-start; color: var(--orange); font-size: 18px; font-weight: 600; }
.menu-email { margin-top: auto; padding-top: 32px; font-size: 14px; }
.menu-open { overflow: hidden; }

/* Motion only runs on the current chapter and disappears for reduced motion. */
@keyframes pouch-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes crunch-reveal { from { opacity: .4; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.is-active .hero-pouch, .is-active .purchase-pouch { animation: pouch-float 6s ease-in-out infinite; }
.is-active .crunch-layer img { animation: crunch-reveal .7s ease-out both; }
.page-hidden .product-layer { animation-play-state: paused; }
@media (hover: hover) {
  .button:hover { transform: translateY(-3px); background: var(--orange); color: var(--ink); }
  .purchase .button:hover { background: var(--paper); }
  .desktop-nav a:hover, .purchase-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero-word { font-size: 29vw; }
  .hero-pouch { left: 25%; width: 58%; }
  .hero-definition { max-width: 140px; font-size: 20px; }
  .hero-chip--front { width: 27%; left: 8%; }
  .hero-chip--back { width: 20%; right: 6%; }
  .purchase-title { font-size: 12vw; }
  .purchase-pouch { left: 30%; width: 48%; }
  .macro { font-size: 20px; }
}
@media (min-width: 900px) {
  :root { --gutter: 64px; --header-height: 96px; }
  .site-header { padding-top: 24px; padding-bottom: 24px; }
  .brand { width: 128px; }
  .desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 40px; font-size: 14px; font-weight: 600; }
  .desktop-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
  body[data-scene="momentos"] .desktop-nav { background: var(--paper); padding: 0 16px; gap: 24px; border-radius: 100px; }
  .desktop-nav .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .menu-toggle { margin-left: 16px; }
  .scene-nav { top: 44%; right: 16px; }
  .scene-nav a { width: 32px; height: 32px; }
  .scene { height: max(100dvh, 720px); }
  .scene-number { bottom: 32px; }
  .next-scene { right: 56px; bottom: 24px; }
  .hero-word { font-size: clamp(176px, 23vw, 400px); left: 5%; right: auto; }
  .hero-word--top { top: 19%; }
  .hero-word--bottom { left: auto; right: 5%; bottom: 14%; font-size: clamp(176px, 18.5vw, 320px); transform: none; }
  .hero-pouch { left: 34%; top: 17%; width: 40%; height: 70%; }
  .hero-definition { top: 48%; left: 8%; max-width: 180px; font-size: 21px; }
  .hero-definition br { display: none; }
  .hero-definition span { max-width: 130px; font-size: 16px; line-height: 1.15; }
  .hero-chip--front { left: 25%; bottom: 20%; width: 18%; }
  .hero-chip--back { right: 17%; top: 26%; width: 12%; }
  .hero-thread { width: 60%; height: 95%; left: 20%; top: 2%; }
  .hero-weight { top: 54%; right: 12%; font-size: 24px; }
  .hero-weight span { display: block; max-width: 140px; font-size: 14px; }
  .hero-action { left: 8%; right: auto; bottom: 12%; }
  .hero-action .button { width: auto; min-width: 232px; }
  .hero-action p { font-size: 12px; }
  .hero .next-scene { bottom: 24px; }
  .hero .scene-number { display: block; }
  .flavor-eyebrow { left: 8%; top: 17%; font-size: 24px; }
  .flavor-word--outline { top: 26%; left: 5%; font-size: clamp(240px, 32vw, 560px); }
  .flavor-word--solid { left: auto; right: 6%; bottom: 20%; font-size: clamp(240px, 27vw, 480px); transform: none; }
  .crunch-layer { left: 8%; width: 78%; top: 20%; }
  .flavor-description { left: 8%; bottom: 24%; font-size: 22px; }
  .flavor-thread { left: 0; width: 68%; top: 10%; height: 110%; }
  .scene-action { left: 8%; right: auto; bottom: 12%; }
  .flavor .button { min-width: 168px; }
  .purchase-title { left: 6%; right: auto; top: 22%; font-size: clamp(80px, 9vw, 160px); }
  .purchase-pouch { left: auto; right: 7%; top: 18%; width: 36%; height: 69%; }
  .purchase-thread { left: 41%; width: 60%; height: 100%; top: 0; }
  .purchase-orange { clip-path: polygon(0 88%,100% 71%,100% 100%,0 100%); }
  .purchase-chip { left: auto; right: 36%; top: 57%; width: 16%; rotate: 15deg; }
  .macro { font-size: 18px; }
  .macro--protein { top: 61%; left: 7%; }
  .macro--sugar { top: 61%; left: 27%; right: auto; }
  .macro strong { font-size: 32px; }
  .macro--sugar strong { font-size: 40px; }
  .purchase-action { left: 6%; right: auto; bottom: 12%; }
  .purchase-action > p { text-align: left; font-size: 18px; margin-bottom: 16px; }
  .purchase-action .button { width: auto; min-width: 296px; }
  .purchase-footer { left: 6%; right: 6%; bottom: 24px; font-size: 12px; justify-content: flex-start; gap: 32px; }
  .purchase-footer .contact-link { display: inline-flex; margin-left: auto; }
  .site-menu { left: auto; width: min(640px, 100%); padding: 32px 48px; }
  .menu-top { margin-bottom: 72px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .hero-word { font-size: 30vw; }
  .hero-definition { font-size: 12px; left: 5%; }
  .hero-pouch { left: 22%; width: 70%; }
  .macro { font-size: 12px; }
  .purchase-footer { font-size: 9px; gap: 8px; }
}
@media (min-width: 900px), (hover: hover) and (pointer: fine) {
  :root { scroll-behavior: auto; scroll-snap-type: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none!important; transition: none!important; }
}

/* Art direction refinement: curved live type, sculpted cutouts and shared depth. */
.curved-word { display: block; width: 100%; height: auto; overflow: visible; fill: currentColor; }
.curved-word text { font-family: Barlow, system-ui, sans-serif; font-size: 130px; font-weight: 900; letter-spacing: -4px; }
.hero-word--top { top: 7%; left: 3%; right: 3%; }
.hero-word--bottom { bottom: 15%; left: 2%; right: 2%; transform: none; }
.hero-pouch { left: 19%; top: 25.5%; width: 72%; height: 46.5%; rotate: 10deg; }
.product-layer { filter: drop-shadow(5px 12px 9px var(--product-shadow)); }
.product-layer img { transform: translateY(var(--scene-drift, 0px)); }
.hero-definition { top: 35%; }
.hero-weight { top: 65%; right: 6%; }
.hero-chip { filter: drop-shadow(4px 10px 5px var(--product-shadow)); }
.hero-chip--front { width: 35%; left: -4%; bottom: 28%; rotate: -15deg; }
.hero-chip--back { width: 24%; right: -4%; top: 39%; rotate: 28deg; }
.hero-chip--spark { z-index: 2; width: 16%; left: 1%; top: 28%; rotate: -30deg; }
.hero-thread { opacity: .75; }
.flavor-word--outline { top: 18%; font-size: clamp(144px, 48vw, 280px); transform: rotate(-4deg) scaleX(.91); transform-origin: left bottom; }
.flavor-word--solid { bottom: 22%; rotate: -8deg; }
.crunch-layer { top: 30%; left: -12%; width: 124%; rotate: -3deg; filter: drop-shadow(8px 16px 6px var(--food-shadow)); translate: 0 var(--scene-drift,0px); }
.purchase-orange { display: block; width: 100%; height: 100%; background: none; clip-path: none; fill: var(--orange); }
.purchase-title { rotate: -3deg; transform-origin: left top; }
.purchase-pouch { rotate: -5deg; }
.purchase-chip { filter: drop-shadow(4px 8px 5px var(--product-shadow)); }
.purchase-chip--right { left: auto; top: auto; bottom: 21%; right: -5%; width: 32%; rotate: -28deg; }
.purchase-chip--top { left: auto; right: -2%; top: 34%; width: 21%; rotate: 52deg; }
@keyframes chip-drift { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.is-active .hero-chip { animation: chip-drift 5s ease-in-out infinite; }
.is-active .hero-chip--back { animation-delay: -2s; }
.is-active .hero-chip--spark { animation-delay: -3.5s; }
.page-hidden .hero-chip { animation-play-state: paused; }
@media (max-height: 740px) and (max-width: 899px) {
  .scene { height: max(100dvh, 640px); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero-word--top { left: 9%; right: 9%; }
  .hero-word--bottom { left: 7%; right: 7%; }
  .hero-pouch { left: 25%; width: 58%; }
  .hero-chip--front { width: 30%; left: 4%; }
  .hero-chip--spark { width: 12%; left: 13%; }
}
@media (min-width: 900px) {
  .hero-word--top { top: 9%; left: 4%; right: auto; width: 61%; }
  .hero-word--bottom { bottom: 7%; left: auto; right: 4%; width: 70%; }
  .hero-pouch { left: 36%; top: 20%; width: 38%; height: 65%; }
  .hero-definition { top: 47%; }
  .hero-weight { top: 55%; right: 12%; }
  .hero-chip--front { width: 19%; left: 25%; bottom: 20%; }
  .hero-chip--back { width: 12%; right: 16%; top: 38%; }
  .hero-chip--spark { width: 8%; left: 31%; top: 24%; }
  .flavor-word--outline { top: 24%; font-size: clamp(240px,32vw,560px); }
  .crunch-layer { left: 9%; top: 18%; width: 78%; }
  .purchase-chip--right { right: 4%; bottom: 20%; width: 16%; }
  .purchase-chip--top { right: 6%; top: 23%; width: 10%; }
}
