:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --ink: #202c2d;
  --muted: #6d7775;
  --teal: #366b66;
  --line: #d9d9cf;
  --clay: #b96249;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, canvas:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}
[hidden] { display: none !important; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 20; padding: 12px 18px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header, main, .site-footer { width: min(1480px, calc(100% - 80px)); margin-inline: auto; }
.site-header { min-height: 102px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); }
.wordmark { text-decoration: none; font-weight: 650; font-size: 22px; letter-spacing: .22em; display: inline-flex; align-items: center; gap: 8px; }
.brand-dot { width: 6px; height: 6px; margin: 1px 0 0 2px; background: var(--clay); border-radius: 50%; }
.header-note { color: var(--muted); font-size: 10px; letter-spacing: .11em; margin: 0; }
.header-link { margin-left: auto; font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--ink); padding: 10px 0; }
.header-link span[aria-hidden="true"] { margin-left: 15px; }
.intro-line { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 22px; }
.eyebrow, .edition { font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .13em; }
.eyebrow { color: var(--muted); }
.intro-line .eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.edition { color: #838b85; font-size: 9px; letter-spacing: .16em; }
.configurator-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(290px, 3fr); gap: 48px; }
.product-panel { min-width: 0; }
.hero-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
h1 { font-size: clamp(36px, 3.45vw, 54px); font-weight: 350; line-height: 1.12; letter-spacing: -.045em; margin: 0; }
h1 em { font-style: normal; color: var(--teal); }
.hero-heading > p { flex-shrink: 0; margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.viewer { position: relative; min-height: 420px; height: 650px; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #fffefa 0%, #eeeee6 56%, #e6e9e2 100%); border: 1px solid rgba(32,44,45,.06); border-radius: 3px; }
#sofa-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.viewer-label { position: absolute; z-index: 2; top: 24px; left: 26px; right: 26px; display: flex; justify-content: space-between; pointer-events: none; font-size: 9px; letter-spacing: .17em; color: #71817c; }
.viewer-label span:first-child { color: var(--ink); font-weight: 600; }
.loading-status { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; color: var(--muted); background: var(--paper); font-size: 13px; }
.loading-status.is-ready { inset: auto; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
.loading-ring { height: 28px; width: 28px; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: loading-turn 1s linear infinite; }
@keyframes loading-turn { to { transform: rotate(360deg); } }
.error-panel { position: absolute; inset: 25%; z-index: 6; padding: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 36px #202c2d12; font-size: 14px; line-height: 1.7; }
.error-panel p { margin-bottom: 0; color: var(--muted); }
.no-script { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; padding: 30px; background: var(--paper); font-size: 14px; line-height: 1.8; text-align: center; }
.viewer-bottom { position: absolute; bottom: 21px; left: 25px; right: 25px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.interaction-hint { margin: 0; color: #63736d; font-size: 10px; line-height: 1.6; }
.interaction-hint > span:first-child { display: inline-block; font-size: 16px; margin-right: 7px; vertical-align: -1px; }
.hint-divider { margin: 0 5px; }
.hint-zoom-touch { display: none; }
.viewer-tools { display: flex; gap: 1px; align-items: center; padding: 3px; background: #fffefaeb; border: 1px solid #d9ded6; border-radius: 28px; box-shadow: 0 5px 15px #202c2d06; pointer-events: auto; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 23px; font-weight: 350; transition: background .15s, color .15s; }
.tool-button:hover { background: #e7eeE8; }
.tool-button[aria-pressed="true"] { background: var(--teal); color: white; }
.tool-divider { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.product-caption { margin: 17px 0 0; display: flex; align-items: flex-start; gap: 10px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.caption-rule { flex: 0 0 18px; margin-top: 8px; height: 1px; background: var(--clay); }
.configuration { border-left: 1px solid var(--line); padding-left: 34px; padding-top: 2px; }
.product-title .eyebrow { margin: 0 0 19px; }
h2 { font-size: 34px; line-height: 1.15; font-weight: 500; letter-spacing: -.045em; margin: 0 0 14px; }
h2 span { font-weight: 300; color: #89918b; }
.product-title > p:last-child { font-size: 12px; color: var(--muted); line-height: 1.75; margin: 0 0 28px; }
.option-section { border: 0; border-top: 1px solid var(--line); padding: 19px 0 21px; margin: 0; min-width: 0; }
.option-section legend { float: left; width: 100%; padding: 0 0 15px; font-size: 13px; font-weight: 600; display: flex; gap: 11px; align-items: center; }
.option-section legend + * { clear: both; }
.step-number { color: #919a92; font-size: 10px; letter-spacing: .03em; font-weight: 400; }
.color-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.color-option { min-width: 0; min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; text-align: left; font-size: 12px; }
.color-option:hover { background: #ffffff80; }
.color-option[aria-pressed="true"] { border-color: #9caea4; background: #fffdfa; }
.color-swatch { width: 29px; height: 29px; flex: 0 0 29px; border-radius: 50%; border: 1px solid #202c2d12; box-shadow: inset 0 0 0 2px #ffffff25; }
.sand { background: #c8b8a3; } .pine { background: #366b66; } .clay { background: #b96249; } .graphite { background: #343d43; }
.selected-mark { display: none; margin-left: auto; color: var(--teal); font-size: 11px; }
[aria-pressed="true"] > .selected-mark { display: inline; }
.segmented-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.texture-option, .wood-option { min-width: 0; display: flex; align-items: center; justify-content: flex-start; min-height: 51px; gap: 10px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: 12px; padding: 8px; }
.texture-option:hover, .wood-option:hover { background: #ffffff80; }
.texture-option[aria-pressed="true"], .wood-option[aria-pressed="true"] { border-color: #829b8f; background: #fffdfa; }
.texture-sample, .wood-sample { width: 30px; height: 30px; border-radius: 4px; border: 1px solid #202c2d12; flex-shrink: 0; }
.linen { background-color: #d9ceba; background-image: repeating-linear-gradient(0deg, transparent 0 2px, #7b736526 2px 3px), repeating-linear-gradient(90deg, transparent 0 2px, #fff7df60 2px 3px); }
.boucle { background-color: #d6cbb4; background-image: radial-gradient(ellipse at 40% 40%, #f4ecdc 0 1px, #a99e8838 1.5px 2.5px, transparent 3px); background-size: 6px 5px; }
.oak { background: repeating-linear-gradient(87deg, #b58b61 0 2px, #c9a478 3px 6px, #d0b38b 7px 8px); }
.walnut { background: repeating-linear-gradient(87deg, #5f402d 0 2px, #79543c 3px 6px, #8b6749 7px 8px); }
.selection-block { border-top: 1px solid var(--line); padding-top: 20px; }
#selection-summary { font-size: 13px; font-weight: 600; color: var(--teal); line-height: 1.6; margin: 8px 0; }
.material-note { font-size: 10px; color: #7d857e; line-height: 1.6; margin: 0; }
.contact-block { margin-top: 28px; }
.contact-block > p { font-size: 12px; margin: 0 0 12px; }
.primary-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; border: 1px solid var(--teal); border-radius: 4px; padding: 14px 17px; background: var(--teal); color: #fffefa; text-decoration: none; font-size: 12px; line-height: 1.5; font-weight: 500; transition: background .2s; }
.primary-cta:hover { background: #285651; }
.primary-cta span { font-size: 18px; font-weight: 400; }
.email-note { display: block; text-align: center; color: #7b857e; margin-top: 9px; font-size: 10px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 40px; padding: 21px 0 28px; color: #81897f; font-size: 9px; line-height: 1.6; letter-spacing: .06em; }
@media (min-width: 1600px) { .viewer { height: 700px; } }
@media (max-width: 1180px) {
  .site-header, main, .site-footer { width: calc(100% - 48px); }
  .configurator-layout { gap: 28px; grid-template-columns: minmax(0, 7fr) minmax(270px, 3fr); }
  .configuration { padding-left: 24px; }
  .hero-heading > p { display: none; }
  .viewer { height: 650px; }
  .viewer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .viewer-tools { align-self: flex-end; }
}
@media (max-width: 820px) {
  .site-header { min-height: 82px; gap: 20px; }
  .header-note { display: none; }
  .configurator-layout { display: block; }
  .hero-heading > p { display: block; }
  h1 { font-size: clamp(37px, 5.8vw, 50px); }
  .viewer { height: 560px; }
  .viewer-bottom { flex-direction: row; align-items: center; }
  .configuration { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 32px 0 0; margin-top: 28px; border-left: 0; border-top: 1px solid var(--line); }
  .product-title { grid-column: 1 / -1; }
  .product-title .eyebrow { margin-bottom: 12px; }
  .product-title > p:last-child br { display: none; }
  .option-section { padding-top: 18px; }
  .selection-block { margin-bottom: 14px; }
  .contact-block { margin-top: 0; padding-top: 18px; grid-column: 1 / -1; max-width: 420px; width: 100%; }
}
@media (max-width: 540px) {
  .site-header, main, .site-footer { width: calc(100% - 36px); }
  .site-header { min-height: 73px; gap: 12px; }
  .wordmark { font-size: 18px; letter-spacing: .18em; }
  .header-link { font-size: 11px; }
  .header-link span { margin-left: 4px; }
  .intro-line { padding: 24px 0 19px; }
  .eyebrow { font-size: 9px; }
  .edition { display: none; }
  .hero-heading { padding-bottom: 23px; }
  .hero-heading > p { display: none; }
  h1 { font-size: clamp(35px, 9.5vw, 45px); line-height: 1.15; }
  .viewer { min-height: 420px; height: min(60svh, 530px); margin-inline: -18px; border-inline: 0; border-radius: 0; }
  .viewer-label { top: 22px; left: 20px; right: 20px; font-size: 8px; }
  .viewer-bottom { bottom: 16px; left: 18px; right: 18px; flex-direction: column-reverse; align-items: center; gap: 10px; }
  .viewer-tools { align-self: center; }
  .tool-button { width: 44px; height: 44px; }
  .hint-zoom-desktop { display: none; }
  .hint-zoom-touch { display: inline; }
  .interaction-hint { font-size: 9px; }
  .product-caption { margin-top: 14px; font-size: 9px; }
  .configuration { display: block; margin-top: 25px; padding-top: 26px; }
  .product-title { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0 12px; }
  .product-title .eyebrow { grid-column: 1 / -1; margin-bottom: 12px; }
  .product-title h2 { font-size: 30px; margin-bottom: 24px; }
  .product-title > p:last-child { font-size: 10px; margin-bottom: 24px; }
  .product-title > p:last-child br { display: initial; }
  .option-section { padding-bottom: 20px; padding-top: 20px; }
  .color-options { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .color-option { position: relative; flex-direction: column; gap: 8px; min-height: 79px; justify-content: center; padding: 8px 3px; font-size: 10px; }
  .color-swatch { width: 32px; height: 32px; flex-basis: 32px; }
  .color-option .selected-mark { position: absolute; right: 7px; top: 7px; font-size: 9px; }
  .texture-option, .wood-option { min-height: 56px; font-size: 13px; padding: 9px 12px; gap: 12px; }
  .texture-sample, .wood-sample { width: 33px; height: 33px; }
  .selection-block { margin-bottom: 0; padding-top: 19px; }
  .contact-block { margin-top: 22px; padding-top: 0; max-width: none; }
  .primary-cta { min-height: 58px; font-size: 13px; }
  .error-panel { inset: 22% 7%; padding: 24px; }
  .site-footer { margin-top: 34px; font-size: 8px; flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
