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

:root {
  --bg-cream: #f3ebe0;
  --bg-limestone: #ebe2d4;
  --bg-sand: #e4d8c6;
  --bg-ivory: #f7f1e8;
  --bg-plaster: #efe6d8;
  --surface-stone: #f0e6d7;
  --surface-clay: #e8dccb;
  --surface-mortar: #ddd0bc;
  --surface-shell: #f5eee4;
  --deep-lapis: #1e3a6e;
  --deep-terracotta: #9c4a2f;
  --deep-malachite: #2f5a45;
  --deep-bronze: #5c4632;
  --deep-umber: #3f2e22;
  --deep-slate: #3a3d42;
  --deep-indigo: #1a2744;
  --text-lapis: #1e3a6e;
  --text-umber: #3f2e22;
  --text-slate: #3a3d42;
  --text-terracotta: #9c4a2f;
  --text-bronze: #5c4632;
  --text-light: #f3ebe0;
  --text-ivory: #f7f1e8;
  --muted-clay: #8a7a68;
  --muted-grout: #9a9084;
  --muted-olive: #6f7358;
  --muted-terracotta: #b07a62;
  --muted-sand: #a89278;
  --muted-bluegrey: #6e7888;
  --accent-saffron: #c9922e;
  --accent-cobalt: #2f5f9e;
  --accent-coral: #c46a4e;
  --accent-malachite: #3d6b52;
  --accent-turquoise: #5a8a86;
  --accent-brass: #b89a5a;
  --sec-ochre: #d4b06a;
  --sec-rose: #c9a09a;
  --sec-teal: #7a9a94;
  --sec-olive: #8a8f6e;
  --sec-copper: #b88462;
  --sec-lilac: #a89aa8;
  --font-display: "Marcellus", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Mulish", "Segoe UI", sans-serif;
  --font-mono: "Fira Mono", "Courier New", monospace;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;
  --radius: 2px;
  --radius-soft: 6px;
  --shadow-lift: 0 10px 28px rgba(63, 46, 34, 0.12);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --header-h: 78px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-umber);
  background-color: var(--bg-cream);
  background-image:
    linear-gradient(rgba(243, 235, 224, 0.92), rgba(243, 235, 224, 0.92)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(154, 144, 132, 0.08) 23px,
      rgba(154, 144, 132, 0.08) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(154, 144, 132, 0.08) 23px,
      rgba(154, 144, 132, 0.08) 24px
    );
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

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

.section {
  position: relative;
  overflow-x: clip;
  max-width: 100%;
  padding: var(--space-xl) 0;
}

.section-deep {
  background: linear-gradient(145deg, var(--deep-lapis) 0%, var(--deep-indigo) 55%, var(--deep-umber) 100%);
  color: var(--text-light);
}

.section-terracotta {
  background: linear-gradient(160deg, var(--deep-terracotta) 0%, var(--deep-bronze) 100%);
  color: var(--text-ivory);
}

.section-stone {
  background:
    linear-gradient(rgba(240, 230, 215, 0.94), rgba(232, 220, 203, 0.96)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 14px,
      rgba(156, 74, 47, 0.035) 14px,
      rgba(156, 74, 47, 0.035) 15px
    );
}

.section-malachite {
  background: linear-gradient(150deg, var(--deep-malachite), #244836);
  color: var(--text-ivory);
}

.field-label,
.inlay-label,
.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-clay);
}

.section-deep .field-label,
.section-terracotta .field-label,
.section-malachite .field-label,
.section-deep .inlay-label,
.section-terracotta .inlay-label,
.section-malachite .inlay-label {
  color: var(--sec-ochre);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-lapis);
}

.section-deep h1,
.section-deep h2,
.section-deep h3,
.section-terracotta h1,
.section-terracotta h2,
.section-terracotta h3,
.section-malachite h1,
.section-malachite h2,
.section-malachite h3 {
  color: var(--text-ivory);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 42rem;
  color: var(--muted-clay);
}

.section-deep .lead,
.section-terracotta .lead,
.section-malachite .lead {
  color: rgba(243, 235, 224, 0.82);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(243, 235, 224, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(154, 144, 132, 0.35);
  overflow-x: clip;
  max-width: 100%;
}

.header-inner {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.composition-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-olive);
  justify-self: start;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav-desktop a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-umber);
}

.nav-desktop a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: var(--accent-cobalt);
  transition: width 0.35s var(--ease);
}

.nav-desktop a:not(.nav-cta):hover::after,
.nav-desktop a:not(.nav-cta):focus-visible::after {
  width: 100%;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--deep-terracotta);
  color: var(--text-ivory) !important;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-cta:hover,
.btn:hover,
.nav-cta:focus-visible,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: var(--deep-lapis);
  border-color: var(--accent-brass);
}

.btn-secondary {
  background: transparent;
  color: var(--text-lapis) !important;
  border-color: var(--deep-lapis);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--deep-lapis);
  color: var(--text-ivory) !important;
}

.btn-light {
  background: var(--bg-ivory);
  color: var(--deep-lapis) !important;
}

.btn-light:hover,
.btn-light:focus-visible {
  background: var(--accent-saffron);
  color: var(--deep-umber) !important;
}

.btn-full {
  width: 100%;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--deep-lapis);
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: var(--accent-cobalt);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.section-deep .text-link,
.section-terracotta .text-link {
  color: var(--sec-ochre);
}

.burger {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(92, 70, 50, 0.25);
  border-radius: var(--radius);
  background: var(--surface-stone);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--deep-umber);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(243, 235, 224, 0.98);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-x: hidden;
  max-width: 100vw;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav[hidden] {
  display: flex !important;
  pointer-events: none;
}

.mobile-nav.is-open[hidden] {
  pointer-events: auto;
}

.mobile-nav-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(92, 70, 50, 0.25);
  border-radius: var(--radius);
  background: var(--surface-stone);
  position: relative;
  cursor: pointer;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--deep-umber);
}

.mobile-nav-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-list a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  color: var(--text-lapis);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(154, 144, 132, 0.35);
}

.hero {
  position: relative;
  overflow-x: clip;
  max-width: 100%;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 146, 46, 0.12), transparent 45%),
    linear-gradient(165deg, var(--bg-ivory) 0%, var(--bg-limestone) 45%, #e8d5c4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(30, 58, 110, 0.18);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

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

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(92, 70, 50, 0.2);
  box-shadow: var(--shadow-lift);
}

.hero-frame {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(243, 235, 224, 0.55);
  pointer-events: none;
}

.composition-panel {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(240, 230, 215, 0.9);
  border: 1px solid rgba(154, 144, 132, 0.4);
}

.composition-panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tessera-chip {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(30, 58, 110, 0.2);
  background: var(--bg-ivory);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lapis);
}

.tessera-chip.resolved {
  background: var(--deep-lapis);
  color: var(--text-ivory);
  border-color: var(--deep-lapis);
}

.hero-tessera-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-tessera {
  padding: 1rem;
  background: var(--surface-stone);
  border: 1px solid rgba(154, 144, 132, 0.35);
  border-left: 3px solid var(--deep-terracotta);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-tessera:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.hero-tessera h3 {
  margin: 0.35rem 0;
  font-size: 1.15rem;
}

.hero-tessera p {
  color: var(--muted-clay);
  font-size: 0.95rem;
}

.parallax-layer {
  position: absolute;
  inset: auto 8% 12% auto;
  width: min(180px, 28%);
  height: 120px;
  border: 1px solid rgba(201, 146, 46, 0.45);
  background: rgba(30, 58, 110, 0.08);
  pointer-events: none;
  display: none;
}

.signals-grid {
  display: grid;
  gap: 1rem;
}

.signal-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem;
  background: var(--surface-shell);
  border: 1px solid rgba(154, 144, 132, 0.4);
  box-shadow: var(--shadow-inset);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.signal-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.signal-panel .fragment,
.signal-panel .response,
.signal-panel .result {
  display: grid;
  gap: 0.25rem;
}

.signal-panel strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cobalt);
}

.inlay-standard {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.inlay-standard img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(243, 235, 224, 0.25);
}

.checks-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.checks-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(243, 235, 224, 0.18);
}

.check-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--sec-ochre);
  display: grid;
  place-items: center;
}

.check-mark svg {
  width: 16px;
  height: 16px;
  stroke: var(--sec-ochre);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.reveal.is-visible .check-mark svg,
.is-visible .check-mark svg {
  animation: drawLine 1s var(--ease) forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.completed-feature {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.completed-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(154, 144, 132, 0.35);
}

.completed-feature-body {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--surface-stone);
  border: 1px solid rgba(154, 144, 132, 0.35);
}

.outcome-grid {
  display: grid;
  gap: 1rem;
}

.outcome-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  background: var(--bg-ivory);
  border: 1px solid rgba(154, 144, 132, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.outcome-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

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

.atelier-note {
  display: grid;
  gap: 1.5rem;
}

.atelier-highlight {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--accent-saffron);
  background: rgba(201, 146, 46, 0.1);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--text-lapis);
  line-height: 1.35;
}

.atelier-note img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(154, 144, 132, 0.35);
}

.service-matrix {
  display: grid;
  gap: 0.75rem;
}

.service-panel {
  border: 1px solid rgba(154, 144, 132, 0.4);
  background: var(--surface-shell);
  overflow: hidden;
}

.service-panel-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
}

.service-panel-trigger .mono-meta {
  color: var(--deep-terracotta);
}

.service-panel-trigger svg {
  width: 18px;
  height: 18px;
  stroke: var(--deep-lapis);
  stroke-width: 1.5;
  fill: none;
  transition: transform 0.3s var(--ease);
}

.service-panel.is-open .service-panel-trigger svg {
  transform: rotate(45deg);
}

.service-panel-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--muted-clay);
}

.service-panel.is-open .service-panel-body {
  display: grid;
  gap: 0.75rem;
}

.service-meta-grid {
  display: grid;
  gap: 0.75rem;
}

.service-meta-grid div {
  padding: 0.75rem;
  background: var(--bg-limestone);
  border: 1px solid rgba(154, 144, 132, 0.3);
}

.sequence {
  display: grid;
  gap: 0.85rem;
  counter-reset: seq;
}

.sequence-step {
  counter-increment: seq;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(247, 241, 232, 0.08);
  border: 1px solid rgba(243, 235, 224, 0.2);
}

.sequence-step::before {
  content: counter(seq, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sec-ochre);
  padding-top: 0.2rem;
}

.proof-grid {
  display: grid;
  gap: 1rem;
}

.proof-block {
  padding: 1.25rem;
  background: var(--surface-stone);
  border: 1px solid rgba(154, 144, 132, 0.35);
}

.proof-block h3 {
  margin-bottom: 0.75rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1.15rem;
  background: var(--bg-ivory);
  border: 1px solid rgba(154, 144, 132, 0.35);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--deep-terracotta);
  line-height: 1;
}

.stat-label {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-clay);
}

.quote-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.quote-list blockquote {
  padding: 1rem;
  border-left: 3px solid var(--accent-brass);
  background: rgba(184, 154, 90, 0.08);
  color: var(--muted-clay);
  font-style: italic;
}

.marquee-section {
  overflow: hidden;
  max-width: 100vw;
  padding: 1.25rem 0;
  background: var(--deep-umber);
  color: var(--text-ivory);
  border-block: 1px solid rgba(201, 146, 46, 0.35);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "◆";
  color: var(--accent-saffron);
  font-size: 0.55rem;
}

.marquee-track.reverse {
  animation: marqueeLeft 42s linear infinite;
}

.marquee-track.forward {
  animation: marqueeRight 48s linear infinite;
  margin-top: 0.65rem;
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.cta-panel {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 1.35rem;
  background:
    linear-gradient(rgba(30, 58, 110, 0.92), rgba(26, 39, 68, 0.94)),
    url("../images/detail-tessera.jpg") center / cover;
  border: 1px solid rgba(201, 146, 46, 0.35);
  color: var(--text-ivory);
}

.cta-panel h2 {
  color: var(--text-ivory);
}

.cta-panel p {
  color: rgba(243, 235, 224, 0.85);
  max-width: 36rem;
}

.contact-preview {
  display: grid;
  gap: 1.5rem;
}

.contact-facts {
  display: grid;
  gap: 1rem;
}

.contact-facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-olive);
}

.contact-facts dd {
  margin-top: 0.25rem;
  color: var(--text-umber);
}

.map-frame {
  width: 100%;
  min-height: 280px;
  border: 1px solid rgba(154, 144, 132, 0.4);
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.footer {
  overflow-x: clip;
  max-width: 100%;
  background: linear-gradient(180deg, var(--deep-indigo), var(--deep-umber));
  color: var(--text-ivory);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 3px solid var(--accent-brass);
}

.footer-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  max-width: 18ch;
  margin-bottom: 2rem;
  color: var(--text-ivory);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sec-ochre);
  margin-bottom: 0.85rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(243, 235, 224, 0.85);
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--sec-ochre);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 235, 224, 0.15);
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(243, 235, 224, 0.7);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  overflow-x: clip;
  max-width: 100%;
  background:
    linear-gradient(160deg, var(--bg-ivory), var(--bg-sand));
}

.page-hero .container {
  display: grid;
  gap: 1rem;
}

.content-block {
  display: grid;
  gap: 1rem;
}

.content-block p + p {
  margin-top: 0.35rem;
}

.split-media {
  display: grid;
  gap: 1.5rem;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(154, 144, 132, 0.35);
}

.team-grid,
.card-grid {
  display: grid;
  gap: 1rem;
}

.comp-card {
  padding: 1.25rem;
  background: var(--surface-stone);
  border: 1px solid rgba(154, 144, 132, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.comp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.comp-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(154, 144, 132, 0.4);
  background: var(--bg-ivory);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-lapis);
}

.faq-item button svg {
  width: 18px;
  height: 18px;
  stroke: var(--deep-terracotta);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open button svg {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 1.2rem 1.15rem;
  color: var(--muted-clay);
}

.faq-item.is-open .faq-panel {
  display: block;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.form-panel {
  padding: 1.5rem;
  background:
    linear-gradient(rgba(240, 230, 215, 0.95), rgba(232, 220, 203, 0.96));
  border: 1px solid rgba(154, 144, 132, 0.45);
  box-shadow: var(--shadow-inset);
}

.form-panel h2 {
  margin-bottom: 0.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

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

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-olive);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(92, 70, 50, 0.3);
  border-radius: var(--radius);
  background: var(--bg-ivory);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-cobalt);
  box-shadow: 0 0 0 3px rgba(47, 95, 158, 0.15);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--deep-terracotta);
}

.form-field input:valid:not(:placeholder-shown),
.form-field textarea:valid:not(:placeholder-shown) {
  border-color: var(--accent-malachite);
}

.thanks-panel {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1.15rem;
  padding: 2.5rem 1.5rem;
  background: var(--surface-stone);
  border: 1px solid rgba(154, 144, 132, 0.4);
}

.thanks-panel .mono-meta {
  justify-self: center;
}

.legal-page .legal-hero {
  padding: 2.5rem 0 1.5rem;
}

.legal-content {
  max-width: 820px;
  padding-bottom: var(--space-xl);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.legal-content h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted-clay);
  margin-bottom: 0.85rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-toc {
  margin: 1.25rem 0 2rem;
  padding: 1.15rem;
  background: var(--surface-stone);
  border: 1px solid rgba(154, 144, 132, 0.35);
}

.legal-toc li {
  margin-bottom: 0.35rem;
  color: var(--text-umber);
  list-style: none;
  padding-left: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.stagger > .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger > .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.stagger > .reveal:nth-child(3) {
  transition-delay: 0.19s;
}
.stagger > .reveal:nth-child(4) {
  transition-delay: 0.26s;
}
.stagger > .reveal:nth-child(5) {
  transition-delay: 0.33s;
}
.stagger > .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

.line-icon {
  width: 36px;
  height: 36px;
}

.line-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--deep-terracotta);
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}

.reveal.is-visible .line-icon svg {
  animation: drawLine 1.1s var(--ease) forwards;
}

@media (min-width: 720px) {
  .hero-tessera-row {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .outcome-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

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

@media (min-width: 960px) {
  .burger {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
  }

  .inlay-standard,
  .atelier-note,
  .completed-feature,
  .split-media,
  .contact-layout,
  .contact-preview {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .signals-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid,
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1025px) and (hover: hover) {
  .parallax-layer {
    display: block;
  }
}

@media (max-width: 719px) {
  .composition-status {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .btn,
  .hero-actions .btn {
    width: 100%;
  }

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

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