/* Inner pages: use-page template, micarta band, kitchen, more uses, about, press kit, 404. */

/* ---------- page hero ---------- */
.page-hero {
  --ink: #fff4e7; --ink-soft: rgba(255, 244, 231, .88); --accent: #61ceaa; --accent-rgb: 97, 206, 170;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(580px, 84svh, 880px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(120px, 12vw, 180px);
  background: #080a0f; color: var(--ink-soft);
}
.page-hero .hero-art { position: absolute; inset: 0; z-index: -2; }
.page-hero .art { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 50% 40%; transform: translate3d(0, var(--py, 0px), 0) scale(1.03); }
.page-hero .art.flip { transform: translate3d(0, var(--py, 0px), 0) scale(-1.03, 1.03); }
.page-hero .hero-shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 80% at 12% 100%, rgba(5, 8, 12, .86), transparent 68%), linear-gradient(180deg, rgba(5, 8, 12, .5), rgba(5, 8, 12, 0) 24%, rgba(5, 8, 12, 0) 55%, rgba(5, 8, 12, .55));
}
[data-theme="firstlight"] .page-hero .hero-shade {
  background: radial-gradient(80% 80% at 12% 100%, rgba(26, 18, 10, .8), transparent 68%), linear-gradient(180deg, rgba(20, 16, 12, .4), rgba(20, 16, 12, 0) 24%, rgba(20, 16, 12, 0) 55%, rgba(20, 16, 12, .5));
}
.page-hero-in { position: relative; }
.page-title { font-size: var(--fs-hero); line-height: .88; max-width: 12ch; margin-bottom: 22px; text-shadow: .045em .05em 0 rgba(4, 18, 13, .85); }
.page-lead { max-width: 40ch; font: 600 clamp(1.15rem, 1rem + .75vw, 1.6rem)/1.42 var(--font-body); color: var(--ink); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }

/* ---------- intro ---------- */
.intro { padding-block: clamp(70px, 8vw, 120px) clamp(40px, 5vw, 70px); }
.intro-in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.intro-tin { position: relative; justify-self: center; width: min(100%, 360px); }
.intro-tin .seal { position: absolute; left: -14%; bottom: -10%; }
.intro-copy .lead { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.8rem); line-height: 1.5; }
.intro-copy .lead strong { color: var(--accent); font-weight: 750; }

/* ---------- benefits section ---------- */
.benefits-section { padding-top: clamp(30px, 4vw, 60px); padding-bottom: clamp(120px, 12vw, 180px); }
.shadow-peek { position: absolute; left: 0; top: 30%; width: clamp(110px, 10vw, 170px); transform: translateX(-52%) scaleX(-1) rotate(-4deg); opacity: .9; pointer-events: none; z-index: 1; }

/* ---------- bottom line ---------- */
.bottom-line { overflow-x: clip; }
.bottom-line::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 70% at 78% 60%, rgba(255, 138, 61, .16), transparent 70%); }
.bottom-line-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.bottom-line-copy .title { margin-bottom: 24px; }
.bottom-line-copy .prose p { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.bottom-line-tin { position: relative; justify-self: center; width: min(100%, 460px); }
.bottom-line-tin .seal { position: absolute; right: -6%; top: -14%; }

/* ---------- trails ---------- */
.trails { padding-bottom: clamp(120px, 12vw, 180px); }
.trails .use-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- micarta: rough and tumble ---------- */
.rough { overflow-x: clip; padding-bottom: clamp(120px, 12vw, 180px); }
.rough-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.rough-media { position: relative; padding: 0 0 14% 0; }
.rough-photo { aspect-ratio: 4 / 4.6; width: 78%; }
.rough-tin { position: absolute; right: -2%; bottom: 0; width: 58%; }
.rough-copy .title { margin-bottom: 24px; }
.rough-copy .armor { margin-top: 26px; font: 400 clamp(1.7rem, 2.6vw, 2.4rem)/1 var(--font-display); letter-spacing: .03em; color: var(--accent); }

/* ---------- kitchen hero: the chef ---------- */
.kitchen-hero .art { filter: saturate(1.1) brightness(.62); object-position: 50% 60%; }
.kitchen-hero .hero-shade { background: radial-gradient(80% 90% at 10% 100%, rgba(5, 8, 12, .9), transparent 70%), linear-gradient(90deg, rgba(5, 8, 12, .55), rgba(5, 8, 12, .1) 60%), linear-gradient(180deg, rgba(5, 8, 12, .55), transparent 30%); }
[data-theme="firstlight"] .kitchen-hero .art { filter: saturate(1.15) brightness(.78) sepia(.12); }
.chef { position: absolute; right: clamp(-10px, 4vw, 90px); bottom: clamp(40px, 6vw, 96px); width: clamp(220px, 25vw, 370px); z-index: 1; filter: drop-shadow(-20px 20px 40px rgba(0, 0, 0, .5)); }
.js .chef { opacity: 0; transform: translateY(40px); animation: rise 1.1s var(--ease-out) .4s forwards; }
[data-motion="calm"] .chef { opacity: 1; transform: none; animation: none; }
.chef-tin { position: absolute; right: clamp(200px, 25vw, 380px); bottom: clamp(70px, 9vw, 140px); width: clamp(140px, 14vw, 220px); z-index: 2; }

/* ---------- more uses ---------- */
.wood { padding-bottom: clamp(120px, 12vw, 180px); overflow-x: clip; }
.wood-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.wood-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.wood-media .frame-photo { aspect-ratio: 3 / 4; }
.wood-media .frame-photo:nth-child(2) { margin-top: 22%; }
.wood-copy .title { margin-bottom: 24px; }
.kit { padding-bottom: clamp(120px, 12vw, 180px); }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.kit-tile {
  position: relative; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--r-lg);
  background: rgba(var(--card-rgb), .72); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .4s, background .4s;
}
.kit-tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .6), 0 24px 50px rgba(0, 0, 0, .18); }
.kit-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 16px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 4px 0 var(--accent-deep); transform: rotate(-4deg); transition: transform .5s var(--ease-out); }
.kit-tile:hover .kit-icon { transform: rotate(6deg) scale(1.06); }
.kit-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.kit-tile h3 { font-size: clamp(1.7rem, 2.2vw, 2.15rem); margin-bottom: 12px; }
.kit-tile p { font-size: .98rem; }
.kit-photo { padding: 0; overflow: hidden; min-height: 280px; }
.kit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform 1s var(--ease-out); }
.kit-photo:hover img { transform: scale(1.05); }

/* ---------- about ---------- */
.about-hero { align-items: center; padding-bottom: clamp(140px, 13vw, 200px); background: #080a0f; }
.about-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 72% 70%, rgba(255, 138, 61, .22), transparent 70%), radial-gradient(40% 50% at 20% 10%, rgba(97, 206, 170, .08), transparent 70%); }
[data-theme="firstlight"] .about-hero { background: #071611; }
.about-hero .sky { z-index: -1; }
.about-hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-hero .page-title { max-width: 9ch; }
.about-sub { display: grid; gap: 4px; margin-top: 8px; font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.05 var(--font-display); letter-spacing: .04em; color: var(--ink); }
.about-sub span:last-child { color: var(--accent); }
.arch { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 3 / 4; border-radius: 999px 999px 22px 22px; overflow: hidden; box-shadow: 0 0 0 8px rgba(255, 244, 231, .08), 0 0 0 9px rgba(255, 244, 231, .22), 0 40px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(255, 138, 61, .2); }
.arch .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch .art-night { object-position: 50% 45%; }
.arch .art-day { object-position: 40% 50%; }
.arch-seal { position: absolute; left: -12%; bottom: 6%; z-index: 2; }
.arch-wrap { position: relative; justify-self: center; width: min(100%, 440px); }

.story { padding-bottom: clamp(90px, 10vw, 150px); }
.story-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.story-head .sub { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: .98; }
.story-pull { margin: 34px 0 0; padding: 26px 0 0; border-top: 2px solid var(--accent); font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.02 var(--font-display); letter-spacing: .03em; color: var(--accent); }

.crew { padding-top: 0; padding-bottom: clamp(100px, 11vw, 160px); }
.crew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.crew-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: rgba(var(--card-rgb), .8); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px rgba(0, 0, 0, .18); transition: transform .5s var(--ease-out); }
.crew-card:nth-child(2) { transform: translateY(28px); }
.crew-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.crew-card:nth-child(2):hover { transform: translateY(22px) rotate(.6deg); }
.crew-photo { aspect-ratio: 4 / 4.4; overflow: hidden; }
.crew-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.crew-card:hover .crew-photo img { transform: scale(1.05); }
.crew-body { padding: 22px 24px 26px; }
.crew-body h3 { font-size: clamp(2rem, 2.8vw, 2.6rem); margin-bottom: 6px; }
.crew-body p { margin: 0; font-size: .95rem; color: var(--muted); }

.sightings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.sightings-grid figure { aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transform: rotate(-1.2deg); transition: transform .5s var(--ease-out); }
.sightings-grid figure:nth-child(even) { transform: rotate(1.4deg) translateY(18px); }
.sightings-grid figure:hover { transform: rotate(0) scale(1.03); }
.sightings-grid img { width: 100%; height: 100%; object-fit: cover; }
.sightings { padding-bottom: clamp(130px, 13vw, 190px); }

.origin-full .origin-in { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.origin-full .origin-quote p { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); }

/* ---------- press kit ---------- */
.no-hero .site-main { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); }
.press-head { padding-block: 0 clamp(30px, 4vw, 50px); }
.press-head .page-title { color: var(--ink); text-shadow: .045em .05em 0 rgba(var(--accent-rgb), .26); max-width: none; }
.press-head .page-lead { color: var(--ink-soft); text-shadow: none; max-width: 60ch; font-weight: 500; }
.press-group { padding-block: clamp(30px, 4vw, 50px); border-top: 1px solid var(--line-soft); }
.press-group h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 22px; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.press-item { position: relative; display: grid; border-radius: var(--r-md); overflow: hidden; background: rgba(var(--card-rgb), .8); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease-out), box-shadow .3s; }
.press-item:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--accent); }
.press-thumb { aspect-ratio: 1; display: grid; place-items: center; padding: 14px; background: repeating-conic-gradient(rgba(var(--accent-rgb), .06) 0 25%, transparent 0 50%) 0 0 / 22px 22px; }
.press-thumb img, .press-thumb video { max-height: 100%; width: auto; object-fit: contain; }
.press-thumb.photo { padding: 0; }
.press-thumb.photo img { width: 100%; height: 100%; object-fit: cover; }
.press-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.press-meta .icon { color: var(--accent); }
.gate { max-width: 460px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: rgba(var(--card-rgb), .85); box-shadow: inset 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, .2); }
.gate h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: 12px; }
.gate label { display: block; margin: 22px 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.gate input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--bg-rgb), .7); color: var(--ink); font: 600 1rem var(--font-body); }
.gate input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate button.btn { margin-top: 18px; border: 0; cursor: pointer; }
.gate-error { margin-top: 14px; color: var(--shop); font-weight: 700; }

/* ---------- 404 ---------- */
.lost { padding-bottom: clamp(120px, 12vw, 180px); }
.lost-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.lost-photo { aspect-ratio: 520 / 620; transform: rotate(-3deg); }
.lost .page-title { color: var(--ink); text-shadow: .045em .05em 0 rgba(var(--accent-rgb), .26); }
.lost .page-lead { color: var(--ink-soft); text-shadow: none; font-weight: 500; }

@media (max-width: 1000px) {
  .intro-in, .bottom-line-in, .rough-in, .wood-in, .about-hero-in, .story-in, .lost-in { grid-template-columns: 1fr; }
  .intro-tin { width: min(70%, 300px); }
  .kit-grid, .crew-grid { grid-template-columns: 1fr 1fr; }
  .crew-card:nth-child(2) { transform: none; }
  .sightings-grid { grid-template-columns: 1fr 1fr; }
  .trails .use-grid { grid-template-columns: 1fr 1fr; }
  .shadow-peek { display: none; }
  .chef { width: clamp(150px, 34vw, 260px); right: -10px; opacity: .9; }
  .chef-tin { display: none; }
  .arch-wrap { width: min(80%, 380px); }
  .lost-photo { width: min(70%, 340px); justify-self: center; }
}
@media (max-width: 640px) {
  .kit-grid, .crew-grid, .trails .use-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 560px; }
  .kitchen-hero .page-hero-in { padding-right: 30%; }
}
