:root {
  --canvas: #dbd5cc;
  --paper: #f5f2e8;
  --paper-2: #ebe6dc;
  --ink: #1d211b;
  --ink-2: #3d4239;
  --ink-3: #73766c;
  --line: #1d211b;
  --accent: #bd7040;
  --blue: #3158a8;
  --red: #a43d3d;
  --green: #16775d;
  --pad-h: 72px;
  --pad-v: 104px;
  --page-max: 1500px;
  --section-min: 100svh;
  --design-pad-v: 128px;
  --hero-type: 84px;
  --hero-lead-size: 19px;
  --media-y: 35%;
  --hero-media-width: 40vw;
  --hero-media-x: 0px;
  --hero-media-y-offset: -30px;
  --hero-soft-left-mask: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.64) 17%, #000 36%);
  --offer-title-size: 62px;
  --offer-text-size: 21px;
  --glb-title-size: 58px;
  --glb-text-size: 20px;
  --portfolio-title-size: 58px;
  --portfolio-text-size: 20px;
  --discount-title-size: 58px;
  --discount-text-size: 20px;
  --contact-title-size: 56px;
  --contact-text-size: 20px;
  --work-card-min: 260px;
  --work-gap: 24px;
  --line-weight: 1.25px;
  --radius: 0;
  --shadow: 6px 6px 0 rgba(26, 26, 26, 0.08);
  --header-bg: rgba(244, 241, 234, 0.94);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding: 150px 0 40px;
}

html.lightbox-open {
  scroll-snap-type: none;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(26, 26, 26, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 26, 26, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 44px 44px, 44px 44px, auto;
}

body[data-palette="paper-gold"] {
  --canvas: #e2dfd9;
  --paper: #f4f1ea;
  --paper-2: #ebe6dc;
  --ink: #1a1a1a;
  --ink-2: #3b3a36;
  --ink-3: #6a6861;
  --line: #1a1a1a;
  --accent: #f5c518;
  --blue: #3158a8;
  --red: #a43d3d;
  --green: #16775d;
  --header-bg: rgba(244, 241, 234, 0.94);
}

body[data-palette="graphite-cyan"] {
  --canvas: #d8e0dc;
  --paper: #f1f4f1;
  --paper-2: #e2e9e5;
  --ink: #141819;
  --ink-2: #303a3b;
  --ink-3: #687477;
  --line: #141819;
  --accent: #31c7d1;
  --blue: #2466a8;
  --red: #a83d45;
  --green: #1c7a61;
  --header-bg: rgba(241, 244, 241, 0.94);
}

body[data-palette="sage-copper"] {
  --canvas: #dfe5d7;
  --paper: #f5f2e8;
  --paper-2: #e8eadc;
  --ink: #1d211b;
  --ink-2: #3d4239;
  --ink-3: #73766c;
  --line: #1d211b;
  --accent: #bd7040;
  --blue: #3b6599;
  --red: #9c3f38;
  --green: #2e7651;
  --header-bg: rgba(245, 242, 232, 0.94);
}

body[data-palette="blue-porcelain"] {
  --canvas: #dfe6ec;
  --paper: #f7f8f5;
  --paper-2: #e9eef0;
  --ink: #16202b;
  --ink-2: #334254;
  --ink-3: #697585;
  --line: #16202b;
  --accent: #3978b8;
  --blue: #245ea8;
  --red: #a23f55;
  --green: #23735f;
  --header-bg: rgba(247, 248, 245, 0.94);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

body[data-page="site"] .site-header,
body[data-page="site"] main,
body[data-page="site"] .footer,
body[data-page="portal"] .site-header,
body[data-page="portal"] .portal-page {
  width: min(var(--page-max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  margin-top: 24px;
  padding: 18px clamp(28px, 4vw, 48px);
  border: var(--line-weight) solid var(--line);
  border-bottom-width: 1px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

body[data-page="site"] main,
body[data-page="portal"] .portal-page {
  border: var(--line-weight) solid var(--line);
  border-top: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
}

.brand-mark img {
  width: 78px;
  height: auto;
}

.brand-mark span {
  max-width: 250px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links,
.nav-actions,
.hero-actions,
.section-header,
.panel-header,
.merge-bar,
.portal-topbar,
.model-meta,
.render-strip,
.locale-row {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 22px;
  color: var(--ink-2);
  font-size: 13px;
}

.nav-actions,
.hero-actions {
  gap: 12px;
}

.nav-actions {
  justify-content: flex-end;
}

.mono,
.sec-label,
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-3);
}

.solid-button,
.ghost-button,
.text-button,
.pricing-tab {
  min-height: 42px;
  border: var(--line-weight) solid var(--ink);
  border-radius: var(--radius);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

.solid-button {
  background: var(--ink);
  color: var(--paper);
}

.ghost-button {
  background: transparent;
}

.text-button {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.solid-button:hover,
.ghost-button:hover,
.pricing-tab:hover,
.text-button:hover {
  background: var(--accent);
  color: var(--ink);
}

.full-width {
  width: 100%;
}

.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hero-section,
.section-band {
  position: relative;
  padding: min(var(--pad-v), var(--design-pad-v)) var(--pad-h);
}

.snap-section {
  min-height: var(--section-min);
  padding-top: clamp(56px, 8vh, 84px);
  padding-bottom: clamp(48px, 7vh, 76px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin: 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 0;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(var(--section-min) - 180px);
}

.hero-section.snap-section {
  padding-top: clamp(64px, 8vh, 82px);
  padding-bottom: 168px;
}

.section-band + .section-band,
.hero-section + .section-band {
  border-top: 1px solid rgba(26, 26, 26, 0.15);
}

.sec-label {
  position: absolute;
  top: 16px;
  left: var(--pad-h);
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(760px, calc(100vw - 220px));
  max-width: 760px;
  transform: translateY(clamp(-112px, -7vh, -48px));
}

.hero-copy::before {
  display: none;
  content: none;
}

.hero-accent-strip {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.hero-accent-strip::after {
  content: "";
  position: absolute;
  left: -0.025em;
  right: -0.025em;
  bottom: 0.14em;
  z-index: -1;
  height: 0.3em;
  background: #bd7040;
}

.eyebrow {
  margin: 0 0 24px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 650;
}

h1 {
  font-size: var(--hero-type);
  line-height: 0.98;
  max-width: 980px;
  margin-bottom: 28px;
}

h2 {
  font-size: 54px;
}

h3 {
  font-size: 24px;
}

.hero-lead {
  max-width: min(560px, 100%);
  margin-bottom: 28px;
  color: var(--ink-2);
  font-size: var(--hero-lead-size);
  line-height: 1.45;
}

.hero-lead.dark {
  color: var(--ink-2);
}

.hero-media {
  position: relative;
  margin: 0;
  border: var(--line-weight) solid var(--line);
  background: var(--paper-2);
  box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.08);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center var(--media-y);
}

.hero-media figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-top: var(--line-weight) solid var(--line);
  background: var(--paper);
}

.hero-webgl {
  display: grid;
  grid-template-areas: "media";
  align-self: center;
  justify-self: end;
  width: clamp(420px, var(--hero-media-width), 1120px);
  max-width: none;
  aspect-ratio: 4 / 3;
  margin-left: 0;
  transform: translate(var(--hero-media-x), var(--hero-media-y-offset));
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  z-index: 1;
}

.offer-section,
.glb-section,
.portfolio-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.68fr) minmax(0, 1.22fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}

.offer-section,
.glb-section {
  align-content: center;
  padding-top: clamp(72px, 7vh, 104px);
  padding-bottom: clamp(42px, 6vh, 72px);
}

.offer-section.snap-section {
  scroll-margin-top: 0;
}

.glb-section.snap-section,
.portfolio-section.snap-section,
.contact-section.snap-section {
  scroll-snap-align: start;
}

.offer-copy,
.glb-copy,
.portfolio-copy {
  max-width: 560px;
}

.offer-section h2 {
  font-size: var(--offer-title-size);
}

.glb-section h2 {
  font-size: var(--glb-title-size);
}

.portfolio-section h2 {
  font-size: var(--portfolio-title-size);
}

.contact-section h2 {
  font-size: var(--contact-title-size);
}

.offer-copy p,
.glb-copy p,
.portfolio-copy p,
.form-note {
  color: var(--ink-2);
  line-height: 1.55;
}

.offer-copy p,
.offer-list span,
.best-for,
.offer-discounts {
  font-size: var(--offer-text-size);
}

.glb-copy p,
.glb-price-list span,
.fine-print {
  font-size: var(--glb-text-size);
}

.glb-copy p.fine-print {
  max-width: 520px;
  font-size: 10px;
}

.portfolio-copy p {
  font-size: var(--portfolio-text-size);
}

.contact-section p,
.contact-form label,
.contact-form input,
.contact-form textarea {
  font-size: var(--contact-text-size);
}

.price-line {
  margin: 18px 0 22px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -4px 0 24px;
}

.complexity-button {
  min-width: min(240px, 100%);
}

.offer-list,
.glb-price-list,
.offer-discounts {
  display: grid;
  gap: 0;
  margin: 20px 0;
  border-top: var(--line-weight) solid var(--line);
}

.offer-list span,
.glb-price-list span,
.offer-discounts span,
.offer-discounts strong {
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.16);
  color: var(--ink-2);
}

.offer-discounts strong {
  color: var(--ink);
}

.best-for,
.fine-print {
  line-height: 1.42;
}

.pdp-composition {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: minmax(430px, min(62vh, 700px)) auto;
  gap: 14px;
  align-items: stretch;
}

.pdp-shot,
.pdp-thumb,
.gift-visual {
  margin: 0;
}

.pdp-shot,
.pdp-thumb {
  position: relative;
  overflow: hidden;
  border: var(--line-weight) solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, white);
  padding: 0;
  color: inherit;
  appearance: none;
  text-align: inherit;
}

.pdp-shot img,
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifestyle-shot {
  grid-column: 1 / span 3;
  grid-row: 1;
  min-height: min(62vh, 700px);
}

.lifestyle-shot img {
  object-position: center center;
}

.product-shot img,
.pdp-thumb img {
  object-fit: contain;
  padding: 8%;
  background: white;
}

.pdp-product-stack {
  grid-column: 4 / span 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.product-shot {
  min-height: 0;
}

.pdp-shot figcaption,
.pdp-thumb figcaption,
.gift-visual figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border: var(--line-weight) solid color-mix(in srgb, var(--line) 38%, transparent);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  padding: 7px 9px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-2);
  backdrop-filter: blur(14px);
}

.pdp-carousel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding-bottom: 0;
}

.pdp-thumb {
  aspect-ratio: 1 / 1;
  min-height: 0;
  scroll-snap-align: start;
}

.pdp-shot:hover,
.pdp-thumb:hover,
.portfolio-tile:hover {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, transparent);
  outline-offset: -3px;
}

.glb-section {
  background: var(--paper-2);
}

.model-stage {
  min-width: 0;
  min-height: min(78vh, 760px);
  display: grid;
  place-items: center;
  background: transparent;
}

.model-stage model-viewer {
  width: 100%;
  height: min(78vh, 760px);
  min-height: 560px;
  background: transparent;
}

.portfolio-section {
  grid-template-columns: minmax(300px, 0.48fr) minmax(0, 1fr);
  align-items: start;
}

.portfolio-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, 18vh);
  grid-template-areas:
    "bottle echair metal lifestyle"
    "bottle sunset sunset lifestyle"
    "bike desk lantern window"
    "sofa sofa lantern wood";
  gap: 12px;
}

.portfolio-tile {
  min-width: 0;
  min-height: 0;
  border: var(--line-weight) solid var(--line);
  background: var(--paper-2);
  padding: 0;
  overflow: hidden;
  appearance: none;
}

.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

@media (min-width: 1061px) {
  .portfolio-bottle {
    grid-area: bottle;
  }

  .portfolio-e-chair {
    grid-area: echair;
  }

  .portfolio-top-left {
    grid-area: metal;
  }

  .portfolio-lifestyle {
    grid-area: lifestyle;
  }

  .portfolio-sunset {
    grid-area: sunset;
  }

  .portfolio-bike {
    grid-area: bike;
  }

  .portfolio-window-chair {
    grid-area: window;
  }

  .portfolio-desk-chair {
    grid-area: desk;
  }

  .portfolio-sofa {
    grid-area: sofa;
  }

  .portfolio-lantern {
    grid-area: lantern;
  }

  .portfolio-wood-chair {
    grid-area: wood;
  }
}

.quote-form h3,
.contact-form-title {
  margin-bottom: 8px;
  font-size: clamp(26px, 2.4vw, 38px);
}

.gift-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(70vh, 680px);
}

.gift-visual img {
  width: min(560px, 92%);
  filter: saturate(0.96) contrast(1.02);
}

.contact-form {
  display: grid;
  gap: 14px;
  align-self: center;
  border-top: var(--line-weight) solid var(--line);
  padding-top: 18px;
}

.contact-section {
  align-items: start;
}

.contact-section.snap-section {
  min-height: var(--section-min);
}

.form-note {
  margin: 0;
  font-size: 12px;
}

.hero-webgl-stage,
.hero-webgl-fallback {
  grid-area: media;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.hero-webgl-stage {
  position: relative;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background-image: var(--hero-wireframe);
  background-repeat: no-repeat;
  background-position: center var(--media-y);
  background-size: cover;
  -webkit-mask-image: var(--hero-soft-left-mask);
  mask-image: var(--hero-soft-left-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-webgl-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-webgl .hero-webgl-fallback {
  position: relative;
  z-index: 0;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center var(--media-y);
  opacity: 1;
  -webkit-mask-image: var(--hero-soft-left-mask);
  mask-image: var(--hero-soft-left-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transition: opacity 0.24s ease;
}

.hero-webgl.webgl-ready .hero-webgl-fallback {
  opacity: 0;
}

.hero-webgl.webgl-fallback .hero-webgl-stage {
  display: none;
}

.hero-webgl.webgl-fallback .hero-webgl-fallback {
  opacity: 1;
}

.hero-webgl figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(360px, calc(100% - 32px));
  margin: 0 0 18px;
  border: 0;
  border-left: var(--line-weight) solid color-mix(in srgb, var(--line) 42%, transparent);
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  backdrop-filter: blur(16px);
}

.hero-media span,
.work-item span,
.contact-ledger span {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-3);
}

.render-strip {
  grid-column: 1 / -1;
  position: absolute;
  left: var(--pad-h);
  right: var(--pad-h);
  bottom: 108px;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0;
  border-top: var(--line-weight) solid var(--line);
  border-bottom: var(--line-weight) solid var(--line);
}

.render-strip span {
  padding: 16px 24px;
  border-right: 1px solid rgba(26, 26, 26, 0.16);
  color: var(--ink-2);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.design-lab {
  background: var(--paper);
}

.design-controls {
  display: grid;
  gap: 0;
  border-top: var(--line-weight) solid var(--line);
}

.range-control {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.18);
}

.range-control label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: 14px;
}

.range-control output {
  min-width: 42px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: var(--ink-2);
}

.range-control input[type="range"] {
  min-height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  accent-color: var(--accent);
}

.palette-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
}

.palette-choice {
  min-height: 48px;
  border: var(--line-weight) solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  font-weight: 800;
}

.palette-choice.active {
  background: var(--ink);
  color: var(--paper);
}

.swatch {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--line);
}

.swatch.paper-gold {
  background: linear-gradient(135deg, #f4f1ea 0 50%, #f5c518 50% 100%);
}

.swatch.graphite-cyan {
  background: linear-gradient(135deg, #141819 0 50%, #31c7d1 50% 100%);
}

.swatch.sage-copper {
  background: linear-gradient(135deg, #dfe5d7 0 50%, #bd7040 50% 100%);
}

.swatch.blue-porcelain {
  background: linear-gradient(135deg, #f7f8f5 0 50%, #3978b8 50% 100%);
}

.benefit-grid {
  display: grid;
  gap: 0;
  border-top: var(--line-weight) solid var(--line);
}

.benefit-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.18);
  background: transparent;
}

.benefit-card strong {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: var(--ink-3);
}

.benefit-card p,
.viewer-copy p,
.panel p,
.footer p,
.storage-map span,
.activity-feed span,
.project-card p,
.file-card p,
.person-card p,
.contractor-card p {
  color: var(--ink-2);
  line-height: 1.55;
}

.section-header {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(var(--work-card-min), 28vw);
  gap: var(--work-gap);
}

.work-item {
  position: relative;
  overflow: hidden;
  border: var(--line-weight) solid var(--line);
  background: var(--paper-2);
  min-height: var(--work-card-min);
}

.work-item.large {
  grid-row: span 2;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--media-y);
  filter: saturate(0.92);
}

.work-item div {
  position: absolute;
  inset: auto 0 0;
  padding: 20px;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(26, 26, 26, 0.78), rgba(26, 26, 26, 0));
}

.work-item strong {
  display: block;
  max-width: 430px;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.viewer-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.64fr) minmax(320px, 1fr);
  gap: 60px;
  align-items: center;
  background: var(--paper-2);
}

.viewer-copy {
  max-width: 560px;
}

.check-list {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--line-weight) solid var(--line);
}

.check-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.16);
  color: var(--ink-2);
}

.model-shell {
  border: var(--line-weight) solid var(--line);
  background: #fefefe;
  box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.1);
  overflow: hidden;
}

model-viewer {
  width: 100%;
  height: 520px;
  min-height: 360px;
  background:
    repeating-linear-gradient(45deg, rgba(26, 26, 26, 0.06), rgba(26, 26, 26, 0.06) 2px, transparent 2px, transparent 12px),
    #efebe1;
}

.model-meta {
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: var(--line-weight) solid var(--line);
  background: var(--paper);
}

.model-meta span,
.id-pill,
.status-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pricing-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.pricing-table {
  display: grid;
  border-top: var(--line-weight) solid var(--line);
}

.pricing-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(140px, 0.55fr) minmax(140px, 0.55fr) minmax(220px, 1.2fr);
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.16);
}

.pricing-row.header {
  color: var(--ink-3);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-value {
  font-weight: 800;
}

.service-summary {
  margin: 0 0 18px;
  color: var(--ink-2);
  line-height: 1.55;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}

.contact-ledger {
  display: grid;
  border-top: var(--line-weight) solid var(--line);
}

.contact-ledger div {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.16);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  scroll-snap-align: end;
  scroll-snap-stop: normal;
  margin-top: 0;
  margin-bottom: 80px;
  padding: 48px var(--pad-h);
  background: var(--ink);
  color: var(--paper);
}

.footer img {
  width: 180px;
  margin-bottom: 16px;
}

.legal-page {
  display: grid;
  gap: 32px;
  padding: min(var(--pad-v), var(--design-pad-v)) var(--pad-h);
}

.legal-copy {
  max-width: 900px;
}

.legal-copy h1 {
  font-size: clamp(44px, 8vw, 96px);
  max-width: 900px;
}

.legal-copy h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 44px);
}

.legal-copy p,
.legal-copy li {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.58;
}

.legal-copy ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.footer-legal,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-legal {
  justify-items: end;
}

.footer-legal a,
.footer-contact a {
  text-decoration: none;
}

.footer-legal a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

/* Portal */
body[data-page="portal"] .portal-page {
  padding: 0;
  margin-bottom: 80px;
}

.portal-site-header {
  border-bottom-width: var(--line-weight);
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 760px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-right: var(--line-weight) solid var(--line);
  background: var(--paper-2);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 800;
}

.sidebar-brand img {
  width: 28px;
  height: 28px;
}

.nav-tab {
  min-height: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  padding: 0 12px;
  text-align: left;
  font-weight: 700;
}

.nav-tab.active,
.nav-tab:hover {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.portal-content {
  min-width: 0;
  padding: 36px;
  background: var(--paper);
}

.portal-topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.portal-topbar h1 {
  font-size: 52px;
}

.account-pill,
.active-locale {
  border: var(--line-weight) solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 8px 12px;
  font-weight: 800;
}

.portal-screen {
  display: none;
}

.portal-screen.active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi,
.panel,
.project-card,
.file-card,
.person-card,
.contractor-card {
  border: var(--line-weight) solid var(--line);
  background: var(--paper);
}

.kpi {
  padding: 18px;
}

.kpi span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 800;
}

.kpi strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
}

.dashboard-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.panel {
  padding: 18px;
}

.panel-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.activity-feed,
.storage-map,
.project-board,
.file-grid,
.client-grid,
.contractor-grid {
  display: grid;
  gap: 12px;
}

.activity-item,
.storage-map div {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 12px;
}

.storage-map div:nth-child(2) {
  border-color: var(--green);
}

.storage-map div:nth-child(3) {
  border-color: var(--blue);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(160px, 0.8fr) minmax(140px, 0.7fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: var(--line-weight) solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

.project-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card,
.file-card,
.person-card,
.contractor-card {
  padding: 18px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.status-pill {
  color: var(--green);
}

.priority-pill.high {
  color: var(--red);
}

.priority-pill.medium {
  color: var(--blue);
}

.priority-pill.low {
  color: var(--ink-3);
}

.thread-note {
  margin-top: 12px;
  border-top: 1px solid rgba(26, 26, 26, 0.16);
  padding-top: 12px;
}

.task-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: var(--line-weight) solid var(--line);
  background: var(--paper);
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.16);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--ink-3);
  font-size: 12px;
  text-transform: uppercase;
}

.file-grid,
.client-grid,
.contractor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.person-card input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.merge-bar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--ink-3);
}

.stacked-form {
  display: grid;
  gap: 14px;
}

.locale-row {
  gap: 10px;
  margin-top: 20px;
}

.locale-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: var(--line-weight) solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-weight: 900;
}

.locale-row .active-locale {
  color: var(--ink);
}

.auth-dialog {
  width: min(460px, calc(100vw - 32px));
  border: var(--line-weight) solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-dialog::backdrop {
  background: rgba(26, 26, 26, 0.54);
}

.complexity-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 42px));
  max-width: none;
  max-height: calc(100vh - 42px);
  margin: 0;
  border: var(--line-weight) solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.complexity-dialog::backdrop {
  background: rgba(26, 26, 26, 0.62);
}

.complexity-card {
  position: relative;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 42px);
  overflow: auto;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.complexity-card h2 {
  max-width: 760px;
  padding-right: 48px;
}

.complexity-table-wrap {
  overflow-x: auto;
  border: var(--line-weight) solid var(--line);
  background: color-mix(in srgb, var(--paper) 74%, white);
}

.complexity-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: clamp(15px, 1.45vw, 20px);
}

.complexity-table caption {
  padding: 14px 16px;
  border-bottom: var(--line-weight) solid var(--line);
  text-align: left;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.complexity-table th,
.complexity-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.16);
  text-align: left;
}

.complexity-table tr:last-child td {
  border-bottom: 0;
}

.complexity-table th:last-child,
.complexity-table td:last-child {
  width: 210px;
  text-align: right;
  white-space: nowrap;
}

.complexity-image {
  display: block;
  width: 100%;
  max-height: min(58vh, 640px);
  object-fit: contain;
  border: var(--line-weight) solid var(--line);
  background: white;
}

.media-lightbox {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1180px, calc(100vw - 44px));
  max-width: none;
  height: min(86vh, 860px);
  margin: 0;
  border: var(--line-weight) solid var(--line);
  padding: 0;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  color: var(--ink);
  overflow: hidden;
}

.media-lightbox::backdrop {
  background: rgba(26, 26, 26, 0.72);
}

.media-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
}

.lightbox-close {
  z-index: 3;
  background: var(--paper);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 62px;
  border: var(--line-weight) solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 14px;
}

.lightbox-nav.next {
  right: 14px;
}

.lightbox-nav:hover {
  background: var(--accent);
}

.auth-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--paper);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: var(--line-weight) solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.dialog-close:hover {
  background: var(--accent);
}

.auth-card h2 {
  padding-right: 42px;
}

.credential-note {
  margin: -2px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.form-error {
  margin: 0;
  border: var(--line-weight) solid var(--red);
  background: color-mix(in srgb, var(--red) 9%, var(--paper));
  color: var(--red);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 18px);
  max-width: min(520px, calc(100vw - 32px));
  border: var(--line-weight) solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1060px) {
  :root {
    --pad-h: 32px;
    --pad-v: 76px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-section,
  .offer-section,
  .glb-section,
  .portfolio-section,
  .split-section,
  .viewer-section,
  .contact-section,
  .dashboard-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 36px;
    overflow: visible;
  }

  .hero-copy::before {
    inset: -22px -28px -24px;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
  }

  .hero-copy {
    width: auto;
    max-width: 780px;
  }

  .hero-webgl {
    justify-self: stretch;
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .hero-webgl-stage,
  .hero-webgl-fallback {
    min-height: 360px;
  }

  .render-strip {
    position: static;
    margin-top: 28px;
  }

  .pdp-composition {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
    grid-template-rows: minmax(420px, 1fr) auto;
  }

  .pdp-product-stack {
    grid-column: 2;
    grid-row: 1;
    min-height: 420px;
  }

  .lifestyle-shot {
    grid-column: 1;
    grid-row: 1;
    min-height: 420px;
  }

  .pdp-carousel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .model-stage,
  .model-stage model-viewer,
  .gift-visual {
    min-height: 560px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(140px, 18vw);
    grid-template-areas: none;
  }

  .portfolio-bottle,
  .portfolio-e-chair,
  .portfolio-top-left,
  .portfolio-lifestyle,
  .portfolio-sunset,
  .portfolio-bike,
  .portfolio-window-chair,
  .portfolio-desk-chair,
  .portfolio-sofa,
  .portfolio-lantern,
  .portfolio-wood-chair {
    grid-area: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: var(--line-weight) solid var(--line);
  }

  .sidebar-brand {
    grid-column: 1 / -1;
  }

  .kpi-grid,
  .file-grid,
  .client-grid,
  .contractor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding: 0;
  }

  :root {
    --pad-h: 18px;
    --pad-v: 60px;
  }

  body[data-page="site"] .site-header,
  body[data-page="site"] main,
  body[data-page="site"] .footer,
  body[data-page="portal"] .site-header,
  body[data-page="portal"] .portal-page {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 12px;
    padding: 16px var(--pad-h);
  }

  .brand-mark img {
    width: 52px;
  }

  .brand-mark span {
    font-size: 24px;
  }

  .nav-links,
  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  h1 {
    font-size: min(42px, var(--hero-type));
  }

  h2,
  .portal-topbar h1 {
    font-size: 34px;
  }

  .hero-section {
    min-height: auto;
  }

  .snap-section {
    min-height: 100svh;
    scroll-margin-top: 0;
  }

  .hero-copy::before {
    inset: -16px -14px -18px;
  }

  .hero-webgl {
    grid-template-areas:
      "media"
      "caption";
    aspect-ratio: auto;
  }

  .hero-webgl-stage,
  .hero-webgl .hero-webgl-fallback {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-webgl figcaption {
    position: static;
    grid-area: caption;
    width: auto;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(26, 26, 26, 0.18);
    border-left: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .hero-lead {
    font-size: 17px;
  }

  .offer-section,
  .glb-section,
  .portfolio-section,
  .contact-section {
    gap: 28px;
    align-content: center;
  }

  .pdp-composition {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lifestyle-shot {
    grid-column: 1;
    grid-row: auto;
  }

  .pdp-product-stack {
    grid-column: 1;
    grid-row: auto;
    min-height: 520px;
  }

  .lifestyle-shot,
  .product-shot {
    min-height: 300px;
  }

  .pdp-carousel {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 58vw);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .complexity-card {
    gap: 14px;
    padding: 20px;
  }

  .complexity-table {
    min-width: 560px;
    font-size: 14px;
  }

  .complexity-table th,
  .complexity-table td {
    padding: 11px 12px;
  }

  .model-stage,
  .model-stage model-viewer,
  .gift-visual {
    min-height: 420px;
  }

  .model-stage model-viewer {
    height: 460px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(160px, 42vw);
    grid-template-areas: none;
  }

  .portfolio-bottle,
  .portfolio-e-chair,
  .portfolio-top-left,
  .portfolio-lifestyle,
  .portfolio-sunset,
  .portfolio-bike,
  .portfolio-window-chair,
  .portfolio-desk-chair,
  .portfolio-sofa,
  .portfolio-lantern,
  .portfolio-wood-chair {
    grid-area: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .portfolio-tile.wide,
  .portfolio-tile.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .benefit-grid,
  .work-grid,
  .palette-board,
  .project-board,
  .kpi-grid,
  .file-grid,
  .client-grid,
  .contractor-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .work-item.large {
    grid-row: auto;
  }

  .work-grid {
    grid-auto-rows: minmax(260px, 70vw);
  }

  .section-header,
  .portal-topbar,
  .merge-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    justify-items: start;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pricing-row.header {
    display: none;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .portal-content {
    padding: 18px;
  }

  model-viewer {
    height: 420px;
    min-height: 320px;
  }
}

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

  .hero-webgl-stage {
    display: none;
  }

  .hero-webgl .hero-webgl-fallback {
    opacity: 1 !important;
  }
}
