:root {
  --forest: #203f35;
  --forest-deep: #132b24;
  --forest-soft: #36584d;
  --ivory: #f3ede2;
  --ivory-light: #fbf8f2;
  --paper: #fffdf8;
  --copper: #b66c43;
  --copper-deep: #8f4e2f;
  --copper-button: #a8613a; /* brand copper deepened just enough for white text to meet WCAG AA */
  --ink: #18211e;
  --muted: #5c6863;
  --line: rgba(32, 63, 53, 0.16);
  --shadow: 0 24px 80px rgba(18, 43, 35, 0.12);
  --shadow-small: 0 12px 36px rgba(18, 43, 35, 0.1);
  --radius: 1.25rem;
  --radius-small: 0.75rem;
  --container: 76rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory-light);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

::selection {
  color: white;
  background: var(--copper-deep);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--forest-deep);
  border-radius: 0.4rem;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

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

.container--narrow {
  width: min(calc(100% - 2.5rem), 48rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.section--compact {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

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

.section--ivory {
  background: var(--ivory);
}

.section--paper {
  background: var(--paper);
}

.eyebrow {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--copper-deep);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.5rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.section--forest .eyebrow,
.hero .eyebrow,
.page-hero--image .eyebrow {
  color: #e6ad89;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.25rem, 8vw, 7.25rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.section--forest .lead,
.section--forest .muted {
  color: rgba(255, 255, 255, 0.72);
}

.muted {
  color: var(--muted);
}

.fine-print {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  padding: 0.8rem 1.25rem;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: white;
  background: var(--copper-button);
}

.button--primary:hover {
  background: var(--copper-deep);
}

.button--secondary {
  color: var(--forest);
  background: transparent;
  border-color: var(--forest);
}

.button--secondary:hover {
  color: white;
  background: var(--forest);
}

.button--light {
  color: var(--forest-deep);
  background: var(--ivory);
}

.button--outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
}

.button--outline-light:hover {
  color: var(--forest-deep);
  background: white;
  border-color: white;
}

.text-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--forest);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32rem;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(0.25rem);
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: white;
}

.site-header--solid {
  position: relative;
  color: var(--forest);
  background: var(--ivory-light);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 6rem;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  opacity: 0.72;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  align-items: center;
}

.site-nav a:not(.button) {
  position: relative;
  padding-block: 0.6rem;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:not(.button):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  position: relative;
  z-index: 60;
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}

.nav-open .nav-toggle {
  color: white;
  border-color: rgba(255, 255, 255, 0.72);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.2rem;
  height: 1px;
  margin: auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines::before {
  transform: translateY(-0.35rem);
}

.nav-toggle-lines::after {
  transform: translateY(0.3rem);
}

.nav-open .nav-toggle-lines {
  background: transparent;
}

.nav-open .nav-toggle-lines::before {
  transform: translateY(0) rotate(45deg);
}

.nav-open .nav-toggle-lines::after {
  transform: translateY(-1px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(58rem, 100svh);
  color: white;
  background: var(--forest-deep);
  isolation: isolate;
}

.hero::before,
.page-hero--image::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(13, 32, 26, 0.92) 0%, rgba(13, 32, 26, 0.78) 36%, rgba(13, 32, 26, 0.12) 78%),
    linear-gradient(0deg, rgba(10, 26, 21, 0.28), rgba(10, 26, 21, 0.1));
}

picture {
  display: contents;
}

.hero img,
.page-hero--image > img,
.page-hero--image > picture > img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  display: grid;
  min-height: min(58rem, 100svh);
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  align-items: end;
}

.hero-copy {
  max-width: 50rem;
}

.hero h1 {
  max-width: 48rem;
}

.hero .lead {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-note {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
}

.hero-note::before {
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  background: #e6ad89;
  border-radius: 50%;
}

.trust-bar {
  color: white;
  background: var(--forest-deep);
}

.trust-grid {
  display: grid;
  min-height: 7.5rem;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.trust-item {
  display: grid;
  padding: 1.25rem 1.5rem;
  place-content: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-item:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-item strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  min-height: 34rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.split-media--short img {
  min-height: 27rem;
}

.concept-label {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.5rem 0.75rem;
  color: white;
  background: rgba(19, 43, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.floating-card {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  max-width: 19rem;
  padding: 1.4rem;
  color: white;
  background: var(--forest);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-small);
}

.floating-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.floating-card span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.check-list,
.plain-list,
.number-list {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--copper);
  content: "✦";
}

.cards {
  display: grid;
  margin-top: clamp(2rem, 5vw, 4rem);
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card:hover {
  border-color: rgba(182, 108, 67, 0.48);
  box-shadow: var(--shadow-small);
  transform: translateY(-4px);
}

.card-number {
  display: block;
  margin-bottom: clamp(2rem, 6vw, 5rem);
  color: var(--copper-deep);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--forest {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.card--forest .card-number {
  color: #e3a47f;
}

.card--forest p {
  color: rgba(255, 255, 255, 0.68);
}

.process-grid {
  display: grid;
  margin-top: 3rem;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 2rem 1.5rem;
  counter-increment: process;
  border-top: 1px solid var(--line);
}

.process-step::before {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--copper);
  content: "0" counter(process);
  font-family: var(--serif);
  font-size: 1rem;
}

.process-step::after {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--copper);
  border-radius: 50%;
}

.process-step h3 {
  font-size: 1.45rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
  margin-top: 2.5rem;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-list > div {
  padding: 1.4rem;
  background: var(--forest);
}

.feature-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.feature-list span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.83rem;
}

.gallery-head {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 2.5rem 1.5rem;
}

.filter-button {
  padding: 0.65rem 1rem;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.gallery-card {
  position: relative;
  min-height: 24rem;
  grid-column: span 4;
  overflow: hidden;
  background: var(--forest-deep);
  border-radius: var(--radius);
}

.gallery-card--wide {
  grid-column: span 8;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 4rem 1.25rem 1.25rem;
  color: white;
  background: linear-gradient(0deg, rgba(10, 26, 21, 0.92), transparent);
}

.gallery-overlay strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.gallery-overlay span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-placeholder {
  display: grid;
  min-height: 24rem;
  padding: 2rem;
  place-items: center;
  color: var(--forest);
  background: repeating-linear-gradient(-45deg, var(--ivory), var(--ivory) 12px, #ebe2d4 12px, #ebe2d4 24px);
  border: 1px dashed var(--forest-soft);
  text-align: center;
}

.gallery-placeholder div {
  max-width: 24rem;
  padding: 1.5rem;
  background: rgba(255, 253, 248, 0.88);
  border-radius: var(--radius-small);
}

.gallery-placeholder strong {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.quote-panel {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  color: white;
  background: var(--forest);
  border-radius: var(--radius);
}

.quote-panel::after {
  position: absolute;
  top: -5rem;
  right: -2rem;
  color: rgba(255, 255, 255, 0.06);
  content: "M";
  font-family: var(--serif);
  font-size: 22rem;
  line-height: 1;
}

.quote-panel .name-panel-word {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.quote-panel blockquote {
  position: relative;
  z-index: 1;
  max-width: 50rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.12;
  text-wrap: balance;
}

.quote-panel p {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.approval-note {
  padding: 1rem 1.2rem;
  color: var(--forest-deep);
  background: #f3dfd2;
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-size: 0.85rem;
}

.page-hero {
  position: relative;
  padding-block: clamp(6rem, 12vw, 11rem);
  overflow: hidden;
  background: var(--ivory);
}

.page-hero::after {
  position: absolute;
  right: -4rem;
  bottom: -9rem;
  color: rgba(32, 63, 53, 0.055);
  content: "M";
  font-family: var(--serif);
  font-size: 30rem;
  line-height: 1;
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  color: var(--forest-deep);
}

.page-hero .lead,
.page-hero .eyebrow,
.page-hero .button-row {
  position: relative;
  z-index: 1;
}

.page-hero--image {
  position: relative;
  min-height: 44rem;
  padding-top: 11rem;
  color: white;
  background: var(--forest-deep);
  isolation: isolate;
}

.page-hero--image .container {
  display: grid;
  min-height: 29rem;
  padding-bottom: 4rem;
  align-content: end;
}

.page-hero--image h1 {
  max-width: 54rem;
}

.page-hero--image .lead {
  color: rgba(255, 255, 255, 0.78);
}

.pill {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  color: var(--copper-deep);
  background: #f3dfd2;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.detail {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

.detail strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-timeline {
  display: grid;
  margin-top: 3rem;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.story-timeline article {
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story-timeline .pill {
  margin-bottom: 3rem;
}

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

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

.faq-list summary {
  position: relative;
  padding: 1.5rem 3rem 1.5rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.3;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 1.35rem;
  right: 0.2rem;
  color: var(--copper);
  content: "+";
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
  transition: transform 180ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

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

.estimate-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

.contact-panel {
  position: sticky;
  top: 2rem;
  padding: 2rem;
  color: white;
  background: var(--forest);
  border-radius: var(--radius);
}

.contact-panel h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-placeholder {
  padding-top: 1.2rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-placeholder strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.contact-placeholder span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.demo-notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  color: #65341f;
  background: #f5ded0;
  border: 1px solid #e8b99d;
  border-radius: var(--radius-small);
  font-size: 0.86rem;
  line-height: 1.5;
}

.demo-notice::before {
  flex: 0 0 auto;
  content: "ⓘ";
  font-weight: 800;
}

.estimate-form {
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

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

.field {
  display: grid;
  gap: 0.4rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.fieldset legend {
  color: var(--forest-deep);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: white;
  border: 1px solid #b9c2bd;
  border-radius: 0.5rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(32, 63, 53, 0.14);
}

.fieldset {
  padding: 0;
  margin: 1.5rem 0 0;
  border: 0;
}

.fieldset legend {
  margin-bottom: 0.7rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: block;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
}

.choice input:checked + label {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.choice input:focus-visible + label {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.form-actions .fine-print {
  max-width: 28rem;
  margin: 0;
}

.form-result {
  padding: 1.5rem;
  margin-top: 1.5rem;
  color: var(--forest-deep);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.form-result:empty {
  display: none;
}

.form-result h3 {
  font-size: 1.5rem;
}

.form-result dl {
  display: grid;
  margin: 1rem 0 0;
  gap: 0.4rem 1rem;
  grid-template-columns: max-content 1fr;
}

.form-result dt {
  font-weight: 750;
}

.form-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cta-band {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  color: white;
  background: var(--forest-deep);
}

.cta-band::after {
  position: absolute;
  right: -2rem;
  bottom: -8rem;
  color: rgba(255, 255, 255, 0.04);
  content: "M";
  font-family: var(--serif);
  font-size: 23rem;
  line-height: 1;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.cta-inner h2 {
  max-width: 44rem;
  margin-bottom: 0;
}

.site-footer {
  color: white;
  background: #0d211b;
}

.footer-main {
  display: grid;
  padding-block: 4rem;
  gap: 3rem;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-brand p {
  max-width: 28rem;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-heading {
  display: block;
  margin-bottom: 1rem;
  color: #e6ad89;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.footer-bottom {
  display: flex;
  padding-block: 1.25rem;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.7rem;
}

/* Content is visible by default; it only starts hidden once site.js is running,
   and only below the first screen, so nothing stays blank if a script fails. */
.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(1.25rem);
}

.reveal {
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 64rem) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 40;
    top: 0;
    right: 0;
    width: min(25rem, 92vw);
    height: 100svh;
    padding: 7rem 2rem 2rem;
    flex-direction: column;
    align-items: stretch;
    color: white;
    background: var(--forest-deep);
    transform: translateX(105%);
    /* Closed: no shadow bleeding onto the page, and its links can't take keyboard focus. */
    visibility: hidden;
    transition: transform 240ms ease, visibility 0s linear 240ms;
  }

  .nav-open .site-nav {
    box-shadow: -2rem 0 5rem rgba(0, 0, 0, 0.25);
    transform: translateX(0);
    visibility: visible;
    transition: transform 240ms ease;
  }

  .site-nav a:not(.button) {
    padding-block: 0.9rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .site-nav .button {
    margin-top: 1rem;
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: initial;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -2rem 1rem 0;
  }

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

  .cards .card:last-child {
    grid-column: 1 / -1;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card {
    grid-column: span 6;
  }

  .gallery-card--wide {
    grid-column: span 12;
  }

  .story-timeline {
    grid-template-columns: 1fr;
  }

  .estimate-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    position: static;
  }
}

@media (max-width: 45rem) {
  .container,
  .container--narrow {
    width: min(calc(100% - 1.5rem), var(--container));
  }

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

  .brand-tag {
    display: none;
  }

  .hero-inner {
    padding-top: 7rem;
  }

  .hero::before,
  .page-hero--image::before {
    background: linear-gradient(90deg, rgba(13, 32, 26, 0.88), rgba(13, 32, 26, 0.42)),
      linear-gradient(0deg, rgba(10, 26, 21, 0.58), rgba(10, 26, 21, 0.05));
  }

  .hero img {
    object-position: 58% center;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .cards,
  .process-grid,
  .feature-list,
  .details-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cards .card:last-child,
  .field--wide {
    grid-column: auto;
  }

  .split-media img {
    min-height: 24rem;
  }

  .gallery-head,
  .cta-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-card,
  .gallery-card--wide {
    grid-column: span 12;
  }

  .gallery-card,
  .gallery-placeholder {
    min-height: 20rem;
  }

  .form-result dl {
    grid-template-columns: 1fr;
  }

  .form-result dd {
    margin-bottom: 0.6rem;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Cabinet Studio teaser (home) */
.studio-teaser-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
}

.studio-teaser-art {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.studio-teaser-frame {
  position: relative;
  display: block;
  aspect-ratio: 800 / 520;
  max-width: 100%;
  background: var(--forest-soft);
}

.teaser-layer {
  position: absolute;
  inset: 0;
}

.teaser-layer svg {
  display: block;
  width: 100%;
  height: 100%;
}

.teaser-layer--after {
  clip-path: inset(0 0 0 50%);
}

.studio-teaser-frame::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  content: "";
  background: white;
}

.studio-teaser-tags {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  left: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.studio-teaser-tags span,
.studio-teaser-note {
  padding: 0.25rem 0.6rem;
  color: white;
  background: rgba(19, 43, 36, 0.82);
  border-radius: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-teaser-note {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
}

.studio-teaser-art:hover .studio-teaser-frame {
  filter: brightness(1.03);
}

/* Before/after comparison */
.compare {
  margin: 0;
}

.compare-frame {
  --split: 50%;
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: var(--radius);
}

.compare-slot {
  display: grid;
  padding: 1.25rem;
  align-content: end;
  background: repeating-linear-gradient(135deg, var(--ivory) 0 14px, #ece4d6 14px 28px);
  border: 1px dashed rgba(32, 63, 53, 0.35);
}

.compare-slot + .compare-slot {
  border-left: 0;
}

.compare-slot p {
  margin: 0.4rem 0 0;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
}

.compare-label {
  width: fit-content;
  padding: 0.2rem 0.55rem;
  color: white;
  background: var(--forest);
  border-radius: 0.3rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.compare--ready .compare-frame {
  display: block;
}

.compare--ready .compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare--ready .compare-frame img[data-after] {
  clip-path: inset(0 0 0 var(--split));
}

.compare--ready .compare-frame[data-view="before"] img[data-after] {
  visibility: hidden;
}

.compare--ready .compare-frame[data-view="after"] img[data-after] {
  clip-path: none;
}

.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.85rem;
}

.compare-range {
  flex: 1 1 10rem;
}

.compare-range input {
  width: 100%;
  accent-color: var(--forest);
}

/* Cabinet-fit guide */
#fit-guide .split {
  align-items: start;
}

.fit-guide {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fit-guide .fieldset:first-child {
  margin-top: 0;
}

.fit-result:empty {
  display: none;
}

.fit-result {
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: var(--ivory);
  border-radius: var(--radius-small);
}

.fit-result h3 {
  font-size: 1.45rem;
}

.fit-result h3:focus {
  outline: none;
}

.fit-result ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.1rem;
  margin: 0.75rem 0;
}

.fit-error {
  margin: 0;
  color: #9b2414;
  font-weight: 650;
}

/* Studio selection carried to the estimate form */
.studio-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  margin-top: 1.5rem;
  background: var(--ivory);
  border-radius: var(--radius-small);
}

.studio-selection p {
  margin: 0;
  font-size: 0.92rem;
}

.text-button {
  padding: 0.3rem 0;
  color: var(--copper-deep);
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

/* Mobile action bar */
.sticky-cta {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem max(0.75rem, env(safe-area-inset-right)) max(0.65rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: rgba(19, 43, 36, 0.97);
  box-shadow: 0 -10px 30px rgba(13, 33, 27, 0.2);
}

.sticky-cta .button {
  flex: 1;
  justify-content: center;
}

.sticky-cta-close {
  width: 2.75rem;
  height: 2.75rem;
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

body.has-sticky-cta .site-footer {
  padding-bottom: 4.5rem;
}

@media (max-width: 64rem) {
  .studio-teaser-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .fine-print {
  color: #9aa39f;
}

/* ---------- Real project cards and viewer (work.js) ---------- */

.gallery-open {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: zoom-in;
}

.gallery-open:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: -3px;
}

.compare-tag {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  padding: 0.25rem 0.6rem;
  color: white;
  background: rgba(19, 43, 36, 0.85);
  border-radius: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.compare-tag--before {
  left: 0.75rem;
}

.compare-tag--after {
  right: 0.75rem;
}

.compare-frame[data-view="before"] .compare-tag--after,
.compare-frame[data-view="after"] .compare-tag--before {
  display: none;
}

body.work-dialog-open {
  overflow: hidden;
}

.work-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(10, 26, 21, 0.4);
}

.work-dialog::backdrop {
  background: rgba(10, 26, 21, 0.78);
}

.work-dialog-inner {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.work-dialog-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.work-dialog-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.work-dialog-head p,
.work-dialog-summary {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.work-dialog-close {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--forest-deep);
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.work-pair {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.work-dialog figure {
  margin: 0;
}

.work-dialog figure img {
  width: 100%;
  border-radius: var(--radius-small);
}

.work-dialog figcaption {
  margin-top: 0.4rem;
  color: var(--forest-deep);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-dialog-photos {
  display: grid;
  gap: 0.75rem;
}

.work-dialog-photos img {
  width: auto;
  max-width: 100%;
  max-height: 75svh;
  margin-inline: auto;
}

.work-dialog-photos:empty {
  display: none;
}

@media (max-width: 45rem) {
  .work-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100svh;
    margin: 0;
    border-radius: 0;
  }
  .work-pair {
    grid-template-columns: 1fr;
  }
}

/* Four service cards on the home page; two finish options on the cabinet page */
.cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 64.01rem) {
  .cards--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 45.01rem) and (max-width: 64rem) {
  .cards--four .card:last-child,
  .cards--two .card:last-child {
    grid-column: auto;
  }
}
@media (max-width: 45rem) {
  .cards--two {
    grid-template-columns: 1fr;
  }
}
