:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  /* Depth: base → elevated → floating */
  --shadow-elevated: 0 1px 2px rgba(20,22,26,.05), 0 8px 24px -12px rgba(20,22,26,.12);
  --shadow-floating: 0 2px 6px rgba(20,22,26,.06), 0 24px 60px -24px rgba(20,22,26,.28);
}
html { scroll-behavior: smooth; }
body { background: #F7F5F1; color: #14161A; line-height: 1.7; -webkit-font-smoothing: antialiased; }

.container-x { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section-y { padding-block: var(--section-y); }

.display { font-family: Archivo, system-ui, sans-serif; font-stretch: 88%; font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.eyebrow { font-family: Archivo, system-ui, sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #1E9C90; }

.surface-elevated { background: #fff; border: 1px solid #E3DED5; box-shadow: var(--shadow-elevated); }
.surface-floating { background: #fff; border: 1px solid #E3DED5; box-shadow: var(--shadow-floating); }

/* Grain on dark surfaces */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Image treatment: neutral color layer + bottom fade */
.media { position: relative; overflow: hidden; isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(60,48,36,.10); mix-blend-mode: multiply; pointer-events: none; }
.media.fade::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(14,15,18,.82) 0%, rgba(14,15,18,.25) 45%, rgba(14,15,18,0) 70%); pointer-events: none; }
.media:hover img { transform: scale(1.04); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 10px; font-weight: 700; font-size: .95rem; padding: .95rem 1.4rem; transition: transform .35s var(--ease-spring), opacity .2s ease; outline: none; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible, .link:focus-visible, .pkg:focus-visible, summary:focus-visible { outline: 2px solid #1E9C90; outline-offset: 3px; }
.btn-primary { background: #1E9C90; color: #fff; box-shadow: 0 1px 2px rgba(20,22,26,.1), 0 10px 24px -10px rgba(30,156,144,.6); }
.btn-dark { background: #14161A; color: #fff; box-shadow: 0 10px 24px -12px rgba(20,22,26,.5); }
.btn-outline { border: 1.5px solid #14161A; color: #14161A; background: transparent; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn .arrow { transition: transform .35s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(4px); }

.link { position: relative; border-radius: 4px; transition: opacity .2s ease; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link:active { opacity: .65; }

.pkg { transition: transform .45s var(--ease-spring); }
.pkg:hover { transform: translateY(-4px); }
.pkg:active { transform: translateY(-1px) scale(.995); }
.pkg .pkg-arrow { transition: transform .45s var(--ease-spring); }
.pkg:hover .pkg-arrow { transform: translateX(4px); }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details .chev { transition: transform .4s var(--ease-spring); }
details[open] .chev { transform: rotate(45deg); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Nav */
.nav-bg { opacity: 0; transition: opacity .35s ease; }
.scrolled .nav-bg { opacity: 1; }
.menu-panel { opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s ease, transform .4s var(--ease-out); }
.menu-open .menu-panel { opacity: 1; transform: none; pointer-events: auto; }
.burger span { display: block; width: 20px; height: 2px; background: #14161A; transition: transform .35s var(--ease-spring), opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

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