:root {
  --bg: #ece7de;
  --paper: #f7f2e9;
  --surface: #fbf8f1;
  --ink: #11100d;
  --muted: #6f685d;
  --line: rgba(17, 16, 13, 0.16);
  --line-strong: rgba(17, 16, 13, 0.42);
  --accent: #b46b2a;
  --accent-dark: #7d4319;
  --oxide: #4d2a18;
  --dark: #16130f;
  --dark-muted: #b9aea0;
  --danger: #9a3412;
  --shadow: 0 26px 80px rgba(24, 19, 13, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  text-rendering: geometricPrecision;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(17, 16, 13, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 16, 13, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; overflow-wrap: break-word; }
h1, h2, h3 { line-height: 0.96; letter-spacing: 0; word-break: normal; hyphens: manual; }
h1 { max-width: 10.2ch; font-size: clamp(4.2rem, 12vw, 11.2rem); font-weight: 700; }
h2 { font-size: clamp(2.6rem, 7vw, 7.6rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 2rem); font-weight: 700; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(236, 231, 222, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 74px;
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}
.brand-mark {
  width: 34px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  position: relative;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateY(-50%);
}
.brand-mark::before { left: 5px; }
.brand-mark::after { right: 5px; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 0;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
}
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  object-fit: cover;
  object-position: 58% center;
  filter: grayscale(0.38) contrast(1.12) saturate(0.82) brightness(0.72);
  transform: scale(1.035);
  animation: image-settle 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 14, 10, 0.92) 0%, rgba(18, 14, 10, 0.72) 36%, rgba(18, 14, 10, 0.12) 74%),
    linear-gradient(0deg, rgba(18, 14, 10, 0.78) 0%, transparent 42%);
}
.hero-frame {
  position: relative;
  min-height: calc(100svh - 74px);
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3.2rem) 0;
}
.hero-kicker {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--dark-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-content { grid-column: 1; align-self: center; max-width: 940px; }
.memory-lockup {
  grid-column: 2;
  align-self: center;
  display: grid;
  gap: 0.85rem;
  max-width: 360px;
  color: var(--paper);
  border-top: 1px solid rgba(247, 242, 233, 0.38);
  padding-top: 1rem;
}
.memory-mark {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 242, 233, 0.48);
  border-radius: 50%;
  background: rgba(247, 242, 233, 0.08);
  backdrop-filter: blur(8px);
}
.memory-mark::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 242, 233, 0.28);
  border-radius: 50%;
}
.memory-heart {
  position: relative;
  width: 30px;
  height: 30px;
  background: #d7a16d;
  transform: rotate(-45deg);
}
.memory-heart::before,
.memory-heart::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d7a16d;
}
.memory-heart::before { top: -15px; left: 0; }
.memory-heart::after { top: 0; left: 15px; }
.memory-play {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--paper);
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.35));
}
.memory-label {
  color: #d7a16d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.memory-slogan {
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  font-weight: 700;
}
.memory-small {
  color: var(--dark-muted);
  font-size: 0.98rem;
}
.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero .eyebrow { color: #d7a16d; }
.lead {
  max-width: 700px;
  margin-top: 1.45rem;
  color: rgba(247, 242, 233, 0.84);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
}
.hero-actions,
.cart-heading,
.admin-header,
.admin-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 2.2rem; }

.button,
.text-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0.88rem 1rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--paper); }
.hero .button.primary { background: var(--paper); color: var(--ink); }
.button.primary:hover { background: var(--accent); color: #fff; }
.button.secondary { border: 1px solid currentColor; background: transparent; color: inherit; }
.button.inverse { background: var(--paper); color: var(--ink); }
.button.wide { width: 100%; }
.button.disabled { pointer-events: none; opacity: 0.42; }
.text-button {
  background: transparent;
  color: var(--accent-dark);
  padding: 0;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.text-button:hover { color: var(--ink); }
.text-button.danger { color: var(--danger); }

.section,
.statement,
.price-band,
.page-intro,
.order-layout,
.checkout-layout,
.admin-header,
.admin-orders,
.site-footer {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}
.statement {
  padding: clamp(5rem, 10vw, 10rem) 0;
  border-bottom: 1px solid var(--line-strong);
}
.statement h2 { max-width: 13ch; }
.section {
  padding: clamp(5rem, 9vw, 9rem) 0;
  border-bottom: 1px solid var(--line);
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 7vw, 8rem);
}
.split-section h2 { max-width: 11ch; font-size: clamp(2.2rem, 5vw, 5.6rem); }
.text-column {
  display: grid;
  gap: 1.2rem;
  align-content: start;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}
.section-heading { margin-bottom: 2.2rem; }
.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.row-heading p:not(.eyebrow) { max-width: 360px; color: var(--muted); }

.format-grid { display: grid; border-top: 1px solid var(--line-strong); }
.format-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: baseline;
  min-height: 118px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.format-index { color: var(--muted); font-size: 0.8rem; font-weight: 900; }
.format-item span:nth-child(2) {
  font-size: clamp(2.2rem, 6vw, 6.8rem);
  font-weight: 700;
  line-height: 0.95;
}
.format-item strong { font-size: clamp(1rem, 2vw, 1.4rem); white-space: nowrap; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.steps li {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}
.steps li:last-child { border-right: 0; }
.steps span { color: var(--accent-dark); font-size: 0.8rem; font-weight: 900; }
.steps p,
.faq-list p,
.muted { color: var(--muted); }
.steps p { margin-top: 0.8rem; max-width: 28ch; }

.price-band {
  margin-top: clamp(4rem, 8vw, 8rem);
  margin-bottom: clamp(4rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 470px) auto;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--dark);
  color: var(--paper);
}
.price-band .eyebrow { color: #d7a16d; }
.price-band h2 { max-width: 8ch; font-size: clamp(2.6rem, 7vw, 7rem); }
.price-band p:not(.eyebrow) { color: var(--dark-muted); font-size: 1.06rem; }

.faq-list { border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line); padding: 1.35rem 0; }
summary {
  cursor: pointer;
  list-style-position: outside;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
}
details p { max-width: 780px; margin-top: 0.85rem; }

.site-footer {
  padding: 3.5rem 0 5rem;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  color: var(--muted);
}
.site-footer strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-intro {
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  display: grid;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.page-intro.narrow { max-width: 900px; }
.page-intro h1,
.admin-header h1 { max-width: 11ch; font-size: clamp(3rem, 9vw, 8rem); }
.page-intro p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.32rem); }

.order-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: 2rem 0 6rem;
}
.checkout-layout { grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr); }
.order-panel,
.cart-panel,
.summary-panel,
.checkout-panel,
.admin-order {
  background: rgba(251, 248, 241, 0.82);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.order-panel h2,
.cart-panel h2,
.summary-panel h2,
.checkout-panel h2 {
  max-width: none;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
}
.cart-panel,
.summary-panel { display: grid; gap: 1rem; }
.summary-panel.full { box-shadow: none; }
.stacked-form { display: grid; gap: 1rem; }
.stacked-form label,
.status-form label,
.quantity-label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 0.9rem 0.95rem;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 107, 42, 0.14);
}
.cart-lines { display: grid; gap: 0; }
.cart-lines.compact { gap: 0; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  animation: line-in 180ms ease both;
}
#cart-lines .cart-line { grid-template-columns: minmax(0, 1fr) 108px auto auto; }
.cart-line p { margin-top: 0.2rem; font-size: 0.95rem; }
.quantity-label input { min-width: 90px; }
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  font-size: 1.35rem;
}
.empty-state,
.form-error {
  border: 1px dashed var(--line-strong);
  border-radius: 0;
  padding: 1rem;
  color: var(--muted);
  background: rgba(251, 248, 241, 0.72);
}
.form-error:empty { display: none; }
.form-error { border-color: rgba(154, 52, 18, 0.36); color: var(--danger); }
.login-form { max-width: 460px; margin-top: 2rem; }

.admin-header { padding: clamp(4rem, 8vw, 7rem) 0 2rem; }
.admin-orders { display: grid; gap: 1rem; padding-bottom: 6rem; }
.admin-order-top { align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.status-form { display: flex; align-items: end; gap: 0.75rem; }
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
  padding-top: 1.25rem;
}
.admin-grid h3 { margin-bottom: 0.7rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes image-settle { from { transform: scale(1.08); } to { transform: scale(1.035); } }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

@media (max-width: 1060px) {
  .hero-frame,
  .split-section,
  .price-band,
  .order-layout,
  .checkout-layout,
  .admin-grid,
  .site-footer { grid-template-columns: 1fr; }
  .memory-lockup { grid-column: 1; max-width: 420px; }
  .price-band { align-items: start; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .nav { min-height: 66px; width: min(100% - 28px, 1480px); }
  .brand { gap: 0.65rem; font-size: 0.82rem; }
  .brand-mark { width: 32px; height: 21px; flex: 0 0 auto; }
  .nav-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0.5rem 0.78rem;
    background: rgba(247, 242, 233, 0.62);
  }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    padding: 0.7rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.82rem 0; }
  .section,
  .statement,
  .price-band,
  .page-intro,
  .order-layout,
  .checkout-layout,
  .admin-header,
  .admin-orders,
  .site-footer,
  .hero-frame { width: min(100% - 28px, 1480px); }
  .hero { min-height: calc(100svh - 66px); }
  .hero-frame {
    min-height: calc(100svh - 66px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.4rem, 9svh, 5rem) 0 clamp(2rem, 7svh, 4rem);
  }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 14, 10, 0.94) 0%, rgba(18, 14, 10, 0.8) 58%, rgba(18, 14, 10, 0.52) 100%),
      linear-gradient(180deg, rgba(18, 14, 10, 0.66) 0%, rgba(18, 14, 10, 0.34) 42%, rgba(18, 14, 10, 0.92) 100%);
  }
  .hero-image {
    object-position: 61% center;
    filter: grayscale(0.28) contrast(1.08) saturate(0.78) brightness(0.58);
  }
  .hero-kicker { display: none; }
  .hero-content {
    width: min(100%, 34rem);
    align-self: stretch;
  }
  .hero .eyebrow { margin-bottom: 0.7rem; font-size: 0.7rem; }
  h1 { max-width: 9.2ch; font-size: clamp(3.35rem, 15.5vw, 4.7rem); line-height: 0.98; }
  h2 { font-size: clamp(2.35rem, 12vw, 4.2rem); }
  .lead {
    max-width: 30ch;
    margin-top: 1rem;
    color: rgba(247, 242, 233, 0.9);
    font-size: clamp(1rem, 4.3vw, 1.16rem);
    line-height: 1.42;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 1.35rem;
  }
  .hero-actions .button {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.65rem;
    font-size: 0.72rem;
  }
  .memory-lockup { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement { padding: 3.8rem 0; }
  .statement h2 { max-width: 11ch; }
  .section { padding: 3.8rem 0; }
  .page-intro {
    padding: 3.2rem 0 1.25rem;
    gap: 0.8rem;
  }
  .page-intro h1,
  .admin-header h1 {
    max-width: 10ch;
    font-size: clamp(2.75rem, 13vw, 3.8rem);
    line-height: 1;
  }
  .page-intro p:not(.eyebrow) { font-size: 1rem; line-height: 1.5; }
  .order-layout,
  .checkout-layout {
    gap: 1rem;
    padding: 1rem 0 4rem;
  }
  .order-panel,
  .cart-panel,
  .summary-panel,
  .checkout-panel,
  .admin-order {
    padding: 1rem;
    background: rgba(251, 248, 241, 0.92);
  }
  .order-panel h2,
  .cart-panel h2,
  .summary-panel h2,
  .checkout-panel h2 {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
    line-height: 1.02;
  }
  .stacked-form { gap: 0.85rem; }
  input,
  select,
  textarea { padding: 0.82rem 0.85rem; }
  .row-heading,
  .cart-heading,
  .admin-header,
  .admin-order-top,
  .status-form { align-items: stretch; flex-direction: column; }
  .cart-heading { gap: 0.55rem; }
  .cart-line {
    gap: 0.75rem;
    align-items: stretch;
    padding: 0.9rem 0;
  }
  .cart-line p { font-size: 0.9rem; }
  .quantity-label input { min-width: 0; }
  .cart-total { font-size: 1.12rem; }
  .format-item { grid-template-columns: 42px minmax(0, 1fr); gap: 1rem; min-height: 96px; }
  .format-item span:nth-child(2) { font-size: clamp(2rem, 12vw, 3.4rem); }
  .format-item strong { grid-column: 2; }
  .price-band {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 1.25rem;
  }
  .price-band h2 { font-size: clamp(2.3rem, 12vw, 4rem); }
  .steps li { min-height: 190px; padding: 1rem 0; }
  .site-footer { grid-template-columns: 1fr; padding: 2.5rem 0 3.5rem; }
  #cart-lines .cart-line { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .button { justify-content: center; }
  h1 { font-size: clamp(3.05rem, 15vw, 3.75rem); }
  .lead { max-width: 29ch; }
}
