:root {
  --paper: #f4f5f2;
  --ink: #111317;
  --muted: #666b73;
  --blue: #123ecf;
  --line: rgba(17, 19, 23, 0.18);
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", Arial, sans-serif; }
body.drawer-open { overflow: hidden; }
button, a, input { font: inherit; }
a { color: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(17, 19, 23, .16);
}
.wordmark { font-size: 1.15rem; font-weight: 800; text-decoration: none; letter-spacing: 0; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a { font-size: .82rem; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .35rem; }
.cart-button, .product-meta button, .cart-head button, .dialog-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.cart-button { justify-self: end; display: inline-flex; align-items: center; gap: .35rem; padding: .65rem; }
.cart-button svg { width: 20px; }
.cart-button span { min-width: 1.2rem; font-size: .72rem; }

.hero { position: relative; min-height: min(900px, 94svh); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 53vw);
  padding: clamp(9rem, 16vh, 11rem) clamp(1.25rem, 4vw, 4rem) 7rem;
}
.eyebrow { margin: 0 0 1.4rem; color: var(--blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.8rem, 8.5vw, 9rem); line-height: .84; font-weight: 500; }
.hero h1 span { display: block; color: var(--blue); font-size: .22em; font-weight: 800; margin-bottom: 1.4rem; }
.hero-copy > p:not(.eyebrow) { width: min(520px, 90%); margin: 2rem 0; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.55; }
.primary-link, .text-button { display: inline-flex; align-items: center; gap: .7rem; border: 0; background: transparent; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary-link { padding: .9rem 0; border-bottom: 1px solid var(--ink); }
.primary-link svg, .text-button svg { width: 17px; }
.hero-note { position: absolute; right: clamp(1.25rem, 4vw, 4rem); bottom: 1.5rem; display: flex; gap: 1.5rem; font-size: .7rem; text-transform: uppercase; }

.section { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 4vw, 4rem); }
.section-head { display: grid; grid-template-columns: .6fr 1.4fr .8fr; gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section h2, .manifesto h2 { margin: 0; font-size: clamp(3rem, 6.5vw, 7rem); font-weight: 500; line-height: .92; }
.section-head > p:last-child { color: var(--muted); line-height: 1.65; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product-card { min-width: 0; background: var(--paper); }
.product-image { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.product-image img { width: 300%; height: 100%; max-width: none; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.crop-table img { transform: translateX(0); }
.crop-floor img { transform: translateX(-33.333%); }
.crop-pendant img { transform: translateX(-66.666%); }
.product-image:hover img { scale: 1.035; }
.product-image span { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: .5rem; align-items: center; padding: .55rem .7rem; background: rgba(255,255,255,.9); font-size: .72rem; }
.product-image span svg { width: 14px; }
.product-meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem; border-top: 1px solid var(--line); }
.product-meta > div:last-child { text-align: right; }
.product-meta p { margin: 0 0 .35rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.product-meta h3 { margin: 0; font-size: 1.6rem; font-weight: 500; }
.product-meta button { width: 36px; height: 36px; margin-top: .5rem; border: 1px solid var(--ink); }
.product-meta button:hover { background: var(--blue); color: white; border-color: var(--blue); }
.product-meta button svg { width: 16px; }

.selector { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 8rem); background: var(--white); }
.selector-copy { align-self: center; }
.selector-copy h2 { font-size: clamp(3rem, 5.6vw, 6rem); }
.segment { display: flex; gap: 0; margin: 3rem 0; border-block: 1px solid var(--line); }
.segment button { flex: 1; border: 0; border-right: 1px solid var(--line); padding: 1rem .5rem; background: transparent; cursor: pointer; }
.segment button:last-child { border-right: 0; }
.segment button[aria-selected="true"] { background: var(--blue); color: var(--white); }
.scene-answer { min-height: 220px; }
.scene-answer > p:first-child { color: var(--blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.scene-answer h3 { max-width: 620px; margin: .8rem 0; font-size: clamp(2rem, 3.3vw, 3.5rem); font-weight: 500; line-height: 1; }
.scene-answer > p:not(:first-child) { max-width: 520px; color: var(--muted); line-height: 1.6; }
.text-button { padding: 1rem 0 .5rem; border-bottom: 1px solid var(--ink); }
.selector-visual { position: relative; min-height: 720px; overflow: hidden; background: #e9e9e7; }
.selector-visual img { height: 100%; object-fit: cover; object-position: 68% center; filter: brightness(var(--scene-brightness, .9)); transition: filter .2s linear; }
.light-control { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem; background: rgba(244,245,242,.92); font-size: .74rem; }
.light-control input { width: 100%; accent-color: var(--blue); }

.manifesto { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 4vw, 4rem); background: var(--blue); color: var(--white); }
.manifesto .eyebrow { color: var(--white); opacity: .7; }
.manifesto h2 { max-width: 1300px; }
.manifesto > div { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.45); }
.manifesto > div p { max-width: 650px; margin: 0; line-height: 1.65; }
.manifesto > div a { justify-self: end; align-self: end; text-decoration: none; }
.manifesto svg { width: 16px; vertical-align: middle; }
footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 2rem; padding: 2rem clamp(1.25rem, 4vw, 4rem); background: var(--ink); color: white; }
footer p { margin: 0; text-align: center; font-size: .75rem; color: #aeb1b7; }
footer > a:last-child { justify-self: end; font-size: .8rem; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(17,19,23,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.cart-drawer { position: fixed; z-index: 31; top: 0; right: 0; width: min(460px, 100%); height: 100dvh; padding: 1.5rem; background: var(--white); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .cart-drawer { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 2rem; font-weight: 500; }
.cart-head button, .dialog-close { width: 42px; height: 42px; }
.cart-list { flex: 1; overflow: auto; padding-block: 1rem; }
.cart-empty { color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }
.cart-item button { align-self: center; border: 0; background: transparent; cursor: pointer; text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.checkout { width: 100%; border: 0; padding: 1rem; background: var(--blue); color: white; cursor: pointer; font-weight: 700; }
.checkout:disabled { background: #c8cad0; cursor: not-allowed; }
.cart-caption { margin-bottom: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }

.product-dialog { width: min(1060px, calc(100% - 2rem)); max-width: none; padding: 0; border: 0; background: var(--paper); }
.product-dialog::backdrop { background: rgba(17,19,23,.62); }
.product-dialog[open] { display: grid; grid-template-columns: 1.1fr .9fr; }
.dialog-close { position: absolute; z-index: 2; top: .75rem; right: .75rem; background: white; }
.dialog-image { min-height: 650px; overflow: hidden; background: white; }
.dialog-image img { width: 300%; max-width: none; height: 100%; object-fit: cover; }
.dialog-image[data-crop="M01"] img { transform: translateX(0); }
.dialog-image[data-crop="F02"] img { transform: translateX(-33.333%); }
.dialog-image[data-crop="P03"] img { transform: translateX(-66.666%); }
.dialog-copy { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.dialog-copy h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 500; }
.dialog-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.dialog-copy dl { margin: 2.5rem 0; border-top: 1px solid var(--line); }
.dialog-copy dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.dialog-copy dt { color: var(--muted); }
.dialog-copy dd { margin: 0; text-align: right; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 1.5rem; transform: translate(-50%, 140%); padding: .8rem 1rem; background: var(--ink); color: white; transition: transform .25s; font-size: .82rem; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 68px; }
  .site-header nav { display: none; }
  .hero { min-height: 860px; }
  .hero::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(244,245,242,.94) 35%, var(--paper) 70%); }
  .hero > img { height: 58%; object-position: 66% center; }
  .hero-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 3.5rem; width: 100%; padding: 1.25rem; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .hero-copy > p:not(.eyebrow) { width: 100%; }
  .hero-note { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-head > p:last-child { max-width: 520px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 5 / 4; }
  .selector { grid-template-columns: 1fr; }
  .selector-visual { min-height: 540px; }
  .manifesto > div { grid-template-columns: 1fr; }
  .manifesto > div a { justify-self: start; }
  footer { grid-template-columns: 1fr; }
  footer p { text-align: left; }
  footer > a:last-child { justify-self: start; }
  .product-dialog[open] { grid-template-columns: 1fr; max-height: 92dvh; overflow: auto; }
  .dialog-image { min-height: 420px; }
}

@media (max-width: 520px) {
  .section { padding-block: 4.5rem; }
  .hero { min-height: 790px; }
  .hero > img { height: 50%; }
  .hero-copy { bottom: 2rem; }
  .hero h1 { font-size: 3.8rem; }
  .hero-copy > p:not(.eyebrow) { font-size: .95rem; }
  .section h2, .manifesto h2 { font-size: 3rem; }
  .manifesto h2 { font-size: 2.7rem; }
  .product-image { aspect-ratio: 1 / 1; }
  .product-meta h3 { font-size: 1.35rem; }
  .segment { flex-direction: column; }
  .segment button { border-right: 0; border-bottom: 1px solid var(--line); }
  .segment button:last-child { border-bottom: 0; }
  .selector-visual { min-height: 440px; }
  .light-control { grid-template-columns: auto 1fr; }
  .light-control output { grid-column: 1 / -1; }
  .dialog-image { min-height: 310px; }
}

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