:root {
  color-scheme: light;
  --canvas: 246 243 237;
  --canvas-muted: 236 231 222;
  --ink: 28 26 24;
  --ink-muted: 82 76 70;
  --ink-subtle: 124 116 106;
  --accent: 72 112 106;
  --accent-soft: 186 205 198;
  --frost: 255 255 255;
  --border: 215 206 192;
  --ring: 72 112 106;
}

.dark {
  color-scheme: dark;
  --canvas: 11 13 20;
  --canvas-muted: 18 21 30;
  --ink: 242 238 230;
  --ink-muted: 186 178 166;
  --ink-subtle: 138 130 118;
  --accent: 164 196 186;
  --accent-soft: 52 68 64;
  --frost: 22 26 36;
  --border: 42 48 62;
  --ring: 164 196 186;
}

/* Site font: Cormorant Garamond only (navbar, hero, and all pages) */
html {
  --font-cormorant: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  scroll-behavior: smooth;
}

html,
body,
.font-serif,
.font-sans,
.font-script,
button,
input,
select,
textarea {
  font-family: var(--font-cormorant);
}

/* Design tokens — Tailwind CDN does not compile custom theme colors; explicit fallbacks */
.bg-canvas {
  background-color: rgb(var(--canvas));
}
.bg-canvas-muted {
  background-color: rgb(var(--canvas-muted));
}
.text-ink {
  color: rgb(var(--ink));
}
.text-ink-muted {
  color: rgb(var(--ink-muted));
}
.text-ink-subtle {
  color: rgb(var(--ink-subtle));
}
.text-accent {
  color: rgb(var(--accent));
}
.bg-accent {
  background-color: rgb(var(--accent));
}
.bg-accent-soft {
  background-color: rgb(var(--accent-soft));
}
.bg-frost {
  background-color: rgb(var(--frost));
}
.border-accent {
  border-color: rgb(var(--accent));
}
.border-accent\/30 {
  border-color: rgb(var(--accent) / 0.3);
}
.outline-accent,
.ring-accent {
  --tw-ring-color: rgb(var(--accent));
  outline-color: rgb(var(--accent));
}
.ring-accent\/30 {
  --tw-ring-color: rgb(var(--accent) / 0.3);
}
.shadow-accent\/25 {
  --tw-shadow-color: rgb(var(--accent) / 0.25);
  box-shadow:
    0 10px 15px -3px rgb(var(--accent) / 0.25),
    0 4px 6px -4px rgb(var(--accent) / 0.25);
}
.hover\:bg-accent\/90:hover {
  background-color: rgb(var(--accent) / 0.9);
}
.border-ink\/10 {
  border-color: rgb(var(--ink) / 0.1);
}
.bg-white\/40 {
  background-color: rgb(255 255 255 / 0.4);
}
.bg-white\/50 {
  background-color: rgb(255 255 255 / 0.5);
}
.bg-white\/60 {
  background-color: rgb(255 255 255 / 0.6);
}
.bg-white\/80,
.hover\:bg-white\/80:hover {
  background-color: rgb(255 255 255 / 0.8);
}
.hover\:bg-white\/70:hover {
  background-color: rgb(255 255 255 / 0.7);
}
.hover\:bg-white\/90:hover {
  background-color: rgb(255 255 255 / 0.9);
}
.bg-accent\/10 {
  background-color: rgb(var(--accent) / 0.1);
}
.max-w-site {
  max-width: min(100%, 110rem);
}
.ease-luxury {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.bg-noise-soft {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.dark .dark\:border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}
.dark .dark\:bg-white\/\[0\.06\] {
  background-color: rgb(255 255 255 / 0.06);
}
.dark .dark\:hover\:bg-white\/\[0\.1\]:hover,
.dark .dark\:hover\:bg-white\/\[0\.12\]:hover {
  background-color: rgb(255 255 255 / 0.1);
}
.dark .dark\:hover\:bg-white\/8:hover {
  background-color: rgb(255 255 255 / 0.08);
}
.dark .dark\:bg-white\/\[0\.08\] {
  background-color: rgb(255 255 255 / 0.08);
}
.bg-ink\/15 {
  background-color: rgb(var(--ink) / 0.15);
}
.hover\:bg-ink\/30:hover {
  background-color: rgb(var(--ink) / 0.3);
}
.dark .bg-white\/15 {
  background-color: rgb(255 255 255 / 0.15);
}
.ring-accent\/30:focus {
  --tw-ring-color: rgb(var(--accent) / 0.3);
}
.focus\:ring-2:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgb(var(--accent) / 0.3);
}
.dark .dark\:text-ink {
  color: rgb(var(--ink));
}
.dark .dark\:text-ink-muted {
  color: rgb(var(--ink-muted));
}
.dark .dark\:bg-white\/20 {
  background-color: rgb(255 255 255 / 0.2);
}
.dark .dark\:hover\:bg-white\/30:hover {
  background-color: rgb(255 255 255 / 0.3);
}

/* Page shell — matches globals.css body */
body {
  background-color: rgb(var(--canvas));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  color: rgb(var(--ink));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: rgb(var(--accent-soft) / 0.45);
}

a {
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

:focus-visible {
  outline: 2px solid rgb(var(--ring));
  outline-offset: 2px;
}

.glass-panel,
.glass-panel-stained {
  border-radius: 1.5rem;
  border: 1px solid rgb(167 243 208 / 0.38);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    inset 0 -1px 0 rgb(0 0 0 / 0.06),
    0 14px 44px rgb(15 80 60 / 0.12);
  backdrop-filter: blur(22px) saturate(1.45);
  background: linear-gradient(
    142deg,
    rgb(255 255 255 / 0.48) 0%,
    rgb(72 112 106 / 0.26) 38%,
    rgb(220 252 231 / 0.42) 72%,
    rgb(236 253 245 / 0.55) 100%
  );
}

.dark .glass-panel,
.dark .glass-panel-stained {
  border-color: rgb(52 211 153 / 0.22);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 12px 40px rgb(0 0 0 / 0.35);
  background: linear-gradient(
    142deg,
    rgb(8 45 38 / 0.58) 0%,
    rgb(15 55 48 / 0.48) 45%,
    rgb(6 30 28 / 0.52) 100%
  );
}

.glass-strip {
  backdrop-filter: blur(20px) saturate(1.42);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.52) 0%,
    rgb(220 252 231 / 0.38) 55%,
    rgb(236 253 245 / 0.45) 100%
  );
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22);
}

.dark .glass-strip {
  background: linear-gradient(
    180deg,
    rgb(12 48 40 / 0.72) 0%,
    rgb(8 32 30 / 0.65) 100%
  );
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.text-balance-pretty {
  text-wrap: balance;
}

.legal-doc h2 {
  margin-top: 2.5rem;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.025em;
  color: rgb(var(--ink));
}
.legal-doc h2:first-child {
  margin-top: 0;
}
.legal-doc h3 {
  margin-top: 1.5rem;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: rgb(var(--ink));
}
.legal-doc p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgb(var(--ink-muted));
}
@media (min-width: 640px) {
  .legal-doc p {
    font-size: 1.125rem;
    line-height: 1.75;
  }
}
.legal-doc ul,
.legal-doc ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgb(var(--ink-muted));
}
.legal-doc ul {
  list-style: disc;
}
.legal-doc ol {
  list-style: decimal;
}
.legal-doc li {
  line-height: 1.625;
}
.legal-doc strong {
  color: rgb(var(--ink));
}

.checklist-card h3 {
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 2rem;
  color: rgb(var(--ink));
}
.checklist-card ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: 1rem;
  line-height: 1.625;
  color: rgb(var(--ink-muted));
}
@media (min-width: 640px) {
  .checklist-card ul,
  .checklist-card p {
    font-size: 1.125rem;
    line-height: 1.75;
  }
}
.checklist-card p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgb(var(--ink-muted));
}
.checklist-card strong {
  color: rgb(var(--ink));
}

.google-star {
  color: rgb(var(--ink-subtle));
}
.google-star--filled {
  color: rgb(var(--accent));
}

/* Pill CTAs — same as services page; fully self-contained (no Tailwind CDN required) */
a.ghc-btn,
button.ghc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 9999px;
  border: 1px solid rgb(var(--ink) / 0.1);
  background-color: rgb(255 255 255 / 0.6);
  padding: 0.75rem 2rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgb(var(--ink));
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  cursor: pointer;
  box-sizing: border-box;
}

a.ghc-btn:hover,
button.ghc-btn:hover {
  background-color: rgb(255 255 255 / 0.9);
  text-decoration: none;
}

.dark a.ghc-btn,
.dark button.ghc-btn {
  border-color: rgb(255 255 255 / 0.1);
  background-color: rgb(255 255 255 / 0.06);
}

.dark a.ghc-btn:hover,
.dark button.ghc-btn:hover {
  background-color: rgb(255 255 255 / 0.12);
}

a.ghc-btn--primary,
button.ghc-btn--primary {
  border-color: transparent;
  background-color: rgb(var(--accent));
  color: #fff;
  box-shadow:
    0 10px 15px -3px rgb(var(--accent) / 0.25),
    0 4px 6px -4px rgb(var(--accent) / 0.25);
}

a.ghc-btn--primary:hover,
button.ghc-btn--primary:hover {
  background-color: rgb(var(--accent) / 0.9);
  color: #fff;
}

.dark a.ghc-btn--primary:hover,
.dark button.ghc-btn--primary:hover {
  background-color: rgb(var(--accent) / 0.9);
}

a.ghc-btn--text,
button.ghc-btn--text {
  border-color: transparent;
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: rgb(var(--accent));
  padding-left: 1rem;
  padding-right: 1rem;
  box-shadow: none;
}

a.ghc-btn--text:hover,
button.ghc-btn--text:hover {
  background-color: transparent;
  color: rgb(var(--accent));
  text-decoration: underline;
  text-underline-offset: 8px;
}

.dark a.ghc-btn--text:hover,
.dark button.ghc-btn--text:hover {
  background-color: transparent;
}

button.ghc-btn--submit {
  min-height: 48px;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

button.ghc-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

#ghc-lightbox.is-open {
  display: flex;
}

#ghc-lightbox.is-open.is-animating #ghc-lightbox-img {
  animation: ghc-lightbox-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ghc-lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  #cinematic-hero {
    display: none !important;
  }
  #cinematic-hero-reduced {
    display: flex !important;
  }
}

#cinematic-hero-reduced {
  display: none;
}

[data-form-status]:not([hidden]) {
  animation: form-status-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes form-status-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cinematic hero */
#cinematic-hero .hero-layer {
  transition: opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}
#cinematic-hero .hero-line {
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
#cinematic-hero .hero-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#cinematic-hero .hero-line:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}
#cinematic-hero .signature-char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(8px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
#cinematic-hero .signature-char.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
#cinematic-hero .stained-overlay {
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}
#portfolio-carousel .slide-main {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
