/* Sam's Shack — palette taken from the logo (blush + taupe) with cocoa for text */
:root {
  --cream: #FBF7F3;
  --paper: #FFFFFF;
  --tint: #F3EBE4;
  --blush: #CBB7AA;
  --taupe: #8D8178;
  --cocoa: #3E302A;
  --cocoa-2: #5B4A42;
  --muted: #6E5F57;
  --butter: #F2D27A;
  --line: rgba(62, 48, 42, .14);
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(62, 48, 42, .35);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--taupe); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--cocoa); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--cocoa); color: var(--cream); padding: 10px 16px; border-radius: 10px; z-index: 100; transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1rem; }
.eyebrow--light { color: var(--blush); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--cocoa); color: var(--cream);
  font: 700 1rem/1 var(--sans); text-decoration: none;
  padding: 1.05em 1.6em; border-radius: 999px; border: 2px solid var(--cocoa);
  cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 10px 24px -12px rgba(62, 48, 42, .6);
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .75em 1.25em; font-size: .92rem; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--cocoa); box-shadow: none; }
.btn--ghost:hover { background: var(--cocoa); color: var(--cream); }
.btn--light { background: var(--butter); color: var(--cocoa); border-color: var(--butter); }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(251, 247, 243, .55); box-shadow: none; }
.btn--outline-light:hover { background: var(--cream); color: var(--cocoa); }
.btn--block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 243, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--cocoa-2); }
.nav__links a:hover { color: var(--cocoa); text-decoration: underline; text-underline-offset: 6px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { font-family: var(--serif); font-size: 1.9rem; line-height: 1; display: inline-flex; }
.brand__mark span:first-child { color: var(--blush); }
.brand__mark span:last-child { color: var(--taupe); margin-left: -.06em; margin-top: .22em; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: .01em; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); overflow: hidden;
  background:
    radial-gradient(520px 380px at 88% 10%, rgba(203, 183, 170, .35), transparent 70%),
    radial-gradient(420px 320px at 0% 100%, rgba(242, 210, 122, .22), transparent 70%),
    var(--cream); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--cocoa-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 1.6rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); padding: .5em 1em .5em .75em; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.chips svg { width: 18px; height: 18px; fill: none; stroke: #4F7A4F; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.phone { position: relative; margin: 0; justify-self: center; width: min(320px, 78vw); }
.phone__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; border: 8px solid var(--cocoa); background: var(--cocoa); box-shadow: var(--shadow); transform: rotate(2.5deg); }
.phone__frame video { width: 100%; height: 100%; object-fit: cover; }
.phone__sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(62, 48, 42, .82); color: var(--cream); border: 0; border-radius: 999px; padding: .55em .9em; font: 600 .8rem var(--sans); cursor: pointer; }
.phone__sound svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.phone__sound .wave { fill: none; display: none; }
.phone__sound .x { fill: none; }
.phone__sound[aria-pressed="true"] .wave { display: inline; }
.phone__sound[aria-pressed="true"] .x { display: none; }
.stamp { position: absolute; left: -34px; bottom: 36px; width: 108px; height: 108px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; box-shadow: var(--shadow); }
.stamp svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.stamp text { font: 700 10.5px var(--sans); letter-spacing: 2.2px; text-transform: uppercase; fill: var(--cocoa); }
.stamp span { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 40rem; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; }
.photo--tilt { transform: rotate(-2deg); border: 10px solid var(--paper); }
.quote { margin: 1.8rem 0 0; padding: 1.2rem 1.5rem; background: var(--paper); border-left: 5px solid var(--butter); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin: 0 0 .25em; }
.quote footer { font-size: .88rem; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -20px rgba(62, 48, 42, .5); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 1.2rem 1.3rem 1.5rem; }
.card__body h3 { margin-bottom: .3em; }
.card__body p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.note { display: flex; gap: 12px; align-items: flex-start; max-width: 46rem; margin: 2.4rem auto 0; padding: 1rem 1.25rem; background: var(--paper); border: 1px dashed var(--taupe); border-radius: 16px; font-size: .95rem; color: var(--cocoa-2); }
.note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--taupe); stroke-width: 2; stroke-linecap: round; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 16px; }
.g { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -20px rgba(62, 48, 42, .5); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g:hover img { transform: scale(1.04); }
.g figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(251, 247, 243, .92); padding: .3em .8em; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.g--a { grid-column: 1 / 3; grid-row: 1 / 4; }
.g--b { grid-column: 3 / 5; grid-row: 1 / 5; }
.g--c { grid-column: 5 / 7; grid-row: 1 / 4; }
.g--d { grid-column: 1 / 3; grid-row: 4 / 6; }
.g--d, .g--b { }
.g--b { grid-row: 1 / 6; }
.g--c { grid-row: 1 / 6; }
.g--a { grid-row: 1 / 4; }
.g--d { grid-column: 1 / 3; grid-row: 4 / 6; }

/* Safety */
.safety { display: flex; align-items: center; gap: clamp(20px, 4vw, 44px); max-width: 860px; background: var(--paper); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.safety h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.safety p { margin: 0; color: var(--cocoa-2); }
.safety__badge { flex: none; width: 96px; height: 96px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; }
.safety__badge svg { width: 56px; height: 56px; fill: none; stroke: var(--cocoa); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }

/* Support */
.support { background: var(--cocoa); color: var(--cream); padding: clamp(56px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.support::before { content: ""; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(203, 183, 170, .22), transparent 70%); }
.support h2 em { color: var(--blush); }
.support__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.support__copy > p { color: rgba(251, 247, 243, .88); }
.uses { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uses li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.uses svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: rgba(251, 247, 243, .1); fill: none; stroke: var(--butter); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meter { background: var(--cream); color: var(--cocoa); border-radius: 28px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.meter__big { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; line-height: 1; margin: 0 0 1rem; }
.meter__big small { display: block; font: 500 .95rem var(--sans); color: var(--muted); margin-top: .5rem; }
.meter__track { height: 16px; border-radius: 999px; background: var(--tint); overflow: hidden; border: 1px solid var(--line); }
.meter__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blush), var(--butter)); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.meter__fill.is-in { width: var(--pct); }
.meter__sub { margin: .9rem 0 1.4rem; color: var(--cocoa-2); }
.meter .btn { margin-bottom: 12px; }
.meter .btn--outline-light { color: var(--cocoa); border-color: var(--taupe); }
.meter .btn--outline-light:hover { background: var(--cocoa); color: var(--cream); }
.meter .btn--light { box-shadow: none; }
.meter__fine { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.2rem 1.5rem; display: flex; flex-direction: column; }
.step__n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--sans); background: var(--tint); color: var(--cocoa); margin-bottom: 1rem; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .93rem; color: var(--muted); line-height: 1.5; flex: 1; }
.step--done .step__n { background: #4F7A4F; color: #fff; }
.step--now { border: 2px solid var(--cocoa); box-shadow: var(--shadow); }
.step--now .step__n { background: var(--butter); }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .3em .8em; border-radius: 999px; background: #E3EEE3; color: #2F5A2F; }
.tag--now { background: var(--butter); color: var(--cocoa); }
.tag--next { background: var(--tint); color: var(--muted); }

/* Closing + footer */
.closing { padding: clamp(56px, 8vw, 100px) 0; background: var(--paper); text-align: center; }
.closing__in { max-width: 38rem; }
.closing__logo { width: 190px; height: 190px; margin: 0 auto 1rem; mix-blend-mode: multiply; }
.closing p { color: var(--cocoa-2); }
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 28px 0; font-size: .92rem; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer p { margin: 0; }
.brand--static { color: var(--cocoa); }

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

/* Responsive */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__grid, .split, .support__grid { grid-template-columns: 1fr; }
  .phone { margin-top: 12px; width: min(260px, 70vw); }
  .stamp { width: 88px; height: 88px; left: -22px; }
  .split__media { max-width: 420px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .card { flex-direction: row; }
  .card__img { aspect-ratio: auto; width: 38%; flex: none; }
  .card__body { padding: 1rem; align-self: center; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
  .g--a { grid-column: 1; grid-row: 1 / 3; }
  .g--b { grid-column: 2; grid-row: 1 / 4; }
  .g--c { grid-column: 1; grid-row: 3 / 5; }
  .g--d { grid-column: 2; grid-row: 4 / 6; }
  .safety { flex-direction: column; text-align: center; }
  .uses { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .footer__in { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp svg { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .meter__fill { transition: none; }
}
