/* 利元建築 — 極簡風格（參考 haodesign.tw）
   載入在 style.css 之後，只覆蓋外觀，不改動結構。 */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --ink: #1f1f1f;
  --ink-soft: #7a7a7a;
  --wood: #1f1f1f;
  --wood-dark: #000000;
  --green: #1f1f1f;
  --line: #e6e6e6;
  --white: #ffffff;
  --radius: 0;
  --shadow: none;
  --serif: "Jost", "Noto Sans TC", "PingFang TC", sans-serif;
  --sans: "Jost", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body { font-weight: 300; letter-spacing: 0.02em; line-height: 1.85; }
h1, h2, h3 { font-weight: 400; letter-spacing: 0.06em; }
b, strong { font-weight: 500; }
section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow { font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ink-soft); }
.section-head { margin-bottom: 64px; }
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0.12em; }
.section-head p { font-size: 0.95rem; }

/* 按鈕：方角、細框、大楷字距 */
.btn {
  border-radius: 0; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 13px 30px; font-weight: 400; border-width: 1px;
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,0.9); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }

/* 頁首 */
.site-header { background: rgba(255,255,255,0.96); border-bottom: none; }
.nav { height: 84px; }
.logo { font-family: var(--sans); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.12em; }
.logo-mark { border-radius: 0; background: var(--ink); width: 34px; height: 34px; font-size: 1rem; font-weight: 400; }
.logo small { font-size: 0.6rem; letter-spacing: 0.3em; }
.nav-links { gap: 26px; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .btn { padding: 9px 18px; font-size: 0.72rem; }
.nav-links .lang-switch { border-radius: 0; border: none; padding: 0; font-size: 0.72rem; }

/* 首頁全屏大相 */
.hero-full {
  position: relative; min-height: min(calc(100vh - 84px), 880px); padding: 0;
  display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden;
}
.hero-full .hero-bg { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.hero-full .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-full::after { content: ""; position: absolute; inset: 0; background: rgba(20, 18, 16, 0.42); }
.hero-full-inner { position: relative; z-index: 1; max-width: 760px; padding: 0 24px; }
.hero-full .eyebrow { color: rgba(255,255,255,0.85); }
.hero-full h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: 0.14em; margin: 14px 0 22px; }
.hero-full h1 em { font-style: normal; color: inherit; }
.hero-full .lead { color: rgba(255,255,255,0.88); font-size: 1rem; margin-bottom: 36px; }
.hero-full .hero-actions { justify-content: center; }

/* 數字帶 */
.stats { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 50px 0; }
.stats-grid strong { font-family: var(--sans); font-weight: 300; font-size: 1.7rem; letter-spacing: 0.08em; }
.stats-grid span { opacity: 1; color: var(--ink-soft); font-size: 0.78rem; letter-spacing: 0.2em; }

/* 卡片：去掉外框、圓角、陰影和圖示，改用細線分隔 */
.card {
  background: transparent; border: none; border-top: 1px solid var(--ink); border-radius: 0;
  padding: 22px 4px 8px;
}
.card:hover { transform: none; box-shadow: none; }
.card .icon { display: none; }
.card h3 { font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 10px; }
.card p { font-size: 0.9rem; }
.grid-3, .grid-4 { gap: 48px 36px; }
.package.featured { border-width: 1px 0 0; border-color: var(--ink); }
.package.featured::before { display: none; }
.package li { border-bottom-color: var(--line); font-size: 0.9rem; }
.package li::before { color: var(--ink); }
.tag { background: none; padding: 0; border-radius: 0; color: var(--ink-soft); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; }

/* 作品：正方形相片，下方只有名稱 */
.work { border: none; border-radius: 0; background: transparent; }
.work-img { aspect-ratio: 1 / 1; background: var(--bg); }
.work-img img { object-fit: contain; } /* 相片完整顯示，不裁切；白色背景令留白融入頁面 */
.work:hover .work-img img { transform: scale(1.03); }
.work-body { text-align: center; padding: 14px 0 0; }
.work-body .tag { display: none; }
.work-body h3 { font-family: var(--sans); font-size: 0.92rem; font-weight: 400; letter-spacing: 0.1em; }
.work-meta { font-size: 0.78rem; margin-top: 2px; }
.work-count { border-radius: 0; background: rgba(0,0,0,0.6); font-size: 0.7rem; letter-spacing: 0.1em; }
.work-badge { border-radius: 0; border: none; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 0.68rem; letter-spacing: 0.15em; }
.filters + .grid-3 { grid-template-columns: repeat(4, 1fr); gap: 40px 22px; }
.filters { gap: 6px 28px; margin-bottom: 56px; }
.filters button {
  background: none; border: none; border-radius: 0; padding: 4px 0; color: var(--ink-soft);
  font-size: 0.82rem; letter-spacing: 0.15em; border-bottom: 1px solid transparent;
}
.filters button.active { background: none; color: var(--ink); border-bottom-color: var(--ink); }

/* 子頁標題 */
.page-hero { padding: 90px 0 30px; border-bottom: 1px solid var(--line); margin: 0 auto 40px; max-width: 1160px; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: 0.3em; font-weight: 400; }
.page-hero p { font-size: 0.95rem; }

/* 圖片：去圓角 */
.photo, .feature-split .photo, .hero-visual .photo, .demo-canvas, .ph { border-radius: 0; }
.feature-split .photo { background: transparent; }
.feature-split h2 { letter-spacing: 0.12em; }
.check-list li { border-bottom-color: var(--line); }
.check-list li::before { color: var(--ink); }

/* 流程 */
.step::before { border-radius: 0; border-color: var(--ink); color: var(--ink); background: transparent; font-family: var(--sans); font-weight: 300; }

/* 保養表 */
.warranty-table { border-radius: 0; background: transparent; }
.warranty-table th { background: transparent; color: var(--ink); border-bottom: 1px solid var(--ink); font-weight: 500; letter-spacing: 0.1em; }
.warranty-table td:last-child { color: var(--ink); }

/* 評價、常見問題 */
.quote::before { color: var(--ink-soft); }
.faq details { border-radius: 0; border: none; border-bottom: 1px solid var(--line); background: transparent; padding: 20px 4px; margin: 0; }
.faq summary::after { color: var(--ink); }

/* 表格 */
.form { border-radius: 0; border: 1px solid var(--line); background: var(--bg); }
.field input, .field select, .field textarea { border-radius: 0; background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--ink); }
.contact-info h2 { letter-spacing: 0.12em; }

/* 3D 示範按鈕 */
.demo-tabs button { border-radius: 0; border-color: var(--line); font-size: 0.82rem; letter-spacing: 0.1em; }
.demo-tabs button b { border-radius: 0; }
.demo-tabs button.active, .demo-plans button.active, .demo-rooms button.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* 頁尾 */
.site-footer { background: var(--bg); color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-footer .logo, .site-footer h4 { color: var(--ink); }
.site-footer .logo small { color: var(--ink-soft); }
.site-footer h4 { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { border-top-color: var(--line); letter-spacing: 0.1em; }

/* 放大檢視 */
.lightbox img { border-radius: 0; object-fit: contain; }

@media (max-width: 980px) {
  .filters + .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  section { padding: 80px 0; }
  .filters + .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .nav-links { background: var(--bg); }
  .hero-full { min-height: 78vh; }
}

/* 3D 示範頁的元件（Codex 加入）統一成方角、淺色 */
.demo-canvas, .demo-living-notes, .demo-render-grid figure, .demo-photo-stage, .demo-solar { border-radius: 0; }
.demo-living-notes, .demo-solar { background: var(--bg-alt); border-color: var(--line); }
.demo-photo-stage, .demo-render-grid figure { background: var(--bg); }
.demo-canvas { border-color: var(--line); background: var(--bg-alt); }

/* Macau identity: porcelain blue, a quiet terracotta detail, and an open arch. */
:root { --brand-blue: #244b62; --brand-clay: #c68b6f; --ink-soft: #686965; }
.container { width: min(1320px, 90%); }
.site-header { backdrop-filter: none; }
.nav { min-height: 100px; height: auto; padding-block: 20px; gap: 24px; }
.logo { flex-shrink: 0; gap: 14px; color: var(--brand-blue); }
.logo-mark { display: block; width: 48px; height: 48px; background: none; flex-shrink: 0; }
.logo-mark img { width: 100%; height: 100%; }
.logo small { margin-top: 2px; letter-spacing: .18em; }
.logo > span:last-child { max-width: 240px; }
.nav-links { gap: clamp(15px, 1.8vw, 28px); }
.nav-links a { letter-spacing: .12em; }
.nav-links .btn-primary { background: transparent; color: var(--brand-blue); border-color: #bbc7cd; }
.nav-links .btn-primary:hover { background: var(--brand-blue); color: white; }
.hero-editorial { padding: 0; width: min(1440px, 94%); margin: 0 auto; }
.hero-project { display: block; }
.hero-editorial .hero-bg { height: clamp(340px, 65vh, 760px); background: #f3f2ef; border-radius: 0; }
.hero-editorial .hero-img { height: 100%; width: 100%; object-fit: contain; }
.hero-project-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: .7rem; letter-spacing: .14em; color: var(--ink-soft); }
.hero-project-caption span:last-child { font-size: 1.25rem; color: var(--brand-blue); }
.hero-intro { padding: 72px 3% 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12%; }
.hero-intro h1 { font-size: clamp(1.8rem, 3.1vw, 2.8rem); line-height: 1.65; letter-spacing: .13em; }
.hero-intro em { font-style: normal; }
.hero-intro .eyebrow { color: var(--brand-blue); }
.hero-intro-copy { padding-bottom: 12px; }
.hero-intro-copy .lead { max-width: 450px; color: var(--ink-soft); font-size: .92rem; line-height: 2.1; margin-bottom: 24px; }
.text-link { display: inline-block; font-size: .78rem; letter-spacing: .14em; padding-bottom: 7px; border-bottom: 1px solid var(--brand-blue); color: var(--brand-blue); }
.selected-work { padding: 64px 0 96px; }
.selected-work .section-head { text-align: left; max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 0 24px; margin-bottom: 40px; }
.selected-work .section-head .eyebrow { grid-column: 1 / -1; }
.selected-work .section-head p { align-self: end; padding-bottom: 12px; font-size: .82rem; }
.selected-work .work-body { text-align: left; padding-top: 20px; }
.selected-work .work-img { aspect-ratio: 4 / 5; }
.work-img img, .work:hover .work-img img { transform: none; object-fit: contain; }
.work:hover .work-body h3 { color: var(--brand-blue); }
.filters + .grid-3 { gap: 58px 32px; }
.page-hero { max-width: 1320px; width: 90%; padding-top: 72px; }
.page-hero h1 { letter-spacing: .2em; }
.site-footer .logo { color: var(--brand-blue); }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 5px; }
@media (max-width: 1100px) and (min-width: 761px) {
  .nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 760px) {
  .nav { min-height: 84px; padding-block: 16px; gap: 12px; }
  .logo { font-size: 1rem; gap: 10px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo > span:last-child { max-width: 230px; }
  .logo small { font-size: .55rem; letter-spacing: .1em; }
  .nav-links { top: 100%; padding: 24px; border-block: 1px solid var(--line); }
  .hero-editorial { width: 90%; }
  .hero-editorial .hero-bg { height: auto; aspect-ratio: 4 / 3; }
  .hero-project-caption { font-size: .6rem; letter-spacing: .06em; gap: 8px; }
  .hero-intro { grid-template-columns: 1fr; gap: 24px; padding: 42px 0 10px; }
  .hero-intro h1 { font-size: 1.8rem; }
  .hero-intro-copy .lead { font-size: .88rem; }
  .selected-work { padding: 48px 0 64px; }
  .selected-work .section-head { display: block; margin-bottom: 28px; }
  .selected-work .grid-3 { grid-template-columns: 1fr; gap: 36px; }
  .selected-work .work-img { aspect-ratio: 4 / 3; }
  .filters + .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .filters { gap: 10px 22px; margin-bottom: 36px; }
  .page-hero { padding-top: 48px; }
  .section-head h2 { letter-spacing: .08em; }
  .site-footer .logo > span:last-child { max-width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Recorded construction experience and separately labelled design proposals. */
.estate-experience .section-head { text-align: left; max-width: 780px; margin-left: 0; }
.estate-records { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 40px; }
.estate-record { display: block; padding: 22px 0; border-top: 1px solid var(--line); }
.estate-record strong { color: var(--brand-blue); font-size: 1rem; }
.estate-record span { display: block; color: var(--ink-soft); font-size: .78rem; margin-top: 5px; }
.work:target { outline: 2px solid var(--brand-blue); outline-offset: 8px; scroll-margin-top: 140px; }
.catalog-callout { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; padding: 26px 0; border-block: 1px solid var(--line); margin-block: 32px; }
.catalog-callout p { color: var(--ink-soft); max-width: 760px; font-size: .88rem; }
.ideas-section { padding-top: 12px; }
.ideas-disclosure { max-width: 960px; font-size: .88rem; color: var(--ink-soft); padding-left: 20px; border-left: 2px solid var(--brand-blue); margin-bottom: 38px; }
.ideas-tools label { margin-right: 14px; font-size: .85rem; }
.ideas-tools select { max-width: 100%; border: 1px solid var(--line); padding: 11px 18px; background: white; color: var(--ink); font: inherit; font-size: .85rem; }
.idea-needs { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 30px 0 18px; }
.idea-needs button, .plan-choices button { border: 0; border-bottom: 1px solid transparent; background: none; padding: 5px 0; color: var(--ink-soft); font: inherit; font-size: .82rem; cursor: pointer; }
.idea-needs button[aria-pressed=true], .plan-choices button[aria-pressed=true] { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
#ideaCount { margin-bottom: 28px; }
.idea-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 58px 32px; }
.idea-card[hidden], #ideaEmpty[hidden], .source-plan[hidden], .plan-load-message[hidden] { display: none; }
.idea-visual { position: relative; background: #f4f3f0; }
.idea-visual img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.idea-visual > span { position: absolute; left: 10px; bottom: 10px; font-size: .6rem; padding: 4px 8px; color: #333; background: rgba(255,255,255,.94); }
.idea-summary { padding-top: 20px; }
.idea-summary .eyebrow { font-size: .64rem; letter-spacing: .1em; margin-bottom: 8px; }
.idea-summary h2 { font-size: 1.08rem; letter-spacing: .05em; }
.idea-summary > p:not(.eyebrow) { color: var(--ink-soft); font-size: .8rem; margin: 10px 0 18px; }
.idea-summary button { background: none; border-inline: 0; border-top: 0; font-family: inherit; cursor: pointer; }
#ideaDialog { width: min(1160px,94vw); max-height: 92dvh; padding: 0 36px 36px; margin: auto; border: 0; background: #fff; color: var(--ink); overscroll-behavior: contain; }
#ideaDialog::backdrop { background: rgba(15,25,30,.6); }
.idea-dialog-open { overflow: hidden; }
.idea-dialog-close { position: sticky; top: 12px; display: block; margin-left: auto; z-index: 2; width: 44px; height: 44px; background: white; border: 1px solid var(--line); font: 28px/1 sans-serif; cursor: pointer; color: var(--ink); }
.idea-detail > h2 { font-size: clamp(1.5rem,3vw,2rem); }
.idea-detail > p:not(.eyebrow) { color: var(--ink-soft); font-size: .9rem; margin-top: 10px; }
.idea-detail-columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; margin-top: 30px; }
.idea-detail-columns figure { min-width: 0; }
.idea-render { width: 100%; }
.idea-detail figcaption { color: var(--ink-soft); font-size: .72rem; margin-top: 10px; }
.idea-detail h3 { font-size: 1rem; margin-bottom: 14px; }
.idea-detail ol { padding-left: 22px; }
.idea-detail li { font-size: .88rem; margin-bottom: 12px; }
.idea-detail-columns h3:not(:first-child) { margin-top: 24px; }
.idea-detail-columns > div > p { color: var(--ink-soft); font-size: .86rem; }
.idea-plan-section { margin-top: 40px; padding: 30px 0 0; border-top: 1px solid var(--line); }
.idea-plan-section p { margin-bottom: 16px; }
.plan-choices { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 18px; }
.source-plan { width: 100%; height: auto; max-height: min(65vh,650px); object-fit: contain; background: #f9f9f7; }
.source-plan-open:has(.source-plan[hidden]) { display: none; }
.plan-load-message { padding: 20px; background: #f4f3f0; font-size: .85rem; }
.idea-plan-section .note a { color: var(--brand-blue); text-decoration: underline; }
.idea-detail-actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 34px; }
@media(min-width:761px) and (max-width:1250px) { .nav { flex-wrap:wrap; justify-content:center; } }
@media(max-width:1000px) { .idea-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) {
  .estate-records { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
  .estate-record strong { font-size: .9rem; }
  .estate-record span { font-size: .72rem; }
  .ideas-tools label { display: block; margin-bottom: 10px; }
  .ideas-tools select { width: 100%; }
  .idea-grid { grid-template-columns: 1fr; gap: 38px; }
  .idea-needs { gap: 12px 22px; }
  #ideaDialog { width: 100%; max-height: 100dvh; height: 100dvh; padding: 0 20px 30px; }
  .idea-detail-columns { grid-template-columns: 1fr; gap: 24px; }
  .source-plan { height: auto; max-height: 50vh; }
  .idea-detail-actions .btn { width:100%; justify-content:center; }
}

/* Distinct styles and an identified source unit for every redesign. */
.ideas-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ideas-tools label:not(:first-child) { margin-left: 22px; }
.ideas-tools .idea-needs { flex-basis: 100%; }
.idea-style-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.idea-style { color: var(--brand-blue); font-size: .8rem; font-weight: 500; letter-spacing: .04em; }
.idea-palette { display: inline-flex; flex-shrink: 0; gap: 4px; }
.idea-palette i { width: 13px; height: 13px; border: 1px solid rgba(0,0,0,.08); }
.idea-summary .idea-unit-summary { font-size: .72rem; line-height: 1.8; padding-left: 10px; border-left: 1px solid var(--line); margin-top: 8px; }
.idea-selected-unit { margin-top: 24px; padding: 20px; background: #f5f6f4; border-left: 2px solid var(--brand-blue); }
.idea-selected-unit h3 { margin-top: 10px; margin-bottom: 8px; }
.idea-selected-unit > p { font-size: .84rem; color: var(--ink-soft); }
.idea-selected-unit .note { margin-top: 10px; }
.source-plan-open { display: block; position: relative; }
.unit-highlight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.unit-highlight[hidden] { display: none; }
@media(max-width:760px) {
  .ideas-tools { display: block; }
  .ideas-tools label { display: block; margin: 18px 0 10px; }
  .ideas-tools label:not(:first-child) { margin-left: 0; }
  .ideas-tools select { width: 100%; }
}

/* Photography-led presentation: consistent covers, quiet type, full images in galleries. */
:root { --ink-soft: #62635f; }
body { font-weight: 400; letter-spacing: .025em; }
section { padding-block: 80px; }
.container { width: min(1200px, 88%); }
.site-header { position: relative; background: #fff; }
.nav { min-height: 104px; }
.nav-links a { font-size: .72rem; letter-spacing: .1em; }
.logo { font-size: 1.05rem; }
.logo-mark { width: 42px; height: 42px; }
.hero-editorial { width: 100%; max-width: none; }
.hero-editorial .hero-bg { height: auto; aspect-ratio: 16 / 9; max-height: 790px; background: #eeece8; }
.hero-editorial .hero-img { object-fit: cover; object-position: 50% 52%; }
.hero-project { position: relative; }
.hero-project-caption { position: absolute; inset: auto 0 0; padding: 26px 6%; color: white; border: 0; background: linear-gradient(transparent,rgba(20,20,20,.55)); }
.hero-project-caption span:last-child { color: white; }
.hero-intro { max-width: 1200px; width: 88%; margin: auto; padding: 72px 0 0; gap: 10%; }
.hero-intro h1 { font-size: clamp(1.8rem,3vw,2.6rem); letter-spacing: .12em; }
.hero-intro-copy .lead { font-size: .9rem; }
.selected-work { padding: 76px 0 90px; }
.section-head { margin-bottom: 42px; }
.section-head h2 { font-size: 1.55rem; }
.selected-work .grid-3 { gap: 28px; }
.work { overflow: visible; }
.work-img, .selected-work .work-img { aspect-ratio: 1; background: #eeece8; }
.work-img img, .work:hover .work-img img { object-fit: cover; object-position: var(--cover-focus,50% 50%); transform: none; transition: opacity .25s ease; }
.work:hover .work-img img { opacity: .88; }
#project-polytec-cabinet .work-img img,
#project-peak-duplex .work-img img { object-fit: contain; object-position: center; }
.work-body, .selected-work .work-body { padding: 15px 0 0; text-align: center; }
.work-body h3 { font-size: .94rem; letter-spacing: .04em; margin: 0 0 5px; }
.work-body .tag { display: none; }
.work-body .work-meta { font-size: .7rem; line-height: 1.8; color: var(--ink-soft); }
.work-count { bottom: 10px; right: 10px; background: rgba(255,255,255,.94); color: #333; padding: 3px 8px; font-size: .62rem; }
.work-badge { top: 10px; left: 10px; font-size: .62rem; padding: 4px 8px; background: rgba(255,255,255,.94); color: #333; }
.page-hero { width: min(1200px,88%); padding: 46px 0 30px; margin-bottom: 0; }
.page-hero h1 { font-size: 1.6rem; letter-spacing: .2em; }
.page-hero p { font-size: .8rem; }
.page-hero .eyebrow { font-size: .65rem; }
.portfolio-collection { padding-top: 0; }
.page-portfolio #estate-ideas-link { margin: 0 0 26px; border: 0; padding: 22px 0 0; gap: 12px; }
.page-portfolio #estate-ideas-link p, .page-portfolio #estate-ideas-link .text-link { font-size: .72rem; }
.collection-note { font-size: .7rem; color: var(--ink-soft); text-align: center; margin: 18px 0 22px; }
.page-portfolio .filters { margin: 0 0 54px; gap: 16px 34px; }
.page-portfolio .filters + .grid-3 { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 38px 22px; }
.page-portfolio .filters button { font-size: .8rem; }
.page-home .feature-split .photo { background: #eeece8; }
.page-home .design-img { max-height: 620px; object-fit: contain; }
.page-home .stats { padding-block: 36px; }
.page-home .estate-records { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 28px; }
.page-home .estate-record strong { font-size: .9rem; }
.page-home .estate-record span { font-size: .7rem; }
.page-home .card { padding-top: 20px; }
.page-home .grid-3, .page-home .grid-4 { row-gap: 32px; }
.page-ideas .ideas-section { padding-top: 30px; }
.idea-grid { gap: 48px 30px; }
.idea-visual { background: transparent; }
.idea-visual img { aspect-ratio: auto; height: auto; object-fit: contain; }
.idea-summary { padding-top: 16px; }
.idea-summary h2 { font-size: 1rem; }
.idea-summary .eyebrow { font-size: .62rem; }
.idea-unit-summary { display: none; }
.site-footer { padding-top: 55px; }
@media(min-width:761px) and (max-width:1250px) {
  .nav { justify-content: space-between; flex-wrap: wrap; gap: 16px; }
  .nav-links { gap: 16px; }
}
@media(max-width:1000px) {
  .page-portfolio .filters + .grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .page-home .estate-records { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  section { padding-block: 56px; }
  .container { width: 88%; }
  .nav { min-height: 84px; }
  .hero-editorial .hero-bg { aspect-ratio: 4 / 5; max-height: none; }
  .hero-editorial .hero-img { object-position: 58% 50%; }
  .hero-project-caption { padding: 22px 6%; flex-wrap: wrap; font-size: .58rem; }
  .hero-project-caption span:first-child { flex-basis: 100%; }
  .hero-intro { padding-top: 40px; gap: 18px; }
  .hero-intro h1 { font-size: 1.75rem; }
  .selected-work { padding: 52px 0 64px; }
  .selected-work .grid-3 { gap: 32px; }
  .selected-work .work-img { aspect-ratio: 1; }
  .work-body .work-meta { font-size: .65rem; }
  .page-hero { padding-top: 30px; width: 88%; }
  .page-hero h1 { font-size: 1.4rem; }
  .page-hero p { font-size: .76rem; }
  .page-portfolio #estate-ideas-link { gap: 12px; margin-bottom: 20px; }
  .page-portfolio .filters { margin-bottom: 30px; gap: 12px 22px; }
  .page-portfolio .filters + .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 16px; }
  .page-portfolio .work-meta { display: none; }
  .page-portfolio .work-body h3 { font-size: .8rem; }
  .page-home .estate-records { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-ideas .ideas-section { padding-top: 24px; }
  .idea-grid { gap: 38px; }
}
/* The selected Novacity photo is levelled; no additional cover rotation is applied. */
.home-studies { background: #f6f5f2; }
.home-studies .section-head { text-align: left; max-width: none; }
.home-studies .section-head p { font-size: .85rem; }
.study-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.study-pair img { width: 100%; height: auto; aspect-ratio: auto; transition: opacity .25s ease; }
.study-pair a:hover img { opacity: .88; }
.study-pair figcaption { padding-top: 18px; }
.study-pair figcaption > span { color: var(--ink-soft); font-size: .65rem; letter-spacing: .08em; }
.study-pair h3 { font-size: 1.05rem; margin: 6px 0; }
.study-pair p { font-size: .75rem; color: var(--ink-soft); }
.home-studies .center { margin-top: 38px; }
@media(max-width:760px) { .study-pair { grid-template-columns: 1fr; gap: 34px; } }

/* Owner-supplied complete home: one case, connected rooms, and original design evidence. */
.case-intro { padding-block: 56px 32px; }
.case-intro h1 { font-size: clamp(1.8rem,3.4vw,3rem); margin: 15px 0; }
.case-intro > p { color: var(--ink-soft); }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: .7rem; color: var(--ink-soft); }
.case-cover { width: min(1600px,100%); margin: auto; }
.case-cover img { width: 100%; height: auto; }
.case-cover figcaption { width: min(1200px,88%); margin: 15px auto 0; color: var(--ink-soft); font-size: .72rem; }
.case-nav { display: flex; flex-wrap: wrap; gap: 22px 40px; padding-block: 26px; margin-top: 32px; border-block: 1px solid var(--line); font-size: .8rem; }
.case-nav a { border-bottom: 1px solid transparent; }
.case-nav a:hover { border-bottom-color: var(--brand-blue); }
.case-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.case-layout h2 { margin: 16px 0 24px; font-size: 1.7rem; }
.case-layout p { font-size: .88rem; color: var(--ink-soft); }
.case-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 28px; }
.case-specs > div { border-top: 1px solid var(--line); padding-top: 12px; }
.case-specs dt { font-size: .75rem; color: var(--ink-soft); }
.case-specs dd { font-size: .9rem; margin-top: 4px; }
.case-plan svg { width: 100%; height: auto; }
.case-plan img { display: block; width: 100%; height: auto; }
.demo-source-plan { margin: 0; background: #fff; padding: 16px; }
.demo-source-plan img { display: block; width: 100%; height: auto; max-height: 780px; object-fit: contain; }
.demo-source-plan figcaption { padding-top: 12px; font-size: .8rem; color: var(--ink-soft); }
.demo-visual-grid[hidden], .demo-source-plan[hidden] { display: none; }
.living-prototype { padding-top: 60px; padding-bottom: 80px; }
.living-heading { max-width: 800px; margin-bottom: 32px; }
.living-heading h1 { font-size: clamp(1.7rem,3vw,2.6rem); margin: 14px 0; }
.living-heading p { color: var(--ink-soft); }
.living-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.living-grid.is-comparing { grid-template-columns: 1fr 1fr; }
#livingCanvas { height: min(70vh,680px); min-height: 440px; background: #f5f2eb; touch-action: none; border: 1px solid #dedbd4; }
#livingCanvas canvas { display: block; width: 100%; height: 100%; }
#livingReferenceFigure { margin: 0; background: #f5f2eb; }
#livingReferenceFigure[hidden], #livingWalk[hidden] { display: none; }
#livingReference { width: 100%; height: min(70vh,680px); object-fit: contain; }
#livingReferenceFigure figcaption { text-align: center; font-size: .8rem; padding: 10px; }
@media(max-width:760px) { .living-prototype { padding-top: 32px; } .living-grid.is-comparing { grid-template-columns: 1fr; } #livingCanvas { height: 440px; min-height: 0; } #livingReference { height: 280px; } }
.case-plan a { cursor: pointer; }
.case-plan a:hover { text-decoration: underline; }
.case-room-section .section-head { text-align: left; max-width: 780px; margin-left: 0; }
.case-room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 40px; align-items: start; }
.case-room { min-width: 0; scroll-margin-top: 30px; }
.case-wide { grid-column: 1 / -1; }
.case-room img { width: 100%; height: auto; }
.case-room-caption { display: flex; gap: 20px; margin-top: 20px; }
.case-room-caption h3 { font-size: 1.1rem; margin-bottom: 8px; }
.case-room-caption p { color: var(--ink-soft); font-size: .82rem; max-width: 730px; }
.case-room-caption .eyebrow { font-size: .7rem; padding-top: 3px; }
.case-joinery { background: #f6f5f2; }
.case-joinery .section-head { max-width: 820px; margin-left: 0; text-align: left; }
.case-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; }
.case-detail-grid figure:first-child { grid-column: 1 / -1; }
.case-detail-grid img { width: 100%; height: auto; }
.case-detail-grid figcaption { margin-top: 12px; font-size: .8rem; }
.case-joinery .note { margin-top: 26px; }
.case-next { text-align: center; }
.case-next > p { max-width: 740px; margin: 24px auto; color: var(--ink-soft); font-size: .88rem; }
.case-next .case-credit { font-size: .72rem; margin-top: 32px; }
.case-demo-link { padding: 30px; background: #f6f5f2; margin-block: 32px; }
.case-demo-link h2 { font-size: 1.4rem; margin: 10px 0; }
.case-demo-link p { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.case-portfolio-feature { padding-block: 44px; }
.case-portfolio-feature > a { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.case-portfolio-feature img { width: 100%; height: auto; }
.case-portfolio-feature h2 { font-size: 1.6rem; margin: 12px 0 18px; }
.case-portfolio-feature p { font-size: .85rem; color: var(--ink-soft); margin-bottom: 20px; }
.case-portfolio-feature small { display: block; margin-top: 20px; font-size: .65rem; color: var(--ink-soft); }
.page-home .hero-editorial .hero-bg { aspect-ratio: 2500 / 1269; max-height: none; }
.page-home .hero-editorial .hero-img { object-fit: contain; }
@media(max-width:760px) {
  .case-intro { padding-top: 30px; }
  .case-intro h1 { font-size: 1.65rem; }
  .case-meta { gap: 8px 20px; }
  .case-layout { grid-template-columns: 1fr; gap: 28px; }
  .case-layout h2 { font-size: 1.4rem; }
  .case-nav { gap: 18px 24px; font-size: .75rem; }
  .case-room-grid, .case-detail-grid { grid-template-columns: 1fr; gap: 38px; }
  .case-room-caption { gap: 12px; }
  .case-room-caption h3 { font-size: 1rem; }
  .case-room-caption p { font-size: .78rem; }
  .case-portfolio-feature > a { grid-template-columns: 1fr; gap: 24px; }
  .case-portfolio-feature h2 { font-size: 1.3rem; }
  .case-demo-link { padding: 24px; }
  .page-home .hero-project-caption { position: static; background: #f6f5f2; color: var(--ink); padding: 14px 6%; }
  .page-home .hero-project-caption span:last-child { color: var(--brand-blue); }
}
/* Full source photo remains visible; captions explain intentional craft viewpoints. */
.lightbox .lb-caption { position: absolute; bottom: 46px; left: 12%; width: 76%; text-align: center; color: #fff; font-size: .78rem; line-height: 1.7; pointer-events: none; text-shadow: 0 1px 4px #000; }

.demo-visual-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.demo-visual-grid.is-comparing { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.demo-visual-grid > * { min-width: 0; }
.demo-visual-grid.is-comparing .demo-canvas { height: 420px; min-height: 0; }
#demoMatchReference { margin: 0; background: #eee9e2; }
#demoMatchReference[hidden], #demoReferenceControls[hidden] { display: none; }
#demoMatchImage { width: 100%; height: 420px; object-fit: contain; }
#demoMatchCaption { padding: 12px; text-align: center; font-size: .76rem; color: var(--ink-soft); background: white; }
#demoCompareToggle[aria-pressed=true] { color: white; background: var(--ink); }
@media(max-width:760px) {
  .demo-visual-grid.is-comparing { grid-template-columns: minmax(0,1fr); }
  .demo-visual-grid.is-comparing .demo-canvas, #demoMatchImage { height: 310px; }
}

/* Keep the tour crisp and usable in split comparison and narrow viewports. */
.living-grid > * { min-width: 0; }
#livingCanvas { overflow: hidden; position: relative; }
#livingCanvas:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.living-prototype [data-living-walk] { min-width: 48px; min-height: 48px; touch-action: none; user-select: none; }
@media(max-width:760px) {
 .living-view-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .living-view-tabs button { margin: 0; padding-inline: 10px; }
 #livingCanvas { height: clamp(320px,58svh,440px); }
 #livingReference { height: auto; max-height: 440px; display: block; }
}

/* Keep the balanced catalogue close to its filters. */
.page-ideas .ideas-experiences{padding-block:0}.page-ideas .ideas-experiences .catalog-callout{margin-block:20px}.page-ideas .ideas-experiences p{flex-basis:100%;max-width:none;margin:0}.page-ideas .ideas-experiences a{font-size:.85rem}

.idea-supporting-study{margin-top:24px;padding:16px 0;border-top:1px solid var(--line)}.idea-supporting-study summary{cursor:pointer;font-size:.85rem;color:var(--ink-soft)}.idea-supporting-study img{display:block;width:100%;max-width:780px;margin-top:18px}

/* Interior design collection R24 */
.idea-visual img.interior-card-cover {width:100%;height:280px;object-fit:cover;object-position:center;aspect-ratio:4/3;}
.idea-interior-gallery {margin-top:28px;padding:0;}
.idea-interior-gallery .note{text-align:left;margin-top:12px;}
.idea-interior-gallery figure {margin:24px 0;}
.idea-interior-render {display:block;width:100%;height:auto;border-radius:4px;}
@media(max-width:600px){.idea-visual img.interior-card-cover {height:240px;}.idea-interior-gallery figure{margin:20px 0;}}

/* Anonymous residential concept collection */
.residential-card-link {display:block;color:inherit;text-decoration:none;}
.residential-card-link:focus-visible {outline:2px solid var(--brand-blue);outline-offset:6px;}
.residential-card-link:hover h2 {color:var(--brand-blue);}
.residential-ideas .idea-summary p {font-size:.82rem;color:var(--ink-soft);}
.concept-sleeping {max-width:850px;}
.home-concept-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 22px;padding:0;margin-top:28px;}
.home-concept-gallery figure {margin:0;min-width:0;}
.home-concept-gallery figure:first-child {grid-column:1/-1;}
.home-concept-gallery img {display:block;width:100%;height:auto;}
.home-concept-plan {padding:28px 0 0;border-top:1px solid var(--line);margin-top:36px;}
.home-concept-plan img {display:block;width:100%;max-width:700px;height:auto;margin:auto;}
.home-concept-plan .note {text-align:left;}
@media(max-width:680px){.home-concept-gallery {grid-template-columns:1fr;gap:22px;}.home-concept-gallery figure:first-child {grid-column:auto;}}

@media (max-width: 600px) {
  .stats-grid-three span { letter-spacing: 0.04em; }
}

.wechat-copy { margin: 6px 0 6px 10px; padding: 8px 10px; min-height: 44px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 0.8rem; cursor: pointer; }
.wechat-copy:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wechat-copy-status { display: block; font-size: 0.8rem; }
