/* dapur. — a dark showroom / specification-sheet look: graphite page, hairlines, square corners, light grotesk
   headlines and mono labels. The only colour on the page is the kitchen itself, plus one brass accent. */
:root {
  --bg: #111312;
  --bg-2: #171a18;
  --ink: #ece9e2;
  --mute: #8d918a;
  --line: rgba(236, 233, 226, 0.14);
  --line-2: rgba(236, 233, 226, 0.3);
  --brass: #c6a46a;
  --gutter: clamp(16px, 3vw, 44px);
  --spec-w: clamp(340px, 31vw, 440px);
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}
:lang(zh) { --sans: 'Hanken Grotesk', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; --mono: 'JetBrains Mono', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', monospace; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, fieldset { margin: 0; }
h1, h2 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(34px, 3.3vw, 50px); }
h2 { font-size: clamp(36px, 5vw, 76px); max-width: 14ch; }
:lang(zh) :is(h1, h2) { letter-spacing: -0.01em; line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) h2 { max-width: 11em; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
i { font-style: normal; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.eyebrow, .step legend i, .bar nav i, .quote small, .caption, .daynight, .notes h3, .steps em, .lines th small, .loader-text, .note, .visit label span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute);
}
:lang(zh) :is(.eyebrow, .quote small, .caption, .daynight, .notes h3, .steps em, .lines th small, .loader-text, .note, .visit label span) { letter-spacing: 0.04em; font-size: 12.5px; }
.eyebrow { display: flex; gap: 14px; margin-bottom: 18px; }
.eyebrow i { color: var(--brass); }
.lede { color: var(--mute); font-size: 16px; margin-top: 16px; max-width: 44ch; }

/* Header: a thin rule, no pills. */
.bar { position: sticky; top: 0; z-index: 30; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 var(--gutter); background: rgba(17, 19, 18, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wordmark { font-size: 21px; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; }
.wordmark span { color: var(--brass); }
.bar nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.bar nav a { display: flex; gap: 8px; align-items: baseline; text-decoration: none; font-size: 14px; color: var(--mute); transition: color 0.2s; }
.bar nav a:hover { color: var(--ink); }
.bar nav i { font-size: 10.5px; color: var(--brass); }
.bar-end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang { background: none; border: 0; padding: 8px 4px; cursor: pointer; font: 500 13px var(--mono); letter-spacing: 0.06em; color: var(--mute); }
.lang:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 500 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
:lang(zh) .btn { letter-spacing: 0.04em; font-size: 14px; }
.btn:hover { border-color: var(--ink); }
.btn-solid { background: var(--brass); border-color: var(--brass); color: #16130c; }
.btn-solid:hover { background: #d6b67e; border-color: #d6b67e; }
.bar .btn { min-height: 36px; padding: 0 14px; }

/* Designer: the photograph stays in view while the specification scrolls beside it. */
.designer { display: grid; grid-template-columns: minmax(0, 1fr) var(--spec-w); gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter) clamp(24px, 4vw, 56px); align-items: start; }
.photo-col { position: sticky; top: 56px; height: calc(100vh - 56px); height: calc(100svh - 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 0; }
.photo { position: relative; width: 100%; max-width: calc((100vh - 56px - 44px - 54px) * 1.5); max-width: calc((100svh - 56px - 44px - 54px) * 1.5); aspect-ratio: 3 / 2; background: var(--bg-2); margin: 0 auto; }
.stack { position: absolute; inset: 0; overflow: hidden; }
.stack img { position: absolute; display: block; opacity: 0; transition: opacity 0.45s ease; user-select: none; -webkit-user-drag: none; }
.stack img.is-on { opacity: 1; }
.stack-night { opacity: 0; }
.photo-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 19, 18, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s 0.25s; }
.photo-busy.is-on { opacity: 1; }
.photo-busy i { width: 30px; height: 30px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
.tick { position: absolute; width: 12px; height: 12px; border: 0 solid var(--line-2); pointer-events: none; }
.tick.tl { left: -7px; top: -7px; border-left-width: 1px; border-top-width: 1px; }
.tick.tr { right: -7px; top: -7px; border-right-width: 1px; border-top-width: 1px; }
.tick.bl { left: -7px; bottom: -7px; border-left-width: 1px; border-bottom-width: 1px; }
.tick.br { right: -7px; bottom: -7px; border-right-width: 1px; border-bottom-width: 1px; }
.photo-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 30px; width: 100%; max-width: calc((100vh - 56px - 44px - 54px) * 1.5); max-width: calc((100svh - 56px - 44px - 54px) * 1.5); margin: 0 auto; }
.caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caption b { font-weight: 400; color: var(--ink); }
.daynight { display: flex; align-items: center; gap: 12px; flex: none; }
.daynight input { width: clamp(110px, 12vw, 180px); height: 28px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.daynight input::-webkit-slider-runnable-track { height: 1px; background: var(--line-2); }
.daynight input::-moz-range-track { height: 1px; background: var(--line-2); }
.daynight input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -7px; background: var(--brass); border: 0; border-radius: 0; transform: rotate(45deg); }
.daynight input::-moz-range-thumb { width: 12px; height: 12px; background: var(--brass); border: 0; border-radius: 0; transform: rotate(45deg); }

.spec-col { display: flex; flex-direction: column; min-height: calc(100vh - 56px); padding-top: clamp(28px, 5vh, 56px); }
.step { border: 0; padding: 0; margin-top: 26px; min-width: 0; border-top: 1px solid var(--line); }
.step:first-of-type { margin-top: 32px; }
.step:last-of-type { margin-bottom: 26px; }
.step legend { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 14px 0 12px; float: left; }
.step legend + * { clear: both; }
.step legend i { color: var(--brass); }
.step legend b { font-weight: 500; font-size: 15px; }
.step legend small { margin-left: auto; color: var(--mute); font-size: 13px; text-align: right; }
.opts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.opts-layout { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: inherit; }
.swatch { display: block; aspect-ratio: 1; background: var(--sw, #333) center / cover; outline: 1px solid var(--line); outline-offset: -1px; transition: transform 0.2s; }
.opt:hover .swatch { transform: translateY(-2px); }
.opt[aria-checked='true'] .swatch { outline: 1px solid var(--brass); outline-offset: 3px; }
.swatch.is-none { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(236, 233, 226, 0.16) 6px 7px); }
.swatch.is-metal { background: linear-gradient(135deg, color-mix(in srgb, var(--sw) 65%, #fff) 0%, var(--sw) 48%, color-mix(in srgb, var(--sw) 70%, #000) 100%); }
.opt-layout { padding: 14px 12px 11px; border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.opt-layout:hover { border-color: var(--line-2); }
.opt-layout svg { width: 100%; height: 40px; fill: none; stroke: var(--mute); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }
.opt-layout b { display: block; margin-top: 10px; font-weight: 400; font-size: 13.5px; color: var(--mute); }
.opt-layout[aria-checked='true'] { border-color: var(--brass); background: rgba(198, 164, 106, 0.08); }
.opt-layout[aria-checked='true'] svg { stroke: var(--brass); }
.opt-layout[aria-checked='true'] b { color: var(--ink); }

.quote { position: sticky; bottom: 0; z-index: 5; margin-top: auto; padding: 16px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: linear-gradient(rgba(17, 19, 18, 0), var(--bg) 22%); }
.quote > div { min-width: 0; padding-top: 18px; }
.quote small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote b { display: block; font-weight: 300; font-size: clamp(24px, 2vw, 29px); letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote > div > span { font-size: 13px; color: var(--mute); }
.quote .btn { flex: none; }

/* Sections below the designer */
section:not(.designer) { padding: clamp(72px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 64px); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.lines { width: 100%; border-collapse: collapse; }
.lines th, .lines td { padding: 18px 0; border-top: 1px solid var(--line); vertical-align: top; }
.lines th { text-align: left; font-weight: 400; font-size: 18px; }
.lines th small { display: block; margin-top: 6px; text-transform: none; letter-spacing: 0.02em; }
.lines td { text-align: right; font-weight: 300; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines tfoot th, .lines tfoot td { border-top: 1px solid var(--line-2); padding-top: 22px; }
.lines tfoot th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.lines tfoot td { font-size: clamp(30px, 3.4vw, 46px); color: var(--brass); }
.notes h3 { margin: 0 0 6px; font-weight: 400; }
.notes ul { margin: 0 0 34px; padding: 0; list-style: none; }
.notes li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--ink); }
.notes li::before { content: '+'; position: absolute; left: 2px; top: 11px; font-family: var(--mono); color: var(--brass); }
.notes .out li { color: var(--mute); }
.notes .out li::before { content: '–'; color: var(--mute); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 26px 24px 4px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 250px; }
.steps li + li { padding-left: 24px; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: ''; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.steps li + li::before { left: -4px; }
.steps span { font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.steps h3 { font-size: 19px; font-weight: 500; margin: 26px 0 8px; letter-spacing: -0.01em; }
.steps p { color: var(--mute); font-size: 15px; }
.steps em { margin-top: auto; padding-top: 22px; font-style: normal; color: var(--brass); }

.card-sec { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; background: var(--bg-2); }
.card-wrap { justify-self: center; width: min(440px, 100%); }
.card-wrap img { display: block; width: 100%; aspect-ratio: 4 / 5; background: #1c1f1d; box-shadow: 0 40px 90px -40px #000, 0 0 0 1px var(--line); }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.visit { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; max-width: 540px; }
.visit h3 { grid-column: 1 / -1; font-weight: 300; font-size: 28px; letter-spacing: -0.03em; }
.visit label { display: grid; gap: 6px; }
.visit label:first-of-type { grid-column: 1 / -1; }
.visit input { height: 46px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 17px; min-width: 0; border-radius: 0; }
.visit input:focus { outline: none; border-bottom-color: var(--brass); }
.visit input[aria-invalid='true'] { border-bottom-color: #e0705a; }
.visit button { justify-self: start; margin-top: 6px; }
.visit .note { grid-column: 1 / -1; text-transform: none; letter-spacing: 0.02em; }

.site-footer { padding: 28px var(--gutter) 44px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); max-width: min(520px, calc(100vw - 32px)); padding: 13px 18px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Loading screen: a single line fills as the first photograph loads. */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: start; gap: 18px; background: var(--bg); transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-word { font-size: 44px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.loader-word span { color: var(--brass); }
.loader-line { width: min(300px, 70vw); height: 1px; background: var(--line); }
.loader-line i { display: block; height: 1px; width: calc(var(--p) * 100%); background: var(--brass); transition: width 0.3s ease; }
.loader-text { display: flex; justify-content: space-between; width: min(300px, 70vw); }
.loader-text b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.l-zh { display: none; }
:lang(zh) .l-zh { display: inline; }
:lang(zh) .l-en { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tablet and phone: photograph pinned on top, specification scrolls under it, estimate pinned at the bottom. */
@media (max-width: 900px) {
  html { scroll-padding-top: 12px; }
  .bar { grid-template-columns: 1fr auto; height: 52px; position: static; }
  .bar nav { display: none; }
  .designer { display: block; padding: 0; }
  .photo-col { top: 0; height: auto; padding: 0; gap: 0; z-index: 6; background: var(--bg); border-bottom: 1px solid var(--line); }
  .photo, .photo-bar { max-width: none; }
  .tick { display: none; }
  .photo-bar { padding: 4px 16px; min-height: 40px; }
  .caption { display: none; }
  .daynight { width: 100%; justify-content: space-between; }
  .daynight input { flex: 1; width: auto; }
  .spec-col { min-height: 0; padding: 28px 16px 0; }
  h1 { font-size: 34px; }
  .step { margin-top: 22px; }
  .quote { padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); }
  .quote b { font-size: 23px; }
  .quote > div > span { display: none; }
  .quote .btn { min-height: 44px; padding: 0 14px; }
  section:not(.designer) { padding: 64px 16px; }
  .price-grid, .card-sec { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { min-height: 220px; padding: 22px 14px 18px 0; border-bottom: 1px solid var(--line); }
  .steps li + li { padding-left: 0; }
  .steps li:nth-child(even) { padding-left: 16px; border-right: 0; }
  .steps li:nth-child(odd) { border-right: 1px solid var(--line); }
  .steps li + li::before { left: 0; }
  .steps li:nth-child(even)::before { left: -4px; }
  .steps li:nth-child(n + 3)::before { display: none; }
  .steps span { font-size: 44px; }
  .lines td { font-size: 20px; }
  .card-wrap { width: min(330px, 86vw); }
  .visit { grid-template-columns: 1fr; }
  .share .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
