/* ==========================================================================
   Bye Bye Junk v2: shared styles (every page loads this)
   --------------------------------------------------------------------------
   Provides: tokens, @font-face, base, skip link, focus styles, header (hides
   on scroll down), phone menu overlay, footer with giant wordmark, buttons
   (.btn, .btn-orange, .btn-ghost, .btn-ink, .btn-yellow, .btn-xl, .btn-sticker),
   .ink-shadow, misregistration type (.mis, .mis-blue, .mis-ink, .mis-yellow),
   .checker strip, .badge (circular SVG text), paper grain, motion toggle pill,
   page-transition overlay, details/FAQ (.faq), reduced-motion rules.

   Conventions
   - Content is ALWAYS visible in CSS. Initial animation states come from JS.
   - app.js puts classes on <html>: .js, and either .motion-on or .motion-off.
     Use `.motion-on` to gate decorative CSS animation.
   - Dark bands: add .on-dark (focus ring and shadows switch colour).
   - Header + footer markup lives in each page's HTML (copy it from index.html).
   - Page-only CSS goes in a page file (home.css, service.css ...).
   ========================================================================== */

@font-face { font-family: "Lilita One"; src: url("/assets/fonts/lilita-one.woff2") format("woff2"), url("/assets/fonts/lilita-one.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-regular.woff2") format("woff2"), url("/assets/fonts/barlow-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-semibold.woff2") format("woff2"), url("/assets/fonts/barlow-semibold.ttf") format("truetype"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("/assets/fonts/caveat-brush.woff2") format("woff2"), url("/assets/fonts/caveat-brush.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #FFF4E1;
  --paper-2: #F6E6C8;
  --ink: #0E2233;
  --orange: #FF5A1F;
  --blue: #1E4EA8;
  --rust: #B83B20;
  --yellow: #FFC72C;
  --kraft: #C98B4F;

  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat Brush", "Segoe Print", "Bradley Hand", cursive;

  --hh: 96px;                         /* header height */
  --wrap: 1360px;
  --gutter: clamp(1.1rem, 4.2vw, 3rem);
  --section: clamp(5rem, 11vw, 10rem); /* vertical section padding */
  --focus: var(--ink);
  --sh: var(--ink);                    /* ink-shadow colour */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}
@media (max-width: 899px) { :root { --hh: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-size: 18px; }
@media (max-width: 899px) { html { font-size: 17px; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.5 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; font-synthesis: none; line-height: .9; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark { --focus: var(--yellow); --sh: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 400; background: var(--yellow); color: var(--ink); padding: .8rem 1.1rem; border: 3px solid var(--ink); border-radius: .6rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type helpers ---------- */
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: .005em; line-height: 1.05; }
.eyebrow { font: 600 .9rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; }
.caps { text-transform: uppercase; }
.mis { text-shadow: .04em .04em 0 var(--mis, var(--orange)); }
.mis-blue { --mis: var(--blue); }
.mis-ink { --mis: var(--ink); }
.mis-yellow { --mis: var(--yellow); }
.mis-orange { --mis: var(--orange); }
.split-line { display: inline-block; }
/* SplitText wraps chars/words in these; keep them from collapsing */
.sc, .sw { display: inline-block; will-change: transform; }

/* ---------- ink shadow + buttons ---------- */
.ink-shadow { box-shadow: 6px 6px 0 var(--sh); }
.btn {
  --bg: var(--paper); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3.2rem; padding: .7rem 1.5rem;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 400 1.2rem/1.05 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; text-align: center; text-wrap: balance;
  box-shadow: 5px 5px 0 var(--sh);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .15s;
}
.btn:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--sh); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--sh); transition-duration: .06s; }
.btn-orange { --bg: var(--orange); }
.btn-yellow { --bg: var(--yellow); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); --sh: var(--orange); }
.btn-ghost { --bg: transparent; }
.btn-ghost:hover { --bg: var(--paper); }
/* one CTA style, four size steps: sm 1rem / base 1.2rem / lg 1.35rem / xl 1.6-2.1rem (all Lilita, uppercase, .04em) */
.btn.btn-lg { font-size: 1.35rem; letter-spacing: .04em; }
.btn-xl { min-height: 4.4rem; padding: .9rem 2.4rem; font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; box-shadow: 7px 7px 0 var(--sh); }
.btn-sm { min-height: 2.6rem; padding: .45rem 1.1rem; font-size: 1rem; box-shadow: 3px 3px 0 var(--sh); }
.btn-sm:hover { box-shadow: 5px 6px 0 var(--sh); }
.btn-sticker { transform: rotate(-3deg); font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.btn-sticker:hover { transform: rotate(2deg) translate(-2px, -3px) scale(1.04); }
.btn-sticker:active { transform: rotate(0) translate(2px, 2px); }
.arrow-link { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: underline; text-decoration-thickness: .16em; text-underline-offset: .22em; text-decoration-color: var(--orange); }
.arrow-link:hover { text-decoration-color: currentColor; }

/* ---------- paper grain (one fixed overlay) ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 250; pointer-events: none;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.13  0 0 0 0 0.2  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- checker strip (seam). 24px squares ---------- */
.checker { position: relative; height: 48px; overflow: hidden; background: var(--paper); border-block: 3px solid var(--ink); }
.checker::before {
  content: ""; position: absolute; inset: 0 -48px 0 0;
  background: conic-gradient(var(--ink) 25%, var(--paper) 0 50%, var(--ink) 0 75%, var(--paper) 0) 0 0 / 48px 48px;
}
.motion-on .checker::before { animation: checker-slide 3.2s linear infinite; }
@keyframes checker-slide { to { transform: translateX(-48px); } }
.checker-thin { height: 30px; }

/* ---------- sticker badge: circular text (SVG textPath) ---------- */
.badge { width: 150px; height: 150px; flex: none; color: var(--ink); }
.badge text { font: 400 20px var(--display); letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }
.badge .b-disc { fill: var(--yellow); stroke: var(--ink); stroke-width: 4; }
.badge-spin { animation: none; }
.motion-on .badge-css .b-ring { transform-origin: 100px 100px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hh);
  background: var(--paper); border-bottom: 3px solid var(--ink);
  transition: transform .55s var(--ease-io);
}
.site-header.is-hidden { transform: translateY(-105%); }
.header-row { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2.2rem); height: 100%; }
.brand { display: block; flex: none; line-height: 0; border-radius: 12px; }
.brand img { height: calc(var(--hh) - 14px); width: auto; transition: transform .35s var(--ease-out); }
.brand:hover img { transform: rotate(-3deg) scale(1.05); }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav a {
  position: relative; isolation: isolate; display: block; padding: .5rem .1rem;
  font: 400 1.15rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: .32rem; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); z-index: -1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { margin-left: auto; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 2.6rem; padding: .3rem .9rem;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer;
  font: 400 1rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
}
.menu-btn .bars { width: 18px; height: 12px; background: linear-gradient(var(--ink) 0 0) 0 0 / 100% 3px no-repeat, linear-gradient(var(--ink) 0 0) 0 100% / 100% 3px no-repeat; }
@media (min-width: 900px) {
  .nav { display: block; }
  .header-cta { margin-left: 0; }
  .menu-btn { display: none; }
}
@media (max-width: 899px) { .brand img { height: 52px; } .header-row { gap: .5rem; } .header-cta { font-size: .95rem; padding-inline: .8rem; min-height: 2.4rem; white-space: nowrap; margin-left: auto; } .menu-btn { padding-inline: .7rem; } }
@media (max-width: 380px) { .menu-btn .lbl { display: none; } }

/* ---------- phone menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 120; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; padding: calc(var(--hh) * .5) var(--gutter) 2rem;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .65s var(--ease-io), visibility 0s linear .65s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.menu-top .tag { font-size: 1.7rem; color: var(--yellow); transform: rotate(-4deg); }
.menu-close { min-height: 2.6rem; padding: .3rem 1rem; border: 3px solid var(--paper); border-radius: 999px; background: transparent; color: var(--paper); cursor: pointer; font: 400 1rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.menu-links { display: flex; flex-direction: column; margin-block: auto; }
.menu-links li { position: relative; }
.menu-links li + li { margin-top: .1rem; }
.menu-links li + li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--paper); transform-origin: left; transition: transform .7s var(--ease-out); }
.menu:not(.is-open) .menu-links li + li::before { transform: scaleX(0); }
.menu-links a { display: block; font: 400 min(10.5vw, 3.2rem)/1.08 var(--display); white-space: nowrap; text-transform: uppercase; text-decoration: none; letter-spacing: -.01em; padding-block: .55rem .4rem; }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--orange); }
.menu-links li:last-child a { color: var(--orange); }
.menu:not(.is-open) .menu-links a, .menu:not(.is-open) .menu-top { opacity: 0; transform: translateY(46px) rotate(2deg); }
.menu-links a, .menu-top { transition: transform .7s var(--ease-out), opacity .5s; }
.menu.is-open .menu-links li:nth-child(1) a { transition-delay: .25s; }
.menu.is-open .menu-links li:nth-child(2)::before { transition-delay: .3s; }
.menu.is-open .menu-links li:nth-child(3)::before { transition-delay: .37s; }
.menu.is-open .menu-links li:nth-child(4)::before { transition-delay: .44s; }
.menu.is-open .menu-links li:nth-child(5)::before { transition-delay: .51s; }
.menu.is-open .menu-links li:nth-child(2) a { transition-delay: .32s; }
.menu.is-open .menu-links li:nth-child(3) a { transition-delay: .39s; }
.menu.is-open .menu-links li:nth-child(4) a { transition-delay: .46s; }
.menu.is-open .menu-links li:nth-child(5) a { transition-delay: .53s; }
.menu .menu-foot { margin: 1.5rem 0 0; font-size: .95rem; opacity: .75; }
.menu .motion-toggle { margin-top: 1.2rem; align-self: flex-start; }
html.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--paper); overflow: clip; }
.site-footer .checker { border-color: var(--ink); background: var(--ink); }
.site-footer .checker::before { background: conic-gradient(var(--paper) 25%, var(--ink) 0 50%, var(--paper) 0 75%, var(--ink) 0) 0 0 / 48px 48px; }
.footer-body { display: grid; gap: 2.5rem 3rem; padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.footer-tag { font: 400 clamp(2.6rem, 6.4vw, 5.6rem)/.92 var(--display); text-transform: uppercase; color: var(--paper); max-width: 14ch; }
.footer-tag em { font-style: normal; color: var(--yellow); }
.footer-cols { display: grid; gap: 2rem; }
.footer-logo { width: min(240px, 60vw); background: var(--paper); border-radius: 50%/45%; padding: .4rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: .55rem 2.4rem; align-content: start; justify-content: start; }
.footer-links a { white-space: nowrap; font: 400 1.3rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-links li { list-style: none; }
@media (max-width: 560px) { .footer-links { grid-template-columns: 1fr; } }
.footer-note { font-size: .95rem; opacity: .8; max-width: 30ch; }
@media (min-width: 900px) {
  .footer-body { grid-template-columns: 1fr 1.15fr; align-items: end; }
  .footer-cols { grid-template-columns: auto 1fr; align-items: center; gap: 2.5rem; }
}
.footer-word {
  display: flex; justify-content: space-between; padding-inline: 1.2vw; margin-top: 1rem;
  font: 400 15.6vw/.9 var(--display); text-transform: uppercase; color: var(--paper);
  text-shadow: .035em .035em 0 var(--orange); letter-spacing: 0; user-select: none;
}
.footer-word .sp { width: .22em; }
.footer-word span { display: block; will-change: transform; }
.footer-small { margin: 0; padding: 1.1rem var(--gutter) 5rem; text-align: center; font-size: .95rem; opacity: .85; }

/* ---------- motion toggle ----------
   Desktop: 40px icon circle, bottom left, fades out over the final CTA band and the footer.
   Phone: no floating control. The same toggle (icon + label) sits at the bottom of the menu and in the footer. */
.motion-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 0;
  background: var(--ink); color: var(--paper); border: 3px solid var(--paper); border-radius: 999px;
  font: 600 .9rem/1 var(--body); letter-spacing: .04em; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.motion-toggle svg { width: 22px; height: 22px; flex: none; }
.motion-toggle .mt-slash { display: none; }
.motion-toggle[data-on="false"] .mt-slash { display: block; }
.motion-toggle[data-on="false"] .mt-ball { fill: none; }
.motion-toggle .lbl { display: none; }
.motion-toggle:hover { background: var(--blue); }
.motion-toggle:focus-visible { outline-color: var(--yellow); outline-offset: 4px; }
.motion-toggle[aria-disabled="true"] { cursor: default; opacity: .9; }
.motion-toggle[aria-disabled="true"]:hover { background: var(--ink); }
.motion-float {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90; width: 40px; height: 40px;
  box-shadow: 0 0 0 3px var(--ink), 3px 4px 0 3px rgba(14, 34, 51, .35);
  transition: opacity .3s, transform .3s var(--ease-out), visibility 0s;
}
.motion-float.is-away { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out), visibility 0s .3s; }
@media (max-width: 899px) { .motion-float { display: none; } }
.mt-inline { width: auto; min-height: 2.75rem; padding: .35rem 1rem .35rem .65rem; border-color: var(--paper); }
.mt-inline .lbl { display: inline; }
.footer-motion { display: flex; justify-content: center; padding: 1.4rem var(--gutter) 0; }
.footer-motion + .footer-small { padding-top: .9rem; }

/* ---------- page transition (checker wipe) ---------- */
.pt { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: grid; overflow: hidden; }
/* tiles overlap their neighbours by 1px each side so settled tiles never show hairline seams (1x or 2x) */
.pt i { display: block; margin: -1px; width: calc(100% + 2px); height: calc(100% + 2px); background: var(--ink); transform: scale(0); will-change: transform; }
.pt.is-active { pointer-events: all; }
html.pt-in::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--ink); animation: pt-gone 0s 2.5s forwards; }
@keyframes pt-gone { to { opacity: 0; visibility: hidden; } }

/* ---------- FAQ (native details, height animated by app.js) ---------- */
.faq details { background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); margin-bottom: 1.1rem; overflow: hidden; transition: background-color .25s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.faq details:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.faq details[open] { background: #FFE9A8; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.1 var(--display); letter-spacing: .005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 2.1rem; height: 2.1rem; border: 3px solid var(--ink); border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 55% 3px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 3px 55% no-repeat, var(--orange); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq-body { padding: 0 1.4rem 1.3rem; max-width: 56ch; }
.faq .faq-body p { margin: 0; }

/* ---------- reduced motion / motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.motion-off .checker::before, .motion-off .badge .b-ring { animation: none !important; }
.motion-off *, .motion-off *::before, .motion-off *::after { scroll-behavior: auto !important; }
.motion-off .menu, .motion-off .site-header { transition-duration: .001ms; }
.motion-off .menu-links li + li::before { transition: none; }
/* static ticker on a phone: wrap, centre, no clipped words, no marquee copies */
@media (max-width: 899px) {
  html.motion-off .ticker .ticker-track { width: auto; justify-content: center; transform: none !important; }
  html.motion-off .ticker .ticker-group { flex: 0 1 auto; max-width: 100%; flex-direction: column; flex-wrap: wrap; align-items: center; justify-content: center; padding-inline: var(--gutter); row-gap: .25rem; }
  html.motion-off .ticker .ticker-group li { white-space: normal; text-align: center; font-size: clamp(1.4rem, 7vw, 2.4rem); }
  html.motion-off .ticker .ticker-group li::after { display: none; }
  html.motion-off .ticker [data-clone] { display: none; }
}
