:root {
  --bg: #f3eee4;
  --bg-soft: rgba(255, 250, 242, 0.62);
  --ink: #1a1713;
  --muted: #5d544a;
  --line: rgba(26, 23, 19, 0.12);
  --accent: #7c4b33;
  --accent-soft: rgba(124, 75, 51, 0.1);
  --deep: #223131;
  --shadow: 0 24px 70px rgba(38, 26, 17, 0.1);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(124, 75, 51, 0.12), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(34, 49, 49, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(157, 104, 63, 0.16), transparent 30%),
    linear-gradient(180deg, #f7f1e8 0%, #efe8dc 48%, #ebe3d6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: soft-light;
  opacity: 0.45;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero,
.section,
.footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.78), rgba(250, 245, 237, 0.58));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 5vw, 64px);
}

.hero::after,
.section::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: end;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.lede {
  max-width: 42rem;
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero-panel,
.panel,
.card {
  border: 1px solid rgba(26, 23, 19, 0.09);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.hero-panel {
  padding: 24px;
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 14px;
  color: var(--deep);
}

.hero-panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

main {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.section {
  padding: clamp(24px, 4vw, 42px);
}

.statement p,
.letter p {
  max-width: 54rem;
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.8;
}

.cards,
.split-grid {
  display: grid;
  gap: 18px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel {
  padding: 22px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.card:hover,
.panel:hover,
.hero-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 75, 51, 0.28);
  background: rgba(255, 252, 247, 0.84);
}

.card h2,
.panel h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 2.4rem);
}

.card p,
.panel li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel-contrast {
  background:
    linear-gradient(180deg, rgba(34, 49, 49, 0.94), rgba(24, 37, 37, 0.96)),
    var(--deep);
  color: #f6efe4;
}

.panel-contrast li,
.panel-contrast h2 {
  color: inherit;
}

.letter blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.footer {
  margin-top: 22px;
  padding: 22px 28px;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 820ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-1 {
  animation-delay: 90ms;
}

.reveal-2 {
  animation-delay: 180ms;
}

.reveal-3 {
  animation-delay: 290ms;
}

.reveal-4 {
  animation-delay: 400ms;
}

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

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero-grid,
  .cards,
  .split-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .card,
  .panel,
  .hero-panel {
    transition: none;
  }
}
