:root {
  color-scheme: light;
  --canvas: #f2efe7;
  --surface: #fffdf8;
  --surface-soft: #e9e5da;
  --ink: #23251f;
  --muted: #707269;
  --line: #d6d1c4;
  --forest: #26372d;
  --forest-soft: #405448;
  --brass: #a97b38;
  --error: #8d3f36;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1500px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-mark {
  width: 52px;
  height: 52px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.wordmark > span:last-child { display: grid; gap: 2px; }
.wordmark strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.wordmark small { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.site-nav { position: absolute; left: 50%; display: flex; align-items: center; gap: 28px; transform: translateX(-50%); }
.site-nav a { color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover { color: var(--forest); }

.header-meta { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 12px; font-weight: 700; }
.header-meta > span + span::before { margin-right: 24px; content: "·"; color: var(--brass); }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: var(--forest); }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #64875f; box-shadow: 0 0 0 3px rgba(100, 135, 95, 0.14); }
.basket-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--forest);
  border-radius: 4px;
  background: transparent;
  color: var(--forest);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.basket-button.has-items {
  background: var(--forest);
  color: #fffdf8;
}
.basket-button b {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-size: 11px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.basket-button.has-items b {
  background: #fffdf8;
  color: var(--forest);
}
.basket-button b[hidden] { display: none; }
.basket-button.is-bumping { animation: basket-button-bump 0.55s ease; }
.basket-button.is-bumping b,
.basket-button b.is-bumping { animation: basket-count-bump 0.55s ease; }
@keyframes basket-button-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes basket-count-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .basket-button.is-bumping,
  .basket-button.is-bumping b,
  .basket-button b.is-bumping { animation: none; }
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  width: min(1500px, 100%);
  min-height: min(760px, calc(100svh - 76px));
  margin: 0 auto;
  padding: 52px 32px 64px;
  overflow: hidden;
}
.home-hero-copy { position: relative; z-index: 3; max-width: 620px; }
.home-hero h1 { max-width: 640px; font-size: clamp(46px, 5.3vw, 82px); line-height: 0.96; }
.hero-lede { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.primary-link { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 23px; border: 1px solid var(--forest); border-radius: 3px; background: var(--forest); color: #fffdf8; font-size: 12px; font-weight: 650; text-decoration: none; text-transform: uppercase; }
.primary-link:hover { background: var(--forest-soft); }
.text-link { color: var(--forest); font-size: 12px; font-weight: 650; text-decoration: none; text-transform: uppercase; }
.text-link span { display: inline-block; margin-left: 7px; color: var(--brass); }
.hero-assurances { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 34px 0 0; padding: 19px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 600; list-style: none; text-transform: uppercase; }
.hero-assurances li::before { margin-right: 7px; color: var(--brass); content: "\2713"; }

.hero-gallery { position: relative; min-height: 625px; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-strip p { margin: 0; padding: 23px 30px; color: var(--muted); font-size: 11px; text-align: center; }
.trust-strip p + p { border-left: 1px solid var(--line); }
.trust-strip strong { color: var(--ink); }

.home-section { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 105px 0; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 70px; margin-bottom: 48px; }
.home-section-heading h2, .process-intro h2, .home-cta h2 { max-width: 720px; margin: 0; font-size: clamp(38px, 4.6vw, 66px); line-height: 0.98; }
.home-section-heading > p { max-width: 450px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.examples-section { width: min(1500px, calc(100% - 48px)); }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: clamp(24px, 3.4vw, 58px); }
.example-item { min-width: 0; }
.example-frame { padding: clamp(11px, 1.4vw, 19px); background: #b69265; box-shadow: 0 20px 45px rgba(44, 42, 35, 0.17), inset 0 0 0 1px rgba(50, 38, 21, 0.35); }
.frame-black { background: #262722; }
.gallery-print { width: 100%; box-shadow: inset 0 0 0 1px rgba(68, 61, 48, 0.18); }
.example-proof { display: block; height: auto; aspect-ratio: 297 / 420; object-fit: cover; }
.static-poster { --crop-zoom: 1.08; --crop-y: 50%; }
.example-item > p { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0 0; font-size: 11px; }
.example-item > p strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.example-item > p span { color: var(--muted); text-align: right; }

.process-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(55px, 9vw, 140px); width: 100%; padding-right: max(24px, calc((100% - 1380px) / 2)); padding-left: max(24px, calc((100% - 1380px) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.process-intro > p:last-child { max-width: 500px; margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.process-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--brass); font-family: var(--serif); font-size: 25px; }
.process-list h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.process-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.confidence-section { padding-bottom: 120px; }
.confidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.confidence-grid article { min-height: 270px; padding: 34px; background: var(--surface); }
.confidence-grid article > span { color: var(--brass); font-family: var(--serif); font-size: 25px; }
.confidence-grid h3 { margin: 24px 0 10px; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.1; }
.confidence-grid p { max-width: 330px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.home-cta { display: grid; justify-items: center; padding: 95px 24px 105px; background: var(--forest); color: #f6f2e8; text-align: center; }
.home-cta img { width: 84px; height: 84px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.home-cta h2 { max-width: 760px; }
.home-cta .primary-link { margin-top: 30px; border-color: #f6f2e8; background: #f6f2e8; color: var(--forest); }
.home-cta .eyebrow { color: #c6a66f; }

.app-shell { width: min(1500px, 100%); margin: 0 auto; padding: 30px 24px 48px; }
.builder-shell { scroll-margin-top: 76px; }
.product-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding: 10px 0 26px; }
.eyebrow { margin: 0 0 7px; color: var(--brass); font-size: 11px; font-weight: 650; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { max-width: 720px; margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; }
.builder-title { max-width: 720px; margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; }
.product-note { max-width: 430px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.step-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step-nav a { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 0 18px; color: var(--muted); text-decoration: none; }
.step-nav a + a { border-left: 1px solid var(--line); }
.step-nav b { color: var(--brass); font-family: var(--serif); font-size: 18px; font-weight: 500; }
.step-nav span { font-size: 12px; font-weight: 650; text-transform: uppercase; }
.step-nav a:hover { background: rgba(255, 253, 248, 0.55); color: var(--ink); }
.step-nav a[data-state="pending"] { opacity: 0.38; pointer-events: none; }
.step-nav a[data-state="complete"] { color: var(--forest); }

.workspace { display: grid; grid-template-columns: minmax(520px, 0.9fr) minmax(500px, 1.1fr); align-items: start; gap: 34px; }
.configurator { display: grid; gap: 16px; }
.config-section { scroll-margin-top: 20px; border: 1px solid var(--line); background: var(--surface); }
.config-section.is-pending { opacity: 0.38; filter: grayscale(0.35); pointer-events: none; user-select: none; }
.config-section.is-complete .section-heading > span { color: #607b5d; }
.config-section.has-validation-errors { border-color: rgba(141, 63, 54, 0.7); }
.config-section.has-validation-errors .section-heading { border-bottom-color: rgba(141, 63, 54, 0.34); }
.config-section > *:not(.section-heading) { margin-right: 22px; margin-left: 22px; }
.config-section > *:last-child { margin-bottom: 24px; }

.section-heading { display: flex; align-items: center; gap: 15px; padding: 20px 22px 17px; border-bottom: 1px solid var(--line); }
.section-heading > span { color: var(--brass); font-family: var(--serif); font-size: 25px; }
.section-heading p { margin: 0 0 2px; color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: 27px; line-height: 1; }
.section-validation { margin-top: 16px; margin-bottom: 4px; padding: 12px 14px; border-left: 3px solid var(--error); background: rgba(141, 63, 54, 0.08); color: var(--error); font-size: 12px; font-weight: 650; line-height: 1.45; }
.form-grid label.has-validation-error > input,
.form-grid label.has-validation-error > select { border-color: var(--error); background: rgba(141, 63, 54, 0.04); box-shadow: 0 0 0 3px rgba(141, 63, 54, 0.08); }
.proof-approval:has(input[aria-invalid="true"]) { outline: 1px solid var(--error); outline-offset: 3px; }

.source-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; padding: 0; border: 0; }
.source-options legend { grid-column: 1 / -1; width: 100%; padding: 0 0 2px; color: var(--ink); font-family: var(--serif); font-size: 18px; }
.source-options label { position: relative; display: flex; min-width: 0; min-height: 104px; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 9px; padding: 9px; border: 1px solid var(--line); background: #fbfaf6; cursor: pointer; }
.source-options label:hover { border-color: #aaa598; }
.source-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.source-options label:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: #f4f4ed; }
.source-options label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.source-options label:has(input:disabled) { cursor: not-allowed; opacity: 0.58; }
.source-options label > span:last-child { display: grid; gap: 4px; }
.source-options b { color: var(--ink); font-size: 11px; line-height: 1.25; }
.source-options small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.source-logo { display: grid; width: 100%; height: 45px; place-items: center; padding: 8px; overflow: hidden; background: #18211c; }
.source-logo img { display: block; width: 100%; max-width: 130px; height: 100%; object-fit: contain; }
.source-logo-irl { background: #e9e6dd; }
.source-logo-irl img { width: 40px; height: 40px; object-fit: contain; }
.source-family { order: 3; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 7px; border: 1px solid #b7b2a6; background: #eeece5; }
.source-card-irl { order: 2; }
.source-family .source-family-title { grid-column: 1 / -1; color: var(--forest); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.source-family label { min-height: 87px; }
.source-family .source-logo { height: 38px; }
.quality-note { margin-top: 12px; padding: 11px 13px; border-left: 3px solid var(--brass); background: #f5efe4; color: var(--muted); font-size: 10px; line-height: 1.5; }
.quality-note strong { color: var(--ink); }

.upload-layout { display: grid; grid-template-columns: 1fr 112px; gap: 14px; margin-top: 22px; }
.secondary-upload { display: grid; grid-template-columns: 1fr 76px; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.secondary-upload-zone { position: relative; display: flex; min-height: 66px; align-items: center; gap: 11px; padding: 10px 12px; border: 1px dashed #aaa598; background: #f8f6ef; cursor: pointer; }
.secondary-upload-zone:hover { border-color: var(--forest); }
.secondary-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.secondary-upload-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid var(--forest); color: var(--forest); font-family: var(--serif); font-size: 20px; }
.secondary-upload-zone > span:last-of-type { display: grid; gap: 4px; }
.secondary-upload-zone b { font-size: 11px; }
.secondary-upload-zone small { color: var(--muted); font-size: 9px; }
.secondary-preview { display: grid; min-height: 66px; place-items: center; overflow: hidden; border: 1px solid var(--line); color: var(--muted); font-size: 8px; text-transform: uppercase; }
.secondary-preview img { display: none; width: 100%; height: 100%; object-fit: cover; }
.secondary-preview.has-image img { display: block; }
.secondary-preview.has-image span { display: none; }
.upload-zone {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-content: center;
  gap: 3px 12px;
  min-height: 112px;
  padding: 16px;
  border: 1px dashed #aaa698;
  background: #f7f4ed;
  cursor: pointer;
}
.upload-zone.is-dragging { border-color: var(--brass); background: #f1eadc; }
.upload-icon { grid-row: 1 / 3; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--forest); color: var(--forest); font-family: var(--serif); font-size: 22px; }
.upload-title { align-self: end; font-size: 14px; font-weight: 650; }
.upload-copy { align-self: start; color: var(--muted); font-size: 11px; }
.upload-zone input { grid-column: 1 / -1; width: 100%; margin-top: 8px; font-size: 11px; }

.screen-preview { position: relative; display: grid; min-height: 112px; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #171b17; color: #a8aaa3; font-size: 11px; text-transform: uppercase; }
.screen-preview img { display: none; width: 100%; height: 100%; object-fit: contain; }
.screen-preview.has-image img { display: block; }
.screen-preview.has-image span { display: none; }

.reset-button { display: block; width: auto; margin-top: 12px; }
.primary-button, .quiet-button, .proof-button { min-height: 44px; border-radius: 4px; padding: 0 17px; font-weight: 650; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--forest); background: var(--forest); color: #fffdf8; text-decoration: none; }
.primary-button.is-added { border-color: #496547; background: #496547; }
.primary-button:not(:disabled):hover { background: var(--forest-soft); }
.quiet-button, .proof-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.quiet-button:hover, .proof-button:hover { border-color: #9e998d; background: #f6f3eb; }
.status { min-height: 35px; margin-top: 8px; padding: 8px 0; color: var(--muted); font-size: 12px; }
.status[data-tone="success"] { color: #496547; }
.status[data-tone="working"] { color: #8a672f; }
.status[data-tone="error"] { color: var(--error); }

.ocr-panel { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.ocr-panel summary { cursor: pointer; font-weight: 600; }
.ocr-panel textarea { width: 100%; min-height: 150px; margin: 12px 0; resize: vertical; border: 1px solid var(--line); border-radius: 3px; background: #f8f6f0; color: var(--ink); padding: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.form-grid label, .crop-controls label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.full-field { grid-column: 1 / -1; }
.map-preview-status { min-height: 34px; margin-top: -4px; padding: 8px 10px; border-left: 3px solid var(--line); background: #f7f4ed; color: var(--muted); font-size: 10px; line-height: 1.45; }
.map-preview-status[data-state="working"] { border-left-color: var(--brass); }
.map-preview-status[data-state="ready"] { border-left-color: #607b5d; color: #496547; }
.map-preview-status[data-state="error"] { border-left-color: var(--error); color: var(--error); }
input, select { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 3px; background: #fbfaf6; color: var(--ink); padding: 8px 10px; }
input[type="date"] { display: block; width: 100%; min-width: 0; max-width: 100%; text-align: left; text-align-last: left; }
input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
input[type="date"]::-webkit-datetime-edit { min-width: 0; text-align: left; }
input:hover, select:hover { border-color: #aaa598; }
input:disabled { cursor: progress; opacity: 0.65; }
input[type="range"] { min-height: 24px; padding: 0; accent-color: var(--brass); }
.star-picker-field > input { display: none; }
.star-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.star-picker button { display: grid; min-height: 43px; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: #fbfaf6; color: #c6c1b4; font-size: 17px; line-height: 1; cursor: pointer; }
.star-picker button:hover { border-color: var(--brass); color: var(--brass); }
.star-picker button.is-selected { border-color: #9a7428; background: #f5eee0; color: #9a7428; box-shadow: inset 0 0 0 1px #9a7428; }
.star-picker button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.crop-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; margin-top: 22px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.crop-controls legend, .choice-group legend { padding: 0 0 10px; color: var(--ink); font-family: var(--serif); font-size: 18px; }
.crop-controls label > span { display: flex; justify-content: space-between; gap: 12px; }
.crop-controls output { color: var(--ink); font-variant-numeric: tabular-nums; }
.continue-button { display: block; width: auto; margin-top: 20px; }

.choice-group { display: grid; gap: 9px; margin-top: 22px; padding: 0; border: 0; }
.theme-options { grid-template-columns: repeat(3, 1fr); }
.size-options { grid-template-columns: repeat(4, 1fr); }
.frame-options { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.choice-group legend { grid-column: 1 / -1; width: 100%; }
.choice-group label { position: relative; display: flex; min-height: 68px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); background: #fbfaf6; cursor: pointer; color: var(--muted); font-size: 11px; text-align: center; }
.choice-group label:hover { border-color: #a9a497; }
.choice-group input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-group label:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); color: var(--ink); }
.choice-group label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.choice-group.is-disabled { opacity: 0.42; }
.choice-group.is-disabled label { cursor: not-allowed; }
.choice-group label > span:not(.theme-swatch):not(.frame-swatch) { display: grid; gap: 3px; }
.choice-group b { font-size: 12px; }
.choice-group small { color: var(--muted); font-size: 9px; }
.theme-swatch { width: 22px; height: 28px; border: 1px solid #aaa598; }
.theme-swatch.archive { background: #e7dfcd; }
.theme-swatch.birch { background: #f0ece2; }
.theme-swatch.charcoal { background: #282b27; }
.frame-swatch { width: 27px; height: 34px; background: #e4ddce; box-shadow: inset 0 0 0 3px #f8f5ed; }
.frame-swatch.none { border: 1px dashed #8d897f; }
.frame-swatch.black { border: 4px solid #242521; }
.frame-swatch.oak { border: 4px solid #a88457; }
.frame-swatch.hanger-black, .frame-swatch.hanger-oak { position: relative; border: 0; background: transparent; box-shadow: none; }
.frame-swatch.hanger-black::before, .frame-swatch.hanger-black::after, .frame-swatch.hanger-oak::before, .frame-swatch.hanger-oak::after { content: ""; position: absolute; left: 1px; right: 1px; height: 5px; background: #242521; }
.frame-swatch.hanger-oak::before, .frame-swatch.hanger-oak::after { background: #a88457; }
.frame-swatch.hanger-black::before, .frame-swatch.hanger-oak::before { top: 4px; }.frame-swatch.hanger-black::after, .frame-swatch.hanger-oak::after { bottom: 4px; }
.proof-approval { display: grid; grid-template-columns: 18px 1fr; gap: 11px; margin-top: 22px; padding: 15px 16px; border: 1px solid var(--line); background: #f8f6ef; cursor: pointer; }
.proof-approval input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--forest); }
.proof-approval span { display: grid; gap: 4px; }
.proof-approval b { font-size: 12px; }
.proof-approval small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.design-save-status { margin: 10px 0 0; color: #496547; font-size: 10px; font-weight: 700; }

.order-bar { display: grid; grid-template-columns: 1fr minmax(150px, auto); align-items: center; gap: 16px; margin-top: 24px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-bar > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
.order-bar span { color: var(--muted); font-size: 11px; font-weight: 600; }
.order-bar strong { grid-column: 2; grid-row: 1 / 3; align-self: center; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.order-bar small { color: var(--ink); font-size: 12px; }
.proof-button { display: block; width: auto; margin-top: 12px; }

.poster-stage { position: sticky; top: 20px; display: grid; justify-items: center; min-width: 0; padding: 0 24px 30px; }
.preview-toolbar { display: flex; width: min(100%, 630px); justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; }
.preview-caption { max-width: 430px; margin: 14px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.poster {
  --crop-zoom: 1.08;
  --crop-x: 50%;
  --crop-y: 46%;
  --crop-rotation: 0deg;
  --map-image: url("assets/maps/askiy-ridge.jpg");
  --medal-color: #9a7428;
  --medal-color-charcoal: #c4a45e;
  --medal-display: var(--medal-color);
  --poster-paper: #e7dfcd;
  --poster-ink: #242119;
  --poster-muted: #655c4e;
  --poster-rule: #978b74;
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-rows: 53% 47%;
  width: min(100%, 630px);
  aspect-ratio: 297 / 420;
  overflow: hidden;
  border-radius: 1px;
  background: var(--poster-paper);
  color: var(--poster-ink);
  box-shadow: 0 28px 75px rgba(39, 37, 31, 0.22);
}
.poster[data-theme="birch"] { --poster-paper: #f0ece2; --poster-ink: #262722; --poster-muted: #6b6b61; --poster-rule: #a5a094; }
.poster[data-theme="charcoal"] { --poster-paper: #282b27; --poster-ink: #ece7da; --poster-muted: #b9b6ad; --poster-rule: #77796f; --medal-display: var(--medal-color-charcoal); }

.poster-image-wrap { position: relative; overflow: hidden; background: #171a17; }
.poster-image-wrap.is-crop-enabled { cursor: grab; touch-action: none; }
.poster-image-wrap.is-crop-enabled:active { cursor: grabbing; }
.poster-image-wrap img { display: block; width: 100%; height: 100%; pointer-events: none; object-fit: cover; object-position: var(--crop-x) var(--crop-y); transform: rotate(var(--crop-rotation)) scale(var(--crop-zoom)); transform-origin: var(--crop-x) var(--crop-y); filter: saturate(0.86) contrast(1.08); }
.poster-image-wrap::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(to bottom, rgba(17, 20, 17, 0.12), transparent 42%); }
.poster-image-label { position: absolute; z-index: 2; left: 5.8cqw; bottom: 4.5cqw; display: grid; gap: 0.4cqw; color: #f5f1e8; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.72); }
.poster-image-label span { font-size: 1.65cqw; font-weight: 650; text-transform: uppercase; }
.poster-image-label strong { max-width: 66cqw; font-family: var(--serif); font-size: 3.1cqw; line-height: 1; text-transform: uppercase; }

.poster-content { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 1.65cqw; overflow: visible; padding: 4.4cqw 5.8cqw 4.6cqw; background: var(--poster-paper); }
.poster-content::after { position: absolute; z-index: 0; inset: 0; content: ""; pointer-events: none; background-image: var(--map-image); background-position: 54% 42%; background-size: cover; background-repeat: no-repeat; filter: grayscale(1) sepia(0.3) contrast(1.32); opacity: 0.2; mix-blend-mode: multiply; }
.poster[data-theme="charcoal"] .poster-content::after { filter: grayscale(1) contrast(1.26) invert(1); opacity: 0.15; mix-blend-mode: screen; }
.poster-content > * { position: relative; z-index: 1; }
.poster-heading { display: flex; align-items: start; justify-content: space-between; min-height: 5.6cqw; gap: 3cqw; }
.poster-kicker, .poster-archive, .poster-subtitle { margin: 0; }
.poster-kicker { color: var(--medal-display); font-size: 2.05cqw; font-weight: 700; text-transform: uppercase; }
.poster-archive { margin-top: 0.45cqw; color: var(--poster-muted); font-size: 1.5cqw; font-weight: 600; text-transform: uppercase; }
.trophy-medal-icon { --medal-icon: url("assets/trophy-icons/great-one.svg"); display: block; width: 5.7cqw; height: 5.7cqw; flex: 0 0 auto; background: var(--medal-display); -webkit-mask: var(--medal-icon) center / contain no-repeat; mask: var(--medal-icon) center / contain no-repeat; }
.poster h2 { margin: 0; max-width: 90cqw; overflow-wrap: anywhere; color: var(--poster-ink); font-family: var(--serif); font-size: 9cqw; line-height: 0.92; text-transform: uppercase; }
.poster-subtitle { display: flex; gap: 2.8cqw; color: var(--poster-muted); font-size: 2.05cqw; font-weight: 650; text-transform: uppercase; }
.poster-subtitle span + span::before { margin-right: 2.8cqw; content: "/"; color: var(--poster-rule); }
.rating-row { display: flex; align-items: end; justify-content: space-between; gap: 3cqw; margin-top: 0.4cqw; padding: 1.7cqw 0 1.6cqw; border-top: 0.3cqw solid var(--poster-rule); border-bottom: 0.3cqw solid var(--poster-rule); }
.rating-row > div { display: grid; gap: 0.7cqw; }
.rating-row span, .poster-stats dt { color: var(--poster-muted); font-size: 1.55cqw; font-weight: 700; text-transform: uppercase; }
.rating-row small { color: var(--poster-muted); font-size: 1.55cqw; text-transform: uppercase; }
.rating-row small b { color: var(--poster-ink); }
.rating-row strong { color: var(--medal-display); font-family: var(--serif); font-size: 6.5cqw; line-height: 0.85; }
.rating-row strong.is-star-rating { font-family: var(--sans); font-size: 4.2cqw; font-weight: 700; }
.poster-stats { display: grid; grid-template-columns: 0.9fr 1fr 1.55fr 0.9fr; gap: 2.4cqw; margin: 0; padding-top: 0.6cqw; }
.poster-stats div { min-width: 0; }
.poster-stats dt, .poster-stats dd { margin: 0; }
.poster-stats dd { margin-top: 0.45cqw; overflow-wrap: anywhere; color: var(--poster-ink); font-size: 1.9cqw; font-weight: 650; line-height: 1.08; }
.poster-shot-details { display: grid; grid-template-columns: 1.35fr 0.85fr 1.3fr; gap: 1.2cqw 2.2cqw; margin: 1.35cqw 0 0; padding-top: 1.25cqw; border-top: 0.16cqw solid var(--poster-rule); }
.poster-shot-details[hidden], .poster-shot-details div[hidden] { display: none; }
.poster-shot-details dt, .poster-shot-details dd { margin: 0; }
.poster-shot-details dt { color: var(--poster-muted); font-size: 1.2cqw; font-weight: 700; text-transform: uppercase; }
.poster-shot-details dd { margin-top: 0.28cqw; overflow-wrap: anywhere; color: var(--poster-ink); font-size: 1.35cqw; font-weight: 650; line-height: 1.08; }
.poster-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2.4cqw; margin-top: auto; padding-top: 1.8cqw; border-top: 0.16cqw solid var(--poster-rule); }
.poster.has-footer-brand .poster-footer,
.static-poster.has-footer-brand .poster-footer { grid-template-columns: 11cqw minmax(0, 1fr) auto; align-items: center; }
.poster-footer-brand { display: none; align-items: center; min-width: 0; }
.poster.has-footer-brand .poster-footer-brand,
.static-poster.has-footer-brand .poster-footer-brand { display: grid; }
.poster-game-logo { display: block; width: 11cqw; max-height: 5.8cqw; object-fit: contain; object-position: left center; filter: grayscale(1) brightness(0.28) sepia(0.12); }
.poster[data-theme="charcoal"] .poster-game-logo { filter: grayscale(1) brightness(0) invert(0.78) sepia(0.12); }
.poster-game-logo[hidden] { display: none; }
.reserve-logo { --reserve-logo: url("assets/reserve-logos/askiy-ridge.png"); width: 10cqw; height: 6.8cqw; background: var(--poster-muted); -webkit-mask: var(--reserve-logo) center / contain no-repeat; mask: var(--reserve-logo) center / contain no-repeat; }
.reserve-logo[hidden] { display: none; }
.poster-place { display: grid; gap: 0.35cqw; min-width: 0; }
.poster-place span, .poster-footer time { color: var(--poster-muted); font-size: 1.45cqw; font-weight: 600; text-transform: uppercase; }
.poster-place span[hidden] { display: none; }
.poster-place strong { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--poster-ink); font-family: var(--serif); font-size: 2.1cqw; line-height: 1.05; text-transform: uppercase; }
.poster-footer time { max-width: 30cqw; text-align: right; white-space: nowrap; line-height: 1.2; }

.mini-print { position: absolute; width: 330px; box-shadow: 0 28px 65px rgba(40, 39, 33, 0.24); }
.mini-print-main { z-index: 2; top: 15px; left: 50%; width: 390px; transform: translateX(-50%) rotate(-1deg); }
.mini-print-left { z-index: 1; bottom: 0; left: 0; width: 285px; transform: rotate(-7deg); }
.mini-print-right { z-index: 1; right: 0; bottom: 12px; width: 285px; transform: rotate(7deg); }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; max-width: 1100px; margin: 42px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-nav a { color: var(--forest); font-size: 10px; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.footer-nav a:hover { text-decoration: underline; }
.legal-note { max-width: 1000px; margin: 20px auto 0; color: #8a8a81; font-size: 10px; line-height: 1.5; text-align: center; }
.legal-note a { color: var(--forest); }
.account-link { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid var(--line); color: var(--forest); font-size: 10px; font-weight: 750; text-decoration: none; text-transform: uppercase; }
.account-link:hover { border-color: var(--forest); }
.draft-status { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.basket-dialog { width: min(430px, calc(100% - 30px)); border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); padding: 28px; box-shadow: 0 25px 80px rgba(22, 24, 20, 0.28); }
.basket-dialog::backdrop { background: rgba(31, 34, 29, 0.58); }
.basket-dialog h2 { margin: 0 0 22px; font-size: 32px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); font-size: 24px; }
.basket-summary { display: grid; gap: 7px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.basket-summary span { color: var(--muted); }
.basket-summary strong { margin-top: 5px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.basket-copy { margin: 18px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.basket-checkout-status { min-height: 18px; margin: -7px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.basket-checkout-status[data-tone="error"] { color: var(--error); }
.basket-checkout-status[data-tone="ready"] { color: #496547; }
.basket-dialog .primary-button { width: 100%; }
.basket-proof { width: 100%; margin-top: 9px; }
.basket-remove { width: 100%; margin-top: 9px; }
.mobile-studio-dock, .mobile-preview-dialog { display: none; }

@media (max-width: 1360px) {
  .site-nav a:last-child,
  .header-meta > span:nth-child(2) { display: none; }
}

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding: 54px 32px 52px; }
  .home-hero-copy { width: min(100%, 760px); max-width: none; }
  .home-hero h1 { max-width: 760px; font-size: clamp(50px, 7vw, 76px); }
  .hero-lede { max-width: 650px; }
  .hero-gallery { width: min(100%, 760px); min-height: 590px; margin: 22px auto 0; }
  .mini-print-main { width: min(390px, 52vw); }
  .mini-print-left, .mini-print-right { width: min(275px, 37vw); }
  .workspace { grid-template-columns: minmax(440px, 0.9fr) minmax(400px, 1.1fr); gap: 18px; }
  .poster-stage { padding-right: 8px; padding-left: 8px; }
  .size-options { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .site-header { min-height: 66px; padding: 10px 14px; }
  .header-meta > span { display: none; }
  .account-link { min-height: 38px; padding: 0 9px; font-size: 9px; }
  .home-hero { padding: 50px 18px 44px; }
  .home-hero-copy { max-width: 680px; }
  .home-hero h1 { font-size: clamp(44px, 10.5vw, 72px); }
  .hero-gallery { min-height: 570px; margin-top: 14px; }
  .mini-print-main { width: min(390px, 60vw); }
  .mini-print-left, .mini-print-right { width: min(280px, 44vw); }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip p { padding: 17px 20px; text-align: left; }
  .trust-strip p + p { border-top: 1px solid var(--line); border-left: 0; }
  .home-section { width: min(100% - 28px, 680px); padding: 74px 0; }
  .home-section-heading { display: grid; gap: 18px; margin-bottom: 34px; }
  .example-grid { grid-template-columns: 1fr; gap: 52px; max-width: 510px; margin: 0 auto; }
  .process-section { grid-template-columns: 1fr; gap: 44px; width: 100%; padding: 74px 18px; }
  .confidence-grid { grid-template-columns: 1fr; }
  .confidence-grid article { min-height: auto; }
  .app-shell { padding: 20px 12px 36px; }
  .product-heading { display: block; padding-bottom: 18px; }
  .product-note { margin-top: 12px; }
  .step-nav a { min-height: 50px; justify-content: center; padding: 0 8px; }
  .workspace { grid-template-columns: 1fr; }
  .poster-stage { display: none; }
  .poster { width: min(100%, 540px); }
  .config-section { scroll-margin-top: 78px; scroll-margin-bottom: 96px; }
  .builder-shell { padding-bottom: 116px; }
  body:has(.mobile-studio-dock[data-has-proof="true"]) .builder-shell { padding-bottom: calc(min(48dvh, 430px) + 36px); }
  .mobile-studio-dock {
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    height: min(48dvh, 430px);
    grid-template-rows: 36px minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(38, 55, 45, 0.24);
    border-radius: 6px;
    background: rgba(255, 253, 248, 0.97);
    box-shadow: 0 12px 30px rgba(35, 37, 31, 0.2);
    backdrop-filter: blur(12px);
  }
  .mobile-studio-dock[data-has-proof="false"] { height: auto; grid-template-rows: auto; }
  .mobile-studio-dock[data-has-proof="false"] .mobile-dock-heading,
  .mobile-studio-dock[data-has-proof="false"] .mobile-dock-preview { display: none; }
  .mobile-dock-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); }
  .mobile-dock-heading span { font-family: var(--serif); font-size: 15px; }
  .mobile-dock-heading small { color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; }
  .mobile-dock-preview { display: grid; min-height: 0; place-items: center; overflow: hidden; padding: 8px; background: #e9e5dc; cursor: pointer; }
  .mobile-dock-preview-canvas { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; }
  .mobile-dock-preview-canvas .poster { width: auto; height: 100%; max-width: 100%; box-shadow: 0 8px 22px rgba(39, 37, 31, 0.2); pointer-events: none; }
  .mobile-dock-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-top: 1px solid var(--line); background: rgba(255, 253, 248, 0.98); }
  .mobile-studio-summary { display: grid; min-width: 0; gap: 3px; }
  .mobile-studio-summary > span { color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; }
  .mobile-studio-summary > strong { overflow: hidden; font-family: var(--serif); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-dock-actions { display: flex; align-items: center; gap: 8px; }
  .mobile-studio-dock .quiet-button, .mobile-studio-dock .primary-button { min-height: 42px; padding: 0 13px; font-size: 11px; white-space: nowrap; }
  .mobile-preview-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    background: var(--canvas);
    color: var(--ink);
    padding: 0;
  }
  .mobile-preview-dialog[open] { display: block; }
  .mobile-preview-dialog::backdrop { background: rgba(31, 34, 29, 0.58); }
  .mobile-preview-dialog > header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 10px 60px 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .mobile-preview-dialog > header div { display: grid; gap: 2px; }
  .mobile-preview-dialog > header span { font-family: var(--serif); font-size: 22px; }
  .mobile-preview-dialog > header small { color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; }
  .mobile-preview-canvas { display: grid; min-height: calc(100dvh - 64px); place-items: center; padding: 18px 14px max(24px, env(safe-area-inset-bottom)); }
  .mobile-preview-canvas .poster { width: min(100%, 510px); max-height: calc(100dvh - 106px); box-shadow: 0 20px 50px rgba(39, 37, 31, 0.24); }
}

@media (max-width: 560px) {
  .wordmark small { display: none; }
  .wordmark strong { font-size: 15px; }
  .wordmark-mark { width: 38px; height: 38px; }
  .header-meta { gap: 8px; }
  .account-link { min-height: 36px; padding: 0 7px; font-size: 8px; }
  .home-hero { padding-top: 38px; }
  .home-hero h1 { font-size: 47px; }
  .hero-lede { margin-top: 20px; font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; margin-top: 24px; }
  .primary-link { width: 100%; }
  .text-link { text-align: center; }
  .hero-assurances { gap: 9px 16px; margin-top: 26px; }
  .hero-gallery { min-height: 480px; margin: 0 -12px; }
  .mini-print-main { top: 28px; width: min(300px, 74vw); }
  .mini-print-left, .mini-print-right { bottom: 5px; width: min(205px, 49vw); }
  .mini-print-left { left: 3px; }
  .mini-print-right { right: 3px; }
  .home-section-heading h2, .process-intro h2, .home-cta h2 { font-size: 41px; }
  .example-item > p { display: grid; gap: 5px; }
  .example-item > p span { text-align: left; }
  .process-list li { grid-template-columns: 48px 1fr; }
  .confidence-grid article { padding: 26px; }
  .home-cta { padding: 74px 18px 80px; }
  h1 { font-size: 36px; }
  .product-note { font-size: 12px; }
  .step-nav span { font-size: 10px; }
  .step-nav b { font-size: 15px; }
  .config-section > *:not(.section-heading) { margin-right: 16px; margin-left: 16px; }
  .section-heading { padding: 17px 16px 15px; }
  .form-grid, .crop-controls { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .upload-layout { grid-template-columns: 1fr 82px; }
  .source-options { grid-template-columns: 1fr; }
  .source-options label { min-height: 94px; }
  .source-family { grid-template-columns: 1fr 1fr; }
  .theme-options, .frame-options { grid-template-columns: repeat(3, 1fr); }
  .choice-group label { min-height: 62px; gap: 6px; }
  .theme-options label, .frame-options label { flex-direction: column; }
  .order-bar { grid-template-columns: 1fr; }
  .order-bar .primary-button { width: 100%; }
  .proof-button { width: 100%; }
  .mobile-studio-dock { right: 8px; left: 8px; }
  .mobile-dock-footer { gap: 8px; padding-right: 8px; padding-left: 10px; }
  .mobile-studio-summary > strong { font-size: 13px; }
  .mobile-studio-dock .quiet-button, .mobile-studio-dock .primary-button { padding: 0 11px; }
}

@page poster-a4 { size: 210mm 297mm; margin: 0; }
@page poster-a3 { size: 297mm 420mm; margin: 0; }
@page poster-a2 { size: 420mm 594mm; margin: 0; }
@media print {
  *, *::before, *::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { width: auto; height: auto; background: #fff; }
  #home, .site-header, .product-heading, .step-nav, .configurator, .preview-toolbar, .preview-caption, .footer-nav, .legal-note { display: none !important; }
  .app-shell { width: auto; padding: 0; }
  .workspace { display: block; }
  .poster-stage { display: block; width: auto; padding: 0; }
  .poster { position: static; border-radius: 0; box-shadow: none; }
  .poster[data-print-size="A4"] { page: poster-a4; width: 210mm; height: 297mm; }
  .poster[data-print-size="A3"], .poster[data-print-size="Digital"] { page: poster-a3; width: 297mm; height: 420mm; }
  .poster[data-print-size="A2"] { page: poster-a2; width: 420mm; height: 594mm; }
}
