/* The footer (Liam, November 24 and 25, 2026): Glass orange on a white ground, set by footer-options.js through html.fto-*.
   The Dots, Orange and Original footers' rules were removed on November 26, 2026 (Liam: "Yes, delete it"); git holds them
   (commit 8052439). */

.ft-close{display:none}

/* ---- shared by the three new footers: the one container, the closing line, the link columns, the bottom line ---- */
html.fto-new footer{
  --ft-g:calc((100vw - var(--card,1320px)) / 2);          /* the page's own container edge (tokens.css --card), 60px at 1440; vw so it means the same inside the band */
  --ft-p:clamp(22px,3.2vw,52px);                            /* inside the slab */
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:clamp(32px,5vw,96px);
  border-top:0 !important;isolation:isolate}
html.fto-new footer > *{position:relative;z-index:1}
html.fto-new .ft-close{display:flex;flex-direction:column;align-items:flex-start;grid-column:1;grid-row:1}
html.fto-new .ft-close h2{margin:0;max-width:15ch;font:200 clamp(34px,3.9vw,58px)/1.06 var(--font-display);letter-spacing:-.035em;color:var(--ink)}
html.fto-new .ft-close p{margin:clamp(14px,1.4vw,20px) 0 0;max-width:40ch;font-size:16px;line-height:1.5;color:var(--ink-2)}
html.fto-new .ft-book{margin-top:clamp(22px,2.2vw,32px);display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border-radius:4px;
  font:500 11px/1 var(--font-mono);letter-spacing:.16em;text-transform:uppercase;color:#191714;
  background:rgba(255,255,255,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 0 0 1px rgba(128,120,112,.26);
  transition:background var(--dur-1) ease,transform var(--dur-2) cubic-bezier(.19,1,.22,1)}
html.fto-new .ft-book::before{content:"[";margin-right:.9em}
html.fto-new .ft-book::after{content:"]";margin-left:.9em}
html.fto-new .ft-book:hover{background:rgba(255,255,255,.78);transform:translateY(-1px)}
html.fto-new .ft-book:focus-visible,html.fto-new footer .foot-link:focus-visible{outline:2px solid #191714;outline-offset:3px}

html.fto-new footer .foot-cols{grid-column:2;grid-row:1;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto 1fr;
  grid-template-areas:"ex sv tk" "ex sv bt";row-gap:clamp(20px,2vw,28px);align-content:stretch;padding:0}
html.fto-new footer .foot-cols > div:nth-child(1){grid-area:ex}
html.fto-new footer .foot-cols > div:nth-child(2){grid-area:sv}
html.fto-new footer .foot-cols > div:nth-child(3){grid-area:tk}
html.fto-new footer .foot-cols > div:nth-child(4){grid-area:bt;align-self:end}
/* Book a call is the button beside the links, so the list does not repeat it */
html.fto-new footer .foot-cols li:has(> a[href="/contact/"]){display:none}
html.fto-new footer .foot-head{color:var(--quiet);letter-spacing:.16em}
html.fto-new footer .foot-link{color:var(--ink);opacity:.8}
html.fto-new footer .foot-link:hover{opacity:1}
html.fto-new footer .mark-band{grid-column:1 / -1;grid-row:2}
html.fto-new footer .mark-band{padding:clamp(56px,7vw,104px) 0 clamp(40px,5vw,72px)}
html.fto-new footer .foot-bar{grid-column:1 / -1;grid-row:3;padding:20px 0 0;border-top:1px solid var(--line);letter-spacing:.16em}
/* system.css sets the old footer's columns and bottom line on the page edge with !important; here the footer's own padding does that */
html.fto-new footer .foot-cols{padding:0 !important}
html.fto-new footer .foot-bar{margin-left:0 !important;margin-right:0 !important;padding-left:0 !important;padding-right:0 !important}

/* the frosted slab: the Services cards' and Five rules' recipe, drawn behind the footer's own content */
html.fto-glass footer::before,html.fto-glass footer::after{content:"";position:absolute;z-index:0;pointer-events:none;
  left:var(--ft-g);right:var(--ft-g);top:var(--ft-top);bottom:var(--ft-bot);border-radius:28px}
html.fto-glass footer::before{
  -webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);
  background:linear-gradient(180deg,rgba(255,255,255,.5) 0%,rgba(255,255,255,.32) 45%,rgba(236,232,244,.3) 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.7),0 3px 0 -.5px rgba(205,201,218,.95),0 4px 1px -1px rgba(150,144,170,.35),
    0 60px 80px -46px rgba(62,54,88,.45),0 24px 36px -24px rgba(62,54,88,.26)}
html.fto-glass footer::after{
  background:linear-gradient(160deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,0) 24%);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.98),inset 1.5px 0 0 rgba(255,255,255,.8),inset 0 -1.5px 0 rgba(112,104,136,.3),inset -1px 0 0 rgba(112,104,136,.2),
    inset 0 0 0 9px rgba(255,255,255,.14),inset 0 0 0 10px rgba(255,255,255,.32),inset 0 12px 16px -12px rgba(255,255,255,.75)}

/* ---- Glass: one slab holds everything; the mark stands on it as raised glass letters, the Services keys' recipe ---- */
html.fto-glass footer{
  --ink:#191714;--ink-2:#4A443C;--quiet:#7A7486;--line:rgba(25,23,20,.12);
  --ft-top:clamp(40px,5vw,88px);--ft-bot:var(--ft-g);
  background:linear-gradient(#E2DFE7,#DCD9E1 60%,#D8D5DE) !important;color:var(--ink) !important;
  padding:calc(var(--ft-top) + var(--ft-p)) calc(var(--ft-g) + var(--ft-p)) calc(var(--ft-g) + clamp(18px,1.8vw,26px))}
html.fto-glass footer .mark-band{padding:clamp(48px,6vw,88px) 0 clamp(36px,4vw,60px)}
/* the letters: the img carries the rim, the stepped side and the shadow; the masked layer over it is the slab's frosted fill.
   Before it: the slab's frosted fill, a lit top and left rim, a stepped lilac side and a short neutral shadow */
html.fto-glass footer [data-mark66] .mk-flat{filter:brightness(0) invert(1) drop-shadow(-1px -1.5px 0 #fff) drop-shadow(0 3px 0 rgb(205,201,218)) drop-shadow(0 1.5px 1px rgba(150,144,170,.5)) drop-shadow(0 14px 14px rgba(62,54,88,.14))}
html.fto-glass footer [data-mark66]::before,[data-mark66-stage] [data-mark66]::before{content:"";position:absolute;inset:0;pointer-events:none;
  -webkit-mask:url(/uploads/mark66/wordmark.svg) center/100% 100% no-repeat;mask:url(/uploads/mark66/wordmark.svg) center/100% 100% no-repeat;
  background:linear-gradient(180deg,#FBFAFD 0%,#F1EFF6 46%,#E6E3EE 100%)}

/* ---- the orange ground, full strength, reds pulled toward orange; ink type, cream mark ---- */
html.fto-warm footer,[data-mark66-stage]{
  --ink:#1D0F06;--ink-2:rgba(40,18,6,.78);--quiet:rgba(40,18,6,.74);--line:rgba(40,18,6,.18);
  --ft-orange:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(46% 52% at 24% 22%,rgba(255,196,128,.85) 0%,rgba(255,170,96,.45) 42%,rgba(255,150,80,0) 100%),
    radial-gradient(40% 46% at 82% 64%,rgba(255,186,116,.7) 0%,rgba(255,166,96,.3) 46%,rgba(255,150,80,0) 100%),
    radial-gradient(80% 60% at 50% 110%,rgba(232,104,38,.9),rgba(232,104,38,0) 70%),
    linear-gradient(160deg,#EE7A30 0%,#F38E44 40%,#EF8240 62%,#E36A28 100%)}
html.fto-warm footer{color:var(--ink) !important;background:var(--ft-orange) !important}
[data-mark66-stage]{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;color:var(--ink);background:var(--ft-orange)}
[data-mark66-stage]::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none}
[data-mark66-stage] [data-mark66]{position:relative;z-index:1}
html.fto-warm footer .ft-book{background:rgba(255,246,234,.82);color:#1D0F06;box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(120,50,10,.16),0 10px 22px -14px rgba(120,50,10,.55)}
html.fto-warm footer .ft-book:hover{background:#FFF6EA}
html.fto-warm footer .ft-book:focus-visible{outline-color:#1D0F06}
html.fto-warm footer [data-mark66] > .sx-blot,[data-mark66-stage] [data-mark66] > .sx-blot{background:#FFF3E6}

/* ---- Glass orange: the slab inverted, warm glass over the orange; lit top rim, a stepped burnt-orange
   side and a warm shadow in place of the lilac ones ---- */
html.fto-warm footer::before{
  background:linear-gradient(180deg,rgba(255,244,232,.34) 0%,rgba(255,232,210,.2) 50%,rgba(255,220,190,.16) 100%);
  box-shadow:0 1px 0 rgba(255,236,214,.6),0 3px 0 -.5px rgba(196,84,18,.6),0 4px 1px -1px rgba(120,40,0,.3),
    0 60px 80px -46px rgba(110,36,0,.5),0 24px 36px -24px rgba(110,36,0,.3)}
html.fto-warm footer::after,[data-mark66-stage]::after{
  background:linear-gradient(160deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,0) 26%);
  box-shadow:inset 0 1.5px 0 rgba(255,246,236,.95),inset 1.5px 0 0 rgba(255,240,226,.7),inset 0 -1.5px 0 rgba(150,50,4,.35),inset -1px 0 0 rgba(150,50,4,.22),
    inset 0 0 0 9px rgba(255,240,226,.08),inset 0 0 0 10px rgba(255,240,226,.24),inset 0 12px 16px -12px rgba(255,246,236,.6)}
/* the glass letters in cream, their stepped side burnt orange */
html.fto-warm footer [data-mark66] .mk-flat,[data-mark66-stage] [data-mark66] .mk-flat{filter:brightness(0) invert(1) drop-shadow(-1px -1.5px 0 #fff) drop-shadow(0 3px 0 rgb(200,88,24)) drop-shadow(0 1.5px 1px rgba(120,40,0,.45)) drop-shadow(0 14px 14px rgba(110,36,0,.2));opacity:1}
html.fto-warm footer [data-mark66]::before,[data-mark66-stage] [data-mark66]::before{background:linear-gradient(180deg,#FFFAF3 0%,#FFF0DF 50%,#FFE4C8 100%)}

/* ---- Orange box (Liam, November 24, 2026, on Dots orange: "what happens if just the box is orange and the outers are
   the other colour"): the footer keeps the page's lilac and only the slab is the orange ground, solid, with the same
   lit rim and a burnt-orange stepped side. ---- */
html.fto-warm.fto-box footer{background:linear-gradient(#E2DFE7,#DCD9E1 60%,#D8D5DE) !important}
html.fto-warm.fto-box footer::before{background:var(--ft-orange);-webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 1px 0 rgba(255,255,255,.7),0 3px 0 -.5px rgba(196,84,18,.75),0 4px 1px -1px rgba(120,40,0,.3),
    0 60px 80px -46px rgba(90,50,60,.5),0 24px 36px -24px rgba(90,50,60,.3)}

/* ---- tablet and phone: one column, the links in two ---- */
@media(max-width:900px){
  html.fto-new footer{grid-template-columns:minmax(0,1fr)}
  html.fto-new footer .foot-cols{grid-column:1;grid-row:2;margin-top:clamp(40px,8vw,56px);grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:auto auto auto;grid-template-areas:"ex sv" "ex tk" "bt bt";row-gap:24px}
  html.fto-new footer .foot-cols > div:nth-child(4){align-self:start}
  html.fto-new footer .mark-band{grid-row:3}
  html.fto-new footer .foot-bar{grid-row:4}
  html.fto-new .ft-close h2{max-width:13ch}
}
@media(max-width:700px){
  html.fto-glass footer::before,html.fto-glass footer::after,[data-mark66-stage]{border-radius:22px}
  html.fto-new footer{--ft-p:20px}
  html.fto-new footer .foot-bar{padding-top:12px}
}
@media(prefers-reduced-motion:reduce){html.fto-new .ft-book{transition:none}}

/* ---- White outside (Liam, November 25, 2026: "solid colour orange glass and white outer background"): the default.
   The page's lilac above eases into white round the solid orange slab ---- */
html.fto-warm.fto-box.fto-white footer{background:linear-gradient(#DCD9E1 0,#F4F2F5 90px,#FBFAF9 220px,#fff 100%) !important}
html.fto-warm.fto-box.fto-white footer::before,[data-mark66-stage]{box-shadow:0 1px 0 rgba(255,255,255,.8),0 3px 0 -.5px rgba(196,84,18,.75),0 4px 1px -1px rgba(120,40,0,.3),
    0 60px 80px -46px rgba(120,60,20,.35),0 24px 36px -24px rgba(120,60,20,.22)}
html .nav{transition:opacity var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)),translate var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1))}
html.fto-navoff .nav{opacity:0;translate:0 -16px;pointer-events:none}
