/* Footer: the finale, then the links, in one screen under the nav on desktop (every page but checkout).
   The stage is a dark studio: a beam from above, the label's honeycomb lit on the wall behind, and the real 3D vial
   (js/footer.js) that rises out of the dark and turns to face you when the footer arrives. Self-contained: the front
   page and the store pages load different stylesheets, so nothing here leans on either. */
.ft {
  --ft-ink: #eaf3fb; --ft-dim: rgba(226, 231, 255, .66); --ft-faint: rgba(226, 231, 255, .5); --ft-line: rgba(255, 255, 255, .1);
  --ft-sky: #a9b7ff; --ft-ground: #060c3a; --ft-pad: clamp(16px, 2.4vw, 36px);
  position: relative; display: flex; flex-direction: column; min-height: 620px; height: calc(100svh - var(--ft-nav, 70px));
  background: var(--ft-ground); color: var(--ft-ink); font: 400 16px/1.5 "Matter", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow: hidden; isolation: isolate;
}
.ft a { color: inherit; }
.ft :focus-visible { outline: 2px solid var(--ft-sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- the stage ---------- */
.ft-stage {
  position: relative; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(28px, 4vw, 72px); padding: clamp(28px, 4.4vh, 52px) var(--ft-pad) clamp(22px, 3.6vh, 40px);
  background:
    radial-gradient(17% 40% at 50% 40%, rgba(40, 72, 255, .5), rgba(40, 72, 255, .16) 55%, transparent 100%),
    radial-gradient(60% 85% at 50% 32%, #0e1c6a 0%, rgba(14, 28, 106, .5) 55%, transparent 100%),
    linear-gradient(180deg, #071046, #050a30);
}
/* the honeycomb wall: lit in a ring around the vial, dark at the centre so it never runs through the label */
.ft-wall { inset: 0; border-radius: 0; z-index: 0;
  --hx-o: 1; --hx-r: 0%;
  --hx-mask: radial-gradient(calc(var(--hx-r) * .27) calc(var(--hx-r) * .6) at 50% 41%, transparent 10%, #000 34%, rgba(0, 0, 0, .3) 60%, transparent 86%);
  --hx-glow-at: 30% 50% at 50% 40%; --hx-g: .16; }
.ft-wall::before { opacity: .42; }
@property --hx-r { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.ft.lit .ft-wall { --hx-r: 100%; transition: --hx-r 2.4s cubic-bezier(.22, .61, .21, 1) .5s; }
.ft-wall::after { opacity: 0; transition: opacity 1.6s ease .6s; }
.ft.lit .ft-wall::after { opacity: 1; }

/* the beam: a soft cone from above, laid over everything in screen so it reads as light in the air */
.ft-beam { position: absolute; z-index: 1;   /* behind the vial (10-23: over it, it hazed the label) */ left: 50%; top: -6%; width: min(760px, 70vw); height: 92%; translate: -50% 0; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from 180deg at 50% 0%, transparent 163deg, rgba(160, 178, 255, .07) 170deg, rgba(184, 198, 255, .14) 180deg, rgba(160, 178, 255, .07) 190deg, transparent 197deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 55%, transparent 96%);
  filter: blur(14px); opacity: 0; transform-origin: 50% 0; scale: 1 .7; transition: opacity 1.1s ease .1s, scale 1.6s cubic-bezier(.16, 1, .3, 1) .1s; }
.ft.lit .ft-beam { opacity: 1; scale: 1 1; }

/* the vial: the canvas is screened onto the stage (its scene is black), so only the lit glass and label land on it */
.ft-vial { position: relative; z-index: 2; mix-blend-mode: screen; grid-column: 2; grid-row: 1; height: 100%; aspect-ratio: 300 / 520; justify-self: center;
  translate: 0 46px; transition: translate 2s cubic-bezier(.16, 1, .3, 1) .2s; }
.ft.lit .ft-vial { translate: 0 0; }
.ft-vial canvas { position: absolute; left: -60%; width: 220%; top: 0; height: 100%; cursor: grab; touch-action: pan-y; }
.ft-vial canvas:active { cursor: grabbing; }
/* the solid parts of the vial, drawn normally over the screened glass (js/footer.js) */
.ft-vial-label { z-index: 3; mix-blend-mode: normal; pointer-events: none; }
.ft-vial-label canvas { cursor: default; opacity: 0; }
.ft-fb { position: absolute; left: 0; top: 0; width: 100%; height: var(--ft-base, 82%); object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity 1.4s ease .3s; }
.ft.lit .ft-fb { opacity: 1; }
.ft-vial.gl .ft-fb { display: none; }
/* the pool of light the vial stands in, on the floor line js measures (--ft-base: the vial's foot, from the top) */
.ft-pool { position: absolute; mix-blend-mode: screen; left: 50%; top: var(--ft-base, 82%); width: 240%; height: 30%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(110, 140, 255, .2), rgba(110, 140, 255, .06) 45%, transparent 72%);
  opacity: 0; transition: opacity 1.8s ease .7s; }
.ft-pool::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 184, 255, .3) 28%, rgba(214, 222, 255, .6) 50%, rgba(168, 184, 255, .3) 72%, transparent); }
.ft.lit .ft-pool { opacity: 1; }

/* the two lines either side, on the label's height */
.ft-l, .ft-r { position: relative; z-index: 2; grid-row: 1; align-self: center; margin: 0 0 6%; font: 500 clamp(32px, 3.9vw, 64px)/1 "Matter", sans-serif; letter-spacing: -.04em; color: #fff;
  opacity: 0; translate: 0 26px; filter: blur(8px); transition: opacity 1s ease, translate 1.3s cubic-bezier(.16, 1, .3, 1), filter 1s ease; }
.ft-l { grid-column: 1; justify-self: end; text-align: right; transition-delay: 1.05s; }
.ft-r { grid-column: 3; justify-self: start; transition-delay: 1.2s; }
.ft-r span { color: var(--ft-sky); }
.ft.lit .ft-l, .ft.lit .ft-r { opacity: 1; translate: 0 0; filter: none; }

.ft-acts { position: relative; z-index: 4; grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  opacity: 0; translate: 0 16px; transition: opacity .9s ease 1.5s, translate 1.1s cubic-bezier(.16, 1, .3, 1) 1.5s; }
.ft.lit .ft-acts { opacity: 1; translate: 0 0; }
.ft-btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: #0b1538 !important;
  font: 500 16px/1 "Matter", sans-serif; letter-spacing: -.01em; text-decoration: none; transition: background .3s ease, border-color .3s ease, color .3s ease, transform .2s ease; }
.ft-btn svg { width: 17px; height: 17px; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.ft-btn:hover { background: #eaeeff; border-color: #eaeeff; }
.ft-btn:hover svg { transform: translateX(3px); }
.ft-btn:active { transform: translateY(1px); }
.ft-btn.line { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .34); }
.ft-btn.line:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); }

/* ---------- the links ---------- */
.ft-base { position: relative; z-index: 2; flex: none; padding: 0 var(--ft-pad); background: linear-gradient(180deg, rgba(6, 12, 58, 0), var(--ft-ground) 40px); }
.ft-cols { display: grid; grid-template-columns: minmax(170px, 1fr) repeat(2, minmax(0, .75fr)) minmax(236px, .9fr) minmax(240px, 1.15fr); gap: 24px clamp(24px, 3vw, 56px);
  padding: clamp(22px, 3.2vh, 34px) 0 clamp(18px, 2.8vh, 28px); border-top: 1px solid var(--ft-line); }
/* the logo and its line lock up: the logo's ink spans exactly the width of "Veteran owned, Midwest based" (the link adds no
   width of its own, then fills the block; the image's transparent margins hang outside it) */
.ft-brand { display: grid; width: max-content; align-content: start; }
.ft-brand > a { display: block; width: 0; min-width: 100%; }
.ft-brand img { display: block; width: calc(100% * 5955 / 5864); max-width: none; height: auto; margin-left: calc(-100% * 45.7 / 5864); }
.ft-brand img.logo-word { width: calc(100% * 7667 / 7603); margin-left: calc(-100% * 32 / 7603); }
.ft-kick { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font: 400 10.5px/1.3 "Fragment Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; color: #b9c5ff; }
.ft-kick svg { flex: none; color: var(--ft-sky); }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.ft-h { margin: 0 0 5px; font: 400 11px/1.3 "Fragment Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ft-faint); }
.ft-col a { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .84); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .35s cubic-bezier(.16, 1, .3, 1); }
.ft-col a:hover { color: #fff; background-size: 100% 1px; }
.ft-col a.ft-mail { white-space: nowrap; }
.ft-hrs { display: grid; gap: 3px; width: 100%; max-width: 220px; margin: 4px 0 0; }
.ft-hrs div { display: flex; justify-content: space-between; gap: 16px; }
.ft-hrs dt { font-size: 14px; color: var(--ft-dim); }
.ft-hrs dd { margin: 0; white-space: nowrap; font: 400 12.5px/1.6 "Fragment Mono", ui-monospace, monospace; color: rgba(255, 255, 255, .84); font-variant-numeric: tabular-nums; }
.ft-tz { margin: 4px 0 0; font-size: 13px; color: var(--ft-faint); white-space: nowrap; }
.ft-ret p:not(.ft-h) { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ft-dim); }
.ft-legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 48px; align-items: end; padding: clamp(14px, 2.2vh, 20px) 0 clamp(16px, 2.6vh, 26px); border-top: 1px solid rgba(255, 255, 255, .07); }
.ft-legal p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ft-faint); max-width: 1160px; }
.ft-legal > p { text-wrap: pretty; }
@media (min-width: 761px) { .ft-legal > p { text-wrap: balance; } }   /* the disclaimer's lines come out even, no short last line (Eric 10-27) */
.ft-end { display: grid; justify-items: end; gap: 8px; }
.ft-pol { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
.ft-pol a { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .35s cubic-bezier(.16, 1, .3, 1); }
.ft-pol a:hover { color: #fff; background-size: 100% 1px; }
.ft-legal .ft-copy { font: 400 11px/1.6 "Fragment Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ft-by a { color: inherit; text-decoration: none; transition: color .25s; }   /* the studio credit (Nick's OK, 10-27): as quiet as the copyright it sits beside */
.ft-by a:hover { color: rgba(255, 255, 255, .72); }

/* ---------- smaller laptops: the columns tighten before they wrap ---------- */
@media (max-width: 1200px) {
  .ft-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; display: flex; width: auto; align-items: center; justify-content: space-between; }
  .ft-brand > a { width: 168px; min-width: 0; }
  .ft-kick { margin: 0; }
}
/* ---------- short screens: the stage gives up height, never the links ---------- */
@media (min-width: 761px) and (max-height: 760px) {
  .ft-legal p:first-child { font-size: 11px; line-height: 1.5; }
  .ft-cols { gap: 16px 32px; }
}

/* ---------- phones: the stage is one screen, the links follow in a 2 x 2 ---------- */
@media (max-width: 760px) {
  .ft { height: auto; min-height: 0; }
  /* one composed screen, no dead band: line, the vial between the two lines, line, then the buttons; it lights up as soon as it
     enters (footer.js), and the lines arrive quicker than on desktop so nobody scrolls past them blurred */
  .ft-stage { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; align-content: start; row-gap: 10px; padding: 52px 20px 40px; }
  .ft-l { grid-row: 1; }
  .ft-vial { grid-column: 1; grid-row: 2; height: min(40svh, 340px); margin: 6px 0 2px; }
  .ft-r { grid-row: 3; margin-top: -34px !important; position: relative; z-index: 4; }   /* up into the room the canvas keeps for the reflection */
  .ft-l, .ft-r { grid-column: 1; justify-self: center; text-align: center; margin: 0; font-size: clamp(30px, 8.6vw, 36px); line-height: 1.02; filter: blur(4px); }
  .ft-l { transition-delay: .25s; }
  .ft-r { transition-delay: .5s; }
  .ft-acts { grid-row: 4; margin-top: 22px; transition-delay: .7s; }
  .ft-wall { --hx-mask: radial-gradient(calc(var(--hx-r) * .5) calc(var(--hx-r) * .42) at 50% 46%, transparent 10%, #000 34%, rgba(0, 0, 0, .3) 60%, transparent 86%); }
  .ft-acts .ft-btn { flex: 1 1 0; justify-content: center; padding: 0 18px; }
  .ft-beam { width: 120vw; height: 70%; }
  .ft-base { padding: 0 20px; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 30px; }
  .ft-brand { grid-column: 1 / -1; display: grid; width: max-content; }
  .ft-brand > a { width: 0; min-width: 100%; }
  .ft-kick { margin-top: 14px; }
  .ft-ret, .ft-col:has(.ft-hrs) { grid-column: 1 / -1; }
  .ft-hrs { max-width: 280px; }
  .ft-legal { grid-template-columns: minmax(0, 1fr); padding-bottom: 30px; }   /* minmax: the one-line copyright no longer sets the width (it ran off the right edge, 10-26) */
  .ft-legal .ft-copy { white-space: normal; }
  .ft-ret { padding-right: 64px; }   /* the chat mark rests on the line below it: its corner stays clear of the returns text */
  .ft-end { justify-items: start; gap: 14px; }
  .ft-pol { justify-content: flex-start; gap: 10px 20px; }
  .ft-pol a { font-size: 14px; }
  .ft-legal p:first-child { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ft-beam, .ft-vial, .ft-fb, .ft-pool, .ft-l, .ft-r, .ft-acts, .ft-wall, .ft-wall::after { transition: none !important; }
}

/* phones: the last footer line clears the floating assistant mark (QA 10-23) */
@media (max-width: 760px) { .ft { padding-bottom: 76px; } }

.ft-col a.ft-tel { display: block; margin-top: 6px; white-space: nowrap; }
