/* FRAYDA — Florence Leather Atelier. Styles (ported verbatim from the design prototype). */

:root {
  --bg: #F5F3EE;
  --ink: #1A1714;
  --leather: #A67C52;
  --stone: #C4B9A8;
  --sand: #E8E2D8;
  --cream: #F0EDE6;
  --border: #D5CFC5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input, textarea, select { font-family: inherit; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stagger > * { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* ─── Surfaces & textures ───────────────────────────────── */

.leather-surface {
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(255, 220, 180, 0.25), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(60, 35, 18, 0.35), transparent 65%),
    radial-gradient(ellipse 50% 40% at 60% 40%, rgba(200, 140, 90, 0.2), transparent 70%),
    linear-gradient(135deg, #8a5e3a 0%, #a67c52 35%, #6f4a2c 70%, #8a5e3a 100%);
  position: relative;
  overflow: hidden;
}
.leather-surface::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle at 30% 40%, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 4px),
    repeating-radial-gradient(circle at 70% 60%, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.leather-surface::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%, transparent 100%);
  pointer-events: none;
}

.leather-closeup {
  background:
    radial-gradient(ellipse 90% 70% at 20% 30%, rgba(220, 180, 140, 0.4), transparent 55%),
    radial-gradient(ellipse 80% 60% at 75% 75%, rgba(80, 50, 30, 0.45), transparent 60%),
    linear-gradient(160deg, #9c7048 0%, #b88a5d 40%, #7d553a 80%, #9c7048 100%);
  position: relative;
  overflow: hidden;
}
.leather-closeup::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,0.04) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
  opacity: 0.8;
}
.leather-closeup::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 40%, rgba(0,0,0,0.15));
}

.florence-arch {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.florence-arch .palazzo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ddd2bf 0%, #c4b9a8 100%);
}
.florence-arch .arch-shape {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 58%;
  height: 78%;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  box-shadow:
    inset 0 8px 20px rgba(0,0,0,0.08),
    0 -2px 0 rgba(0,0,0,0.06);
}
.florence-arch .arch-inner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 44%;
  height: 64%;
  background: linear-gradient(180deg, #b8ac99 0%, #8e8270 100%);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  box-shadow: inset 0 14px 32px rgba(0,0,0,0.25);
}
.florence-arch .ledge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5%;
  background: linear-gradient(180deg, #a89a85, #8a7d6a);
}
.florence-arch .keystone {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18%;
  width: 8%;
  height: 6%;
  background: #a89a85;
  border-radius: 1px;
}

/* Library swatches — 12 unique compositions */
.sw { position: relative; overflow: hidden; }
.sw-1 { background: radial-gradient(circle at 25% 25%, #c89968 0%, #a67c52 40%, #7a5535 100%); }
.sw-2 { background: linear-gradient(140deg, #1A1714 0%, #3a302a 50%, #5a4a3e 100%); }
.sw-3 { background: radial-gradient(ellipse at 70% 30%, #e8d8c2 0%, #c4b9a8 60%, #9e9080 100%); }
.sw-4 { background: linear-gradient(160deg, #8a5e3a 0%, #a67c52 100%); }
.sw-4::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 80%, rgba(245,243,238,0.6) 0%, transparent 50%); }
.sw-5 { background: linear-gradient(180deg, #E8E2D8 0%, #C4B9A8 50%, #A67C52 100%); }
.sw-6 { background: radial-gradient(circle at 40% 60%, #6b4a2c 0%, #3a2818 60%, #1f140c 100%); }
.sw-7 { background: linear-gradient(45deg, #c4b9a8 0%, #e8d8c2 50%, #f0ede6 100%); }
.sw-7::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 14px); }
.sw-8 { background: radial-gradient(ellipse at 50% 0%, #4a3424 0%, #2a1d14 80%); }
.sw-9 { background: linear-gradient(135deg, #d4a574 0%, #a67c52 40%, #6b4a2c 100%); }
.sw-10 { background: linear-gradient(180deg, #2a1d14 0%, #4a3424 40%, #8a5e3a 100%); }
.sw-11 { background:
  radial-gradient(circle at 20% 80%, #e8d8c2 0%, transparent 50%),
  radial-gradient(circle at 80% 20%, #a67c52 0%, transparent 50%),
  #c4b9a8;
}
.sw-12 { background: linear-gradient(160deg, #5a4a3e 0%, #8a7060 60%, #c4b9a8 100%); }

/* Journal palettes */
.jp-1 { background: linear-gradient(135deg, #c89968, #6b4a2c); }
.jp-2 { background: radial-gradient(ellipse at 30% 70%, #e8d8c2, #a67c52 70%); }
.jp-3 { background: linear-gradient(180deg, #f0ede6, #c4b9a8); }
.jp-4 { background: linear-gradient(45deg, #3a302a, #8a7060); }
.jp-5 { background: radial-gradient(circle at 70% 30%, #d4a574, #4a3424 80%); }
.jp-6 { background: linear-gradient(135deg, #8a5e3a 0%, #c89968 100%); }
.jp-7 { background: linear-gradient(180deg, #c4b9a8 0%, #8a7060 100%); }
.jp-8 { background: radial-gradient(ellipse at 20% 20%, #f0ede6, #a67c52 80%); }

/* Library card hover behavior */
.lib-card { position: relative; overflow: hidden; cursor: pointer; }
.lib-card .swatch { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.2,0.6,0.2,1); }
.lib-card:hover .swatch { transform: scale(1.04); }
.lib-card .overlay {
  position: absolute; inset: 0;
  background: rgba(26, 23, 20, 0.72);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.lib-card:hover .overlay { opacity: 1; }
.lib-card .overlay h4 {
  color: var(--bg);
  font-style: italic;
  font-size: 26px;
  margin-bottom: 12px;
  transform: translateY(10px);
  transition: transform 0.5s ease 0.05s;
}
.lib-card .overlay span {
  color: rgba(245, 243, 238, 0.65);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform 0.5s ease 0.1s;
}
.lib-card:hover .overlay h4,
.lib-card:hover .overlay span { transform: translateY(0); }

/* Underline links */
.ul-link {
  position: relative;
  color: var(--leather);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
  cursor: pointer;
}
.ul-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.ul-link:hover::after { transform: scaleX(0.6); }

/* ─── Navigation ────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 100;
  display: flex; align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid {
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-links {
  display: flex; gap: 24px; align-items: center;
  flex-wrap: nowrap;
}
.nav-links a { white-space: nowrap; cursor: pointer; }
.nav-links a {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 24px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger span:nth-child(2) { width: 70%; align-self: flex-end; }

@media (max-width: 900px) {
  .nav { height: 60px; }
  .nav-inner { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 32px 40px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), visibility 0s linear 0.5s;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  gap: 4px;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), visibility 0s linear 0s;
}
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--bg);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.43s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.50s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.57s; }
.mobile-close {
  position: absolute; top: 18px; right: 24px;
  color: var(--bg);
  font-size: 28px; line-height: 1;
  cursor: pointer;
}
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* ─── Buttons ───────────────────────────────────────────── */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s ease;
}
.btn-primary:hover { background: #2A2520; }
.btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px;
  border: 1px solid var(--bg);
  color: var(--bg);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}
.btn-outline-light:hover { background: var(--bg); color: var(--ink); }

/* ─── Sections ──────────────────────────────────────────── */

section { position: relative; }
.sec-pad { padding: 180px 0 160px; }
.sec-pad-tight { padding: 120px 0 100px; }
@media (max-width: 900px) {
  .sec-pad { padding: 100px 0 96px; }
  .sec-pad-tight { padding: 80px 0 80px; }
}
.sec-center { text-align: center; }
.sec-center .eyebrow { display: inline-block; margin-bottom: 28px; }
.hr-mini { width: 80px; height: 1px; background: var(--border); margin: 48px auto 0; }

/* ─── Page hero (shared, for non-home pages) ───────────── */

.page-hero {
  padding: 200px 0 100px;
}
.page-hero .eyebrow { color: var(--leather); margin-bottom: 28px; display: inline-block; }
.page-hero h1 { font-size: clamp(36px, 4.2vw, 56px); margin-bottom: 28px; max-width: 880px; }
.page-hero p { font-size: 18px; color: rgba(26,23,20,0.7); max-width: 580px; line-height: 1.65; }
@media (max-width: 900px) {
  .page-hero { padding: 120px 0 64px; }
}

/* ─── Home — Hero ───────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  position: relative;
  padding-top: 72px;
}
.hero-image { position: relative; }
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px;
  max-width: 640px;
}
.hero-text .eyebrow { color: var(--leather); margin-bottom: 32px; }
.hero-text h1 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 28px; letter-spacing: -0.015em; }
.hero-text .lede { font-size: 18px; line-height: 1.65; color: rgba(26, 23, 20, 0.72); max-width: 480px; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-footnote {
  position: absolute;
  bottom: 32px; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.4;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 70vh; }
  .hero-text { padding: 64px 24px 96px; }
}

/* Stagger */
.stagger > * { opacity: 0; animation: fadeUp 1s cubic-bezier(0.2,0.6,0.2,1) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.25s; }
.stagger > *:nth-child(3) { animation-delay: 0.4s; }
.stagger > *:nth-child(4) { animation-delay: 0.55s; }
.stagger > *:nth-child(5) { animation-delay: 0.7s; }
.stagger > *:nth-child(6) { animation-delay: 0.85s; }

.arrow { display: inline-block; transition: transform 0.4s ease; }
.btn-primary:hover .arrow, .ul-link:hover .arrow, .cta-link:hover .arrow { transform: translateX(4px); }

/* ─── Services grid (home) ──────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 88px;
  text-align: left;
}
.service-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 64px; line-height: 1;
  color: var(--leather); opacity: 0.32;
  margin-bottom: 28px;
}
.service-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: 0;
}
.service-card p { font-size: 15px; color: rgba(26,23,20,0.65); line-height: 1.7; margin-bottom: 24px; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 0; margin-top: 56px; }
  .service-card { padding: 40px 0; border-bottom: 1px solid var(--border); }
  .service-card:last-child { border-bottom: none; }
}

/* ─── Library grids ─────────────────────────────────────── */

.lib-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.lib-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.lib-head p { font-size: 16px; color: rgba(26,23,20,0.6); max-width: 460px; }
@media (max-width: 900px) {
  .lib-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* Home library — asymmetric 6 */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 16px;
}
.lib-grid > :nth-child(1) { grid-column: span 3; grid-row: span 4; }
.lib-grid > :nth-child(2) { grid-column: span 3; grid-row: span 3; }
.lib-grid > :nth-child(3) { grid-column: span 2; grid-row: span 3; }
.lib-grid > :nth-child(4) { grid-column: span 2; grid-row: span 3; }
.lib-grid > :nth-child(5) { grid-column: span 2; grid-row: span 3; }
.lib-grid > :nth-child(6) { grid-column: span 6; grid-row: span 3; }
@media (max-width: 900px) {
  .lib-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .lib-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
}
.lib-foot { text-align: center; margin-top: 72px; }

/* Library page — full grid */
.lib-page-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 160px;
  gap: 20px;
}
/* asymmetric placement for 12 */
.lib-page-grid > :nth-child(1)  { grid-column: span 3; grid-row: span 3; }
.lib-page-grid > :nth-child(2)  { grid-column: span 3; grid-row: span 2; }
.lib-page-grid > :nth-child(3)  { grid-column: span 3; grid-row: span 2; }
.lib-page-grid > :nth-child(4)  { grid-column: span 2; grid-row: span 3; }
.lib-page-grid > :nth-child(5)  { grid-column: span 2; grid-row: span 2; }
.lib-page-grid > :nth-child(6)  { grid-column: span 2; grid-row: span 2; }
.lib-page-grid > :nth-child(7)  { grid-column: span 4; grid-row: span 3; }
.lib-page-grid > :nth-child(8)  { grid-column: span 2; grid-row: span 2; }
.lib-page-grid > :nth-child(9)  { grid-column: span 2; grid-row: span 3; }
.lib-page-grid > :nth-child(10) { grid-column: span 2; grid-row: span 2; }
.lib-page-grid > :nth-child(11) { grid-column: span 2; grid-row: span 2; }
.lib-page-grid > :nth-child(12) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  .lib-page-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .lib-page-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
}

.lib-page-card {
  position: relative; overflow: hidden; cursor: pointer;
}
.lib-page-card .swatch { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.2,0.6,0.2,1); }
.lib-page-card:hover .swatch { transform: scale(1.03); }
.lib-page-card .meta {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  color: var(--bg);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  z-index: 2;
}
.lib-page-card .meta .name { font-size: 15px; font-weight: 500; }
.lib-page-card .meta .cat { font-size: 11px; opacity: 0.78; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.lib-page-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.lib-page-card .hover-cta {
  position: absolute; inset: 0;
  background: rgba(26,23,20,0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.lib-page-card:hover .hover-cta { opacity: 1; }
.lib-page-card .hover-cta span {
  color: var(--bg);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

/* Filter pills */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 56px;
}
.filter-pill {
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: rgba(26,23,20,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-pill:hover { color: var(--ink); border-color: var(--ink); }
.filter-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lib-page-card.hidden { display: none; }

/* ─── Process strip (home) ──────────────────────────────── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  margin-top: 88px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 6%; right: 6%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: left; }
.step .num {
  font-family: 'Playfair Display', serif;
  font-size: 48px; line-height: 1;
  color: var(--leather); opacity: 0.28;
  margin-bottom: 20px;
  background: var(--sand);
  display: inline-block;
  padding-right: 14px;
}
.step h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: 0.04em;
}
.step p { font-size: 13.5px; color: rgba(26,23,20,0.6); line-height: 1.65; }
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .process-grid::before { display: none; }
}
@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ─── Materials & 2-column blocks ───────────────────────── */

.materials {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 96px;
  align-items: center;
}
.materials .visual { aspect-ratio: 4 / 5; border-radius: 2px; }
.materials .copy h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 28px; }
.materials .copy p { font-size: 16px; line-height: 1.8; color: rgba(26,23,20,0.7); margin-bottom: 32px; }
.materials .copy .eyebrow { color: var(--stone); margin-bottom: 24px; }
.materials .links { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) {
  .materials { grid-template-columns: 1fr; gap: 56px; }
}

/* ─── Trust ─────────────────────────────────────────────── */

.trust h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 28px auto 36px; max-width: 760px; }
.trust .lede { font-size: 17px; line-height: 1.75; color: rgba(26,23,20,0.7); max-width: 580px; margin: 0 auto 64px; }
.markers { display: inline-flex; align-items: center; gap: 0; }
.markers span {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(26,23,20,0.62);
  padding: 0 28px;
  border-right: 1px solid var(--border);
}
.markers span:last-child { border-right: none; }
@media (max-width: 640px) {
  .markers { flex-direction: column; gap: 16px; }
  .markers span { border-right: none; padding: 0; }
}

/* ─── Made in Italy ─────────────────────────────────────── */

.mii { display: grid; grid-template-columns: 40% 60%; gap: 96px; align-items: center; }
.mii .copy .eyebrow { color: var(--stone); margin-bottom: 24px; }
.mii .copy h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 28px; }
.mii .copy p { font-size: 16px; line-height: 1.8; color: rgba(26,23,20,0.7); margin-bottom: 20px; }
.mii .addr { font-size: 13px; color: var(--stone); letter-spacing: 0.02em; }
.mii .visual { aspect-ratio: 5 / 4; border-radius: 2px; }
@media (max-width: 900px) {
  .mii { grid-template-columns: 1fr; gap: 56px; }
  .mii .copy { order: 1; }
  .mii .visual { order: 2; }
}

/* ─── CTA dark ──────────────────────────────────────────── */

.cta { background: var(--ink); color: var(--bg); text-align: center; padding: 180px 0; }
.cta h2 { color: var(--bg); font-size: clamp(32px, 3.8vw, 48px); margin-bottom: 32px; max-width: 760px; margin-left: auto; margin-right: auto; }
.cta p { font-size: 18px; color: rgba(245,243,238,0.65); max-width: 520px; margin: 0 auto 56px; line-height: 1.7; }
.cta-row { display: inline-flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.cta-link {
  color: rgba(245,243,238,0.6);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid transparent; padding-bottom: 4px;
  cursor: pointer;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.cta-link:hover { color: var(--bg); border-bottom-color: rgba(245,243,238,0.6); }
@media (max-width: 900px) { .cta { padding: 120px 0; } }

/* ─── Footer ────────────────────────────────────────────── */

footer { background: var(--sand); padding: 96px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; }
.foot-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(26,23,20,0.58); font-weight: 500;
  margin-bottom: 24px;
}
.foot-brand .wordmark { font-size: 16px; margin-bottom: 16px; display: block; }
.foot-brand .small { font-size: 13px; color: rgba(26,23,20,0.62); line-height: 1.7; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: rgba(26,23,20,0.72); transition: color 0.25s; cursor: pointer; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(26,23,20,0.58); letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 56px; }
}
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

/* ─── Model Detail ──────────────────────────────────────── */

.pdp {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 80px;
  align-items: start;
}
.pdp-back { display: inline-block; margin-bottom: 32px; font-size: 13px; }
.pdp .gallery-main { aspect-ratio: 4 / 5; }
.pdp .gallery-thumbs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px;
}
.pdp .gallery-thumbs > div { aspect-ratio: 1 / 1; }
.pdp .info { padding-top: 8px; position: sticky; top: 96px; }
.pdp .info .eyebrow { color: var(--leather); margin-bottom: 20px; display: inline-block; }
.pdp .info h1 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.pdp .info .desc { font-size: 16px; color: rgba(26,23,20,0.7); line-height: 1.75; margin-bottom: 32px; }
.pdp .divider { height: 1px; background: var(--border); margin: 32px 0; }
.pdp h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(26,23,20,0.62);
}
.spec-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(213, 207, 197, 0.5);
}
.spec-row:last-child { border-bottom: none; }
.spec-row .label { color: rgba(26,23,20,0.62); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.spec-row .value { color: rgba(26,23,20,0.85); line-height: 1.6; }
.pdp .price-note { font-style: italic; font-size: 14px; color: rgba(26,23,20,0.55); line-height: 1.6; margin: 24px 0 32px; }
.pdp .ctas { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pdp .ctas .btn-primary { width: 100%; justify-content: space-between; padding: 0 28px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 40px; }
  .pdp .info { position: static; }
}

/* ─── Customization axes (private label) ────────────────── */

.axes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); margin-top: 72px; }
.axis {
  background: var(--bg);
  padding: 56px 40px;
}
.axis .num { font-family: 'Playfair Display', serif; font-size: 52px; color: var(--leather); opacity: 0.32; line-height: 1; margin-bottom: 24px; }
.axis h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.axis p { font-size: 14.5px; color: rgba(26,23,20,0.65); line-height: 1.7; }
@media (max-width: 900px) {
  .axes-grid { grid-template-columns: 1fr; }
}

/* ─── Alternating editorial sections ────────────────────── */

.alt-row {
  display: grid; grid-template-columns: 50% 50%; gap: 96px;
  align-items: center;
  margin-bottom: 140px;
}
.alt-row:last-child { margin-bottom: 0; }
.alt-row.reverse > :first-child { order: 2; }
.alt-row .visual { aspect-ratio: 4 / 5; }
.alt-row .copy .eyebrow { color: var(--stone); margin-bottom: 20px; }
.alt-row .copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 24px; }
.alt-row .copy h3 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 20px; }
.alt-row .copy p { font-size: 16px; color: rgba(26,23,20,0.7); line-height: 1.8; margin-bottom: 16px; }
.alt-row .step-num {
  font-family: 'Playfair Display', serif;
  font-size: 110px; line-height: 0.9;
  color: var(--leather); opacity: 0.18;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .alt-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .alt-row.reverse > :first-child { order: 0; }
}

/* ─── Process page deep ─────────────────────────────────── */

.proc-subblock {
  display: grid; grid-template-columns: auto 1fr; gap: 16px 24px;
  margin-top: 20px;
}
.proc-subblock dt {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--leather);
  font-weight: 500;
  padding-top: 4px;
}
.proc-subblock dd {
  margin: 0;
  font-size: 15.5px;
  color: rgba(26,23,20,0.78);
  line-height: 1.7;
}

/* ─── Materials cards ───────────────────────────────────── */

.mat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  margin-top: 64px;
}
.mat-card .visual { aspect-ratio: 4 / 3; margin-bottom: 32px; }
.mat-card h3 { font-family: 'Playfair Display', serif; font-size: 26px; margin-bottom: 16px; }
.mat-card p { font-size: 15.5px; color: rgba(26,23,20,0.7); line-height: 1.75; }
@media (max-width: 900px) {
  .mat-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ─── List rows (custom dev capabilities) ───────────────── */

.row-list {
  border-top: 1px solid var(--border);
  margin-top: 56px;
}
.row-list > div {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--ink);
}
@media (max-width: 600px) {
  .row-list > div { font-size: 20px; padding: 20px 0; }
}

/* ─── Accordion / FAQ ───────────────────────────────────── */

.accordion { border-top: 1px solid var(--border); margin-top: 48px; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.3s ease;
}
.acc-q:hover { color: var(--leather); }
.acc-q .acc-mark {
  flex-shrink: 0;
  width: 16px; height: 16px;
  position: relative;
}
.acc-q .acc-mark::before,
.acc-q .acc-mark::after {
  content: ''; position: absolute;
  top: 50%; left: 0; right: 0; height: 1px;
  background: currentColor;
  transition: transform 0.4s ease;
}
.acc-q .acc-mark::after { transform: rotate(90deg); }
.acc-item.open .acc-q .acc-mark::after { transform: rotate(0deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.acc-body-inner {
  padding: 0 0 28px;
  font-size: 15px; color: rgba(26,23,20,0.7); line-height: 1.75;
  max-width: 760px;
}
.acc-item.open .acc-body { max-height: 400px; }

/* ─── Forms ─────────────────────────────────────────────── */

.form-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 96px;
  margin-top: 72px;
}
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; gap: 64px; }
}
.form-field { margin-bottom: 36px; }
.form-field label {
  display: block;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(26,23,20,0.62); font-weight: 500;
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 10px 0;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.3s ease;
  outline: none;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--ink); }
.form-field textarea { min-height: 120px; line-height: 1.6; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  padding: 10px 20px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent; color: rgba(26,23,20,0.65);
  cursor: pointer;
  transition: all 0.3s ease;
}
.radio-pill:hover { color: var(--ink); }
.radio-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.form-submit { width: 100%; height: 56px; margin-top: 16px; }
.form-submit[disabled] { opacity: 0.6; cursor: default; }
.form-error {
  color: #9a3412; font-size: 14px; margin-top: 16px; display: none;
}
.form-error.show { display: block; }

.contact-info h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(26,23,20,0.62); font-weight: 500;
  margin-bottom: 14px;
}
.contact-info .block { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.contact-info .block:last-child { border-bottom: none; }
.contact-info .lines { font-size: 15px; line-height: 1.85; color: rgba(26,23,20,0.78); }

/* ─── Journal grid ──────────────────────────────────────── */

.jrn-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px 56px;
  margin-top: 72px;
}
.jrn-card .visual { aspect-ratio: 16 / 10; margin-bottom: 24px; transition: transform 0.6s; }
.jrn-card:hover .visual { transform: scale(1.02); }
.jrn-card .cat {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--leather); font-weight: 500;
  margin-bottom: 12px;
}
.jrn-card h3 { font-family: 'Playfair Display', serif; font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
.jrn-card p { font-size: 14.5px; color: rgba(26,23,20,0.6); line-height: 1.65; margin-bottom: 16px; }
.jrn-card { cursor: pointer; }
@media (max-width: 700px) {
  .jrn-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Inline toast */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--bg);
  padding: 16px 28px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Sectioned narrative (about) */
.prose {
  max-width: 720px; margin: 0 auto;
  font-size: 17px; color: rgba(26,23,20,0.78);
  line-height: 1.85;
}
.prose p { margin-bottom: 28px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(23px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
}
.prose h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 700;
  margin: 32px 0 12px;
}
.prose ul { margin: 0 0 28px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose em { color: rgba(26,23,20,0.6); }
.prose a { color: var(--leather); border-bottom: 1px solid rgba(166,124,82,0.35); }
.prose a:hover { border-bottom-color: var(--leather); }

/* Journal card meta + article page */
.jrn-meta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(26,23,20,0.58); margin-top: 14px;
}
.article-meta {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(26,23,20,0.62); margin-top: 24px;
}
.article-figure {
  height: clamp(220px, 38vw, 440px);
  border-radius: 2px;
}
.article-foot {
  max-width: 720px; margin: 64px auto 0;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 32px;
}

/* Visitor address tile */
.info-tile {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
@media (max-width: 900px) {
  .info-tile { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 32px; }
}

/* ─── Breadcrumbs ───────────────────────────────────────── */
.breadcrumb {
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(26,23,20,0.62);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(26,23,20,0.62); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ─── Accessibility ─────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; font-size: 13px; letter-spacing: 0.08em;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible {
  outline: 2px solid var(--leather);
  outline-offset: 3px;
}
.nav-cta:focus-visible, .btn-primary:focus-visible, .btn-outline-light:focus-visible { outline-offset: 4px; }

/* Honeypot — visually hidden, off-screen, not announced */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ─── Admin ─────────────────────────────────────────────── */
.del-btn {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #9a3412; border: 1px solid #d9c2b5; padding: 6px 12px;
  background: transparent; transition: all 0.25s ease; white-space: nowrap;
}
.del-btn:hover { background: #9a3412; color: var(--bg); border-color: #9a3412; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 120px 24px 80px; }
.admin-login { max-width: 360px; margin: 0 auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,23,20,0.62); }
.admin-table tr:hover td { background: var(--cream); }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-table .desc-cell { max-width: 360px; white-space: pre-wrap; }
@media (max-width: 760px) {
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tr { border: 1px solid var(--border); margin-bottom: 16px; padding: 8px; }
  .admin-table td { border: none; padding: 6px 8px; }
  .admin-table td::before { content: attr(data-label); display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,23,20,0.62); margin-bottom: 2px; }
}
