:root {
  --color-ink: #14233a;
  --color-ink-soft: #3a4d63;
  --color-paper: #eef1f4;
  --color-paper-deep: #d8e0e8;
  --color-mist: #f5f7fa;
  --color-slate: #2a4058;
  --color-teal: #3d6b73;
  --color-teal-deep: #2a5258;
  --color-mark: #d4a84b;
  --color-mark-deep: #b08932;
  --color-white: #ffffff;
  --color-error: #8b2e2e;
  --color-success: #1f5c3a;
  --font-display: "Petrona", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 3px;
  --shadow-soft: 0 20px 48px rgba(20, 35, 58, 0.14);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 70rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-mist);
  background-image:
    linear-gradient(rgba(20, 35, 58, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(61, 107, 115, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 5%, rgba(212, 168, 75, 0.1), transparent 50%),
    linear-gradient(180deg, var(--color-mist) 0%, var(--color-paper) 45%, var(--color-paper-deep) 100%);
  background-size: 100% 28px, auto, auto, auto;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--color-mark-deep);
}

h1,
h2,
h3,
.hero__brand,
.site-header__brand,
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

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

.btn--primary:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-mark);
  color: var(--color-ink);
}

.text-link:hover {
  color: var(--color-mark-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 35, 58, 0.08);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-size: 1.35rem;
  color: var(--color-ink);
  text-decoration: none;
  position: relative;
}

.site-header__brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 0;
  height: 2px;
  background: var(--color-mark);
  transition: width 0.35s var(--ease);
}

.site-header__brand:hover::after {
  width: 100%;
}

.site-header__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--color-ink);
  margin: 0.28rem 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.site-nav__cta {
  background: var(--color-teal);
  color: var(--color-white) !important;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-ink);
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-mist);
    border-bottom: 1px solid rgba(20, 35, 58, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .site-nav.is-open {
    max-height: 26rem;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.85rem;
  }
}

/* Hero — full-bleed, brand-first, asymmetric */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 22s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 35, 58, 0.88) 0%, rgba(20, 35, 58, 0.55) 48%, rgba(20, 35, 58, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 35, 58, 0.7) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  max-width: 36rem;
  margin-right: auto;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  animation: hero-rise 0.9s var(--ease) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 0.75rem;
  color: var(--color-white);
  border-bottom: 2px solid var(--color-mark);
  display: inline-block;
  padding-bottom: 0.35rem;
}

.hero__title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  margin: 1rem 0 0.75rem;
  max-width: 22ch;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
}

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

.hero__ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid rgba(20, 35, 58, 0.06);
}

.section__header {
  max-width: 40rem;
  margin-bottom: var(--space-lg);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin: 0 0 0.65rem;
}

.section__text {
  margin: 0;
  color: var(--color-ink-soft);
}

.section__more {
  margin-top: var(--space-md);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.fact-list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--color-mark);
  color: var(--color-ink-soft);
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.feature__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature__title {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
}

.feature__meta {
  color: var(--color-teal-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .feature {
    grid-template-columns: 1fr;
  }
}

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.offer-list__item a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.offer-list__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  transition: transform 0.4s var(--ease);
}

.offer-list__item a:hover img {
  transform: scale(1.02);
}

.offer-list__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.offer-list__item p {
  margin: 0 0 0.65rem;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .offer-list {
    grid-template-columns: 1fr;
  }
}

.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.quote {
  margin: 0;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.65);
  border-left: 3px solid var(--color-teal);
}

.quote p {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
}

.quote footer {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

@media (max-width: 700px) {
  .quote-row {
    grid-template-columns: 1fr;
  }
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius);
}

.band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* Page hero */
.page-hero {
  padding: var(--space-xl) 0 var(--space-md);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.page-hero__lead {
  margin: 0;
  max-width: 40rem;
  color: var(--color-ink-soft);
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal);
  margin: 0 0 0.5rem;
}

/* Services grid */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-grid__item a {
  display: grid;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.service-grid__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-grid__item h2 {
  margin: 0;
  font-size: 1.35rem;
}

.service-grid__item p {
  margin: 0;
  color: var(--color-ink-soft);
}

@media (max-width: 700px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
  align-items: start;
}

.service-detail__image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

@media (max-width: 800px) {
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail__image {
    position: static;
  }
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose--article {
  max-width: 44rem;
}

.prose__image {
  width: 100%;
  margin: 1.25rem 0;
  border-radius: var(--radius);
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.55);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid rgba(20, 35, 58, 0.1);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.rate-note {
  margin-top: var(--space-md);
  color: var(--color-ink-soft);
  max-width: 40rem;
}

/* Reviews */
.review-list {
  display: grid;
  gap: var(--space-md);
}

.review-card {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.6);
  border-top: 3px solid var(--color-mark);
}

.review-card blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
}

.review-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

.case-story {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-slate);
  color: var(--color-white);
  border-radius: var(--radius);
}

.case-story h2 {
  margin-top: 0;
}

.case-story p {
  color: rgba(255, 255, 255, 0.88);
}

/* Blog */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.post-list__item {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: var(--space-md);
  align-items: start;
}

.post-list__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-list__item h2 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.35rem;
}

.post-list__item h2 a {
  color: inherit;
  text-decoration: none;
}

.post-list__item h2 a:hover {
  color: var(--color-teal);
}

.post-list__meta {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin: 0;
}

@media (max-width: 700px) {
  .post-list__item {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 1rem;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 35, 58, 0.08);
  border-radius: var(--radius);
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(20, 35, 58, 0.2);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

.form__error {
  margin: 0;
  color: var(--color-error);
  font-size: 0.85rem;
}

.form__status {
  margin: 0.25rem 0 0;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.form__status.is-success {
  background: rgba(31, 92, 58, 0.12);
  color: var(--color-success);
}

.form__status.is-error {
  background: rgba(139, 46, 46, 0.12);
  color: var(--color-error);
}

/* Mapping lab */
.lab-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: lab;
  display: grid;
  gap: var(--space-md);
}

.lab-steps li {
  counter-increment: lab;
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) 4rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
}

.lab-steps li::before {
  content: counter(lab, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-mark-deep);
  font-weight: 700;
}

.lab-steps h3 {
  margin: 0 0 0.35rem;
}

.lab-steps p {
  margin: 0;
  color: var(--color-ink-soft);
}

.lab-hero-img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.legal th,
.legal td {
  border: 1px solid rgba(20, 35, 58, 0.15);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

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

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: var(--space-lg);
}

.site-footer__name {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--color-white);
}

.site-footer__tag {
  margin: 0;
  max-width: 28rem;
}

.site-footer__contact p {
  margin: 0 0 0.4rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__nav a {
  text-decoration: none;
}

.site-footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-slate);
  color: var(--color-white);
  padding: 1rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

.cookie-banner__inner {
  width: min(100% - 1rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.92rem;
}

.cookie-banner__text a {
  color: var(--color-mark);
}

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

.cookie-banner .btn--ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.cookie-banner .btn--primary {
  background: var(--color-mark);
  color: var(--color-ink);
}

.cookie-banner .btn--primary:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-page {
  min-height: 55vh;
  display: grid;
  align-content: center;
  text-align: center;
  padding: var(--space-2xl) 1rem;
}

.error-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 0.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.team-grid figure {
  margin: 0;
}

.team-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
}

.team-grid figcaption {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
