:root {
  --primary: #7f0010;
  --primary-deep: #5c000c;
  --primary-soft: #ffdad7;
  --ink: #1c1b1b;
  --ink-muted: #59413f;
  --paper: #fcf9f8;
  --paper-warm: #f3ebe6;
  --line: #e1bfbc;
  --white: #ffffff;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(127, 0, 16, 0.08), transparent 55%),
    radial-gradient(90% 60% at -10% 20%, rgba(240, 224, 204, 0.7), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(252, 249, 248, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: rgba(225, 191, 188, 0.55);
  background: rgba(252, 249, 248, 0.94);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.95rem;
  color: var(--ink-muted);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

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

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-switch a {
  color: var(--ink-muted);
  padding: 0.15rem 0.2rem;
}

.lang-switch a::after {
  display: none;
}

.lang-switch a[aria-current="true"],
.lang-switch a:hover {
  color: var(--primary);
}

.nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav.is-open .nav__toggle span {
  background: transparent;
}

.nav.is-open .nav__toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 27, 27, 0.18) 0%, rgba(28, 27, 27, 0.55) 48%, rgba(28, 27, 27, 0.82) 100%),
    linear-gradient(90deg, rgba(127, 0, 16, 0.28), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 4.5rem;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero__brand img {
  width: 3.25rem;
  height: 3.25rem;
  filter: brightness(0) invert(1);
}

.hero__brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(252, 249, 248, 0.9);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

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

.btn--solid:hover {
  background: var(--primary-soft);
}

.btn--ghost {
  border: 1px solid rgba(252, 249, 248, 0.65);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(252, 249, 248, 0.12);
  border-color: var(--white);
}

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

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

.btn--outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

/* ——— Sections ——— */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section__label {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.section__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section__text {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split__visual {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
}

.split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 28rem;
}

.split__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127, 0, 16, 0.16), transparent 50%);
  pointer-events: none;
}

/* ——— Steps ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.step {
  padding: 2rem 1.5rem 0 0;
  border-right: 1px solid var(--line);
}

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

.step:first-child {
  padding-left: 0;
}

.step__index {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.step p {
  margin: 0.85rem 0 0;
  color: var(--ink-muted);
  max-width: 28ch;
}

/* ——— Principles ——— */
.principles {
  background: var(--ink);
  color: var(--paper);
}

.principles .section__label {
  color: var(--primary-soft);
}

.principles .section__text {
  color: rgba(252, 249, 248, 0.72);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.principle-list h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.principle-list p {
  margin: 0;
  color: rgba(252, 249, 248, 0.7);
  max-width: 30ch;
}

/* ——— CTA band ——— */
.cta-band {
  text-align: center;
  padding: clamp(5rem, 12vw, 8rem) 0;
}

.cta-band h2 {
  margin: 0 auto;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 1.1rem auto 0;
  max-width: 32rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
}

.footer__tag {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ——— Legal pages ——— */
.legal-page {
  padding: 4rem 0 6rem;
}

.legal-page h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-muted);
  max-width: 42rem;
}

.legal-page a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ——— Contact form ——— */
.contact-page {
  padding-top: 3.5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  padding: 0;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.95rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.form-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

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

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

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

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

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 860px) {
  .nav__toggle {
    display: grid;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: rgba(252, 249, 248, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .split,
  .steps,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.75rem 0;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .split__visual,
  .split__visual img {
    min-height: 18rem;
  }

  .hero__content {
    padding-top: 6rem;
  }
}

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

  .hero__media img,
  .hero__brand,
  .hero h1,
  .hero__lead,
  .hero__actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
