/* The Karlie Company — Hospitality Showroom */
:root {
  --ink: #1C1B19; --ink-2: #4A443C; --ink-3: #675E53;
  --linen: #F3EEE6; --white: #FBF9F5; --stone: #CFC6B8; --sand: #E6DCCB; --oak: #5B4636; --brass: #A8864F;
  --rule: rgba(28, 27, 25, .15);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --pad: clamp(20px, 4.5vw, 64px); --max: 1520px; --hh: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="zh-Hans"] { --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; --sans: "Jost", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="zh-Hant-HK"] { --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif; --sans: "Jost", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
html[lang^="zh"] body { font-size: 16.5px; line-height: 1.9; letter-spacing: .02em; line-break: strict; }
body.no-scroll { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow { font: 500 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
html[lang^="zh"] .eyebrow { font-size: 13.5px; letter-spacing: .14em; }
.display { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; margin: 0; }
html[lang^="zh"] .display { font-weight: 500; line-height: 1.32; letter-spacing: .04em; }
.display em { font-style: italic; }
html[lang^="zh"] .display em { font-style: normal; display: block; }
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 26px; text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s; }
html[lang^="zh"] .btn { font-size: 15px; letter-spacing: .1em; }
.btn--light { border: 1px solid rgba(251, 249, 245, .8); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--oak); }
.textlink { text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid currentColor; }
html[lang^="zh"] .textlink { font-size: 14.5px; letter-spacing: .08em; }
.mail-alt { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--pad);
  background: rgba(243, 238, 230, .96); border-bottom: 1px solid var(--rule); transition: background .45s var(--ease), color .45s var(--ease), border-color .45s; }
.site-header.over-image:not(.solid):not(.menu-open) { background: linear-gradient(rgba(28,27,25,.42), rgba(28,27,25,0)); border-color: transparent; color: var(--white); }
.brand { display: flex; flex-direction: column; gap: 5px; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--latin); font-size: 20px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.brand-sub { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; white-space: nowrap; }
html[lang^="zh"] .brand-sub { font-size: 12px; letter-spacing: .18em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.nav > a { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
html[lang^="zh"] .nav > a { font-size: 14.5px; letter-spacing: .06em; }
.nav > a:hover, .nav > a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .num { font-family: var(--latin); font-size: 15px; margin-right: 7px; letter-spacing: 0; }
.lang { display: flex; gap: 2px; padding-left: clamp(12px, 1.6vw, 24px); border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 35%, transparent); }
.lang button { min-width: 38px; height: 40px; font-size: 14px; opacity: .65; border-bottom: 1px solid transparent; }
.lang button[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor; }
.menu-toggle { display: none; align-items: center; gap: 10px; height: 44px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.menu-toggle .bars { width: 22px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--hh); left: 0; right: 0; height: calc(100vh - var(--hh)); height: calc(100dvh - var(--hh)); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--pad) 40px; background: var(--linen); color: var(--ink); overflow-y: auto; display: none; }
  .nav.is-open { display: flex; animation: enter .35s var(--ease); }
  .nav > a { font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  html[lang^="zh"] .nav > a { font-size: 24px; }
  .nav > a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--oak); }
  .nav .num { font-size: 18px; color: var(--ink-3); margin-right: 14px; }
  .lang { border: 0; padding: 0; margin-top: 28px; gap: 10px; }
  .lang button { min-width: 56px; height: 46px; font-size: 16px; border: 1px solid var(--rule); }
  .lang button[aria-pressed="true"] { border-color: var(--ink); }
}
@media (max-width: 480px) { .brand-name { font-size: 16px; letter-spacing: .16em; } .brand-sub { font-size: 10px; } }

main { display: block; min-height: 70vh; }
main.enter { animation: enter .6s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px; overflow: hidden; color: var(--white); background: #3A2F25; }
.hero > img { position: absolute; inset: 0; animation: settle 2.2s var(--ease) both; }
@keyframes settle { from { transform: scale(1.035); } to { transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,27,25,0) 35%, rgba(28,27,25,.68) 100%); }
.hero-inner { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: clamp(36px, 7vh, 80px); }
.hero .eyebrow { color: rgba(251, 249, 245, .85); }
.hero h1 { font-size: clamp(44px, 7vw, 108px); max-width: 11em; }
html[lang^="zh"] .hero h1 { font-size: clamp(34px, 5.2vw, 76px); }
.hero h1 em { color: #EDE0C9; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.hero-foot p { margin: 0; max-width: 34em; color: rgba(251, 249, 245, .92); }

/* ---------- home: rooms ---------- */
.rooms-sec { padding: clamp(56px, 7vw, 100px) 0 0; }
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.room a { display: block; text-decoration: none; position: relative; overflow: hidden; color: var(--white); background: #3A2F25; }
.room-media { aspect-ratio: 4 / 5; }
.room-media img, .feat-media img, .plate-media img, .nc-media img, .mat-media img { transition: transform 1.2s var(--ease); }
.room a:hover img, .room a:focus-visible img, .feat a:hover img, .plate a:hover img, .next-ch:hover img, .mats a:hover img { transform: scale(1.03); }
.room-text { position: absolute; inset: auto 0 0 0; padding: 80px clamp(18px, 2vw, 30px) clamp(20px, 2.2vw, 30px); background: linear-gradient(rgba(28,27,25,0), rgba(28,27,25,.72)); }
.room-num { font-family: var(--latin); font-size: 22px; opacity: .85; }
.room h3 { font: 400 clamp(30px, 2.8vw, 42px)/1.1 var(--serif); margin: 4px 0 6px; }
html[lang^="zh"] .room h3 { font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); }
.room p { margin: 0 0 16px; font-size: 15px; color: rgba(251, 249, 245, .9); }
.room-go { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid rgba(251,249,245,.7); padding-bottom: 4px; }
html[lang^="zh"] .room-go { font-size: 14px; letter-spacing: .08em; }

/* ---------- home: featured ---------- */
.featured-sec { padding: clamp(72px, 9vw, 130px) 0 0; }
.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); row-gap: clamp(28px, 3vw, 44px); }
.feat a { display: block; text-decoration: none; }
.feat-media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); }
.feat--1 { grid-column: 1 / span 8; grid-row: span 2; } .feat--1 .feat-media { aspect-ratio: auto; height: calc(100% - 64px); min-height: 300px; }
.feat--2 { grid-column: 9 / span 4; } .feat--3 { grid-column: 9 / span 4; }
.feat--4 { grid-column: 1 / span 5; } .feat--5 { grid-column: 6 / span 7; }
.feat-cap { display: flex; gap: 14px; align-items: baseline; padding-top: 12px; min-height: 52px; }
.feat-cap h3 { font: 400 26px/1.1 var(--latin); margin: 0; }
.feat-cap p { margin: 0; font-size: 14px; color: var(--ink-3); }
.feat a:hover h3 { color: var(--oak); }

/* ---------- home: materials ---------- */
.mats-sec { padding: clamp(72px, 9vw, 130px) 0; }
.mats-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.mats-head .eyebrow { margin: 0; }
.mats-head p { margin: 0; font: italic 400 21px/1.4 var(--serif); color: var(--ink-2); max-width: 32em; }
html[lang^="zh"] .mats-head p { font-style: normal; font-size: 17px; }
.mats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.mats a { display: block; text-decoration: none; }
.mat-media { aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.mat-l { display: block; margin-top: 10px; font-size: 14px; }
.mat-p { display: block; font: italic 400 16px/1.3 var(--latin); color: var(--ink-3); }

/* ---------- bespoke ---------- */
.bespoke { background: var(--ink); color: var(--linen); padding: clamp(64px, 8vw, 120px) 0; }
.bespoke-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.bespoke-media { aspect-ratio: 4 / 3; overflow: hidden; }
.bespoke .eyebrow { color: rgba(243, 238, 230, .7); }
.bespoke h2 { font-size: clamp(34px, 3.6vw, 54px); margin-bottom: 22px; }
html[lang^="zh"] .bespoke h2 { font-size: clamp(26px, 2.6vw, 38px); }
.bespoke p { color: rgba(243, 238, 230, .86); max-width: 34em; margin: 0 0 32px; }
.bespoke .mail-alt { color: rgba(243, 238, 230, .7); margin-top: 18px; }
.bespoke :focus-visible { outline-color: var(--linen); }

/* ---------- chapter ---------- */
.ch-band { position: relative; height: 78vh; min-height: 480px; max-height: 860px; color: var(--white); background: #3A2F25; overflow: hidden; }
.ch-band-media { position: absolute; inset: 0; }
.ch-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,27,25,.25) 0%, rgba(28,27,25,0) 30%, rgba(28,27,25,.7) 100%); }
.ch-band-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: clamp(32px, 5vw, 64px); }
.ch-band h1 { font-size: clamp(46px, 6.4vw, 100px); }
html[lang^="zh"] .ch-band h1 { font-size: clamp(34px, 4.6vw, 66px); }
.ch-num { font-family: var(--latin); font-size: .5em; margin-right: .45em; vertical-align: .35em; opacity: .85; }
.ch-band p { margin: 16px 0 0; max-width: 36em; font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--serif); color: rgba(251, 249, 245, .92); }
html[lang^="zh"] .ch-band p { font-size: 17px; line-height: 1.9; }
.crumb { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
html[lang^="zh"] .crumb { font-size: 14px; letter-spacing: .06em; }
.crumb a { text-decoration: none; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 40%, transparent); }
.crumb a:hover { border-bottom-color: currentColor; }

.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 32px); row-gap: clamp(48px, 6vw, 96px); padding: clamp(56px, 7vw, 110px) 0; }
.plate a { display: block; text-decoration: none; }
.plate-media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); }
.plate:nth-child(8n+1) { grid-column: 1 / span 8; }
.plate:nth-child(8n+2) { grid-column: 9 / span 4; align-self: end; } .plate:nth-child(8n+2) .plate-media { aspect-ratio: 4 / 5; }
.plate:nth-child(8n+3) { grid-column: 1 / span 5; } .plate:nth-child(8n+3) .plate-media { aspect-ratio: 4 / 5; }
.plate:nth-child(8n+4) { grid-column: 6 / span 7; align-self: center; }
.plate:nth-child(8n+5) { grid-column: 1 / span 12; } .plate:nth-child(8n+5) .plate-media { aspect-ratio: 21 / 9; }
.plate:nth-child(8n+6) { grid-column: 1 / span 6; }
.plate:nth-child(8n+7) { grid-column: 7 / span 6; }
.plate:nth-child(8n+8) { grid-column: 3 / span 8; }
.plate-cap { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding-top: 16px; }
.plate-n { font: 400 17px/1.6 var(--latin); color: var(--ink-3); }
.plate h2 { font: 400 clamp(28px, 2.4vw, 38px)/1.05 var(--latin); margin: 0; }
.plate a:hover h2 { color: var(--oak); }
.plate-d { margin: 4px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
html[lang^="zh"] .plate-d { font-size: 15px; letter-spacing: .06em; text-transform: none; }
.plate-g { margin: 8px 0 0; font: italic 400 19px/1.4 var(--serif); color: var(--ink-2); max-width: 30em; }
html[lang^="zh"] .plate-g { font-style: normal; font-size: 16px; line-height: 1.8; }
.next-ch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); align-items: center; text-decoration: none; border-top: 1px solid var(--rule); padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 110px); }
.nc-media { aspect-ratio: 3 / 2; overflow: hidden; }
.nc-text .display { font-size: clamp(36px, 4.6vw, 72px); }
html[lang^="zh"] .nc-text .display { font-size: clamp(28px, 3.4vw, 50px); }
.nc-arrow { display: inline-block; margin-left: 18px; font: 400 clamp(32px, 4vw, 60px)/1 var(--latin); transition: transform .4s var(--ease); }
.next-ch:hover .nc-arrow { transform: translateX(8px); }

/* ---------- piece ---------- */
.piece { padding-top: calc(var(--hh) + clamp(20px, 3vw, 40px)); }
.piece-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.piece-figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); position: sticky; top: calc(var(--hh) + 20px); }
.piece .crumb { color: var(--ink-3); }
.piece-count { display: block; font: 400 18px/1 var(--latin); color: var(--ink-3); margin: 22px 0 10px; }
.piece h1 { font: 400 clamp(56px, 6vw, 96px)/.95 var(--latin); margin: 0 0 10px; letter-spacing: -.01em; }
.piece-desc { margin: 0 0 26px; font-size: 13.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
html[lang^="zh"] .piece-desc { font-size: 16px; letter-spacing: .1em; text-transform: none; }
.piece-copy { margin: 0 0 28px; font: 400 clamp(19px, 1.4vw, 21px)/1.55 var(--serif); }
html[lang^="zh"] .piece-copy { font-size: 17px; line-height: 2; }
.piece-detail { border-top: 1px solid var(--rule); padding-top: 20px; margin-bottom: 20px; }
.piece-detail .eyebrow { margin-bottom: 8px; }
.sig { margin: 0; font: italic 400 clamp(23px, 1.9vw, 28px)/1.3 var(--serif); color: var(--oak); }
html[lang^="zh"] .sig { font-style: normal; font-size: 20px; line-height: 1.7; }
.piece-mat { margin: 0 0 30px; border-top: 1px solid var(--rule); padding-top: 20px; }
.piece-mat dt { margin-bottom: 8px; }
.piece-mat dd { margin: 0; font-size: 16px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(48px, 6vw, 90px); padding-top: 28px; border-top: 1px solid var(--rule); }
.pn { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; text-decoration: none; }
.pn--next { grid-template-columns: 1fr 120px; text-align: right; } .pn--next .pn-media { order: 2; }
.pn-media { aspect-ratio: 3 / 2; overflow: hidden; }
.pn-text { display: flex; flex-direction: column; gap: 4px; }
.pn-l { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
html[lang^="zh"] .pn-l { font-size: 14px; letter-spacing: .06em; }
.pn-n { font: 400 clamp(26px, 2.4vw, 36px)/1.05 var(--latin); }
.pn-d { font-size: 14px; color: var(--ink-3); }
.pn:hover .pn-n { color: var(--oak); }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 72px); }
.strip-ch { font-size: 14px; color: var(--ink-3); }
.strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-bottom: clamp(64px, 8vw, 110px); }
.strip a { display: block; text-decoration: none; }
.strip .sm { aspect-ratio: 1; overflow: hidden; opacity: .75; transition: opacity .3s; }
.strip a:hover .sm, .strip a[aria-current="page"] .sm { opacity: 1; }
.strip a[aria-current="page"] .sm { outline: 1px solid var(--ink); outline-offset: 3px; }
.strip span { display: block; margin-top: 8px; font: 400 17px/1.2 var(--latin); }

.nf { padding: calc(var(--hh) + 120px) var(--pad) 30vh; }
.nf h1 { font-size: clamp(36px, 4vw, 60px); margin-bottom: 32px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(243, 238, 230, .72); border-top: 1px solid rgba(243, 238, 230, .14); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px 48px; padding-top: 28px; padding-bottom: 36px; flex-wrap: wrap; font-size: 13px; line-height: 1.6; }
.site-footer #footer-note { max-width: 58em; margin: 0; }
.site-footer #footer-copy { margin: 0; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .piece-grid { grid-template-columns: 1fr; }
  .piece-figure { position: static; }
}
@media (max-width: 820px) {
  .rooms { grid-template-columns: 1fr; }
  .room-media { aspect-ratio: 4 / 3; }
  .featured { grid-template-columns: 1fr; }
  .feat--1, .feat--2, .feat--3, .feat--4, .feat--5 { grid-column: 1 / -1; grid-row: auto; }
  .feat--1 .feat-media { height: auto; aspect-ratio: 3 / 2; min-height: 0; }
  .mats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bespoke-grid { grid-template-columns: 1fr; }
  .ch-band { height: 70vh; }
  .plates { grid-template-columns: 1fr; }
  .plate:nth-child(n) { grid-column: 1 / -1; }
  .plate:nth-child(n) .plate-media { aspect-ratio: 3 / 2; }
  .next-ch { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pn, .pn--next { grid-template-columns: 96px 1fr; text-align: left; }
  .pn--next .pn-media { order: 0; }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .piece h1 { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
