/* =========================================================================
   TrackSmartID — site styles
   Plain CSS, no build step. Custom properties → layout → components.
   ========================================================================= */

:root {
  /* Palette: white paper, graphite type, the logo magenta as the accent */
  --paper:      #ffffff;
  --paper-2:    #faf6f9;
  --paper-3:    #f0e6ed;
  --ink:        #241f27;   /* headings */
  --ink-2:      #1d1721;   /* dark bands + footer */
  --ink-3:      #2a2130;
  --text:       #5f5a63;   /* body copy */
  --muted:      #6d6772;   /* labels, meta */
  --line:       #e6dfe6;
  --line-dark:  #3a2f3f;
  --brand:      #ec008c;   /* the logo magenta */
  --brand-soft: #f287b7;   /* the lighter half of the logo gradient */
  --brand-ink:  #b8006e;   /* brand at text contrast on white */
  --brand-deep: #92278f;   /* the purple chevron in the wordmark */

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 76rem;      /* max content width */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  --radius: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.06rem);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

::selection { background: var(--brand); color: #fff; }

/* One-page site: the sticky header must not cover the section it jumps to. */
[id] { scroll-margin-top: 6.5rem; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
}

.h-xl { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.05; }
.h-lg { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
.h-md { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; }

/* Section headings are magenta on this site, per the brand */
.h-lg, .h-md { color: var(--brand); }

.eyebrow {
  font-family: var(--font-display);
  line-height: 1.7;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: .45;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: "";
  flex: 0 0 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.lede {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem);
  color: #4f4a53;
  line-height: 1.7;
}

.dim { color: var(--muted); }

/* ---------- layout ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell--wide { --shell: 88rem; }

.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }

.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 1.8rem; }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }

.measure { max-width: 62ch; }
.measure--center { max-width: 62ch; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.8rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--brand-deep); transform: translateY(-2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
}
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }

/* Underlined text link with a sweeping rule */
.link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-ink);
  padding-bottom: .35rem;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .35s var(--ease), color .3s var(--ease);
}
.link:hover { color: var(--brand); background-size: 0% 1px; }

/* =========================================================================
   Header — thin contact strip above the main bar
   ========================================================================= */
.topbar {
  background: var(--ink-2);
  color: #bdb4c2;
  font-size: .78rem;
  letter-spacing: .04em;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.8rem;
  padding-block: .6rem;
}
.topbar a { text-decoration: none; transition: color .3s var(--ease); }
.topbar a:hover { color: var(--brand-soft); }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--brand-soft); flex: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  padding-block: 1.1rem;
  transition: padding .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-stuck {
  padding-block: .7rem;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(36, 31, 39, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
  width: auto;
  height: clamp(30px, 3.8vw, 42px);
  transition: height .35s var(--ease);
}
.header.is-stuck .brand img { height: clamp(26px, 3.1vw, 34px); }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 1.7rem); }

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .3rem;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover,
.nav__link.is-current { color: var(--brand); }

.nav__cta { margin-left: .5rem; padding: .65rem 1.3rem; }

/* Mobile menu button */
.burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 2;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: block; }
  /* keep the logo above the full-screen menu */
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: 1rem; letter-spacing: .2em; }
  .nav__cta { margin-left: 0; }
  body.nav-open { overflow: hidden; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(80svh, 720px);
  display: grid;
  place-items: center;
  padding-block: 6rem 4rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--ink-2);
}
/* The brand gradient stands in for a hero photograph: the old site's hero was
   a slider of the same four stock photos used further down the page. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 90% at 18% 12%, rgba(236, 0, 140, .55), transparent 62%),
    radial-gradient(65% 85% at 85% 78%, rgba(146, 39, 143, .55), transparent 60%),
    linear-gradient(140deg, #2a1030, #1d1721 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(20,16,24,.35), rgba(20,16,24,.1) 45%, rgba(20,16,24,.55));
}

.hero h1 { color: #fff; }
.hero__mark {
  width: min(78vw, 30rem);
  margin-inline: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.4));
}
.hero__tagline {
  font-size: clamp(1.2rem, 1rem + 1.2vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 24ch;
  margin-inline: auto;
  color: rgba(255,255,255,.9);
}
.hero__rule {
  width: 96px; height: 3px;
  margin-inline: auto;
  background: var(--brand-soft);
  border: 0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}

/* thin scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  translate: -50% 0;
  width: 1px; height: 48px;
  background: linear-gradient(var(--brand-soft), transparent);
  opacity: .9;
}

/* =========================================================================
   How it works — the four photo steps under the hero
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .5rem;
  min-height: clamp(16rem, 26vw, 21rem);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  overflow: hidden;
  color: #fff;
  background: var(--ink-2);
}
/* <picture> would otherwise sit in the flex flow as an empty item and add one
   extra `gap` above the caption. The img inside it is absolutely positioned, so
   it still resolves against .step. */
.step picture { display: contents; }
.step img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(24,18,28,.92), rgba(24,18,28,.55) 55%, rgba(24,18,28,.3));
}
.step:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .step:hover img { transform: none; } }

.step__num {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--brand-soft);
}
.step__title {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.step__body { font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.82); }

/* =========================================================================
   Generic split / feature blocks
   ========================================================================= */
.split {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}

.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
/* magenta hairline frame, offset behind the photo */
.split__media::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid rgba(236, 0, 140, .42);
  border-radius: var(--radius);
  z-index: -1;
}

/* =========================================================================
   Benefit / capability cards
   ========================================================================= */
.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
}
.card {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background-color .4s var(--ease);
}
@media (min-width: 620px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card:hover { background: var(--paper-2); }
.card__index {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .18em;
}
.card h3 { margin: .85rem 0 .65rem; font-size: 1.35rem; color: var(--brand); font-weight: 600; }
.card p { color: var(--text); font-size: .96rem; line-height: 1.7; }

/* Audience cards carry an icon instead of an index number */
.card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(236, 0, 140, .1);
}
.card__icon svg { width: 22px; height: 22px; fill: var(--brand); }

/* =========================================================================
   Checklist — benefits, "what we do", "what you do"
   ========================================================================= */
.checklist { list-style: none; padding: 0; margin-top: 1.5rem; }
.checklist li {
  position: relative;
  padding: .55rem 0 .55rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
  line-height: 1.6;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: .35rem; top: 1.15rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* Numbered variant for the ordered "what we do" / "what you do" lists */
.checklist--num { counter-reset: step; }
.checklist--num li { padding-left: 2.9rem; }
.checklist--num li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  left: 0; top: .55rem;
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
}

/* =========================================================================
   Scan points — where the cards get scanned during the day
   ========================================================================= */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
}
.chips li {
  padding: .55rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Plain two/three-column list, used for the clientele inventory */
.columns {
  columns: 2;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
@media (min-width: 900px) { .columns { columns: 3; } }
.columns li {
  break-inside: avoid;
  position: relative;
  padding: .4rem 0 .4rem 1.35rem;
  font-size: .96rem;
}
.columns li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
}

/* =========================================================================
   FAQ — native <details>, so it works with JS off
   ========================================================================= */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  transition: color .3s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand); }
.faq__q::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-top: .45rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq__item[open] .faq__q { color: var(--brand); }
.faq__item[open] .faq__q::after { transform: rotate(-135deg); margin-top: .8rem; }
.faq__a { padding-bottom: 1.4rem; max-width: 70ch; }
.faq__a p + p { margin-top: .9rem; }

/* =========================================================================
   Team
   ========================================================================= */
.team {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: 3rem;
}
.member {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.member__initials {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.member__name { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.member__role {
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}

/* =========================================================================
   Contact details
   ========================================================================= */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.detail + .detail { margin-top: 1.85rem; }
.detail__label {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}
.detail__value {
  margin-top: .35rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  text-decoration: none;
  display: inline-block;
  transition: color .3s var(--ease);
}
a.detail__value:hover { color: var(--brand); }

.hours { border-top: 1px solid var(--line); margin-top: 1.25rem; }
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.hours__day {
  font-family: var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.hours__time { font-size: 1rem; color: var(--ink); }
.hours__row.is-closed .hours__time {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hours__row.is-today { background: linear-gradient(90deg, rgba(236,0,140,.09), transparent); }
.hours__row.is-today .hours__day { color: var(--brand); }

/* =========================================================================
   CTA band
   ========================================================================= */
.band {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  background: var(--ink-2);
  color: #cdc4d2;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 140% at 50% 100%, rgba(236,0,140,.3), transparent 70%);
}
.band > * { position: relative; }
.band .h-lg { color: #fff; }
.band .eyebrow { color: var(--brand-soft); }

.band__lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem clamp(2rem, 6vw, 4.5rem);
  margin-top: 2.5rem;
}
.band__line { text-align: center; }
.band__label {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.band__value {
  display: inline-block;
  margin-top: .35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.band__value:hover { color: var(--brand-soft); }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; background: var(--ink-2); color: #a49aab; }
.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.footer__logo { width: 190px; margin-bottom: 1.15rem; }
.footer h2 {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: .55rem; }
.footer a { text-decoration: none; color: #a49aab; font-size: .95rem; transition: color .3s var(--ease); }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; color: #a49aab; font-size: .95rem; line-height: 1.7; }
.footer p { font-size: .95rem; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: .8rem;
  letter-spacing: .04em;
}

/* back-to-top */
.to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 50;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-deep); }
.to-top svg { width: 16px; height: 16px; fill: currentColor; }

/* =========================================================================
   Reveal on scroll (JS adds .is-in)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
/* Never leave content hidden if JS fails */
.no-js .reveal { opacity: 1; transform: none; }

/* visually hidden (available to screen readers and crawlers) */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* skip link */
.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .7rem 1.2rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  transition: top .25s var(--ease);
}
.skip:focus { top: 1rem; }
