:root {
  --ink: #14213d;
  --ink-soft: #3d5a80;
  --chalk: #f3f6f9;
  --paper: #ffffff;
  --mist: #d7e0ea;
  --signal: #fca311;
  --signal-deep: #d98900;
  --harbor: #1f6f78;
  --text: #1c2430;
  --muted: #5a6778;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 18px 40px rgba(20, 33, 61, 0.08);
  --radius: 4px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(252, 163, 17, 0.16), transparent 36%),
    radial-gradient(circle at 90% 8%, rgba(31, 111, 120, 0.14), transparent 32%),
    linear-gradient(180deg, #eef3f8 0%, var(--chalk) 42%, #e8eef4 100%);
  min-height: 100vh;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--harbor);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.inline-error {
  background: #ffe8e4;
  color: #7a1f14;
  padding: 0.85rem 1rem;
  margin: 0;
  text-align: center;
  border-bottom: 1px solid #f0b5ab;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 249, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand__mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, transparent 48%, var(--signal) 48% 52%, transparent 52%),
    linear-gradient(180deg, var(--ink) 0 55%, var(--harbor) 55%);
  box-shadow: inset 0 0 0 2px var(--ink);
  flex-shrink: 0;
}

.brand__text {
  max-width: 12rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 0.28rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: #0d1830;
  color: #fff;
}

.btn--signal {
  background: var(--signal);
  color: var(--ink);
}

.btn--signal:hover {
  background: var(--signal-deep);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--nav {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

/* Hero variants */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--harbor);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 14ch;
  margin-bottom: 0.8rem;
}

.hero__lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero__visual {
  position: relative;
  min-height: 420px;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px 2px 48px 2px;
  box-shadow: var(--shadow);
  animation: rise-in 0.9s ease both;
}

.hero__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  background: rgba(20, 33, 61, 0.86);
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.hero--band {
  padding: 0;
}

.hero--band .hero__media {
  min-height: 52vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: grid;
  align-items: end;
}

.hero--band .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 33, 61, 0.15), rgba(20, 33, 61, 0.78));
}

.hero--band .hero__copy {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 3.5rem 0;
}

.hero--band h1,
.hero--band .hero__lede {
  color: #fff;
}

.hero--band .hero__lede {
  opacity: 0.9;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2rem 0 3.5rem;
}

.section__head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  max-width: 40rem;
}

.section__head p {
  color: var(--muted);
  margin: 0;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.4rem;
}

.offer-rail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.offer-rail__main {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.offer-rail__main img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.offer-rail__copy {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-rail__side {
  display: grid;
  gap: 1rem;
}

.mini-offer {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--signal);
  animation: fade-up 0.7s ease both;
}

.mini-offer:nth-child(2) { animation-delay: 0.1s; }
.mini-offer:nth-child(3) { animation-delay: 0.2s; }

.mini-offer h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.mini-offer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.quote p {
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.quote cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--signal-deep);
  font-size: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.service-card__body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  font-size: 1.15rem;
}

.service-card p {
  color: var(--muted);
  flex: 1;
}

.service-card a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.service-card a:hover {
  color: var(--harbor);
}

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.media-split img {
  border-radius: 2px 2px 36px 2px;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  background: rgba(20, 33, 61, 0.04);
}

.rate-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-list {
  display: grid;
  gap: 1.25rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.blog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.blog-item__body {
  padding: 1.2rem 1.2rem 1.2rem 0;
}

.blog-item time {
  color: var(--muted);
  font-size: 0.85rem;
}

.article {
  max-width: 720px;
}

.article img.cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
  border-radius: 2px;
}

.article h2 {
  margin-top: 2rem;
}

.prose-wide {
  max-width: 720px;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--paper);
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.field-error {
  color: #a1271c;
  font-size: 0.86rem;
  min-height: 1.1em;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-status--success {
  background: #e5f6ef;
  color: #14553a;
}

.form-status--error {
  background: #ffe8e4;
  color: #7a1f14;
}

.contact-card {
  background: var(--ink);
  color: #e8edf2;
  padding: 1.6rem;
}

.contact-card h2,
.contact-card a {
  color: #fff;
}

.contact-card p {
  color: rgba(232, 237, 242, 0.88);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--harbor);
  margin-bottom: 0.5rem;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(20, 33, 61, 0.94), rgba(31, 111, 120, 0.9)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
  padding: 3rem 0;
  margin: 2rem 0 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.cta-band .btn--signal {
  margin-top: 0.5rem;
}

.site-footer {
  background: #101a2c;
  color: rgba(232, 237, 242, 0.82);
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #f3f6f9;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--signal);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-lead {
  max-width: 28rem;
}

.footer-label {
  color: var(--signal);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0.8rem 0 0.35rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 640px;
  margin-inline: auto;
}

.cookie-banner__inner {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.cookie-banner__inner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.person {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.person img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.person__body {
  padding: 1rem 1.1rem 1.2rem;
}

.person h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.person .role {
  color: var(--harbor);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--signal);
  border-radius: 1px;
}

.stat-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px dashed var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
}

.stat-note strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero--split,
  .offer-rail,
  .offer-rail__main,
  .evidence,
  .media-split,
  .contact-grid,
  .site-footer__grid,
  .card-grid,
  .people-grid,
  .blog-item {
    grid-template-columns: 1fr;
  }

  .blog-item__body {
    padding: 0 1.2rem 1.2rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(243, 246, 249, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.55rem 0.2rem;
  }

  .brand__text {
    max-width: 10rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
