@font-face {
  font-family: "Madriz Expanded";
  src: url("assets/fonts/Madriz-BlackExpanded.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Madriz Bold";
  src: url("assets/fonts/Madriz-Bold.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Madriz Regular";
  src: url("assets/fonts/Madriz-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --sand: #f4ebdf;
  --dust: #d7bd98;
  --sun: #d68b46;
  --copper: #a44f2d;
  --clay: #7a402c;
  --char: #16120f;
  --ink: #251b15;
  --ink-soft: #5f4c3f;
  --sky: #b7c8d5;
  --sage: #78725c;
  --panel: rgba(255, 248, 239, 0.82);
  --panel-strong: rgba(255, 251, 245, 0.9);
  --line: rgba(37, 27, 21, 0.11);
  --shadow: 0 30px 70px rgba(54, 29, 16, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max-width: 1240px;
  --font-display: "Madriz Expanded", "Rockwell", Georgia, serif;
  --font-heading: "Madriz Bold", "Rockwell", Georgia, serif;
  --font-copy: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-copy);
  background:
    radial-gradient(circle at 12% 10%, rgba(214, 139, 70, 0.28), transparent 18%),
    radial-gradient(circle at 86% 8%, rgba(183, 200, 213, 0.32), transparent 18%),
    linear-gradient(180deg, #efe2d0 0%, #ead8c1 36%, #e1ceb5 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: 0.18;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      25deg,
      rgba(122, 64, 44, 0.05) 0,
      rgba(122, 64, 44, 0.05) 2px,
      transparent 2px,
      transparent 12px
    );
  mix-blend-mode: multiply;
}

body::after {
  background:
    radial-gradient(circle at 24% 74%, rgba(122, 64, 44, 0.11), transparent 22%),
    radial-gradient(circle at 78% 58%, rgba(214, 139, 70, 0.14), transparent 18%);
}

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

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

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

.page-transition-mark {
  width: min(280px, 50vw);
  max-width: 100%;
  opacity: 0;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.12));
}

html.mcg-arriving .page-transition,
html.mcg-transitioning .page-transition {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 320ms ease;
}

html.mcg-transitioning .page-transition-mark {
  animation: mcg-logo-fade 2000ms ease forwards;
}

html.mcg-arriving .page-transition-mark {
  opacity: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.site-header {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(37, 27, 21, 0.12);
}

.brand-masthead {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.logo-lockup {
  display: block;
  position: relative;
  width: min(100%, 980px);
  padding: 18px;
  border: 1px solid rgba(37, 27, 21, 0.14);
  background: linear-gradient(180deg, rgba(252, 250, 246, 0.96), rgba(242, 236, 228, 0.92));
  box-shadow: 0 24px 52px rgba(58, 40, 30, 0.14);
}

.logo-lockup::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(37, 27, 21, 0.08);
  pointer-events: none;
}

.logo-lockup img {
  width: 100%;
  height: auto;
}

.brand-banner {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin-top: 0;
  padding: 18px 28px 16px;
  border: 1px solid rgba(37, 27, 21, 0.12);
  background: rgba(255, 248, 239, 0.76);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(58, 40, 30, 0.1);
  text-align: center;
}

.brand-banner::before,
.brand-banner::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 48px;
  height: 1px;
  background: rgba(214, 139, 70, 0.66);
}

.brand-banner::before {
  left: 20px;
}

.brand-banner::after {
  right: 20px;
}

.brand-slogan {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.55rem);
  line-height: 1.02;
  color: var(--char);
}

.brand-meta {
  margin: 8px 0 0;
  color: var(--copper);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px 9px;
  color: rgba(37, 27, 21, 0.76);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(214, 139, 70, 0.86);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--char);
}

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

.nav-link.is-active {
  color: var(--char);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.site-main {
  display: grid;
  gap: 22px;
}

.hero,
.section,
.statement-band,
.feature-link,
.card,
.part-card,
.service-card,
.quality-card,
.timeline-card,
.product-card,
.art-tile {
  position: relative;
  border: 1px solid rgba(37, 27, 21, 0.12);
  border-radius: 0;
  box-shadow: 0 22px 48px rgba(58, 40, 30, 0.1);
}

.hero,
.section,
.statement-band {
  background: rgba(255, 248, 239, 0.72);
  backdrop-filter: blur(10px);
}

.hero,
.section {
  padding: 32px;
}

.hero::before,
.section::before,
.statement-band::before,
.feature-link::before,
.card::before,
.part-card::before,
.service-card::before,
.quality-card::before,
.timeline-card::before,
.product-card::before,
.art-tile::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(37, 27, 21, 0.08);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  overflow: hidden;
}

.eyebrow,
.mini-label,
.art-label,
.card-kicker {
  margin: 0;
  color: var(--copper);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--char);
  letter-spacing: -0.03em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.93;
  text-transform: uppercase;
}

h2,
h3,
h4 {
  font-family: var(--font-heading);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.42rem;
  line-height: 1.02;
}

p,
li {
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-copy p {
  max-width: 45ch;
  margin: 0;
  font-size: 1rem;
}

.hero-deck {
  font-size: 1.06rem;
}

.fact-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fact,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(37, 27, 21, 0.11);
  background: rgba(255, 251, 246, 0.82);
  color: var(--char);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--sun), var(--clay));
  color: #fff9f1;
  box-shadow: 0 18px 34px rgba(122, 64, 44, 0.24);
}

.button-secondary {
  border: 1px solid rgba(37, 27, 21, 0.12);
  background: rgba(255, 251, 246, 0.76);
  color: var(--char);
}

.art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.art-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(37, 27, 21, 0.08), rgba(37, 27, 21, 0.16)),
    linear-gradient(135deg, rgba(247, 230, 205, 0.88), rgba(209, 165, 118, 0.58));
}

.art-tile::before,
.art-tile::after {
  content: "";
  position: absolute;
}

.art-tile::before {
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 233, 198, 0.52), transparent 20%),
    radial-gradient(circle at 76% 24%, rgba(183, 200, 213, 0.42), transparent 22%),
    linear-gradient(145deg, rgba(122, 64, 44, 0.22), transparent 48%);
  mix-blend-mode: screen;
}

.art-tile::after {
  inset: 0;
  opacity: 0.22;
  background:
    repeating-linear-gradient(
      18deg,
      rgba(58, 40, 30, 0.34) 0,
      rgba(58, 40, 30, 0.34) 2px,
      transparent 2px,
      transparent 18px
    );
}

.art-copy {
  position: relative;
  z-index: 1;
  max-width: 18ch;
}

.art-copy p {
  margin: 8px 0 0;
  color: rgba(255, 248, 239, 0.82);
}

.art-copy h3 {
  color: #fffaf2;
}

.art-tile-large {
  grid-column: span 2;
  min-height: 360px;
}

.art-shop {
  background:
    linear-gradient(180deg, rgba(11, 12, 12, 0.18), rgba(11, 12, 12, 0.4)),
    linear-gradient(155deg, #bf6c42 0%, #8e4d33 36%, #443127 72%, #b7c8d5 100%);
}

.art-shop .art-copy {
  max-width: 21ch;
  padding-top: 80px;
}

.art-parts {
  background:
    linear-gradient(180deg, rgba(11, 12, 12, 0.1), rgba(11, 12, 12, 0.34)),
    linear-gradient(135deg, #ceb48b 0%, #bf7c45 36%, #5c3527 100%);
}

.art-crew {
  background:
    linear-gradient(180deg, rgba(11, 12, 12, 0.08), rgba(11, 12, 12, 0.3)),
    linear-gradient(135deg, #d7d7ca 0%, #90a3b1 24%, #8b5939 74%, #4a2f27 100%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head p {
  margin: 8px 0 0;
}

.section-link {
  font-weight: 700;
  color: var(--clay);
}

.service-grid,
.part-grid,
.quality-grid,
.feature-grid,
.timeline-grid,
.product-grid {
  display: grid;
  gap: 14px;
}

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

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

.quality-grid,
.feature-grid,
.timeline-grid,
.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.service-card,
.part-card,
.quality-card,
.timeline-card,
.product-card {
  padding: 22px;
  background: rgba(255, 251, 245, 0.86);
}

.service-card p,
.part-card p,
.quality-card p,
.timeline-card p,
.product-card p,
.card p {
  margin: 10px 0 0;
}

.statement-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 20px;
  padding: 26px 28px;
}

.statement-band h2 {
  max-width: 10ch;
}

.statement-band p {
  max-width: 42ch;
  margin: 10px 0 0;
}

.quality-callout {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(37, 27, 21, 0.14);
  background: linear-gradient(180deg, rgba(250, 244, 236, 0.96), rgba(235, 223, 207, 0.92));
  color: var(--char);
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(58, 40, 30, 0.1);
}

.quality-callout::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(37, 27, 21, 0.08);
  pointer-events: none;
}

.quality-callout h3,
.quality-callout p {
  position: relative;
  z-index: 1;
  color: var(--char);
}

.quality-callout p {
  color: rgba(37, 27, 21, 0.74);
}

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

.feature-link {
  display: block;
  padding: 24px;
  background: rgba(255, 251, 245, 0.86);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-link:hover,
.feature-link:focus-visible {
  transform: translateY(-2px);
}

.feature-link p {
  margin: 10px 0 0;
}

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

.line-list {
  display: grid;
  gap: 12px;
}

.line-list li {
  padding-left: 18px;
  position: relative;
}

.line-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--sun);
}

.quote-band {
  padding: 24px 0 0;
  border-top: 1px solid rgba(37, 27, 21, 0.12);
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.18;
  color: var(--char);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(37, 27, 21, 0.1);
  color: rgba(37, 27, 21, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: rgba(37, 27, 21, 0.66);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--char);
}

.page-interior-layout {
  background:
    radial-gradient(circle at 18% 14%, rgba(214, 139, 70, 0.18), transparent 18%),
    radial-gradient(circle at 84% 10%, rgba(183, 200, 213, 0.18), transparent 20%),
    linear-gradient(180deg, #f5ede3 0%, #eedfce 52%, #e7d6c3 100%);
  color: var(--char);
}

.page-interior-layout::before {
  opacity: 0.1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(90deg, rgba(37, 27, 21, 0.038) 0 1px, transparent 1px 184px),
    repeating-linear-gradient(0deg, rgba(37, 27, 21, 0.024) 0 1px, transparent 1px 132px);
}

.page-interior-layout::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 18% 76%, rgba(214, 139, 70, 0.1), transparent 22%),
    radial-gradient(circle at 84% 22%, rgba(183, 200, 213, 0.12), transparent 18%);
}

.site-shell-interior {
  width: min(calc(100% - 44px), 1480px);
  padding-top: 22px;
}

.page-home-layout {
  background:
    radial-gradient(circle at 18% 14%, rgba(214, 139, 70, 0.22), transparent 18%),
    radial-gradient(circle at 84% 10%, rgba(183, 200, 213, 0.24), transparent 20%),
    linear-gradient(180deg, #f5ede3 0%, #eedfce 52%, #e7d6c3 100%);
  color: var(--char);
  overflow-x: hidden;
}

.page-home-layout::before {
  opacity: 0.12;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(90deg, rgba(37, 27, 21, 0.045) 0 1px, transparent 1px 184px),
    repeating-linear-gradient(0deg, rgba(37, 27, 21, 0.03) 0 1px, transparent 1px 132px);
  mix-blend-mode: normal;
}

.page-home-layout::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 18% 76%, rgba(214, 139, 70, 0.12), transparent 22%),
    radial-gradient(circle at 84% 22%, rgba(183, 200, 213, 0.14), transparent 18%);
}

.site-shell-home {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  width: min(calc(100% - 44px), 1480px);
  padding: 22px 0 26px;
}

.home-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.2), transparent 16%),
    linear-gradient(180deg, #f2e7d8 0%, #e7d8c5 100%);
}

.home-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(0.58) contrast(0.96) brightness(0.7) sepia(0.3);
}

.home-video-tint,
.home-video-vignette {
  position: absolute;
  inset: 0;
}

.home-video-tint {
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.5), rgba(233, 220, 202, 0.68)),
    radial-gradient(circle at 50% 40%, rgba(201, 131, 87, 0.18), transparent 28%);
}

.home-video-vignette {
  background:
    radial-gradient(circle at center, transparent 28%, rgba(244, 235, 223, 0.34) 82%),
    linear-gradient(90deg, rgba(244, 235, 223, 0.54), transparent 16%, transparent 84%, rgba(244, 235, 223, 0.54)),
    linear-gradient(180deg, rgba(244, 235, 223, 0.42), transparent 20%, transparent 80%, rgba(231, 214, 195, 0.52));
}

.home-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(37, 27, 21, 0.12);
}

.home-wordmark {
  color: rgba(22, 18, 15, 0.92);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.home-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px 8px;
  color: rgba(37, 27, 21, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.home-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(214, 139, 70, 0.86);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.home-nav a:hover,
.home-nav a:focus-visible {
  color: var(--char);
}

.home-nav a:hover::after,
.home-nav a:focus-visible::after {
  transform: scaleX(1);
}

.home-main {
  display: grid;
  align-items: center;
}

.home-stage {
  position: relative;
  display: grid;
  align-items: center;
  gap: 28px;
  min-height: calc(100vh - 230px);
}

.home-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(37, 27, 21, 0.14) 20%, rgba(37, 27, 21, 0.05) 80%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.home-spec-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-spec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(37, 27, 21, 0.12);
  background: rgba(255, 248, 239, 0.74);
  backdrop-filter: blur(8px);
  color: rgba(37, 27, 21, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero-frame {
  position: relative;
  z-index: 1;
  padding: 42px 46px;
  border: 1px solid rgba(37, 27, 21, 0.14);
  background: rgba(255, 246, 235, 0.56);
  backdrop-filter: blur(8px);
}

.home-hero-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(37, 27, 21, 0.08);
  pointer-events: none;
}

.home-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(214, 139, 70, 0.72), rgba(214, 139, 70, 0.72)) 22px 22px / 56px 1px no-repeat,
    linear-gradient(rgba(214, 139, 70, 0.72), rgba(214, 139, 70, 0.72)) 22px 22px / 1px 56px no-repeat,
    linear-gradient(90deg, rgba(214, 139, 70, 0.72), rgba(214, 139, 70, 0.72)) calc(100% - 78px) 22px / 56px 1px no-repeat,
    linear-gradient(rgba(214, 139, 70, 0.72), rgba(214, 139, 70, 0.72)) calc(100% - 22px) 22px / 1px 56px no-repeat,
    linear-gradient(90deg, rgba(214, 139, 70, 0.72), rgba(214, 139, 70, 0.72)) 22px calc(100% - 22px) / 56px 1px no-repeat,
    linear-gradient(rgba(214, 139, 70, 0.72), rgba(214, 139, 70, 0.72)) 22px calc(100% - 78px) / 1px 56px no-repeat,
    linear-gradient(90deg, rgba(214, 139, 70, 0.72), rgba(214, 139, 70, 0.72)) calc(100% - 78px) calc(100% - 22px) / 56px 1px no-repeat,
    linear-gradient(rgba(214, 139, 70, 0.72), rgba(214, 139, 70, 0.72)) calc(100% - 22px) calc(100% - 78px) / 1px 56px no-repeat;
  opacity: 0.74;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 250px);
  gap: 32px;
  align-items: center;
}

.home-rail {
  display: grid;
  gap: 14px;
  align-content: center;
}

.home-rail-label {
  margin: 0;
  color: rgba(122, 64, 44, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-rail-copy {
  margin: 0;
  color: rgba(37, 27, 21, 0.82);
  font-size: 0.96rem;
  line-height: 1.68;
}

.home-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.home-brand-block {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 20px;
}

.home-brand-mark {
  width: min(100%, 660px);
  margin: 0 auto;
  padding: 18px;
  background: linear-gradient(180deg, rgba(252, 250, 246, 0.98), rgba(242, 236, 228, 0.98));
  border: 1px solid rgba(37, 27, 21, 0.08);
  box-shadow: 0 24px 52px rgba(58, 40, 30, 0.16);
}

.home-brand-mark img {
  width: 100%;
  height: auto;
}

.home-brand-lockline {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.home-brand-slogan {
  margin: 0;
  color: var(--char);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.9rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.home-brand-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
  color: rgba(122, 64, 44, 0.84);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-brand-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-brand-meta span + span::before {
  content: "/";
  color: rgba(37, 27, 21, 0.3);
  margin-right: 8px;
}

.home-brand-copy {
  max-width: 44ch;
  margin: 0 auto;
  color: rgba(37, 27, 21, 0.8);
  font-size: 1rem;
  line-height: 1.68;
}

.home-rail-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(37, 27, 21, 0.08);
  color: rgba(37, 27, 21, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-rail-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-link-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-link-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(37, 27, 21, 0.12);
  background: rgba(255, 248, 239, 0.66);
  backdrop-filter: blur(8px);
  display: grid;
  align-content: space-between;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-link-card:hover,
.home-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 139, 70, 0.58);
  background: rgba(255, 251, 245, 0.84);
}

.home-link-index {
  color: rgba(122, 64, 44, 0.6);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-link-card h3 {
  margin: 0;
  color: var(--char);
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1;
}

.home-link-card p {
  margin: 0;
  color: rgba(37, 27, 21, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(37, 27, 21, 0.1);
  color: rgba(37, 27, 21, 0.48);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-footer span {
  color: rgba(37, 27, 21, 0.62);
}

.home-footer a {
  color: rgba(37, 27, 21, 0.66);
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: var(--char);
}

.page-temp-layout {
  background:
    radial-gradient(circle at 14% 10%, rgba(214, 139, 70, 0.05), transparent 18%),
    radial-gradient(circle at 88% 8%, rgba(183, 200, 213, 0.07), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  color: var(--char);
  display: grid;
  align-items: center;
}

.temp-entry {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.temp-entry-mark {
  width: min(260px, 46vw);
  height: min(260px, 46vw);
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.12));
}

html.temp-entering .temp-entry {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.temp-entering .temp-entry-mark {
  animation: mcg-logo-fade 2000ms ease forwards;
}

.page-temp-layout::before {
  opacity: 0.06;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(90deg, rgba(37, 27, 21, 0.025) 0 1px, transparent 1px 184px),
    repeating-linear-gradient(0deg, rgba(37, 27, 21, 0.018) 0 1px, transparent 1px 132px);
}

.page-temp-layout::after {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.42), transparent 18%),
    radial-gradient(circle at 16% 78%, rgba(214, 139, 70, 0.04), transparent 22%);
}

.temp-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 28px), 1320px);
  margin: 0 auto;
  padding: 50px 0;
}

.temp-stage {
  position: relative;
  min-height: calc(100vh - 88px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.temp-logo,
.temp-copy,
.temp-main-grid,
.temp-centerpiece,
.temp-service-list,
.temp-contact-strip,
.temp-footer,
.temp-kicker {
  position: relative;
  z-index: 1;
}

.temp-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(37, 27, 21, 0.1) 20%, rgba(37, 27, 21, 0.04) 80%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.temp-main-grid {
  display: grid;
  grid-template-columns: minmax(108px, 170px) minmax(0, 1fr) minmax(108px, 170px);
  align-items: center;
  gap: 20px;
  width: 100%;
}

.temp-centerpiece {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.temp-logo {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0;
}

.temp-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(58, 40, 30, 0.08));
}

.temp-kicker {
  margin: 0;
  color: var(--copper);
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 1.2vw, 1.18rem);
  letter-spacing: 0.06em;
  line-height: 1.16;
}

.temp-copy {
  max-width: 560px;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.temp-rule {
  width: min(100%, 220px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 27, 21, 0.22), transparent);
}

.temp-soon {
  margin: 0;
  color: var(--char);
  font-family: "Madriz Regular", "Rockwell", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.temp-service-list {
  display: grid;
  gap: 10px;
  align-content: center;
}

.temp-service-list-left {
  justify-items: end;
  text-align: right;
}

.temp-service-list-right {
  justify-items: start;
  text-align: left;
}

.temp-service-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: rgba(37, 27, 21, 0.34);
  font-family: "Madriz Regular", "Rockwell", Georgia, serif;
  font-size: clamp(1rem, 1.55vw, 1.42rem);
  letter-spacing: 0.06em;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.temp-service-link:hover,
.temp-service-link:focus-visible {
  color: var(--char);
  transform: translateX(2px);
  text-shadow: 0 0 18px rgba(37, 27, 21, 0.1);
}

.temp-service-list-left .temp-service-link:hover,
.temp-service-list-left .temp-service-link:focus-visible {
  transform: translateX(-2px);
}

.temp-contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: min(100%, 720px);
  margin-top: 6px;
  opacity: 0.88;
}

.temp-contact-link {
  flex: 1 1 280px;
  display: grid;
  gap: 5px;
  padding: 13px 16px 12px;
  border: 1px solid rgba(37, 27, 21, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(58, 40, 30, 0.03);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.temp-contact-link:hover,
.temp-contact-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(37, 27, 21, 0.12);
}

.temp-contact-label {
  color: var(--copper);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.temp-contact-link strong {
  color: var(--char);
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1.18vw, 0.96rem);
  line-height: 1.16;
}

.temp-footer {
  max-width: 760px;
  opacity: 0.8;
}

.temp-footer p {
  margin: 0;
  color: rgba(37, 27, 21, 0.42);
  font-family: var(--font-heading);
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  letter-spacing: 0.12em;
  line-height: 1.28;
  text-transform: uppercase;
}

.temp-email-link {
  color: rgba(37, 27, 21, 0.66);
  font-family: "Madriz Regular", "Rockwell", Georgia, serif;
  font-size: clamp(0.92rem, 1.15vw, 1.04rem);
  letter-spacing: 0.08em;
}

.temp-email-link:hover,
.temp-email-link:focus-visible {
  color: var(--copper);
}

.fade-up {
  animation: fade-up 620ms ease both;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 150ms;
}

.delay-3 {
  animation-delay: 220ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mcg-logo-fade {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }

  24% {
    opacity: 1;
    transform: scale(1);
  }

  62% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition,
  .page-transition-mark {
    transition: none;
    animation: none !important;
  }
}

@media (min-width: 1101px) {
  .temp-logo {
    width: min(80%, 1056px);
  }
}

@media (max-width: 1100px) {
  .hero,
  .statement-band {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .part-grid,
  .quality-grid,
  .timeline-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .home-nav {
    justify-content: center;
  }

  .home-stage {
    min-height: auto;
  }

  .home-stage::before {
    display: none;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-rail {
    justify-items: center;
    text-align: center;
  }

  .home-rail-copy {
    max-width: 40ch;
  }

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

  .home-brand-mark {
    width: min(100%, 760px);
  }

  .temp-main-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .temp-centerpiece {
    order: 1;
  }

  .temp-service-list-left {
    order: 2;
  }

  .temp-service-list-right {
    order: 3;
  }

  .temp-service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    text-align: center;
  }

  .temp-service-list-left,
  .temp-service-list-right {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
  }

  .logo-lockup {
    padding: 14px;
  }

  .logo-lockup::before {
    inset: 8px;
  }

  .brand-banner {
    width: min(100%, 94vw);
    margin-top: 0;
    padding: 16px 18px 14px;
  }

  .brand-banner::before,
  .brand-banner::after {
    display: none;
  }

  .hero,
  .section,
  .statement-band {
    padding: 22px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .service-grid,
  .part-grid,
  .quality-grid,
  .timeline-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .art-tile-large {
    grid-column: auto;
    min-height: 290px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .site-shell-home {
    width: min(calc(100% - 22px), 1360px);
    padding-top: 14px;
    gap: 20px;
  }

  .home-header {
    padding-bottom: 14px;
  }

  .home-wordmark {
    text-align: center;
    line-height: 1.5;
  }

  .home-nav {
    justify-content: center;
    gap: 8px 12px;
  }

  .site-nav {
    gap: 8px 12px;
  }

  .home-spec-row {
    gap: 8px;
  }

  .home-spec {
    width: 100%;
    padding: 10px 12px;
  }

  .home-stage {
    gap: 18px;
  }

  .home-hero-frame {
    padding: 22px 18px;
  }

  .home-hero-frame::before {
    inset: 10px;
  }

  .home-brand-mark {
    padding: 10px;
  }

  .home-brand-slogan {
    line-height: 1;
  }

  .home-brand-copy {
    font-size: 0.94rem;
  }

  .home-brand-meta {
    gap: 8px 12px;
  }

  .home-brand-meta span + span::before {
    margin-right: 4px;
  }

  .home-link-grid {
    grid-template-columns: 1fr;
  }

  .home-footer {
    flex-direction: column;
    text-align: center;
  }

  .temp-shell {
    width: min(calc(100% - 20px), 1120px);
    padding: 18px 0;
  }

  .temp-stage {
    min-height: calc(100vh - 36px);
    gap: 18px;
  }

  .temp-stage::before {
    display: none;
  }

  .temp-logo {
    width: min(100%, 100%);
  }

  .temp-copy {
    max-width: 100%;
  }

  .temp-kicker {
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .temp-soon {
    letter-spacing: 0.12em;
  }

  .temp-deck {
    font-size: 0.96rem;
  }

  .temp-main-grid {
    gap: 18px;
  }

  .temp-service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .temp-service-link {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(37, 27, 21, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(58, 40, 30, 0.05);
    color: rgba(37, 27, 21, 0.72);
    font-size: 0.98rem;
  }

  .temp-service-link:hover,
  .temp-service-link:focus-visible,
  .temp-service-list-left .temp-service-link:hover,
  .temp-service-list-left .temp-service-link:focus-visible {
    transform: translateY(-1px);
  }

  .temp-contact-strip {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 6px;
  }

  .temp-contact-link {
    padding: 12px 13px 11px;
  }
}

.study-body {
  background:
    radial-gradient(circle at 14% 10%, rgba(214, 139, 70, 0.16), transparent 16%),
    radial-gradient(circle at 84% 8%, rgba(183, 200, 213, 0.18), transparent 18%),
    linear-gradient(180deg, #efe4d4 0%, #eadbc8 44%, #e6d7c3 100%);
}

.study-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1320px);
  margin: 0 auto;
  padding: 22px 0 48px;
}

.study-intro {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 30px;
  background: rgba(255, 249, 242, 0.84);
  box-shadow: var(--shadow);
}

.study-intro p {
  max-width: 68ch;
  margin: 10px 0 0;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.study-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.84);
  box-shadow: var(--shadow);
}

.study-card p {
  margin: 10px 0 0;
}

.study-kicker {
  margin: 0 0 8px;
  color: var(--copper);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.study-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.demo-frame {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(243, 232, 219, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.demo-frame-soft {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 30px;
}

.demo-frame-soft .demo-banner {
  border: 1px solid rgba(37, 27, 21, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.88);
}

.demo-frame-soft .demo-nav a,
.demo-frame-soft .demo-chip,
.demo-frame-soft .demo-panel {
  border-radius: 999px;
}

.demo-frame-plate {
  position: relative;
  border: 1px solid rgba(37, 27, 21, 0.18);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    var(--shadow);
}

.demo-frame-plate::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(122, 64, 44, 0.28);
  border-radius: 12px;
  pointer-events: none;
}

.demo-frame-plate .demo-banner {
  border: 1px solid rgba(37, 27, 21, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(238, 227, 213, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.demo-frame-plate .demo-nav a,
.demo-frame-plate .demo-chip {
  border-radius: 12px;
}

.demo-frame-plate .demo-panel {
  border-radius: 16px;
}

.demo-header {
  display: grid;
  gap: 14px;
}

.demo-lockup {
  padding: 16px;
  border: 1px solid rgba(37, 27, 21, 0.12);
  background: rgba(255, 252, 248, 0.9);
}

.demo-banner {
  padding: 14px 20px 12px;
  text-align: center;
}

.demo-banner strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.04;
  color: var(--char);
}

.demo-banner span {
  display: block;
  margin-top: 8px;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.demo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-nav a {
  padding: 10px 14px;
  border: 1px solid rgba(37, 27, 21, 0.12);
  background: rgba(255, 249, 242, 0.84);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.demo-nav a.is-active {
  background: linear-gradient(135deg, rgba(122, 64, 44, 0.95), rgba(46, 33, 25, 0.95));
  border-color: transparent;
  color: #fff9f1;
}

.demo-chip-row,
.demo-panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-chip {
  padding: 10px 12px;
  border: 1px solid rgba(37, 27, 21, 0.12);
  background: rgba(255, 251, 247, 0.88);
  color: var(--char);
  font-size: 0.82rem;
}

.demo-panel-row {
  margin-top: 4px;
}

.demo-panel {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 27, 21, 0.12);
  background: rgba(255, 252, 248, 0.9);
}

.demo-panel strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--char);
}

.demo-panel span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.study-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--copper);
  border-radius: 16px;
  background: rgba(255, 251, 246, 0.72);
}

.study-section {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 30px;
  background: rgba(255, 249, 242, 0.82);
  box-shadow: var(--shadow);
}

.study-section p {
  margin: 10px 0 0;
}

.study-grid-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.study-mini {
  max-width: 72ch;
}

.study-recommend {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid rgba(37, 27, 21, 0.14);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--clay);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.demo-frame > * {
  position: relative;
  z-index: 1;
}

.demo-frame-wash,
.demo-frame-matte,
.demo-frame-register {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 27, 21, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(243, 232, 219, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    var(--shadow);
}

.demo-frame-wash::before,
.demo-frame-wash::after,
.demo-frame-matte::before,
.demo-frame-matte::after,
.demo-frame-register::before,
.demo-frame-register::after {
  content: "";
  position: absolute;
}

.demo-frame-wash::before {
  inset: 0 0 auto 0;
  height: 30px;
  background:
    linear-gradient(90deg, rgba(183, 200, 213, 0.92), rgba(245, 236, 223, 0.55) 18%, rgba(214, 139, 70, 0.8) 58%, rgba(122, 64, 44, 0.92)),
    repeating-linear-gradient(102deg, rgba(255, 255, 255, 0.16) 0 9px, transparent 9px 18px);
  opacity: 0.92;
}

.demo-frame-wash::after {
  inset: auto 0 0 0;
  height: 18px;
  background:
    linear-gradient(90deg, rgba(122, 64, 44, 0.96), rgba(214, 139, 70, 0.84), rgba(237, 223, 203, 0.4), rgba(122, 64, 44, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 10px, transparent 10px 24px);
  opacity: 0.86;
}

.demo-frame-wash .demo-banner {
  border: 1px solid rgba(37, 27, 21, 0.14);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.94);
}

.demo-frame-wash .demo-nav a,
.demo-frame-wash .demo-chip {
  border-radius: 12px;
}

.demo-frame-wash .demo-panel {
  border-radius: 16px;
}

.demo-frame-matte {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.92), rgba(243, 232, 219, 0.84)),
    linear-gradient(135deg, rgba(183, 200, 213, 0.12), rgba(214, 139, 70, 0.14), rgba(122, 64, 44, 0.08));
}

.demo-frame-matte::before {
  inset: 12px;
  border: 1px solid rgba(122, 64, 44, 0.24);
  border-radius: 12px;
  pointer-events: none;
}

.demo-frame-matte::after {
  inset: 0;
  background:
    radial-gradient(circle at 20% 14%, rgba(183, 200, 213, 0.18), transparent 18%),
    radial-gradient(circle at 78% 14%, rgba(214, 139, 70, 0.18), transparent 20%),
    repeating-linear-gradient(20deg, rgba(122, 64, 44, 0.06) 0 2px, transparent 2px 14px);
  opacity: 0.55;
}

.demo-frame-matte .demo-banner {
  border: 1px solid rgba(37, 27, 21, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(244, 234, 222, 0.92));
}

.demo-frame-matte .demo-nav a,
.demo-frame-matte .demo-chip {
  border-radius: 10px;
}

.demo-frame-matte .demo-panel {
  border-radius: 14px;
}

.demo-frame-register::before {
  inset: 10px;
  border: 1px solid rgba(122, 64, 44, 0.26);
  border-radius: 12px;
  pointer-events: none;
}

.demo-frame-register::after {
  inset: 0;
  background:
    linear-gradient(rgba(183, 200, 213, 0.7), rgba(183, 200, 213, 0.7)) 18px 18px / 42px 2px no-repeat,
    linear-gradient(rgba(183, 200, 213, 0.7), rgba(183, 200, 213, 0.7)) 18px 18px / 2px 42px no-repeat,
    linear-gradient(rgba(214, 139, 70, 0.78), rgba(214, 139, 70, 0.78)) calc(100% - 60px) 18px / 42px 2px no-repeat,
    linear-gradient(rgba(214, 139, 70, 0.78), rgba(214, 139, 70, 0.78)) calc(100% - 20px) 18px / 2px 42px no-repeat,
    linear-gradient(rgba(214, 139, 70, 0.78), rgba(214, 139, 70, 0.78)) 18px calc(100% - 20px) / 42px 2px no-repeat,
    linear-gradient(rgba(214, 139, 70, 0.78), rgba(214, 139, 70, 0.78)) 18px calc(100% - 60px) / 2px 42px no-repeat,
    linear-gradient(rgba(183, 200, 213, 0.7), rgba(183, 200, 213, 0.7)) calc(100% - 60px) calc(100% - 20px) / 42px 2px no-repeat,
    linear-gradient(rgba(183, 200, 213, 0.7), rgba(183, 200, 213, 0.7)) calc(100% - 20px) calc(100% - 60px) / 2px 42px no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.demo-frame-register .demo-banner {
  border: 1px solid rgba(37, 27, 21, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(239, 229, 216, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.demo-frame-register .demo-nav a,
.demo-frame-register .demo-chip {
  border-radius: 10px;
}

.demo-frame-register .demo-panel {
  border-radius: 12px;
}

.demo-frame-monolith,
.demo-frame-offset,
.demo-frame-signal {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(22, 18, 15, 0.94);
  border-radius: 8px;
  background: #f8f3eb;
  box-shadow: 0 20px 44px rgba(22, 18, 15, 0.12);
}

.demo-frame-monolith::before,
.demo-frame-monolith::after,
.demo-frame-offset::before,
.demo-frame-offset::after,
.demo-frame-signal::before,
.demo-frame-signal::after {
  content: "";
  position: absolute;
}

.demo-frame-monolith::before {
  inset: 0 0 auto 0;
  height: 10px;
  background: #11100e;
}

.demo-frame-monolith::after {
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, #11100e 0 64%, rgba(214, 139, 70, 0.95) 64% 100%);
}

.demo-frame-monolith .demo-lockup,
.demo-frame-monolith .demo-banner,
.demo-frame-monolith .demo-nav a,
.demo-frame-monolith .demo-chip,
.demo-frame-monolith .demo-panel {
  border-radius: 4px;
}

.demo-frame-monolith .demo-lockup,
.demo-frame-monolith .demo-banner,
.demo-frame-monolith .demo-nav a,
.demo-frame-monolith .demo-chip,
.demo-frame-monolith .demo-panel {
  border: 2px solid rgba(22, 18, 15, 0.94);
  background: #fcfaf7;
}

.demo-frame-monolith .demo-banner {
  padding-top: 16px;
  padding-bottom: 14px;
}

.demo-frame-offset::before {
  inset: 12px 12px 12px auto;
  width: calc(100% - 24px);
  border: 1px solid rgba(22, 18, 15, 0.24);
  border-left: 0;
  border-radius: 0 4px 4px 0;
  pointer-events: none;
}

.demo-frame-offset::after {
  inset: 0 auto 0 0;
  width: 14px;
  background:
    linear-gradient(180deg, rgba(183, 200, 213, 0.95) 0 22%, #11100e 22% 76%, rgba(214, 139, 70, 0.95) 76% 100%);
}

.demo-frame-offset .demo-lockup,
.demo-frame-offset .demo-banner,
.demo-frame-offset .demo-nav a,
.demo-frame-offset .demo-chip,
.demo-frame-offset .demo-panel {
  border-radius: 2px;
  border: 1px solid rgba(22, 18, 15, 0.7);
  background: #fcfaf7;
}

.demo-frame-offset .demo-header {
  gap: 12px;
}

.demo-frame-offset .demo-banner {
  position: relative;
  margin-left: 28px;
  text-align: left;
}

.demo-frame-offset .demo-banner::before {
  content: "";
  position: absolute;
  left: -28px;
  top: -1px;
  bottom: -1px;
  width: 18px;
  background: #11100e;
}

.demo-frame-offset .demo-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-frame-offset .demo-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-frame-offset .demo-nav a.is-active {
  background: #11100e;
  color: #f8f3eb;
}

.demo-frame-signal::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 78%, rgba(183, 200, 213, 0.18) 78% 100%),
    linear-gradient(180deg, transparent 0 68%, rgba(214, 139, 70, 0.16) 68% 100%);
  pointer-events: none;
}

.demo-frame-signal::after {
  inset: auto 0 0 0;
  height: 8px;
  background:
    linear-gradient(90deg, #11100e 0 40%, rgba(214, 139, 70, 0.95) 40% 72%, rgba(183, 200, 213, 0.9) 72% 100%);
}

.demo-frame-signal .demo-lockup {
  border: 0;
  border-bottom: 3px solid #11100e;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.demo-frame-signal .demo-banner {
  border: 0;
  border-left: 8px solid #11100e;
  border-radius: 0;
  background: #fffdf9;
  text-align: left;
}

.demo-frame-signal .demo-nav a,
.demo-frame-signal .demo-chip,
.demo-frame-signal .demo-panel {
  border-radius: 0;
  border: 1px solid rgba(22, 18, 15, 0.74);
  background: #fffdf9;
}

.demo-frame-signal .demo-nav a.is-active {
  background: rgba(22, 18, 15, 0.94);
  color: #fffdf9;
}

.demo-frame-signal .demo-panel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-frame-vesper,
.demo-frame-nocturne,
.demo-frame-foundry {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #080808 0%, #0d0d0d 56%, #121212 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.26);
}

.demo-frame-vesper::before,
.demo-frame-vesper::after,
.demo-frame-nocturne::before,
.demo-frame-nocturne::after,
.demo-frame-foundry::before,
.demo-frame-foundry::after {
  content: "";
  position: absolute;
}

.demo-frame-vesper::before {
  inset: 18px 18px auto 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.demo-frame-vesper::after {
  inset: auto 18px 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.demo-frame-vesper .demo-header {
  min-height: 360px;
  align-content: space-between;
}

.demo-frame-vesper .demo-lockup {
  width: min(100%, 360px);
  margin: 48px auto 0;
  padding: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
}

.demo-frame-vesper .demo-banner {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.demo-frame-vesper .demo-banner strong {
  color: #f3ede4;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  text-transform: uppercase;
}

.demo-frame-vesper .demo-banner span {
  color: rgba(243, 237, 228, 0.56);
}

.demo-frame-vesper .demo-nav,
.demo-frame-nocturne .demo-nav,
.demo-frame-foundry .demo-nav {
  justify-content: center;
}

.demo-frame-vesper .demo-nav a,
.demo-frame-nocturne .demo-nav a,
.demo-frame-foundry .demo-nav a {
  border: 0;
  background: transparent;
  color: rgba(243, 237, 228, 0.72);
  padding: 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.demo-frame-vesper .demo-nav a.is-active,
.demo-frame-nocturne .demo-nav a.is-active,
.demo-frame-foundry .demo-nav a.is-active {
  color: #fff;
}

.demo-frame-vesper .demo-chip-row,
.demo-frame-vesper .demo-panel-row,
.demo-frame-nocturne .demo-chip-row,
.demo-frame-nocturne .demo-panel-row,
.demo-frame-foundry .demo-chip-row,
.demo-frame-foundry .demo-panel-row {
  margin-top: 12px;
}

.demo-frame-vesper .demo-chip,
.demo-frame-nocturne .demo-chip,
.demo-frame-foundry .demo-chip {
  border: 0;
  background: transparent;
  color: rgba(243, 237, 228, 0.58);
  padding: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-frame-vesper .demo-chip::after,
.demo-frame-nocturne .demo-chip::after,
.demo-frame-foundry .demo-chip::after {
  content: " /";
  color: rgba(243, 237, 228, 0.3);
}

.demo-frame-vesper .demo-chip:last-child::after,
.demo-frame-nocturne .demo-chip:last-child::after,
.demo-frame-foundry .demo-chip:last-child::after {
  content: "";
}

.demo-frame-vesper .demo-panel {
  border: 0;
  min-width: auto;
  padding: 0;
  background: transparent;
}

.demo-frame-vesper .demo-panel strong {
  color: #f3ede4;
  font-size: 0.9rem;
}

.demo-frame-vesper .demo-panel span {
  color: rgba(243, 237, 228, 0.56);
  font-size: 0.76rem;
}

.demo-frame-nocturne::before {
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(183, 200, 213, 0.92), rgba(214, 139, 70, 0.9), rgba(255, 255, 255, 0.18));
}

.demo-frame-nocturne::after {
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.demo-frame-nocturne .demo-header {
  min-height: 320px;
}

.demo-frame-nocturne .demo-lockup {
  width: min(100%, 300px);
  margin: 36px auto 0;
  padding: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
}

.demo-frame-nocturne .demo-banner {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 14px 0 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.demo-frame-nocturne .demo-banner strong {
  color: #f4eee4;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.demo-frame-nocturne .demo-banner span {
  color: rgba(243, 237, 228, 0.62);
}

.demo-frame-nocturne .demo-panel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-frame-nocturne .demo-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0;
}

.demo-frame-nocturne .demo-panel strong {
  color: #f4eee4;
}

.demo-frame-nocturne .demo-panel span {
  color: rgba(243, 237, 228, 0.58);
}

.demo-frame-foundry::before {
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.demo-frame-foundry::after {
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #f4eee4 0 26%, rgba(214, 139, 70, 0.94) 26% 54%, rgba(183, 200, 213, 0.92) 54% 100%);
}

.demo-frame-foundry .demo-header {
  min-height: 336px;
  grid-template-columns: 1fr;
  gap: 18px;
}

.demo-frame-foundry .demo-lockup {
  width: min(100%, 250px);
  margin: 32px auto 0 0;
  padding: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
}

.demo-frame-foundry .demo-banner {
  max-width: 360px;
  margin-left: auto;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  text-align: right;
}

.demo-frame-foundry .demo-banner strong {
  color: #f3ede4;
  font-family: var(--font-display);
  font-size: 1.28rem;
  text-transform: uppercase;
}

.demo-frame-foundry .demo-banner span {
  color: rgba(243, 237, 228, 0.56);
}

.demo-frame-foundry .demo-nav {
  justify-content: space-between;
}

.demo-frame-foundry .demo-panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-frame-foundry .demo-panel {
  min-width: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
  background: transparent;
  border-radius: 0;
}

.demo-frame-foundry .demo-panel strong {
  color: #f4eee4;
}

.demo-frame-foundry .demo-panel span {
  color: rgba(243, 237, 228, 0.58);
}

@media (max-width: 920px) {
  .study-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .study-grid-trio {
    grid-template-columns: 1fr;
  }
}
