/* ===== Design tokens ===== */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.7rem + 6.5vw, 6.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.4rem;
  --radius-lg: 0.6rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'General Sans', 'Segoe UI', sans-serif;
}

/* ===== Color — Wine Country / heirloom-wood palette ===== */
:root,
[data-theme='light'] {
  --color-bg: #faf6ee;
  --color-surface: #fdfbf6;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f1e8d8;
  --color-surface-offset-2: #e9dcc3;
  --color-surface-dynamic: #e0d0ac;
  --color-divider: #e2d5bc;
  --color-border: #d3c1a0;

  --color-text: #2b2118;
  --color-text-muted: #6c5c48;
  --color-text-faint: #a4917390;
  --color-text-faint-solid: #a49173;
  --color-text-inverse: #faf6ee;

  --color-primary: #9c4a26;
  --color-primary-hover: #7c3a1d;
  --color-primary-active: #5e2c16;
  --color-primary-highlight: #ecdac8;

  --color-wine: #6a2230;
  --color-wine-highlight: #e6d3d3;

  --color-error: #a12c2c;
  --color-success: #4c6a35;

  --shadow-sm: 0 1px 2px oklch(0.2 0.03 60 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.2 0.03 60 / 0.1);
  --shadow-lg: 0 20px 48px oklch(0.2 0.03 60 / 0.16);

  /* Fixed tokens for the always-dark panels (contact, footer) — intentionally
     NOT theme-dependent, since these sections stay dark in both light and
     dark site themes. Using the theme-flipping --color-text-inverse here
     previously caused unreadable dark-on-dark text in dark mode. */
  --color-panel-bg: #241a11;
  --color-panel-text: #faf6ee;
  --color-panel-text-muted: color-mix(in oklab, #faf6ee 68%, transparent);
  --color-panel-border: color-mix(in oklab, #faf6ee 20%, transparent);
}

[data-theme='dark'] {
  --color-bg: #1c1610;
  --color-surface: #221b14;
  --color-surface-2: #261f17;
  --color-surface-offset: #2a2118;
  --color-surface-offset-2: #31271b;
  --color-surface-dynamic: #3c2f21;
  --color-divider: #362b1f;
  --color-border: #4a3b2a;

  --color-text: #efe6d6;
  --color-text-muted: #b6a488;
  --color-text-faint: #7d6c5580;
  --color-text-faint-solid: #7d6c55;
  --color-text-inverse: #1c1610;

  --color-primary: #dc9264;
  --color-primary-hover: #e6a97e;
  --color-primary-active: #eebd99;
  --color-primary-highlight: #4a3324;

  --color-wine: #c98a92;
  --color-wine-highlight: #3c2528;

  --color-error: #d17a7a;
  --color-success: #9ab97c;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}

/* ===== Layout base ===== */
.wrap {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}
.wrap--narrow {
  max-width: var(--content-default);
}
section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
section + section {
  border-top: 1px solid var(--color-divider);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--color-primary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text);
}
h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}
h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
p {
  color: var(--color-text-muted);
}
.lede {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text);
  max-width: 46ch;
}

a {
  color: inherit;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand svg {
  width: auto;
  height: 27px;
  color: var(--color-text);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
:is(.brand--studio-link, .brand--collection-link) {
  position: relative;
}
:is(.brand--studio-link, .brand--collection-link):hover svg,
:is(.brand--studio-link, .brand--collection-link):focus-visible svg {
  transform: scale(1.08) rotate(-3deg);
  color: var(--color-primary);
}
:is(.brand--studio-link, .brand--collection-link):hover .brand-word__name,
:is(.brand--studio-link, .brand--collection-link):focus-visible .brand-word__name {
  color: var(--color-primary);
}
:is(.brand--studio-link, .brand--collection-link):focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-full);
}
.brand-word__name {
  transition: color 0.3s ease;
}
.brand-hint {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 10px;
  padding: 5px 12px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  background: var(--color-text);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 20;
}
:is(.brand--studio-link, .brand--collection-link):hover .brand-hint,
:is(.brand--studio-link, .brand--collection-link):focus-visible .brand-hint {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 640px) {
  .brand-hint {
    display: none;
  }
}
.brand-word {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
  line-height: 1;
}
.brand-word__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  white-space: nowrap;
}
.brand-word__sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .brand-word__sub {
    display: none;
  }
}
@media (min-width: 900px) {
  .hero-media img {
    object-position: 50% 32%;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  flex-wrap: nowrap;
}
.nav-links a {
  position: relative;
  color: var(--color-text-muted);
  padding-block: var(--space-1);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--color-primary);
  transition: right var(--transition-interactive);
}
.nav-links a:hover::after {
  right: 0;
}

.commission-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.commission-icon svg {
  width: auto;
  height: 15px;
}
.commission-icon:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    120% 100% at 12% 0%,
    color-mix(in oklab, var(--color-primary) 32%, var(--color-panel-bg)) 0%,
    var(--color-panel-bg) 62%
  );
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: contrast(1.04) brightness(1.01);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    color-mix(in oklab, #000 78%, transparent) 0%,
    color-mix(in oklab, #000 45%, transparent) 42%,
    color-mix(in oklab, #000 10%, transparent) 75%,
    transparent 100%
  );
}
.hero-content {
  /* Fixed light tokens (not theme-dependent): the hero always sits over a
     dark-overlaid photo in both site themes, so text must stay light in
     both — using the theme-flipping --color-text-inverse here previously
     turned this text near-black and unreadable in dark mode. */
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding: 0 clamp(var(--space-5), 6vw, var(--space-16)) clamp(var(--space-12), 8vw, var(--space-20));
  color: var(--color-panel-text);
}
.hero-content h1 {
  margin: var(--space-4) 0 var(--space-5);
  color: var(--color-panel-text);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-hero));
  line-height: 1.05;
}
.hero-content .hero-lede {
  color: var(--color-panel-text-muted);
  font-size: var(--text-lg);
  max-width: 34rem;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero .eyebrow {
  color: #f2b083;
  font-weight: 700;
  text-shadow: 0 1px 4px color-mix(in oklab, #000 65%, transparent);
}
.hero .eyebrow::before {
  background: #f2b083;
}
.hero .btn-ghost {
  border-color: var(--color-panel-border);
  color: var(--color-panel-text);
}
.hero .btn-ghost:hover {
  border-color: var(--color-panel-text);
  color: var(--color-panel-text);
  background: color-mix(in oklab, var(--color-panel-text) 12%, transparent);
}

/* ===== Trust strip ===== */
.trust {
  padding-block: var(--space-10);
}
.trust p {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 62ch;
  margin-inline: auto;
}
.trust strong {
  font-style: normal;
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== Philosophy (asymmetric two column) ===== */
.philosophy .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.philosophy-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.philosophy-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.philosophy-copy p + p {
  margin-top: var(--space-4);
}
.philosophy-copy {
  order: 2;
}
.philosophy-media {
  order: 1;
}
.philosophy--text-only .wrap {
  grid-template-columns: 1fr;
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}
.philosophy--text-only .eyebrow {
  justify-content: center;
}
.philosophy--text-only .lede {
  margin-inline: auto;
}

/* ===== Featured project (Calistoga Depot) ===== */
.feature {
  background: var(--color-surface-offset);
}
.feature-head {
  max-width: 62ch;
  margin-bottom: var(--space-10);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  gap: var(--space-3);
}
.feature-grid figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--color-surface-dynamic);
}
.feature-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-grid li:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.feature-grid li:nth-child(2) {
  grid-column: span 2;
}
.feature-grid li:nth-child(3) {
  grid-column: span 1;
}
.feature-grid li:nth-child(4) {
  grid-column: span 1;
}
.feature-grid li {
  list-style: none;
}
.feature-caption {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.feature-caption strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
}

/* ===== Portfolio (categorized gallery) ===== */
.portfolio {
  background: var(--color-surface-offset);
}
.portfolio-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-10);
}
.portfolio-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3.4;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface-offset);
  padding: 0;
}
.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-editorial);
}
.portfolio-tile:hover img,
.portfolio-tile:focus-visible img {
  transform: scale(1.05);
}
.portfolio-tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-5) var(--space-4);
  background: linear-gradient(to top, rgba(20, 17, 13, 0.96) 0%, rgba(20, 17, 13, 0.75) 55%, rgba(20, 17, 13, 0) 100%);
  text-align: left;
}
.portfolio-tile-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: #f5f1ea;
  letter-spacing: 0.01em;
}
.portfolio-tile-count {
  font-size: var(--text-xs);
  color: rgba(245, 241, 234, 0.75);
}
.portfolio-tile:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}
.portfolio-detail {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
}
.portfolio-detail[hidden] {
  display: none;
}
.portfolio-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.portfolio-detail-head h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
}
.portfolio-detail-close {
  appearance: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
}
.portfolio-detail-close:hover,
.portfolio-detail-close:focus-visible {
  border-color: var(--color-text);
  color: var(--color-text);
}
.gallery-item[hidden] {
  display: none;
}

/* ===== Gallery grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.gallery-item {
  list-style: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  position: relative;
  background: var(--color-surface-offset);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-editorial);
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: #fff;
  background: linear-gradient(0deg, color-mix(in oklab, #000 60%, transparent), transparent);
  max-width: none;
}
.notable-head {
  margin-top: var(--space-14);
  margin-bottom: var(--space-6);
}
.notable-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  list-style: none;
  padding: 0;
}
.notable-project {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  box-shadow: var(--shadow-md);
}
.notable-project img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.notable-project-media {
  position: relative;
}
.notable-project-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.notable-project-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.notable-project--featured {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
.notable-project-copy {
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.notable-project-copy h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.notable-project-copy p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}
@media (max-width: 860px) {
  .notable-projects {
    grid-template-columns: 1fr;
  }
}

/* ===== About ===== */
.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-media-portrait {
  object-position: 50% 15%;
}
.about-copy p {
  margin-bottom: 1.25em;
}
.about-copy p:last-of-type {
  margin-bottom: 0;
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-10));
}
.process-step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.process-step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-3);
}

/* ===== Design Studio teaser ===== */
.dsg-teaser .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}
.dsg-teaser-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.dsg-teaser-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Cinematic depth (flagship photography showcase) =====
   Reusable cursor-tilt treatment: real photography given a light parallax
   tilt, sheen, and vignette so it reads as dimensional without true 3D
   modeling. Applied to the Design Studio teaser for now; the same
   [data-cine-stage] markup can be reused for future flagship showcases. */
.cine-stage {
  perspective: 1400px;
}
.cine-layer {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.cine-stage .cine-layer img {
  transform: scale(1.07);
}
.cine-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 34%);
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
}
.cine-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px rgba(10, 7, 4, 0.3);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .cine-layer {
    transition: none;
  }
}

/* ===== Contact ===== */
/* This panel is always dark, in both light and dark site themes, so it uses
   the fixed --color-panel-* tokens rather than the theme-flipping
   --color-text / --color-text-inverse pair. */
.contact {
  background: var(--color-panel-bg);
  color: var(--color-panel-text);
}
.contact .eyebrow {
  color: var(--color-primary);
}
.contact .eyebrow::before {
  background: var(--color-primary);
}
.contact h2,
.contact .lede {
  color: var(--color-panel-text);
}
.contact p {
  color: var(--color-panel-text-muted);
}
.contact .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
}
.contact-details a.email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-block: var(--space-4);
  word-break: break-word;
}
.contact-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-panel-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.contact-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-grid .field-full {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-panel-text-muted);
  margin-bottom: var(--space-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: color-mix(in oklab, var(--color-panel-text) 8%, transparent);
  border: 1px solid var(--color-panel-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-panel-text);
  font-size: var(--text-sm);
}
.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in oklab, var(--color-panel-text) 45%, transparent);
}
.field select option {
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-panel-text) 12%, transparent);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.form-status {
  font-size: var(--text-xs);
  color: var(--color-panel-text-muted);
}

/* ===== Footer ===== */
/* Same reasoning as .contact above — always a dark panel, fixed tokens. */
.footer {
  background: var(--color-panel-bg);
  color: var(--color-panel-text);
  border-top: 1px solid var(--color-panel-border);
}
.footer .wrap {
  padding-block: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-panel-text-muted);
}
.footer .brand {
  color: var(--color-panel-text);
}
.footer-links {
  display: flex;
  gap: var(--space-6);
}

/* ===== Review banner (pilot only) ===== */
.pilot-banner {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  letter-spacing: 0.03em;
}
.pilot-banner strong {
  font-weight: 700;
}

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease-editorial),
    transform 0.7s var(--ease-editorial);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Mobile ===== */
@media (max-width: 1280px) {
  .nav-links {
    position: fixed;
    inset: 64px var(--space-5) auto var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    gap: var(--space-5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition-interactive),
      opacity var(--transition-interactive);
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions {
    gap: var(--space-2);
  }
  .header-actions .btn-primary {
    display: none;
  }
  .brand-name span {
    display: none;
  }

  .philosophy .wrap,
  .about .wrap,
  .dsg-teaser .wrap,
  .contact .wrap {
    grid-template-columns: 1fr;
  }
  .philosophy-copy,
  .philosophy-media,
  .about-media,
  .about-copy {
    order: initial;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(140px, 1fr));
  }
  .feature-grid li:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .brand-word {
    padding-left: var(--space-2);
    gap: 0;
    border-left: none;
  }
  .brand-word__name {
    font-size: 16px;
  }
  .commission-icon {
    display: none;
  }
}

/* ===== Entry Gate (landing experience) ===== */
html.gate-active,
html.gate-active body {
  overflow: hidden;
  height: 100%;
}
.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14100b;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), visibility 900ms;
}
.entry-gate-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.entry-gate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.4;
  transform: scale(1.04);
}
.entry-gate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, rgba(20, 16, 11, 0.35) 0%, rgba(20, 16, 11, 0.86) 72%, #14100b 100%);
}
.entry-gate-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding: var(--space-8);
  max-width: 640px;
  animation: gate-content-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gate-content-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.entry-gate-mark-link {
  display: inline-flex;
  position: relative;
  padding: var(--space-3);
  margin: calc(var(--space-3) * -1);
  border-radius: var(--radius-full);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.entry-gate-mark {
  width: 46px;
  height: auto;
  color: #faf6ee;
  opacity: 0.9;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.entry-gate-mark-link:hover .entry-gate-mark,
.entry-gate-mark-link:focus-visible .entry-gate-mark {
  opacity: 1;
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 14px rgba(250, 246, 238, 0.55));
}
.entry-gate-mark-link:focus-visible {
  outline: 1px solid rgba(250, 246, 238, 0.6);
  outline-offset: 2px;
}
.entry-gate-mark-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14100b;
  background: #faf6ee;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.entry-gate-mark-link:hover .entry-gate-mark-hint,
.entry-gate-mark-link:focus-visible .entry-gate-mark-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.entry-gate-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d9c9ab;
  font-weight: 600;
}
.entry-gate-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.1rem + 3vw, 3rem);
  color: #faf6ee;
  line-height: 1.2;
}
.entry-gate-enter {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #14100b;
  background: #faf6ee;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), background var(--transition-interactive);
}
.entry-gate-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}
.entry-gate-enter svg {
  width: 16px;
  height: 16px;
  animation: gate-arrow-bob 1.8s ease-in-out infinite;
}
@keyframes gate-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.entry-gate--leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .entry-gate-content { animation: none; }
  .entry-gate-enter svg { animation: none; }
}

/* ===== Testimonials ===== */
.testimonials {
  padding-block: var(--space-24);
  background: var(--color-surface-offset);
  border-block: 1px solid var(--color-divider);
}
.testimonials .feature-head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}
.testimonials .eyebrow {
  justify-content: center;
}
.testimonials-empty {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}
.testimonials-quote {
  width: 40px;
  height: auto;
  color: var(--color-primary);
  opacity: 0.5;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}
.testimonials-empty-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.testimonials-empty-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
/* Furniture collection doorway. */
.v6-collection-intro { padding: clamp(var(--space-12), 7vw, var(--space-24)) 0; }
.v6-collection-intro__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-24)); align-items: center; }
.v6-collection-intro img { display: block; width: 100%; height: auto; object-fit: contain; }
.v6-collection-intro h2 { margin: var(--space-5) 0; }
.v6-collection-intro p { margin-bottom: var(--space-6); }
.v6-collection-intro__actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.v6-collection-intro__study { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; font-size: var(--text-sm); text-underline-offset: .3em; }
.v6-collection-intro__study:hover, .v6-collection-intro__study:focus-visible { color: var(--color-primary); text-decoration: underline; }
.v6-collection-intro .v6-collection-intro__note { margin-top: var(--space-5); margin-bottom: 0; color: var(--color-text-muted); font-size: var(--text-xs); }
@media (max-width: 760px) { .v6-collection-intro__grid { grid-template-columns: 1fr; } }
