:root {
  --bg: #f3ede2;
  --bg-deep: #e4d5c4;
  --surface: rgba(255, 250, 244, 0.68);
  --surface-strong: rgba(255, 248, 239, 0.92);
  --surface-border: rgba(74, 51, 33, 0.12);
  --text: #21140f;
  --muted: #645247;
  --accent: #9f5332;
  --accent-strong: #7f3f21;
  --shadow: 0 22px 60px rgba(52, 28, 12, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(190, 118, 74, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f1e8 0%, var(--bg) 48%, var(--bg-deep) 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: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  opacity: 0.22;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.site-footer,
.hero,
.value-grid,
.platforms,
.story,
.contact-section,
.legal-shell {
  position: relative;
  overflow: clip;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.55);
  box-shadow: 0 10px 30px rgba(69, 43, 24, 0.05);
  position: sticky;
  top: 18px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f120e, #81482c);
  color: #fff8f2;
  font-size: 0.85rem;
}

.site-nav {
  display: inline-flex;
  gap: 18px;
}

.site-nav a,
.footer-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

main {
  display: grid;
  gap: 24px;
  padding-top: 24px;
}

.hero,
.value-grid,
.platforms,
.story,
.contact-section,
.legal-shell {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.85), rgba(247, 238, 228, 0.78));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 32px;
  padding: 48px;
  min-height: 72vh;
}

.hero::after,
.platforms::after,
.legal-shell::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(175, 99, 53, 0.2) 0%, transparent 68%);
  filter: blur(6px);
  animation: drift 14s ease-in-out infinite;
}

.hero-copy,
.hero-panel,
.platform-grid,
.story-grid,
.contact-layout,
.legal-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1,
.legal-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.3rem, 9vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-intro {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  cursor: pointer;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff7f0;
  box-shadow: 0 16px 28px rgba(126, 63, 34, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 30px rgba(126, 63, 34, 0.26);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 248, 240, 0.78);
  border-color: rgba(94, 63, 42, 0.14);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.hero-card,
.value-card,
.platform-card,
.story-grid article,
.contact-form,
.contact-copy {
  border: 1px solid rgba(74, 51, 33, 0.1);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.hero-card {
  padding: 26px;
}

.card-label {
  margin: 0 0 12px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 4px 0;
}

.hero-note-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 63, 33, 0.7));
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

.value-card,
.platform-card,
.story-grid article,
.contact-copy {
  padding: 26px;
}

.platforms,
.story,
.contact-section,
.legal-shell {
  padding: 40px;
}

.section-heading {
  max-width: 64ch;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin-top: 16px;
}

.platform-grid,
.story-grid {
  display: grid;
  gap: 18px;
}

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

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

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 38px;
  margin-bottom: 22px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(127, 63, 33, 0.1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.inline-link {
  display: inline;
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(77, 56, 42, 0.16);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.92);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(127, 63, 33, 0.42);
  box-shadow: 0 0 0 4px rgba(159, 83, 50, 0.12);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.fallback-status {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.fallback-status:target {
  display: block;
}

.fallback-success {
  background: rgba(76, 145, 102, 0.12);
  color: #245535;
}

.fallback-error {
  background: rgba(170, 86, 64, 0.12);
  color: #7f2e1a;
}

.form-status[data-state="success"] {
  background: rgba(76, 145, 102, 0.12);
  color: #245535;
}

.form-status[data-state="error"] {
  background: rgba(170, 86, 64, 0.12);
  color: #7f2e1a;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.74;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.72);
  box-shadow: 0 10px 28px rgba(69, 43, 24, 0.06);
}

.site-footer p {
  margin: 0;
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  padding-top: 56px;
}

.legal-header {
  max-width: 70ch;
  margin-bottom: 36px;
}

.legal-header p {
  margin-top: 18px;
}

.legal-content {
  display: grid;
  gap: 28px;
}

.legal-content section {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(74, 51, 33, 0.08);
}

.legal-content section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-float {
  animation: bob 9s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-16px, -18px, 0) scale(1.04);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .hero,
  .contact-layout,
  .story-grid,
  .platform-grid,
  .value-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--content-width));
    padding-top: 14px;
  }

  .site-header {
    padding: 14px;
    border-radius: 24px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .platforms,
  .story,
  .contact-section,
  .legal-shell {
    padding: 28px 22px;
  }

  .value-grid {
    padding: 12px;
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

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