/* ========================================
   Variables
   ======================================== */
:root {
  --bone: #EDE6D3;
  --paper: #F7F4EC;
  --charcoal: #17150F;
  --charcoal-soft: #2A271F;
  --brass: #A9822F;
  --brass-bright: #C79A3E;
  --moss: #545E3F;
  --stone: #8C8672;
  --line: rgba(23,21,15,0.14);
  --max: 1200px;
}

/* ========================================
   Reset & Base
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--charcoal);
  font-family: 'Archivo', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.mono {
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright));
  z-index: 300;
}

/* ========================================
   Rivet Motif
   ======================================== */
.rivet-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
}
.rivet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 1px rgba(169,130,47,0.25);
  flex-shrink: 0;
}
.rivet.dim { background: var(--stone); opacity: .5; }

/* ========================================
   Header & Navigation
   ======================================== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, padding .3s ease, backdrop-filter .4s ease;
}
header.scrolled {
  background: rgba(247,244,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 16px 40px;
}
.brandmark {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: 0.01em;
  transition: color .4s ease;
}
header.scrolled .brandmark { color: var(--charcoal); }
.brandmark a { color: inherit; }
.label-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--charcoal);
  transition: background .4s ease, color .4s ease;
}
header.scrolled .label-badge { background: var(--charcoal); color: var(--bone); }

/* Desktop navigation */
nav.links {
  display: flex; gap: 34px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone);
  transition: color .4s ease;
}
header.scrolled nav.links { color: var(--charcoal-soft); }
nav.links a {
  opacity: 0.82;
  transition: opacity .25s ease, color .25s ease;
  position: relative;
  padding-bottom: 6px;
}
nav.links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--brass-bright);
  transition: width .3s cubic-bezier(.2,.7,.2,1);
}
nav.links a:hover { opacity: 1; color: var(--brass); }
nav.links a:hover::after { width: 100%; }
nav.links a.active { opacity: 1; color: var(--brass); }
nav.links a.active::after { width: 100%; background: var(--brass); }
header.scrolled nav.links a.active,
header.scrolled nav.links a:hover { color: var(--moss); }
header.scrolled nav.links a.active::after,
header.scrolled nav.links a:hover::after { background: var(--moss); }

/* ========================================
   Hamburger Button
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 60;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--bone);
  transition: background .4s ease, transform .3s ease;
}
header.scrolled .hamburger span { background: var(--charcoal); }

/* ========================================
   Sidebar (Mobile Nav)
   ======================================== */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.sidebar-menu {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100%;
  background: var(--charcoal);
  color: var(--bone);
  padding: 40px 30px;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 80;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-menu.open {
  transform: translateX(0);
}
.sidebar-close {
  background: none;
  border: none;
  color: var(--bone);
  font-size: 1.5rem;
  align-self: flex-end;
  cursor: pointer;
  padding: 0 0 10px 0;
}
.sidebar-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sidebar-menu nav a {
  opacity: 0.8;
  transition: opacity .2s, color .2s;
}
.sidebar-menu nav a:hover,
.sidebar-menu nav a.active {
  opacity: 1;
  color: var(--brass-bright);
}
.sidebar-menu .brandmark-side {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.sidebar-menu .brandmark-side span {
  display: block;
  font-size: 0.7rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 6px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 20%;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,21,15,0.55) 0%, rgba(23,21,15,0.08) 32%, rgba(23,21,15,0.05) 55%, rgba(23,21,15,0.72) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 40px 64px;
}
.eyebrow {
  font-size: 0.72rem;
  color: var(--bone);
  opacity: 0.85;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow .dash { width: 26px; height: 1px; background: var(--brass-bright); }
.hero h1 {
  font-size: clamp(3rem, 9vw, 7.2rem);
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass-bright);
}
.hero-sub {
  margin-top: 22px;
  max-width: 38ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(237,230,211,0.86);
}
.hero-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap;
  margin-top: 48px;
}
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(237,230,211,0.7);
}
.scroll-cue .line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--brass-bright), transparent);
  animation: dropline 2.2s ease-in-out infinite;
}
@keyframes dropline {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   Sections (General)
   ======================================== */
section { padding: 120px 0; position: relative; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; margin-bottom: 64px; flex-wrap: wrap;
}
.section-tag {
  font-size: 0.72rem; color: var(--brass);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.section-tag .dash { width: 26px; height: 1px; background: var(--brass); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 16ch; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========================================
   Home Intro (only on index)
   ======================================== */
.home-intro {
  background: var(--paper);
  padding: 80px 0;
}
.home-intro .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.home-intro h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 14ch;
  margin-bottom: 20px;
}
.home-intro p {
  max-width: 50ch;
  color: var(--stone);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}
.home-intro .btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================
   Philosophy
   ======================================== */
.philosophy { background: var(--paper); }
.philo-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start;
}
@media (max-width:860px) { .philo-grid { grid-template-columns: 1fr; gap: 44px; } }
.philo-lead {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--charcoal-soft);
}
.philo-lead .accent { color: var(--moss); font-style: italic; font-weight: 300; }
.philo-quote {
  margin-top: 28px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--brass);
  padding-left: 20px;
  border-left: 2px solid var(--brass);
}
.philo-notes { display: flex; flex-direction: column; gap: 34px; }
.philo-note .num { font-family: 'Space Mono', monospace; font-size: 0.72rem; color: var(--brass); display: block; margin-bottom: 8px; }
.philo-note p { color: var(--stone); font-size: 0.94rem; line-height: 1.6; max-width: 38ch; }
.philo-note h4 { font-family: 'Archivo'; font-weight: 600; font-size: 1rem; margin-bottom: 6px; color: var(--charcoal); }

/* ========================================
   Products
   ======================================== */
.products { background: var(--bone); }
.products .section-head { align-items: flex-start; }
.products-sub { max-width: 32ch; color: var(--stone); font-size: 0.92rem; line-height: 1.6; }
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width:900px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:560px) { .products-grid { grid-template-columns: 1fr; } }
.product-card {
  background: var(--paper);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(23,21,15,0.16);
}
.product-img { aspect-ratio: 4/5; background: var(--bone); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 20px 18px 22px; }
.product-body h3 { font-size: 1.06rem; font-weight: 500; margin-bottom: 8px; }
.product-body p { color: var(--stone); font-size: 0.86rem; line-height: 1.55; margin-bottom: 16px; }
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.product-price {
  font-family: 'Space Mono', monospace; font-size: 0.95rem;
  color: var(--charcoal); letter-spacing: 0.02em;
}
.product-stars { color: var(--brass); font-size: 0.78rem; letter-spacing: 1px; }
.order-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px;
  background: var(--charcoal); color: var(--bone);
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.order-btn:hover { background: var(--brass-bright); color: var(--charcoal); transform: translateY(-2px); }

/* ========================================
   Gallery
   ======================================== */
.gallery { background: var(--charcoal); color: var(--bone); }
.gallery .section-tag,
.gallery .section-tag .dash { color: var(--brass-bright); background: var(--brass-bright); }
.gallery .section-tag { color: var(--brass-bright); }
.gallery h2 { color: var(--bone); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width:900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gcell {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: #0e0d09;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.gcell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.gcell:hover img { transform: scale(1.045); }
.gcell-expand {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23,21,15,0.55);
  color: var(--bone);
  border-radius: 50%;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.gcell:hover .gcell-expand { opacity: 1; }
.gcaption {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--bone);
  opacity: 0.9;
}
.gcaption span.tag {
  background: rgba(23,21,15,0.55);
  padding: 5px 9px;
  backdrop-filter: blur(3px);
}

/* ========================================
   Lightbox (only on gallery page)
   ======================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15,13,9,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-stage {
  max-width: min(88vw, 880px); max-height: 82vh;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lightbox-stage img {
  max-width: 100%; max-height: 74vh;
  object-fit: contain; border-radius: 2px;
}
.lightbox-caption {
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bone); opacity: 0.85; text-align: center;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent; border: none; color: var(--bone);
  font-size: 1.3rem; cursor: pointer; padding: 16px;
  transition: color .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--brass-bright); }
.lightbox-close { top: 10px; right: 10px; font-size: 1.1rem; }
.lightbox-prev { left: 6px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.lightbox-next { right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
@media (max-width:640px) {
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

/* ========================================
   Craft / Details
   ======================================== */
.craft { background: var(--bone); color: var(--charcoal); }
.craft-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width:760px) { .craft-grid { grid-template-columns: 1fr; } }
.craft-item {
  background: var(--bone);
  padding: 44px 40px;
}
.craft-item .rivet-row { justify-content: flex-start; gap: 8px; margin-bottom: 20px; }
.craft-item h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 500; }
.craft-item p { color: var(--stone); font-size: 0.92rem; line-height: 1.6; max-width: 34ch; }

/* ========================================
   Services
   ======================================== */
.services { background: var(--paper); }
.services .section-head { align-items: flex-start; }
.services-sub { max-width: 34ch; color: var(--stone); font-size: 0.92rem; line-height: 1.6; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-bottom: 56px;
}
@media (max-width:760px) { .services-grid { grid-template-columns: 1fr; } }
.service-pill {
  background: var(--charcoal); color: var(--bone);
  padding: 30px 26px 26px;
  border-radius: 2px;
  position: relative;
}
.service-pill::before {
  content: "";
  position: absolute; top: 16px; left: 16px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--charcoal-soft);
}
.service-pill h4 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 1.12rem; margin-top: 14px;
}
.services-foot {
  display: flex; gap: 60px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.services-price, .services-areas { flex: 1; min-width: 240px; }
.services-price .mono, .services-areas .mono {
  font-size: 0.68rem; color: var(--brass); display: block; margin-bottom: 12px;
}
.services-price p { color: var(--stone); font-size: 0.92rem; line-height: 1.6; max-width: 34ch; }
.services-areas ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.services-areas li {
  color: var(--charcoal-soft); font-size: 0.92rem;
  padding-left: 16px; position: relative;
}
.services-areas li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brass);
}

/* ========================================
   Contact / CTA
   ======================================== */
.cta {
  background: var(--moss);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(237,230,211,0.14) 1.4px, transparent 1.4px);
  background-size: 34px 34px;
  opacity: 0.5;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 16ch; color: var(--bone); }
.cta-sub { margin-top: 14px; color: rgba(237,230,211,0.82); max-width: 42ch; font-size: 0.98rem; line-height: 1.6; }
.cta-contact {
  margin-top: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: 'Space Mono', monospace; font-size: 0.78rem; letter-spacing: 0.03em;
}
.cta-contact a { color: var(--bone); transition: color .25s ease; }
.cta-contact a:hover { color: var(--charcoal); }
.cta-contact .divider { opacity: 0.5; }
.cta-contact .fb { color: rgba(237,230,211,0.75); }

/* ========================================
   Buttons (global)
   ======================================== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bone); color: var(--charcoal);
  padding: 16px 26px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px;
  transition: transform .3s ease, background .3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--brass-bright); }
.btn::after { content: "→"; font-family: 'Archivo'; }

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--charcoal);
  color: var(--stone);
  padding: 56px 0 34px;
}
.foot-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(237,230,211,0.14);
  margin-bottom: 26px;
}
.foot-brand { font-family: 'Fraunces', serif; color: var(--bone); font-size: 1.6rem; }
.foot-tag { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--stone); margin-top: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col { font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.05em; }
.foot-col .head { color: var(--bone); text-transform: uppercase; margin-bottom: 12px; opacity: 0.9; }
.foot-col a, .foot-col span { display: block; color: var(--stone); margin-bottom: 8px; text-transform: none; letter-spacing: 0.02em; }
.foot-col a:hover { color: var(--brass-bright); }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.04em; color: var(--stone); opacity: 0.7;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 720px) {
  nav.links { display: none; }
  .hamburger { display: flex; }
  header { padding: 16px 20px; }
  .hero-content { padding: 0 20px 40px; }
  .wrap { padding: 0 20px; }
  section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .brandmark { font-size: 1rem; }
  .label-badge { width: 22px; height: 22px; font-size: 8px; }
}