/* ==========================================================================
   NearU Vending Services — nearuvending.com
   Design system + components. No build step; ships as-is to Cloudflare Pages.

   COLOUR NOTE
   The brand gradient (red → orange → amber) is built for dark grounds. Amber
   on white measures 1.5:1 and orange 2.6:1, so neither may carry text on a
   light background. Light surfaces use --flame (#c81a10, 5.8:1 on white),
   which reads as the same brand red, one step deeper. The bright gradient is
   reserved for fills, dark surfaces and large display type.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — fills, dark grounds, large display type */
  --orange: #f7801e;
  --amber: #ffcb03;
  --grad: linear-gradient(100deg, #ee2e27 0%, #f7801e 48%, #ffcb03 100%);

  /* Poster amber — a touch deeper than --amber so brush strokes hold their
     edge against white. --amber stays as-is for the gradient ends. */
  --amber-2: #ffc20e;
  --amber-ink: #0d0b0a;      /* the only text colour allowed on amber */
  --font-script: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  /* Tapered underline — one pass of a drying marker */
  --brush-ul: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16C60 6 130 4 186 8c46 3 82 6 110 1-26 11-96 13-156 10-48-2-96 1-136-3z' fill='%23ffc20e'/%3E%3C/svg%3E");
  /* Ragged lower edge for a full-width painted band */
  --brush-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v12c-64 9-140 4-206 8-84 5-160-3-244-2-96 1-176 9-272 6-84-3-150-10-232-6-84 4-160 10-246 6z' fill='%23ffc20e'/%3E%3C/svg%3E");

  /* Brand — accessible on light */
  --flame: #c81a10;        /* 5.8:1 on white  — links, accents, small icons */
  --flame-deep: #9c2b05;   /* 7.6:1 on white  — small text on tinted panels */

  /* Warm neutral ramp, pulled toward the amber so nothing fights the brand */
  --ink: #0d0b0a;
  --ink-2: #171310;
  --paper: #ffffff;
  --paper-2: #fdfaf4;
  --text: #1a1512;
  --muted: #5f564e;
  --line: rgba(26, 21, 18, .12);
  --line-2: rgba(26, 21, 18, .06);
  --on-dark: #f7f3ec;
  --on-dark-muted: #a9a19a;
  --line-dark: rgba(255, 255, 255, .13);

  /* Type */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Space & shape */
  --gutter: 20px;
  --maxw: 1180px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Warm-tinted shadows — grey shadows look dirty over cream */
  --shadow-sm: 0 1px 2px rgba(60, 35, 15, .05), 0 2px 8px rgba(60, 35, 15, .05);
  --shadow: 0 2px 6px rgba(60, 35, 15, .05), 0 14px 34px rgba(60, 35, 15, .09);
  --shadow-lg: 0 10px 24px rgba(60, 35, 15, .09), 0 34px 74px rgba(60, 35, 15, .16);
  --shadow-brand: 0 8px 22px rgba(238, 92, 30, .3);

  --nav-h: 74px;

  /* Film grain for dark sections */
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 1.3rem + 4.1vw, 4.4rem); letter-spacing: -.038em; }
h2 { font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.2rem); letter-spacing: -.032em; }
h3 { font-size: clamp(1.18rem, 1.03rem + .5vw, 1.45rem); letter-spacing: -.02em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark :focus-visible, .hero :focus-visible, .cta-band :focus-visible { outline-color: var(--amber); }
::selection { background: var(--amber); color: var(--ink); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 780px; }
.section {
  position: relative;
  padding: clamp(66px, 4vw + 46px, 122px) 0;
}

.dark {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  isolation: isolate;
  /* The ::after bloom is deliberately positioned outside the box; without this
     it widens the document and gives phones a horizontal scroll. */
  overflow: hidden;
}
/* Grain + a single warm bloom keep large dark blocks from reading as flat black */
.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: .035;
  pointer-events: none;
}
.dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -12%;
  width: min(760px, 78vw);
  height: min(760px, 78vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 128, 30, .17), transparent 66%);
  filter: blur(70px);
  pointer-events: none;
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark .muted { color: var(--on-dark-muted); }

/* Warm tinted band with a faint brand wash at the top edge */
.tinted {
  background: var(--paper-2);
  position: relative;
}
.tinted::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 340px;
  background: radial-gradient(70% 100% at 50% 0%, rgba(255, 203, 3, .12), transparent 70%);
  pointer-events: none;
}
.tinted > * { position: relative; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 16px;
  /* A filled amber tab, as on the poster ("Role Includes:"). Uneven corners
     read as hand-cut rather than CSS. */
  padding: 6px 14px 7px;
  border-radius: 8px 12px 9px 13px;
  background: var(--amber-2);
  color: var(--amber-ink);
  transform: rotate(-.6deg);
}
.lead {
  font-size: clamp(1.06rem, .98rem + .38vw, 1.24rem);
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 3vw, 58px); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.012em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0% 50%;
  color: var(--ink);
  box-shadow: var(--shadow-brand);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease,
              background-position .45s ease;
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 32px rgba(238, 92, 30, .42);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(26, 21, 18, .32); background: rgba(26, 21, 18, .035); }
.dark .btn-ghost, .hero .btn-ghost, .cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .05);
}
.dark .btn-ghost:hover, .hero .btn-ghost:hover, .cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .55);
}
.dark .btn-dark, .hero .btn-dark, .cta-band .btn-dark { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 19px; font-size: .92rem; }
.btn-lg { padding: 18px 36px; font-size: 1.07rem; }
/* Long labels like "Request a Partnership Discussion" have a min-content width
   wider than a small phone; let them wrap rather than widen the page. */
@media (max-width: 430px) {
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 16px 22px; font-size: 1rem; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--flame);
  transition: gap .2s ease, color .2s ease;
}
.link-arrow span[aria-hidden] { transition: transform .2s ease; }
.link-arrow:hover { color: var(--flame-deep); }
.link-arrow:hover span[aria-hidden] { transform: translateX(5px); }
.dark .link-arrow { color: var(--amber); }
.dark .link-arrow:hover { color: #fff; }

/* ---------- Header / nav ----------
   Seven links plus the CTA need ~1090px; below 1100px the burger takes over.
   Keep NAV_BREAKPOINT in main.js in step with this. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line-2);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 24px rgba(60, 35, 15, .07);
}
.nav { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }

/* The wordmark is a red→amber gradient drawn for a dark ground, so it always
   sits on an ink chip — the same lockup used on the machines themselves. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: auto;
  padding: 9px 15px;
  border-radius: 14px;
  background: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 21, 18, .22); }
.brand img { height: 22px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  display: block;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s ease, background-color .18s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(26, 21, 18, .045); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 26px;
  height: 7px;
  background: var(--brush-ul) center / 100% 100% no-repeat;
  transform: translateX(-50%);
}
.nav-cta { flex: none; }
.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ink); transition: background-color .2s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .24s ease, top .18s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 99;
    background: var(--paper);
    padding: 22px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1101px) { .mobile-nav { display: none; } }
.mobile-nav ul { list-style: none; margin: 0 0 22px; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line-2); }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  transition: color .18s ease, padding-left .18s ease;
}
.mobile-nav a:hover { color: var(--flame); padding-left: 6px; }
.mobile-nav a svg { color: var(--flame); }
.mobile-nav .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(58px, 5vw + 32px, 104px) 0 clamp(64px, 5vw + 34px, 108px);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(52% 58% at 6% 6%, rgba(238, 46, 39, .4), transparent 62%),
    radial-gradient(56% 62% at 96% 96%, rgba(255, 203, 3, .26), transparent 64%),
    radial-gradient(40% 40% at 78% 8%, rgba(247, 128, 30, .2), transparent 66%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--grain);
  opacity: .04;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(30px, 4vw, 66px);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { color: #cfcac2; font-size: clamp(1.08rem, 1rem + .48vw, 1.3rem); max-width: 34ch; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 203, 3, .3);
  border-radius: 999px;
  background: rgba(255, 203, 3, .08);
  font-size: .84rem;
  font-weight: 500;
  color: #f0e6d2;
}
.dot-live { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #2fd16a; margin-left: 4px; }
.dot-live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(47, 209, 106, .6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.7); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.hero .btn-row { margin-top: 32px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: .9rem;
  color: #bfb8b0;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--amber); flex: none; }

/* Hero visual */
.hero-visual { position: relative; }
.photo-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 44px 96px rgba(0, 0, 0, .58);
  background: #101012;
}
.photo-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(10, 10, 11, .74) 100%);
  pointer-events: none;
}
.photo-caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  font-size: .84rem;
  color: rgba(255, 255, 255, .84);
  display: flex;
  align-items: center;
  gap: 8px;
}
.photo-caption svg { color: var(--amber); flex: none; }
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.float-card strong { display: block; font-family: var(--font-display); font-size: .95rem; line-height: 1.25; }
.float-card small { color: var(--muted); font-size: .77rem; }
.float-card .ico {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--grad);
  color: var(--ink);
}
.float-a { left: -18px; top: 11%; animation: bob 6s ease-in-out infinite; }
.float-b { right: -14px; bottom: 13%; animation: bob 6s ease-in-out infinite 1.6s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: 52ch; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .float-a { left: -6px; }
  .float-b { right: -6px; }
}
@media (max-width: 560px) {
  .float-card { padding: 10px 13px; }
  .float-a { left: 10px; top: 4%; }
  .float-b { right: 10px; bottom: 10%; }
}
@media (max-width: 380px) { .float-card small { display: none; } }

/* Inner page hero */
.hero-inner { padding: clamp(50px, 4vw + 28px, 86px) 0; }
.hero-inner h1 { font-size: clamp(2.15rem, 1.3rem + 3.3vw, 3.7rem); }
.hero-inner .photo-frame img { aspect-ratio: 1 / 1; }
.hero-simple { text-align: center; }
.hero-simple .eyebrow { justify-content: center; }
.hero-simple .lead { margin-inline: auto; max-width: 56ch; color: #cfcac2; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink-2);
  border-block: 1px solid var(--line-dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #e8e2d9;
  white-space: nowrap;
}
.marquee-item svg { color: var(--amber); flex: none; }
.marquee-item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 46px;
  opacity: .55;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* Bento — one lead tile, five supporting. Breaks the grid-after-grid rhythm. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bento .feature { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .feature { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento .feature { grid-column: span 1; }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s ease, border-color .26s ease;
}
/* A brand hairline that draws in on hover, plus a warm corner wash for depth */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.card::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 3, .16), transparent 68%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card h3 { margin-bottom: .42em; }
.card p { color: var(--muted); font-size: .99rem; }
.card p.card-lead { color: var(--text); font-size: 1.05rem; }
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(200, 26, 16, .22);
}
.card-hover:hover::before { transform: scaleX(1); }
.card-hover:hover::after { opacity: 1; }

.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card p { color: var(--on-dark-muted); }
.dark .card-hover:hover { border-color: rgba(255, 203, 3, .38); box-shadow: 0 22px 54px rgba(0, 0, 0, .55); }
.dark .card::after { background: radial-gradient(circle, rgba(255, 203, 3, .12), transparent 68%); }
.tinted .card { background: var(--paper); }

/* An ink card dropped into a light section — inherits every dark treatment
   so icons and body copy stay legible without inline overrides. */
/* Two classes deep so this still wins inside a .tinted section, whose
   `.tinted .card` rule would otherwise repaint it white. */
.card.card-ink {
  background: var(--ink);
  border-color: transparent;
  color: var(--on-dark);
}
.card-ink h2, .card-ink h3, .card-ink h4 { color: #fff; }
.card-ink p { color: var(--on-dark-muted); }
.card-ink .ico-box {
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 203, 3, .22);
  color: var(--amber);
}
.card-ink .ico-box.solid { background: var(--amber-2); box-shadow: var(--shadow-brand); color: var(--amber-ink); }
.card-ink .checks li { color: #e9e4dd; }
.card-ink hr { border-color: var(--line-dark); }
.card-ink a:not(.btn) { color: var(--amber); }

/* Lead tile in a bento grid */
.card.feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 3vw, 42px);
  background: var(--ink);
  border-color: transparent;
  color: var(--on-dark);
  min-height: 260px;
}
.card.feature::after {
  opacity: 1;
  top: -90px; right: -90px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(247, 128, 30, .34), transparent 66%);
}
.card.feature h3 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .35em; }
.card.feature p { color: #cfc9c1; font-size: 1.05rem; max-width: 46ch; }
.card.feature .ico-box { background: var(--amber-2); color: var(--amber-ink); }

/* Icon chips — the main carrier of brand colour on light sections */
.ico-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 20px;
  /* Solid amber disc holding a black line icon, as on the poster */
  border-radius: 50%;
  background: var(--amber-2);
  box-shadow: 0 6px 16px rgba(255, 194, 14, .32);
  color: var(--amber-ink);
}
.dark .ico-box {
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 203, 3, .22);
  color: var(--amber);
}
.ico-box.solid {
  background: var(--grad);
  box-shadow: var(--shadow-brand);
  color: var(--ink);
}

/* ---------- Solution cards ---------- */
.sol-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s ease, border-color .26s ease;
}
.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 26, 16, .22);
}
.sol-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.sol-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.sol-card:hover .sol-art img { transform: scale(1.05); }
.sol-art > svg { width: 100%; height: 100%; display: block; }
.sol-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.sol-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.sol-body h3 { margin-bottom: .45em; }
.sol-body p { color: var(--muted); font-size: .99rem; }
.sol-body .link-arrow { margin-top: 20px; }
.sol-body .checks + .link-arrow { margin-top: 20px; }

/* ---------- Stats ----------
   A dark inset panel: the gradient numerals need a dark ground to be legible
   and it gives the light page a strong focal block. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  isolation: isolate;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
}
.stat {
  padding: 40px 24px;
  background: var(--ink);
  text-align: center;
  position: relative;
  transition: background-color .3s ease;
}
.stat:hover { background: var(--ink-2); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  padding-block: 2px;
  letter-spacing: -.035em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 10px;
  font-size: .87rem;
  color: var(--on-dark-muted);
  letter-spacing: .02em;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  overflow: hidden;
  counter-increment: step;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s ease, border-color .26s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(200, 26, 16, .22); }
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.step.is-visible::before, .step:hover::before { transform: scaleX(1); }
/* Oversized ghost numeral for depth — mirrors the .step-num text */
.step::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -22px; right: -6px;
  font-family: var(--font-display);
  font-size: 6.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(200, 26, 16, .06);
  pointer-events: none;
}
.dark .step { background: var(--ink-2); border-color: var(--line-dark); }
.dark .step:hover { border-color: rgba(255, 203, 3, .35); box-shadow: 0 22px 54px rgba(0, 0, 0, .5); }
.dark .step::after { color: rgba(255, 203, 3, .07); }
.step-num {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--flame);
  margin-bottom: 15px;
}
.dark .step-num { color: var(--amber); }
.step h3 { margin-bottom: .42em; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
.dark .step p { color: var(--on-dark-muted); }

/* ---------- Flow diagram ---------- */
.flow { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.flow-node {
  flex: 1 1 210px;
  max-width: 290px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  transition: transform .26s ease, border-color .26s ease;
}
.flow-node:hover { transform: translateY(-4px); }
.flow-node .ico-box { margin-inline: auto; }
.flow-node h3 { font-size: 1.12rem; margin-bottom: .35em; }
.flow-node p { font-size: .91rem; color: var(--on-dark-muted); margin: 0; }
.flow-node.accent { background: var(--grad); border-color: transparent; color: var(--ink); box-shadow: var(--shadow-brand); }
.flow-node.accent h3 { color: var(--ink); }
.flow-node.accent p { color: rgba(26, 21, 18, .76); }
.flow-node.accent .ico-box { background: rgba(26, 21, 18, .14); box-shadow: none; color: var(--ink); }
.flow-arrow { display: grid; place-items: center; flex: none; color: var(--amber); opacity: .8; }
@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-node { max-width: none; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
}

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 28px; }
@media (max-width: 620px) { .checks.two { grid-template-columns: 1fr; } }
.checks li { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: .99rem; color: var(--text); }
.dark .checks li { color: #e9e4dd; }
.checks li svg {
  flex: none;
  width: 21px; height: 21px;
  padding: 4px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--amber-2);
  color: var(--amber-ink);
}

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dark .split-media { border-color: var(--line-dark); }

/* ---------- Location grid ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loc {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.loc:hover { transform: translateY(-4px); border-color: rgba(200, 26, 16, .28); box-shadow: var(--shadow-sm); }
.loc svg { color: var(--flame); }
.dark .loc { background: var(--ink-2); border-color: var(--line-dark); }
.dark .loc svg { color: var(--amber); }
.dark .loc:hover { border-color: rgba(255, 203, 3, .38); }

/* ---------- Testimonials ---------- */
.quote {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: transform .26s ease, box-shadow .26s ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.014em;
}
.quote blockquote::before, .quote blockquote::after { color: var(--flame); }
.quote blockquote::before { content: "“"; }
.quote blockquote::after { content: "”"; }
.quote figcaption { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.quote cite { font-style: normal; font-weight: 600; font-size: .95rem; display: block; }
.quote figcaption small { color: var(--muted); font-size: .85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  padding: clamp(62px, 5vw + 34px, 108px) 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -10% -62% -10%;
  height: 460px;
  background: radial-gradient(ellipse at center, rgba(247, 128, 30, .42), transparent 66%);
  filter: blur(62px);
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--grain);
  opacity: .04;
  pointer-events: none;
}
.cta-band h2 { margin-bottom: .42em; font-size: clamp(2.05rem, 1.3rem + 3vw, 3.5rem); }
.cta-band .lead { color: #cdc7bf; margin-inline: auto; margin-bottom: 32px; }

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(26px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: .89rem; font-weight: 600; }
.req { color: var(--flame); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
  font-size: 1rem;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f564e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--flame);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(200, 26, 16, .13);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: rgba(200, 26, 16, .55); }
.field-hint { font-size: .82rem; color: var(--muted); }
.form-note { margin-top: 16px; font-size: .85rem; color: var(--muted); }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 13px; font-size: .94rem; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(47, 209, 106, .12); border: 1px solid rgba(47, 209, 106, .4); }
.form-status.err { background: rgba(200, 26, 16, .08); border: 1px solid rgba(200, 26, 16, .35); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Contact aside ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(26px, 3vw, 46px); align-items: start; }
/* Grid items default to min-width:auto and refuse to shrink below their
   content's min-content width — this lets the columns actually narrow. */
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .ico-box { width: 42px; height: 42px; margin: 0; }
.contact-item h4 { margin: 0 0 3px; font-size: .95rem; }
.contact-item p, .contact-item a { margin: 0; font-size: .95rem; color: var(--muted); }
.contact-item a { color: var(--flame); font-weight: 500; }
.contact-item a:hover { color: var(--flame-deep); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; transition: background-color .2s ease; }
.faq details[open] { background: var(--paper-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.014em;
  transition: color .2s ease;
}
.faq summary:hover { color: var(--flame); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--flame);
  border-bottom: 2px solid var(--flame);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .24s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 16px 22px; color: var(--muted); max-width: 72ch; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 19px 14px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #062d15;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .94rem;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37, 211, 102, .55); }
@media (max-width: 520px) {
  .wa-float { padding: 14px; }
  .wa-float span { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: clamp(52px, 4vw + 26px, 84px) 0 92px;
  font-size: .94rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 38px 24px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; margin-bottom: 20px; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { transition: color .18s ease; }
.footer-col a:hover { color: var(--amber); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.socials a:hover { background: rgba(255, 203, 3, .12); border-color: rgba(255, 203, 3, .45); color: var(--amber); transform: translateY(-2px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding-top: 26px; font-size: .86rem; }
.footer-bottom a:hover { color: var(--amber); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--flame); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--flame-deep); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .cta-band, .site-footer, .marquee { display: none; }
  body { font-size: 12pt; }
  .dark, .hero { background: #fff !important; color: #000 !important; }
}

/* ==========================================================================
   POSTER LANGUAGE
   Lifted from the NearU recruitment poster, which is the sharpest expression
   of the brand we have. Three things carry it:

   1. Amber is a GROUND, not an ink. On the poster every yellow shape is a
      painted fill with black type on top — never yellow text. That sidesteps
      the 1.5:1 contrast problem described at the top of this file while
      letting the brightest brand colour finally lead. Amber fill with --ink
      text measures 14:1.
   2. Marker geometry. Headlines sit on rough brush strokes, not rounded
      rectangles. The ragged edge is what stops the palette reading as a
      generic yellow-and-black template.
   3. A handwritten voice, for four or five short phrases only. Caveat is the
      aside; Outfit still does all the real work.
   ========================================================================== */


/* ---------- Brush strokes behind type ----------
   Painted as the element's own background rather than a positioned pseudo,
   so box-decoration-break repaints the stroke on every line a heading wraps
   onto. An inline-block would have refused to wrap at all and pushed long
   headings off the side of a phone.

   Vertical padding on an inline box does not grow the line box, so the
   stroke bleeds a little into the lines above and below — which is what a
   marker does, and why the headings it sits on want loose leading. */
.swash {
  display: inline;
  /* The painted body of brush-stroke.svg fills roughly the middle 65% of
     its height and the ragged ends take ~4% each side, so the box is padded
     well past the glyphs; the negative margin gives that width back so the
     word keeps its natural spacing in the sentence. */
  padding: .2em .42em .24em;
  margin: 0 -.14em;
  color: var(--amber-ink);
  background: url("/assets/img/brush-stroke.svg?v=2") center / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Headings carrying a stroke need room for it to bleed into. */
h1:has(.swash), h2:has(.swash) { line-height: 1.24; }

/* ---------- Handwritten asides ----------
   Caveat runs small for its point size; the bump matches it to the type it
   sits beside. Never carries anything the reader has to parse. */
.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.5em;
  line-height: 1.15;
  letter-spacing: 0;
}

/* ---------- Hand-drawn annotation ----------
   The poster points at its own photograph ("Our Eeco Cargo Van"). It is the
   friendliest mark on the sheet. Decorative only: the same fact is in the
   caption underneath, so it is hidden from assistive tech, and it drops out
   entirely once the layout has no margin to hold it. */
.annotate {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  color: var(--amber-2);
  pointer-events: none;
}
.annotate span {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(-5deg);
}
.annotate svg { flex: none; margin-top: -2px; }
/* Sits in the hero's top padding, above the photo, pointing down into it. */
.annotate-hero { top: -54px; right: 16px; }
@media (max-width: 1180px) { .annotate { display: none; } }

/* The logo's own tagline, set in the poster's hand. */
.hero-script {
  margin: 18px 0 0;
  color: var(--amber-2);
  font-size: 1.7rem;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
@media (prefers-reduced-motion: reduce) { .hero-script { transform: none; } }

/* ---------- Value strip ----------
   The poster's black bottom bar: three short promises, hairline dividers,
   and the tagline signed off by hand. Sits on top of the footer proper. */
.value-strip {
  position: relative;
  z-index: 1;
  background: var(--ink-2);
  border-top: 3px solid var(--amber-2);
  padding: 26px 0;
}
.value-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.value-item { display: flex; align-items: center; gap: 13px; color: var(--on-dark); }
/* Hairline between items, the way the poster divides its bottom bar */
.value-item + .value-item { border-left: 1px solid var(--line-dark); padding-left: 32px; }
.value-item svg { flex: none; color: var(--amber-2); }
.value-item b {
  display: block;
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}
.value-item small { font-size: .82rem; color: var(--on-dark-muted); }
.value-tagline {
  margin: 0 0 0 auto;
  font-family: var(--font-script);
  font-weight: 700;
  /* At a flat 1.75rem this line measured 335px — it fitted a 375px phone with
     nothing to spare and clipped on a 360px one. */
  font-size: clamp(1.4rem, 1rem + 1.7vw, 1.75rem);
  line-height: 1.05;
  color: var(--amber-2);
  transform: rotate(-3deg);
  text-align: center;
}
@media (max-width: 1080px) {
  .value-item + .value-item { border-left: 0; padding-left: 0; }
  .value-tagline { margin: 4px auto 0; width: 100%; }
}
@media (max-width: 560px) {
  .value-strip-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .value-item { width: 100%; }
}

/* ---------- Painted edge on the closing CTA ----------
   A torn amber band across the top of the dark call to action: the poster's
   yellow ribbon sitting above its black footer. */
.cta-band { padding-top: clamp(80px, 5vw + 50px, 130px); }
.edge-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26px;
  background: var(--brush-edge) top center / 100% 100% no-repeat;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow, .value-tagline, .annotate span { transform: none; }
}
