/*
 * Desert Data Labs revamp
 * Direction: Desert Field Guide / Modern Instrument
 * One calm, warm-paper theme with deliberate color and motion.
 */

:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --paper-deep: #ece3d3;
  --paper-soft: #fbf8f1;
  --ink: #152b2c;
  --ink-soft: #425453;
  --ink-faint: #6c7a76;
  --cactus: #2d7164;
  --cactus-dark: #1f554c;
  --cactus-soft: #dce8df;
  --coral: #b84b3b;
  --coral-dark: #91362c;
  --sand: #d7bd8a;
  --line: #d6ccbb;
  --line-strong: #bdb19e;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(21, 43, 44, 0.11);
  --shadow-small: 0 8px 24px rgba(21, 43, 44, 0.08);
  --radius-small: 0.45rem;
  --radius: 0.8rem;
  --radius-large: 1.35rem;
  --content: 72rem;
  --reading: 46rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-height: 4.75rem;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

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

html {
  background: var(--paper);
  scroll-padding-top: calc(var(--nav-height) + 2rem);
}

body,
body.quarto-light,
body.quarto-dark {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body * {
  animation-iteration-count: 1 !important;
}

body.nav-fixed {
  padding-top: var(--nav-height) !important;
}

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

a,
body.quarto-light a,
body.quarto-dark a {
  color: var(--cactus-dark);
  text-decoration-color: rgba(45, 113, 100, 0.45);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--coral-dark);
  text-decoration-color: currentColor;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
body.quarto-light :where(h1, h2, h3, h4, h5, h6),
body.quarto-dark :where(h1, h2, h3, h4, h5, h6) {
  margin-block: 0 0.75em;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.6rem);
}

h2 {
  font-size: clamp(2.05rem, 4vw, 3.65rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p,
ul,
ol {
  margin-block: 0 1.25rem;
}

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

figure {
  margin: 0;
}

figcaption {
  color: var(--ink-faint);
  font-size: 0.84rem;
  line-height: 1.45;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

code,
pre {
  color: var(--ink);
  background: var(--paper-deep);
}

/* Quarto shell */
.quarto-container,
#quarto-content,
main.content,
#quarto-document-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

#quarto-content.page-columns,
#quarto-document-content.page-columns {
  display: block;
}

#quarto-header {
  z-index: 1000;
}

.navbar,
body.quarto-light .navbar,
body.quarto-dark .navbar {
  position: relative !important;
  top: auto;
  min-height: var(--nav-height);
  padding: 0.7rem var(--gutter) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--paper) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.navbar > .container-fluid,
.navbar > .container-xxl,
.navbar > .container-xl,
.navbar > .container-lg,
.navbar > .container-md,
.navbar > .container-sm,
.navbar > .container {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: 0;
}

.navbar-brand {
  gap: 0.65rem;
  color: var(--ink) !important;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.navbar-brand img,
.navbar-logo {
  width: 2.4rem;
  max-height: 2.4rem;
  object-fit: contain;
}

.navbar-nav {
  align-items: center;
  gap: 0.2rem;
}

.navbar .nav-link,
body.quarto-light .navbar .nav-link,
body.quarto-dark .navbar .nav-link {
  min-height: 2.75rem;
  padding: 0.58rem 0.78rem !important;
  color: var(--ink-soft) !important;
  border-radius: var(--radius-small);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.45;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: var(--ink) !important;
  background: var(--paper-deep);
  text-decoration: none;
}

.navbar .navbar-nav:last-child .nav-link[href*="contact"] {
  margin-left: 0.45rem;
  padding-inline: 1rem !important;
  color: var(--white) !important;
  background: var(--coral) !important;
}

.navbar .navbar-nav:last-child .nav-link[href*="contact"]:hover,
.navbar .navbar-nav:last-child .nav-link[href*="contact"]:focus-visible {
  color: var(--white) !important;
  background: var(--coral-dark) !important;
}

.navbar-toggler {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.45rem;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-small);
  color: var(--ink) !important;
  background: var(--paper-soft) !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  position: relative;
  width: 1.3rem;
  height: 1rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: none !important;
}

.navbar-toggler-icon::after {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  border-top: 2px solid var(--ink);
  content: "";
}

.mm-toggle,
.mm-panel {
  display: none !important;
}

.nav-footer,
.page-footer,
footer.footer {
  margin: 0;
  padding: 2.1rem var(--gutter) !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  color: var(--ink-soft) !important;
  background: var(--paper-deep) !important;
  font-size: 0.86rem;
}

.nav-footer a,
.page-footer a,
footer.footer a {
  color: var(--cactus-dark) !important;
}

/* Shared actions */
.button,
.tg-btn,
.btn,
body.quarto-light :where(.button, .tg-btn, .btn),
body.quarto-dark :where(.button, .tg-btn, .btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease, transform 180ms ease;
}

.button:hover,
.tg-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.button--primary,
.tg-btn-primary,
.btn-primary,
body.quarto-light :where(.button--primary, .tg-btn-primary, .btn-primary),
body.quarto-dark :where(.button--primary, .tg-btn-primary, .btn-primary) {
  border-color: var(--coral) !important;
  color: var(--white) !important;
  background: var(--coral) !important;
}

.button--primary:hover,
.tg-btn-primary:hover,
.btn-primary:hover {
  border-color: var(--coral-dark) !important;
  color: var(--white) !important;
  background: var(--coral-dark) !important;
}

.button--quiet,
.tg-btn-ghost,
.btn-outline-primary {
  border-color: var(--line-strong) !important;
  color: var(--ink) !important;
  background: transparent !important;
}

.button--quiet:hover,
.tg-btn-ghost:hover,
.btn-outline-primary:hover {
  border-color: var(--cactus) !important;
  color: var(--cactus-dark) !important;
  background: var(--cactus-soft) !important;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--cactus-dark) !important;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  color: var(--coral-dark) !important;
}

.hero-actions,
.project-story__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* One reveal language. The no-JS state is always fully visible. */
.has-revamp-js [data-reveal] {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 300ms ease, transform 300ms ease;
}

.has-revamp-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Showroom hero */
.showroom-hero {
  display: grid;
  min-height: calc(100svh - var(--nav-height));
  align-items: center;
  padding: clamp(5.5rem, 10vw, 9rem) var(--gutter);
  background: radial-gradient(
    circle at 78% 28%,
    rgba(45, 113, 100, 0.15) 0,
    rgba(45, 113, 100, 0) min(34rem, 58vw)
  );
}

.showroom-hero__inner {
  display: grid;
  width: min(100%, var(--content));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.18fr) minmax(19rem, 0.82fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7.5rem);
}

.showroom-hero__copy {
  max-width: 48rem;
}

.hero-kicker,
.page-kicker,
.section-kicker,
.project-story__eyebrow,
.project-number,
.project-type {
  margin-bottom: 1rem;
  color: var(--cactus-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.showroom-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.7rem;
  font-size: clamp(3.7rem, 8.4vw, 7.5rem);
  line-height: 0.94;
}

.showroom-hero h1 span,
.accent {
  color: var(--cactus);
}

.hero-lede,
.page-hero > p:not(.page-kicker):not(.contact-address),
.lede {
  max-width: var(--reading);
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.58;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.showroom-hero__visual {
  width: 100%;
}

.instrument-card {
  position: relative;
  min-height: 25rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  overflow: hidden;
  border: 1px solid #244445;
  border-radius: var(--radius-large);
  color: #eff4ec;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.instrument-card img {
  width: 5.25rem;
  height: 5.25rem;
  margin-bottom: 5rem;
  object-fit: contain;
}

.instrument-card > p {
  max-width: 14ch;
  margin: 1rem 0 1.6rem;
  color: #eff4ec;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.instrument-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #bdd7c7;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.instrument-card__status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #76b691;
}

.instrument-card__lines {
  display: grid;
  gap: 0.55rem;
}

.instrument-card__lines i {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(239, 244, 236, 0.28);
}

.instrument-card__lines i:nth-child(2) {
  width: 78%;
}

.instrument-card__lines i:nth-child(3) {
  width: 56%;
}

.instrument-card__lines i:nth-child(4) {
  width: 34%;
  background: var(--coral);
}

.trust-strip {
  display: flex;
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 680;
}

.trust-strip span {
  flex: 1;
  padding-inline: 1.25rem;
  text-align: center;
}

.trust-strip span + span {
  border-left: 1px solid var(--line);
}

/* Featured project chapters */
.project-index {
  position: sticky;
  top: var(--nav-height);
  z-index: 40;
  display: flex;
  width: min(100%, var(--content));
  min-height: 3.6rem;
  margin: 0 auto;
  padding: 0.45rem var(--gutter);
  align-items: center;
  gap: clamp(0.35rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  white-space: nowrap;
}

.project-index > span {
  margin-right: auto;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-index a {
  display: inline-flex;
  min-height: 2.6rem;
  padding: 0.45rem 0.65rem;
  align-items: center;
  border-radius: var(--radius-small);
  color: var(--ink-faint);
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
}

.project-index a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.project-index a.is-active,
.project-index a[aria-current="location"] {
  color: var(--white);
  background: var(--cactus);
}

.showroom-projects {
  width: 100%;
}

.project-story {
  --story-accent: var(--cactus);
  --story-surface: var(--cactus-soft);
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  min-height: 94svh;
  margin-inline: auto;
  padding: clamp(5rem, 9vw, 8rem) 0;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(27rem, 1.18fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.project-story--field {
  --story-accent: #2d7164;
  --story-surface: #dce8df;
}

.project-story--research {
  --story-accent: #416b72;
  --story-surface: #dfe9e7;
}

.project-story--systems {
  --story-accent: #8a653d;
  --story-surface: #eee2cf;
}

.project-story--story {
  --story-accent: #9e4e41;
  --story-surface: #eadbd6;
}

.project-story__copy,
.project-story__visual {
  position: sticky;
  top: calc(var(--nav-height) + 5.25rem);
  align-self: start;
}

.project-story__copy {
  max-width: 35rem;
}

.project-story__eyebrow {
  color: var(--story-accent);
}

.project-story h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.45rem);
}

.project-story__copy > p:not(.project-story__eyebrow):not(.project-story__metric) {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.project-story__metric {
  display: grid;
  margin: 2rem 0;
  padding: 1.05rem 0 1.05rem 1.1rem;
  gap: 0.15rem;
  border-left: 3px solid var(--story-accent);
}

.project-story__metric strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.project-story__metric span {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.project-story__actions {
  margin-top: 2rem;
}

.project-shot {
  padding: clamp(0.75rem, 2vw, 1.1rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--story-surface);
  box-shadow: var(--shadow);
}

.project-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-large) - 0.35rem);
  object-fit: cover;
  object-position: center;
}

.project-shot figcaption {
  padding: 0.85rem 0.3rem 0.15rem;
}

.project-device img {
  height: min(62vh, 39rem);
  aspect-ratio: 5 / 6;
  object-fit: contain;
}

.project-shot--cinema {
  background: var(--ink);
}

.project-shot--cinema img {
  min-height: 27rem;
  filter: saturate(0.82) contrast(1.03);
}

.project-shot--cinema figcaption {
  color: #c5d0ca;
}

.project-shot--table {
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--ink);
  background: var(--paper-soft);
}

.cleaner-demo__head,
.cleaner-demo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.cleaner-demo__head {
  padding: 0 0.75rem 0.75rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cleaner-demo__row {
  min-height: 4rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: clamp(0.73rem, 1.5vw, 0.88rem);
}

.cleaner-demo__row b {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: var(--coral-dark);
  background: #f3ddd6;
  font-size: 0.7rem;
  white-space: nowrap;
}

.cleaner-demo__row .status-ok {
  color: var(--cactus-dark);
  background: var(--cactus-soft);
}

.cleaner-demo__row--flag {
  background: #fbf0ec;
}

.cleaner-demo__result {
  margin: 1.4rem 0 0;
  padding: 1rem;
  border: 1px solid var(--cactus);
  border-radius: var(--radius-small);
  color: var(--cactus-dark);
  background: var(--cactus-soft);
  font-weight: 750;
  text-align: center;
}

/* Home supporting sections */
.home-section,
.founder-split,
.final-cta,
.more-work,
.about-principles,
.project-proof,
.project-technical,
.related-cta,
.pricing-grid,
.reassurance-grid,
.process-expectations,
.contact-alternatives,
.sec-diagram {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
}

.home-section {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.home-section > h2 {
  max-width: 15ch;
}

.offer-grid {
  display: grid;
  margin-top: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.offer-card {
  min-height: 17rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink) !important;
  background: var(--paper-soft);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.offer-card:hover {
  color: var(--ink) !important;
  background: var(--cactus-soft);
}

.offer-card > span {
  color: var(--cactus);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.offer-card h3 {
  margin-top: 4rem;
}

.offer-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.home-section--process {
  background: var(--paper-deep);
  box-shadow: 50vw 0 0 var(--paper-deep), -50vw 0 0 var(--paper-deep);
}

.process-strip {
  display: grid;
  margin: 3rem 0 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.process-strip > div {
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 0 0;
}

.process-strip > div + div {
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--line-strong);
}

.process-strip span {
  color: var(--cactus);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.process-strip h3 {
  margin-top: 2.5rem;
}

.process-strip p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.founder-split {
  display: grid;
  padding-block: clamp(5rem, 9vw, 8rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.founder-split figure {
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--paper-deep);
}

.founder-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.78);
}

.founder-split p:not(.section-kicker) {
  color: var(--ink-soft);
}

.final-cta,
.related-cta {
  margin-block: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: var(--radius-large);
  color: #e7eee8;
  background: var(--ink);
}

.final-cta h2,
.related-cta h2 {
  max-width: 16ch;
  color: var(--white) !important;
}

.final-cta p:not(.section-kicker),
.related-cta p:not(.page-kicker):not(.section-kicker) {
  max-width: 43rem;
  color: #c3cfca;
}

.final-cta .section-kicker,
.related-cta :where(.section-kicker, .page-kicker) {
  color: #9bc7b4;
}

.related-cta .tg-btn-ghost,
.related-cta .button--quiet {
  border-color: #71827b !important;
  color: var(--white) !important;
}

.related-cta .text-link {
  color: #b7d9c9 !important;
}

/* Interior pages */
.page-hero {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
  padding: clamp(6rem, 11vw, 10rem) 0 clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
}

.page-hero > p:not(.page-kicker):not(.contact-address) {
  margin-top: 1.5rem;
}

.page-hero > .button,
.page-hero > .cta-row {
  margin-top: 2rem;
}

.work-hero,
.project-hero {
  overflow: clip;
}

.work-hero .lede,
.project-hero .lede {
  max-width: 48rem;
}

.detail-layout,
.service-block,
.process-detail,
.contact-guide {
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  grid-template-columns: minmax(0, 0.88fr) minmax(24rem, 1.12fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.detail-layout-reverse .detail-copy {
  order: 2;
}

.detail-layout-reverse .detail-visual {
  order: 1;
}

.detail-copy {
  max-width: var(--reading);
}

.work-showroom {
  width: 100%;
}

.work-feature {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.detail-copy p {
  color: var(--ink-soft);
}

.detail-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--paper-deep);
  box-shadow: var(--shadow-small);
}

.detail-visual img {
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
}

.detail-visual figcaption {
  padding: 0.85rem 1rem 1rem;
  background: var(--paper-soft);
}

.work-showroom .work-feature:nth-child(even) .detail-copy {
  order: 2;
}

.work-showroom .work-feature:nth-child(even) .detail-visual {
  order: 1;
}

.proof-line {
  margin: 1.6rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--cactus);
}

.more-work,
.about-principles,
.project-proof {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.more-work > h2,
.about-principles > h2,
.project-proof > h2 {
  max-width: 17ch;
}

.more-work-grid,
.metric-row,
.gallery-grid,
.reassurance-grid,
.pricing-grid,
.process-expectations,
.contact-alternatives {
  display: grid;
  gap: 1rem;
}

.more-work-grid,
.metric-row,
.gallery-grid,
.reassurance-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.more-work-grid,
.metric-row,
.gallery-grid {
  margin-top: 2.5rem;
}

.more-work-card,
.metric-card,
.reassurance-grid > article,
.pricing-card,
.process-expectations > div,
.contact-alternatives > div {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.more-work-card p,
.metric-card p,
.reassurance-grid p,
.pricing-card > p:not(.section-kicker),
.process-expectations p,
.contact-alternatives p {
  color: var(--ink-soft);
}

.more-work-card > a,
.reassurance-grid a {
  font-weight: 740;
}

.metric-card {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: space-between;
}

.metric-value {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.metric-label {
  color: var(--cactus-dark);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gallery-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.8rem 1rem 1rem;
}

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

.project-technical {
  margin-block: 3rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.project-technical summary {
  padding: 1.25rem 0;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.project-technical[open] summary {
  border-bottom: 1px solid var(--line);
}

.project-technical .detail-copy {
  padding-block: 1.5rem;
}

.about-portrait img {
  aspect-ratio: 4 / 5;
}

.about-intro {
  align-items: center;
}

.about-capabilities {
  align-items: stretch;
}

.capability-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
}

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

.capability-list li,
.plain-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.45rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.capability-list li::before,
.plain-list li::before {
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cactus);
  content: "";
}

.capability-note {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Services and process */
.service-block,
.process-detail {
  grid-template-columns: minmax(6rem, 0.23fr) minmax(0, 0.77fr);
  align-items: start;
}

.service-block__number,
.process-detail__number {
  color: var(--line-strong);
  font-family: var(--font-mono);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 750;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.service-block__copy,
.process-detail > div:last-child {
  max-width: var(--reading);
}

.service-block__copy > p:not(.section-kicker),
.process-detail > div:last-child > p:not(.section-kicker) {
  color: var(--ink-soft);
}

.reassurance-grid,
.pricing-grid,
.process-expectations,
.contact-alternatives {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.process-expectations,
.contact-alternatives {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Pricing */
.pricing-card {
  display: flex;
  min-height: 31rem;
  flex-direction: column;
}

.pricing-card h2 {
  margin-top: 0.25rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.pricing-card h2 span {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0;
}

.pricing-card .plain-list {
  margin-top: auto;
}

.pricing-card--featured {
  border-color: var(--cactus);
  box-shadow: inset 0 4px 0 var(--cactus);
}

/* Contact */
.page-hero--contact {
  max-width: var(--content);
}

.contact-address {
  margin-top: 1.25rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.contact-guide {
  align-items: start;
}

.contact-guide ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-guide li {
  display: grid;
  padding: 1.25rem 0;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.contact-guide li > span {
  color: var(--cactus);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.contact-guide li p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* Minimal supporting-page fallbacks */
.hero:not(.showroom-hero) {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
  padding: clamp(6rem, 11vw, 10rem) 0 clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.hero:not(.showroom-hero) > h1 {
  max-width: 13ch;
}

.hero:not(.showroom-hero) .lede {
  max-width: var(--reading);
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--cactus-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.section {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.section-title {
  max-width: 17ch;
}

.section-subtitle {
  max-width: var(--reading);
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.tg-grid {
  display: grid;
  margin-top: 2.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tg-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--paper-soft);
}

.tg-card h3 {
  color: var(--ink);
}

.cta-banner {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin: clamp(4rem, 8vw, 7rem) auto;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: var(--radius-large);
  color: #c3cfca;
  background: var(--ink);
}

.cta-banner h2 {
  max-width: 16ch;
  color: var(--white) !important;
}

.desert-divider {
  display: none;
}

#quarto-document-content > h2,
#quarto-document-content > h3,
#quarto-document-content > p {
  width: min(calc(100% - (2 * var(--gutter))), var(--reading));
  margin-inline: auto;
}

#quarto-document-content > h2 {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

#quarto-document-content > p:last-child {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.sec-diagram {
  display: grid;
  padding-block: clamp(4rem, 8vw, 7rem);
  grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.sec-rings {
  width: min(100%, 25rem);
  margin-inline: auto;
}

.sec-ring {
  fill: none;
  stroke: var(--cactus);
  stroke-width: 1.5;
}

.sec-core {
  fill: var(--cactus);
}

.sec-core-ico {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
}

.sec-legend {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-legend li {
  display: grid;
  padding: 0.8rem 0;
  grid-template-columns: 0.8rem minmax(0, 1fr);
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.sec-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--cactus);
}

.wall-wrap {
  width: 100%;
}

.flora-cinema {
  position: relative;
  display: grid;
  min-height: 28rem;
  max-height: 70svh;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}

.flora-cinema .fc-slide {
  position: absolute;
  inset: 0;
  opacity: 0 !important;
  background-position: center;
  background-size: cover;
  animation: none !important;
}

.flora-cinema .fc-slide:first-child {
  opacity: 0.42 !important;
}

.flora-cinema-cap {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding: var(--gutter);
  color: var(--white);
  text-align: center;
}

.flora-cinema-cap h1 {
  color: var(--white) !important;
}

.flora-cinema-cap p {
  color: #d6e0da;
}

.flora-bar {
  display: flex;
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
  padding: 1rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.flora-bar-label {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.flora-find {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--paper-soft);
  font: 650 0.78rem/1.2 var(--font-sans);
}

.plant-wall {
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), 88rem);
  margin: 2rem auto 5rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.plant-wall img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.25rem;
  object-fit: cover;
  filter: saturate(0.82);
}

.cost-table-wrap,
.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table,
.table,
.cost-table {
  width: 100%;
  color: var(--ink) !important;
  background: var(--paper-soft) !important;
}

table :where(th, td),
.table :where(th, td),
.cost-table :where(th, td) {
  padding: 0.8rem 1rem;
  border-color: var(--line) !important;
}

table thead th,
.table thead th,
.cost-table thead th {
  color: var(--ink) !important;
  background: var(--paper-deep) !important;
}

.pseg,
.pbar-fill {
  background: var(--cactus) !important;
}

/* Optional native form fallback */
form {
  max-width: var(--reading);
}

:where(input, textarea, select) {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--paper-soft);
  font: inherit;
}

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

@media (max-width: 991.98px) {
  :root {
    --nav-height: 4.35rem;
  }

  .navbar-collapse {
    margin-top: 0.7rem;
    padding: 0.75rem 0 0.35rem;
    border-top: 1px solid var(--line);
    background: var(--paper) !important;
  }

  .navbar-nav {
    align-items: stretch;
    gap: 0.15rem;
  }

  .navbar .nav-link {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem !important;
  }

  .navbar .navbar-nav:last-child .nav-link[href*="contact"] {
    margin: 0.35rem 0 0;
  }

  .showroom-hero__inner,
  .detail-layout,
  .contact-guide,
  .sec-diagram {
    grid-template-columns: 1fr;
  }

  .showroom-hero {
    min-height: auto;
  }

  .showroom-hero__visual {
    max-width: 36rem;
  }

  .instrument-card {
    min-height: 21rem;
  }

  .instrument-card img {
    margin-bottom: 3rem;
  }

  .project-story {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-story__copy,
  .project-story__visual {
    position: static;
  }

  .project-story__copy {
    max-width: var(--reading);
  }

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

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

  .work-showroom .work-feature:nth-child(even) .detail-copy,
  .work-showroom .work-feature:nth-child(even) .detail-visual,
  .detail-layout-reverse .detail-copy,
  .detail-layout-reverse .detail-visual {
    order: initial;
  }

  .more-work-grid,
  .metric-row,
  .gallery-grid,
  .reassurance-grid,
  .pricing-grid,
  .tg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-block,
  .process-detail {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 2rem;
  }

  .plant-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body,
  body.quarto-light,
  body.quarto-dark {
    font-size: 1rem;
  }

  .navbar {
    padding-inline: var(--gutter) !important;
  }

  .showroom-hero {
    padding-block: 4.5rem 4rem;
  }

  .showroom-hero h1 {
    font-size: clamp(3.25rem, 17vw, 5.1rem);
  }

  .hero-actions,
  .project-story__actions,
  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  :where(.hero-actions, .project-story__actions, .cta-row) :where(.button, .tg-btn) {
    width: 100%;
  }

  .trust-strip {
    display: grid;
    padding-block: 0.35rem;
  }

  .trust-strip span {
    padding: 0.7rem 0;
    text-align: left;
  }

  .trust-strip span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-index {
    max-width: 100vw;
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .project-index::-webkit-scrollbar {
    display: none;
  }

  .project-index > span {
    display: none;
  }

  .project-story {
    padding-block: 4.5rem;
    gap: 2.25rem;
  }

  .project-story h2 {
    font-size: clamp(2.25rem, 11vw, 3.3rem);
  }

  .project-shot--cinema img {
    min-height: 20rem;
  }

  .cleaner-demo__head span:last-child {
    display: none;
  }

  .cleaner-demo__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .cleaner-demo__row b {
    justify-self: start;
  }

  .offer-grid,
  .process-strip,
  .more-work-grid,
  .metric-row,
  .gallery-grid,
  .reassurance-grid,
  .pricing-grid,
  .tg-grid,
  .process-expectations,
  .contact-alternatives {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: 13rem;
  }

  .offer-card h3 {
    margin-top: 2.5rem;
  }

  .process-strip > div {
    padding: 1.4rem 0;
  }

  .process-strip > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .process-strip h3 {
    margin-top: 1.25rem;
  }

  .page-hero {
    padding-block: 4.5rem 3.5rem;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .detail-layout,
  .service-block,
  .process-detail,
  .contact-guide {
    padding-block: 3.75rem;
  }

  .service-block,
  .process-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-block__number,
  .process-detail__number {
    font-size: 3rem;
  }

  .pricing-card {
    min-height: 0;
  }

  .gallery-grid-compact {
    grid-template-columns: 1fr;
  }

  .flora-bar,
  .flora-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .flora-actions {
    display: flex;
  }

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

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

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

  .has-revamp-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .navbar,
  .project-index,
  .page-footer,
  footer.footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .project-story,
  .detail-layout,
  .service-block,
  .process-detail {
    display: block;
    min-height: 0;
    break-inside: avoid;
  }

  .project-story__copy,
  .project-story__visual {
    position: static;
  }
}
