/* Sections, ridges, type helpers, buttons, seal, cards, benefits, marquee, reveals. */

/* ---------- sections ---------- */
.section { --sec-bg: var(--bg); position: relative; padding-block: clamp(84px, 9vw, 140px) clamp(110px, 11vw, 170px); background: var(--sec-bg); transition: background-color .6s var(--ease); }
.section.alt { --sec-bg: var(--bg-2); }
.band, .site-footer {
  --sec-bg: var(--band-bg);
  --ink: var(--band-ink); --ink-soft: var(--band-soft); --muted: #9aa39c;
  --accent: #61ceaa; --accent-ink: #062018; --accent-deep: #2a8f6f; --accent-rgb: 97, 206, 170;
  --line: rgba(255, 244, 231, .16); --line-soft: rgba(255, 244, 231, .08);
  --card-rgb: 20, 30, 40;
  color: var(--ink-soft); color-scheme: dark;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* tree-line divider: grows out of the section below into the one above */
.ridge { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(54px, 7.5vw, 118px); color: var(--sec-bg); pointer-events: none; z-index: 2; transition: color .6s var(--ease); }

/* ---------- type ---------- */
.mega { font-size: var(--fs-mega); line-height: .86; }
.title { font-size: var(--fs-title); }
.sub { font-size: var(--fs-sub); line-height: 1; }
.title, .mega, .page-title, .sub { text-shadow: .05em .055em 0 rgba(var(--accent-rgb), .26); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); font-weight: 500; }
.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); }
.prose a, .text-link { color: var(--accent); font-weight: 750; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease-out); }
.prose a:hover, .text-link:hover { background-size: 100% 2px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .74rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.eyebrow .fp { width: 11px; height: 15px; transform: rotate(-14deg); flex: none; }
.accent { color: var(--accent); }
.ember { color: var(--ember); }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.btn {
  --b-bg: var(--accent); --b-ink: var(--accent-ink); --b-edge: var(--accent-deep);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 12px; border-radius: 12px;
  font: 400 1.32rem/1 var(--font-display); letter-spacing: .06em;
  background: var(--b-bg); color: var(--b-ink);
  box-shadow: 0 5px 0 var(--b-edge), 0 14px 30px rgba(0, 0, 0, .22);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
}
.btn .icon { width: 1.05em; height: 1.05em; stroke-width: 2.2; transition: transform .3s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--b-edge), 0 18px 36px rgba(0, 0, 0, .26); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b-edge), 0 6px 14px rgba(0, 0, 0, .2); }
.btn-shop { --b-bg: var(--shop); --b-ink: #fff; --b-edge: var(--shop-deep); }
.btn-shop:hover .icon { transform: translate(2px, -2px); }
.btn-ghost { --b-bg: transparent; --b-ink: var(--ink); --b-edge: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); transform: none; }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--accent); transform: translateY(1px); }
.btn-sm { padding: 10px 15px 8px; font-size: 1.12rem; border-radius: 10px; box-shadow: 0 4px 0 var(--b-edge); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--b-edge); }

/* ---------- the tin seal ---------- */
.seal { position: relative; display: grid; place-items: center; width: clamp(150px, 15vw, 210px); aspect-ratio: 1; flex: none; color: var(--ink); }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(var(--rot, 0deg)); animation: spin 40s linear infinite; }
[data-motion="calm"] .seal-ring { animation: none; }
.seal-edge { fill: #0b0d12; stroke: rgba(255, 244, 231, .9); stroke-width: 1.4; }
.seal-inner { fill: none; stroke: rgba(255, 244, 231, .55); stroke-width: 1; stroke-dasharray: 2 4; }
.seal-text { fill: #fff4e7; font: 800 11.4px var(--font-body); letter-spacing: 1px; text-transform: uppercase; }
.seal-mark { position: relative; width: 52%; transition: transform .7s var(--ease-out); }
a.seal:hover .seal-mark { transform: rotate(-20deg) scale(1.06); }
a.seal { filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45)); transition: transform .4s var(--ease-out); }
a.seal:hover { transform: scale(1.04); }
.seal-sm { width: clamp(118px, 11vw, 150px); }
@keyframes spin { to { transform: rotate(calc(var(--rot, 0deg) + 360deg)); } }

/* ---------- use cards ("trail signs") ---------- */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.use-card {
  position: relative; display: block; aspect-ratio: 3 / 4.15; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: #111; color: #fff4e7;
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px rgba(0, 0, 0, .28);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.use-media, .use-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.use-img { object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.use-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4, 6, 10, 0) 30%, rgba(4, 6, 10, .55) 58%, rgba(4, 6, 10, .94)); }
.use-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(20px, 2.2vw, 30px); display: grid; gap: 10px; }
.use-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #61ceaa; }
.use-tag .fp { width: 9px; height: 13px; }
.use-title { font: 400 clamp(2rem, 3.1vw, 2.9rem)/.92 var(--font-display); letter-spacing: .02em; text-shadow: .05em .055em 0 rgba(0, 0, 0, .5); }
.use-go { position: absolute; right: clamp(20px, 2.2vw, 30px); bottom: clamp(22px, 2.4vw, 32px); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #61ceaa; color: #062018; transform: scale(.8); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.use-go .icon { stroke-width: 2.2; }
.use-tin { position: absolute; z-index: 2; top: -8%; right: -16%; width: 62%; transform: translate(30%, -20%) rotate(40deg); opacity: 0; transition: transform .9s var(--ease-out), opacity .5s; pointer-events: none; }
.use-tin-img { filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .55)); }
.use-card:hover, .use-card:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(97, 206, 170, .5), 0 34px 70px rgba(0, 0, 0, .38); }
.use-card:hover .use-img, .use-card:focus-visible .use-img { transform: scale(1.07); }
.use-card:hover .use-tin, .use-card:focus-visible .use-tin { transform: rotate(-14deg); opacity: 1; }
.use-card:hover .use-go, .use-card:focus-visible .use-go { transform: none; opacity: 1; }

/* ---------- benefits with sticky photo stage ---------- */
.benefits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.benefit { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 64px) 0; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.benefit + .benefit { border-top: 1px solid var(--line-soft); }
.benefit-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%; color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), .45); transition: background .4s, color .4s, transform .6s var(--ease-out); }
.benefit-icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.benefit.is-active .benefit-icon { background: var(--accent); color: var(--accent-ink); transform: rotate(-8deg) scale(1.06); }
.benefit-title { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 18px; }
.benefit-body { max-width: 52ch; color: var(--ink-soft); }
.benefit-img { display: none; }
.stage { position: sticky; top: calc(var(--header-h) + 28px); height: calc(100vh - var(--header-h) - 56px); max-height: 820px; min-height: 460px; }
.stage-in { position: relative; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: #0d0f14; box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgba(0, 0, 0, .35); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.6s var(--ease-out); }
.stage-img.is-on { opacity: 1; transform: none; }
.stage-glow { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 110%, rgba(var(--ember-rgb), .28), transparent 60%), linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, .35)); pointer-events: none; }

/* ---------- marquee ---------- */
.marquee { --speed: 60s; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
[data-motion="calm"] .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
[data-motion="calm"] .marquee-track { animation: none; }
[data-motion="calm"] .marquee-group[aria-hidden] { display: none; }

/* ---------- media frames ---------- */
.frame-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, .3); }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-tin { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: bob 7s ease-in-out infinite; }
[data-motion="calm"] .float-tin { animation: none; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }

/* ---------- scroll reveals ---------- */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease-out), scale .9s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
.js [data-reveal="left"] { translate: -44px 0; }
.js [data-reveal="right"] { translate: 44px 0; }
.js [data-reveal="zoom"] { translate: none; scale: .94; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
[data-motion="calm"] [data-reveal] { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { [data-motion="full"] .marquee-track, [data-motion="full"] .seal-ring { animation-duration: 120s; } }

@media (max-width: 1000px) {
  .use-grid { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .stage { display: none; }
  .benefit { min-height: 0; }
  .benefit-img { display: block; margin-top: 26px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--line); }
  .benefit-img img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 640px) {
  .use-grid { grid-template-columns: 1fr; }
  .use-card { aspect-ratio: 4 / 4.3; }
  .use-go { opacity: 1; transform: none; }
  .btn { font-size: 1.2rem; }
}
