/* Site-wide grey paper + typography, matching the founder-b3 / grey homepage palette.
   Loaded after type-v8.css on every page. Does not change the hero video,
   founder photograph, or founder-b3 layout rules. Live after VSA approval. */

:root{
  --ivory: #d4d7db;
  --ivory-deep: #c8ccd1;
  --paper: #d4d7db;
  --beige: #c8ccd1;
  --page: #d4d7db;
  --t-ink: #1c1c1e;
  --t-body: #38383a;
  --t-quiet: #6e7175;
  --muted: #5c5e62;
  --stone: #6e7175;
}

html{background:#d4d7db}
html body{
  background-color:#d4d7db !important;
  background-image:none !important;
  color:#38383a;
}
html body h2,
html body h3,
html body .serif,
html body .page-hero h1,
html body .svc-hero h1,
html body .svc-section h2,
html body .prose h2{
  color:#1c1c1e;
}
html body .kicker,
html body .founder-meta,
html body .role,
html body .fine,
html body .footer-vat{
  color:#6e7175;
}

/* Hero copy over the lake video stays ivory (type-v8). Do not recast it to ink. */
html body .hero-copy h1{color:var(--ivory-on-video, #f5f4f2)}
html body .hero-copy .hero-intro{color:rgba(245,244,242,0.92)}
html body .hero .kicker{color:rgba(245,244,242,0.82)}

html body .site-header,
html body .site-header.is-solid,
html body[data-page="home"] .site-header.is-solid,
html body[data-page="home"].nav-open .site-header{
  background:rgba(212,215,219,0.97) !important;
  background-color:rgba(212,215,219,0.97) !important;
  border-bottom:1px solid rgba(140,143,147,0.28) !important;
  color:#1c1c1e !important;
  box-shadow:none !important;
}
/* Home: stay clear over the lake video until the header becomes solid. */
html body[data-page="home"] .site-header:not(.is-solid):not(.nav-open){
  background:transparent !important;
  background-color:transparent !important;
  border-bottom-color:transparent !important;
  box-shadow:none !important;
  color:#f5f4f2 !important;
}

/* Forms sit on the same paper, not a leftover cream field. */
html body .field input,
html body .field select,
html body .field textarea,
html body input[type="text"],
html body input[type="email"],
html body input[type="tel"],
html body textarea,
html body select{
  background:#e4e6e9;
  color:#1c1c1e;
  border-color:rgba(56,56,58,0.22);
}
html body .btn,
html body .header-enquire{
  /* keep existing button geometry; prefer charcoal on grey paper */
}


@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

/* AVS mark (v6f letterforms, no DIGITAL). Tuned to this site:
   charcoal #1c1c1e on grey, ivory #f5f4f2 in the footer (and over the lake if the header is ever transparent).
   Subtle cool relief + one light sweep; off when reduced-motion. Typography: Manrope, matching nav/kickers. */
.avs-defs{position:absolute;width:0;height:0;overflow:hidden}

.brand-lockup,
.footer-lockup{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
  gap:0.12em;
  box-sizing:border-box;
  height:3.7rem;
  width:6.15rem;
  font-size:0.37rem;
  color:#1c1c1e;
  line-height:1;
  max-width:none;
  flex-shrink:0;
}
.footer-lockup,
.footer-logo.brand-lockup,
.footer-brand .brand-lockup{
  height:3.85rem;
  width:6.4rem;
  font-size:0.385rem;
  color:#f5f4f2;
}
@media (min-width:800px){
  .site-header .brand-logo.brand-lockup,
  body[data-page="home"] .site-header .brand-logo.brand-lockup,
  body[data-page="home"] .site-header:not(.is-solid) .brand-logo.brand-lockup,
  body[data-page="home"] .site-header:not(.is-solid):not(.nav-open) .brand-logo.brand-lockup{
    height:6.6rem !important;
    width:11rem !important;
    font-size:0.66rem !important;
  }
}
.brand-mark{
  display:block;
  width:100%;
  height:auto;
  overflow:hidden; /* crop the v6f "DIGITAL" word that sits under the letters */
  color:currentColor;
  flex:0 0 auto;
}
.brand-meta{
  display:flex;
  flex-direction:column;
  gap:0.18em;
  min-width:0;
  padding-top:0.12em;
}
.brand-word{
  font-family:var(--sans), Manrope, "Avenir Next", sans-serif;
  font-weight:600;
  font-size:1.08em;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:currentColor;
  white-space:nowrap;
  line-height:1.1;
}
.brand-slogan{
  font-family:var(--sans), Manrope, "Avenir Next", sans-serif;
  font-weight:400;
  font-size:0.92em;
  letter-spacing:0.02em;
  color:currentColor;
  opacity:0.82;
  line-height:1.2;
  white-space:nowrap;
}
html[lang="de-CH"] .brand-slogan{
  font-size:0.78em;
  letter-spacing:0.01em;
}

/* Ivory: footer always; home header only while it sits over the lake (not .is-solid). */
.brand-lockup.is-ivory,
.footer-brand .brand-lockup,
body[data-page="home"] .site-header:not(.is-solid):not(.nav-open) .brand-lockup{
  color:#f5f4f2;
}
.brand-mark use{filter:url(#avs-rel-ink)}
.brand-lockup.is-ivory .brand-mark use,
.footer-brand .brand-mark use,
body[data-page="home"] .site-header:not(.is-solid):not(.nav-open) .brand-mark use{
  filter:url(#avs-rel-ivory);
}

.avs-sheen{
  transform:skewX(-18deg) translateX(-1400px);
  animation:avs-sheen 2.6s 0.4s cubic-bezier(.45,0,.25,1) both;
}
@media (hover:hover){
  .brand:hover .avs-sheen,
  .footer-brand:hover .avs-sheen{
    animation:avs-sheen2 1.8s cubic-bezier(.45,0,.25,1) both;
  }
}
@keyframes avs-sheen{to{transform:skewX(-18deg) translateX(3600px)}}
@keyframes avs-sheen2{from{transform:skewX(-18deg) translateX(-1400px)}to{transform:skewX(-18deg) translateX(3600px)}}
@media (prefers-reduced-motion:reduce){
  .avs-sheen{animation:none!important;display:none}
}

/* Never show the founder preview ribbon on the live site. */
.founder-preview-note{display:none!important}


/* -------------------------------------------------------------------------
   Wordmark logo (26 Nov 2026, preview + approved go-live): typographic
   AVS / rule / CONSULTING / motto, replacing the outlined 3D SVG mark.
   Typography reused from AVS Digital v6 intro-mark (Newsreader + IBM Plex Mono),
   scaled to the header. Favicon unchanged. Founder photo unchanged in this build.
   Colour: charcoal #1c1c1e on the #d4d7db grey paper — silver would sit too close
   to the page grey and look washed out; charcoal matches --t-ink and stays crisp.
   The hairline is the same charcoal at 72% so it stays delicate. Ivory #f5f4f2
   in the footer (and if the home header is ever transparent over the hero).
   ------------------------------------------------------------------------- */
@font-face{
  font-family:"Newsreader";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("../assets/fonts/newsreader.woff2") format("woff2");
}
@font-face{
  font-family:"IBM Plex Mono";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url("../assets/fonts/ibmplexmono.woff2") format("woff2");
}
/* Medium (500) for CONSULTING (logo-consulting, 26 Nov 2026). Same advance widths as 400 (600/1000 em), so size and spacing are unchanged. OFL: assets/fonts/IBM-Plex-Mono-OFL.txt */
@font-face{
  font-family:"IBM Plex Mono";
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url("../assets/fonts/ibmplexmono-500.woff2") format("woff2");
}

.brand-logo.brand-lockup,
.footer-logo.brand-lockup,
.footer-brand .brand-lockup,
.site-header .brand-logo.brand-lockup,
body[data-page="home"] .site-header .brand-logo.brand-lockup,
body[data-page="home"] .site-header:not(.is-solid) .brand-logo.brand-lockup,
body[data-page="home"] .site-header:not(.is-solid):not(.nav-open) .brand-logo.brand-lockup{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.22rem;
  box-sizing:border-box;
  height:auto !important;
  width:auto !important;
  max-width:none;
  font-size:inherit !important;
  color:#1c1c1e;
  line-height:1;
  flex-shrink:0;
  background:none !important;
  -webkit-mask-image:none !important;
  mask-image:none !important;
  filter:none !important;
  opacity:1 !important;
  overflow:visible;
  box-shadow:none !important;
}
.brand-wordmark{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.brand-avs{
  font-family:"Newsreader","EB Garamond","Iowan Old Style",Times,serif;
  font-weight:400;
  font-size:1.42rem;
  letter-spacing:.28em;
  padding-left:.28em; /* optical centre: letter-spacing adds space after the last letter */
  line-height:1;
  color:currentColor;
  text-transform:uppercase;
  font-style:normal;
}
.brand-rule{
  display:block;
  width:4.25rem;
  height:1px;
  margin:.26rem auto .2rem;
  background:currentColor;
  opacity:.72;
  border:0;
  padding:0;
}
.brand-sub{
  font-family:"IBM Plex Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  font-weight:400;
  font-size:.38rem;
  letter-spacing:.32em;
  padding-left:.32em;
  text-transform:uppercase;
  color:currentColor;
  line-height:1.15;
  white-space:nowrap;
}
.brand-logo.brand-lockup .brand-slogan,
.footer-logo.brand-lockup .brand-slogan{
  font-family:var(--sans), Manrope, "Avenir Next", sans-serif;
  font-weight:400;
  font-size:.58rem;
  letter-spacing:.02em;
  color:currentColor;
  opacity:.82;
  line-height:1.2;
  text-align:center;
  white-space:nowrap;
  margin:0;
}
html[lang="de-CH"] .brand-slogan,
html[lang="de"] .brand-slogan{
  font-size:.52rem;
  letter-spacing:.01em;
}

@media (min-width:800px){
  .site-header .brand-avs{
    font-size:1.92rem;
  }
  .site-header .brand-rule{
    width:5.7rem;
    margin:.32rem auto .24rem;
  }
  .site-header .brand-sub{
    font-size:.48rem;
  }
  .site-header .brand-logo.brand-lockup .brand-slogan{
    font-size:.64rem;
  }
  html[lang="de-CH"] .site-header .brand-slogan,
  html[lang="de"] .site-header .brand-slogan{
    font-size:.56rem;
  }
}

/* Mobile header: drop the motto so the lockup stays compact; footer keeps it. */
@media (max-width:799px){
  .site-header .brand-slogan{
    display:none;
  }
}

/* Ivory lockup: footer (dark ink ground) and a transparent home header if used. */
.brand-lockup.is-ivory,
.footer-brand .brand-lockup,
body[data-page="home"] .site-header:not(.is-solid):not(.nav-open) .brand-lockup{
  color:#f5f4f2;
}

/* -------------------------------------------------------------------------
   Logo final (26 Nov 2026, preview logo-final): AVS / CONSULTING / motto,
   NO hairline. Newsreader AVS, IBM Plex Mono CONSULTING tracked to the AVS
   ink width, EB Garamond italic motto. Colours unchanged (charcoal #1c1c1e
   on grey, ivory #f5f4f2 in the footer). One scale variable --lk per context.
   ------------------------------------------------------------------------- */
.brand-lockup{--lk:16px}
@media (max-width:799px){.site-header .brand-lockup{--lk:12px}}
.footer-brand .brand-lockup,.footer-logo.brand-lockup{--lk:13px}
.brand-logo.brand-lockup,.footer-logo.brand-lockup,.footer-brand .brand-lockup,
.site-header .brand-logo.brand-lockup,
body[data-page="home"] .site-header .brand-logo.brand-lockup,
body[data-page="home"] .site-header:not(.is-solid) .brand-logo.brand-lockup,
body[data-page="home"] .site-header:not(.is-solid):not(.nav-open) .brand-logo.brand-lockup{gap:0 !important}
.brand-rule{display:none !important}
.brand-lockup .brand-avs,.site-header .brand-avs{
  font-size:calc(var(--lk) * 1.92) !important;
  letter-spacing:.28em !important;padding-left:.28em !important;line-height:1 !important;
}
.brand-lockup .brand-sub,.site-header .brand-sub{
  font-weight:500 !important; /* was 400 (logo-consulting) */
  font-size:calc(var(--lk) * .5) !important;
  letter-spacing:.36em !important;padding-left:.36em !important;
  margin-top:calc(var(--lk) * .40) !important;line-height:1 !important;opacity:.88;
}
.brand-lockup .brand-slogan,
.site-header .brand-logo.brand-lockup .brand-slogan,
.footer-logo.brand-lockup .brand-slogan,
html[lang="de-CH"] .brand-lockup .brand-slogan,html[lang="de"] .brand-lockup .brand-slogan,
html[lang="de-CH"] .site-header .brand-slogan,html[lang="de"] .site-header .brand-slogan{
  display:block !important;
  font-family:"EB Garamond","Newsreader",Georgia,serif !important;font-style:italic !important;font-weight:400 !important;
  font-size:calc(var(--lk) * .78) !important;letter-spacing:0 !important;
  margin-top:calc(var(--lk) * .40) !important;opacity:.86 !important;line-height:1.15 !important;
}
