:root {
  --cream: #f7f4ef;
  --cream-deep: #efe8dc;
  --ink: #141816;
  --ink-soft: #3a413e;
  --muted: #6b736f;
  --petrol: #1f6f6a;
  --petrol-deep: #165652;
  --petrol-soft: #d7e8e5;
  --gold: #c4a574;
  --line: rgba(20, 24, 22, 0.1);
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 111, 106, 0.14), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(196, 165, 116, 0.1), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #f3efe7 48%, var(--cream) 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 100;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 1.7rem;
  height: auto;
}

.brand-wordmark {
  width: 7.2rem;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.92rem;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.nav a,
.nav button {
  text-decoration: none;
  color: var(--ink-soft);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav a:hover,
.nav button:hover {
  color: var(--petrol-deep);
}

.nav-cta {
  padding: 0.45rem 0.9rem !important;
  border: 1px solid var(--petrol) !important;
  color: var(--petrol-deep) !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--petrol) !important;
  color: var(--cream) !important;
}

.lang-switch {
  display: flex;
  gap: 0.15rem;
  border: 1px solid var(--line);
  padding: 0.15rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .lang-switch {
    border-color: color-mix(in srgb, var(--petrol) 35%, var(--line));
  }
}

.lang-btn {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.45rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.lang-btn.is-active,
.lang-btn[aria-current="page"] {
  background: var(--petrol);
  color: var(--cream);
}

.lang-btn:hover:not(.is-active):not([aria-current="page"]) {
  color: var(--petrol-deep);
}

button,
input,
textarea {
  -webkit-appearance: none;
  appearance: none;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  border-radius: 0;
}

.linkish:hover {
  color: var(--petrol-deep);
}

.hero {
  min-height: calc(100svh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem)
    clamp(3rem, 8vw, 5rem);
  overflow: clip;
}

.hero-copy {
  max-width: 36rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-wordmark {
  width: min(100%, 22rem);
  margin-bottom: 1.4rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede,
.section-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  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(-1px);
}

.btn.primary {
  background: var(--petrol);
  color: var(--cream);
}

.btn.primary:hover {
  background: var(--petrol-deep);
}

.btn.ghost {
  border-color: color-mix(in srgb, var(--ink) 25%, transparent);
  color: var(--ink);
  background: transparent;
}

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

.hero-visual {
  position: relative;
  min-height: min(68vh, 34rem);
  display: grid;
  place-items: center;
  animation: rise 1.05s var(--ease) 0.12s both;
}

.hero-plane {
  position: absolute;
  inset: 8% 0 0;
  background:
    linear-gradient(145deg, var(--petrol-deep) 0%, var(--petrol) 55%, #2a8a83 100%);
  clip-path: polygon(12% 0, 100% 8%, 92% 100%, 0 88%);
  transform: translateX(4%);
}

.hero-mark {
  position: relative;
  z-index: 1;
  width: min(78%, 26rem);
  filter: brightness(0) invert(1);
  opacity: 0.92;
  animation: float 7s ease-in-out infinite;
}

.hero-sheen {
  position: absolute;
  inset: 10% 5%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(247, 244, 239, 0.18) 48%,
    transparent 62%
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: sheen 8s var(--ease) infinite;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
}

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

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.section-lede {
  margin-bottom: 2.5rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 1.5rem 1.25rem 0 0;
  border-right: 1px solid var(--line);
  min-height: 12rem;
}

.steps li:last-child {
  border-right: 0;
  padding-right: 0;
}

.step-index {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.steps h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 18rem;
}

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: none;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(90deg, transparent 0%, rgba(31, 111, 106, 0.06) 100%);
}

.evidence-copy,
.evidence-panel {
  max-width: 34rem;
}

.evidence-copy {
  margin-left: max(0px, calc((100vw - 72rem) / 2));
}

.evidence-panel {
  margin-right: max(0px, calc((100vw - 72rem) / 2));
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ev-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: color-mix(in srgb, var(--cream) 88%, white);
}

.ev-id {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--petrol);
  min-width: 2rem;
}

.ev-row strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}

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

.review {
  text-align: left;
}

.review-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.review-strip span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--petrol);
  vertical-align: 0.1rem;
}

.contact {
  text-align: left;
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.contact .btn {
  margin-top: 0.5rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 600;
}

.footer-brand img {
  width: 1.3rem;
  height: auto;
}

.fine a,
.fine .linkish {
  color: var(--ink-soft);
}

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, 0.55);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(88vh, 40rem);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 24, 22, 0.18);
}

.modal-panel-legal {
  width: min(100%, 32rem);
}

.modal-panel h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  padding-right: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--petrol) 45%, transparent);
  border-color: var(--petrol);
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-thanks {
  display: grid;
  gap: 0.85rem;
  padding: 0.5rem 0 0.25rem;
}

.contact-thanks[hidden],
.contact-form[hidden],
#contact-title[hidden] {
  display: none !important;
}

.thanks-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
}

.thanks-body {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
}

.form-status.is-ok {
  color: var(--petrol-deep);
}

.form-status.is-err {
  color: #9b2c2c;
}

.legal-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.legal-body p {
  margin: 0 0 1rem;
}

.legal-body .legal-strong,
.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes sheen {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-4%);
  }
  50% {
    opacity: 0.7;
    transform: translateX(4%);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: 18rem;
    order: -1;
  }

  .hero-mark {
    width: min(55%, 16rem);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0;
  }

  .evidence {
    grid-template-columns: 1fr;
  }

  .evidence-copy,
  .evidence-panel {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .nav .nav-cta {
    display: inline-flex;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-wordmark {
    width: min(100%, 16rem);
  }

  .header-right {
    gap: 0.5rem;
  }

  .lang-btn {
    padding: 0.3rem 0.35rem;
  }
}

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

  .hero-copy,
  .hero-visual,
  .hero-mark,
  .hero-sheen,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Blog (dogfood publish target) —— */
.blog-page .site-header.is-solid {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
}

.blog-index,
.blog-article {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.blog-kicker {
  margin: 0 0 0.75rem;
  color: var(--petrol);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-index h1,
.blog-article h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.blog-lede {
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.blog-list-item a {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.blog-list-item a:hover .blog-list-title {
  color: var(--petrol);
}

.blog-list-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-list-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.blog-list-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.blog-list-empty {
  padding: 1.5rem 0;
  color: var(--muted);
}

.blog-body {
  margin-top: 2rem;
  color: var(--ink-soft);
}

.blog-body h2,
.blog-body h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.blog-body p {
  margin: 0 0 1rem;
}

.blog-body a {
  color: var(--petrol-deep);
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.blog-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-cta {
  margin: 3rem 0 0;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--petrol) 8%, var(--cream)) 0%, var(--cream) 55%),
    var(--cream);
}

.blog-cta-kicker {
  margin: 0 0 0.45rem;
  color: var(--petrol);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-cta-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.blog-cta-text {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 34rem;
  line-height: 1.55;
}

.blog-cta-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--petrol);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.blog-cta-btn:hover {
  background: var(--petrol-deep);
}

.blog-cta-link {
  color: var(--petrol-deep);
  font-weight: 500;
  text-decoration: none;
}

.blog-cta-link:hover {
  text-decoration: underline;
}

