/* ============================================================
   PERCHAMMON — core styles
   Palette: cinnamon bark, cream, copper gold.
   ============================================================ */

:root {
  --bark-900: #2a1a12;
  --bark-800: #3b241a;
  --bark-700: #55321f;
  --bark-600: #6d4127;
  --bark-500: #8a5432;
  --bark-400: #a86a42;
  --bark-300: #c48b5f;

  --cream-50:  #fdfaf5;
  --cream-100: #f8f1e6;
  --cream-200: #f0e4d2;
  --cream-300: #e3d2b8;

  --copper-600: #9a5f2c;
  --copper-500: #b8752f;
  --copper-400: #cf9048;
  --gold-300:    #d9ae6a;

  --ink: #241812;
  --muted: #6f5a4c;
  --line: rgba(85, 50, 31, .16);

  --shadow-sm: 0 1px 2px rgba(42,26,18,.06), 0 2px 8px rgba(42,26,18,.05);
  --shadow-md: 0 4px 12px rgba(42,26,18,.08), 0 12px 32px rgba(42,26,18,.08);
  --shadow-lg: 0 12px 32px rgba(42,26,18,.12), 0 32px 64px rgba(42,26,18,.12);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --sec-y: clamp(64px, 9vw, 132px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sec-y); position: relative; }
.section--tint { background: var(--cream-100); }
.section--dark {
  background: var(--bark-900);
  color: var(--cream-100);
}
.section--dark h2, .section--dark h3 { color: var(--cream-50); }
.section--dark .eyebrow { color: var(--gold-300); }
.section--dark p { color: rgba(248,241,230,.76); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .55;
}

.sec-head { max-width: 660px; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.sec-head p { color: var(--muted); font-size: 1.06rem; margin-top: 1rem; }
.section--dark .sec-head p { color: rgba(248,241,230,.72); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--bark-800);
  --fg: var(--cream-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .92em 1.6em;
  border-radius: 100px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .22s, background .22s, color .22s;
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:focus-visible { outline: 2px solid var(--copper-500); outline-offset: 3px; }

.btn--primary { --bg: var(--copper-600); }
.btn--primary:hover { --bg: var(--copper-500); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--bark-800);
  border-color: rgba(85,50,31,.28);
}
.btn--ghost:hover { --bg: rgba(85,50,31,.05); border-color: rgba(85,50,31,.45); }

.section--dark .btn--ghost { --fg: var(--cream-100); border-color: rgba(248,241,230,.34); }
.section--dark .btn--ghost:hover { --bg: rgba(248,241,230,.08); }

.btn--lg { padding: 1.06em 2em; font-size: 1rem; }
.btn--sm { padding: .62em 1.1em; font-size: .84rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; font-size: .92rem; color: var(--copper-600);
  border-bottom: 1px solid transparent;
  transition: gap .2s, border-color .2s;
}
.link-arrow:hover { gap: .75em; border-bottom-color: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s, transform .35s;
  background: transparent;
}
.site-header.is-stuck {
  background: rgba(253,250,245,.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.site-header.is-hidden { transform: translateY(-102%); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--cream-50);
  transition: color .3s;
}
.site-header.is-stuck .brand { color: var(--bark-800); }
.brand__mark {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--copper-400), var(--bark-600) 62%, var(--bark-800));
  box-shadow: inset 0 0 0 1px rgba(253,250,245,.28);
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(253,250,245,.86);
  padding-block: .35rem;
  position: relative;
  transition: color .25s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .28s cubic-bezier(.2,.7,.3,1);
}
.nav__links a:hover::after { right: 0; }
.site-header.is-stuck .nav__links a { color: var(--muted); }
.site-header.is-stuck .nav__links a:hover { color: var(--bark-800); }

.nav__tools { display: flex; align-items: center; gap: .5rem; }

.pill-select {
  appearance: none;
  border: 1px solid rgba(253,250,245,.3);
  background: transparent;
  color: var(--cream-50);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  padding: .42rem .7rem;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.site-header.is-stuck .pill-select {
  border-color: var(--line);
  color: var(--bark-800);
  background: rgba(255,255,255,.6);
}
.pill-select:hover { border-color: currentColor; }
.pill-select option { color: var(--ink); background: #fff; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(253,250,245,.3);
  background: transparent;
  color: var(--cream-50);
  border-radius: 100px;
  padding: .42rem .9rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.site-header.is-stuck .cart-btn { border-color: var(--line); color: var(--bark-800); background: rgba(255,255,255,.6); }
.cart-btn:hover { border-color: currentColor; }
.cart-btn svg { width: 15px; height: 15px; }
.cart-btn__count {
  min-width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  border-radius: 100px;
  background: var(--copper-500);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding-inline: 5px;
  transition: transform .3s cubic-bezier(.2,.8,.3,1.4);
}
.cart-btn__count[data-empty="true"] { display: none; }
.cart-btn__count.is-bump { transform: scale(1.35); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(253,250,245,.3);
  border-radius: 50%;
  background: transparent;
  color: var(--cream-50);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.site-header.is-stuck .menu-toggle { border-color: var(--line); color: var(--bark-800); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(94svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-block: 140px clamp(48px, 7vw, 96px);
  overflow: hidden;
  background: var(--bark-900);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: -2;
  will-change: transform;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(20,11,7,.92) 4%, rgba(20,11,7,.55) 38%, rgba(20,11,7,.12) 66%, rgba(20,11,7,.42) 100%),
    linear-gradient(to right, rgba(20,11,7,.72) 0%, rgba(20,11,7,.18) 52%, transparent 78%);
}
.hero__inner { width: 100%; }
.hero__content { max-width: 640px; color: var(--cream-50); }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: var(--cream-50); text-wrap: balance; }
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--gold-300);
}
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: rgba(248,241,230,.82);
  max-width: 46ch;
  margin-top: 1.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248,241,230,.18);
  list-style: none;
  font-size: .82rem;
  color: rgba(248,241,230,.7);
}
.hero__trust li { display: flex; align-items: center; gap: .5em; }
.hero__trust svg { width: 14px; height: 14px; color: var(--gold-300); flex: 0 0 auto; }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 7vw, 96px);
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(248,241,230,.6);
}
.scroll-hint__line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(248,241,230,.7), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 40%;
  background: var(--gold-300);
  animation: hintDrop 2.4s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes hintDrop {
  0% { transform: translateY(-100%); }
  60%,100% { transform: translateY(260%); }
}

/* ---------- marquee strip ---------- */
.strip {
  background: var(--bark-800);
  color: var(--cream-200);
  overflow: hidden;
  padding-block: .8rem;
  border-block: 1px solid rgba(248,241,230,.1);
}
.strip__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.strip__track span {
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.strip__track span::after { content: "✦"; color: var(--copper-400); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip:hover .strip__track { animation-play-state: paused; }
