/* =========================================================================
   Nemek Finance — nemek.css
   Design direction: "prospectus with margin notes".
   A narrow monospaced label rail sits beside a wide reading column, so the
   page reads like a well-set document rather than a stack of marketing bands.
   Palette is the client's, disciplined into roles: navy carries authority,
   teal carries action, gold appears only as a hairline or a mark.
   ========================================================================= */

/* ------------------------------------------------------- 0. typefaces
   Self-hosted, subset to Latin + currency. No third-party font requests:
   nothing about a visitor's browsing leaves nemekfinance.co.uk.
   Outfit, Instrument Sans and IBM Plex Mono are all SIL OFL 1.1;
   licences ship in /assets/fonts/. */
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------- 1. tokens */
:root {
  /* colour — the navy is sampled from the supplied NEMEK FINANCE logo (#001b4a),
     so the site and the wordmark are the same blue. The ink is a deeper cast of
     it, used for the darkest grounds so the navy still reads as a step up. */
  --ink: #000e2a;
  --navy: #001b4a;
  --blue: #37518b;
  --teal: #1e9fb0;
  --teal-deep: #14727e;
  --gold: #ae7a1f;
  --paper: #f7f8fa;
  --paper-warm: #fdfdfc;
  --tint: #e9eef4;
  --tint-deep: #d7e0ea;
  --line: rgb(0 14 42 / 0.13);
  --line-strong: rgb(0 14 42 / 0.26);
  --on-ink-dim: rgb(233 238 244 / 0.72);

  /* type */
  --display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.36vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.26rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.75rem + 2.1vw, 3.55rem);

  /* space */
  --shell: 74rem;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --band-y: clamp(3.25rem, 7vw, 6rem);
  --rail-w: 12.5rem;
  --radius: 3px;
}

/* --------------------------------------------------------------- 2. base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 0.8rem 1.2rem; font-family: var(--mono); font-size: var(--step--1);
}
.skip:focus { left: 0; }

.h1 { font-size: var(--step-4); letter-spacing: -0.028em; }
.h2 { font-size: var(--step-3); letter-spacing: -0.022em; margin-bottom: 0.75rem; }
.h3 { font-size: var(--step-1); }

.eyebrow, .rail__label, .card__kicker, .callout__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: color-mix(in srgb, var(--ink) 84%, transparent);
  max-width: 46ch;
  margin-bottom: 1.4rem;
}

.prose { max-width: 62ch; }
.prose h3 { font-size: var(--step-1); margin: 2rem 0 0.6rem; }

/* --------------------------------------------------- 3. the plain-English
   term — the site's signature element. Jargon carries its own translation. */
.term { position: relative; display: inline-block; }

.term__trigger {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: help;
  border-bottom: 1px dotted color-mix(in srgb, var(--blue) 55%, transparent);
  white-space: nowrap;
}
.term__trigger:hover { border-bottom-color: var(--teal-deep); }

.term__plain {
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + 0.55rem);
  width: min(22rem, 78vw);
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1rem 0.95rem;
  font-size: var(--step--1);
  font-family: var(--body);
  font-weight: 400; /* do not inherit the bold of a table row heading */
  line-height: 1.5;
  white-space: normal;
  border-left: 2px solid var(--gold);
  box-shadow: 0 18px 40px -22px rgb(0 14 42 / 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  /* visibility is a discrete property: flip it immediately on the way in,
     and hold it until the fade has finished on the way out. */
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
.term__plain b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--teal) 85%, #fff);
  margin-bottom: 0.35rem;
}
.term:hover .term__plain,
.term__trigger:focus + .term__plain,
.term__trigger:focus-visible + .term__plain,
.term__trigger[aria-expanded='true'] + .term__plain {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) { .term__plain { transition: none; } }

/* On a phone there is no room for a popover beside the word, so the
   explanation docks to the bottom of the screen where it is easy to read
   and easy to dismiss. */
@media (max-width: 48rem) {
  .term__plain {
    position: fixed;
    inset: auto 1rem 1rem;
    width: auto;
    transform: translateY(6px);
  }
  .term:hover .term__plain,
  .term__trigger:focus + .term__plain,
  .term__trigger[aria-expanded='true'] + .term__plain { transform: translateY(0); }
}

/* ------------------------------------------------------------ 4. buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; }

.btn--primary { background: var(--teal); color: #04121b; }
.btn--primary:hover { background: var(--ink); color: #fff; }

.btn--whatsapp { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--whatsapp::before {
  content: '';
  width: 0.95em; height: 0.95em; flex: none;
  background: currentColor;
  -webkit-mask: var(--wa) center / contain no-repeat;
  mask: var(--wa) center / contain no-repeat;
  --wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2Zm5.8 14.13c-.25.69-1.46 1.32-2 1.4-.51.08-1.16.11-1.87-.12-.43-.14-.99-.32-1.7-.63-2.99-1.29-4.94-4.3-5.09-4.5-.15-.2-1.22-1.62-1.22-3.09s.77-2.19 1.04-2.49c.27-.3.59-.37.79-.37h.57c.18 0 .43-.07.67.51.25.6.85 2.07.92 2.22.08.15.13.32.02.52-.1.2-.15.32-.3.5l-.45.52c-.15.15-.3.31-.13.61.17.3.76 1.25 1.63 2.03 1.12 1 2.06 1.31 2.36 1.46.3.15.47.13.64-.08.17-.2.74-.86.94-1.16.2-.3.4-.25.67-.15.27.1 1.72.81 2.01.96.3.15.5.22.57.35.07.13.07.74-.18 1.43Z'/%3E%3C/svg%3E");
}
.btn--whatsapp:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* --------------------------------------------------------- 5. the header */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.masthead__brand { margin-right: auto; text-decoration: none; color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo__mark { width: 2rem; height: 2rem; color: var(--navy); flex: none; }
.logo__type { font-family: var(--display); font-size: 1.32rem; font-weight: 400; letter-spacing: -0.03em; white-space: nowrap; }
.logo__type b { font-weight: 700; }
.logo--dark .logo__mark { color: #fff; }
/* a supplied logo file, used in place of the built-in mark */
.logo--supplied img { height: 2.5rem; width: auto; max-width: 15rem; object-fit: contain; }
.footer .logo--supplied img { height: 2.75rem; }

.nav__list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink); text-decoration: none; border-radius: var(--radius);
  white-space: nowrap;
}
.nav__link:hover { background: var(--tint); }
.nav__link.is-current { color: var(--teal-deep); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav__chev { width: 0.42em; height: 0.42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); opacity: 0.55; }

.subnav {
  position: absolute; top: 100%; left: 0; min-width: 17rem;
  background: var(--paper-warm); border: 1px solid var(--line);
  box-shadow: 0 24px 46px -28px rgb(0 14 42 / 0.55);
  list-style: none; margin: 0; padding: 0.4rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: 0.55rem 0.7rem; font-size: 0.92rem; color: var(--ink); text-decoration: none; }
.subnav a:hover { background: var(--tint); color: var(--teal-deep); }

.masthead__actions { display: flex; align-items: center; gap: 0.9rem; }
.masthead__phone { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.masthead__phone:hover { color: var(--teal-deep); }
@media (max-width: 80rem) { .masthead__phone { display: none; } }

.burger { display: none; align-items: center; gap: 0.5rem; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.5rem 0.8rem; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); cursor: pointer; }
.burger__bars { position: relative; width: 1rem; height: 2px; background: currentColor; }
.burger__bars::before, .burger__bars::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.burger__bars::before { top: -5px; } .burger__bars::after { top: 5px; }
.burger[aria-expanded='true'] .burger__bars { background: transparent; }
.burger[aria-expanded='true'] .burger__bars::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__bars::after { top: 0; transform: rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); padding: 1rem var(--gutter) 1.6rem; background: var(--paper-warm); max-height: 75vh; overflow-y: auto; }
.mobile-nav__list, .mobile-nav__list ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list > li > a { display: block; padding: 0.7rem 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav__list ul { padding: 0.3rem 0 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.mobile-nav__list ul a { display: block; padding: 0.4rem 0; color: var(--blue); text-decoration: none; font-size: 0.95rem; }
.mobile-nav__actions { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.mobile-nav__actions .btn { justify-content: center; }

@media (max-width: 68rem) {
  .nav, .masthead__actions { display: none; }
  .burger { display: inline-flex; }
  .masthead__inner { min-height: 4.25rem; }
}

/* -------------------------------------------------------- 6. breadcrumbs */
.crumbs { border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0.7rem 0; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--line-strong); }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { color: var(--teal-deep); text-decoration: underline; }
.crumbs [aria-current] { color: color-mix(in srgb, var(--ink) 65%, transparent); }

/* -------------------------------------------------------------- 7. hero */
.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* a single gold hairline, set to the rail measure — the only ornament */
  content: '';
  position: absolute; inset-block: 0; left: max(var(--gutter), calc((100% - var(--shell)) / 2));
  width: 1px; background: linear-gradient(var(--gold), transparent 70%); opacity: 0.7;
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero .h1 { margin-bottom: 1.1rem; max-width: 17ch; }
.hero .eyebrow { color: var(--teal); display: block; margin-bottom: 1.1rem; }
.hero__standfirst { font-size: var(--step-1); line-height: 1.5; color: var(--on-ink-dim); max-width: 44ch; }
.hero__minor { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.78rem; color: rgb(233 238 244 / 0.55); }
.hero__media img { width: 100%; border: 1px solid rgb(255 255 255 / 0.14); }
/* Photographs get the same frame, plus a fixed 4:3 crop so a slightly
   different aspect ratio cannot shift the layout. */
.hero__media--photo img, .plate--photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.hero__media--photo { position: relative; }
.hero__media--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgb(0 14 42 / 0.28), rgb(0 14 42 / 0) 55%);
  pointer-events: none;
}
.hero .btn--whatsapp { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.hero .btn--whatsapp:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* -------------------------------------------------------- the carousel
   A native scroll-snap track: swipeable on touch, scrollable with a trackpad,
   with arrows, dots and autoplay layered on top rather than replacing it. */
.carousel { position: relative; }
.carousel__track {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.carousel__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.carousel__label {
  position: absolute; left: 0; bottom: 0;
  padding: 0.5rem 0.9rem;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-top: 2px solid var(--gold);
}
a.carousel__label:hover { background: var(--teal-deep); color: #fff; }

.carousel__controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; }
.carousel__dots { display: flex; gap: 0.4rem; margin-right: auto; flex-wrap: wrap; }
.carousel__dot {
  width: 1.7rem; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: var(--line-strong);
  transition: background-color 0.2s ease;
}
.carousel__dot:hover { background: var(--blue); }
.carousel__dot[aria-current='true'] { background: var(--teal-deep); }

.carousel__arrow, .carousel__play {
  width: 1.9rem; height: 1.9rem; padding: 0; flex: none; cursor: pointer;
  background: none; border: 1px solid var(--line-strong); border-radius: 50%;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.carousel__arrow::before {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 0.42rem; height: 0.42rem;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.carousel__arrow--prev::before { transform: rotate(-135deg) translate(-1px, -1px); }
.carousel__arrow--next::before { transform: rotate(45deg) translate(-1px, -1px); }
.carousel__play::before {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 7px; height: 8px;
  border-left: 2px solid currentColor; border-right: 2px solid currentColor;
}
.carousel__play[aria-pressed='true']::before {
  width: 0; height: 0;
  border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0;
  transform: translateX(1px);
}
.carousel__arrow:hover, .carousel__play:hover { border-color: var(--ink); background: var(--tint); }

/* on the dark hero the controls invert */
.carousel--hero .carousel__slide img { border: 1px solid rgb(255 255 255 / 0.14); }
.carousel--hero .carousel__dot { background: rgb(255 255 255 / 0.28); }
.carousel--hero .carousel__dot:hover { background: rgb(255 255 255 / 0.6); }
.carousel--hero .carousel__dot[aria-current='true'] { background: var(--teal); }
.carousel--hero .carousel__arrow, .carousel--hero .carousel__play { color: #fff; border-color: rgb(255 255 255 / 0.3); }
.carousel--hero .carousel__arrow:hover, .carousel--hero .carousel__play:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); }

/* inline on a page, it sits in the same frame as a single photograph */
.carousel--inline { margin-top: 1.8rem; }
.carousel--inline .carousel__slide img { border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

.hero--slim { padding-block: clamp(2.5rem, 5vw, 4rem); }
.hero--slim .hero__grid { grid-template-columns: 1fr; }
.hero--slim .hero__text { max-width: 54rem; }

/* page-load settle: one orchestrated moment, not scattered effects */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
  .hero__text > :nth-child(1) { animation-delay: 0.02s; }
  .hero__text > :nth-child(2) { animation-delay: 0.09s; }
  .hero__text > :nth-child(3) { animation-delay: 0.16s; }
  .hero__text > :nth-child(4) { animation-delay: 0.23s; }
  .hero__text > :nth-child(5) { animation-delay: 0.3s; }
  .hero__media { animation: rise 0.8s 0.12s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* -------------------------------------------------------------- 8. bands */
.band { padding-block: var(--band-y); border-bottom: 1px solid var(--line); }
.band:last-of-type { border-bottom: 0; }
.band--tint { background: var(--tint); }
.band--warm { background: var(--paper-warm); }

.band--ink, .band--cta { background: var(--ink); color: #fff; border-bottom: 0; }
.band--ink .rail__label, .band--cta .rail__label { color: var(--teal); }
.band--ink a, .band--cta a { color: #fff; }
.band--ink .lede, .band--cta .lede { color: var(--on-ink-dim); }
.band--ink .card, .band--cta .card { background: rgb(255 255 255 / 0.05); border-color: rgb(255 255 255 / 0.16); }

.rail-grid { display: grid; gap: 0.9rem clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
/* Grid items default to min-width:auto, which lets a wide table stretch the
   whole page instead of scrolling inside its own container. */
.rail, .rail-grid__body { min-width: 0; }
@media (min-width: 60rem) {
  .rail-grid { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .rail { position: sticky; top: 6.5rem; align-self: start; }
  .rail::after { content: ''; display: block; width: 2rem; height: 1px; background: var(--gold); margin-top: 0.85rem; }
}
.rail__label { display: block; }

/* -------------------------------------------------------------- 9. cards */
.cards { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 46rem) { .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper-warm); padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card__kicker { display: block; }
.card__title { font-size: var(--step-1); }
.card__text { color: color-mix(in srgb, var(--ink) 80%, transparent); font-size: 0.98rem; margin: 0; }
.band--ink .card__text, .band--cta .card__text { color: var(--on-ink-dim); }
.card__link { margin-top: auto; padding-top: 0.7rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.card__link::after { content: ' →'; }
.card__link:hover { text-decoration: underline; }

/* -------------------------------------------------------------- 10. steps
   Numbering appears here only: the client journey is a genuine sequence. */
.steps { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.band--ink .step, .band--cta .step { border-color: rgb(255 255 255 / 0.15); }
.step__num { font-family: var(--mono); font-size: 0.95rem; color: var(--gold); padding-top: 0.2rem; }
.step__title { font-size: var(--step-1); margin-bottom: 0.3rem; }
.step__text { color: color-mix(in srgb, var(--ink) 78%, transparent); margin: 0; }
.band--ink .step__text, .band--cta .step__text { color: var(--on-ink-dim); }

/* ------------------------------------------------------------- 11. values */
.values { display: grid; gap: 1px; margin: 1.8rem 0 0; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 46rem) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .values { grid-template-columns: repeat(3, 1fr); } }
.values__item { background: var(--paper-warm); padding: 1.25rem 1.3rem; }
.values dt { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.2rem; }
.values dt::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--gold); margin-right: 0.55rem; vertical-align: 0.1em; }
.values dd { margin: 0; font-size: 0.95rem; color: color-mix(in srgb, var(--ink) 78%, transparent); }

/* ----------------------------------------------------------- 11b. the team */
.team { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 46rem) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 76rem) { .team { grid-template-columns: repeat(3, 1fr); } }
.team__member { background: var(--paper-warm); padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.team__photo { width: 100%; max-width: 8.5rem; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.team__photo--initials {
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.03em;
  border-color: transparent;
}
.team__name { font-size: var(--step-1); }
.team__role { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 0.25rem 0 0.7rem; }
.team__bio { font-size: 0.97rem; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.team__contact { margin-top: 0.7rem; font-size: 0.9rem; }
.team__text { display: flex; flex-direction: column; }

/* ---------------------------------------------------------- 12. checklist */
.checklist { margin-top: 1.6rem; border-left: 2px solid var(--teal); padding-left: 1.2rem; }
.checklist__title { font-size: var(--step-1); margin-bottom: 0.6rem; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 0.75rem; height: 0.4rem; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------- 13. table */
.table-wrap { margin-top: 1.6rem; overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--paper-warm); }
.table caption { text-align: left; font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.table tbody th { font-weight: 600; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ 14. callout */
.callout { margin: 1.8rem 0 0; padding: 1.15rem 1.3rem; background: var(--paper-warm); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.callout--flag { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--paper-warm)); }
.callout--warn { border-left-color: var(--gold); }
.callout__label { display: block; margin-bottom: 0.3rem; }
.callout p { margin: 0; font-size: 0.97rem; }

/* -------------------------------------------------------------- 15. quote */
.quote { margin: 1.8rem 0 0; padding-left: 1.4rem; border-left: 2px solid var(--gold); }
.quote blockquote { margin: 0; font-family: var(--display); font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.02em; }
.quote figcaption { margin-top: 0.8rem; font-family: var(--mono); font-size: 0.78rem; color: var(--blue); }
.band--ink .quote figcaption, .band--cta .quote figcaption { color: var(--teal); }

/* --------------------------------------------------------------- 16. FAQs */
.faqs { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 1.3rem; color: var(--teal-deep); flex: none; line-height: 1; }
.faq[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--teal-deep); }
.faq__a { padding-bottom: 1.2rem; max-width: 62ch; color: color-mix(in srgb, var(--ink) 82%, transparent); }

/* ----------------------------------------------------------- 17. linkgrid */
.linkgrid { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 46rem) { .linkgrid { grid-template-columns: repeat(2, 1fr); } }
.linkgrid a { display: block; padding: 1rem 1.15rem; background: var(--paper-warm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
.linkgrid a:hover { border-color: var(--teal); transform: translateY(-2px); }
.linkgrid__label { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.15rem; }
.linkgrid__label::after { content: ' →'; color: var(--teal-deep); }
.linkgrid__note { display: block; font-size: 0.9rem; color: color-mix(in srgb, var(--ink) 72%, transparent); }

/* -------------------------------------------------------------- 18. plate */
.plate { margin: 1.8rem 0 0; }
.plate img { width: 100%; border: 1px solid var(--line); }
.plate--wide { margin-inline: 0; }
.plate figcaption { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.74rem; color: var(--blue); letter-spacing: 0.03em; }

/* --------------------------------------------------------------- 19. CTA */
.band--cta { position: relative; }
.h2--cta { max-width: 20ch; }
.cta__minor { margin-top: 1.3rem; font-size: 0.95rem; color: var(--on-ink-dim); }
.cta__minor a { color: #fff; }
.cta__note { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.76rem; color: rgb(233 238 244 / 0.5); }
.band--cta .btn--whatsapp { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.band--cta .btn--whatsapp:hover { background: #fff; color: var(--ink); }
.band--cta .btn--ghost { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.band--cta .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* -------------------------------------------------------------- 20. forms */
.form { margin-top: 1.8rem; max-width: 42rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  max-width: 100%; /* a long option label must not widen the page */
  padding: 0.75rem 0.85rem; background: var(--paper-warm);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field textarea { min-height: 8rem; resize: vertical; }
.field__hint { font-size: 0.85rem; color: color-mix(in srgb, var(--ink) 65%, transparent); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; }
.field--check label { font-family: var(--body); font-size: 0.9rem; text-transform: none; letter-spacing: 0; color: inherit; }
.form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
button.btn { cursor: pointer; font-family: var(--display); }

/* ------------------------------------------------------------- 21. footer */
.footer { background: var(--navy); color: var(--on-ink-dim); padding-block: clamp(2.75rem, 6vw, 4.5rem) 2rem; font-size: 0.95rem; }
.footer__top { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
@media (min-width: 52rem) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 76rem) { .footer__top { grid-template-columns: 1.5fr 1fr 1.25fr 1fr 1.15fr; gap: 2rem; } }
.footer__brand .logo__type { color: #fff; }
.footer__tagline { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin: 1rem 0 0.7rem; }
.footer__blurb { max-width: 32ch; }
.footer__title { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { color: var(--on-ink-dim); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__cta .btn { color: #04121b; }
.footer__cta .btn--whatsapp { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.footer__cta .btn--whatsapp:hover { background: #fff; color: var(--navy); }
.footer__address { font-style: normal; margin-top: 1rem; line-height: 1.6; }
.footer__legal { padding-top: 1.6rem; font-size: 0.82rem; line-height: 1.6; color: rgb(233 238 244 / 0.6); }
.footer__legal p { max-width: 100ch; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 1.1rem; padding-top: 0.6rem; }

/* --------------------------------------------------------- 22. utilities */
.stack-lg > * + * { margin-top: 2.2rem; }
.measure { max-width: 62ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media print {
  .topbar, .masthead, .band--cta, .footer__cta, .burger { display: none; }
  body { background: #fff; }
}
