/* ==========================================================================
   QCCESS Home — "handmade on paper"
   Muted brand colors, paper grain, one hand-drawn underline, a tilted
   polaroid photo, and one small nostalgic sparkle moment on the CTA.
   Mobile-first + responsive.
   ========================================================================== */

/* ---------- Palette (muted/desaturated versions of the brand colors) ---------- */
body.home {
  /* the background is our actual brand white, with the two accent colors
     (navy, mint) only ever showing up as soft gradient glows over it —
     never a solid tint of their own. */
  --paper: #ffffff;
  --paper-deep: #efeade;
  --ink: #272c4d;
  --ink-soft: #666c92;
  --accent: #2d4573;
  --accent-deep: #16284a;
  --mint: #5fd8bb;
  --mint-deep: #3a9f87;

  background:
    radial-gradient(1000px 650px at 8% -5%, rgba(45, 69, 115, 0.07), transparent 58%),
    radial-gradient(1000px 650px at 92% -5%, rgba(95, 216, 187, 0.09), transparent 58%),
    var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: relative;
}

/* paper grain across the whole page — barely there, not a hero effect */
body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0 0.2  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Shared heading typography — every page carries body.home for the nav,
   so this one rule unifies h1/h2 to Playfair Display across index, about,
   contact, login, and signup without each page redeclaring it. Pages that
   want a different weight/size still control that themselves; only the
   typeface is unified here. */
body.home h1,
body.home h2 {
  font-family: "Playfair Display", serif;
}

/* container used by the page */
.home-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Navbar ---------- */
/* Sticky, so it needs its own backing: a transparent bar let page text
   scroll visibly underneath the nav links. Same frosted treatment as the
   app shell's .app-topbar — near-opaque paper white + blur, so nothing
   behind it reads as text. */
.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(39, 44, 77, 0.08);
  padding: 0.75rem 0;
}

.home-nav {
  width: 100%;
  margin: 0 auto;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}

.home-nav__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  background: transparent;
}

.home-nav__brand a {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.home-nav__links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.home-nav__links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.35rem 0.1rem;
  text-decoration: none;
  transition: color 140ms ease;
}

.home-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 0.5em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2,13 C40,5 75,19 115,10 C150,3 190,17 230,9 C255,5 278,14 298,7' stroke='%2316284a' stroke-width='3.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
  opacity: 0;
  transform: scaleX(0.92);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.home-nav__links a:hover {
  color: var(--ink);
}

.home-nav__links a:hover::after,
.home-nav__links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-nav__links a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.home-nav__cta {
  display: flex;
  justify-content: flex-end;
}

/* ☰ for the phone menu (added by js/public_nav.js) — wide screens never see it */
.home-nav__toggle {
  display: none;
}

.home-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: var(--accent-deep);
  box-shadow: 0 10px 20px rgba(22, 40, 74, 0.14);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.home-pill-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(22, 40, 74, 0.18);
}

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem);
  overflow: hidden;
}

.home-hero__bg {
  display: none;
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.home-hero__left {
  position: relative;
}

/* a single soft ink-blot, low opacity — the only "texture" shape in the hero */
.home-hero__left::before {
  content: "";
  position: absolute;
  top: -48px;
  left: -64px;
  width: 240px;
  height: 200px;
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 72%);
  opacity: 0.08;
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  color: var(--mint-deep);
  margin: 0 0 0.35rem;
  transform: rotate(-1.4deg);
}

.home-hero__title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: var(--ink);
}

/* the one hand-drawn, "messy" underline in the whole page */
.messy-underline {
  position: relative;
  font-style: italic;
  color: var(--accent-deep);
  white-space: nowrap;
}

.messy-underline::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.04em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2,13 C40,5 75,19 115,10 C150,3 190,17 230,9 C255,5 278,14 298,7' stroke='%2316284a' stroke-width='3.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
}

.home-hero__sub {
  margin: 0 0 1.5rem;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.home-cta-wrap {
  position: relative;
  display: inline-block;
}

.sparkle-star {
  position: absolute;
  pointer-events: none;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--mint-deep);
  animation: sparkle-pop 700ms ease-out forwards;
  z-index: 5;
}

@keyframes sparkle-pop {
  0% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  35% { opacity: 1; transform: scale(1) rotate(12deg); }
  100% { opacity: 0; transform: scale(0.65) translateY(-16px) rotate(28deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle-star { animation: none; display: none; }
}

/* ---------- Hero photo: a single, slightly-tilted polaroid ---------- */
.home-hero__right {
  display: flex;
  justify-content: center;
}

.polaroid {
  background: #fffdf7;
  padding: 14px 14px 52px;
  border-radius: 2px;
  box-shadow: 0 24px 46px rgba(52, 50, 74, 0.18), 0 2px 6px rgba(52, 50, 74, 0.08);
  transform: rotate(-3deg);
  max-width: 360px;
  width: 100%;
}

.polaroid__img {
  display: block;
  width: 100%;
  height: min(320px, 46vw);
  object-fit: cover;
  border-radius: 1px;
  filter: saturate(0.78) sepia(0.08) contrast(0.97);
}

.polaroid__caption {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  text-align: center;
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

/* ---------- How it works: one illustrated scene, 8 stages ---------- */
.home-how {
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.home-how__title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  text-align: left;
}

.home-how__sub {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
  max-width: 50ch;
  text-align: left;
}

/* ---- The animated scene: account -> event -> three real feature
   deep-dives (QR invite design + check-in, Aso-Ebi, contributions).
   All timing is driven by CSS @keyframes sharing one total duration,
   so the stages, the travel, and the captions all stay in sync
   without JS doing any of the choreography — JS (index.js) only adds
   .is-playing once the scene scrolls into view, which starts every
   animation at once via animation-play-state. */
.home-how__scene-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.home-how__scene {
  width: 100%;
  height: auto;
  overflow: visible;
}

.how-scene__path {
  fill: none;
  stroke: rgba(58, 159, 135, 0.45);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  opacity: 0;
}

.how-scene__door {
  opacity: 0;
}

.how-scene__stage {
  opacity: 0;
}

.how-scene__qr-travel {
  transform: translate(0, 0);
}

.how-scene__qr-place {
  opacity: 0;
  transform: translateY(-18px);
}

.how-scene__swatch-selected {
  opacity: 0;
  transform: scale(0.85);
  transform-origin: 120px 150px;
}

.how-scene__contrib-tracked {
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 134px 128px;
}

/* Eight-stage story, one shared 20s cycle, three real feature deep-dives:
   account -> event -> design invite & place the QR -> QR travels to the
   door -> checked in -> pick Aso-Ebi -> Aso-Ebi order placed ->
   contribution given & tracked. The path/door only exist for the
   QR/check-in chapter, so they fade in and out with it instead of
   sitting on screen the whole time. */
.is-playing .how-scene__stage--account {
  animation: how-fade-account 20s ease-in-out infinite;
}

.is-playing .how-scene__stage--event {
  animation: how-fade-event 20s ease-in-out infinite;
}

.is-playing .how-scene__stage--design {
  animation: how-fade-design 20s ease-in-out infinite;
}

.is-playing .how-scene__qr-place {
  animation: how-qr-place 20s ease-in-out infinite;
}

.is-playing .how-scene__stage--qr {
  animation: how-fade-qr 20s ease-in-out infinite;
}

.is-playing .how-scene__qr-travel {
  animation: how-travel-qr 20s ease-in-out infinite;
}

.is-playing .how-scene__stage--done {
  animation: how-fade-done 20s ease-in-out infinite;
}

.is-playing .how-scene__path {
  animation: how-fade-path 20s ease-in-out infinite;
}

.is-playing .how-scene__door {
  animation: how-pulse-door 20s ease-in-out infinite;
}

.is-playing .how-scene__stage--asoebi-pick {
  animation: how-fade-asoebi-pick 20s ease-in-out infinite;
}

.is-playing .how-scene__swatch-selected {
  animation: how-swatch-select 20s ease-in-out infinite;
}

.is-playing .how-scene__stage--asoebi-done {
  animation: how-fade-asoebi-done 20s ease-in-out infinite;
}

.is-playing .how-scene__stage--contrib {
  animation: how-fade-contrib 20s ease-in-out infinite;
}

.is-playing .how-scene__contrib-tracked {
  animation: how-contrib-tracked 20s ease-in-out infinite;
}

@keyframes how-fade-account {
  0%, 100% { opacity: 0; }
  2%, 10% { opacity: 1; }
  12% { opacity: 0; }
}

@keyframes how-fade-event {
  0%, 13%, 22%, 100% { opacity: 0; }
  15%, 20% { opacity: 1; }
}

@keyframes how-fade-design {
  0%, 23%, 34%, 100% { opacity: 0; }
  25%, 32% { opacity: 1; }
}

@keyframes how-qr-place {
  0%, 26%, 34%, 100% { opacity: 0; transform: translateY(-18px); }
  29%, 32% { opacity: 1; transform: translateY(0); }
}

@keyframes how-fade-qr {
  0%, 35%, 54%, 100% { opacity: 0; }
  37%, 52% { opacity: 1; }
}

@keyframes how-travel-qr {
  0%, 38% { transform: translate(0, 0); }
  50%, 54% { transform: translate(390px, -58px); }
  100% { transform: translate(0, 0); }
}

@keyframes how-fade-done {
  0%, 53%, 65%, 100% { opacity: 0; transform: scale(0.8); transform-origin: 524px 92px; }
  56%, 63% { opacity: 1; transform: scale(1); transform-origin: 524px 92px; }
}

@keyframes how-fade-path {
  0%, 23%, 66%, 100% { opacity: 0; }
  26%, 62% { opacity: 1; }
}

@keyframes how-pulse-door {
  0%, 23%, 66%, 100% { opacity: 0; }
  26%, 52% { opacity: 0.9; }
  56%, 63% { opacity: 1; }
}

@keyframes how-fade-asoebi-pick {
  0%, 66%, 78%, 100% { opacity: 0; }
  68%, 76% { opacity: 1; }
}

@keyframes how-swatch-select {
  0%, 68%, 78%, 100% { opacity: 0; transform: scale(0.85); }
  71%, 76% { opacity: 1; transform: scale(1); }
}

@keyframes how-fade-asoebi-done {
  0%, 78%, 87%, 100% { opacity: 0; transform: scale(0.8); }
  80%, 85% { opacity: 1; transform: scale(1); }
}

@keyframes how-fade-contrib {
  0%, 86%, 99%, 100% { opacity: 0; }
  88%, 97% { opacity: 1; }
}

@keyframes how-contrib-tracked {
  0%, 90%, 99%, 100% { opacity: 0; transform: scale(0.6); }
  93%, 97% { opacity: 1; transform: scale(1); }
}

.home-how__caption {
  position: relative;
  height: 1.6rem;
  margin: 0.75rem 0 0;
}

.how-caption {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--mint-deep);
  opacity: 0;
}

.is-playing .how-caption--1 { animation: how-fade-account 20s ease-in-out infinite; }
.is-playing .how-caption--2 { animation: how-fade-event 20s ease-in-out infinite; }
.is-playing .how-caption--3 { animation: how-fade-design 20s ease-in-out infinite; }
.is-playing .how-caption--4 { animation: how-caption-4 20s ease-in-out infinite; }
.is-playing .how-caption--5 { animation: how-fade-done 20s ease-in-out infinite; }
.is-playing .how-caption--6 { animation: how-fade-asoebi-pick 20s ease-in-out infinite; }
.is-playing .how-caption--7 { animation: how-fade-asoebi-done 20s ease-in-out infinite; }
.is-playing .how-caption--8 { animation: how-fade-contrib 20s ease-in-out infinite; }

@keyframes how-caption-4 {
  0%, 35%, 50%, 100% { opacity: 0; }
  38%, 47% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .is-playing .how-scene__stage--account,
  .is-playing .how-scene__stage--event,
  .is-playing .how-scene__stage--design,
  .is-playing .how-scene__qr-place,
  .is-playing .how-scene__stage--qr,
  .is-playing .how-scene__qr-travel,
  .is-playing .how-scene__stage--done,
  .is-playing .how-scene__path,
  .is-playing .how-scene__door,
  .is-playing .how-scene__stage--asoebi-pick,
  .is-playing .how-scene__swatch-selected,
  .is-playing .how-scene__stage--asoebi-done,
  .is-playing .how-scene__stage--contrib,
  .is-playing .how-scene__contrib-tracked,
  .is-playing .how-caption--1,
  .is-playing .how-caption--2,
  .is-playing .how-caption--3,
  .is-playing .how-caption--4,
  .is-playing .how-caption--5,
  .is-playing .how-caption--6,
  .is-playing .how-caption--7,
  .is-playing .how-caption--8 {
    animation: none;
  }

  .how-scene__stage--account,
  .how-caption--1 {
    opacity: 1;
  }

  .how-scene__stage--event,
  .how-scene__stage--design,
  .how-scene__qr-place,
  .how-scene__stage--qr,
  .how-scene__stage--done,
  .how-scene__path,
  .how-scene__door,
  .how-scene__stage--asoebi-pick,
  .how-scene__swatch-selected,
  .how-scene__stage--asoebi-done,
  .how-scene__stage--contrib,
  .how-scene__contrib-tracked,
  .how-caption--2,
  .how-caption--3,
  .how-caption--4,
  .how-caption--5,
  .how-caption--6,
  .how-caption--7,
  .how-caption--8 {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .how-caption {
    font-size: 1.15rem;
  }
}

/* ---------- Services: a quiet list, not a grid of cards ---------- */
.home-services {
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.home-services__title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  text-align: left;
}

.home-services__sub {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
  max-width: 50ch;
  text-align: left;
}

/* each service is its own paper note, washi-taped to the page at a slight
   tilt — the "label/sticker" treatment, not a flat list or a plain card */
.home-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.2rem 1.6rem;
  padding-top: 0.5rem;
}

.home-service-row {
  --note-rotate: -1.4deg;
  position: relative;
  display: block;
  padding: 1.5rem 1.3rem 1.3rem;
  background: #fffdf7;
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(22, 40, 74, 0.1), 0 2px 6px rgba(22, 40, 74, 0.06);
  transform: rotate(var(--note-rotate));
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.home-service-row:nth-child(2n) {
  --note-rotate: 1.3deg;
  background: #f4f7f3;
}

.home-service-row:nth-child(3n) {
  --note-rotate: -0.7deg;
}

.home-service-row:hover {
  transform: rotate(var(--note-rotate)) translateY(-4px);
  box-shadow: 0 16px 30px rgba(22, 40, 74, 0.14), 0 4px 10px rgba(22, 40, 74, 0.08);
}

/* a little strip of washi tape holding each note in place */
.home-service-row::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 56px;
  height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(95, 216, 187, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 4px rgba(22, 40, 74, 0.1);
}

.home-service-row:nth-child(2n)::before {
  background: rgba(45, 69, 115, 0.16);
  transform: translateX(-50%) rotate(2deg);
}

.home-service-row__mark {
  display: none;
}

.home-service-row h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.home-service-row p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ---------- Gentle reveal-on-scroll (visible by default; JS upgrades it) ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

body.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

body.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.js-reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__right {
    order: -1;
  }

  .polaroid {
    max-width: 300px;
    margin: 0 auto 1rem;
  }
}

@media (max-width: 640px) {
  /* Without JavaScript (no ☰): brand + CTA on one row, links under them. */
  .home-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "links links";
    row-gap: 0.75rem;
  }

  .home-nav__brand { grid-area: brand; }
  .home-nav__cta   { grid-area: cta; }
  .home-nav__links { grid-area: links; justify-content: center; gap: 0.9rem; }

  /* With the ☰: one slim row, and the links fold into a panel under it. */
  .home-header--menu {
    padding: 0.35rem 0;
  }

  .home-header--menu .home-nav {
    padding: 0.35rem 0;
  }

  .home-header--menu .home-nav__inner {
    display: flex;
    gap: 0.6rem;
    padding: 0.25rem 0;
  }

  .home-header--menu .home-nav__brand {
    flex: 1;
  }

  .home-header--menu .home-pill-btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.9rem;
  }

  .home-header--menu .home-nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid rgba(39, 44, 77, 0.14);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
  }

  .home-nav__toggle-bar {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .home-header--menu.is-open .home-nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .home-header--menu.is-open .home-nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .home-header--menu.is-open .home-nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .home-header--menu .home-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1rem 0.9rem;
    background: #fff;
    border-bottom: 1px solid rgba(39, 44, 77, 0.1);
    box-shadow: 0 14px 28px rgba(22, 40, 74, 0.12);
  }

  .home-header--menu.is-open .home-nav__links {
    display: flex;
  }

  /* Log in (or Usher Login) first: it's what returning visitors want. */
  .home-header--menu .home-nav__links li:last-child {
    order: -1;
  }

  .home-header--menu .home-nav__links li {
    border-top: 1px solid rgba(39, 44, 77, 0.07);
  }

  .home-header--menu .home-nav__links li:last-child {
    border-top: 0;
  }

  .home-header--menu .home-nav__links a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
  }

  .home-header--menu .home-nav__links a::after {
    display: none;
  }

  .home-hero {
    padding-top: 2rem;
  }

  .home-hero__title {
    font-size: 2.1rem;
  }

  .home-services__grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   Footer
──────────────────────────────────────────── */

footer {
  margin-top: 2rem;
  padding: 1.5rem 1rem;
  text-align: center;
  background: transparent;
  color: var(--ink-soft, #6b7280);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

footer::before {
  content: "";
  display: block;
  width: 90%;
  max-width: 1200px;
  height: 1px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(
    to right,
    transparent,
    rgba(52, 50, 74, 0.12),
    transparent
  );
}

footer p {
  margin: 0;
  font-weight: 500;
}

@media (max-width: 600px) {
  footer {
    font-size: 0.85rem;
    padding: 1.25rem 0.75rem;
  }
}
