/* ------------------------------------------------------------------
   BisonTongue — storm footer (2026-10-28)
   Ported from kedhareswer's Ridgeline Dither Footer (21st.dev), as-is but
   for the palette. Weather comes later, a step at a time.
   The canvas is drawn by stormfooter.js; everything here is layout + type.
   ------------------------------------------------------------------ */
.sf{
  position:relative; display:grid; overflow:hidden; isolation:isolate; min-height:680px;   /* the original's height */
  background:var(--ground); color:var(--forest); font-family:var(--grot);
  border-top:1px solid var(--rule);
}
.sf__frame{ position:relative; display:grid; grid-template-rows:auto auto minmax(260px, 1fr);   /* top, the link row, scene (© floats on the scene) */ width:100%; }

/* staggered rise-in, once, when the footer arrives */
.sf .sf__r{ opacity:0; transform:translateY(12px); filter:blur(5px);
  transition:opacity .9s cubic-bezier(.2,.7,.1,1), transform 1s cubic-bezier(.2,.7,.1,1), filter .9s ease;
  transition-delay:calc(var(--d, 0) * 1ms); }
.sf.is-in .sf__r{ opacity:1; transform:none; filter:none; }

.sf__top{
  grid-row:1; grid-column:1;   /* shares row 1 with the link line */
  position:relative; z-index:2; display:grid; grid-template-columns:minmax(0, 1fr);   /* links moved to the one line on the ridges */
  gap:28px; padding:clamp(48px, 6.4vw, 84px) var(--gutter) clamp(28px, 4vw, 48px);
}
.sf__brand{ display:flex; flex-direction:column; align-items:flex-start; gap:20px; }
.sf__logo{ display:inline-block; color:var(--forest); }
.sf__logo .wordmark--logo{ display:block; width:150px; }
.sf__tag{ margin:0; max-width:24ch; font-family:var(--grot); font-weight:400; font-size:clamp(22px, 2.2vw, 30px);
  line-height:1.12; letter-spacing:-.028em; color:var(--forest); text-wrap:balance; }

.sf__col h3{ margin:4px 0 18px; font:500 10.5px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--sage-ink); }
.sf__col ul{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
/* links hover the way the header nav does (sitenav.css): the others in
   the column fade to .4 and the hovered word gets the soft scramble
   (window.BT_navScramble, wired in stormfooter.js) */
.sf__link{ color:var(--forest); text-decoration:none; font-size:15px; line-height:1.35; white-space:nowrap; display:inline-block !important;
  transition:opacity .45s cubic-bezier(.22,1,.36,1); }
.sf__link:focus-visible{ outline:1px solid var(--forest); outline-offset:4px; border-radius:3px; }
.sf__plain{ font-size:15px; color:var(--forest-mid); }

/* one line of links on the ridges, bottom left (user, 2026-11-01, after
   moment.so): commas between, light on the dark ridge like the copyright.
   Buttons (FAQ, Contact, Legal) are dressed exactly as the links. */
/* links: one plain row on the light ground just above the ridges, on the
   right (user, 2026-11-01: regular links read and find
   best). Hover matches the header nav: the rest fade, the word scrambles.
   The © alone sits on the ridges, bottom right. */
.sf__line{ position:relative; z-index:2; grid-row:1; grid-column:1; justify-self:end; align-self:end; padding:0 var(--gutter);
  margin-bottom:clamp(28px, 4vw, 48px); }   /* right side, its bottom level with the mailing-list button's (user, 2026-11-01): same inset as .sf__top's bottom padding */
.sf__line ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px 14px; }
.sf__line li{ display:flex; }
.sf__line li:not(:last-child)::after{ content:","; color:var(--sage-ink); }
.sf__line .sf__link{ appearance:none; border:0; background:none; padding:0; margin:0; cursor:pointer; font-family:inherit; font-size:15px; color:var(--forest); }
.sf__line ul:hover .sf__link:not(:hover){ opacity:.4; }

/* Contact + Legal panels: the FAQ panel's surface, small.
   That surface lived only in pricing.css, which only the home page loads,
   so on every other page these opened as a bare browser dialog (user,
   2026-11-22). The shell is copied here, scoped to .sfp, so the footer
   carries its own. Keep in step with .ans in pricing.css. */
.ans.sfp{
  position:fixed; inset:auto; margin:0; padding:0; border:0;
  max-height:min(640px, calc(100vh - 32px));
  overflow:auto; overscroll-behavior:contain;
  border-radius:20px; corner-shape:superellipse(1.25);
  background:var(--forest); color:var(--ground);
  box-shadow:0 0 0 1px rgba(255,255,255,.07) inset,
             0 30px 60px -20px rgba(10,22,13,.55), 0 8px 18px -8px rgba(10,22,13,.3);
  transform-origin:var(--ans-ox, 0) var(--ans-oy, 0);
}
.ans.sfp[open]{ animation:sfp-in .34s cubic-bezier(.16,1,.3,1); }
.ans.sfp.is-out{ animation:sfp-out .18s cubic-bezier(.4,0,1,1) forwards; }
@keyframes sfp-in{ from{ opacity:0; transform:translateY(8px) scale(.965); } to{ opacity:1; transform:none; } }
@keyframes sfp-out{ to{ opacity:0; transform:translateY(6px) scale(.98); } }
.ans.sfp::backdrop{ background:color-mix(in srgb, var(--ground) 30%, transparent); backdrop-filter:blur(1px); }
.sfp .ans__head{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 22px 14px; }
.sfp .ans__title{ outline:none; margin:0; font-family:var(--head-font, var(--grot)); font-weight:400; font-size:26px; letter-spacing:-.025em; line-height:1; color:var(--ground); }
.sfp .ans__x{ appearance:none; border:0; cursor:pointer; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:var(--ground); background:rgba(255,255,255,.1); transition:background-color .2s ease; }
.sfp .ans__x:hover{ background:rgba(255,255,255,.18); }
.sfp .ans__x:focus{ outline:none; }
.sfp .ans__x:focus-visible{ box-shadow:0 0 0 2px rgba(255,253,250,.45); }
@media (max-width:640px){
  .ans.sfp{ left:16px !important; right:16px; top:auto !important; bottom:16px !important; width:auto; max-height:calc(100vh - 32px) !important; }
}
@media (prefers-reduced-motion: reduce){ .ans.sfp[open], .ans.sfp.is-out{ animation:none; } }

.sfp{ width:min(340px, calc(100vw - 32px)); }
.sfp__body{ margin:0; padding:2px 22px 6px; display:grid; gap:16px; }
.sfp__body dt{ margin:0 0 4px; font:500 10px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:rgba(255,253,250,.6); }
.sfp__body dd{ margin:0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:15px; line-height:1.4; color:var(--ground); }
.sfp__body a{ color:inherit; text-decoration:none; }
.sfp__body a:hover{ text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(255,253,250,.45); }
.sfp__copy{ appearance:none; border:0; cursor:pointer; height:24px; padding:0 10px; border-radius:999px;
  background:rgba(255,253,250,.1); color:var(--ground); font:500 10px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase;
  transition:background-color .2s ease; }
.sfp__copy:hover{ background:rgba(255,253,250,.18); }
.sfp__fine{ margin:0; padding:10px 22px 22px; font-size:13px; color:rgba(255,253,250,.6); }
.sfp__foot{ padding:12px 22px 22px; }
.sfp__book{ display:grid; place-items:center; height:44px; border-radius:12px; corner-shape:superellipse(1.25); text-decoration:none;
  background:var(--ground); color:var(--forest); font:500 11px/1 var(--mono); letter-spacing:var(--tr-m, .2em); text-transform:uppercase;
  background-image:linear-gradient(180deg, #fff, color-mix(in srgb, var(--ground) 90%, var(--forest)) 140%);
  box-shadow:inset 0 2px 0 #fff, inset 0 -2px 0 color-mix(in srgb, var(--forest) 10%, transparent), 0 10px 20px -12px rgba(0,0,0,.5);
  transition:transform .2s ease; }
.sfp__book:hover{ transform:translateY(-1px); }

/* copyright sits on the ridges, bottom right (user, 2026-11-01: start
   merging the footer into one piece instead of text-then-graphic) */
.sf__bar{ position:absolute; z-index:2; right:var(--gutter); bottom:calc(22px + env(safe-area-inset-bottom, 0px));
  display:flex; align-items:center; gap:16px; padding:0; font-size:14px;
  color:color-mix(in srgb, var(--ground) 82%, transparent); pointer-events:none;
  text-shadow:0 1px 3px color-mix(in srgb, var(--forest) 55%, transparent); }   /* holds up over the lighter dither specks */   /* holds up over the lighter dither specks */
.sf__bar p{ margin:0; }
.sf__bar .mono{ font:500 10.5px/1 var(--mono); letter-spacing:.12em; }

/* --sf-ext: the canvas reaches this far up behind the content, as sky
   fading into the paper (user, 2026-11-01: depth); stormfooter.js reads it */
.sf__scene{ --sf-ext:144px; position:relative; z-index:1; grid-row:3; grid-column:1; margin-top:calc(-24px - var(--sf-ext)); overflow:hidden; pointer-events:none; }
.sf__scene canvas{ position:absolute; left:0; bottom:0; display:block; max-width:none; image-rendering:pixelated; image-rendering:crisp-edges; }

/* the scene is for clicking (gusts), not selecting: repeated clicks were
   highlighting the pin's text in the site's yellow (user) */
.sf__scene, .sf__scene *, .sf__bar{ -webkit-user-select:none; user-select:none; }

/* readout riding the crest under the pointer */
.sf__alt{ position:absolute; left:0; top:0; z-index:2; pointer-events:none; opacity:0; transition:opacity .35s ease;
  font:500 10px/1 var(--mono); letter-spacing:.08em; color:var(--forest); }
.sf__alt i{ position:absolute; left:-4px; top:-4px; width:8px; height:8px; border-radius:50%; background:var(--ground); box-shadow:0 0 0 1.5px var(--forest); }
.sf__alt b{ position:absolute; left:-.5px; bottom:6px; width:1px; height:26px; background:var(--forest); opacity:.55; }
.sf__alt span{ position:absolute; left:0; bottom:34px; transform:translateX(-50%); white-space:nowrap; padding:5px 7px 4px; border-radius:5px;
  background:color-mix(in srgb, var(--ground) 88%, transparent); box-shadow:0 0 0 1px var(--rule); backdrop-filter:blur(4px); }

@media (max-width:760px){
  /* narrow: the links stack above the copyright, both on the left */
  .sf__bar{ left:var(--gutter); right:auto; }
}
/* ---------- mailing list (2026-11-01) ----------
   After moment.so's footer pill, in our parts. Closed it is the header's
   Book a call button (forest, mono caps, lip — the --b-* tokens from
   buttons.css). Clicked, the same box opens into a field dressed like
   .cta-2 (light, 1px forest ring) and the arrow slides in; the arrow fills
   once the address is valid; on submit the box dissolves to a thanks
   line. The dark face is a ::before layer so it can fade, not snap.
   Widths are animated by stormfooter.js (measured, then transitioned). */
.ml{ display:grid; gap:18px; justify-items:start; max-width:44ch; margin-top:6px; }
.ml__copy{ margin:0; font-size:15px; line-height:1.5; color:var(--forest-mid); text-wrap:pretty; }
.ml__pill{
  --ease:cubic-bezier(.22,1,.36,1);
  position:relative; isolation:isolate; display:flex; align-items:center; max-width:100%;
  height:40px; margin:0; padding:0 20px; box-sizing:border-box;
  border-radius:12px; corner-shape:superellipse(1.25);
  background-color:color-mix(in srgb, var(--ground) 55%, #fff);
  box-shadow:inset 0 0 0 1px transparent;
  transition:width .38s var(--ease), padding .38s var(--ease), background-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.ml__pill::before{
  content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; corner-shape:inherit;
  background-color:var(--b-bot); background-image:linear-gradient(180deg, var(--b-top), var(--b-bot));
  box-shadow:inset 0 1px 0 var(--b-hi), inset 0 0 0 1px var(--b-edge), var(--b-drop);
  transition:opacity .25s ease, box-shadow .2s ease;
}
.ml__pill:not(.is-form):not(.is-thanks):hover{ transform:var(--b-lift); }
.ml__pill:not(.is-form):not(.is-thanks):hover::before{ box-shadow:inset 0 1px 0 var(--b-hi), inset 0 0 0 1px var(--b-edge), var(--b-drop-h); }
.ml__pill:not(.is-form):not(.is-thanks):active{ transform:translateY(1px); }

.ml__label{ position:relative; z-index:1; display:block; flex:1 1 auto; min-width:0; white-space:nowrap; pointer-events:none;
  font-family:var(--b-font); font-weight:var(--b-weight); font-size:var(--b-head-size, 11px); line-height:1;
  text-transform:var(--b-case); letter-spacing:var(--b-head-track, var(--b-track)); color:var(--b-c, var(--ground));
  transition:opacity .15s ease; }
.ml__text{ display:block; transition:opacity .22s ease; }
.ml__text.is-incoming{ opacity:0; transition:none; }
.ml__ghost{ position:absolute; left:0; top:0; white-space:nowrap; transition:opacity .2s ease; }
.ml__ghost.is-leaving{ opacity:0; }

.ml__input{ position:absolute; z-index:1; left:14px; right:46px; top:0; bottom:0; width:auto; min-width:0;
  margin:0; padding:0; border:0; outline:0; background:none; opacity:0; pointer-events:none;
  font:400 15px/1 var(--grot); letter-spacing:-.01em; color:var(--forest); caret-color:var(--forest); }
.ml__face{ position:absolute; inset:0; z-index:2; margin:0; padding:0; border:0; background:none; cursor:pointer; border-radius:inherit; }
.ml__face:focus-visible{ outline:2px solid var(--forest); outline-offset:3px; }
.ml__go{ position:relative; z-index:1; display:flex; flex:none; align-items:center; justify-content:center;
  width:0; margin:0 0 0 0; padding:0; border:0; background:none; opacity:0; overflow:hidden; cursor:pointer; pointer-events:none;
  transition:width .3s var(--ease), margin-left .3s var(--ease), opacity .2s ease, transform .15s ease; }
.ml__go svg{ flex:none; }
.ml__go circle{ fill:var(--forest); fill-opacity:.08; transition:fill-opacity .2s ease; }
.ml__go path{ stroke:var(--forest); stroke-opacity:.35; transition:stroke .2s ease, stroke-opacity .2s ease; }
.ml__go:active{ transform:scale(.9); }
.ml__go:focus-visible{ outline:2px solid var(--forest); outline-offset:2px; border-radius:50%; }

/* open: the field */
.ml__pill.is-form{ padding:0 6px 0 14px;
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--forest) 34%, var(--ground)), inset 0 2px 0 #fff,
             0 10px 20px -12px color-mix(in srgb, var(--forest) 34%, transparent); }
.ml__pill.is-form:focus-within{
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--forest) 72%, var(--ground)), inset 0 2px 0 #fff,
             0 12px 22px -12px color-mix(in srgb, var(--forest) 40%, transparent); }
.ml__pill.is-form::before, .ml__pill.is-thanks::before{ opacity:0; }
.ml__pill.is-form .ml__label{ font:400 15px/1 var(--grot); letter-spacing:-.01em; text-transform:none;
  color:color-mix(in srgb, var(--forest) 42%, transparent); }
.ml__pill.has-value .ml__label{ opacity:0; }
.ml__pill.is-form .ml__input{ opacity:1; pointer-events:auto; }
.ml__pill.is-form .ml__face, .ml__pill.is-thanks .ml__face{ display:none; }
.ml__pill.is-form .ml__go{ width:28px; margin-left:12px; opacity:1; pointer-events:auto; }
.ml__pill.is-form:valid .ml__go circle{ fill-opacity:1; }
.ml__pill.is-form:valid .ml__go path{ stroke:var(--ground); stroke-opacity:1; }

/* sent: the box dissolves to a line of text */
.ml__pill.is-thanks{ padding:0; background-color:transparent; box-shadow:inset 0 0 0 1px transparent; }
.ml__pill.is-thanks .ml__label{ font:400 15px/1 var(--grot); letter-spacing:-.01em; text-transform:none; color:var(--forest); }
.ml__soon{ margin:-8px 0 0; font:500 10px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--sage-ink); }
.ml__live{ position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

@media (prefers-reduced-motion: reduce){
  .ml__pill, .ml__pill::before, .ml__text, .ml__ghost, .ml__go, .ml__go circle, .ml__go path{ transition:none; }
  .sf .sf__r, .sf__link{ transition:none; }
  .sf .sf__r{ filter:none; }
}

/* phones + tablets: no peak readout (stormfooter.js ignores the pointer there too) */
@media (max-width:860px){ .sf__alt{ display:none !important; } }
