:root {
  /* SCULPTURE / ARCHIVE PALETTE */
  --carbon-slate: #202625;
  --gallery-graphite: #2B302E;
  --exhibition-slate: #46504D;
  --stone-grey: #737A76;
  --archive-taupe: #A8A196;
  --limestone: #D9D3C8;
  --gallery-cream: #F3F0E9;
  --paper-white: #FBFAF6;
  --pale-clay: #DCCBC0;
  --muted-sage: #C8D2CA;
  --bronze-green: #647269;
  --gallery-teal: #527C7C;
  --oxidized-bronze: #98745C;
  --soft-terracotta: #B27C68;
  --archive-ochre: #B59A65;

  /* SPACING SYSTEM */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;

  /* TYPOGRAPHY */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--paper-white);
  color: var(--carbon-slate);
  font-family: var(--font-stack);
  line-height: 1.5;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

.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;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  color: var(--carbon-slate);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: var(--sp-24);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: var(--sp-16);
}

p {
  margin-bottom: var(--sp-16);
  color: var(--gallery-graphite);
  max-width: 75ch;
  overflow-wrap: anywhere;
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
  min-width: 0;
}

main {
  flex: 1;
  padding-bottom: var(--sp-80);
}

.section-gap {
  margin-top: var(--sp-80);
}

/* HEADER */
.site-header {
  background-color: var(--paper-white);
  border-bottom: 1px solid var(--limestone);
  padding: var(--sp-16) 0;
  position: relative; /* Not sticky */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--carbon-slate);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.brand-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--gallery-teal);
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  gap: var(--sp-24);
  align-items: center;
}

.desktop-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--exhibition-slate);
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--gallery-teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-24);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--archive-ochre);
  color: var(--paper-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--carbon-slate);
}

a[href="contact.html"]:not(.btn) {
  color: var(--archive-ochre);
}

a[href="contact.html"]:not(.btn):hover,
a[href="contact.html"]:not(.btn):focus-visible {
  color: var(--carbon-slate);
}

.footer-section a[href="contact.html"]:not(.btn):hover,
.footer-section a[href="contact.html"]:not(.btn):focus-visible {
  color: var(--paper-white);
}

.btn-secondary {
  background-color: var(--limestone);
  color: var(--carbon-slate);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--archive-taupe);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--carbon-slate);
  transition: all 0.2s ease;
}

.mobile-nav-panel {
  display: none;
  background-color: var(--gallery-cream);
  padding: var(--sp-24);
  border-bottom: 1px solid var(--limestone);
}

.mobile-nav-panel.is-visible {
  display: block;
}

.mobile-nav-panel ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.mobile-nav-panel a {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--carbon-slate);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
  .desktop-nav {
    display: block;
  }
  .mobile-nav-panel {
    display: none !important;
  }
}

/* HERO SECTION - Text first, image below. Strict separation. */
.hero {
  padding: var(--sp-64) 0 var(--sp-40) 0;
  background-color: var(--paper-white);
}

.hero-content {
  max-width: 800px;
  margin-bottom: var(--sp-40); /* GAP */
}

.hero-actions {
  display: flex;
  gap: var(--sp-16);
  margin-top: var(--sp-32);
  flex-wrap: wrap;
}

.hero-visual {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--limestone);
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* SEQUENCE SECTION */
.sequence-section {
  background-color: var(--gallery-cream);
  padding: var(--sp-64) 0;
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-32);
  margin-top: var(--sp-40);
}

.sequence-step {
  border-top: 2px solid var(--archive-taupe);
  padding-top: var(--sp-16);
}

.sequence-step h3 {
  font-size: 1rem;
  color: var(--gallery-teal);
  margin-bottom: var(--sp-8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sequence-step p {
  font-size: 0.875rem;
}

/* HORIZONTAL SPLIT SCULPTURE CARD */
.service-cards {
  padding: var(--sp-64) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-64);
}

.split-card {
  display: flex;
  flex-direction: column;
  background-color: var(--paper-white);
  border: 1px solid var(--limestone);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(32, 38, 37, 0.05);
  min-width: 0;
}

.split-card-image {
  width: 100%;
  background-color: var(--gallery-cream);
}

.split-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.split-card-content {
  padding: var(--sp-32);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--archive-ochre);
  margin-bottom: var(--sp-8);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin: var(--sp-16) 0 var(--sp-24) 0;
}

.card-tags span {
  font-size: 0.75rem;
  padding: 4px 8px;
  background-color: var(--gallery-cream);
  color: var(--exhibition-slate);
  border-radius: 2px;
}

.split-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 768px) {
  .split-card {
    flex-direction: row;
    gap: var(--sp-40); /* STRICT GAP RULE */
    border: none;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid var(--limestone);
    padding-bottom: var(--sp-40);
  }
  
  .split-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .split-card-image {
    width: 45%;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
  }

  .split-card-content {
    width: 55%;
    padding: 0;
  }
}

/* SERVICE PAGES CONTENT */
.service-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
}

@media (min-width: 1024px) {
  .service-layout {
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-64);
  }
}

.content-body h2 {
  margin-top: var(--sp-40);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--limestone);
}

.content-body h3 {
  margin-top: var(--sp-24);
}

.content-body ul {
  margin-bottom: var(--sp-16);
  padding-left: var(--sp-24);
  list-style: square;
  color: var(--gallery-graphite);
}

.content-body li {
  margin-bottom: var(--sp-8);
}

.sidebar-panel {
  background-color: var(--gallery-cream);
  padding: var(--sp-32);
  border-radius: 4px;
  position: sticky;
  top: var(--sp-24);
}

.sidebar-panel h3 {
  font-size: 1rem;
  border-bottom: 1px solid var(--limestone);
  padding-bottom: var(--sp-8);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.sidebar-list a {
  font-size: 0.875rem;
  color: var(--gallery-teal);
  font-weight: 500;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-64);
  }
}

.form-group {
  margin-bottom: var(--sp-24);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--sp-8);
  font-size: 0.875rem;
  color: var(--carbon-slate);
}

.form-control {
  width: 100%;
  padding: var(--sp-12);
  border: 1px solid var(--archive-taupe);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--paper-white);
  color: var(--carbon-slate);
}

.form-control:focus {
  outline: 2px solid var(--gallery-teal);
  outline-offset: 2px;
  border-color: var(--gallery-teal);
}

.form-error {
  display: none;
  color: #d93025;
  font-size: 0.75rem;
  margin-top: var(--sp-4);
}

.is-invalid {
  border-color: #d93025;
}

.is-invalid + .form-error {
  display: block;
}

.form-success-msg {
  display: none;
  background-color: var(--muted-sage);
  color: var(--carbon-slate);
  padding: var(--sp-16);
  border-radius: 4px;
  margin-bottom: var(--sp-24);
}

.form-success-msg.is-visible {
  display: block;
}

.address-block {
  background-color: var(--gallery-cream);
  padding: var(--sp-32);
  border-radius: 4px;
}

/* FOOTER */
.site-footer {
  background-color: var(--carbon-slate);
  color: var(--paper-white);
  padding: var(--sp-80) 0 var(--sp-32) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-48);
  margin-bottom: var(--sp-48);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--paper-white);
  margin-bottom: var(--sp-16);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-brand-logo:hover,
.footer-brand-logo:focus-visible {
  opacity: 0.9;
}

.footer-brand-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--gallery-teal);
}

.footer-brand-desc {
  color: var(--archive-taupe);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 0;
}

.footer-section h4 {
  color: var(--paper-white);
  margin-bottom: var(--sp-24);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-section p {
  color: var(--archive-taupe);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.footer-section a {
  color: var(--archive-taupe);
  font-size: 0.875rem;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.footer-section a:hover,
.footer-section a:focus-visible {
  color: var(--gallery-teal);
}

.footer-email {
  color: var(--gallery-teal) !important;
  font-weight: 500;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--paper-white) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  font-size: 0.875rem;
  color: var(--archive-taupe);
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-domain a {
  font-weight: 600;
  color: var(--gallery-teal);
  transition: color 0.2s ease;
  font-size: 1rem;
}

.footer-domain a:hover,
.footer-domain a:focus-visible {
  color: var(--paper-white);
}

.site-footer p {
  color: var(--archive-taupe);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--gallery-graphite);
  color: var(--paper-white);
  padding: var(--sp-24);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.cookie-content p {
  color: var(--limestone);
  font-size: 0.875rem;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 4px;
  font-weight: 500;
}

.cookie-btn-primary {
  background-color: var(--gallery-teal);
  color: var(--paper-white);
}

.cookie-btn-secondary {
  background-color: transparent;
  border: 1px solid var(--archive-taupe);
  color: var(--paper-white);
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ACCESSIBILITY & REDUCED MOTION */
:focus-visible {
  outline: 2px solid var(--gallery-teal);
  outline-offset: 4px;
}

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