/* ============================================
   DiVi · Сладкарница — споделени стилове
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Marcellus&display=swap');

:root {
  --paper:        #FBF6EC;
  --cream:        #F6EFE2;
  --cream-soft:   #EFE6D6;
  --blush:        #EBD3CB;
  --rose:         #E0BEB3;
  --mauve:        #B69A95;
  --mauve-deep:   #8C7570;
  --plum:         #5C4753;
  --aubergine:    #382733;
  --ink:          #271A24;
  --gold:         #B8956A;
  --line:         #D9C9C2;

  --serif-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-body:    'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --serif-label:   'Marcellus', 'Cormorant Garamond', Georgia, serif;

  --max:    1440px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(5rem, 10vh, 9rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--plum);
  background-color: var(--paper);
  font-feature-settings: "liga", "kern", "onum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain over the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(56, 39, 51, .06) 1px, transparent 1px),
    radial-gradient(rgba(56, 39, 51, .04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

/* Typography primitives -------------------------------- */
.display {
  font-family: var(--serif-display);
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 0.96;
  color: var(--aubergine);
}

.display em, .display i {
  font-style: italic;
  font-weight: 400;
  color: var(--mauve-deep);
}

.label {
  font-family: var(--serif-label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--mauve-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.72rem;
  color: var(--mauve-deep);
}

.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--mauve);
}

.script {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  color: var(--mauve-deep);
}

p { margin: 0 0 1em; }

::selection { background: var(--blush); color: var(--aubergine); }

/* Layout primitives ------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 2;
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--mauve);
  margin: 0 auto;
}
.divider-ornament span {
  height: 1px; width: 80px; background: currentColor; opacity: .4;
}
.divider-ornament svg { width: 18px; height: 18px; opacity: .85; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(251, 246, 236, 0.78);
  border-bottom: 1px solid rgba(217, 201, 194, .55);
  transition: background .3s ease, padding .3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  overflow: hidden;
  transition: transform .4s var(--ease);
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply;
  transform: scale(1.08);
}
.brand:hover .brand-mark { transform: rotate(-8deg); }

.brand-word {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--aubergine);
  line-height: 1;
}
.brand-word small {
  display: block;
  font-family: var(--serif-label);
  font-style: normal;
  font-size: .55rem;
  letter-spacing: .42em;
  color: var(--mauve-deep);
  text-transform: uppercase;
  margin-top: .25rem;
}

.nav-list {
  display: flex; align-items: center;
  gap: 2.4rem;
}
.nav-link {
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  color: var(--plum);
  position: relative;
  padding: .35rem 0;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1px;
  background: var(--aubergine);
  transition: width .3s var(--ease), left .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--aubergine); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; left: 0; }

.nav-cta {
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
  padding: .65rem 1.25rem;
  border: 1px solid var(--aubergine);
  color: var(--aubergine);
  border-radius: 999px;
  transition: background .3s ease, color .3s ease;
}
.nav-cta:hover { background: var(--aubergine); color: var(--paper); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  position: relative; width: 22px; height: 1px; background: var(--aubergine);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: var(--aubergine);
  transition: transform .3s ease, top .3s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .78rem;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--aubergine);
  color: var(--aubergine);
  background: transparent;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--aubergine); color: var(--paper); transform: translateY(-1px); }
.btn--solid { background: var(--aubergine); color: var(--paper); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

.btn .arrow {
  display: inline-block;
  transition: transform .35s var(--ease);
}
.btn:hover .arrow { transform: translateX(6px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .76rem;
  color: var(--aubergine);
  border-bottom: 1px solid var(--aubergine);
  padding-bottom: .25rem;
  transition: gap .3s var(--ease), color .3s ease;
}
.link-arrow:hover { gap: 1.05rem; color: var(--ink); }

/* ============================================
   HERO (HOME)
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 80% 20%, var(--blush) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, var(--cream-soft) 0%, transparent 50%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: calc(100vh - 200px);
}

.hero-text { position: relative; z-index: 3; }
.hero-eyebrow { margin-bottom: 2.2rem; }

.hero-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: .96;
  letter-spacing: -0.022em;
  color: var(--aubergine);
  margin: 0;
}
.hero-title .ital {
  font-style: italic;
  font-weight: 400;
  color: var(--mauve-deep);
  display: inline-block;
}
.hero-title .ital::before {
  content: "—  ";
  color: var(--mauve);
  font-style: normal;
}

.hero-sub {
  margin-top: 2rem;
  max-width: 32rem;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--plum);
  font-style: italic;
  font-family: var(--serif-display);
  font-weight: 400;
}

.hero-actions {
  margin-top: 2.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2.4rem;
  align-items: center;
}

.hero-meta {
  margin-top: 3.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .68rem;
  color: var(--mauve-deep);
}
.hero-meta b { color: var(--aubergine); font-weight: 400; }

/* Hero logo card */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
}

.hero-logo-frame {
  position: relative;
  width: min(85%, 480px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-logo-frame::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px solid var(--mauve);
  opacity: .4;
  z-index: 1;
}
.hero-logo-frame::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  border: 1px dashed var(--mauve);
  opacity: .35;
  z-index: 0;
  animation: rotate 90s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.hero-logo-frame img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  mix-blend-mode: multiply;
  z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(56,39,51,.18));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-side-text {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .55em;
  font-size: .68rem;
  color: var(--mauve-deep);
}
.hero-side-text.left { left: 0; top: 50%; transform: translateY(-50%) rotate(180deg); }
.hero-side-text.right { right: 0; top: 50%; transform: translateY(-50%); }

/* Decorative dots */
.dots {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(7, 8px);
  gap: 14px;
  pointer-events: none;
  opacity: .55;
}
.dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--mauve);
}
.dots--tl { top: 8%; left: 4%; }
.dots--br { bottom: 8%; right: 4%; }

/* ============================================
   SECTIONS — INTRO / TWO-COL
   ============================================ */
.intro {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.intro-num {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: .9;
  color: var(--blush);
  font-weight: 400;
}

.intro-body h2 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  color: var(--aubergine);
  margin: 0 0 1.6rem;
  letter-spacing: -0.01em;
}
.intro-body h2 em { font-style: italic; color: var(--mauve-deep); font-weight: 400; }

.intro-body p {
  font-size: 1.15rem;
  max-width: 38rem;
  line-height: 1.7;
}

/* ============================================
   SIGNATURES — featured cake cards
   ============================================ */
.signatures-head {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}
.signatures-head h2 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: .98;
  color: var(--aubergine);
  margin: .5rem 0 0;
  letter-spacing: -0.012em;
  max-width: 18ch;
}
.signatures-head h2 em { font-style: italic; color: var(--mauve-deep); font-weight: 400; }

.signatures-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.sig-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  isolation: isolate;
}
.sig-card .frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-soft);
}
.sig-card .frame img,
.cat-card .frame img {
  color: transparent; /* hide alt text fallback while broken/loading */
  font-size: 0;
}
.sig-card .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s ease;
  filter: saturate(.95);
}
.sig-card:hover .frame img { transform: scale(1.06); filter: saturate(1.05); }

.sig-card .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(40,28,38,.55) 75%, rgba(28,18,25,.85) 100%);
  pointer-events: none;
  transition: opacity .4s ease;
}
.sig-card:hover .frame::after { background: linear-gradient(180deg, transparent 25%, rgba(40,28,38,.62) 70%, rgba(28,18,25,.92) 100%); }

.sig-card .meta {
  position: absolute;
  left: 1.4rem; right: 1.4rem; bottom: 1.4rem;
  z-index: 2;
  color: var(--paper);
  transition: transform .5s var(--ease);
}
.sig-card:hover .meta { transform: translateY(-4px); }

.sig-card .meta .label { color: rgba(251,246,236,.78); }
.sig-card .meta h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  margin: .35rem 0 0;
  letter-spacing: -.005em;
}

.sig-card.span-7 { grid-column: span 7; }
.sig-card.span-5 { grid-column: span 5; }
.sig-card.span-4 { grid-column: span 4; }
.sig-card.span-8 { grid-column: span 8; }
.sig-card.span-6 { grid-column: span 6; }
.sig-card.span-12 { grid-column: span 12; aspect-ratio: 21/9; }
.sig-card.tall .frame { aspect-ratio: 3 / 4.4; }
.sig-card.short .frame { aspect-ratio: 4 / 3; }

/* Image fallback (cream gradient + ornament) */
.frame.no-image {
  background:
    radial-gradient(circle at 30% 25%, var(--blush) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, var(--rose) 0%, transparent 55%),
    var(--cream);
}
.frame.no-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(140, 117, 112, .25) 1px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: .5;
}

/* ============================================
   STORY (atelier preview)
   ============================================ */
.story {
  background: var(--cream);
  padding-top: clamp(6rem, 12vh, 11rem);
  padding-bottom: clamp(6rem, 12vh, 11rem);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.story-year {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: .85;
  color: var(--aubergine);
  letter-spacing: -.03em;
  position: relative;
}
.story-year::after {
  content: "от";
  position: absolute;
  top: -.2em;
  left: -1.2em;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: .12em;
  color: var(--mauve-deep);
  letter-spacing: .1em;
}

.story-text h2 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--aubergine);
  margin: 0 0 1.6rem;
  max-width: 24ch;
}
.story-text p {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 38rem;
  margin-bottom: 1.4rem;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  padding: 1.6rem 0;
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  color: var(--aubergine);
}
.marquee-track .dot {
  align-self: center;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mauve);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   CTA BLOCK
   ============================================ */
.cta {
  text-align: center;
  padding-top: clamp(5rem, 10vh, 9rem);
  padding-bottom: clamp(5rem, 10vh, 9rem);
}
.cta h2 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  margin: 1rem auto 1.4rem;
  max-width: 18ch;
  color: var(--aubergine);
}
.cta h2 em { font-style: italic; color: var(--mauve-deep); font-weight: 400; }

.cta p {
  max-width: 36rem;
  margin: 0 auto 2.4rem;
  font-style: italic;
  font-family: var(--serif-display);
  font-size: 1.2rem;
  color: var(--plum);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-head {
  padding-top: clamp(4rem, 9vh, 8rem);
  padding-bottom: clamp(2.5rem, 5vh, 5rem);
  text-align: center;
  position: relative;
}
.page-head .eyebrow { justify-content: center; }
.page-head .eyebrow::before { display: none; }
.page-head h1 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .98;
  letter-spacing: -.018em;
  color: var(--aubergine);
  margin: 1.2rem 0 1rem;
}
.page-head h1 em { font-style: italic; color: var(--mauve-deep); font-weight: 400; }
.page-head .lede {
  max-width: 36rem; margin: 0 auto;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--plum);
}

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-section { padding-bottom: 5rem; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--cream);
  isolation: isolate;
}
.cat-card .frame {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}
.cat-card .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
  filter: saturate(.92) brightness(.96);
}
.cat-card:hover .frame img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

.cat-card .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(40,28,38,.55) 70%, rgba(28,18,25,.88) 100%);
  z-index: 1;
}

.cat-card .meta {
  position: absolute;
  z-index: 2;
  left: 1.4rem; right: 1.4rem; bottom: 1.4rem;
  color: var(--paper);
}
.cat-card .meta .num {
  font-family: var(--serif-label);
  letter-spacing: .3em;
  font-size: .68rem;
  color: rgba(251,246,236,.7);
}
.cat-card .meta h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: .4rem 0 0;
  letter-spacing: -.005em;
}
.cat-card .meta .view {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: .85rem;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .65rem;
  border-bottom: 1px solid rgba(251,246,236,.55);
  padding-bottom: .2rem;
  opacity: .88;
  transition: opacity .35s var(--ease), gap .35s var(--ease), border-color .35s ease;
}
.cat-card:hover .meta .view { opacity: 1; gap: .9rem; border-color: rgba(251,246,236,.95); }

/* size variants */
.cat-card.sz-4 { grid-column: span 4; }
.cat-card.sz-3 { grid-column: span 3; }
.cat-card.sz-5 { grid-column: span 5; }
.cat-card.sz-6 { grid-column: span 6; }
.cat-card.sz-7 { grid-column: span 7; }
.cat-card.sz-8 { grid-column: span 8; }
.cat-card.tall .frame { aspect-ratio: 3 / 4.4; }
.cat-card.short .frame { aspect-ratio: 4 / 3; }
.cat-card.wide  .frame { aspect-ratio: 16 / 9; }

/* Lightbox / modal */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(56, 39, 51, .94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
  overflow-y: auto;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 4rem);
  color: var(--paper);
}

.lightbox-head {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(251,246,236,.18);
  margin-bottom: 3rem;
}
.lightbox-head .label { color: rgba(251,246,236,.6); }
.lightbox-head h2 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  margin: .6rem 0 0;
  color: var(--paper);
  font-style: italic;
}

.lightbox-close {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .72rem;
  color: var(--paper);
  border: 1px solid rgba(251,246,236,.4);
  border-radius: 999px;
  padding: .65rem 1.2rem;
  transition: background .25s ease, color .25s ease;
}
.lightbox-close:hover { background: var(--paper); color: var(--aubergine); }
.lightbox-close .x { display: inline-block; transition: transform .3s ease; }
.lightbox-close:hover .x { transform: rotate(90deg); }

.lightbox-grid {
  columns: 3;
  column-gap: 1.2rem;
}
.lightbox-grid .item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(251,246,236,.06);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.lightbox-grid .item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(40,28,38,.35);
}
.lightbox-grid .item img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-empty {
  text-align: center;
  padding: 4rem 0;
  font-family: var(--serif-display);
  font-style: italic;
  color: rgba(251,246,236,.7);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  background:
    radial-gradient(circle at 80% 30%, var(--blush) 0%, transparent 45%),
    var(--paper);
  padding-bottom: clamp(3rem, 6vh, 6rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-top: clamp(3rem, 5vh, 5rem);
}

.about-year-block {
  position: relative;
  text-align: center;
}
.about-year-block .est {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--mauve-deep);
  letter-spacing: .04em;
}
.about-year-block .y {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(8rem, 24vw, 22rem);
  line-height: .85;
  color: var(--aubergine);
  letter-spacing: -.03em;
  margin: .2rem 0 0;
}
.about-year-block .small-script {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--mauve-deep);
  font-size: 1.4rem;
  margin-top: .6rem;
}

.about-text h2 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--aubergine);
  margin: 0 0 1.4rem;
}
.about-text h2 em { font-style: italic; color: var(--mauve-deep); font-weight: 400; }
.about-text p {
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 36rem;
  margin-bottom: 1.2rem;
}
.about-text p:first-letter {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 3em;
  line-height: .9;
  float: left;
  padding: .15em .15em 0 0;
  color: var(--mauve-deep);
}
.about-text p ~ p:first-letter {
  font-size: 1em; float: none; padding: 0; color: inherit;
  font-family: inherit; font-style: inherit; font-weight: inherit;
}

/* Principles */
.principles {
  background: var(--cream);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.principles h2 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--aubergine);
  text-align: center;
  margin: 1rem 0 4rem;
  letter-spacing: -.012em;
}
.principles h2 em { font-style: italic; color: var(--mauve-deep); font-weight: 400; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.principle {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.principle .num {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--mauve-deep);
  letter-spacing: .15em;
}
.principle .ico {
  margin: 1.6rem auto 1.4rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--aubergine);
}
.principle h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--aubergine);
  margin: 0 0 .8rem;
}
.principle p {
  font-size: 1rem;
  max-width: 22rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Quote */
.about-quote {
  text-align: center;
  padding-top: clamp(5rem, 10vh, 9rem);
  padding-bottom: clamp(5rem, 10vh, 9rem);
}
.about-quote blockquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
  color: var(--aubergine);
  margin: 0 auto;
  max-width: 28ch;
  position: relative;
}
.about-quote blockquote::before,
.about-quote blockquote::after {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 4rem;
  line-height: 0;
  color: var(--mauve);
  opacity: .55;
}
.about-quote blockquote::before { content: "“"; vertical-align: -.4em; padding-right: .15em; }
.about-quote blockquote::after  { content: "”"; vertical-align: -.4em; padding-left: .15em; }
.about-quote cite {
  display: block;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-style: normal;
  color: var(--mauve-deep);
  margin-top: 2rem;
}

/* Stats strip */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
  background: var(--paper);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-grid > div { border-left: 1px solid var(--line); padding: .4rem 0; }
.stats-grid > div:first-child { border-left: 0; }

.stat-num {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--aubergine);
  letter-spacing: -.012em;
}
.stat-num em { font-style: italic; font-weight: 400; color: var(--mauve-deep); }
.stat-label {
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .68rem;
  color: var(--mauve-deep);
  margin-top: .85rem;
}

/* ============================================
   CONTACTS PAGE
   ============================================ */
.contacts-section { padding-bottom: clamp(5rem, 10vh, 9rem); }

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contacts-info h2 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--aubergine);
  margin: 0 0 1.4rem;
}
.contacts-info p {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 30rem;
  margin-bottom: 2rem;
}

.contact-list {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.contact-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-item:last-child { border-bottom: 1px solid var(--line); }

.contact-item .label { color: var(--mauve-deep); }
.contact-item .value {
  font-family: var(--serif-display);
  font-size: 1.2rem;
  color: var(--aubergine);
  line-height: 1.4;
}
.contact-item .value a {
  border-bottom: 1px solid var(--line);
  transition: border-color .3s ease, color .3s ease;
}
.contact-item .value a:hover { border-color: var(--aubergine); color: var(--ink); }

.socials-row {
  margin-top: 2.4rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.social-pill {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .68rem;
  color: var(--aubergine);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.social-pill svg { width: 14px; height: 14px; }
.social-pill:hover { background: var(--aubergine); color: var(--paper); border-color: var(--aubergine); }

/* Form */
.form-card {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3.4rem);
  border-radius: 4px;
  position: relative;
  border: 1px solid var(--line);
}
.form-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--mauve), var(--blush), var(--mauve));
  opacity: .8;
}

.form-card h3 {
  font-family: var(--serif-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--aubergine);
  margin: 0 0 .35rem;
}
.form-card .form-sub {
  font-size: .98rem; color: var(--mauve-deep);
  margin-bottom: 1.8rem;
}

.field {
  position: relative;
  margin-bottom: 1.4rem;
}
.field label {
  display: block;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .65rem;
  color: var(--mauve-deep);
  margin-bottom: .55rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  color: var(--aubergine);
  outline: none;
  transition: border-color .3s ease;
  border-radius: 0;
  appearance: none;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  padding-top: 1rem;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23382733' stroke-width='1.2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right .25rem center;
  background-size: 16px;
  padding-right: 2rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--aubergine);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--mauve);
  font-style: italic;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form-actions {
  margin-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.form-note {
  font-style: italic;
  font-family: var(--serif-display);
  color: var(--mauve-deep);
  font-size: .95rem;
}

.form-success {
  display: none;
  padding: 1.2rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mauve);
  font-style: italic;
  font-family: var(--serif-display);
  color: var(--aubergine);
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
  margin-top: 1.4rem;
  border-radius: 3px;
}
.form-success a {
  color: var(--aubergine);
  font-weight: 600;
  border-bottom: 1px solid var(--mauve);
}
.form-success a:hover { border-color: var(--aubergine); }
.form-success.is-shown { display: block; animation: fadein .5s ease; }
.form-success.is-error {
  border-left-color: #a3645b;
  background: rgba(163, 100, 91, 0.06);
  color: #6b3f3a;
}
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-fallback {
  margin: 1.2rem 0 0;
  font-size: .92rem;
  color: var(--mauve-deep);
  text-align: center;
  font-style: italic;
  font-family: var(--serif-display);
}
.form-fallback a {
  color: var(--aubergine);
  border-bottom: 1px solid var(--line);
}
.form-fallback a:hover { border-color: var(--aubergine); }

/* Map */
.map-block {
  margin-top: var(--section-y);
}
.map-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--cream);
  aspect-ratio: 21 / 9;
}
.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(.45) sepia(.15) contrast(.95);
  transition: filter .5s ease;
}
.map-card:hover iframe { filter: grayscale(0) sepia(0) contrast(1); }

.map-fallback {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 3rem;
  height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 8vh, 7rem) 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(246,239,226,.05) 1px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: .5;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 2; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246,239,226,.15);
}
.footer-brand {
  display: flex; align-items: center; gap: 1rem;
}
.footer-brand img {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper);
  padding: 4px;
  mix-blend-mode: normal;
  object-fit: cover;
}
.footer-brand .word {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--paper);
  line-height: 1;
}
.footer-brand .word small {
  display: block;
  font-family: var(--serif-label);
  font-style: normal;
  font-size: .55rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-top: .4rem;
}

.footer-tag {
  margin-top: 1.4rem;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(246,239,226,.75);
  max-width: 24rem;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .68rem;
  color: var(--mauve);
  margin: 0 0 1.4rem;
  font-weight: 400;
}
.footer-col ul li { margin-bottom: .8rem; }
.footer-col a {
  font-family: var(--serif-display);
  font-size: 1.05rem;
  color: rgba(246,239,226,.85);
  transition: color .3s ease;
  display: inline-flex; align-items: center; gap: .5rem;
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  margin-top: 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--serif-label);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .68rem;
  color: rgba(246,239,226,.55);
}

.footer-socials {
  display: flex; gap: .8rem;
}
.footer-socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(246,239,226,.3);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.footer-socials a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer-socials svg { width: 14px; height: 14px; }

/* ============================================
   SCROLL REVEALS
   ============================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"].is-in { transition-delay: .1s; }
.reveal[data-delay="2"].is-in { transition-delay: .2s; }
.reveal[data-delay="3"].is-in { transition-delay: .3s; }
.reveal[data-delay="4"].is-in { transition-delay: .4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .hero-grid,
  .intro-grid,
  .story-grid,
  .about-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-side-text { display: none; }
  .signatures-grid,
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .sig-card.span-7,
  .sig-card.span-5,
  .sig-card.span-4,
  .sig-card.span-8,
  .sig-card.span-6,
  .sig-card.span-12 { grid-column: span 6; }
  .cat-card.sz-3, .cat-card.sz-4, .cat-card.sz-5,
  .cat-card.sz-6, .cat-card.sz-7, .cat-card.sz-8 { grid-column: span 6; }
  .lightbox-grid { columns: 2; }
  .principles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .stats-grid > div:nth-child(3) { border-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-y: clamp(4rem, 10vh, 7rem); }
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; gap: 0;
    padding: 1.4rem var(--gutter) 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav-list .nav-link {
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .site-header.is-open .nav-list .nav-link:last-child { border-bottom: 0; }
  .signatures-grid, .cat-grid { grid-template-columns: 1fr; }
  .sig-card.span-7, .sig-card.span-5, .sig-card.span-4,
  .sig-card.span-8, .sig-card.span-6, .sig-card.span-12,
  .cat-card.sz-3, .cat-card.sz-4, .cat-card.sz-5,
  .cat-card.sz-6, .cat-card.sz-7, .cat-card.sz-8 { grid-column: span 1; }
  .lightbox-grid { columns: 1; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-left: 0; border-top: 1px solid var(--line); padding-top: 1.4rem; }
  .stats-grid > div:first-child { border-top: 0; padding-top: .4rem; }
  .contact-item { grid-template-columns: 1fr; gap: .35rem; }
  .hero-meta { gap: 1rem 2rem; }
}
