/* Aumakua Defense. Military green, ink, and paper rooms. Copper jewelry. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
}
html.age-lock,
html.nav-lock { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: #DF9A73; }
a:hover { color: var(--copper-bright); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}
h1 { font-size: max(2.75rem, 4.5vw); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.8rem; }
p { margin: 0 0 12px; }
code { font-size: 0.9em; }

:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-120%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 80;
}
.skip:focus { top: 0; transform: none; }
.skip:focus:not(:focus-visible) { transform: translateY(-120%); }


.site-header {
  position: relative;
  height: var(--header-h);
  background-color: var(--brand);
  /* No copper edge here: the weave band below is the only line (Marco band gate). */
  background-image: none;
  border-bottom: 0;
}
.site-bar {
  height: 100%;
  width: min(1640px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
}
.logo-mark { height: 44px; width: auto; }
/* Keep the logo and cart unsquashed when a wider fallback font fills the bar (display=optional first visit). */
.logo, .cart-link { flex-shrink: 0; }
.logo-word { display: none; height: 18px; width: auto; }
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a, .cart-link, .nav-toggle, .btn, .filters a {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  text-decoration: none;
}
.site-nav a {
  color: var(--paper);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a[aria-current="page"] {
  box-shadow: none;
  background-image: var(--copper-edge);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 2px;
}
.cart-link {
  color: var(--paper);
  gap: 8px;
  border: 1px solid rgba(244, 240, 232, 0.55);
}
.cart-link svg, .nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
@media (min-width: 720px) and (max-width: 1099.98px) {
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: 8px; letter-spacing: 0.1em; }
}
#cart-count { font-variant-numeric: tabular-nums; }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(244, 240, 232, 0.55);
  gap: 8px;
  cursor: pointer;
}

.site-footer {
  position: relative;
  border-top: 0;
  padding: 36px 0 48px;
  background:
    var(--copper-edge) top / 100% 1px no-repeat,
    var(--ink);
  color: var(--paper);
}
.site-footer a { color: #DF9A73; }
/* Footer: mobile first, 12-column grid, centered. Breakpoints 640 and 1024. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px 12px;
  justify-items: center;
  text-align: center;
}
.footer-grid > * { grid-column: 1 / -1; width: 100%; margin: 0; }
.footer-brand { display: grid; gap: 12px; justify-items: center; }
.footer-word { width: min(100%, 280px); height: auto; margin: 0 auto; }
.footer-tagline { margin: 0; max-width: 18em; } /* = 32ch in Barlow; em keeps the box the same before and after the font swap */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 12px;
}
.site-footer .footer-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-align: center;
}
.footer-nap { display: grid; justify-items: center; gap: 0; }
.footer-nap > a, .footer-nap > span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0; margin: 0; line-height: 1.4; }
.footer-nap > span a { display: inline-flex; align-items: center; min-height: 48px; line-height: inherit; padding: 0; margin: 0; }
.footer-legal { display: grid; gap: 0; justify-items: center; border-top: 1px solid rgba(244, 240, 232, 0.18); padding-top: 12px; }
.footer-legal p { margin: 0; }
.footer-credit a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; }
/* An odd last link sits centered under the row above, not in the left column. */
@media (max-width: 639.98px) {
  .footer-nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .footer-nav a:last-child:nth-child(3n + 1) { grid-column: 2; }
}
@media (min-width: 640px) {
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
  .footer-nap { grid-template-columns: repeat(2, auto); justify-content: center; column-gap: 32px; }
  .footer-nap > * { white-space: normal; }
  .footer-legal { grid-template-columns: auto auto; justify-content: center; column-gap: 32px; align-items: center; }
}
@media (min-width: 1024px) {
  .footer-nav { grid-template-columns: repeat(5, 1fr); }
  .footer-nap { grid-template-columns: repeat(4, auto); column-gap: 28px; }
}

.measure {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
}
.room-inner {
  width: min(1640px, 88vw);
  margin: 0 auto;
}
main { display: block; }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  background: var(--brand);
  color: var(--paper);
  overflow: hidden;
}
.hero-home {
  align-items: center;
  min-height: calc(100svh - var(--header-h, 64px));
  background: linear-gradient(180deg, #2C3324 0%, #1A1916 100%);
}
.hero-home::before { z-index: 1; }
.hero-home::before,
.room-ink::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.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='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.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='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.hero-frame {
  position: relative;
  z-index: 1;
  width: min(1640px, 88vw);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 32px 0 88px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}
.hero-home .hero-copy {
  width: auto;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.hero-home h1 {
  font-size: max(2.75rem, 6.6vw);
  line-height: 0.9;
  letter-spacing: -0.01em;
  max-width: 6.2em; /* = 13ch in Saira Condensed; ch is measured on the fallback until the swap and changed the wrap */
  text-transform: uppercase;
  margin: 0 0 28px;
}
.hero-home h1 span {
  display: block;
  white-space: nowrap;
  animation: rise 800ms cubic-bezier(.2, .7, .1, 1) both;
}
.hero-home h1 span:nth-child(2) { animation-delay: 90ms; }
.hero-home h1 span:nth-child(3) { animation-delay: 180ms; }
.hero-home h1 span:nth-child(4) { animation-delay: 270ms; }
/* First-visit fallback fonts (display=optional) are wider than Saira Condensed:
   let a hero line wrap on phones instead of running off-screen. */
@media (max-width: 639px) {
  .hero-home h1 span { white-space: normal; }
}
.hero-mark { min-width: 0; overflow: hidden; }
.mark-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.mark-frame img {
  display: block;
  width: min(70vw, 280px);
  height: auto;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
  animation: mark-in 1000ms cubic-bezier(.2, .7, .1, 1) both;
}
.mark-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(247, 186, 150, 0.55) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask-image: url("../assets/logo/aumakua-mark-copper-800.webp");
  mask-image: url("../assets/logo/aumakua-mark-copper-800.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: none;
  animation: mark-sheen 1400ms ease-in-out 200ms 1 both;
}
@media (min-width: 1200px) {
  .mark-sheen {
    -webkit-mask-image: url("../assets/logo/aumakua-mark-copper.webp");
    mask-image: url("../assets/logo/aumakua-mark-copper.webp");
  }
}
.hero-actions {
  position: relative;
  z-index: 1; /* keeps the buttons above the hero h1, whose tall line boxes overlapped the top of both buttons at 1440px and up (14px dead at 1920) */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .btn {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-flag {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  margin: 0;
  font-size: 1rem;
  max-width: min(28rem, calc(100% - 48px));
}
.hero-layers,
.hero-embers,
.hero-about-photo,
.story-bg,
.gear-bg {
  position: absolute;
  inset: 0;
}
.hero-layers picture,
.story-bg picture,
.gear-cta > picture,
.hero-about > picture,
.mark-frame picture {
  display: contents;
}
.hero-layers { z-index: 0; overflow: hidden; }
.hero-layer {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
  object-fit: cover;
}
.hero-layer-far {
  top: -8%;
  height: 116%;
  transform: scale(1.08);
}
.hero-layer-near {
  top: auto;
  bottom: -6%;
  height: 52%;
  transform: scale(1.1);
  object-position: center 70%;
  opacity: 0.88;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 74%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 74%);
}
@media (min-width: 760px) and (max-width: 1199.98px) and (orientation: portrait) {
  .hero-home {
    min-height: min(calc(100svh - var(--header-h, 64px) - 24px), 1100px);
    height: min(calc(100svh - var(--header-h, 64px) - 24px), 1100px);
  }
  .hero-layer-far {
    top: 0;
    height: 100%;
    transform: none;
  }
}
@media (min-width: 1600px) and (orientation: landscape) {
  .hero-layer-far {
    top: -3%;
    height: 106%;
    transform: none;
  }
  .hero-layer-near {
    transform: none;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26, 25, 22, 0.9) 0%, rgba(44, 51, 36, 0.78) 46%, rgba(26, 25, 22, 0.62) 100%);
}
.hero-home .hero-overlay {
  background: rgba(44, 51, 36, 0.8);
}
.hero-embers {
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-about { min-height: 52vh; align-items: end; }
.hero-about-photo { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero-about .hero-copy { z-index: 2; }

.weave-band {
  height: 24px;
  background: var(--copper-edge);
  -webkit-mask-image: url("../assets/weave-unit.svg");
  mask-image: url("../assets/weave-unit.svg");
  -webkit-mask-size: 96px 24px;
  mask-size: 96px 24px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.38;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes mark-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes mark-sheen {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.kicker, .metal {
  background-image: var(--copper-type);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.kicker {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0 0 8px;
}
.photo-flag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin: 0 0 18px;
  background: rgba(0, 0, 0, 0.35);
  max-width: 36rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.supply-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid rgba(192, 122, 90, 0.75);
  background: rgba(0, 0, 0, 0.28);
  color: var(--paper);
  font-size: 1rem;
}

.btn {
  background-color: #C07A5A;
  background-image: var(--copper-btn);
  background-size: 200% 100%;
  background-position: 0 0;
  color: #1A1916;
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 8px 24px -8px rgba(103, 58, 39, 0.7);
  font-weight: 600;
  cursor: pointer;
  min-height: 56px;
  transition: background-position 0.45s ease;
}
.btn:hover { background-position: 100% 0; color: #1A1916; }
.btn-line {
  background-color: transparent;
  background-image: none;
  color: var(--paper);
  border: 1px solid #DF9A73;
  box-shadow: none;
}
.btn-line:hover {
  background-color: transparent;
  background-image: none;
  background-position: 0 0;
  color: var(--paper);
  border-color: var(--copper-bright);
}

.room {
  position: relative;
  padding: clamp(96px, 9vw, 180px) 0;
}
.room > * { position: relative; }
.room-ink {
  background: #1A1916;
  color: var(--paper);
}
.room-ink + .room-ink {
  padding-top: max(48px, 4vw);
  border-top: 1px solid rgba(223, 154, 115, 0.18);
}
.room-ink:has(+ .room-ink) { padding-bottom: max(48px, 4vw); }
.room-ink + .spotlight { padding-top: max(32px, 3vw); }
.room-paper {
  background: #F4F0E8;
  color: var(--ink);
}
.room-paper a { color: #673A27; }
.room-paper a:hover { color: #8A4E33; }
.room-paper .kicker,
.room-paper .metal { background-image: var(--copper-on-paper); }
.room-paper .btn { color: #1A1916; }
.room-paper .btn-line,
.room-paper .btn-line:hover {
  color: var(--ink);
  background-color: transparent;
  background-image: none;
  border-color: #673A27;
}
.room-paper .supply-chip {
  color: var(--ink);
  background: rgba(26, 25, 22, 0.06);
  border-color: rgba(103, 58, 39, 0.55);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms cubic-bezier(.2, .7, .1, 1), transform 600ms cubic-bezier(.2, .7, .1, 1);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  justify-content: center;
  gap: 18px;
}
.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  background:
    linear-gradient(#243024, #243024) padding-box,
    var(--copper-metal) border-box;
  box-shadow: var(--shadow);
  min-height: 48px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2, .7, .1, 1), box-shadow 0.3s;
}
.catalog > .product-tile:only-child {
  width: min(100%, 560px);
  justify-self: center;
}
.product-tile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background-image: var(--copper-edge);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position 600ms ease;
}
.product-tile:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(247, 186, 150, 0.45);
}
.product-tile:hover::before { background-position: 100% 0; }
.tile-body {
  display: grid;
  gap: 6px;
  text-align: center;
  justify-items: center;
  padding: 24px;
}
.tile-title {
  font-family: var(--font-display);
  font-size: max(1.8rem, 1.6vw);
  line-height: 1;
}
.tile-price { color: #DF9A73; }
.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-right: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #DF9A73;
}

.photo-slot {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2)),
    var(--brand);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.product-tile .photo-slot,
.gallery .photo-slot {
  aspect-ratio: 4 / 5;
  min-height: 0;
}
.gallery-row { display: grid; grid-template-columns: 1fr 1fr; }
.gallery-row .photo-slot { border-bottom: 0; border-top: 1px solid var(--line); }
.gallery-row .photo-slot + .photo-slot { border-left: 1px solid var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters a {
  color: var(--paper);
  border: 1px solid rgba(244, 240, 232, 0.55);
  text-decoration: none;
}
.filters a[aria-current="page"] {
  background: #C07A5A;
  color: #1A1916;
  border-color: #C07A5A;
}

.page {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}
.supply {
  border: 1px solid var(--line);
  padding: 16px;
  margin: 0 0 16px;
  background: rgba(0, 0, 0, 0.18);
}
.product-layout { display: grid; gap: 28px; }
.buy-form, fieldset {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  margin: 0 0 16px;
}
legend { padding: 0 6px; font-family: var(--font-display); font-size: 1.4rem; }
label { display: grid; gap: 6px; }
label.check {
  display: flex;
  align-items: center;
  gap: 12px;
}
label.check input {
  width: 48px;
  min-width: 48px;
  height: 48px;
}
input, select, textarea {
  min-height: 48px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #F4F0E8;
  border: 1px solid rgba(26, 25, 22, 0.2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 140px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #F7BA96;
  outline-offset: 2px;
}
.cart-lines { display: grid; gap: 16px; }
.cart-line {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(0, 0, 0, 0.18);
}
.cart-line .photo-slot {
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: 140px;
  border-bottom: 0;
  width: 100%;
}
.cart-line > div { padding: 0 16px 16px; text-align: center; }
.cart-line h2 { font-size: 1.6rem; }
.cart-line h2 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
}
.cart-line .btn { margin-inline: auto; }
.line-amount { padding-right: 16px; text-align: center; }
.summary {
  text-align: center;
  border: 1px solid transparent;
  background: linear-gradient(#22281C, #22281C) padding-box, var(--copper-metal) border-box;
  color: var(--paper);
  box-shadow: var(--shadow);
  padding: 16px;
}
.order-summary h2 {
  font-size: 1.75rem;
  white-space: nowrap;
}
.order-summary .btn {
  width: 100%;
  min-height: 56px;
}
.summary .btn { margin-inline: auto; color: #1A1916; }
.summary ul { margin: 0 0 12px; padding-left: 0; list-style-position: inside; }
.field-error {
  color: #F7BA96;
  font-size: 1rem;
  display: block;
  margin-top: 4px;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  outline: 2px solid #F7BA96;
  outline-offset: 2px;
}
.checkout-grid { display: grid; gap: 16px; }
.split { display: grid; gap: 12px; }
.pay-note {
  border: 1px solid #C07A5A;
  padding: 12px 14px;
}
.form-status { min-height: 1.6em; }
.crumb { font-size: 1rem; }
.crumb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
}
.price-line { color: #DF9A73; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(ellipse at 50% 30%, #2C3324 0%, #1A1916 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: auto;
}
.age-gate[hidden] { display: none; }
.age-card {
  width: min(560px, 92vw);
  margin: auto;
  background:
    linear-gradient(var(--brand), var(--brand)) padding-box,
    var(--copper-metal) border-box;
  color: var(--paper);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.age-card img {
  display: block;
  width: min(220px, 50vw);
  height: auto;
  aspect-ratio: 1932 / 1220;
  max-height: none;
  margin: 0 auto 16px;
  object-fit: contain;
  object-position: center;
}
.age-card h2 { font-size: max(2rem, 3vw); }
.age-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.age-actions .btn { width: 100%; min-height: 56px; }
.age-note { font-size: 1rem; margin: 8px 0 0; color: #DF9A73; }
/* Sideways phones: logo, question, both answers and the note fit in one screen. */
@media (orientation: landscape) and (max-height: 499.98px) {
  .age-gate { padding: 12px 16px; }
  .age-card { width: min(640px, 92vw); padding: 16px 24px; }
  .age-card img { width: auto; height: 56px; margin-bottom: 8px; }
  .age-card h2 { font-size: 1.75rem; margin-bottom: 4px; }
  .age-actions { flex-direction: row; margin: 12px 0 8px; }
  .age-actions .btn { flex: 1; width: auto; }
}

body[data-page="shop"],
body[data-page="category"] { background: #1A1916; }
body[data-page="about"] { background: #1A1916; }

@media (min-width: 640px) {
  .catalog-related { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (min-width: 720px) {
  .product-layout { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .split { grid-template-columns: 1fr 1fr; }
  .age-actions { flex-direction: row; }
  .age-actions .btn { flex: 1; width: auto; }
}
@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .site-bar { width: min(1640px, 88vw); }
  .logo-word { display: block; height: 24px; filter: brightness(1.25); }
  .hero-frame {
    grid-template-columns: repeat(12, 1fr);
    padding-top: 24px;
  }
  .hero-home .hero-copy { grid-column: 1 / 7; grid-row: 1; align-self: center; }
  .hero-home h1 { max-width: 5.25em; } /* = 11ch in Saira Condensed */
  .hero-mark {
    grid-column: 8 / 13;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }
  .mark-frame img {
    height: auto;
    width: auto;
    max-height: min(72vh, 900px);
    max-width: 100%;
  }
  .checkout-grid {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
  .checkout-grid .summary {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 96px;
  }
}
@media (max-width: 1023.98px) {
  .hero-mark { order: -1; justify-self: center; text-align: center; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  body[data-page="checkout"] { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  /* Focused fields and links scroll clear of the fixed Place order bar (56px + safe area). */
  html:has(> body[data-page="checkout"]) { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .checkout-grid .summary .btn[type="submit"] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 56px;
    z-index: 50;
    margin: 0;
    padding: 8px 32px calc(8px + env(safe-area-inset-bottom));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -1px 0 rgba(0, 0, 0, 0.35),
      0 -8px 24px rgba(0, 0, 0, 0.45);
  }
}
@media (min-width: 1440px) {
  .catalog:not(.catalog-related) { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 719.98px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brand);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px;
    z-index: 30;
    margin-left: 0;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { justify-content: flex-start; }
  .cart-line { grid-template-columns: 1fr; }
  .cart-line .photo-slot { max-height: 180px; aspect-ratio: 16 / 9; }
  .line-amount { padding: 0 16px 16px; }
}
@media (max-width: 390px) {
  .site-bar { width: min(1640px, calc(100% - 16px)); }
}

.example-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  padding: 8px 12px;
  background: #1A1916;
  color: #F4F0E8;
  border: 1px solid rgba(244, 240, 232, 0.4);
  font-size: 1rem;
  line-height: 1.3;
}
.hero-flag.example-label {
  left: auto;
  opacity: 1;
}
.photo-slot.photo-real {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #1A1916;
}
.photo-slot.photo-real img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.story { overflow: hidden; }
.story > .story-bg,
.story > .story-shade { position: absolute; inset: 0; }
.hero-home > .example-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 3;
  margin: 0;
}
.gear-cta .example-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 3;
  margin: 0;
}
@media (max-width: 759.98px) {
  .gear-cta .example-label { bottom: 16px; }
}
html.gsap-motion .reveal {
  opacity: 1;
  transform: none;
}
.hero-about .hero-overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(44, 51, 36, 0.5), rgba(26, 25, 22, 0.9));
}
.story-bg img,
.gear-bg {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.story-shade,
.gear-shade {
  position: absolute;
  inset: 0;
}
.story-shade {
  background: linear-gradient(90deg, rgba(26, 25, 22, 0.94) 0%, rgba(26, 25, 22, 0.88) 55%, rgba(44, 51, 36, 0.84) 100%);
}
.story-copy { max-width: 860px; }
.stats-note { margin: 8px 0 18px; }
.stats-row {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.9;
  color: #F7BA96;
}
.stat-label { display: block; max-width: 10.2em; } /* = 18ch in Barlow */
.built-grid {
  display: grid;
  gap: 16px;
}
.built-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(#1A1916, #1A1916) padding-box,
    var(--copper-metal) border-box;
  border: 1px solid transparent;
}
.built-card img {
  display: block;
  width: 100%;
  height: 280px;
  max-width: none;
  object-fit: cover;
}
.built-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 16px;
  background: #1A1916;
}
.built-copy h3 { margin: 0; }
.built-copy .example-label { position: static; }
.spotlight-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.spotlight .photo-slot { max-height: 760px; }
.gear-cta {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}
.gear-cta .room-inner { position: relative; z-index: 1; padding: 72px 0; }
.gear-shade {
  background: linear-gradient(180deg, rgba(26, 25, 22, 0.28), rgba(26, 25, 22, 0.9));
}
.weave-draw {
  position: relative;
  height: 28px;
  background: #1A1916;
}
.weave-draw svg { display: none; }
.weave-draw::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #DF9A73;
  opacity: 0.42;
  -webkit-mask: url("../assets/weave-unit.svg") center / 96px 24px repeat-x;
  mask: url("../assets/weave-unit.svg") center / 96px 24px repeat-x;
  clip-path: inset(0 50% 0 50%);
}
.weave-draw.is-in::after,
.weave-draw.draw::after {
  animation: weave-wipe 1.8s ease forwards;
}
@keyframes weave-wipe { to { clip-path: inset(0 0 0 0); } }

@media (hover: hover) and (pointer: fine) {
  .catalog { perspective: 900px; }
  .product-tile:hover {
    transform: translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    box-shadow:
      0 24px 48px -16px rgba(0, 0, 0, 0.6),
      0 0 28px rgba(247, 186, 150, 0.45);
  }
}
@media (min-width: 700px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  .built-grid { grid-template-columns: repeat(3, 1fr); }
  .built-card img { height: 420px; }
}
@media (min-width: 900px) {
  .spotlight-grid { grid-template-columns: 1.05fr 0.95fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .weave-draw::after { clip-path: none !important; animation: none !important; }
  .hero-layer-far,
  .hero-layer-near,
  .product-tile,
  .product-tile:hover { transform: none !important; }
}

/* Client copy pages (2026-10-26): legal, founder, FAQ, FFL steps. Mobile first. */
.hero-tagline { margin: 12px 0 0; font-size: 1.25rem; letter-spacing: 0.04em; color: rgba(244, 240, 232, 0.88); }
.prose p, .legal p, .legal li { font-size: 1.25rem; line-height: 1.6; }
.lead-line,
.prose .lead-line { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.15; margin: 8px 0 20px; color: #F7BA96; }
.value-pair { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 4px 0 20px; }
.value-pair li { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 20px; border: 1px solid rgba(192, 122, 90, 0.6); }
.page-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.founder-mark { width: 120px; margin: 0 0 12px; opacity: 0.9; }
.founder-mark img { width: 100%; height: auto; }
.pull-quote { margin: 32px 0; padding: 20px 0 20px 20px; border-left: 3px solid #C07A5A; }
.pull-quote p { font-family: var(--font-display); font-size: clamp(1.3rem, 4.5vw, 1.8rem); line-height: 1.3; margin: 0 0 12px; }
.pull-quote footer { font-size: 1.25rem; color: #F7BA96; }
.sign-off,
.prose .sign-off { font-family: var(--font-display); font-size: 1.6rem; color: #F7BA96; }
.legal h2 { margin-top: 36px; }
.legal h3 { margin-top: 24px; font-size: 1.25rem; }
.legal-dates { font-size: 1.25rem; opacity: 0.8; }
.legal-list { padding-left: 1.2em; display: grid; gap: 10px; }
.legal a, .contact-nap a { display: inline-block; min-height: 48px; line-height: 48px; }
.legal p a, .legal li a { min-height: 0; line-height: inherit; padding: 12px 0; margin: -12px 0; }
.on-page { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.on-page a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid rgba(244, 240, 232, 0.4); text-decoration: none; }
.steps-head { display: none; }
.ffl-steps { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 12px; }
.ffl-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.ffl-steps .step-num { width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; color: #1A1916; background: #C07A5A; }
.ffl-steps h3 { margin: 0 0 4px; }
.ffl-steps p { margin: 0; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.faq summary { min-height: 56px; display: flex; align-items: center; padding: 12px 48px 12px 16px; cursor: pointer; font-weight: 600; font-size: 1.25rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: #F7BA96; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 4v16M4 12h16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 4v16M4 12h16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>") center / contain no-repeat; }
.faq details[open] summary::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 12h16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 12h16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/></svg>"); }
.faq details p { padding: 0 16px 16px; margin: 0; }
.contact-nap { list-style: none; padding: 0; margin: 0 0 16px; font-size: 1.25rem; }
.footer-tagline, .footer-nap { font-size: 1rem; line-height: 1.6; }
.footer-tagline { color: #F7BA96; }
label.check.agree { align-items: flex-start; font-size: 1.25rem; line-height: 1.5; margin: 12px 0; }
.agree-links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; justify-items: center; }
.agree-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px; font-size: 1.25rem; text-align: center; }
@media (min-width: 640px) {
  .founder-mark { width: 160px; }
}
@media (min-width: 1024px) {
  .steps-head { display: grid; grid-template-columns: 64px 1fr; gap: 16px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 -4px; padding: 0 16px; opacity: 0.75; }
  .ffl-steps li { grid-template-columns: 48px 200px 1fr; }
  .ffl-steps li > div { display: contents; }
  .ffl-steps h3 { align-self: center; }
  .ffl-steps p { align-self: center; }
}

.product-tile, .built-card { text-align: center; }

.footer-nap { overflow-wrap: anywhere; }

/* No-JS: the Menu button cannot open, so show the nav links in a wrapped row under the bar. */
@media (max-width: 719.98px) {
  html:not(.js) .site-header { height: auto; min-height: var(--header-h); }
  html:not(.js) .site-bar { flex-wrap: wrap; min-height: var(--header-h); }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .cart-link { margin-left: auto; }
  html:not(.js) .site-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; order: 3; width: 100%; padding: 0 0 8px; border-bottom: 0; }
  html:not(.js) .site-nav a { justify-content: center; }
}

/* Pages that store.js fills: keep the static footer below the first screen until main is rendered, so it does not shift (CLS). */
html.js body:is([data-page="shop"], [data-page="category"], [data-page="product"], [data-page="cart"], [data-page="checkout"], [data-page="confirm"]) main {
  min-height: calc(100svh - var(--header-h) - 24px);
}
