:root {
  --ink: #161616;
  --ink-soft: #5A5852;
  --paper: #FAF9F6;
  --paper-raised: #FFFFFF;
  --accent: #2D6A63;
  --accent-soft: #E4ECEA;
  --line: rgba(22, 22, 22, 0.1);
  --radius-card: 22px;
  --shadow-card: 0 20px 40px -18px rgba(22, 22, 22, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 200px 24px 48px; 
  margin: 30px auto;  
  overflow: visible;          
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
/* ---------- Arc of cards (pivot-based fan layout) ---------- */

.nav__logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__logo span {
  color: var(--accent);
}

.hero__arc {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 340px;
  margin: 0 auto 0;
  overflow: visible; /* let the arc bleed past the container edges */
}

.arc-pivot {
  position: absolute;
  left: 50%;
  bottom: -170px;   /* shared vanishing point — same for every card */
  width: 0;
  height: 0;
}

.card {
  position: absolute;
  left: 0;
  top: 0;
  width: 190px;
  height: 240px;
  margin-left: -95px;    /* half of width — keeps every card centered on the pivot */
  margin-top: -240px;    /* full height — anchors each card's bottom edge to the pivot */
  transform-origin: 50% 100%;
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius)));
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(160deg, var(--accent-soft), #EFEDE6);
  transition: transform 0.35s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Evenly spaced angles across a wide 150° sweep, one shared radius
   so the arc reads as a single continuous curve, like the reference */
.card--1 { --angle: -75deg; }
.card--2 { --angle: -54deg; }
.card--3 { --angle: -33deg; }
.card--4 { --angle: -11deg; }
.card--5 { --angle: 11deg;  }
.card--6 { --angle: 33deg;  }
.card--7 { --angle: 54deg;  }
.card--8 { --angle: 75deg;  }

.card { --radius: 430px; }

.card:hover {
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius) - 8px)) scale(1.04);
  z-index: 10;
}

/* Detection bounding-box overlay — the signature CV touch */
.card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  display: none;
}

.card::after {
  content: attr(data-label) '  ' attr(data-conf);
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: var(--accent);
  color: var(--paper-raised);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  border-radius: 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
  display: none;
}

.card:hover::before { opacity: 1; transform: scale(1); }
.card:hover::after  { opacity: 1; transform: translateY(0); }

/* ---------- Text content ---------- */

.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 720px;
  margin-top: -150px;
  margin-bottom: -75px;
}

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper-raised);
}
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Feature row ---------- */

.hero__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.hero__features h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 6px;
}

.hero__features p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.navbar__logo span {
  color: var(--accent);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.navbar__link-ghost {
  color: var(--ink) !important;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ── Navbar base ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  gap: 32px;
}

/* ── Logo ────────────────────────────────────────────────────────── */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo img {
  display: block;
}

.navbar__brand {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

/* ── Nav links ───────────────────────────────────────────────────── */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.navbar__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}

.navbar__link:hover {
  color: var(--text-primary);
  background: var(--surface-hover, rgba(0,0,0,0.04));
}

.navbar__link.is-active {
  color: var(--text-primary);
  background: var(--surface-active, rgba(0,0,0,0.06));
}

/* ── Actions ─────────────────────────────────────────────────────── */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Hamburger toggle ────────────────────────────────────────────── */
.navbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar__toggle:hover {
  background: var(--surface-hover, rgba(0,0,0,0.04));
  color: var(--text-primary);
}

.navbar__toggle .icon-close { display: none; }
.navbar__toggle[aria-expanded="true"] .icon-menu  { display: none; }
.navbar__toggle[aria-expanded="true"] .icon-close { display: block; }


@media (max-width: 860px) {
  .navbar__inner {
    padding: 0 20px;
    gap: 12px;
  }

  .navbar__toggle {
    display: flex;
  }

  /* Hide desktop CTA */
  .navbar__actions .btn--primary {
    display: none;
  }

  .navbar__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .navbar__links.is-open {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
    padding: 6px 20px 14px;
  }

  .navbar__link {
    width: 100%;
    padding: 10px 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    border-bottom: none;
    letter-spacing: 0;
  }

  .navbar__link:hover {
    background: transparent;
    color: var(--text-primary);
  }

  /* CTA inside drawer — fix: target .navbar__links directly */
  .navbar__links .btn--primary {
    display: inline-flex !important;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    font-size: 14px;
  }
}

/* Hidden on desktop */
.navbar__mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  .navbar__mobile-cta {
    display: inline-flex;
    justify-content: center;
    width: 50%;
    margin-top: 10px;
    font-size: 14px;
    color: white;
  }
  .navbar__mobile-cta.btn--primary {
    color: var(--paper-raised);
  }
}

/* ---------- Motion & accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .card, .card::before, .card::after, .btn { transition: none; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Mobile: horizontal scroll-snap strip ---------- */

@media (max-width: 860px) {
  .hero { padding-top: 56px; }

  .hero__arc {
    display: block;
    height: auto;
    max-width: 100%;
    margin: 0 0 32px;
    padding: 8px 24px 24px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
            mask-image: linear-gradient(to right, black 92%, transparent 100%);
  }
  .hero__arc::-webkit-scrollbar { display: none; }
  .hero__features { grid-template-columns: 1fr; gap: 22px; text-align: center; }

  .hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 720px;
  margin-top: 0px;

  }
  .hero__arc {
     margin-top: -50px;
  }

  .arc-pivot {
    position: static;
    display: flex;
    align-items: stretch;  
    gap: 14px;
    width: max-content;
    height: auto;        
  }

  .card,
  .card--1, .card--2, .card--3, .card--4,
  .card--5, .card--6, .card--7, .card--8 {
    position: relative;
    flex: 0 0 auto;
    width: 150px;
    height: 190px;
    margin: 0;
    scroll-snap-align: center;
    transform: none;
  }

  .card::before {
    display: none;
  }

  .card::after {
    opacity: 1;
    transform: none;
    display: none;
  }

  .card:hover { transform: none; }
}

@media (max-width: 860px) {

  /* Duplicate cards in HTML for seamless loop, or use this for a one-pass drift */
  @keyframes marquee-ltr {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }  /* -50% if you duplicate cards in HTML */
  }

  .hero__arc {
    overflow: hidden;          /* hide scrollbar, clip the moving strip */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }

  .arc-pivot {
    animation: marquee-ltr 18s linear infinite;
    width: max-content;
  }

  /* Pause on hover/touch for accessibility */
  .hero__arc:hover .arc-pivot,
  .hero__arc:focus-within .arc-pivot {
    animation-play-state: paused;
  }
}

/* ---------- Steps section ---------- */

.steps {
  padding: 80px 24px 96px;
  max-width: 100%;
  margin: 0 auto;
  
}

.steps__inner {
  width: 100%;
 
}

.steps__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: -0.01em;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .steps__grid {
    grid-template-columns: 1fr;
  }
  .step-card {
    min-height: 400px;
  }

  .step-card__img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.steps {
    margin-top: -150px;
}
}

/* ---------- Step cards (unified image layout) ---------- */

.step-card {
  position: relative;
  background: var(--paper-raised);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px -16px rgba(22, 22, 22, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 470px;
}

.step-card__media {
  position: relative;
  width: 100%;
  height: 260px;               /* same fixed height for all 3 → guarantees alignment */
  overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), #EFEDE6); /* shows briefly while image loads */
  flex-shrink: 0;
}

.step-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-card__scan-box {
  position: absolute;
  top: 14%;
  left: 30%;
  width: 42%;
  height: 55%;
  border: 1.5px solid var(--paper-raised);
  border-radius: 10px;
  z-index: 1;
  pointer-events: none;
}

.step-card__scan-box::after {
  content: '';
  position: absolute;
  top: 30%;
  right: -8px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--paper-raised);
  border-radius: 4px;
  background: rgba(45, 106, 99, 0.5);
}

.step-card__text {
  padding: 24px 26px 28px;
  flex: 1;
}

.step-card__text h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
}

.step-card__text p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Feature spotlight ---------- */

.spotlight {
  padding: 40px 24px 100px;
  max-width: 1300px;
  margin: 0 auto;
  overflow: visible;
}

.spotlight__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* --- Media side --- */

.spotlight__media {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.spotlight__media.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spotlight__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 60px -24px rgba(22, 22, 22, 0.3);
  display: block;
}

.spotlight__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 1;
  opacity: 0.6;
}

.spotlight__blob--1 {
  width: 260px;
  height: 260px;
  background: var(--accent);
  top: -40px;
  left: -50px;
  opacity: 0.25;
}

.spotlight__blob--2 {
  width: 200px;
  height: 200px;
  background: #E8B4A0;
  bottom: -30px;
  right: -30px;
  opacity: 0.2;
}

.spotlight__chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--paper-raised);
  border-radius: 999px;
  box-shadow: 0 14px 28px -14px rgba(22, 22, 22, 0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.spotlight__media.is-visible .spotlight__chip--1 {
  opacity: 1;
  transition-delay: 0.3s;
}
.spotlight__media.is-visible .spotlight__chip--2 {
  opacity: 1;
  transition-delay: 0.5s;
}

.spotlight__chip--1 {
  top: 14%;
  right: -8%;
  transform: translateY(10px);
}
.spotlight__media.is-visible .spotlight__chip--1 { transform: translateY(0); }

.spotlight__chip--2 {
  bottom: 10%;
  left: -6%;
  transform: translateY(-10px);
}
.spotlight__media.is-visible .spotlight__chip--2 { transform: translateY(0); }

.spotlight__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* --- Content side --- */

.spotlight__content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.spotlight__content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spotlight__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 16px 0 18px;
}

.spotlight__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 440px;
}

.spotlight__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink);
}

.spotlight__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}


/* ---------- Spotlight: responsive ---------- */

@media (max-width: 960px) {
  .spotlight__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .spotlight__chip { display: none; }  /* avoid cramped floating chips on narrow layouts */
}

@media (prefers-reduced-motion: reduce) {
  .spotlight__media,
  .spotlight__content,
  .spotlight__chip,
  .spotlight__dot {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Closing CTA (editorial grid layout) ---------- */

.closing {
  position: relative;
  padding: 110px 24px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.closing__inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.closing__left {
  background: var(--paper);
  padding-right: 20px;
}

.closing__title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 18px 0 18px;
}

.closing__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 0 32px;
}

.closing__actions {
  display: flex;
  gap: 14px;
}

.closing__right {
  background: var(--paper);
  padding-left: 20px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.closing__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.closing__stat:first-child { padding-top: 0; }
.closing__stat:last-child { border-bottom: none; padding-bottom: 0; }

.closing__stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

.closing__stat-label {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.4;
}

/* ---------- Closing: responsive ---------- */

@media (max-width: 860px) {
  .closing { padding: 72px 24px; background-size: 18px 18px; }
  .closing__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .closing__left { padding-right: 0; }
  .closing__right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 32px;
  }
  .closing__actions { flex-direction: column; align-items: stretch; }
}

.closing .spotlight__media {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  /* Stack the columns top-to-bottom */
  .closing__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .closing__left { 
    padding-right: 0; 
  }

  /* Stack buttons and stretch them container-wide */
  .closing__actions { 
    display: flex;
    flex-direction: column; 
    align-items: stretch; 
    width: 100%;
  }


  .closing__actions .btn {
    width: 100%;
    justify-content: center;
  }
  
}

/* ---------- Footer ---------- */

.footer {
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
  padding: 56px 24px 28px;
}

.footer__inner {
  max-width: 1300px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__brand {
  padding-right: 24px;
}

.footer__logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.footer__logo span {
  color: var(--accent);
}

.footer__tagline {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 220px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h4 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.footer__col a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
  width: fit-content;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__col a sup {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  background: var(--paper-raised);
  padding: 2px 5px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}

.footer__col--highlight a:first-child {
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}

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

.footer__badges {
  display: flex;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

.badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Footer: responsive ---------- */

@media (max-width: 960px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
  .footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


.navbar__toggle {
  color: var(--ink);
}

.navbar__toggle:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.navbar__toggle svg {
  color: var(--ink);
  stroke: currentColor;
}

@media (max-width: 860px) {
  .navbar__toggle {
    display: flex;
  }
}


.navbar__actions {
  margin-left: auto;
}

/* Mobile: greeting/logout moves into the drawer, hidden beside the hamburger */
.navbar__mobile-user {
  display: none;
}

.navbar__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__greeting {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 860px) {
  .navbar__actions .navbar__user {
    display: none;
  }


  .navbar__mobile-user {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
  }

  .navbar__mobile-user .navbar__greeting {
    max-width: 100%;
    white-space: normal;
    font-size: 14px;
  }

  .navbar__mobile-user .btn--primary {
    width: 50%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .navbar__user .btn--sm,
  .navbar__mobile-user .btn--sm {
    padding: 7px 12px;
    font-size: 12px;
  }

  .navbar__greeting {
    font-size: 13px;
    max-width: 45%;
  }
}

/* ---------- Flash / alert messages ---------- */

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert-error {
  background: #FDECEC;
  color: #B3261E;
  border-color: #F5C6C4;
}

.alert-success {
  background: #E7F5EE;
  color: #1E7A4C;
  border-color: #BFE3D0;
}


.alert-warning {
  background: #FFF6E5;
  color: #8A6116;
  border-color: #F5DFA6;
}

.alert-info {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--line);
}

/* Icon slot, if you want to prefix messages with a symbol via ::before */
.alert::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}