:root {
  --ink: #172019;
  --forest: #1d5a3c;
  --forest-dark: #123c29;
  --sage: #afc7a5;
  --mint: #dcebd6;
  --cream: #f5f2e8;
  --paper: #fbfaf5;
  --orange: #db7a43;
  --line: rgba(23, 32, 25, 0.16);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  background: white;
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, height .25s;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(245, 242, 232, .9);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--forest);
  border-radius: 50% 50% 50% 16%;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.nav { display: flex; align-items: center; gap: 2.2rem; font-size: .9rem; font-weight: 600; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -.35rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .2s; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; border: 0; background: none; padding: .5rem; }
.menu-button span { display: block; width: 24px; height: 1px; margin: 6px 0; background: var(--ink); }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  align-items: center;
  gap: 5vw;
  padding: 8.5rem clamp(1.25rem, 7vw, 7rem) 7rem;
}
.hero-copy { position: relative; z-index: 2; max-width: 710px; }
.eyebrow, .section-index { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow span { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.hero h1 { margin: 1.5rem 0 1.2rem; font-family: var(--serif); font-size: clamp(4.6rem, 9vw, 8.7rem); line-height: .83; letter-spacing: -.065em; font-weight: 500; }
.hero h1 em { color: var(--forest); font-weight: 500; }
.hero-intro { max-width: 570px; margin: 2rem 0; color: rgba(23,32,25,.72); font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: 0 1.35rem; border-radius: 999px; font-size: .92rem; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--forest); }
.button-primary:hover { background: var(--forest-dark); }
.button-quiet { border: 1px solid var(--line); }
.hero-visual { position: relative; min-height: 620px; }
.sun-disc { position: absolute; width: 470px; height: 470px; top: 10%; left: 4%; border-radius: 50%; background: #e9a66e; opacity: .42; }
.phone { position: absolute; overflow: hidden; margin: 0; background: #111; border: 8px solid #121713; border-radius: 42px; box-shadow: 0 30px 70px rgba(27, 52, 35, .22); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-main { width: 290px; height: 590px; left: 22%; top: 0; transform: rotate(2deg); }
.phone-side { width: 225px; height: 455px; left: 60%; top: 23%; transform: rotate(9deg); opacity: .95; }
.floating-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(251,250,245,.8); backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(23,32,25,.12); font-size: .78rem; font-weight: 600; }
.floating-note span { color: var(--forest); }
.note-one { left: 4%; top: 18%; }
.note-two { right: 0; bottom: 17%; }
.hero-orbit { position: absolute; border: 1px solid rgba(29,90,60,.14); border-radius: 50%; }
.orbit-one { width: 740px; height: 740px; right: -180px; top: -150px; }
.orbit-two { width: 500px; height: 500px; right: 10%; bottom: -360px; }
.hero-foot { position: absolute; left: clamp(1.25rem, 7vw, 7rem); right: clamp(1.25rem, 7vw, 7rem); bottom: 1.8rem; display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); color: rgba(23,32,25,.56); font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }

.manifesto { display: grid; grid-template-columns: 160px 1fr 300px; gap: 3rem; padding: 9rem clamp(1.25rem, 7vw, 7rem); background: var(--paper); border-top: 1px solid var(--line); }
.manifesto-text { font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 5.4rem); line-height: 1; letter-spacing: -.045em; }
.manifesto-text p { margin: 0 0 .25rem; }
.manifesto-text p:nth-child(2) { color: var(--forest); }
.manifesto-note { align-self: end; margin: 0; color: rgba(23,32,25,.62); line-height: 1.65; }

.apps-section { padding: 8rem clamp(1.25rem, 7vw, 7rem); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 410px); gap: 3rem; align-items: end; margin-bottom: 4rem; }
.section-heading h2, .support-copy h2 { margin: .6rem 0 0; font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 6rem); line-height: .95; letter-spacing: -.05em; font-weight: 500; }
.section-heading > p { margin: 0; color: rgba(23,32,25,.62); line-height: 1.65; }
.catalog-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 1.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); }
.catalog-overview > div { min-height: 270px; padding: clamp(2rem, 4vw, 3.4rem); background: var(--paper); }
.catalog-overview .catalog-future { background: #e8ecdf; }
.catalog-kicker { margin: 0 0 2.8rem; color: var(--forest); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.catalog-overview h3 { margin: 0 0 .8rem; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.catalog-overview p:not(.catalog-kicker) { max-width: 520px; margin: 0 0 1.6rem; color: rgba(23,32,25,.63); line-height: 1.65; }
.catalog-overview a { display: inline-flex; gap: .7rem; align-items: center; padding-bottom: .25rem; border-bottom: 1px solid currentColor; font-size: .88rem; font-weight: 700; }
.featured-app { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 680px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.app-summary { padding: clamp(2rem, 5vw, 5rem); }
.app-identity { display: flex; align-items: center; gap: 1.2rem; }
.app-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 12px 24px rgba(29,90,60,.18); }
.app-label { margin: 0; color: var(--forest); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.app-identity h3 { margin: .2rem 0 0; font-family: var(--serif); font-size: 2.1rem; font-weight: 600; }
.app-description { max-width: 560px; margin: 2.4rem 0; font-size: 1.08rem; line-height: 1.7; color: rgba(23,32,25,.7); }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 40px 100px 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.feature-list span { color: var(--forest); font-size: .72rem; }
.feature-list small { color: rgba(23,32,25,.56); }
.app-links { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.4rem; font-size: .9rem; font-weight: 700; }
.app-links a { border-bottom: 1px solid var(--ink); padding-bottom: .25rem; }
.app-art { position: relative; overflow: hidden; background: #dbe8d4; }
.app-art > img { position: absolute; z-index: 2; width: 92%; max-width: 660px; right: -4%; bottom: -6%; filter: drop-shadow(0 25px 35px rgba(29,90,60,.18)); }
.leaf { position: absolute; width: 250px; height: 115px; border-radius: 100% 0 100% 0; border: 1px solid rgba(29,90,60,.25); transform: rotate(-30deg); }
.leaf-a { left: -70px; top: 12%; }
.leaf-b { right: -50px; top: 8%; transform: rotate(42deg); }
.gallery { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.gallery-item { position: relative; height: auto; margin: 0; overflow: visible; background: transparent; }
.gallery-item img { width: 100%; height: auto; object-fit: contain; object-position: top center; border-radius: 20px; background: #d8e5d3; transition: transform .7s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item figcaption { position: static; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem .25rem .35rem; border-radius: 0; background: transparent; }
.gallery-item figcaption span { font-weight: 700; }
.gallery-item figcaption small { color: rgba(23,32,25,.58); }
.coming-next { display: grid; grid-template-columns: 160px 1fr 20px; align-items: center; gap: 2rem; margin-top: 5rem; padding: 2.6rem 0 0; border-top: 1px solid var(--line); }
.coming-next h3 { margin: 0 0 .35rem; font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.coming-next p { margin: 0; color: rgba(23,32,25,.55); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 8px rgba(219,122,67,.14); }

.principles { padding: 8rem clamp(1.25rem, 7vw, 7rem); color: var(--cream); background: var(--forest-dark); }
.section-heading.light > p { color: rgba(245,242,232,.68); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(245,242,232,.22); }
.principle-grid article { min-height: 330px; padding: 2rem 2rem 2rem 0; border-right: 1px solid rgba(245,242,232,.22); }
.principle-grid article:not(:first-child) { padding-left: 2rem; }
.principle-grid article:last-child { border-right: 0; }
.principle-number { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(245,242,232,.35); border-radius: 50%; font-size: .75rem; }
.principle-grid h3 { margin: 7rem 0 1rem; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.principle-grid p { max-width: 330px; margin: 0; color: rgba(245,242,232,.62); line-height: 1.65; }

.support-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 9rem clamp(1.25rem, 7vw, 7rem); background: var(--paper); }
.support-copy > p:not(.section-index) { max-width: 510px; margin: 1.6rem 0 2rem; color: rgba(23,32,25,.62); line-height: 1.7; }
.support-details { align-self: end; border-top: 1px solid var(--line); }
.support-details > div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.support-details span { color: rgba(23,32,25,.5); font-size: .8rem; }
.support-details a { font-weight: 700; }
.support-details p { margin: 0; color: rgba(23,32,25,.65); line-height: 1.55; }
.product-support-links { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.product-support-links small { color: rgba(23,32,25,.55); line-height: 1.45; }

footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: center; padding: 3rem clamp(1.25rem, 7vw, 7rem); color: var(--cream); background: var(--ink); }
footer p { color: rgba(245,242,232,.55); }
footer nav { display: flex; gap: 1.6rem; font-size: .85rem; }
footer small { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(245,242,232,.15); color: rgba(245,242,232,.4); }
.footer-brand .brand-mark { background: var(--cream); color: var(--forest); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .hero-visual { min-height: 600px; max-width: 650px; width: 100%; margin: 1rem auto 0; }
  .hero h1 { font-size: clamp(4.6rem, 15vw, 8rem); }
  .manifesto { grid-template-columns: 100px 1fr; }
  .manifesto-note { grid-column: 2; max-width: 500px; }
  .featured-app { grid-template-columns: 1fr; }
  .catalog-overview { grid-template-columns: 1fr; }
  .app-art { min-height: 620px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr auto; }
  footer > p { display: none; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; }
  .menu-button { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 2rem; background: var(--cream); font-family: var(--serif); font-size: 2.4rem; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-105%); transition: transform .35s ease, opacity .2s ease, visibility 0s linear .35s; }
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .hero { display: block; min-height: auto; padding-top: 8.5rem; }
  .hero h1 { font-size: clamp(4rem, 22vw, 6.6rem); }
  .hero-visual { min-height: 500px; margin-top: 3rem; }
  .phone-main { width: 235px; height: 480px; left: 13%; }
  .phone-side { width: 175px; height: 355px; left: 54%; }
  .sun-disc { width: 380px; height: 380px; }
  .note-one { left: 0; }
  .hero-foot { display: none; }
  .manifesto, .section-heading, .support-section { grid-template-columns: 1fr; }
  .manifesto { padding-top: 6rem; padding-bottom: 6rem; }
  .manifesto-note { grid-column: auto; }
  .apps-section, .principles, .support-section { padding-top: 6rem; padding-bottom: 6rem; }
  .featured-app { border-radius: 18px; }
  .catalog-overview { grid-template-columns: 1fr; border-radius: 18px; }
  .catalog-overview > div { min-height: auto; padding: 2rem 1.25rem; }
  .catalog-kicker { margin-bottom: 1.8rem; }
  .app-summary { padding: 2rem 1.25rem; }
  .feature-list li { grid-template-columns: 32px 82px 1fr; gap: .5rem; }
  .feature-list small { line-height: 1.4; }
  .app-art { min-height: 430px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:first-child { grid-column: auto; height: auto; }
  .gallery-item figcaption { align-items: flex-start; flex-direction: column; }
  .coming-next { grid-template-columns: 1fr auto; }
  .coming-next .section-index { grid-column: 1 / -1; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article:not(:first-child) { min-height: auto; padding: 2rem 0 3rem; border-right: 0; border-bottom: 1px solid rgba(245,242,232,.22); }
  .principle-grid h3 { margin-top: 3rem; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
