/* =========================================================================
   perroscancun.com — demo
   Visual language: "field dossier" — rescue red, charcoal, sand paper,
   reflective uniform tape, topographic search maps, registry numbers.
   ========================================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  /* semantic roles */
  --night: #121010;
  --night-2: #1a1716;
  --night-3: #26211f;
  --paper: #f4f0e8;
  --paper-2: #ebe5da;
  --surface: #fffdf9;
  --ink: #171412;
  --ink-2: #3b3532;
  --muted: #6a6159;
  --muted-light: #aaa29a;
  --line: #ddd5c8;
  --line-dark: rgba(255, 255, 255, 0.13);
  --red: #e01f22;
  --red-brand: #eb2124;
  --red-ink: #b8191b;
  --red-light: #ff5a55;
  --ok: #1d7a4c;
  --ok-light: #62d79e;

  --font: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-display: clamp(2.9rem, 1.55rem + 5.4vw, 6.1rem);
  --fs-h2: clamp(2.2rem, 1.45rem + 3.1vw, 4.1rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
  --fs-lead: clamp(1.08rem, 0.98rem + 0.45vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.75rem;

  --radius: 6px;
  --gutter: clamp(1rem, 0.6rem + 2.2vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 4.5vw, 7rem);
  --header-h: 72px;

  --shadow-1: 0 1px 2px rgba(23, 20, 18, 0.06), 0 6px 18px rgba(23, 20, 18, 0.06);
  --shadow-2: 0 2px 6px rgba(23, 20, 18, 0.08), 0 22px 48px rgba(23, 20, 18, 0.16);
  --shadow-dark: 0 30px 80px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 300ms;

  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--red);
  color: #fff;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--night :focus-visible,
.section--night2 :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.drawer :focus-visible,
.verify-hero :focus-visible {
  outline-color: #fff;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* ------------------------------------------------------------- typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
}
.eyebrow--light {
  color: var(--red-light);
}
.eyebrow:has(.eyebrow__mark)::before {
  display: none;
}
.eyebrow__mark {
  width: 9px;
  height: 9px;
  background: var(--red-brand);
  box-shadow: 0 0 0 4px rgba(235, 33, 36, 0.22);
}

.section-title {
  font-stretch: 72%;
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.section-title--sm {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  margin-bottom: 1.75rem;
}
.section-intro {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 92%;
  letter-spacing: 0.005em;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease),
    border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon {
  width: 1.2em;
  height: 1.2em;
}
.btn:hover {
  transform: scale(1.04);
}
.btn:active {
  transform: scale(0.96);
  transition-duration: 50ms;
}
.btn--red {
  --btn-bg: var(--red);
  box-shadow: 0 8px 22px -10px rgba(224, 31, 34, 0.75);
}
.btn--red:hover {
  --btn-bg: #c81a1d;
  box-shadow: 0 14px 30px -12px rgba(224, 31, 34, 0.9);
}
.btn--dark {
  --btn-bg: var(--ink);
}
.btn--dark:hover {
  --btn-bg: var(--red);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.45);
}
.btn--outline-light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}
.btn--sm {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
}
.btn--lg {
  min-height: 54px;
  padding: 0.85rem 1.5rem;
  font-size: 1.0625rem;
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  font-stretch: 92%;
  color: var(--red-ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px;
  transition: background-size var(--t) var(--ease), color var(--t) var(--ease);
}
.link-arrow .icon {
  transition: transform var(--t) var(--ease);
}
.link-arrow:hover {
  background-size: 100% 2px;
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}
.link-arrow--light {
  color: #fff;
}

/* ------------------------------------------------------- reflective tape */
.tape {
  height: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.18)),
    repeating-conic-gradient(#dfe2e5 0 25%, #8c9298 0 50%) 0 0 / 8px 8px;
  border-block: 2px solid #2b2624;
  position: relative;
  z-index: 2;
}

/* single-column grids on phones: never let wide content (tables, long words) push the page */
.hero__grid,
.trainer,
.credentials__grid,
.history,
.faq,
.contact__grid,
.verify,
.titles,
.section-head--split {
  grid-template-columns: minmax(0, 1fr);
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--ink);
}
.site-header__bg {
  position: absolute;
  inset: 0;
  background: rgba(244, 240, 232, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: opacity var(--t) var(--ease);
}
.site-header.is-over-hero {
  margin-bottom: calc(var(--header-h) * -1);
  color: #fff;
}
.site-header.is-over-hero .site-header__bg {
  opacity: 0;
}
.site-header.is-over-hero.is-solid .site-header__bg {
  opacity: 1;
  background: rgba(18, 16, 16, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.site-header.is-over-hero.is-scrolled {
  color: var(--ink);
}
.site-header.is-over-hero.is-scrolled .site-header__bg {
  opacity: 1;
  background: rgba(244, 240, 232, 0.86);
  border-bottom-color: var(--line);
}
.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand__logo {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__text strong {
  font-stretch: 75%;
  font-weight: 850;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
.brand__text span {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  max-width: 21ch;
}
.site-nav {
  display: none;
}
.site-nav ul {
  display: flex;
  gap: clamp(0.9rem, 1.4vw, 1.6rem);
  list-style: none;
  padding: 0;
}
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 560;
  font-stretch: 92%;
  text-decoration: none;
  padding: 0.4rem 0;
  background: linear-gradient(var(--red-brand), var(--red-brand)) 0 100% / 0 3px no-repeat;
  transition: background-size var(--t) var(--ease);
}
.site-nav a:hover,
.site-nav a.is-active {
  background-size: 100% 3px;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-verify,
.header-wa {
  display: none;
}
.lang {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  overflow: hidden;
  opacity: 0.92;
}
.lang__item {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 0.45rem;
  text-decoration: none;
}
.lang__item.is-current {
  background: currentColor;
}
.lang__item.is-current {
  color: inherit;
}
.site-header .lang__item.is-current {
  background: var(--ink);
  color: #fff;
}
.site-header.is-over-hero:not(.is-scrolled) .lang__item.is-current {
  background: #fff;
  color: var(--ink);
}
.lang a.lang__item:hover {
  background: rgba(235, 33, 36, 0.14);
}
.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.menu-btn .icon {
  width: 26px;
  height: 26px;
}

@media (min-width: 720px) {
  .header-wa {
    display: inline-flex;
  }
}
@media (min-width: 1180px) {
  .site-nav {
    display: block;
  }
  .header-verify {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
}

/* ----------------------------------------------------------------- drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.drawer[hidden] {
  display: none;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 8, 0.55);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--night);
  color: #fff;
  padding: 1rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--t) var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__scrim {
  opacity: 1;
}
.drawer.is-open .drawer__panel {
  transform: none;
}
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lang--dark .lang__item.is-current {
  background: #fff;
  color: var(--night);
}
.drawer__nav {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.drawer__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-stretch: 78%;
  font-weight: 750;
  font-size: 1.75rem;
  line-height: 1.1;
  text-decoration: none;
}
.drawer__nav a .mono {
  color: var(--red-light);
}
.drawer__ctas {
  display: grid;
  gap: 0.75rem;
}
.drawer__phone a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted-light);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: radial-gradient(1100px 620px at 78% 30%, rgba(235, 33, 36, 0.16), transparent 62%),
    radial-gradient(900px 600px at 10% 110%, rgba(255, 255, 255, 0.05), transparent 60%), var(--night);
  color: #fff;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 5vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__contours,
.credentials__contours,
.verify-hero__contours,
.map-card__contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.075);
  -webkit-mask: url('../img/contours.svg') center / cover no-repeat;
  mask: url('../img/contours.svg') center / cover no-repeat;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}
.hero__title {
  font-stretch: 68%;
  font-weight: 820;
  font-size: var(--fs-display);
  line-height: 0.93;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 13ch;
}
.hero__accent {
  color: var(--red-brand);
  display: inline;
}
.hero__lead {
  margin-top: 1.6rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: #d9d3cc;
  max-width: 54ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}
@media (max-width: 639px) {
  .hero__ctas .btn {
    width: 100%;
  }
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  font-size: 0.875rem;
  color: var(--muted-light);
}
.hero__note .icon {
  color: var(--red-light);
}
.hero__note .mono {
  font-size: 0.8125rem;
  color: #fff;
  letter-spacing: 0.04em;
}
.hero__media {
  position: relative;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

.viewfinder {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-3);
  box-shadow: var(--shadow-dark);
}
.viewfinder__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}
.viewfinder::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 22%, transparent 70%, rgba(0, 0, 0, 0.6)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.viewfinder__corner {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 2.5px solid #fff;
  opacity: 0.92;
}
.viewfinder__corner--tl {
  top: 16px;
  left: 16px;
  border-right: 0;
  border-bottom: 0;
}
.viewfinder__corner--tr {
  top: 16px;
  right: 16px;
  border-left: 0;
  border-bottom: 0;
}
.viewfinder__corner--bl {
  bottom: 16px;
  left: 16px;
  border-right: 0;
  border-top: 0;
}
.viewfinder__corner--br {
  bottom: 16px;
  right: 16px;
  border-left: 0;
  border-top: 0;
}
.viewfinder__label {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.viewfinder__label--tl {
  top: 24px;
  left: 58px;
}
.viewfinder__label--tr {
  top: 24px;
  right: 58px;
}
.viewfinder__label--bl {
  bottom: 24px;
  right: 58px;
}
.rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-brand);
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}

.hero__badge {
  position: relative;
  margin: -2.75rem 1rem 0 auto;
  z-index: 3;
  max-width: 300px;
  background: var(--paper);
  color: var(--ink);
  padding: 1rem 1.15rem 1.05rem;
  border-left: 5px solid var(--red-brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.9rem;
  align-items: center;
}
.hero__badge-year {
  font-stretch: 66%;
  font-weight: 850;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red-ink);
}
.hero__badge p {
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 520;
}

.stats {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stat {
  padding: 1.4rem 1.25rem 0.4rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.stat:nth-child(odd) {
  border-right: 1px solid var(--line-dark);
}
.stat:nth-child(even) {
  padding-left: 1.25rem;
}
.stat__value {
  display: block;
  font-stretch: 66%;
  font-weight: 850;
  font-size: clamp(3rem, 2.2rem + 3vw, 4.6rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.stat__label {
  display: block;
  margin-top: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--muted-light);
  max-width: 24ch;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .hero__media {
    justify-self: end;
  }
  .hero__badge {
    position: absolute;
    left: -3rem;
    bottom: -1.75rem;
    margin: 0;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat {
    border-bottom: 0;
    padding: 1.6rem 1.5rem 0.5rem;
    border-right: 1px solid var(--line-dark);
  }
  .stat:first-child {
    padding-left: 0;
  }
  .stat:last-child {
    border-right: 0;
  }
  .stat:nth-child(even) {
    padding-left: 1.5rem;
  }
}

/* ---------------------------------------------------------------- marquee */
.marquee {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee__viewport {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__viewport {
  animation-play-state: paused;
}
.marquee__track {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.marquee__track li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 1.15rem 2.2rem 1.15rem 0;
  white-space: nowrap;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.marquee__track li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red-brand);
  align-self: center;
  margin-right: 0.6rem;
}
.marquee__track strong {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------- sections */
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--paper {
  background: var(--paper);
}
.section--surface {
  background: var(--surface);
}
.section--night {
  background: var(--night);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.section--night2 {
  background: var(--night-2);
  color: #fff;
}
.section--night .section-intro,
.section--night2 .section-intro {
  color: #cfc8c1;
}
.section-head {
  max-width: 820px;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
.section-head .section-intro {
  margin-top: 1.25rem;
}
.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem 4rem;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .section-head--split .section-intro {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------- services */
.services {
  display: grid;
  gap: 1.25rem;
}
.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: #cfc5b6;
}
.service__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.service:hover .service__media img {
  transform: scale(1.04);
}
.service__media--card {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #ff3b3b, transparent 60%), var(--red-brand);
  position: relative;
}
.service__media--card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  -webkit-mask: url('../img/contours.svg') center / cover no-repeat;
  mask: url('../img/contours.svg') center / cover no-repeat;
}
.service__media--card img {
  position: absolute;
  z-index: 1;
  top: 9%;
  left: 50%;
  width: auto;
  height: 82%;
  object-fit: contain;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 10px;
  box-shadow: 0 24px 40px -14px rgba(60, 0, 0, 0.6);
}
.service:hover .service__media--card img {
  transform: translateX(-50%) rotate(-2deg) scale(1.03);
}
.service__body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}
.service__num {
  color: var(--red-ink);
}
.service__title {
  font-stretch: 78%;
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: 1.05;
}
.service__body > p:not(.service__num) {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags li {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--paper);
}
.service .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
  align-self: flex-start;
}

@media (min-width: 900px) {
  .services {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }
  .service:nth-child(1) {
    grid-column: span 7;
  }
  .service:nth-child(2) {
    grid-column: span 5;
  }
  .service:nth-child(3) {
    grid-column: span 5;
  }
  .service:nth-child(4) {
    grid-column: span 7;
  }
  .service:nth-child(1) .service__media,
  .service:nth-child(4) .service__media {
    aspect-ratio: 16 / 9;
  }
  .service:nth-child(2) .service__media,
  .service:nth-child(3) .service__media {
    aspect-ratio: 16 / 11.2;
  }
}

/* ---------------------------------------------------------------- trainer */
.trainer {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 1 / 0.95;
  object-fit: cover;
}
.photo-frame__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(18, 16, 16, 0.82);
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.6875rem;
}
.quote {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--red-brand);
}
.quote p {
  font-stretch: 80%;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  line-height: 1.15;
  text-wrap: balance;
}
.quote p::before {
  content: '“';
  color: var(--red-brand);
}
.quote p::after {
  content: '”';
  color: var(--red-brand);
}
.quote footer {
  margin-top: 0.75rem;
  color: var(--muted);
}
.trainer__role {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.trainer__story {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}
.dossier__label {
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.6875rem;
}
.dossier {
  border-top: 2px solid var(--ink);
  margin-bottom: 2.25rem;
}
.dossier__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed #cdbfae;
}
.dossier dt {
  color: var(--red-ink);
  padding-top: 0.2rem;
  font-size: 0.75rem;
}
.dossier dd {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
}
@media (min-width: 900px) {
  .trainer {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
  .trainer__media {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .dossier__row {
    grid-template-columns: 110px 1fr;
  }
}

/* ---------------------------------------------------------- certification */
.reg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 1.5rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.reg__label {
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.8rem;
  font-size: 0.6875rem;
}
.reg__value {
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.programs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}
.program {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.program::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--red-brand);
  transition: width 500ms var(--ease);
}
.program:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-1);
  border-color: #cfc5b6;
}
.program:hover::after {
  width: 100%;
}
.program__num {
  color: var(--red-ink);
  font-size: 0.8125rem;
}
.program__title {
  font-stretch: 80%;
  font-weight: 780;
  font-size: 1.35rem;
  line-height: 1.1;
}
.program p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.program--cta {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.program--cta p {
  color: #fff;
}
.program--cta .link-arrow {
  margin-top: auto;
}
.program--cta::after {
  display: none;
}

.titles {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  display: grid;
  gap: 2rem;
}
.titles__wall {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.titles__wall img {
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
}
.titles__wall figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.6875rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.award {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.award img {
  width: 64px;
  height: auto;
}
.award__title {
  font-stretch: 80%;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.1;
}
.award__text {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.titles__heading {
  color: var(--muted);
  font-size: 0.6875rem;
  margin-bottom: 0.9rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.2;
}
@media (min-width: 900px) {
  .titles {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ------------------------------------------------------------ credentials */
.credentials__contours {
  background: rgba(255, 255, 255, 0.06);
  transform: scaleX(-1);
}
.credentials__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}
.credentials__text {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  color: #d4cdc6;
  max-width: 54ch;
}
.steps {
  margin: 2rem 0 2.25rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.0625rem;
}
.steps__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--red-light);
  border-radius: 50%;
  color: var(--red-light);
  font-size: 0.8125rem;
}
.steps--paper {
  border-top-color: var(--line);
  max-width: 720px;
}
.steps--paper li {
  border-bottom-color: var(--line);
}
.steps--paper .steps__n {
  border-color: var(--red-ink);
  color: var(--red-ink);
}

.idcard {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  perspective: 1400px;
}
.idcard__img {
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transform: rotateY(-9deg) rotateX(5deg) rotateZ(-1.5deg);
  transform-origin: 60% 50%;
  transition: transform 900ms var(--ease);
}
.idcard:hover .idcard__img {
  transform: rotateY(-3deg) rotateX(2deg) rotateZ(-0.5deg);
}
/* scan window sits over the QR code on the back of the card */
.idcard__scan {
  position: absolute;
  left: 74.5%;
  top: 52.5%;
  width: 15.5%;
  height: 16%;
  border: 2px solid var(--red-light);
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0), 0 0 22px rgba(255, 90, 85, 0.55);
  overflow: hidden;
  transform: rotateZ(-1.5deg);
}
.idcard__beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red-light);
  box-shadow: 0 0 14px 3px rgba(255, 90, 85, 0.8);
  animation: beam 2.4s var(--ease) infinite alternate;
}
@keyframes beam {
  from {
    top: 4%;
  }
  to {
    top: 92%;
  }
}
.idcard__stamp {
  position: absolute;
  right: -0.5rem;
  top: -1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ok);
  color: #fff;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  transform: rotate(4deg) scale(0.6);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.3, 1.6, 0.5, 1) 600ms, opacity 300ms ease 600ms;
}
.idcard.is-in .idcard__stamp,
.is-in .idcard__stamp {
  transform: rotate(4deg) scale(1);
  opacity: 1;
}
.idcard__label {
  position: absolute;
  left: 50%;
  bottom: -2.25rem;
  transform: translateX(-50%);
  color: var(--muted-light);
  font-size: 0.6875rem;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .credentials__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ---------------------------------------------------------------- history */
.history {
  display: grid;
  gap: 3rem;
}
.history__head .section-intro {
  margin-top: 1.25rem;
}
.community {
  margin-top: 2.25rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-brand);
  border-radius: var(--radius);
}
.community__title {
  color: var(--red-ink);
  margin-bottom: 0.9rem;
}
.community li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.community li + li {
  margin-top: 0.65rem;
}
.community li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--red-brand);
}
.timeline {
  position: relative;
  border-left: 2px solid var(--ink);
  margin-left: 6px;
}
.tl-item {
  position: relative;
  padding: 0 0 2.6rem 1.75rem;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 3px solid var(--red-brand);
  border-radius: 50%;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item__year {
  font-stretch: 66%;
  font-weight: 850;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem);
  line-height: 1;
  color: var(--red-ink);
  font-variant-numeric: tabular-nums;
}
.tl-item__year--long {
  font-size: clamp(1.55rem, 1.35rem + 0.8vw, 1.9rem);
  padding-top: 0.35rem;
}
.tl-item__place {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.6875rem;
}
.tl-item__title {
  margin-top: 0.3rem;
  font-stretch: 82%;
  font-weight: 760;
  font-size: 1.35rem;
  line-height: 1.15;
}
.tl-item__body > p:not(.tl-item__place) {
  margin-top: 0.45rem;
  color: var(--ink-2);
  max-width: 58ch;
}
.tl-item__media {
  margin-top: 1rem;
  max-width: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transform: rotate(-0.6deg);
  border: 6px solid #fff;
}
.tl-item__media img {
  width: 100%;
}
.score {
  margin-top: 1.1rem;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.9rem 1rem 1rem;
  font-variant-numeric: tabular-nums;
}
.score__label {
  color: var(--muted);
  font-size: 0.6875rem;
  margin-bottom: 0.6rem;
}
.score {
  overflow-x: auto;
}
.score table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
@media (max-width: 479px) {
  .score table {
    font-size: 0.8125rem;
  }
  .score th,
  .score td {
    padding: 0.4rem 0.25rem;
  }
  .score thead th {
    font-size: 0.5625rem;
    letter-spacing: 0.02em;
  }
}
.score th,
.score td {
  text-align: right;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px dashed #d2c6b6;
}
.score thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.score th:first-child {
  text-align: left;
}
.score tbody th {
  font-weight: 650;
}
.score tbody tr:last-child th,
.score tbody tr:last-child td {
  border-bottom: 0;
}
.score__total {
  font-weight: 800;
  color: var(--red-ink);
  white-space: nowrap;
}
.score__verdict {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  color: var(--ok);
  font-size: 0.6875rem;
}
@media (min-width: 900px) {
  .history {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: start;
  }
  .history__sticky {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .timeline {
    margin-left: 0;
  }
  .tl-item {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 1.5rem;
    padding-left: 2rem;
  }
  .tl-item__place {
    margin-top: 0.15rem;
  }
}

/* ----------------------------------------------------------------- press */
.press {
  margin-top: clamp(4rem, 3rem + 4vw, 6rem);
}
.press__heading {
  color: var(--muted);
  font-size: 0.6875rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
}
.press__grid {
  display: grid;
  gap: 1.25rem;
}
.press-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.press-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-1);
}
.press-card__meta {
  color: var(--red-ink);
  font-size: 0.6875rem;
}
.press-card__title {
  font-stretch: 82%;
  font-weight: 750;
  font-size: 1.3rem;
  line-height: 1.2;
  text-wrap: balance;
}
.press-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}
.press-card--clip {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}
.press-card--clip > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.press-card__thumb {
  flex: none;
  width: 104px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-1);
  transition: transform var(--t) var(--ease);
}
.press-card__thumb:hover {
  transform: rotate(0) scale(1.04);
}
.press-card__quote p {
  font-style: italic;
  color: var(--ink-2);
}
.press-card__quote footer {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 900px) {
  .press__grid {
    grid-template-columns: 1fr 1.25fr;
  }
}

/* ---------------------------------------------------------------- archive */
.section-head--light .section-intro {
  color: #cfc8c1;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 0.75rem;
}

.gallery__item {
  position: relative;
  min-width: 0;
}
.gallery__btn {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: var(--night-3);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.gallery__item--tall .gallery__btn {
  aspect-ratio: 3 / 4;
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 900ms var(--ease), filter var(--t) var(--ease);
  filter: saturate(0.92);
}
.gallery__item--tall .gallery__btn img {
  object-position: 50% 12%;
}
.gallery__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color var(--t) var(--ease);
}
.gallery__btn:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}
.gallery__btn:hover::after {
  border-color: var(--red-brand);
}
.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(10, 8, 8, 0.88) 70%);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  line-height: 1.4;
  color: #f1ece6;
  pointer-events: none;
}
.gallery__item figcaption .mono {
  display: block;
  color: var(--red-light);
  font-size: 0.625rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 639px) {
  .gallery__btn {
    aspect-ratio: 1 / 1;
  }
  .gallery__item--wide {
    grid-column: span 2;
  }
  .gallery__item--wide .gallery__btn {
    aspect-ratio: 2 / 1;
  }
  .gallery__item--tall .gallery__btn {
    aspect-ratio: 1 / 1;
  }
  .gallery__item figcaption {
    padding: 1.5rem 0.6rem 0.5rem;
    font-size: 0;
  }
  .gallery__item figcaption .mono {
    margin: 0;
  }
}
@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 210px;
    grid-auto-flow: dense;
  }
  .gallery__btn,
  .gallery__item--tall .gallery__btn {
    aspect-ratio: auto;
    height: 100%;
  }
  .gallery__item--tall {
    grid-row: span 2;
  }
  .gallery__item--wide {
    grid-column: span 2;
  }
}
@media (min-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 236px;
    gap: 1.25rem;
  }
}

/* --------------------------------------------------------------- lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 8, 8, 0.94);
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(10, 8, 8, 0.6);
}
.lightbox__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 4.5rem 1rem 1.25rem;
}
.lightbox__img {
  max-width: min(1200px, 100%);
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow-dark);
}
.lightbox__caption {
  margin-top: 1rem;
  max-width: 70ch;
  text-align: center;
  color: #d9d3cc;
  font-size: 0.9375rem;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(18, 16, 16, 0.6);
  cursor: pointer;
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.lightbox__btn:hover {
  background: var(--red);
  transform: scale(1.04);
}
.lightbox__btn .icon {
  width: 24px;
  height: 24px;
}
.lightbox__btn--close {
  top: 1rem;
  right: 1rem;
}
.lightbox__btn--prev {
  left: 1rem;
  top: 50%;
  translate: 0 -50%;
}
.lightbox__btn--next {
  right: 1rem;
  top: 50%;
  translate: 0 -50%;
}
.lightbox[data-single] .lightbox__btn--prev,
.lightbox[data-single] .lightbox__btn--next {
  display: none;
}

/* -------------------------------------------------------------------- faq */
.faq {
  display: grid;
  gap: 2.5rem;
}
.faq__list {
  border-top: 2px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-stretch: 84%;
  font-weight: 720;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.25;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary:hover {
  color: var(--red-ink);
}
.faq__icon {
  width: 28px;
  height: 28px;
  padding: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.faq__answer {
  padding: 0 3rem 1.5rem 0;
  color: var(--ink-2);
  max-width: 68ch;
}
@media (min-width: 900px) {
  .faq {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 5rem;
  }
}

/* ---------------------------------------------------------------- contact */
.contact__grid {
  display: grid;
  gap: 3rem;
}
.contact__text {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: #d4cdc6;
  max-width: 52ch;
}
.wa-form {
  margin-top: 2.25rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow-dark);
  border-top: 5px solid var(--red-brand);
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'><path fill='none' stroke='%23171412' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 9l7 7 7-7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #c2b6a5;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(224, 31, 34, 0.35);
}
.field[data-invalid] input {
  border-color: var(--red);
}
.field__error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red-ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.field__error[hidden] {
  display: none;
}
.wa-form__foot {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.25rem;
}
.wa-form__fine {
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .wa-form {
    grid-template-columns: 1fr 1fr;
  }
  .field--full,
  .field__error,
  .wa-form__foot {
    grid-column: 1 / -1;
  }
  .wa-form__foot {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.25rem;
  }
}

.contact__aside {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}
.map-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: radial-gradient(circle at 58% 46%, rgba(235, 33, 36, 0.28), transparent 45%), var(--night-3);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.map-card__contours {
  background: rgba(255, 255, 255, 0.16);
  -webkit-mask-size: 220%;
  mask-size: 220%;
  -webkit-mask-position: 70% 30%;
  mask-position: 70% 30%;
}
.map-card__pin {
  position: absolute;
  left: 58%;
  top: 46%;
  translate: -50% -100%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--red-brand);
}
.map-card__pin .icon {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
.map-card__pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 14px;
  height: 14px;
  translate: -50% 0;
  border-radius: 50%;
  border: 2px solid var(--red-light);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}
.map-card__label {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  color: #fff;
  font-size: 0.6875rem;
  line-height: 1.6;
}
.contact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.contact-list > div {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-list dt {
  color: var(--red-light);
  font-size: 0.6875rem;
}
.contact-list dd {
  color: #eee8e2;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.contact-list dd a {
  text-decoration: none;
  font-weight: 600;
}
.contact-list dd a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.emergency {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1.5px dashed rgba(255, 90, 85, 0.6);
  border-radius: var(--radius);
  color: #ffd9d7;
  font-weight: 600;
}
.emergency .icon {
  color: var(--red-light);
}
@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 5rem;
    align-items: start;
  }
  .contact__aside {
    margin-top: 6.5rem;
  }
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: #0c0a0a;
  color: #d4cdc6;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 3rem + 2vw, 5rem) 2.5rem;
}
.footer__brand {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.footer__brand img {
  width: 64px;
  flex: none;
}
.footer__org {
  color: #fff;
  font-stretch: 80%;
  font-weight: 760;
  font-size: 1.3rem;
  line-height: 1.15;
}
.footer__tagline {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  max-width: 46ch;
  color: var(--muted-light);
}
.footer__title {
  color: var(--red-light);
  font-size: 0.6875rem;
  margin-bottom: 1rem;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #e9e3dd;
}
.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__address {
  display: flex;
  gap: 0.5rem;
  color: var(--muted-light);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.footer__address .icon {
  margin-top: 0.2rem;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
  color: var(--muted-light);
}
.footer__demo {
  color: var(--red-light);
  font-size: 0.6875rem;
}
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1.6fr 0.7fr 1fr;
    gap: 4rem;
  }
}

/* --------------------------------------------------------- mobile sticky CTA */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(18, 16, 16, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform var(--t) var(--ease);
}
.mobile-cta.is-visible {
  transform: none;
}
.page-verify .mobile-cta {
  grid-template-columns: 1fr;
}
.page-verify .mobile-cta .btn--light {
  display: none;
}
.mobile-cta .btn {
  min-height: 48px;
  font-size: 0.9375rem;
}
@media (min-width: 900px) {
  .mobile-cta {
    display: none;
  }
}
@media (max-width: 899px) {
  .site-footer {
    padding-bottom: 76px;
  }
}

/* ---------------------------------------------------------------- verify */
.verify-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(900px 520px at 80% 20%, rgba(235, 33, 36, 0.16), transparent 60%), var(--night);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  min-height: 70vh;
}
.verify {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.verify__title {
  font-stretch: 68%;
  font-weight: 820;
  font-size: clamp(2.8rem, 1.8rem + 4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.verify__lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: #d4cdc6;
  max-width: 50ch;
}
.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: rgba(235, 33, 36, 0.14);
  border: 1px solid rgba(255, 90, 85, 0.45);
  color: #ffe1df;
  max-width: 52ch;
}
.notice[hidden] {
  display: none;
}
.notice .icon {
  margin-top: 0.15rem;
  color: var(--red-light);
}
.verify-form {
  margin-top: 2rem;
  max-width: 520px;
}
.verify-form__label {
  display: block;
  color: var(--muted-light);
  font-size: 0.6875rem;
  margin-bottom: 0.6rem;
}
.verify-form__row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  padding: 5px;
  gap: 5px;
  box-shadow: var(--shadow-dark);
}
.verify-form__prefix {
  display: grid;
  place-items: center;
  padding: 0 0.4rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.verify-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 0.6rem 0.25rem;
}
.verify-form input:focus-visible {
  outline: none;
}
.verify-form__row:focus-within {
  box-shadow: 0 0 0 3px var(--night), 0 0 0 6px rgba(255, 90, 85, 0.75), var(--shadow-dark);
}
.verify-form__hint {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted-light);
}
.demo-note {
  margin-top: 1.5rem;
  color: var(--red-light);
  font-size: 0.6875rem;
}

.vcard {
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  animation: rise 500ms var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.vcard--idle {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: 320px;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  box-shadow: none;
  color: var(--muted-light);
  animation: none;
}
.vcard__idle-icon .icon {
  width: 72px;
  height: 72px;
  opacity: 0.6;
}
.vcard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--ok);
  color: #fff;
}
.vcard--missing .vcard__head {
  background: var(--red-ink);
}
.vcard__head .mono {
  white-space: nowrap;
}
.vcard__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.05rem;
}
.vcard__body {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.25rem;
  padding: 1.4rem 1.25rem;
}
.vcard__photo {
  width: 112px;
  aspect-ratio: 184 / 254;
  object-fit: cover;
  border: 4px solid var(--red-brand);
  border-radius: 6px;
  background: #fff;
}
.vcard__fields {
  display: grid;
  gap: 0.55rem;
}
.vcard__fields > div {
  display: grid;
  gap: 0.1rem;
}
.vcard__fields dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.vcard__fields dd {
  font-weight: 600;
  line-height: 1.3;
}
.vcard__fields dd.vcard__name {
  font-stretch: 75%;
  font-weight: 850;
  font-size: 1.9rem;
  line-height: 1;
}
.vcard__note,
.vcard__foot {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.vcard__foot {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.vcard__missing-body {
  padding: 1.5rem 1.25rem;
  display: grid;
  gap: 1rem;
}
.vcard__missing-body h2 {
  font-stretch: 80%;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
}
.verify-how {
  padding-block: clamp(3.5rem, 3rem + 3vw, 5rem);
}
.verify-how .link-arrow {
  margin-top: 2rem;
}
.notfound .btn-row {
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .verify {
    grid-template-columns: 1fr 0.9fr;
    gap: 4rem;
  }
  .verify__result {
    margin-top: 2.5rem;
  }
}

/* ------------------------------------------------------------- reveal fx */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .marquee__viewport {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .marquee__track[aria-hidden='true'] {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
