:root {
  --paper: #f4f2ea;
  --paper-deep: #eae6dc;
  --surface: #f8f6ef;
  --graphite: #1c1b19;
  --graphite-soft: #3a3834;
  --graphite-muted: #8a857c;
  --accent: #ad5b45;
  --accent-dark: #944936;
  --line: #ddd7cb;
  --on-accent: #fffbf6;
  --max: 1120px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--graphite);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(173, 91, 69, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(212, 160, 140, 0.16), transparent 50%),
    var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.nav__brand img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--graphite-soft);
}

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

/* —— Hero (one composition) —— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 242, 234, 0.18) 0%, rgba(244, 242, 234, 0.55) 42%, rgba(244, 242, 234, 0.96) 100%),
    linear-gradient(90deg, rgba(244, 242, 234, 0.55) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vh, 7rem) 0 3.5rem;
  max-width: 34rem;
  animation: riseIn 0.9s ease-out both;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(28, 27, 25, 0.12);
}

.hero__brand span {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--graphite);
}

.hero p {
  margin: 0 0 1.6rem;
  font-size: 1.125rem;
  color: var(--graphite-soft);
  max-width: 28rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.cta--ghost {
  background: transparent;
  color: var(--graphite-soft);
  border-color: var(--line);
}

.cta--ghost:hover {
  background: var(--surface);
  color: var(--graphite);
}

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

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 36rem;
  margin-bottom: 2rem;
  animation: riseIn 0.8s ease-out both;
}

.section__head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  font-weight: 550;
}

.section__head p {
  margin: 0;
  color: var(--graphite-muted);
  font-size: 1.05rem;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.feature:nth-child(even) {
  direction: rtl;
}

.feature:nth-child(even) > * {
  direction: ltr;
}

.feature__copy h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.feature__copy p {
  margin: 0;
  color: var(--graphite-soft);
  font-size: 1.05rem;
}

.feature__visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(28, 27, 25, 0.08);
  animation: riseIn 1s ease-out both;
}

.feature__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.samples figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(28, 27, 25, 0.06);
  transform: translateY(12px);
  opacity: 0;
  animation: riseIn 0.8s ease-out forwards;
}

.samples figure:nth-child(2) {
  animation-delay: 0.12s;
}

.samples figure:nth-child(3) {
  animation-delay: 0.22s;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--graphite-muted);
  font-size: 0.92rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a:hover {
  color: var(--accent-dark);
}

/* Legal pages */
.legal {
  padding: 3rem 0 4rem;
  max-width: 720px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}

.legal .meta {
  color: var(--graphite-muted);
  margin-bottom: 1.75rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--graphite-soft);
}

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(0, -1.5%, 0);
  }
}

@media (max-width: 860px) {
  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

  .nav__links a:not(.cta) {
    display: none;
  }
}
