:root {
  --ink: #1e2924;
  --muted: #627067;
  --ivory: #f5f1e9;
  --paper: #fffdf8;
  --walnut: #6d4934;
  --walnut-dark: #412c20;
  --sage: #70816c;
  --sage-soft: #d9dfd3;
  --line: rgba(30, 41, 36, 0.13);
  --shadow: 0 24px 70px rgba(40, 35, 27, 0.13);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.serif { font-family: Georgia, "Times New Roman", serif; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: white; padding: 12px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--walnut); color: white; font-family: Georgia, serif; font-size: 20px; }
.brand-copy strong { display: block; font-family: Georgia, serif; font-size: 20px; letter-spacing: .03em; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { padding: 11px 16px; border-radius: 999px; background: var(--ink); color: white !important; transition: transform 150ms var(--ease-out), background-color 180ms ease; }
.nav-cta:active, .button:active, .chip:active, .product-card button:active { transform: scale(.97); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }

.hero { padding: 34px 0 54px; }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 650px; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(38px, 6vw, 78px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 0; max-width: 9ch; font: 500 clamp(50px, 7vw, 92px)/.94 Georgia, serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--walnut); font-weight: 400; }
.hero-lead { max-width: 48ch; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--walnut); color: white; font-weight: 800; cursor: pointer; transition: transform 150ms var(--ease-out), background-color 180ms ease, border-color 180ms ease; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost { background: var(--sage-soft); color: var(--ink); }
.hero-note { margin-top: 42px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.hero-note::before { content: ''; width: 34px; height: 1px; background: var(--sage); }
.hero-visual { position: relative; min-height: 560px; background: #d8d0c4; overflow: hidden; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: 24px; bottom: 24px; max-width: 260px; padding: 17px 18px; border-radius: 18px; background: rgba(255,253,248,.93); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(30,41,36,.14); }
.hero-badge strong { display: block; font-family: Georgia, serif; font-size: 21px; }
.hero-badge span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.section { padding: 82px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section h2 { margin: 0; max-width: 14ch; font: 500 clamp(36px, 4.8vw, 62px)/1.02 Georgia, serif; letter-spacing: -.04em; }
.section-intro { max-width: 52ch; margin: 0; color: var(--muted); line-height: 1.7; }

.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.room-card { min-height: 245px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.room-card .room-number { color: var(--sage); font: 500 42px/1 Georgia, serif; }
.room-card h3 { margin: 40px 0 7px; font: 500 25px/1.15 Georgia, serif; }
.room-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.product-card { grid-column: span 4; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--ivory); }
.product-card.featured { grid-column: span 8; display: grid; grid-template-columns: 1.25fr .75fr; }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd6cb; }
.product-card.featured .product-media { aspect-ratio: auto; min-height: 420px; }
.product-media img { height: 100%; object-fit: cover; transition: transform 480ms var(--ease-out); }
.product-kicker { position: absolute; top: 14px; left: 14px; padding: 8px 11px; border-radius: 999px; background: rgba(255,253,248,.92); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.product-copy { padding: 22px; }
.product-copy h3 { margin: 0; font: 500 28px/1.1 Georgia, serif; }
.product-copy p { min-height: 44px; margin: 12px 0 19px; color: var(--muted); line-height: 1.55; font-size: 14px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { padding: 7px 10px; border-radius: 999px; background: var(--sage-soft); font-size: 12px; font-weight: 750; }
.card-action { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 13px; background: transparent; font-weight: 800; cursor: pointer; transition: transform 150ms var(--ease-out), background-color 180ms ease; }
.card-action:hover { background: var(--paper); }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process article { padding: 26px; border-left: 1px solid var(--line); }
.process strong { color: var(--walnut); font: 500 50px/1 Georgia, serif; }
.process h3 { margin: 24px 0 8px; font: 500 23px/1.2 Georgia, serif; }
.process p { margin: 0; color: var(--muted); line-height: 1.6; }

.cta-panel { padding: clamp(30px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border-radius: 28px; background: var(--ink); color: white; }
.cta-panel h2 { max-width: 13ch; }
.cta-panel p { max-width: 54ch; margin: 18px 0 0; color: #c7d0ca; line-height: 1.7; }
.cta-panel .button { background: #e6d8c8; color: var(--ink); white-space: nowrap; }

.page-hero { padding: 70px 0 38px; }
.page-hero h1 { margin: 0; max-width: 13ch; font: 500 clamp(48px, 7vw, 88px)/.98 Georgia, serif; letter-spacing: -.05em; }
.page-hero p { max-width: 60ch; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 800; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.chip[aria-pressed="true"] { background: var(--ink); color: white; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 82px; }
.catalog-grid .product-card { grid-column: auto; }
.catalog-grid .product-media { aspect-ratio: 5 / 4; }
.catalog-grid [hidden] { display: none; }

.builder { display: grid; grid-template-columns: 1fr .8fr; gap: 20px; padding: 28px 0 88px; }
.builder-form, .builder-preview { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.builder-preview { position: sticky; top: 104px; align-self: start; background: var(--ink); color: white; }
.field { margin-bottom: 24px; }
.field label, .field legend { display: block; margin-bottom: 10px; font-weight: 850; }
.field select, .field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--ivory); color: var(--ink); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 110px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(112,129,108,.15); }
.option-row { display: flex; flex-wrap: wrap; gap: 9px; }
.option-row label { cursor: pointer; }
.option-row input { position: absolute; opacity: 0; }
.option-pill { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 750; }
.option-row input:checked + .option-pill { color: white; background: var(--sage); border-color: var(--sage); }
.preview-list { margin: 25px 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.preview-list li { display: flex; justify-content: space-between; gap: 22px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #c7d0ca; }
.preview-list strong { color: white; text-align: right; }
.builder-note { color: #c7d0ca; font-size: 13px; line-height: 1.55; }

.story-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 54px; padding: 20px 0 90px; align-items: start; }
.story-card { overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: var(--paper); }
.story-card img { aspect-ratio: 1; object-fit: cover; }
.story-copy h2 { margin: 0; font: 500 clamp(36px, 5vw, 62px)/1 Georgia, serif; letter-spacing: -.04em; }
.story-copy p { color: var(--muted); line-height: 1.8; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.fact { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.fact strong { display: block; margin-bottom: 6px; font-family: Georgia, serif; font-size: 22px; }
.fact span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(18,25,21,.45); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.drawer { position: fixed; inset: auto 0 0; z-index: 60; max-height: min(86vh, 760px); overflow: auto; padding: 24px 0 34px; border-radius: 28px 28px 0 0; background: var(--paper); box-shadow: 0 -30px 90px rgba(18,25,21,.24); transform: translateY(100%); transition: transform 320ms var(--ease-drawer); }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: translateY(0); }
.drawer-inner { width: min(720px, calc(100% - 40px)); margin: 0 auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.drawer-head h2 { margin: 0; font: 500 35px/1.05 Georgia, serif; }
.icon-button { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 21px; }
.drawer-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
.drawer-options label { padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.drawer-options select { width: 100%; margin-top: 8px; padding: 9px; border: 0; border-radius: 9px; background: var(--ivory); }
.drawer-preview { padding: 16px; border-radius: 14px; background: var(--sage-soft); color: var(--ink); line-height: 1.55; }
.drawer .button { width: 100%; margin-top: 16px; }

.site-footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.footer-grid p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 13px; font-weight: 750; }
.demo-note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (hover: hover) and (pointer: fine) {
  .room-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(40,35,27,.09); }
  .product-card:hover .product-media img { transform: scale(1.025); }
  .nav-cta:hover, .button:hover { background: var(--walnut-dark); }
}

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 76px 14px auto; padding: 18px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity 170ms ease, transform 170ms var(--ease-out); }
  .nav-links.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .menu-button { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 520px; }
  .hero-visual { min-height: 520px; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .product-card, .product-card.featured { grid-column: span 6; display: block; }
  .product-card.featured .product-media { min-height: 0; aspect-ratio: 4 / 3; }
  .builder, .story-grid { grid-template-columns: 1fr; }
  .builder-preview { position: static; }
  .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { min-height: 68px; }
  .brand-copy small { display: none; }
  .hero { padding: 14px 0 42px; }
  .hero-grid { border-radius: 22px; }
  .hero-copy { min-height: 450px; padding: 34px 24px; }
  .hero h1 { font-size: clamp(47px, 15vw, 70px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 420px; }
  .hero-badge { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .section { padding: 62px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .rooms { grid-template-columns: 1fr; }
  .room-card { min-height: 200px; }
  .product-card, .product-card.featured { grid-column: 1 / -1; }
  .process { grid-template-columns: 1fr; }
  .process article { border-left: 0; border-top: 1px solid var(--line); }
  .page-hero { padding: 52px 0 28px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .drawer-options, .facts { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: start; }
}

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