:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --paper: #f1efec;
  --paper-alt: #e7e4de;
  --card: #ffffff;
  --line: #d8d4cc;
  --accent: oklch(58% 0.11 75);
  --accent-ink: oklch(30% 0.06 75);
  --radius: 18px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 239, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon { color: var(--ink); display: flex; }

.brand-word {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { color: var(--ink); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav a {
  padding: 16px 24px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.site-header.nav-open .mobile-nav { display: flex; }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero */

.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  animation: hero-rise 0.7s ease both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; }
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-logo-divider {
  width: 1px;
  height: 40px;
  background: var(--ink);
  opacity: 0.5;
}

.hero-title {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-title-sub {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 14px;
  color: var(--ink-soft);
}

.hero-tagline {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-value {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.hero-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

@media (max-width: 560px) {
  .hero-stat-divider { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

/* Sections */

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

.section-alt { background: var(--paper-alt); }

.eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 10px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 48px;
  max-width: 620px;
}

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

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.5);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 16%, white);
  color: var(--accent-ink);
  margin-bottom: 22px;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.section-cta {
  margin-top: 40px;
  text-align: center;
}

/* Products */

.products {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.products-head {
  margin-bottom: 28px;
}

.products-head h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.products-head p {
  margin: 0;
  color: var(--ink-soft);
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.product-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

.product-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 860px) {
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .product-list { grid-template-columns: 1fr; }
}

/* Brand divider */

.brand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  margin: -1px 0;
  height: 1px;
  color: var(--ink-soft);
  background: var(--paper);
}

.brand-divider-line {
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: var(--line);
}

/* Gallery mosaic */

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 16px;
  margin-bottom: 40px;
}

.gallery-mosaic .flip-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery-mosaic .flip-card:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.gallery-mosaic .flip-card:nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
.gallery-mosaic .flip-card:nth-child(4) { grid-column: 1 / 4; grid-row: 3 / 4; }

@media (max-width: 780px) {
  .gallery-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .gallery-mosaic .flip-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .gallery-mosaic .flip-card:nth-child(2) { grid-column: 1 / 2; grid-row: 3 / 4; }
  .gallery-mosaic .flip-card:nth-child(3) { grid-column: 2 / 3; grid-row: 3 / 4; }
  .gallery-mosaic .flip-card:nth-child(4) { grid-column: 1 / 3; grid-row: 4 / 5; }
}

@media (max-width: 480px) {
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-mosaic .flip-card:nth-child(1),
  .gallery-mosaic .flip-card:nth-child(2),
  .gallery-mosaic .flip-card:nth-child(3),
  .gallery-mosaic .flip-card:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: auto;
  }
}

.flip-card {
  position: relative;
  perspective: 1200px;
  border-radius: var(--radius);
  cursor: pointer;
}

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

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-visible .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}

.flip-card-icon { color: var(--accent); }

.flip-card-icon svg { width: 28px; height: 28px; }

.flip-card-back p {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
}

/* Location */

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 780px) {
  .location-grid { grid-template-columns: 1fr; }
}

.location-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.location-info address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
}

.location-hours strong { color: var(--accent-ink); }

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand .brand-word {
  color: var(--paper);
  font-size: 2rem;
}

.footer-brand .brand-word-sub {
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9b6ae;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col h4 {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9b6ae;
  margin: 0 0 14px;
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #e6e4df;
}

.footer-bottom {
  border-top: 1px solid #33322f;
  padding: 20px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #a7a49c;
  text-align: center;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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