:root {
  --bg: #0d0d0d;
  --bg2: #151515;
  --surface: #1b1b1b;
  --text: #f7f3ea;
  --text2: #b9b3a8;
  --muted: #88847c;
  --champagne: #d7b46a;
  --champagne-pressed: #b8944d;
  --divider: #2a2927;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--champagne);
}

.marble {
  background-color: #0a0a0a;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 15%, rgba(120, 118, 112, 0.13), transparent 60%),
    radial-gradient(ellipse 60% 40% at 78% 65%, rgba(140, 136, 128, 0.1), transparent 62%),
    radial-gradient(ellipse 40% 70% at 55% 90%, rgba(100, 98, 94, 0.09), transparent 60%),
    linear-gradient(112deg, transparent 41%, rgba(190, 186, 178, 0.1) 42%, rgba(190, 186, 178, 0.03) 43.2%, transparent 44%),
    linear-gradient(74deg, transparent 62%, rgba(175, 170, 162, 0.075) 63%, transparent 64.4%),
    linear-gradient(160deg, #101010, #070707 55%, #0c0c0c);
}

/* —— Hero: one composition —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.25) 0%, rgba(13, 13, 13, 0.55) 45%, rgba(13, 13, 13, 0.92) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 20%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--pad);
  padding-bottom: clamp(2.5rem, 8vh, 4.5rem);
  max-width: 40rem;
}

.wordmark {
  width: min(220px, 55vw);
  height: auto;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 1.1s ease 0.15s forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeUp 1.1s ease 0.35s forwards;
}

.hero .lede {
  color: var(--text2);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  max-width: 32rem;
  margin: 0 0 1.75rem;
  opacity: 0;
  animation: fadeUp 1.1s ease 0.55s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1.1s ease 0.7s forwards;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  color: inherit;
}

.btn-primary {
  background: var(--champagne);
  color: #14110a;
}

.btn-primary:hover {
  background: var(--champagne-pressed);
  color: #14110a;
}

.btn-ghost {
  color: var(--text2);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  padding-left: 0.25rem;
  background: transparent;
  border-radius: 0;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--champagne);
}

/* —— Sections —— */
main section {
  padding: clamp(4rem, 10vw, 6.5rem) var(--pad);
  border-top: 1px solid var(--divider);
  background: var(--bg);
}

section .inner {
  max-width: 40rem;
}

section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

section p {
  margin: 0;
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 34rem;
}

.band {
  background: var(--bg2);
}

/* —— Footer —— */
footer {
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--divider);
  background: var(--bg);
}

footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text2);
}

footer .meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

.footer-mark {
  width: 140px;
  opacity: 0.9;
}

/* —— 404 —— */
.not-found {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--pad);
  gap: 1rem;
}

.not-found h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .wordmark,
  .hero h1,
  .hero .lede,
  .cta-row {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
