:root {
  color-scheme: dark;
  --bg: #191d20;
  --panel: #242a2e;
  --ink: #f8f2e8;
  --muted: #cbc8c0;
  --accent: #ed9955;
  --paper: #f3ebda;
  --border: #51565a;
  --gutter: clamp(1.2rem, 5vw, 5.5rem);
  --heading: "Barlow Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #ffab68; outline-offset: 4px; }
[hidden] { display: none !important; }
img, video { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1; overflow-wrap: anywhere; }
section { scroll-margin-top: 5rem; }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .7rem; background: #111; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter); }
.masthead { position: sticky; top: 0; z-index: 3; background: #191d20; min-height: 66px; border-bottom: 1px solid #ffffff21; }
.brand { white-space: nowrap; font-size: 1.25rem; font-weight: 900; letter-spacing: -.035em; }
.brand span { color: var(--accent); margin-right: .6rem; letter-spacing: -.08em; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2.3rem); font-size: .96rem; font-weight: 600; }
nav a:hover, .subtle:hover, .more:hover { color: var(--accent); }
.hero { position: relative; display: grid; isolation: isolate; align-items: end; min-height: clamp(470px, 55vw, 690px); overflow: hidden; background: #252d36; }
.scene-media, .scene-shade { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.scene-shade { z-index: -1; background: linear-gradient(90deg, #0d131ce5, #0d131c8a 28%, transparent 71%), linear-gradient(0deg, #10151ac7, transparent 54%); }
.hero-copy { padding: 4rem var(--gutter) clamp(6.5rem, 12vw, 10rem); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.eyebrow { font-size: .77rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.hero .eyebrow { color: #ffe3c9; }
h1, .hero-title { font-size: clamp(3.2rem, 8vw, 7rem); margin: .3rem 0 1.15rem; letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.55rem, 2.7vw, 2.55rem); }
.actions, .switch, .editor-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.accent, .outline, .subtle, .switch button, .mini, .close { border-radius: 4px; padding: .65rem .95rem; font-weight: 700; color: inherit; }
.accent { background: var(--accent); color: #21150d; border: 1px solid var(--accent); }
.accent:hover { background: #ffae70; }
.outline { background: #171d23db; border: 1px solid #e0d5ca9c; }
.outline:hover { background: #353d45; }
.subtle { background: none; border: 1px solid var(--border); }
.switch { position: absolute; right: var(--gutter); bottom: 1.5rem; gap: 0; border: 1px solid #f8f2e8cc; border-radius: 4px; background: #181d22; }
.switch button { border: 0; background: transparent; min-width: 4.5rem; }
.switch button[aria-pressed="true"] { background: var(--accent); color: #21150d; }
.hotspot { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; padding: 0; width: 2.65rem; height: 2.65rem; border: 2px solid #ffe1ba; color: #fff2df; border-radius: 50%; background: #1c1815a1; box-shadow: 0 0 0 5px #ed99554a; font-size: 1.4rem; }
.hotspot:hover { background: #845229; }
.models { padding: clamp(2.2rem, 5vw, 4rem) var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .65rem 1.5rem; margin-bottom: 1.5rem; }
.more { background: none; border: 0; color: var(--ink); padding: .25rem 0; font-weight: 650; }
.cards { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(.8rem, 2vw, 1.4rem); }
.card { position: relative; text-align: left; border: 0; border-radius: 5px; padding: 0; color: var(--ink); overflow: hidden; background: #30383d; min-height: 265px; aspect-ratio: 1.65; }
.card + .card { aspect-ratio: auto; }
.card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover img { transform: scale(1.045); }
.card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #101315ed); }
.card-copy { position: absolute; z-index: 1; bottom: 0; padding: 1.2rem; }
.card-copy .eyebrow { color: #ffe1c6; margin-bottom: .35rem; }
.workshop { display: grid; grid-template-columns: 1fr 2fr; gap: 1.4rem; padding: clamp(2.3rem, 6vw, 5rem) var(--gutter); background: var(--paper); color: #1b1d1e; }
.workshop .eyebrow { color: #58432f; padding-top: .45rem; }
.workshop h2 { max-width: 19ch; }
.workshop p:not(.eyebrow) { margin-top: 1rem; max-width: 57ch; line-height: 1.65; white-space: pre-wrap; }
.footer { min-height: 90px; flex-wrap: wrap; }
.footer-legal { flex-wrap: wrap; gap: .65rem 1rem; font-size: .83rem; }
.legal-page { max-width: 86ch; margin: 0 auto; padding-bottom: 3rem; }
.legal-page h2 { margin-block: 1.6rem .45rem; font-size: 1.45rem; }
.legal-page p, .legal-page address { margin-bottom: .9rem; line-height: 1.65; }
.legal-page address { font-style: normal; }
.legal-page a { color: var(--accent); text-decoration: underline; }
.footer > span { min-width: 0; max-width: 56ch; color: var(--muted); font-size: .83rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-meta { margin: 0 0 1.25rem; }
.detail-meta div { display: flex; align-items: baseline; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--border); }
.detail-meta dt { font-weight: 700; }
.detail-meta dd { margin: 0; }
.editor-head, .editor-foot { padding: 1rem; }
.editor-head { display: flex; justify-content: space-between; align-items: start; }
.editor-head .eyebrow { color: var(--accent); margin-bottom: .25rem; }
.editor-head h2 { font-size: 2.25rem; }
.editor-note { padding: 0 1rem .9rem; color: var(--muted); font-size: .86rem; }
.editor-body { flex: 1; min-height: 0; overflow: auto; padding: 0 1rem .75rem; }
.editor-foot { border-top: 1px solid var(--border); }
#editor-status { min-height: 1.15rem; font-size: .81rem; color: #ffe0c1; margin-bottom: .35rem; }
.editor-actions button { padding: .55rem .7rem; font-size: .83rem; }
.editor-block { border-top: 1px solid var(--border); padding: .65rem 0; }
.editor-block[open] > summary { margin-bottom: .5rem; }
summary { cursor: pointer; font-weight: 750; padding: .25rem 0; }
.block-tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; }
.mini { font-size: .76rem; border: 1px solid var(--border); background: var(--bg); padding: .35rem .48rem; }
.field { display: grid; gap: .28rem; font-size: .85rem; font-weight: 600; margin-bottom: .7rem; }
input:not([type="checkbox"]), textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 3px; background: var(--bg); padding: .48rem; color: var(--ink); }
input[type="file"] { font-size: .76rem; }
textarea { resize: vertical; min-height: 5rem; }
.nested-fields { padding-left: .7rem; border-left: 2px solid var(--border); margin: .6rem 0; }
@media (max-width: 600px) {
  .masthead { position: relative; min-height: 0; padding-block: .85rem; flex-wrap: wrap; }
  nav { font-size: .86rem; }
  .hero { min-height: 490px; }
  .scene-media { object-position: 100% center; }
  .hero-copy { padding-bottom: 6.25rem; }
  .hero .eyebrow { font-size: .72rem; }
  .hotspot { display: none; }
  .cards, .workshop { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .footer { justify-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
select { width: 100%; padding: .45rem; background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: 3px; font: inherit; }
.check-line { display: block; margin: .4rem 0 .65rem; font-size: .9rem; }
.drag-handle { margin: 0 .35rem 0 .25rem; color: var(--accent); cursor: grab; }
.card .eyebrow { display: block; }
#site-frame { container-type: inline-size; min-width: 0; }
.masthead a[aria-current="page"] { color: var(--accent); }
.actions a { display: inline-flex; align-items: center; }
.hero:has(video:not([hidden])) .scene-video-close { display: block; }
.scene-video-close { display: none; position: absolute; top: 1rem; right: 1rem; z-index: 3; }
.hero video.scene-media { z-index: 2; object-fit: contain; background: #111; }
.card { display: block; }
.card-title { display: block; font-family: var(--heading); font-weight: 750; line-height: 1.05; font-size: clamp(1.55rem, 2.7vw, 2.55rem); }
.page-intro, .text-block, .model-detail { padding: clamp(2.2rem, 5vw, 4.5rem) var(--gutter); }
.page-intro { background: #252b31; padding-bottom: clamp(1rem, 4vw, 3rem); }
.page-intro h1, .catalog h1, .model-detail h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
.text-block:nth-of-type(even) { background: #24292d; }
.copy { max-width: 68ch; white-space: pre-wrap; line-height: 1.65; margin: 1rem 0; overflow-wrap: anywhere; }
.catalog { min-height: 60vh; }
.catalog-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; max-width: 49rem; }
.catalog-count { color: var(--muted); padding: .5rem 0 1rem; }
.catalog-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.catalog-cards > .card { aspect-ratio: 1.5; min-height: 220px; }
.model-detail { max-width: 70rem; margin-inline: auto; }
.model-detail > .more { display: inline-block; margin-bottom: 1.5rem; }
.model-detail > .eyebrow { color: var(--accent); }
.model-detail > img { max-height: 490px; object-fit: cover; border-radius: 4px; }
.model-detail .accent { display: inline-block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { margin-top: .45rem; color: var(--muted); }
.block-video { margin: 1.2rem 0; width: min(100%, 54rem); max-height: 70vh; background: #101214; }
.empty { padding: 1.5rem var(--gutter); background: var(--panel); }
.builder-mode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); background: #101315; align-items: start; }
.builder-mode #site-frame { grid-column: 1; grid-row: 2; width: 100%; background: var(--bg); }
#site-frame.phone { max-width: 390px; margin: .75rem auto 0; box-shadow: 0 0 0 1px var(--border); }
.builder-mode #builder-toolbar { display: flex; grid-row: 1; grid-column: 1; min-width: 0; align-items: center; flex-wrap: wrap; gap: .55rem .85rem; padding: .7rem .9rem; background: #24292d; border-bottom: 1px solid var(--border); font-size: .8rem; }
.preview-path { overflow-wrap: anywhere; margin-right: auto; }
.preview-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; }
.preview-switch button { border: 0; background: var(--bg); padding: .42rem .56rem; }
.preview-switch [aria-pressed="true"], #editor-tabs [aria-pressed="true"] { background: var(--accent); color: #21150d; }
#builder { position: sticky; top: 0; grid-column: 2; grid-row: 1 / 3; min-width: 0; height: 100dvh; display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--panel); }
#editor-tabs { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem 1rem; }
#editor-tabs .tab { border: 1px solid var(--border); border-radius: 4px; background: var(--bg); padding: .45rem .65rem; font-size: .8rem; font-weight: 650; }
#editor-tabs .tab[aria-pressed="true"] { background: var(--accent); }
.editor-settings { margin: .9rem 0; }
.panel-label { margin: 1.05rem 0 .5rem; font-size: 1.1rem; }
.asset-field { margin-bottom: .75rem; }
.asset-field .field { margin-bottom: .25rem; }
.field-note { font-size: .74rem; color: var(--muted); font-weight: 400; }
.coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.nested-fields { padding-left: .75rem; }
#editor-status[data-error="true"] { color: #ffae9f; }
.placing .hero, .placing .hero * { cursor: crosshair; }
@container (max-width: 640px) {
  .masthead { position: relative; min-height: 0; flex-wrap: wrap; }
  nav { font-size: .86rem; }
  .hero { min-height: 440px; }
  .scene-media { object-position: 100% center; }
  .hero-copy { padding-bottom: 6.25rem; }
  .hero-title { font-size: clamp(2.6rem, 12cqw, 4.5rem); }
  .hotspot { display: none; }
  .cards, .workshop, .catalog-filters { grid-template-columns: 1fr; }
  .card { min-height: 210px; }
  .footer { justify-content: start; }
}
@media (max-width: 770px) {
  .builder-mode { display: flex; flex-direction: column; align-items: stretch; }
  .builder-mode #site-frame { order: 2; }
  #builder { position: relative; order: 1; min-height: 360px; height: min(60dvh, 560px); border: 1px solid var(--border); }
  #site-frame.phone { width: min(100%, 390px); }
}

.text-editor { display: grid; gap: .55rem; margin-block: .8rem; }
.text-editor-tools { display: flex; flex-wrap: wrap; gap: .35rem; }
.text-editor-tools button { min-height: 2rem; }
.text-editor-input { line-height: 1.55; }
.formatted-text { white-space: normal; overflow-wrap: anywhere; }
.formatted-text p, .formatted-text ul, .formatted-text ol { margin-block: .8rem; }
.formatted-text li { margin-block: .25rem; }
.formatted-text h2, .formatted-text h3 { font-size: 1.45rem; line-height: 1.2; margin-block: 1rem .4rem; }
.formatted-text a { text-decoration: underline; }
