@font-face {
  font-family: "Alegreya";
  src: url("/demonstracoes/cota-mineral/assets/fonts/alegreya-variable-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Alegreya";
  src: url("/demonstracoes/cota-mineral/assets/fonts/alegreya-italic-variable-latin.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400 700;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/demonstracoes/cota-mineral/assets/fonts/ibm-plex-sans-variable-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 75% 100%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --limestone: #f2efe7;
  --mineral: #21312b;
  --mineral-deep: #17231f;
  --graphite: #22241f;
  --sand: #c8b89e;
  --sand-light: #e3d9c9;
  --brass: #af864d;
  --brass-ink: #6f4e20;
  --brass-light: #d3b786;
  --white: #ffffff;
  --muted: #62655e;
  --line: #cfc9bc;
  --font-display: "Alegreya", Georgia, serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: 80rem;
  --concept-height: 2.5rem;
  --header-height: 5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-dialog: 80;
  --z-skip: 70;
  --z-concept: 60;
  --z-header: 50;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--concept-height) + var(--header-height) + 1.5rem);
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

body,
button,
input {
  font-family: var(--font-sans);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
a,
summary,
label {
  -webkit-tap-highlight-color: rgb(175 134 77 / 22%);
  touch-action: manipulation;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brass-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--mineral-deep);
}

.use-section :focus-visible,
.spaces-section :focus-visible,
.prepare-section :focus-visible,
.faq-section :focus-visible,
.quote-dialog :focus-visible {
  outline-color: var(--mineral);
  box-shadow: 0 0 0 5px var(--white);
}

::selection {
  background: var(--brass);
  color: var(--mineral-deep);
}

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: var(--z-skip);
  top: 0.5rem;
  left: 0.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  transform: translateY(-180%);
  background: var(--white);
  color: var(--graphite);
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.concept-bar {
  position: sticky;
  z-index: var(--z-concept);
  top: 0;
  height: var(--concept-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-inline: 1.25rem;
  background: var(--brass);
  color: var(--mineral-deep);
  font-size: 0.76rem;
  line-height: 1.2;
}

.concept-bar span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.concept-bar p {
  margin: 0;
}

.concept-bar a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 700;
}

.site-header {
  position: sticky;
  z-index: var(--z-header);
  top: var(--concept-height);
  border-bottom: 1px solid rgb(242 239 231 / 18%);
  background: rgb(33 49 43 / 95%);
  color: var(--limestone);
  backdrop-filter: blur(12px);
}

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

.brand {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--brass-light);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-name em {
  color: var(--brass-light);
  font-weight: 500;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.navigation a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: #d5d8d2;
  font-size: 0.88rem;
  font-stretch: 95%;
  font-weight: 600;
  text-decoration: none;
}

.navigation a:hover {
  color: var(--white);
}

.menu-button {
  display: none;
}

.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--mineral);
  border-radius: 0;
  background: var(--mineral);
  color: var(--white);
  font-size: 0.88rem;
  font-stretch: 95%;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.button:hover {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--mineral-deep);
  transform: translateY(-2px);
}

.button-light {
  border-color: var(--limestone);
  background: var(--limestone);
  color: var(--mineral-deep);
}

.button-light:hover {
  border-color: var(--brass-light);
  background: var(--brass-light);
}

.header-cta {
  border-color: var(--brass-light);
  background: transparent;
  color: var(--limestone);
}

.header-cta:hover {
  color: var(--mineral-deep);
}

.text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.text-link-light {
  color: var(--limestone);
}

.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--brass-ink);
  font-size: 0.75rem;
  font-stretch: 90%;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--brass-light);
}

.hero .eyebrow {
  color: var(--brass-light);
}

.hero {
  position: relative;
  overflow: clip;
  background: var(--mineral);
  color: var(--limestone);
}

.hero::before {
  position: absolute;
  inset: 0 auto 0 max(1.5rem, calc((100vw - var(--shell)) / 2));
  width: 1px;
  background: rgb(242 239 231 / 14%);
  content: "";
}

.hero-grid {
  min-height: calc(100svh - var(--concept-height) - var(--header-height));
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(2.5rem, 6vw, 6rem) clamp(4rem, 8vw, 7.5rem) 0;
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6.4vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.hero-lead {
  max-width: 37rem;
  margin-bottom: 2rem;
  color: #d7dbd5;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
}

.hero-disclaimer {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: #aeb7b0;
  font-size: 0.79rem;
}

.hero-image {
  position: relative;
  min-height: 40rem;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--mineral-deep);
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(23 35 31 / 22%), transparent 32%);
  pointer-events: none;
  content: "";
}

.hero-image picture,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  object-position: 52% center;
}

.hero-image figcaption {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.75rem 0.9rem;
  background: rgb(23 35 31 / 88%);
  color: var(--white);
  font-size: 0.72rem;
  line-height: 1.35;
}

.hero-image figcaption span:first-child {
  color: var(--brass-light);
  font-weight: 700;
}

.hero-measure {
  position: absolute;
  z-index: 3;
  top: 1rem;
  bottom: 1rem;
  left: 1.5rem;
  width: 1.5rem;
  border-left: 1px solid rgb(255 255 255 / 72%);
  background: repeating-linear-gradient(to bottom, transparent 0 18px, rgb(255 255 255 / 66%) 18px 19px) left center / 0.55rem 100% no-repeat;
  color: var(--white);
  font-size: 0.62rem;
  writing-mode: vertical-rl;
}

.hero-measure::before,
.hero-measure::after {
  position: absolute;
  left: -0.28rem;
  width: 0.55rem;
  border-top: 1px solid var(--white);
  content: "";
}

.hero-measure::before {
  top: 0;
}

.hero-measure::after {
  bottom: 0;
}

.hero-measure span {
  position: absolute;
  top: 50%;
  left: 0.55rem;
  transform: translateY(-50%);
  letter-spacing: 0.08em;
}

.slab-reveal {
  animation: slab-reveal 900ms var(--ease) both;
}

@keyframes slab-reveal {
  from {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
  to {
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
  }
}

.use-section,
.spaces-section,
.prepare-section,
.faq-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.use-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(4rem, 10vw, 9rem);
}

.section-intro h2,
.spaces-heading h2,
.process-intro h2,
.prepare-copy h2,
.faq-grid > div:first-child h2,
.final-cta h2,
.piece-heading h2 {
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 5.3rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.94;
}

.section-intro > p:last-child {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.decision-list {
  border-top: 1px solid var(--graphite);
}

.decision-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.48fr) minmax(0, 1.52fr);
  gap: 1.5rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
}

.decision-list dt {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.decision-list dd {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.piece-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--mineral-deep);
  color: var(--limestone);
}

.piece-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.55fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.piece-heading h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

.piece-heading > p {
  margin-bottom: 0.5rem;
  color: #b9c0ba;
}

.piece-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(18rem, 0.62fr);
  border-top: 1px solid rgb(242 239 231 / 32%);
  border-bottom: 1px solid rgb(242 239 231 / 32%);
}

.piece-diagram {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  border-right: 1px solid rgb(242 239 231 / 22%);
}

.piece-diagram svg {
  width: 100%;
  overflow: visible;
}

.piece-diagram > p {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: #8f9a93;
  font-size: 0.76rem;
}

.dimension-lines {
  fill: var(--brass-light);
  stroke: var(--brass-light);
  stroke-width: 1.5;
}

.dimension-lines text {
  stroke: none;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.slab-shape {
  fill: var(--sand-light);
  stroke: var(--limestone);
  stroke-width: 2;
}

.slab-vein {
  fill: none;
  stroke: #a99a83;
  stroke-width: 3;
  opacity: 0.58;
}

.cutout {
  fill: var(--mineral-deep);
  stroke: var(--brass);
  stroke-width: 2;
}

.piece-point {
  color: var(--mineral);
  opacity: 0.38;
  transition: opacity 180ms ease;
}

.piece-point path {
  fill: none;
  stroke: var(--mineral);
  stroke-dasharray: 6 5;
  stroke-width: 3;
}

.piece-point circle {
  fill: var(--brass);
  stroke: var(--mineral-deep);
  stroke-width: 2;
}

.piece-point text {
  fill: var(--mineral-deep);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
}

.piece-point[data-active] {
  opacity: 1;
}

.piece-controls {
  display: grid;
}

.piece-control {
  min-height: 8.5rem;
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.2rem 1rem;
  align-content: center;
  padding: 1.4rem 1.6rem;
  border: 0;
  border-bottom: 1px solid rgb(242 239 231 / 20%);
  background: transparent;
  color: var(--limestone);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.piece-control:last-child {
  border-bottom: 0;
}

.piece-control > span {
  grid-row: 1 / span 2;
  color: var(--brass-light);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.piece-control strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.piece-control small {
  color: #aeb8b1;
  font-size: 0.8rem;
  line-height: 1.45;
}

.piece-control:hover,
.piece-control[aria-pressed="true"] {
  background: var(--brass);
  color: var(--mineral-deep);
}

.piece-control:hover > span,
.piece-control:hover small,
.piece-control[aria-pressed="true"] > span,
.piece-control[aria-pressed="true"] small {
  color: var(--mineral-deep);
}

.spaces-section {
  background: var(--white);
}

.spaces-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.spaces-heading h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.space-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--mineral);
}

.space-card picture,
.space-card img {
  width: 100%;
  height: 100%;
}

.space-card img {
  object-fit: cover;
  transition: transform 650ms var(--ease);
}

.space-card:hover img {
  transform: scale(1.02);
}

.space-card figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgb(23 35 31 / 90%) 36%);
  color: var(--white);
}

.space-card figcaption span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.space-card figcaption p {
  margin: 0;
  color: #d6dbd6;
  font-size: 0.78rem;
}

.space-card-kitchen {
  grid-column: 1 / span 7;
  min-height: 28rem;
}

.space-card-bathroom {
  grid-column: 8 / span 5;
  grid-row: 1 / span 2;
  min-height: 54rem;
}

.space-card-detail {
  grid-column: 1 / span 7;
  min-height: 24rem;
}

.asset-note {
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.process-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--sand-light);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(4rem, 10vw, 9rem);
}

.process-intro {
  position: sticky;
  top: calc(var(--concept-height) + var(--header-height) + 2rem);
  align-self: start;
}

.process-intro h2 {
  max-width: 10ch;
}

.process-intro > p:last-child {
  max-width: 27rem;
  color: #55574f;
}

.process-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--graphite);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid #aea691;
}

.process-list > li > span {
  color: #5b5342;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-list h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 600;
}

.process-list p {
  max-width: 38rem;
  margin: 0;
  color: #5c5d55;
}

.prepare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(19rem, 0.94fr);
  align-items: stretch;
  border: 1px solid var(--line);
}

.prepare-photo {
  min-height: 38rem;
  overflow: hidden;
}

.prepare-photo picture,
.prepare-photo img {
  width: 100%;
  height: 100%;
}

.prepare-photo img {
  object-fit: cover;
}

.prepare-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5.5rem);
  background: var(--white);
}

.prepare-copy h2 {
  max-width: 10ch;
}

.prepare-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.prepare-copy ul {
  width: 100%;
  padding: 0;
  margin: 1rem 0 2rem;
  border-top: 1px solid var(--line);
  list-style: none;
}

.prepare-copy li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.prepare-copy li::before {
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 0.45rem;
  border-top: 1px solid var(--brass);
  content: "";
}

.faq-section {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(4rem, 10vw, 9rem);
}

.faq-grid > div:first-child h2 {
  max-width: 11ch;
}

.faq-list {
  border-top: 1px solid var(--graphite);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  flex: 0 0 auto;
  color: var(--brass);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.final-cta {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: var(--mineral);
  color: var(--limestone);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.6fr);
  align-items: end;
  gap: clamp(3rem, 9vw, 8rem);
}

.final-cta h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.final-grid > div:last-child p {
  margin-bottom: 1.5rem;
  color: #c7cec8;
}

.site-footer {
  padding: 3.5rem 0;
  background: var(--mineral-deep);
  color: var(--limestone);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(15rem, 1fr) auto;
  gap: 3rem;
  align-items: start;
}

.footer-brand > span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.footer-brand em {
  color: var(--brass-light);
  font-weight: 500;
}

.footer-brand p,
.footer-grid > p {
  margin: 0.5rem 0 0;
  color: #9fa9a1;
  font-size: 0.8rem;
}

.footer-grid > p {
  max-width: 29rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.quote-dialog {
  width: min(calc(100% - 2rem), 51rem);
  max-height: min(90svh, 50rem);
  padding: 0;
  border: 0;
  background: var(--limestone);
  color: var(--graphite);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 38%);
}

.quote-dialog::backdrop {
  background: rgb(14 22 19 / 78%);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  position: relative;
  max-height: min(90svh, 50rem);
  overflow: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-heading {
  padding-right: 3.5rem;
}

.dialog-heading h2 {
  max-width: 12ch;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.dialog-heading > p:last-child {
  color: var(--muted);
}

.quote-form {
  margin-top: 2.5rem;
}

.quote-step[hidden],
.quote-success[hidden] {
  display: none;
}

.step-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--graphite);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-form fieldset {
  padding: 0;
  margin: 1.7rem 0 0;
  border: 0;
}

.quote-form legend {
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.option-grid label {
  position: relative;
  min-height: 4rem;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.option-grid input {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1rem;
  height: 1rem;
  margin: 0;
  transform: translateY(-50%);
  accent-color: var(--mineral);
}

.option-grid label:has(input:checked) {
  border-color: var(--mineral);
  box-shadow: inset 0 0 0 1px var(--mineral);
  background: #e6e4db;
}

.step-error {
  min-height: 1.45rem;
  margin: 0.65rem 0 0;
  color: #7c2c20;
  font-size: 0.8rem;
  font-weight: 600;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.text-button {
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--graphite);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.quote-success {
  padding-block: 1rem;
}

.success-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--mineral);
  background: var(--mineral);
  color: var(--white);
  font-size: 1.35rem;
}

.quote-success h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
}

.quote-success p {
  max-width: 38rem;
  color: var(--muted);
}

@media (max-width: 68rem) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 1.5rem;
    width: min(22rem, calc(100vw - 3rem));
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid rgb(242 239 231 / 18%);
    background: var(--mineral-deep);
    box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 25%);
  }

  .navigation[data-open] {
    display: flex;
  }

  .navigation a {
    padding-inline: 0.8rem;
    border-bottom: 1px solid rgb(242 239 231 / 12%);
  }

  .menu-button {
    justify-self: end;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.38rem;
    padding: 0;
    border: 1px solid rgb(242 239 231 / 32%);
    background: transparent;
    color: var(--limestone);
    cursor: pointer;
  }

  .menu-button > span:not(.sr-only) {
    width: 1rem;
    border-top: 1px solid currentColor;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: min(calc(100% - 3rem), var(--shell));
    margin-inline: auto;
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.7rem, 10vw, 6rem);
  }

  .hero-image {
    min-height: clamp(28rem, 75vw, 42rem);
    clip-path: none;
  }

  @keyframes slab-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }

  .use-grid,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-intro {
    position: static;
  }

  .piece-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .piece-workbench {
    grid-template-columns: 1fr;
  }

  .piece-diagram {
    border-right: 0;
    border-bottom: 1px solid rgb(242 239 231 / 22%);
  }

  .piece-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .piece-control:nth-child(odd) {
    border-right: 1px solid rgb(242 239 231 / 20%);
  }

  .prepare-grid {
    grid-template-columns: 1fr;
  }

  .prepare-photo {
    min-height: 30rem;
  }

  .footer-grid {
    grid-template-columns: 0.7fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 47.5rem) {
  :root {
    --concept-height: 2.75rem;
  }

  .shell {
    width: min(calc(100% - 2rem), var(--shell));
  }

  .concept-bar {
    justify-content: space-between;
    gap: 0.6rem;
    padding-inline: 1rem;
  }

  .concept-bar p {
    display: none;
  }

  .concept-bar span {
    letter-spacing: 0.045em;
  }

  .header-inner {
    min-height: 4.5rem;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .navigation {
    right: 1rem;
    width: calc(100vw - 2rem);
  }

  .hero-copy {
    width: calc(100% - 2rem);
    padding: 4.25rem 0 3.5rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 15vw, 5.3rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-image {
    min-height: 25rem;
  }

  .hero-image figcaption {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 3rem;
    align-items: flex-start;
  }

  .use-section,
  .spaces-section,
  .prepare-section,
  .faq-section,
  .piece-section,
  .process-section,
  .final-cta {
    padding-block: 4.5rem;
  }

  .section-intro h2,
  .spaces-heading h2,
  .process-intro h2,
  .prepare-copy h2,
  .faq-grid > div:first-child h2,
  .final-cta h2,
  .piece-heading h2 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .decision-list > div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .piece-workbench {
    width: 100%;
  }

  .piece-diagram {
    padding: 1rem;
  }

  .piece-controls {
    grid-template-columns: 1fr;
  }

  .piece-control,
  .piece-control:nth-child(odd) {
    min-height: 7rem;
    border-right: 0;
  }

  .spaces-heading {
    display: block;
  }

  .spaces-grid {
    display: flex;
    flex-direction: column;
  }

  .space-card-kitchen,
  .space-card-bathroom,
  .space-card-detail {
    min-height: 25rem;
  }

  .space-card-bathroom {
    min-height: 34rem;
  }

  .space-card figcaption {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-top: 3rem;
  }

  .process-list li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .prepare-photo {
    min-height: 22rem;
  }

  .prepare-copy {
    padding: 2rem 1.25rem;
  }

  .final-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .final-grid .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-column: auto;
    flex-direction: column;
    gap: 0.75rem;
  }

  .dialog-shell {
    padding: 1.25rem;
  }

  .dialog-heading {
    padding-top: 2.5rem;
    padding-right: 0;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-actions .button,
  .dialog-actions .text-button {
    width: 100%;
  }
}

@media (max-width: 22.5rem) {
  .concept-bar {
    font-size: 0.66rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-measure {
    left: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
