:root {
  --bg: #F4EEE7;
  --bg-deep: #ECE4D9;
  --card: #FAF6F1;
  --ink: #4F4842;
  --ink-soft: #6B635C;
  --line: #DDD3C7;
  --grey: #A29B91;
  --sage: #B7BAAD;
  --sage-deep: #77826F;
  --peach: #D0B59D;
  --rose: #D9B2A6;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --wrap: min(1120px, 100% - 48px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, blockquote { margin: 0; }
em { font-style: italic; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font: 500 .75rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(24px, (100% - 1120px) / 2);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-weight: 500; letter-spacing: .3em; font-size: .95rem; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; font-size: .875rem; color: var(--ink-soft); transition: color .3s var(--ease); }
.nav nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .9rem;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: #3E3833; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-deep); }

/* Hero */
.hero {
  width: var(--wrap); margin: 0 auto;
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 0 72px;
}
.hero-mark { width: clamp(150px, 22vw, 230px); margin-bottom: 40px; animation: breathe 8s var(--ease) infinite; }
.hero h1 {
  font: 400 clamp(2.75rem, 7vw, 5.5rem)/1.02 var(--display);
  letter-spacing: -.01em; margin: 20px 0 24px;
}
.hero h1 em, .philosophy em, .closing em { color: var(--sage-deep); }
.lede { max-width: 34rem; color: var(--ink-soft); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.breathe {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 56px;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.breathe span { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); animation: pulse 8s var(--ease) infinite; }

@keyframes breathe { 0%, 100% { transform: scale(.97); } 50% { transform: scale(1.03); } }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.4); opacity: 1; } }

/* Philosophy */
.philosophy {
  width: var(--wrap); margin: 0 auto; padding: 120px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 80px; align-items: start;
}
.philosophy .eyebrow { grid-column: 1 / -1; }
.philosophy blockquote { font: 400 clamp(2rem, 4vw, 3.25rem)/1.12 var(--display); }
.philosophy-body { display: grid; gap: 20px; color: var(--ink-soft); padding-top: 8px; }
.philosophy-body strong { color: var(--ink); font-weight: 600; }

/* Principles */
.principles { background: var(--bg-deep); padding: 110px 0; }
.principles > * { width: var(--wrap); margin-inline: auto; }
.principles ol { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principles li { background: var(--card); border-radius: 24px; padding: 36px 32px 40px; }
.principles h3 { font: 500 1.6rem/1.2 var(--display); margin: 28px 0 12px; }
.principles p { color: var(--ink-soft); font-size: .95rem; }
.dot { display: block; width: 18px; height: 18px; border-radius: 50%; }
.dot-sage { background: var(--sage); }
.dot-peach { background: var(--peach); }
.dot-rose { background: var(--rose); }

/* Rhythm / heatmap */
.rhythm {
  width: var(--wrap); margin: 0 auto; padding: 130px 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center;
}
.rhythm h2 { font: 400 clamp(2rem, 4vw, 3rem)/1.1 var(--display); margin: 18px 0 20px; }
.rhythm-copy p:last-child { color: var(--ink-soft); }
.heatmap { display: grid; grid-template-columns: repeat(26, 1fr); gap: 6px; }
.heatmap i {
  aspect-ratio: 1; border-radius: 50%; background: var(--line);
  transform: scale(.4); opacity: .5;
  transition: transform .8s var(--ease), opacity .8s var(--ease), background .8s var(--ease);
}
.heatmap.on i.s { background: var(--sage); }
.heatmap.on i.p { background: var(--peach); }
.heatmap.on i.r { background: var(--rose); }
.heatmap.on i { transform: scale(1); opacity: 1; }

/* Apps */
.apps { width: var(--wrap); margin: 0 auto; padding: 40px 0 130px; }
.apps h2 { font: 400 clamp(2rem, 4vw, 3rem)/1.1 var(--display); margin: 18px 0 48px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app { background: var(--card); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.app-icon {
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px;
  display: grid; place-items: center; font: 500 1.6rem/1 var(--display); color: var(--ink);
}
.app-icon-sage { background: var(--sage); }
.app-icon-rose { background: var(--rose); }
.app-icon-peach { background: var(--peach); }
.app h3 { font: 500 1.6rem/1.2 var(--display); }
.app-tag { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.app p:not(.app-tag) { color: var(--ink-soft); font-size: .95rem; margin: 10px 0 22px; flex: 1; }
.app-link { font-weight: 500; font-size: .9rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.app-link:hover { color: var(--sage-deep); }
.app-soon { font-size: .85rem; color: var(--ink-soft); min-height: 44px; display: inline-flex; align-items: center; }

/* Closing */
.closing { background: var(--bg-deep); padding: 120px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.closing h2 { font: 400 clamp(2.25rem, 5vw, 3.75rem)/1.08 var(--display); }

/* Footer */
.footer {
  width: var(--wrap); margin: 0 auto; padding: 40px 0 48px;
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--ink-soft);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .philosophy, .rhythm { grid-template-columns: 1fr; gap: 28px; padding: 88px 0; }
  .principles { padding: 88px 0; }
  .principles ol, .app-grid { grid-template-columns: 1fr; }
  .heatmap { grid-template-columns: repeat(16, 1fr); }
}
@media (max-width: 480px) {
  .nav nav { gap: 18px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
