/* ==========================================================
   Softellow Hospitality — B2B website
   Brand: Softellow Brand System v3, Direction A (Editorial Luxury)
   Palette 1, Quiet Luxury. Mostly white. Champagne only as a detail.
   ========================================================== */

:root {
  /* Colour — the six brand colours, nothing else */
  --white: #FFFFFF;      /* primary canvas */
  --ivory: #F6F2EA;      /* bands, backdrops */
  --stone: #E4DDD2;      /* photo grounds */
  --ink: #161514;        /* logo, headlines, body, primary buttons */
  --taupe: #A79A8A;      /* secondary labels, fine print */
  --champagne: #C8B596;  /* hairlines, underlines and markers only */

  /* Near Black at reduced strength for secondary body text */
  --ink-soft: rgba(22, 21, 20, 0.72);
  --ink-faint: rgba(22, 21, 20, 0.5);
  --ink-line: rgba(22, 21, 20, 0.14);
  --white-soft: rgba(255, 255, 255, 0.72);
  --white-line: rgba(255, 255, 255, 0.18);

  /* Type */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 10vw, 136px);
  --header-h: 84px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--stone); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.label {
  font-family: var(--text);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.label--muted { color: var(--taupe); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;            /* never bold */
  letter-spacing: -0.005em;
  margin: 0;
}

h1 { font-size: clamp(46px, 6.2vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; }
h3 { font-size: 26px; line-height: 1.2; }

.italic { font-family: var(--display); font-style: italic; font-weight: 400; }

.lede { font-size: 18px; line-height: 30px; color: var(--ink-soft); }

p { margin: 0; }

.section-head { display: grid; gap: 16px; max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--split {
  max-width: none;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
}
.section-head--split > div { display: grid; gap: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 0 32px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--outline { color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--small { min-height: 40px; padding: 0 20px; font-size: 11px; }

.btn--light { border-color: var(--white); }
.btn--light.btn--solid { background: var(--white); color: var(--ink); }
.btn--light.btn--solid:hover { background: transparent; color: var(--white); }
.btn--light.btn--outline { color: var(--white); }
.btn--light.btn--outline:hover { background: var(--white); color: var(--ink); }

.count::before { content: "·"; margin: 0 8px 0 2px; }

.text-link {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: border-color .2s ease;
}
.text-link:hover { border-bottom-color: var(--champagne); }

.text-btn {
  background: none; border: 0; padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.text-btn:hover { border-bottom-color: var(--champagne); }

/* ---------- Announcement bar ---------- */

.announce { background: var(--ivory); text-align: center; padding: 11px var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink-line); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.nav { display: flex; gap: 28px; white-space: nowrap; }
.nav.label { letter-spacing: 0.16em; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav a:hover, .nav a.is-current { border-bottom-color: var(--champagne); }

.brand { display: block; line-height: 0; padding: 0 24px; }   /* 2x clear space in the header */
.brand img { width: 200px; height: auto; }

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.header-actions .phone { text-decoration: none; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px 0; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--ink-line);
  padding: 8px var(--gutter) 24px;
  background: var(--white);
}
.mobile-nav a {
  display: block; padding: 16px 0;
  border-bottom: 1px solid var(--ink-line);
  text-decoration: none;
}
.mobile-nav .btn { display: flex; margin-top: 24px; width: 100%; padding: 0 32px; border-bottom: 1px solid var(--ink); }
.mobile-nav.is-open { display: block; }

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--ink-line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: min(780px, calc(100svh - var(--header-h) - 38px));
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  gap: 28px;
  padding: 64px clamp(24px, 5vw, 72px) 64px max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.hero-title { max-width: 620px; }
.hero-title__line { display: block; }
.rotator { display: inline-block; font-style: italic; font-weight: 400; }
.rotator__word {
  display: inline-block;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.rotator__word.is-out { opacity: 0; transform: translateY(0.18em); }
.hero-lede { max-width: 500px; min-height: 90px; transition: opacity .3s ease; }
.hero-lede.is-changing { opacity: 0; }

.picker { display: grid; gap: 12px; }
.picker__label { color: var(--ink-soft); }
.picker__options { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: 0;
  padding: 9px 16px;
  font-size: 14px; line-height: 20px;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-media { position: relative; overflow: hidden; background: var(--stone); min-height: 420px; }
.hero-media__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: settle 2.4s var(--ease) both;
}
@keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }

.spec-tag {
  position: absolute; left: 24px; bottom: 24px;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white);
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--ink-line);
  animation: rise .9s .9s var(--ease) both;
}
.spec-tag > span:last-child { display: grid; gap: 2px; }
.spec-tag__text { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.spec-tag__dot {
  width: 8px; height: 8px; margin-top: 4px; flex: none;
  border: 1px solid var(--champagne); border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 181, 150, 0.18);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Principles strip ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink-line);
}
.principle {
  padding: 36px 28px 40px;
  border-left: 1px solid var(--ink-line);
  display: grid; gap: 10px; align-content: start;
}
.principle:first-child { border-left: 0; padding-left: 0; }
.principle__num { color: var(--taupe); }
.principle p:last-child { color: var(--ink-soft); font-size: 15px; line-height: 24px; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section--ivory { background: var(--ivory); }
.section--ink { background: var(--ink); color: var(--white); }

/* ---------- Sector tabs ---------- */

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-line);
  margin-bottom: 40px;
}
.tab {
  position: relative;
  display: flex; align-items: baseline; gap: 12px;
  text-align: left;
  background: none; border: 0;
  padding: 20px 20px 20px 0;
  font-family: var(--display); font-size: 22px; line-height: 1.25; font-weight: 500;
  color: var(--ink-faint);
  transition: color .25s ease;
}
.tab .label { color: var(--taupe); }
.tab::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 20px; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::before { transform: scaleX(1); }

.panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  animation: fadeIn .5s var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__media { background: var(--stone); aspect-ratio: 4 / 3; overflow: hidden; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__body { display: grid; gap: 20px; align-content: start; }
.panel__title { font-size: clamp(30px, 3vw, 38px); line-height: 1.12; }
.panel__body > p:not(.label) { color: var(--ink-soft); }
.panel__products { font-size: 15px; margin-top: -12px; color: var(--ink) !important; }
.panel .text-link { justify-self: start; margin-top: 4px; }

.ticks { display: grid; }
.ticks li {
  display: grid; grid-template-columns: 24px 1fr; gap: 8px;
  padding: 12px 0; border-top: 1px solid var(--ink-line);
  font-size: 15px; line-height: 24px;
}
.ticks li:last-child { border-bottom: 1px solid var(--ink-line); }
.ticks li::before { content: ""; width: 14px; height: 1px; background: var(--champagne); margin-top: 12px; }

/* ---------- Range ---------- */

.range-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 56px);
}
.range-head .section-head { margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.filter {
  background: none; border: 0; padding: 6px 0;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.range {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}
.product { display: grid; align-content: start; }
.product.is-filtered { display: none; }
.product__media {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--stone);
  aspect-ratio: 4 / 5; overflow: hidden;
}
.product__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.product__media:hover img, .product__media:focus-visible img { transform: scale(1.045); }
.product__hover {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--white); padding: 10px 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.product__media:hover .product__hover, .product__media:focus-visible .product__hover { opacity: 1; transform: none; }

.product__body { display: grid; gap: 8px; padding-top: 20px; }
.product__spec { color: var(--ink-soft); font-size: 15px; line-height: 24px; min-height: 48px; }
.product__actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--ink-line);
}

.add-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 6px 0;
}
.add-btn__icon {
  position: relative; width: 20px; height: 20px; flex: none;
  border: 1px solid var(--ink);
  transition: background-color .2s ease;
}
.add-btn__icon::before, .add-btn__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--ink);
  transition: transform .3s var(--ease), background-color .2s ease;
}
.add-btn__icon::before { width: 8px; height: 1px; transform: translate(-50%, -50%); }
.add-btn__icon::after { width: 1px; height: 8px; transform: translate(-50%, -50%); }
.add-btn:hover .add-btn__icon { background: var(--ivory); }
.add-btn[aria-pressed="true"] .add-btn__icon { background: var(--ink); }
.add-btn[aria-pressed="true"] .add-btn__icon::before {
  width: 5px; background: var(--white);
  transform: translate(-90%, 0) rotate(45deg);
}
.add-btn[aria-pressed="true"] .add-btn__icon::after {
  height: 9px; background: var(--white);
  transform: translate(60%, -55%) rotate(45deg);
}

.range-note {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--champagne);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.range-note p { color: var(--ink-soft); max-width: 640px; }

/* ---------- Room planner ---------- */

.planner {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.planner__intro { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 32px); }
.planner__note {
  font-size: 14px; line-height: 22px; color: var(--ink-soft);
  padding-top: 18px; border-top: 1px solid var(--champagne);
}

.planner__card { border: 1px solid var(--ink-line); background: var(--white); }
.planner__controls {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px;
  padding: clamp(24px, 3.5vw, 40px);
}
.control { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.control legend { padding: 0; margin-bottom: 12px; }
.control--wide { grid-column: 1 / -1; }
.control .label { color: var(--ink-soft); }

.stepper { display: grid; grid-template-columns: 48px 1fr 48px; border: 1px solid var(--ink-line); height: 52px; }
.stepper__btn { background: none; border: 0; font-size: 20px; line-height: 1; transition: background-color .2s ease; }
.stepper__btn:hover { background: var(--ivory); }
.stepper input {
  width: 100%; min-width: 0; border: 0; border-left: 1px solid var(--ink-line); border-right: 1px solid var(--ink-line);
  text-align: center; font-family: var(--display); font-size: 26px; font-weight: 500;
  -moz-appearance: textfield; appearance: textfield; background: transparent;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--ivory); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--ink-line); height: 52px; }
.segmented label { position: relative; display: grid; place-items: center; cursor: pointer; }
.segmented label + label { border-left: 1px solid var(--ink-line); }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { font-size: 15px; transition: color .2s ease; }
.segmented label:has(input:checked) { background: var(--ink); color: var(--white); }
.segmented label:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 2px; z-index: 1; }

.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--ink-line);
  font-size: 14px; line-height: 20px;
  transition: border-color .2s ease, background-color .2s ease;
}
.toggle span::before {
  content: ""; width: 12px; height: 12px; border: 1px solid var(--ink);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.toggle input:checked + span { border-color: var(--ink); }
.toggle input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--white); }
.toggle input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }

.planner__result {
  background: var(--ivory);
  border-top: 1px solid var(--ink-line);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid; gap: 24px;
}
.planner__summary { color: var(--ink-soft); }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--ink-line); }
.kit__item {
  display: grid; align-content: start; gap: 2px;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--ink-line);
}
.kit dt { font-size: 14px; line-height: 20px; color: var(--ink-soft); order: 2; }
.kit dd {
  margin: 0; order: 1;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 4vw, 48px); line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}
.kit__rule { order: 3; font-size: 12px; line-height: 18px; color: var(--taupe); }
.kit dd.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { opacity: .3; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.planner__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inside the pillow ---------- */

.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.anatomy__media { position: relative; margin: 0; background: var(--stone); aspect-ratio: 4 / 5; overflow: hidden; }
.anatomy__media img { width: 100%; height: 100%; object-fit: cover; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--white);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.hotspot.is-active { background: var(--ink); color: var(--white); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.55); }
.anatomy__body { display: grid; gap: 40px; }
.anatomy__body > div { display: grid; gap: 16px; }
.parts { display: grid; counter-reset: part; }
.parts li {
  display: grid; gap: 8px;
  padding: 20px 0 20px 20px;
  border-top: 1px solid var(--ink-line);
  border-left: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
  cursor: default;
}
.parts li:last-child { border-bottom: 1px solid var(--ink-line); }
.parts li.is-active { border-left-color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.parts p { color: var(--ink-soft); }

/* ---------- Where the money goes ---------- */

.value { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.value__quote { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.value__body { display: grid; gap: 24px; }

.costbar { display: grid; grid-template-columns: 3.2fr 2.4fr 2fr 2.6fr; height: 96px; border: 1px solid var(--ink-line); }
.costbar .label { white-space: nowrap; }
.costbar__seg {
  position: relative; display: flex; align-items: flex-end;
  padding: 12px; overflow: hidden;
  transform-origin: left; transform: scaleX(0);
  transition: transform 1s var(--ease);
}
.costbar.is-visible .costbar__seg { transform: none; }
.costbar__seg + .costbar__seg { border-left: 1px solid var(--ink-line); }
.costbar__seg--materials { background: var(--ink); color: var(--white); transition-delay: .1s; }
.costbar__seg--making { background: var(--stone); transition-delay: .25s; }
.costbar__seg--delivery { background: var(--ivory); transition-delay: .4s; }
.costbar__seg--markup {
  color: var(--taupe); transition-delay: .55s;
  background: repeating-linear-gradient(135deg, transparent 0 9px, var(--ink-line) 9px 10px);
}
.costbar__seg--markup .label { text-decoration: line-through; text-decoration-color: var(--ink); background: var(--white); padding: 2px 6px; }
.value__points { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 8px; }
.value__points > div { display: grid; gap: 10px; align-content: start; }
.value__points p:not(.label) { color: var(--ink-soft); font-size: 15px; line-height: 24px; }

/* ---------- Full-width photograph ---------- */

.band { margin: 0; line-height: 0; background: var(--stone); overflow: hidden; height: clamp(300px, 46vw, 680px); }
.band img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }

/* ---------- Process ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.process::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink-line);
}
.process::after {
  content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 100%;
  background: var(--ink);
  transform-origin: left; transform: scaleX(var(--progress, 0));
  transition: transform .2s linear;
}
.step { padding: 32px 28px 0 0; display: grid; gap: 14px; align-content: start; }
.step + .step { padding-left: 28px; }
.step .num { color: var(--taupe); }
.step p:not(.label) { color: var(--ink-soft); font-size: 15px; line-height: 24px; }

/* ---------- Quotation ---------- */

.quote-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.quote-title { margin: 16px 0 20px; }
.quote-figure { margin: 0; }
.checklist { margin: 32px 0 0; display: grid; }
.checklist li {
  padding: 16px 0; border-top: 1px solid var(--ink-line);
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  color: var(--ink-soft);
}
.checklist li:last-child { border-bottom: 1px solid var(--ink-line); }
.checklist li::before { content: ""; width: 14px; height: 1px; background: var(--champagne); margin-top: 13px; }
.checklist strong { color: var(--ink); font-weight: 500; }

.doc-stage { background: var(--stone); padding: clamp(24px, 5vw, 56px); }
.doc {
  background: var(--white);
  padding: clamp(24px, 4vw, 44px);
  font-size: 13px; line-height: 20px;
  font-variant-numeric: tabular-nums;
  transition: transform .6s var(--ease);
}
.quote-figure:hover .doc { transform: translateY(-4px); }
.doc__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.doc__top img { width: 140px; }
.doc h3 { font-size: 32px; margin: 32px 0 24px; }
.doc__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.doc__meta .label { color: var(--taupe); font-size: 10px; display: block; margin-bottom: 4px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th {
  text-align: left; font-weight: 500; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0 0 10px; border-bottom: 1px solid var(--ink);
}
.doc td { padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
.doc .num-col { text-align: right; padding-left: 16px; white-space: nowrap; }
.doc tfoot td { border-bottom: 0; font-weight: 500; padding-top: 14px; }
.doc__foot {
  margin-top: 40px; padding-top: 12px;
  border-top: 1px solid var(--champagne);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-soft);
}
.doc-caption { margin-top: 16px; font-size: 12px; line-height: 18px; color: var(--ink-faint); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--ink-line); }
.faq details:last-child { border-bottom: 1px solid var(--ink-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); animation: fadeIn .4s var(--ease) both; }

/* ---------- Proposal form ---------- */

.proposal-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px); }
.proposal-intro { display: grid; gap: 24px; align-content: start; }
.proposal-intro .lede { color: var(--white-soft); }
.contact-list { display: grid; margin-top: 16px; }
.contact-list a, .contact-list div {
  display: grid; gap: 4px;
  padding: 18px 0; border-top: 1px solid var(--white-line);
  text-decoration: none;
}
.contact-list > :last-child { border-bottom: 1px solid var(--white-line); }
.contact-list .value { font-size: 17px; }
.contact-list a:hover .value { text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 5px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; position: relative; }
.field { display: grid; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { color: var(--white-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--white-line);
  border-radius: 0;
  padding: 10px 0 12px;
  color: var(--white);
  font-size: 16px;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 24px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position: calc(100% - 10px) 20px, calc(100% - 5px) 20px;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { color: var(--ink); background: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--champagne); }
.field input:user-invalid { border-bottom-color: var(--taupe); }

fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span {
  display: inline-block; padding: 9px 16px;
  border: 1px solid var(--white-line);
  font-size: 14px; line-height: 20px;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.check input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.check input:focus-visible + span { outline: 1px solid var(--champagne); outline-offset: 2px; }

.kit-attached {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--white-line);
  border-left: 1px solid var(--champagne);
}
.kit-attached > div { display: grid; gap: 6px; }
.kit-attached__text { font-size: 14px; line-height: 22px; color: var(--white-soft); }
.kit-attached .text-btn { color: var(--white-soft); }

.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--white-soft); min-height: 24px; }
.form-status.is-success { color: var(--white); }
.form-note { font-size: 13px; line-height: 20px; color: rgba(255, 255, 255, 0.55); }
.form-note a { color: var(--white-soft); text-underline-offset: 3px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ivory); padding: 80px 0 96px; }   /* bottom room for the WhatsApp button */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 260px; }
.footer-brand p { margin-top: 24px; color: var(--ink-soft); max-width: 320px; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col .label { margin-bottom: 8px; color: var(--taupe); }
.footer-col a { text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 72px; padding-top: 20px;
  border-top: 1px solid var(--champagne);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-soft);
}

/* ---------- Specification drawer ---------- */

.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(560px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--white); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer[open] { animation: slideIn .45s var(--ease) both; }
.drawer::backdrop { background: rgba(22, 21, 20, 0.42); animation: fadeIn .3s ease both; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__inner { position: relative; min-height: 100%; display: grid; grid-template-rows: auto 1fr; }
.drawer__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--white); border: 1px solid var(--ink-line); padding: 10px 14px;
}
.drawer__close:hover { border-color: var(--ink); }
.drawer__media { background: var(--stone); aspect-ratio: 4 / 3; overflow: hidden; }
.drawer__media img { width: 100%; height: 100%; object-fit: cover; }
.drawer__body { padding: clamp(24px, 5vw, 40px); display: grid; gap: 16px; align-content: start; }
.drawer__body h2 { font-size: clamp(32px, 4vw, 40px); }
.drawer__intro { color: var(--ink-soft); }
.spec-list { margin: 8px 0 0; display: grid; }
.spec-list div {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--ink-line);
}
.spec-list div:last-child { border-bottom: 1px solid var(--ink-line); }
.spec-list dt { font-size: 11px; line-height: 24px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); }
.spec-list dd { margin: 0; font-size: 15px; line-height: 24px; }
.drawer__note { font-size: 13px; line-height: 20px; color: var(--ink-faint); }
.drawer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translateX(-50%);
  background: var(--ink); color: var(--white);
  padding: 14px 20px;
  font-size: 14px; line-height: 20px;
  animation: rise .35s var(--ease) both;
  max-width: calc(100% - 32px);
}
.toast a { color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--champagne); margin-left: 12px; }

/* ---------- Floating WhatsApp (desktop) & action bar (mobile) ---------- */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .3s var(--ease), opacity .3s ease;
}
.wa-float:hover { background: var(--white); color: var(--ink); }
.wa-float .label { font-size: 11px; }

.action-bar { display: none; }

/* ---------- Privacy and 404 pages ---------- */

.page-header .back-link { text-decoration: none; }
.page-header .back-link:hover { text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 6px; }

.prose { max-width: 760px; }
.prose h1 { margin: 16px 0 24px; font-size: clamp(42px, 5vw, 60px); }
.prose h2 { font-size: 30px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; list-style: disc; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { text-underline-offset: 3px; text-decoration-color: var(--champagne); }
.prose .updated { margin-top: 20px; font-size: 13px; color: var(--taupe); }

.site-footer--slim { padding: 0 0 32px; background: var(--white); }
.site-footer--slim .footer-bottom { margin-top: 0; }
.site-footer--slim a { text-decoration: none; }

.not-found {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center;
  padding: 48px var(--gutter);
}
.not-found__mark { width: 48px; height: auto; margin-bottom: 12px; }
.not-found .lede { max-width: 440px; }
.not-found .hero-actions { justify-content: center; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1320px) {
  .header-actions .phone { display: none; }
}
@media (max-width: 1120px) {
  .nav { gap: 20px; }
  .nav a[href="#process"] { display: none; }
}

@media (max-width: 1080px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { border-left: 0; padding-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .tabs { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(3) { padding-left: 0; }
  .planner { grid-template-columns: 1fr; }
  .planner__intro { position: static; max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav, .header-actions .btn { display: none; }
  .brand { padding: 0; }
  .brand img { width: 150px; }
  .menu-toggle { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 48px var(--gutter) 40px; gap: 24px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-lede { min-height: 0; }

  .section-head--split { grid-template-columns: 1fr; }
  .panel, .anatomy, .value, .quote-grid, .faq-grid, .proposal-grid { grid-template-columns: 1fr; }
  .range { grid-template-columns: 1fr 1fr; gap: 48px 20px; }
  .range-head { flex-direction: column; align-items: start; }

  /* Mobile action bar replaces the floating button */
  .wa-float { display: none !important; }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--ink-line);
    transition: transform .35s var(--ease);
  }
  .action-bar.is-hidden { transform: translateY(110%); }
  .action-bar__main { flex: 1; padding: 0 16px; }
  .action-bar__wa {
    width: 52px; height: 52px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--ink); color: var(--ink);
  }
  .site-footer { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  body { font-size: 15px; line-height: 24px; }
  .announce .label { font-size: 10px; letter-spacing: 0.16em; }
  .lede { font-size: 17px; line-height: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chip { font-size: 13px; padding: 8px 12px; }
  .spec-tag { left: 12px; bottom: 12px; padding: 10px 14px 10px 10px; }

  .principles, .process, .range { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(3) { border-left: 0; padding: 24px 0; }
  .principle + .principle { border-top: 1px solid var(--ink-line); }

  .tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: 0 calc(var(--gutter) * -1) 32px; padding: 0 var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; scroll-snap-align: start; font-size: 19px; padding-right: 24px; white-space: nowrap; }

  .product .product__media { aspect-ratio: 4 / 3; }
  .product__spec { min-height: 0; }

  .planner__controls { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr 1fr; }
  .planner__actions .btn { flex: 1 1 100%; }

  .costbar { height: 120px; grid-template-columns: 3.4fr 2.6fr 1.6fr 2.6fr; }
  .costbar__seg { padding: 8px; align-items: flex-start; writing-mode: vertical-rl; transform: scaleY(0); transform-origin: bottom; }
  .costbar__seg .label { font-size: 10px; letter-spacing: 0.16em; }
  .value__points { grid-template-columns: 1fr; }

  .step, .step + .step { padding: 28px 0 0; }
  .step + .step { margin-top: 8px; }

  .form { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .doc__meta { grid-template-columns: 1fr; }
  .doc__top img { width: 110px; }
  .faq summary { font-size: 21px; }
  .faq details p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand img { width: 220px; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }

  .page-header .header-actions { display: none; }
  .page-header { grid-template-columns: auto 1fr; }
  .page-header .brand { justify-self: end; }
}

@media (min-width: 901px) {
  .page-header .header-actions .btn { display: inline-flex; }
}
