@font-face {
  font-family: "Cormorant Garamond";
  src: url("../../fonts/cormorant-garamond-v21-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../../fonts/cormorant-garamond-v21-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f6f4ef;
  --surface: #e7e2d9;
  --text: #1f2226;
  --muted: #5e646b;
  --line: #d4d0c8;
  --green: #42544e;
  --wine: #6a4a4f;
  --shadow: 0 28px 80px rgba(31, 34, 38, 0.08);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Inter, "Neue Haas Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    linear-gradient(180deg, rgba(246, 244, 239, 0.88), rgba(246, 244, 239, 0.98)),
    url("../../../img/background.png") center top / cover no-repeat fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(31, 34, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 34, 38, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
}

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

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

.site-header {
  display: grid;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 28px 28px;
  text-align: center;
  animation: rise 900ms ease both;
}

.brand {
  display: grid;
  gap: 2px;
  justify-self: center;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 0.92;
}

.brand span:first-child {
  font-size: clamp(4.6rem, 12vw, 10.8rem);
  letter-spacing: 0.012em;
  line-height: 0.78;
}

.brand span:last-child {
  font-size: clamp(1.82rem, 4.78vw, 4.3rem);
  letter-spacing: 0.018em;
  line-height: 1;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  animation: rise 900ms 160ms ease both;
}

.main-nav {
  display: flex;
  gap: clamp(18px, 4vw, 46px);
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a,
.service-card a {
  transition: color 500ms ease;
}

.main-nav a:hover,
.service-card a:hover {
  color: var(--green);
}

.nav-cta {
  flex: 0 0 auto;
}

.section {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 116px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  min-height: 720px;
  padding-top: 80px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--wine);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 660px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 7.35vw, 7rem);
  hyphens: auto;
  line-height: 0.9;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 620px;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 550ms ease, border-color 550ms ease, color 550ms ease, transform 550ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button-primary:hover {
  background: #34443f;
}

.button-secondary,
.button-ghost {
  background: rgba(246, 244, 239, 0.56);
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(100%, 430px);
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(231, 226, 217, 0.5);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.96);
}

.structure-card {
  position: absolute;
  right: 18px;
  bottom: 32px;
  display: grid;
  gap: 10px;
  width: min(240px, 58%);
  padding: 22px;
  border: 1px solid rgba(212, 208, 200, 0.9);
  background: rgba(246, 244, 239, 0.94);
  box-shadow: var(--shadow);
}

.structure-card span {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 56px;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.card,
.service-card,
.feature-list article,
.trust,
.final-cta {
  border: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.76);
  box-shadow: 0 0 0 rgba(31, 34, 38, 0);
  transition: transform 700ms ease, box-shadow 700ms ease, border-color 700ms ease;
}

.card:hover,
.service-card:hover,
.feature-list article:hover {
  border-color: rgba(66, 84, 78, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.card {
  min-height: 260px;
  padding: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 38px;
}

.service-card-featured {
  background: rgba(231, 226, 217, 0.72);
  transform: translateY(-18px);
}

.service-card-featured:hover {
  transform: translateY(-26px);
}

.service-card ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 34px;
  padding: 0;
  list-style: none;
}

.service-card li {
  color: var(--muted);
  line-height: 1.55;
}

.service-card li::before,
.trust-list li::before {
  color: var(--green);
  content: "— ";
}

.service-card a {
  margin-top: auto;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.timeline li {
  position: relative;
  min-height: 270px;
  padding: 30px 26px;
  border-left: 1px solid var(--line);
}

.timeline li:last-child {
  border-right: 1px solid var(--line);
}

.timeline span {
  display: block;
  margin-bottom: 68px;
  color: var(--wine);
  font-family: var(--font-serif);
  font-size: 2.2rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-list article {
  min-height: 230px;
  padding: 30px;
}

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px;
  background:
    linear-gradient(90deg, rgba(246, 244, 239, 0.92), rgba(231, 226, 217, 0.68)),
    url("../../../img/problem.png") center / cover no-repeat;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.final-cta {
  display: grid;
  justify-items: center;
  max-width: 980px;
  margin-bottom: 90px;
  padding: 78px 32px;
  text-align: center;
}

.final-cta p:not(.eyebrow) {
  max-width: 620px;
}

.reveal {
  animation: rise 900ms ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 34%;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .trust {
    grid-template-columns: 1fr;
  }

  .nav-row {
    flex-wrap: wrap;
  }

  .card-grid.four,
  .card-grid.three,
  .timeline,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card-featured {
    transform: none;
  }

  .timeline li:nth-child(even) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-top: 30px;
  }

  .main-nav {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .section {
    width: min(100% - 34px, 1180px);
    padding: 78px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.2rem);
  }

  .card-grid.four,
  .card-grid.three,
  .timeline,
  .feature-list,
  .trust-list {
    grid-template-columns: 1fr;
  }

  .structure-card {
    right: 8px;
    bottom: 24px;
  }

  .trust {
    padding: 34px;
  }
}
