/* Reveneo — static site styles */
@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;
}

:root {
  --red: #D2414B;
  --red-deep: #B5232E;
  --ink: #25212A;
  --plum: #4E4756;
  --mist: #F2F1F4;
  --line: #DEDBE3;
  --deep: #1C1921;
  --white: #FFFFFF;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.94rem);
  --step-0: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.8vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-stretch: 118%;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: 66ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--plum); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: block; width: clamp(124px, 12vw, 150px); color: #3A3640; line-height: 0; }
.brand svg { width: 100%; height: auto; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
  font: inherit; font-weight: 600; align-items: center; gap: 10px;
}
.nav-toggle .bars { width: 22px; height: 14px; position: relative; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 6px; }
.nav-toggle .bars::after { bottom: 0; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars span { opacity: 0; }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: 1rem; border-radius: 6px;
}
.site-nav a:hover { background: var(--mist); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--red-deep); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.site-nav .nav-cta a { background: var(--red); color: #fff; margin-left: 8px; border-radius: 999px; padding-inline: 20px; }
.site-nav .nav-cta a:hover { background: var(--red-deep); color: #fff; }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: none; }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(37,33,42,0.35);
    display: none;
  }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .no-js .site-nav ul { flex-wrap: wrap; padding: 0 0 12px; flex-direction: row; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
  .site-nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .site-nav .nav-cta a { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font: inherit; font-weight: 650; font-size: 1.05rem; text-decoration: none; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; background: var(--deep);
  min-height: min(86vh, 760px); display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(28,25,33,0.92) 0%, rgba(28,25,33,0.72) 42%, rgba(28,25,33,0.08) 78%),
    linear-gradient(0deg, rgba(28,25,33,0.85) 0%, rgba(28,25,33,0) 55%);
}
.hero .wrap { padding-block: clamp(96px, 16vh, 160px) clamp(48px, 9vh, 96px); }
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.6vw, 6rem);
  font-stretch: 125%; font-weight: 820; line-height: 0.98; letter-spacing: -0.025em;
  max-width: 12ch; margin-bottom: 0.35em;
}
.hero p { font-size: var(--step-1); max-width: 38ch; color: rgba(255,255,255,0.86); margin-bottom: 1.6em; }
.hero-mark { display: block; width: 72px; height: 6px; background: var(--red); margin-bottom: 28px; transform-origin: left; animation: mark 0.9s cubic-bezier(.2,.7,.2,1) 0.15s both; }
@keyframes mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .hero { min-height: 0; display: block; }
  .hero::before { display: none; }
  .hero-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--deep) 0%, rgba(28,25,33,0) 38%); }
  .hero-media img { object-position: 64% 50%; }
  .hero .wrap { padding-top: 8px; padding-bottom: 48px; }
  .hero-mark { margin-bottom: 20px; }
}

/* ---------- Page header (interior) ---------- */
.page-head { position: relative; isolation: isolate; color: #fff; background: var(--deep); overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: 50% 45%; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,25,33,0.9), rgba(28,25,33,0.55)); }
.page-head .wrap { padding-block: clamp(64px, 11vw, 132px) clamp(40px, 6vw, 72px); }
.page-head h1 { font-stretch: 125%; font-weight: 800; margin: 0; }
.page-head p { margin: 14px 0 0; color: rgba(255,255,255,0.82); font-size: var(--step-1); max-width: 40ch; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 120px); }
.section-mist { background: var(--mist); }
.section-intro { display: grid; gap: 8px 64px; grid-template-columns: 1fr; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .section-intro { grid-template-columns: 5fr 6fr; align-items: end; } .section-intro h2 { margin: 0; } .section-intro p { margin: 0; } }

/* ---------- Ranked list (home signature) ---------- */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 56px; }
@media (min-width: 900px) { .ranks { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; } }
.rank { display: grid; grid-template-columns: 84px 1fr; gap: 4px 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.rank-pos {
  grid-row: span 2;
  font-stretch: 125%; font-weight: 850; font-size: 3.4rem; line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--plum);
  font-variant-numeric: tabular-nums;
}
.rank:first-child .rank-pos { color: var(--red); -webkit-text-stroke: 0; }
.rank h3 { margin: 4px 0 6px; }
.rank p { margin: 0; color: var(--plum); font-size: 1.02rem; }
@media (max-width: 480px) { .rank { grid-template-columns: 60px 1fr; } .rank-pos { font-size: 2.6rem; } }

/* ---------- Since band ---------- */
.since { background: var(--ink); color: #fff; overflow: hidden; }
.since .wrap { display: grid; gap: 24px 64px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
@media (min-width: 900px) { .since .wrap { grid-template-columns: auto 1fr; } }
.since-year {
  font-stretch: 125%; font-weight: 850; line-height: 0.8; letter-spacing: -0.05em;
  font-size: clamp(5rem, 2rem + 13vw, 13rem); color: var(--red);
}
.since-year small { display: block; font-size: 1rem; letter-spacing: 0; font-weight: 600; color: rgba(255,255,255,0.7); font-stretch: 100%; margin-bottom: 14px; line-height: 1.2; }
.since p { font-size: var(--step-1); color: rgba(255,255,255,0.86); max-width: 44ch; }
.since h2 { font-size: var(--step-2); }

/* ---------- CTA ---------- */
.cta { text-align: left; }
.cta .wrap { display: grid; gap: 20px 48px; align-items: center; }
@media (min-width: 860px) { .cta .wrap { grid-template-columns: 1fr auto; } }
.cta h2 { margin-bottom: 0.3em; }
.cta p { color: var(--plum); max-width: 56ch; margin: 0; }

/* ---------- Services (SEO page) ---------- */
.services { display: grid; gap: 20px; }
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; gap: 24px; } }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 3.5vw, 40px); border-top: 5px solid var(--red); }
.service h2 { font-size: var(--step-2); }
.service p { color: var(--plum); }
.service .includes { font-weight: 650; color: var(--ink); margin-bottom: 0.6em; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 8px 0 8px 30px; border-top: 1px solid var(--mist); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }

/* ---------- Reason list (about / seo) ---------- */
.reasons { display: grid; gap: 0; margin: 0; }
.reasons div { display: grid; gap: 4px 40px; padding: 22px 0; border-top: 1px solid var(--line); }
.reasons div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .reasons div { grid-template-columns: 240px 1fr; } }
.reasons dt { font-weight: 720; font-stretch: 112%; font-size: var(--step-1); line-height: 1.25; }
.reasons dd { margin: 0; color: var(--plum); }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--red); }
.prose .updated { color: var(--plum); font-size: var(--step--1); }

.split { display: grid; gap: 40px 80px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px 72px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.form { display: grid; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 44px); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 650; font-size: 1rem; }
.field label .req { color: var(--red-deep); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid #C9C5CF; border-radius: 10px; background: #fff;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(210,65,75,0.18); }
.field [aria-invalid="true"] { border-color: var(--red-deep); }
.field .hint { font-size: 0.92rem; color: var(--red-deep); min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 14px 16px; font-weight: 560; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #E9F5EC; color: #1F5A2E; }
.form-status.err { background: #FBEAEB; color: #8E1C25; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,0.72); font-size: var(--step--1); }
.site-footer .wrap { display: grid; gap: 28px; padding-block: 56px 40px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; } }
.site-footer .brand { color: #fff; width: 124px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
@media (min-width: 760px) { .footer-nav { justify-content: flex-end; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-base p { margin: 0; }

/* Split layouts: stack term/description and pin the heading on wide screens */
.split .reasons div { grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 960px) { .split > div:first-child h2 { position: sticky; top: 112px; } }

/* Contact form: email-app handoff */
.form-status p { margin: 0 0 0.5em; }
.form-status p:last-child { margin-bottom: 0; }
.form-status a { color: inherit; font-weight: 700; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.form-note { margin: -4px 0 0; font-size: 0.95rem; color: var(--plum); }
