/* Thanksgiving offer: a chrome-on-ink bar above the nav and a chrome turkey that flies in once per visit to perch on it.
   Remove the [data-holiday] bar, holiday.css and holiday.js once the offer ends; holiday.js already hides it after data-ends. */
:root { --holiday-h: 2.875rem; }
body.has-holiday .nav { top: var(--holiday-h); }
body.has-holiday .skip:focus { top: calc(var(--holiday-h) + 1rem); }

.holiday {
  position: fixed; inset: 0 0 auto; z-index: 11; height: var(--holiday-h);
  display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 2vw, 1.75rem);
  padding: 0 var(--pad); background: var(--ink); color: var(--ground-top);
  font-weight: 700; font-stretch: var(--wide); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em;
  box-shadow: 0 6px 18px -10px rgb(19 17 16 / .55);
  overflow: visible; isolation: isolate;
}
.holiday[hidden] { display: none; }
/* A slow light sweep, the same move as the capsule's light-sweep clip. */
.holiday::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgb(244 245 246 / .14) 50%, transparent 65%) no-repeat;
  background-size: 40% 100%; background-position: -60% 0;
  animation: holiday-sweep 7s var(--ease-out) 3.2s infinite;
}
@keyframes holiday-sweep { 0% { background-position: -60% 0; } 45%, 100% { background-position: 160% 0; } }

.holiday__perch {
  /* hangs below the bar, between the wordmark and the nav links */
  width: auto; height: calc(var(--holiday-h) * 1.7); align-self: flex-start; margin: .15rem 0 calc(var(--holiday-h) * -.85);
  flex: none; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .45)); transform-origin: 30% 80%;
}
.holiday.is-landed .holiday__perch { animation: holiday-settle .7s var(--ease-out); }
@keyframes holiday-settle { 0% { transform: rotate(-9deg) translateY(-3px); } 55% { transform: rotate(3deg); } 100% { transform: none; } }

.holiday__msg { margin: 0; display: flex; align-items: baseline; gap: .9em; white-space: nowrap; }
.holiday__msg strong { font-weight: 800; color: var(--chrome-hi); letter-spacing: .1em; }
.holiday__msg > span { color: rgb(193 189 188 / .82); }
.holiday__msg > span::before { content: ""; display: inline-block; width: 1.25em; height: 1px; margin-right: .9em; vertical-align: .3em; background: rgb(193 189 188 / .45); }

.holiday__code {
  flex: none; display: inline-flex; align-items: center; gap: .7em; cursor: pointer;
  font: inherit; font-weight: 800; letter-spacing: .16em; color: var(--chrome-hi);
  background: transparent; border: 1px solid rgb(244 245 246 / .38); border-radius: 999px; padding: .4rem .5rem .4rem .85rem;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.holiday__code small {
  font-size: .625rem; font-weight: 700; letter-spacing: .1em; padding: .2rem .5rem; border-radius: 999px;
  background: var(--chrome-hi); color: var(--ink); transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.holiday__code svg { display: none; width: 1.15em; height: 1.15em; flex: none; }
.holiday__code:not(.has-code) { padding: .4rem .95rem; background: var(--chrome-hi); color: var(--ink); }
.holiday__code:not(.has-code):hover { background: #fff; }
.holiday__code:hover { background: var(--chrome-hi); color: var(--ink); border-color: var(--chrome-hi); }
.holiday__code:hover small { background: var(--ink); color: var(--chrome-hi); }
.holiday__code:focus-visible { outline: 2px solid var(--chrome-hi); outline-offset: 3px; }

/* The intro: the turkey's own studio fills the screen (its wall and floor colours frame the clip on narrow screens). */
html.holiday-lock { overflow: hidden; }
.holiday-intro {
  position: fixed; inset: 0; z-index: 12; overflow: hidden;
  background: linear-gradient(#605b58, #837d7a 70%, #a8a29f 70.5%, #afa8a5);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.holiday-intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 100%; }
.holiday-intro.is-leaving { opacity: 0; transform: translateY(-6vh); pointer-events: none; }

.holiday-intro__card {
  position: absolute; left: var(--pad); top: clamp(4.5rem, 14vh, 9rem); max-width: 30rem; color: var(--chrome-hi);
  opacity: 0; transform: translateY(1rem); transition: opacity .8s var(--ease-out) .25s, transform .8s var(--ease-out) .25s;
  text-shadow: 0 1px 12px rgb(19 17 16 / .25);
}
.holiday-intro.is-landed .holiday-intro__card { opacity: 1; transform: none; }
.holiday-intro__title {
  margin: 0; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 4.5rem); line-height: .94; letter-spacing: -.01em;
}
.holiday-intro__offer { margin: 1.1rem 0 1.6rem; font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.45; max-width: 26ch; }
.holiday-intro__offer b { font-weight: 800; letter-spacing: .08em; }
.holiday-intro__go {
  display: inline-flex; align-items: center; gap: .7em; cursor: pointer;
  font: inherit; font-weight: 700; font-stretch: var(--wide); text-transform: uppercase; font-size: .8125rem; letter-spacing: .1em;
  color: var(--ink); background: var(--chrome-hi); border: 0; border-radius: 999px; padding: .85rem 1.4rem;
  box-shadow: 0 8px 22px -10px rgb(19 17 16 / .6); transition: transform .3s var(--ease-out), background-color .3s var(--ease-out);
}
.holiday-intro__go:hover { background: #fff; transform: translateY(-1px); }
.holiday-intro__go span { display: inline-block; animation: holiday-nudge 1.4s var(--ease-out) infinite; }
@keyframes holiday-nudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }
.holiday-intro__go:focus-visible, .holiday-skip:focus-visible { outline: 2px solid var(--chrome-hi); outline-offset: 3px; }

/* From the bar: just the card, on the page's own ground. */
.holiday-intro.is-sheet { background: rgb(181 177 176 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; }
.holiday-intro.is-sheet .holiday-intro__card { position: static; color: var(--ink); text-shadow: none; padding: var(--pad); }
.holiday-intro.is-sheet .holiday-intro__go { background: var(--ink); color: var(--chrome-hi); }

.holiday-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 26rem; margin-bottom: 1rem; }
.holiday-form input {
  flex: 1 1 13rem; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); caret-color: var(--ink);
  background: rgb(244 245 246 / .9); border: 1px solid rgb(19 17 16 / .18); border-radius: 999px; padding: .8rem 1.1rem;
}
.holiday-form input::placeholder { color: #6b6663; }
.holiday-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.holiday-form button, .holiday-got {
  flex: none; cursor: pointer; font: inherit; font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: .8125rem; letter-spacing: .08em;
  color: var(--chrome-hi); background: var(--ink); border: 0; border-radius: 999px; padding: .8rem 1.25rem;
  transition: background-color .3s var(--ease-out), opacity .3s var(--ease-out);
}
.holiday-form button:hover { background: #2a2624; }
.holiday-form button:disabled { opacity: .6; cursor: progress; }
.holiday-form__msg { margin: -.4rem 0 1rem; font-size: .875rem; font-weight: 600; }
.holiday-got { display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.25rem; font-size: 1.125rem; letter-spacing: .14em; padding: .85rem 1rem .85rem 1.35rem; }
.holiday-got svg { width: 1.1em; height: 1.1em; }
.holiday-got small { font-size: .625rem; letter-spacing: .1em; padding: .25rem .55rem; border-radius: 999px; background: var(--chrome-hi); color: var(--ink); }
.holiday-intro__card .holiday-intro__go { margin-top: .25rem; }

.holiday-skip {
  position: absolute; right: var(--pad); bottom: max(1.25rem, env(safe-area-inset-bottom)); cursor: pointer;
  font: inherit; font-weight: 700; font-stretch: var(--wide); text-transform: uppercase; font-size: .75rem; letter-spacing: .1em;
  color: var(--chrome-hi); background: rgb(19 17 16 / .28); border: 1px solid rgb(244 245 246 / .35); border-radius: 999px; padding: .55rem 1rem;
  transition: opacity .4s var(--ease-out), background-color .3s var(--ease-out);
}
.holiday-skip:hover { background: rgb(19 17 16 / .55); }
.holiday-intro.is-landed .holiday-skip { opacity: 0; pointer-events: none; }

/* Phones: show the clip as a wide band (turkey and capsule both in view) set into its own wall and floor. */
@media (max-aspect-ratio: 1/1) {
  .holiday-intro {
    --top: 5svh; --vw: min(150vw, (95svh - 23rem) * 16 / 9); --floor: calc(var(--top) + var(--vw) * 9 / 16 * .71);
    background: linear-gradient(#605b58, #605b58 var(--top), #837d7a var(--floor), #a8a29f var(--floor), #afa8a5);
  }
  .holiday-intro video { inset: auto; top: var(--top); left: 50%; width: var(--vw); height: auto; aspect-ratio: 16 / 9; transform: translateX(-55%); object-fit: fill;
    -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 92%, transparent); }
  .holiday-intro__card { top: auto; bottom: max(2.25rem, calc(env(safe-area-inset-bottom) + 1.5rem)); right: var(--pad); color: var(--ink); text-shadow: none; }
  .holiday-intro__title { font-size: clamp(1.5rem, 6.4vw, 4.75rem); }
  .holiday-got { font-size: .9375rem; letter-spacing: .1em; padding: .75rem .8rem .75rem 1.1rem; gap: .55em; }
  .holiday-intro__go { background: var(--ink); color: var(--chrome-hi); }
  .holiday-skip { color: var(--ink); border-color: var(--hair); background: rgb(193 189 188 / .5); }
}

.holiday-flake { position: fixed; z-index: 13; pointer-events: none; width: 7px; height: 11px; border-radius: 1px;
  background: linear-gradient(135deg, #fbfcfd, #8e8a88 55%, #e9eaec); box-shadow: 0 1px 2px rgb(0 0 0 / .25); }

@media (max-width: 47.99rem) {
  :root { --holiday-h: 2.625rem; }
  .holiday { justify-content: space-between; font-size: .6875rem; gap: .6rem; padding-inline: max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right)); }
  .holiday__msg { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; min-width: 0; }
  .holiday__msg strong { font-size: .625rem; letter-spacing: .06em; }
  .holiday__msg > span { font-size: .5625rem; letter-spacing: .06em; }
  .holiday__msg > span::before, .holiday__x { display: none; }
  .holiday__code { font-size: .625rem; letter-spacing: .1em; padding: .3rem .3rem .3rem .55rem; gap: .45em; }
  .holiday__code small { font-size: .5625rem; padding: .18rem .4rem; display: none; }
  .holiday__code svg { display: block; }
  .holiday__code.is-copied small { display: inline; }
  .holiday__code.is-copied svg { display: none; }
  .holiday__perch { height: calc(var(--holiday-h) - .5rem); align-self: center; margin: 0 -.25rem 0 -.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .holiday::before, .holiday.is-landed .holiday__perch { animation: none; }
}
