/* DEL ROZ brand page: pull up a chair. The page is a conversation, and its sections answer your hand as well as the
   scroll: DEL ROZ asks what we are having and answers with the pack's own line, the three words drop in and their
   letters lift away from the pointer, the packs are passed along the table (scroll, or drag them), a lens looks closer
   at the people drawn on the bag, the paper takes your stamp until the real wrapping paper comes up, the bag lifts and
   leans toward you, and the talk ends with tomorrow.
   Espresso, cream and a little rust; Zilla Slab with DM Sans, and Caveat for the notes in the margin. */
:root {
  --espresso: #2E2420;
  --espresso-2: #221A17;
  --cream: #EFE6D6;
  --paper: #F7F1E6;
  --rust: #B5553A;
  --rust-hi: #E39E7E;
  --slab: 'Zilla Slab', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --gut: max(clamp(16px, 4vw, 56px), (100vw - 1840px) / 2);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.5, .4, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--espresso); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; padding: 14px var(--gut); pointer-events: none; }
.bar > * { pointer-events: auto; }
h2 { font: 700 clamp(40px, 5.4vw, 92px)/.95 var(--slab); text-transform: uppercase; letter-spacing: -.005em; }
h2 em { font-style: italic; font-weight: 600; text-transform: none; color: var(--rust); }
/* notes in the margin, in a hand like the chalkboard's */
.note { font: 600 clamp(20px, 1.8vw, 28px)/1.1 var(--hand); color: var(--rust); rotate: -2deg; }

/* Pinned sections: taller than the screen, with a stage that holds still while the scroll drives it */
.pin { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }

/* Arches, like the window of the cup mark, with a fine line round them */
.arch { border-radius: 999px 999px 26px 26px; outline: 1.5px solid currentColor; outline-offset: 10px; }

/* The chats: DEL ROZ in espresso on the left, you in outline on the right, typing dots while it thinks */
.thread { display: grid; gap: 10px; align-content: end; }
.msg { justify-self: start; max-width: 88%; padding: 12px 18px; border-radius: 20px 20px 20px 6px; background: var(--espresso); color: var(--cream);
  font: 500 clamp(16px, 1.2vw, 19px)/1.35 var(--body); opacity: 0; translate: 0 14px; scale: .9; transform-origin: 0 100%;
  transition: opacity .3s, translate .5s var(--spring), scale .5s var(--spring); }
.msg.you { justify-self: end; border-radius: 20px 20px 6px 20px; background: transparent; color: var(--espresso); outline: 1.5px solid var(--espresso); outline-offset: -1.5px; transform-origin: 100% 100%; }
.msg.line { font: 700 clamp(19px, 1.7vw, 26px)/1.08 var(--slab); text-transform: uppercase; letter-spacing: .01em; padding: 14px 20px 15px; }
.msg.in { opacity: 1; translate: 0 0; scale: 1; }
.msg.out { opacity: 0; translate: 0 -10px; transition: opacity .35s, translate .35s; }
.msg.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { translate: 0 0; opacity: .45; } 30% { translate: 0 -5px; opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--espresso); background: transparent; color: var(--espresso);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s, translate .35s var(--spring); }
.chip:hover { translate: 0 -3px; }
.chip:hover, .chip.on { background: var(--espresso); color: var(--cream); }

/* 1. Hello: the chat on the left, and the pack it talks about in the arch, drifting against the pointer (--mx, --my) */
.hello { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(28px, 5vw, 96px); padding: clamp(90px, 12vh, 120px) var(--gut) clamp(36px, 7vh, 72px); overflow: hidden; }
.hello-chat { display: grid; gap: clamp(18px, 3vh, 28px); width: min(100%, 560px); justify-self: end; }
.hello-logo { width: clamp(120px, 13vw, 190px); }
.hello .thread { min-height: 250px; }
.hello-frame { position: relative; overflow: hidden; height: min(76svh, 62vw); width: min(100%, 56svh); justify-self: start; color: var(--espresso); }
.shot { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; opacity: 0; scale: 1.1;
  translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -14px); transition: opacity .9s ease, scale 7s cubic-bezier(.2, .7, .2, 1); }
.shot.on { opacity: 1; scale: 1; }
.shot:nth-child(1) { object-position: 74% 50%; }
.shot:nth-child(2) { object-position: 44% 50%; }
.shot:nth-child(3) { object-position: 47% 50%; }

/* 2. The three words: each drops in letter by letter (.on) and the letters lift away from the pointer (--py, --pr) */
.say { height: 260vh; }
.say-stage { display: grid; place-content: center; background: var(--cream); }
.say-words { display: grid; justify-items: center; font: 700 min(11.4vw, 17vh)/.9 var(--slab); text-transform: uppercase; letter-spacing: -.01em; }
.w { display: block; white-space: nowrap; }
.w:nth-child(2) { font-style: italic; font-weight: 600; text-transform: none; }
.w:nth-child(3) { color: var(--rust); }
.ch { display: inline-block; opacity: 0; transform: translateY(-130%) rotate(-16deg); translate: 0 var(--py, 0px); rotate: var(--pr, 0deg);
  transition: transform .8s var(--spring), opacity .3s; transition-delay: calc(var(--i, 0) * 30ms); }
.w.on .ch { opacity: 1; transform: none; }
.say-note { position: absolute; right: clamp(24px, 10vw, 180px); bottom: clamp(36px, 10vh, 110px); rotate: -7deg; opacity: var(--sn, 0); translate: 0 calc((1 - var(--sn, 0)) * 12px); }

/* 3. Pass it around: the row slides with the scroll or the drag, the cards leaning with its speed (--tilt) */
.rail .stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding-top: clamp(84px, 12vh, 120px);
  background: var(--espresso); color: var(--cream); }
.rail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding-inline: var(--gut); }
.rail-head .note { color: var(--rust-hi); }
.rail h2 em { color: var(--rust-hi); }
.track { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); width: max-content; padding-inline: var(--gut) 20vw;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; }
.track.dragging { cursor: grabbing; }
.slide { position: relative; flex: none; height: min(60svh, 44vw); aspect-ratio: 1672 / 941; overflow: hidden; border-radius: 24px;
  rotate: var(--tilt, 0deg); transform-origin: 50% 120%; }
.slide img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; translate: var(--px, 0px) 0; pointer-events: none; }
.slide figcaption { position: absolute; left: 18px; bottom: 16px; padding: 7px 16px 9px; border-radius: 999px; background: var(--cream); color: var(--espresso);
  font: 600 clamp(19px, 1.5vw, 25px)/1 var(--hand); }

/* 4. Look closer: the glass magnifies what is under it (--gx, --gy: where it is; the background: the photo, enlarged) */
.look { height: 300vh; }
.look .stage { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); align-items: center; gap: clamp(20px, 3vw, 56px);
  padding: clamp(84px, 12vh, 120px) var(--gut) clamp(28px, 5vh, 56px); background: var(--paper); }
.look-head { display: grid; gap: 14px; }
.look-frame { position: relative; width: 100%; aspect-ratio: 1672 / 941; max-height: 100%; overflow: hidden; border-radius: 26px; cursor: crosshair; touch-action: pan-y; }
.look-frame img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.glass { position: absolute; left: 0; top: 0; width: var(--g, 200px); height: var(--g, 200px); border-radius: 50%; pointer-events: none;
  translate: calc(var(--gx, -999px) - 50%) calc(var(--gy, -999px) - 50%); background: url(img/bag-friends.jpg) no-repeat;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7.5px var(--espresso), 0 26px 50px rgba(34, 26, 23, .45); }

/* 5. Make it yours: stamps land with a thunk where you tap, and the scroll stamps the pattern; then the real paper comes up (--wk) */
.stamp { height: 300vh; }
.stamp .stage { background: var(--cream); }
.paper { position: absolute; inset: 0; cursor: pointer; }
.paper:focus-visible { outline: 3px solid var(--rust); outline-offset: -10px; }
.mk { position: absolute; width: var(--ms, 64px); aspect-ratio: 400 / 563; background: url(img/mark.png) center / contain no-repeat; translate: -50% -50%;
  rotate: var(--r, 0deg); opacity: var(--o, .9); animation: thunk .45s var(--spring) both; pointer-events: none; }
.mk.gone { animation: lift .3s ease forwards; }
@keyframes thunk { 0% { scale: 1.7; opacity: 0; } 55% { opacity: var(--o, .9); } 100% { scale: 1; } }
@keyframes lift { to { scale: .7; opacity: 0; } }
.stamp-head { position: absolute; z-index: 2; left: var(--gut); top: clamp(84px, 12vh, 120px); display: grid; gap: 12px; padding: 18px 22px 20px; border-radius: 22px;
  background: var(--cream); pointer-events: none; opacity: calc(1 - var(--wk, 0) * 1.6); }
.wrapper { position: absolute; z-index: 3; left: 50%; top: 54%; width: min(84vw, (100svh - 180px) * 1.777); aspect-ratio: 1672 / 941; overflow: hidden; border-radius: 26px;
  translate: -50% calc(-50% + (1 - var(--wk, 0)) * 110vh); rotate: calc((1 - var(--wk, 0)) * -7deg); box-shadow: 0 40px 80px -30px rgba(34, 26, 23, .6); }
.wrapper img { width: 100%; height: 100%; object-fit: cover; }
.wrapper figcaption, .home-tag { position: absolute; left: 18px; bottom: 16px; padding: 7px 16px 9px; border-radius: 999px; background: var(--cream); color: var(--espresso);
  font: 600 clamp(19px, 1.5vw, 25px)/1 var(--hand); }

/* 6. Take it home: the bag lifts and grows as you scroll (--hp) and leans toward the pointer; a glare follows it */
.home { height: 230vh; }
.home .stage { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: clamp(84px, 12vh, 120px) var(--gut) clamp(28px, 5vh, 56px); background: var(--espresso); color: var(--cream); perspective: 1100px; }
.home h2 em { color: var(--rust-hi); }
.tilt { position: relative; aspect-ratio: 1672 / 941; overflow: hidden; border-radius: 26px; translate: 0 calc((1 - var(--hp, 0)) * 34vh); scale: calc(.84 + var(--hp, 0) * .16);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .7); will-change: transform; }
.tilt img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: var(--go, 0); transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 40%), rgba(255, 240, 220, .32), transparent 52%); mix-blend-mode: soft-light; }

/* 7. Same time tomorrow? The last chat, cream on espresso, over the footer */
.bye-chat { display: grid; gap: 22px; width: min(560px, 100%); margin-bottom: clamp(28px, 6vh, 64px); text-align: left; }
.bye-chat .thread { min-height: 170px; }
.bye-chat .msg { background: var(--cream); color: var(--espresso); }
.bye-chat .msg.you { background: transparent; color: var(--cream); outline-color: var(--cream); }
.bye-chat .chips { justify-content: center; }
.bye-chat .chip { border-color: var(--cream); color: var(--cream); }
.bye-chat .chip:hover, .bye-chat .chip.on { background: var(--cream); color: var(--espresso); }

/* The end */
.end { display: grid; justify-items: center; gap: 22px; padding: clamp(80px, 13vh, 140px) var(--gut) clamp(48px, 8vh, 80px); background: var(--espresso); color: var(--cream); text-align: center; }
.end-logo { width: min(56vw, 300px); }
.end-line { color: #D9CDB8; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--cream); background: var(--cream); color: var(--espresso);
  text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.pill span { transition: translate .3s var(--spring); }
.pill:hover span { translate: 4px 0; }
.pill:hover { background: transparent; color: var(--cream); }
.pill.ghost { background: transparent; color: var(--cream); }
.pill.ghost:hover { background: var(--cream); color: var(--espresso); }

@media (max-width: 860px) {
  .hello { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 26px; padding-top: 84px; }
  .hello-chat { justify-self: stretch; }
  .hello .thread { min-height: 190px; }
  .hello-frame { width: 100%; height: 42svh; justify-self: stretch; border-radius: 999px 999px 22px 22px / 160px 160px 22px 22px; }
  .slide { height: auto; width: 78vw; aspect-ratio: 4 / 5; }
  .look .stage, .home .stage { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .look-frame { aspect-ratio: 4 / 5; max-height: 62svh; justify-self: center; }
  .look-frame img { object-position: 47% 50%; }
  .stamp-head { right: var(--gut); }
  .wrapper { width: 92vw; }
  .tilt { aspect-ratio: 4 / 5; max-height: 58svh; justify-self: center; }
  .tilt img { object-position: 52% 50%; }
}
/* the still version (?calm in the address) */
.calm .shot { transition: opacity .4s; scale: 1; }
.calm .ch { transition: opacity .3s; }
.calm .msg.typing i { animation: none; }
.calm .mk { animation: none; }

/* Back to Grit Fox: the agency's own chip on every brand page. The fox blinks now and then, and tilts its head and
   glances back when you point at it. */
.bar-back.fox-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px 0 12px;
  border-radius: 999px; background: #1A1A1A; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap; opacity: 1;
  transition: translate .3s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s;
}
.bar-back.fox-back:hover { color: #fff; text-decoration: none; opacity: 1; translate: -2px 0; box-shadow: 0 10px 24px rgba(0, 0, 0, .26); }
.bar-back.fox-back:focus-visible { outline: 3px solid #F0AC1D; outline-offset: 3px; }
.fox-back i { font-style: normal; font-weight: 400; font-size: 14px; color: #F0AC1D; transition: translate .3s cubic-bezier(.2, 1.4, .4, 1); }
.fox-back:hover i { translate: -3px 0; }
.fox-back .fx { width: 24px; height: 24px; flex: none; overflow: visible; }
.fox-back .fx-head { transform-box: view-box; transform-origin: 500px 430px; transition: rotate .5s cubic-bezier(.2, 1.6, .4, 1); }
.fox-back:hover .fx-head { rotate: -12deg; }
.fox-back .fx-iris { transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
.fox-back:hover .fx-iris { translate: -24px 6px; }
.fox-back .fx-eye { transform-box: fill-box; transform-origin: center; animation: fxBlink 5.2s ease-in-out infinite; }
.fox-back:active .fx-eye { animation: none; scale: 1 .08; }
@keyframes fxBlink { 0%, 93%, 100% { scale: 1 1; } 96% { scale: 1 .08; } }
/* a wink when pointed at: it stays even with reduced motion, as it is tiny and only follows the pointer */
.fox-back:hover .fx-eye { animation: fxWink .34s ease-in-out; }
@keyframes fxWink { 0%, 100% { scale: 1 1; } 50% { scale: 1 .08; } }
@media (max-width: 760px) { .bar-back.fox-back { gap: 5px; padding: 0 11px 0 10px; } .fox-back span { display: none; } }
@media (prefers-reduced-motion: reduce) { .fox-back .fx-eye { animation: none; } }
