:root {
  --bg: #f7f1e7;
  --panel: rgba(255, 251, 245, 0.72);
  --ink: #1e1916;
  --muted: #625950;
  --line: rgba(35, 28, 24, 0.12);
  --line-strong: rgba(35, 28, 24, 0.2);
  --accent: #bf4d3a;
  --accent-dark: #a53f2f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(243, 216, 193, 0.7), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(252, 232, 211, 0.72), transparent 18%),
    linear-gradient(180deg, #faf5ed 0%, #f7f1e7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(85, 64, 48, 0.055) 0.55px, transparent 0.6px),
    radial-gradient(rgba(255, 255, 255, 0.44) 0.55px, transparent 0.6px);
  background-size: 8px 8px, 11px 11px;
  background-position: 0 0, 3px 4px;
  opacity: 0.28;
}

::selection {
  background: rgba(191, 77, 58, 0.16);
  color: var(--ink);
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  width: min(calc(100% - 2rem), 1024px);
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.45rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-word {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.98rem;
}

.site-nav a,
.footer-links a,
.footer-meta {
  color: var(--muted);
}

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

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.nav-toggle-lines {
  position: relative;
}

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

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-drawer {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  z-index: 10;
  display: grid;
  gap: 0.8rem;
  min-width: 220px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.96);
  box-shadow: 0 18px 40px rgba(57, 37, 24, 0.1);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

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

.nav-drawer-email {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--accent);
}

.hero-section {
  border-bottom: 1px solid var(--line);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 520px;
}

.hero-copy,
.hero-art {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.6rem 2.6rem 3.6rem 2.2rem;
}

.hero-copy h1,
.services-section h2,
.service-card h2,
.contact-panel h2 {
  font-family: "Cormorant Garamond", serif;
}

.hero-copy h1 {
  max-width: 9.8ch;
  margin: 0;
  font-size: clamp(4.3rem, 5.7vw, 5.7rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 19ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-art {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0;
  border-left: 1px solid rgba(35, 28, 24, 0.06);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.46), rgba(248, 241, 232, 0.58));
}

.hero-illustration {
  width: 112%;
  height: auto;
  transform: translateX(7%) translateY(2%);
}

.services-section {
  padding: 2.8rem 0 2.2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 500;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 1.5rem 1.45rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.44);
}

.service-card h2 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  line-height: 0.96;
  font-weight: 500;
}

.service-card p {
  max-width: 18ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(35, 28, 24, 0.08);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 500;
}

.service-arrow {
  position: relative;
  width: 16px;
  height: 16px;
  color: rgba(35, 28, 24, 0.3);
}

.service-arrow::before,
.service-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
}

.service-arrow::before {
  width: 11px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.service-arrow::after {
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.contact-section {
  padding: 2.8rem 0 3rem;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
}

.contact-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.3rem;
  width: 100%;
}

.contact-header h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.3vw, 3rem);
  line-height: 1;
  font-weight: 500;
  text-align: center;
}

.contact-rule {
  height: 1px;
  background: var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.92rem 2rem;
  border-radius: 999px;
  border: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 24px rgba(191, 77, 58, 0.14);
}

.button-primary:hover {
  filter: brightness(1.02);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 1rem;
  padding: 2.2rem 0 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: end;
}

.footer-meta {
  display: grid;
  gap: 0.45rem;
  grid-column: 2;
  justify-self: end;
  text-align: right;
  font-size: 0.95rem;
}

.footer-meta p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-shell {
    width: min(calc(100% - 1rem), 1024px);
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 380px;
    border-top: 1px solid rgba(35, 28, 24, 0.06);
    border-left: 0;
  }

  .hero-illustration {
    transform: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-meta {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 1.2rem 0 1rem;
  }

  .brand-word {
    font-size: 1.32rem;
  }

  .header-controls {
    gap: 0.9rem;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.92rem;
  }

  .hero-copy {
    padding: 2.3rem 0.8rem 2rem 0;
  }

  .hero-copy h1 {
    max-width: 7ch;
    font-size: clamp(3.25rem, 12vw, 4.5rem);
  }

  .hero-lead {
    max-width: 18ch;
    font-size: 0.95rem;
  }

  .hero-art {
    min-height: 300px;
  }

  .section-header {
    align-items: center;
  }

  .section-header h2 {
    font-size: 2.35rem;
  }

  .service-card {
    min-height: 0;
  }

  .contact-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-rule {
    display: none;
  }

  .button {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
  }
}

@media (max-width: 520px) {
  .site-nav {
    display: none;
  }

  .nav-drawer {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
