/* —— Tokens —— */
:root {
  --bg: #ede8f4;
  --bg-elevated: #faf8ff;
  --ink: #2a2438;
  --ink-muted: #6a6280;
  --line: #d8d0e6;
  --accent: #7b6bb8;
  --accent-hover: #5f5299;
  --accent-soft: rgba(123, 107, 184, 0.16);
  --shadow: 0 24px 60px rgba(42, 36, 56, 0.1);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bg);
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 0;
}

.logo:hover .logo-img {
  opacity: 0.92;
}

.logo-img {
  display: block;
  height: clamp(3rem, 6.5vw, 4.125rem);
  width: auto;
  max-width: min(22rem, calc(100vw - 8.5rem));
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55))
    drop-shadow(0 1px 2px rgba(42, 36, 56, 0.12));
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4.2vw, 2.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
}

.logo:hover .logo-wordmark {
  color: var(--accent);
}

@media (max-width: 22.5rem) {
  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .logo-wordmark {
    font-size: 1.05rem;
    max-width: calc(100vw - 5.75rem);
    white-space: normal;
  }

  .logo-img {
    height: clamp(2.6rem, 14vw, 3.15rem);
    max-width: calc(100vw - 5.75rem);
  }
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.site-header.is-open .nav-toggle-bar {
  background: transparent;
}

.site-header.is-open .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-lg);
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

@media (max-width: 52rem) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }

  .site-header.is-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav .nav-list {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 42rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scrim so hero copy stays readable on any banner */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(42, 36, 56, 0.78) 0%,
      rgba(42, 36, 56, 0.28) 42%,
      rgba(42, 36, 56, 0.12) 100%
    ),
    linear-gradient(
      to left,
      rgba(237, 232, 244, 0.96) 0%,
      rgba(237, 232, 244, 0.4) 38%,
      transparent 72%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  margin-left: auto;
  text-align: right;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ddd4f5;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
  color: var(--bg-elevated);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 254, 251, 0.88);
  margin: 0 0 var(--space-lg);
  max-width: 32rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.hero .btn-primary {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--bg-elevated);
}

.hero .btn-primary:hover {
  background: #ffffff;
}

.hero .btn-ghost {
  border-color: rgba(255, 254, 251, 0.55);
  color: var(--bg-elevated);
  background: rgba(0, 0, 0, 0.12);
}

.hero .btn-ghost:hover {
  border-color: var(--bg-elevated);
  background: rgba(0, 0, 0, 0.22);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg-elevated);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  background: var(--bg-elevated);
}

.btn-block {
  width: 100%;
}

/* —— Sections —— */
.section {
  padding: var(--space-2xl) var(--space-md);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-head {
  max-width: 36rem;
  margin-bottom: var(--space-xl);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.work {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* —— Gallery —— */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-lg);
}

.piece {
  width: 100%;
  text-align: left;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  display: block;
}

.piece:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.piece-frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #e2daf0;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.piece-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.piece:hover .piece-frame img {
  transform: scale(1.04);
}

.piece-frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d8ceed, #c4b8e0);
}

.placeholder-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink-muted);
  font-style: italic;
}

.piece-meta {
  display: block;
  margin-top: var(--space-sm);
}

.piece-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.piece-detail {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* —— About —— */
.about-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 48rem) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.about-copy p {
  color: var(--ink-muted);
  margin: 0 0 var(--space-md);
  font-size: 1.05rem;
}

.about-aside blockquote {
  margin: 0;
  padding: var(--space-lg);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.about-aside blockquote p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0 0 var(--space-sm);
  font-style: italic;
  color: var(--ink);
}

.about-aside footer {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* —— Inquire —— */
.inquire {
  padding-bottom: var(--space-2xl);
}

.inquire-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 52rem) {
  .inquire-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
  }
}

.inquire-lead {
  margin-top: var(--space-md);
}

.inquire-list {
  margin: var(--space-lg) 0 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
}

.inquire-list li {
  margin-bottom: var(--space-xs);
}

.inquire-form {
  background: var(--bg-elevated);
  padding: var(--space-lg);
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field {
  display: block;
  margin-bottom: var(--space-md);
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: var(--space-xs);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form-note {
  margin: var(--space-sm) 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  min-height: 1.4em;
}

.form-note.is-success {
  color: #4d6278;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-lg) var(--space-md);
  background: #e0d7ee;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 32, 55, 0.74);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(56rem, 100%);
  max-height: 100%;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.lightbox-close:hover {
  background: #fff;
}

.lightbox-body {
  display: grid;
  gap: 0;
  max-height: 90vh;
}

@media (min-width: 40rem) {
  .lightbox-body {
    grid-template-columns: 1.2fr 0.5fr;
    align-items: stretch;
  }
}

.lightbox-img-wrap {
  background: #262033;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  max-height: min(75vh, 48rem);
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: min(75vh, 48rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  padding: var(--space-lg);
  font-size: 0.95rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .lightbox-caption {
    border-top: none;
    border-left: 1px solid var(--line);
  }
}

.lightbox-caption h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}

.lightbox-caption p {
  margin: 0;
}
