/* Vitakasa homepage · shared by both versions (Open House and Shutters)
   Heritage rust: cream pages, graphite text and controls, wood headings and the wordmark,
   rust only for links, focus and selected states, brass only for rules and hardware (never text). */

:root {
  --cream: #f2ede4;     /* the page */
  --raised: #f8f5ef;    /* cards, sheets, labels on renders */
  --deep: #e7dfd2;      /* alternating panels and the footer; nothing darker is a surface */
  --graphite: #2b2b2b;  /* text, primary fills, the K */
  --muted: #5c5853;     /* secondary text: 6:1 on cream */
  --wood: #3b2a20;      /* display headings, the wordmark */
  --rust: #753421;      /* links, focus, selected states */
  --brass: #b08d57;     /* rules, hardware; never text */
  --line: #2b2b2b26;

  --display: 'Anek Latin', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 72px;
  /* soft-close: fast out, damped settle, no bounce, like the drawers Vitakasa sells */
  --soft-close: linear(0, 0.38 9%, 0.69 19%, 0.86 29%, 0.95 40%, 0.985 52%, 1);
  --t-fast: 280ms;
  --t-slow: 720ms;
  color-scheme: light;
  accent-color: var(--rust);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--graphite);
  font-family: var(--display); font-size: 1.0625rem; line-height: 1.6;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
::selection { background: #75342133; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }

/* ── Type ───────────────────────────────────────────── */
.display { font-weight: 200; font-variation-settings: 'wdth' 125; text-transform: uppercase; letter-spacing: .06em; line-height: 1.02; margin: 0; color: var(--wood); }
.h2 { font-weight: 250; font-variation-settings: 'wdth' 118; font-size: clamp(1.9rem, 3.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.005em; margin: 0; color: var(--wood); text-wrap: balance; }
.h3 { font-weight: 420; font-variation-settings: 'wdth' 108; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 34em; margin: 0; text-wrap: pretty; }
.small { font-size: .8125rem; letter-spacing: .01em; }
.muted { color: var(--muted); }
.render-label { font-size: .75rem; letter-spacing: .02em; color: var(--muted); display: inline-flex; gap: .5em; align-items: center; }
.render-label::before { content: ''; width: 6px; height: 6px; border: 1px solid currentColor; rotate: 45deg; }
/* a value waiting on the client */
.tbc { display: inline-block; padding: 4px 7px; border: 1px dashed #7534218c; color: var(--rust); font-size: .6875rem; line-height: 1; white-space: nowrap; vertical-align: .15em; }

/* ── Controls ───────────────────────────────────────── */
.btn {
  --bg: transparent; --fg: var(--graphite); --bd: #2b2b2b66;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.4em; background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: .9375rem; font-weight: 500; font-variation-settings: 'wdth' 110; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--soft-close), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { --bd: var(--graphite); }
.btn--solid { --bg: var(--graphite); --fg: var(--raised); --bd: var(--graphite); }
.btn--solid:hover { --bg: var(--wood); --bd: var(--wood); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: var(--rust); text-decoration: none; background: linear-gradient(var(--brass) 0 0) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size var(--t-fast) var(--soft-close); }
.link:hover { background-size: 100% 1px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding: 0 var(--gutter);
  border-bottom: 1px solid transparent; transition: background var(--t-slow), border-color var(--t-slow);
}
.nav.is-solid { background: var(--cream); border-color: var(--line); }
.brand { display: block; width: 136px; height: 44px; flex: none; background: var(--wood); -webkit-mask: url(assets/brand/wordmark-white.png) center / contain no-repeat; mask: url(assets/brand/wordmark-white.png) center / contain no-repeat; }
.nav__links { display: flex; gap: clamp(14px, 1.8vw, 28px); margin: 0 auto; padding: 0; list-style: none; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .9375rem; font-variation-settings: 'wdth' 110; color: var(--muted); }
.nav__links a:hover { color: var(--graphite); }
.nav__end { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.nav__book { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; font-size: .9375rem; color: var(--rust); }
.nav__book:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.nav .btn { min-height: 44px; padding: 0 1.1em; font-size: .875rem; }
.nav__menu { display: none; }

/* ── Dialogs: menu (phones) and booking ─────────────── */
dialog { border: 0; padding: 0; color: var(--graphite); max-width: none; max-height: none; }
dialog::backdrop { background: #e7dfd2b3; }
.menu { position: fixed; inset: 0; width: 100%; height: 100%; background: var(--cream); }
.menu__in { display: grid; grid-template-rows: var(--nav-h) 1fr auto; height: 100%; padding: 0 var(--gutter) 24px; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu ul { list-style: none; margin: 0; padding: 32px 0 0; display: grid; gap: .3em; align-content: start; }
.menu ul a, .menu ul button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: none; font-size: 2rem; font-weight: 250; font-variation-settings: 'wdth' 120; line-height: 1.35; color: var(--wood); }
.menu__foot { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.x { background: none; border: 0; padding: 0 4px; min-height: 44px; cursor: pointer; font-size: .9375rem; color: var(--muted); }
.x:hover { color: var(--graphite); }

.book {
  position: fixed; inset: 0 0 0 auto; width: min(480px, 100%); height: 100%; margin: 0;
  background: var(--raised); border-left: 1px solid var(--line); box-shadow: -24px 0 64px #3b2a2014;
  translate: 100% 0; transition: translate var(--t-slow) var(--soft-close), overlay var(--t-slow) allow-discrete, display var(--t-slow) allow-discrete;
}
.book[open] { translate: 0 0; }
@starting-style { .book[open] { translate: 100% 0; } }
.book__in { display: flex; flex-direction: column; height: 100%; }
.book__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.book form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.book__body { padding: 24px; overflow: auto; flex: 1; display: grid; gap: 26px; align-content: start; }
.book__note { margin: 0; font-size: .9375rem; color: var(--muted); }
.book fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.book legend { font-size: .875rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; color: var(--muted); }
.field input { min-height: 48px; padding: 0 14px; background: var(--cream); color: var(--graphite); border: 1px solid #2b2b2b59; font: inherit; border-radius: 0; }
.field input:focus { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); outline: none; }
.field__err { margin: 0; font-size: .875rem; color: var(--rust); }
.field__err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip span { display: grid; place-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid #2b2b2b33; font-size: .875rem; line-height: 1.2; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.chip input:checked + span { background: var(--wood); border-color: var(--wood); color: var(--raised); }
.chip input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.book__foot { padding: 18px 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.book__done { display: none; padding: 40px 24px; gap: 18px; align-content: start; }
.book.is-done form { display: none; }
.book.is-done .book__done { display: grid; }

/* ── 3 · Made in our own factory ────────────────────── */
.factory { background: var(--deep); padding: clamp(72px, 9vw, 140px) 0; }
.factory__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px var(--gutter); align-items: end; }
.factory__text { display: grid; gap: 22px; align-content: end; }
.factory__pics { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.factory__pics img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.factory__pics .tall { grid-row: span 2; }
.factory__pics img:not(.tall) { aspect-ratio: 4 / 3; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.facts b { font-weight: 450; color: var(--graphite); }

/* ── 4 · Experience Center ──────────────────────────── */
.ec { padding: clamp(80px, 10vw, 160px) 0 clamp(64px, 8vw, 120px); }
.ec__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px var(--gutter); align-items: end; }
.ec__head > div { display: grid; gap: 22px; }
.opening { display: inline-flex; align-items: center; gap: .7em; font-size: .875rem; font-weight: 500; font-variation-settings: 'wdth' 112; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); }
.opening::before { content: ''; width: 28px; height: 1px; background: var(--brass); }
.zones { display: flex; flex-wrap: wrap; gap: 6px; margin: clamp(40px, 5vw, 64px) 0 16px; }
.zones button { min-height: 40px; padding: 0 14px; background: none; border: 1px solid #2b2b2b33; cursor: pointer; font-size: .875rem; color: var(--muted); }
.zones button:hover { color: var(--graphite); border-color: var(--graphite); }
.zones button[aria-pressed='true'] { background: var(--wood); border-color: var(--wood); color: var(--raised); }
.tour { position: relative; }
.tour__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 680px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) 14px; scroll-padding: 0 max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter));
  scrollbar-width: thin; scrollbar-color: #2b2b2b40 transparent;
}
.tour__room { margin: 0; scroll-snap-align: start; scroll-margin-top: calc(var(--nav-h) + 120px); }
.tour__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.tour__img img { width: 100%; height: 100%; object-fit: cover; }
.tour__img .render-label { position: absolute; right: 10px; top: 10px; padding: 5px 9px; background: var(--raised); }
.tour__room figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: .9375rem; }
.tour__room figcaption b { font-weight: 450; }
.tour__room figcaption span { color: var(--muted); }
.tour__room:target .tour__img { outline: 2px solid var(--rust); outline-offset: 4px; }
.tour__nav { display: flex; gap: 6px; }
.tour__nav button { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid #2b2b2b4d; cursor: pointer; }
.tour__nav button:hover { border-color: var(--graphite); }
.tour__nav svg { width: 18px; height: 18px; }
.ec__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px var(--gutter); margin-top: 28px; }
.mats { margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--brass); }
.mats h3 { margin: 0; font-size: .875rem; font-weight: 500; color: var(--wood); }
.mats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.mats li { font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 300; font-variation-settings: 'wdth' 115; }
.mats li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .6em; background: var(--brass); vertical-align: .2em; }

/* ── 5 · How we work ────────────────────────────────── */
.how { background: var(--deep); padding: clamp(72px, 9vw, 140px) 0; }
.how__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px var(--gutter); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--brass); }
.steps li { padding: 20px 18px 8px 0; display: grid; gap: 8px; align-content: start; }
.steps li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.steps b { font-size: 2.4rem; line-height: 1; font-weight: 150; font-variation-settings: 'wdth' 125; color: var(--wood); }
.steps h3 { margin: 0; font-size: 1.0625rem; font-weight: 450; font-variation-settings: 'wdth' 106; line-height: 1.25; }
.steps p { margin: 0; font-size: .9375rem; color: var(--muted); line-height: 1.5; }

/* ── 6 · Commercial ─────────────────────────────────── */
.commercial { padding: clamp(80px, 10vw, 160px) 0 clamp(56px, 7vw, 100px); }
.commercial__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px var(--gutter); align-items: end; margin-bottom: 40px; }
.commercial__head > div { display: grid; gap: 22px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(40vw, 600px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)) 14px; scroll-padding: 0 max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)); scrollbar-width: thin; scrollbar-color: #2b2b2b40 transparent; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip figcaption { margin-top: 10px; font-size: .9375rem; color: var(--muted); }

/* ── 7 · FAQ ────────────────────────────────────────── */
.faq { padding: clamp(64px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px var(--gutter); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 350; font-variation-settings: 'wdth' 110; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-top: .4em; border-right: 1.5px solid var(--rust); border-bottom: 1.5px solid var(--rust); rotate: 45deg; transition: rotate var(--t-fast) var(--soft-close); }
.faq details[open] summary::after { rotate: 225deg; }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 38em; }

/* ── 8 · Contact (the footer) ───────────────────────── */
.contact { background: var(--deep); padding: clamp(72px, 9vw, 128px) 0 28px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px var(--gutter); margin-bottom: clamp(56px, 8vw, 104px); }
.contact h2.h2 { grid-column: 1 / -1; }
.contact h3 { margin: 0 0 12px; font-size: .875rem; font-weight: 500; color: var(--wood); }
.contact address { font-style: normal; font-size: 1.1rem; line-height: 1.5; margin-bottom: 14px; }
.contact p { margin: 0 0 10px; }
.contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4em; }
.contact ul a { color: var(--muted); text-decoration: none; }
.contact ul a:hover { color: var(--graphite); }
.contact__mark { width: 100%; aspect-ratio: 2884 / 335; background: var(--wood); -webkit-mask: url(assets/brand/wordmark-white.png) left center / contain no-repeat; mask: url(assets/brand/wordmark-white.png) left center / contain no-repeat; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--muted); }

/* ── Phone action bar ───────────────────────────────── */
.actionbar { display: none; }

/* ── Reveal (CSS scroll-driven, progressive) ────────── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes reveal { from { opacity: 0; translate: 0 28px; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ── Small screens ──────────────────────────────────── */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
  .steps li:nth-child(5) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav { background: var(--cream); border-color: var(--line); }
  .brand { width: 112px; }
  .nav__links, .nav__end { display: none; }
  .nav__menu { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; background: none; border: 0; padding: 0 0 0 8px; cursor: pointer; font-size: .9375rem; }
  .factory__grid, .ec__head, .how__head, .commercial__head, .faq__grid { grid-template-columns: 1fr; }
  .tour__track { grid-auto-columns: 84vw; }
  .tour__nav { display: none; }
  .mats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { grid-template-columns: 3.2rem 1fr; padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); column-gap: 12px; }
  .steps li:nth-child(5) { padding-left: 0; }
  .steps b { grid-row: span 2; font-size: 2rem; }
  .strip { grid-auto-columns: 82vw; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid > :nth-child(2) { grid-column: 1 / -1; }
  .contact { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .actionbar {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 40;
    background: var(--raised); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .actionbar a, .actionbar button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 0; background: none; text-decoration: none; font-size: .9375rem; cursor: pointer; }
  .actionbar > :first-child { background: var(--graphite); color: var(--raised); font-weight: 500; }
  .actionbar > * + * { border-left: 1px solid var(--line); }
  .actionbar svg { width: 18px; height: 18px; }
  .book { inset: auto 0 0; width: 100%; height: auto; max-height: 92dvh; border-left: 0; border-top: 1px solid var(--line); translate: 0 100%; }
  .book[open] { translate: 0 0; }
  @starting-style { .book[open] { translate: 0 100%; } }
}
