/* ===== Design tokens ===== */
:root {
  --bg: #E6E4DF;
  --bg-alt: #DCD9D1;
  --ink: oklch(24% 0.025 40);
  --ink-strong: oklch(22% 0.028 40);
  --ink-soft: oklch(38% 0.025 45);
  --ink-softer: oklch(40% 0.025 45);
  --ink-faint: oklch(45% 0.02 50);
  --accent: oklch(56% 0.13 38);
  --accent-hover: oklch(48% 0.13 38);
  --olive: oklch(52% 0.05 110);
  --cream: oklch(98% 0.01 75);
  --footer-bg: oklch(22% 0.028 40);
  --footer-text: oklch(70% 0.015 70);
  --border: oklch(24% 0.025 40 / 0.12);
  --border-soft: oklch(24% 0.025 40 / 0.1);
  --placeholder: oklch(45% 0.02 50 / 0.6);
  color-scheme: light;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
input, textarea, select, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-strong);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow--olive { color: var(--olive); }
.eyebrow--strong {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-strong);
  margin: 0 0 20px;
}
.section-title { text-align: center; margin-bottom: 64px; }
.section-title--tight { margin-bottom: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--accent { background: var(--accent); color: var(--cream); }
.btn--accent:hover { background: var(--accent-hover); color: var(--cream); }
.btn--outline { border-color: oklch(24% 0.025 40 / 0.25); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: oklch(24% 0.025 40 / 0.45); color: var(--ink); }
.btn--sm { font-size: 14px; padding: 10px 20px; }
.btn--block { width: 100%; padding: 16px; margin-top: 8px; border: none; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ===== Nav ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(230, 228, 223, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__brand { display: flex; align-items: center; }
.site-nav__logo { height: 56px; width: auto; }
.site-nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-nav__links a:not(.btn) {
  font-size: 15px;
  color: var(--ink);
}
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.site-nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 28px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.mobile-menu a:not(.btn) {
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 12px; text-align: center; }
.mobile-menu.is-open { display: flex; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  top: 0; bottom: 0; left: 28%; right: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 37% 50%;
  opacity: 0.85;
}
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, var(--bg) 8%, transparent 55%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.hero__content h1 {
  font-family: 'Lora', serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--ink-strong);
  max-width: 600px;
}
.hero__lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-softer);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== About ===== */
.about { position: relative; padding: 100px 28px; overflow: hidden; }
.about__bg { position: absolute; inset: 0; }
.about__bg img { width: 100%; height: 100%; object-fit: contain; object-position: top; opacity: 0.21; }
.about__inner { position: relative; z-index: 1; }
.about__copy { max-width: 700px; margin: 0 0 48px; }
.about__copy p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; }
.about__copy p:last-child { margin-bottom: 0; }
.about__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about__photo { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; background: var(--bg-alt); }
.about__photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.78;
  filter: contrast(0.94) saturate(1.05) brightness(1.02);
}

/* ===== Services ===== */
.services { padding: 100px 28px; background: var(--bg-alt); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}
.service { position: relative; padding-top: 20px; }
.service__icon {
  position: absolute;
  top: -30px; right: -10px;
  opacity: 0.14;
  z-index: 0;
  color: var(--accent);
}
.service h3 {
  position: relative; z-index: 1;
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink-strong);
}
.service p {
  position: relative; z-index: 1;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 440px;
}

/* ===== Portfolio ===== */
.portfolio { padding: 100px 28px; position: relative; }
.portfolio__window { overflow: hidden; }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio__arrow {
  display: flex;
  margin: 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid oklch(24% 0.025 40 / 0.2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease;
}
.portfolio__arrow:hover { background: oklch(24% 0.025 40 / 0.08); }
.portfolio__arrow--prev { margin-bottom: 12px; }
.portfolio__arrow--next { margin-top: 20px; }
.portfolio__arrow[hidden] { display: none; }

.art-card { cursor: pointer; }
.art-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.art-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.78;
  filter: contrast(0.94) saturate(1.05) brightness(1.02);
}
.art-card__media--placeholder {
  background: repeating-linear-gradient(135deg, #D3CFC5 0 12px, #DCD9D1 12px 24px);
  border: 1px solid oklch(24% 0.025 40 / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-card__media--placeholder span {
  font-family: monospace;
  font-size: 11px;
  color: var(--ink-faint);
}
.art-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 12, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.art-card__media:hover .art-card__overlay,
.art-card.is-playing .art-card__overlay { opacity: 1; }
.art-card.is-playing .art-card__overlay { background: rgba(20, 16, 12, 0.35); }
@media (hover: none) {
  .art-card__overlay { opacity: 0.85; }
}
.art-card__meta { min-height: 76px; }
.art-card__meta h3 {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink-strong);
}
.art-card__feat {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--olive);
}
.art-card__release { font-size: 14px; color: var(--ink-soft); margin: 0 0 4px; }
.art-card__genre { font-size: 13px; color: var(--olive); margin: 0; }

/* ===== Rates ===== */
.rates { padding: 100px 28px; background: var(--bg-alt); }
.rates__intro {
  font-size: 15px;
  color: var(--ink-softer);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.rates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.rate-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 36px 32px;
  text-align: center;
  background: var(--bg);
  transition: background 0.25s ease;
}
.rate-card:hover, .rate-card.is-active { background: var(--bg-alt); }
.rate-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: oklch(24% 0.025 40 / 0.82);
  padding: 8px 18px 8px 12px;
  border-radius: 2px;
  margin: 0 0 20px;
}
.rate-card__badge svg circle { fill: none; stroke: var(--cream); stroke-width: 1.6; }
.rate-card__badge svg rect { fill: var(--cream); }
.rate-card__badge p {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cream);
}
.rate-card__price {
  font-family: 'Lora', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--bg);
  margin: 0 0 12px;
  transition: color 0.25s ease;
}
.rate-card:hover .rate-card__price, .rate-card.is-active .rate-card__price { color: var(--ink); }

/* Below ~900px there's no hover state (touch), so the price would stay
   invisible against the card background forever — force it visible. */
@media (max-width: 900px) {
  .rate-card__price { color: var(--ink-strong) !important; }
}
.rate-card__note { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.rates__footnote {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  margin: 32px auto 0;
  max-width: 760px;
}

/* ===== Contact ===== */
.contact { padding: 100px 28px; }
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact h2 {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--ink-strong);
  text-align: center;
}
.contact__lede {
  font-size: 15px;
  color: var(--ink-softer);
  text-align: center;
  margin: 0 0 40px;
}
.contact__card { background: var(--bg-alt); border-radius: 2px; padding: 40px; }
#contactForm { display: flex; flex-direction: column; gap: 18px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#contactForm input,
#contactForm select,
#contactForm textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ink);
  font-size: 15px;
  font-family: 'Work Sans', sans-serif;
  width: 100%;
}
#contactForm textarea { resize: vertical; }
#contactForm select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%233a332c' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.contact__error {
  font-size: 14px;
  color: oklch(50% 0.16 30);
  margin: 0;
}
.contact__error[hidden] { display: none; }
.contact__success {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.contact__success-title {
  font-family: 'Lora', serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
}
.contact__success p:last-child { font-size: 15px; color: var(--ink-softer); }
.contact__success[hidden] { display: none; }

/* ===== Footer ===== */
.site-footer { padding: 40px 28px; background: var(--footer-bg); border-top: 1px solid oklch(96% 0.012 75 / 0.12); }
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__logo { height: 44px; width: auto; }
.site-footer__inner span { font-size: 13px; color: var(--footer-text); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__media { left: 0; }
  .hero__media img { opacity: 0.35; }
  .hero__fade { background: linear-gradient(to right, var(--bg) 0%, var(--bg) 35%, rgba(230,228,223,0.55) 100%); }
  .about__gallery { grid-template-columns: repeat(2, 1fr); }
  .about__photo:last-child { grid-column: span 2; aspect-ratio: 16/7; }
  .services__grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .rates__grid { grid-template-columns: 1fr; gap: 20px; }
  .contact__row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav__links { display: none; }
  .site-nav__toggle { display: flex; }
  .site-nav__logo { height: 46px; }
}

@media (max-width: 560px) {
  .about__gallery { grid-template-columns: 1fr; }
  .about__photo:last-child { grid-column: auto; aspect-ratio: 4/5; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .contact__card { padding: 28px 20px; }
  .site-footer__inner { justify-content: center; text-align: center; }
}
