/* =========================================================
   Guillermo Lainez Specialty Cakes
   Black granite + gold · script titling
   ========================================================= */

:root {
  /* Palette */
  --bg-0: #040806;          /* deep green-black */
  --bg-1: #0a120d;          /* dark forest granite base */
  --bg-2: #142018;          /* slightly lifted forest */
  --bg-3: #1d2a23;
  --vein: rgba(212, 175, 55, 0.06);
  --ink: #f2ece0;
  --ink-dim: #b8b1a3;
  --ink-faint: #7a7466;

  --gold: #d4af37;
  --gold-2: #e8c773;
  --gold-3: #b8862a;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --gold-grad: linear-gradient(135deg, #f5d97a 0%, #d4af37 45%, #b8862a 75%, #e8c773 100%);

  /* Typography */
  --f-script: 'Italianno', 'Allura', 'Great Vibes', cursive;
  --f-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --maxw: 1320px;
  --gut: clamp(1rem, 3vw, 2.5rem);
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --slow: 700ms;
  --med: 420ms;
  --fast: 220ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-1);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

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

a { color: var(--gold-2); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--gold); }

em { font-style: italic; color: var(--ink); }
strong { color: var(--gold-2); font-weight: 500; }

::selection { background: var(--gold); color: #1a1408; }

/* =========================================================
   Granite background — applied to body via layered gradients
   ========================================================= */
body {
  background:
    radial-gradient(1200px 800px at 20% 0%, #1a261e 0%, transparent 55%),
    radial-gradient(900px 700px at 100% 30%, #101e16 0%, transparent 50%),
    radial-gradient(1000px 800px at 0% 100%, #101f17 0%, transparent 55%),
    linear-gradient(180deg, #080f0a 0%, #050a07 100%);
  background-attachment: fixed;
}

/* Subtle gold-dust noise — pure CSS via repeating radial dots */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(212,175,55,0.05) 1px, transparent 1.5px),
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1.5px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 3px;
  opacity: 0.55;
  mix-blend-mode: screen;
}

/* =========================================================
   Reusable
   ========================================================= */
.script { font-family: var(--f-script); font-weight: 400; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  padding: 0 var(--gut);
  position: relative;
  z-index: 1;
}

.section__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 0.7rem;
  letter-spacing: 0.005em;
}
.section__title .script {
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 1.05;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 30px rgba(212,175,55,0.18);
}

.section__lede {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  margin: 0 auto;
  max-width: 56ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--fast) var(--ease), box-shadow var(--med) var(--ease), background var(--med) var(--ease), color var(--med) var(--ease);
  user-select: none;
  white-space: nowrap;
}
.btn--lg { padding: 1.1em 2.2em; font-size: 1rem; }

.btn--gold {
  background: var(--gold-grad);
  color: #1a1408;
  box-shadow: 0 8px 30px -10px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.35); color: #1a1408; }

.btn--ghost {
  background: transparent;
  color: var(--gold-2);
  border-color: rgba(212,175,55,0.5);
}
.btn--ghost:hover { background: rgba(212,175,55,0.08); border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(8,15,10,0.85) 0%, rgba(8,15,10,0.0) 100%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background var(--med) var(--ease), backdrop-filter var(--med) var(--ease), padding var(--med) var(--ease), border-color var(--med) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,15,10,0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  border-bottom-color: rgba(212,175,55,0.18);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.nav__brand:hover { color: var(--ink); }
.nav__mark { width: 38px; height: 38px; filter: drop-shadow(0 2px 10px rgba(212,175,55,0.25)); }
.nav__title { display: flex; flex-direction: column; line-height: 1; }
.nav__title-script {
  font-family: var(--f-script);
  font-size: 1.6rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
  padding-right: 0.18em;
}
.nav__title-sub {
  font-family: var(--f-sans);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav__links a {
  color: var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 0.4rem 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--med) var(--ease);
}
.nav__links a:hover { color: var(--gold-2); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.nav__cta {
  padding: 0.55em 1.2em;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 999px;
  color: var(--gold-2);
}
.nav__links a.nav__cta::after { display: none; }
.nav__links a.nav__cta:hover { background: rgba(212,175,55,0.1); border-color: var(--gold); color: var(--gold); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-2);
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: 0 0 auto 0;
  top: 64px;
  background: rgba(8,15,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.2rem;
  z-index: 60;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  color: var(--ink);
  padding: 1rem 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav__mobile a:last-child { border-bottom: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (min-width: 821px) {
  .nav__mobile { display: none !important; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--gut) 4rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero__granite {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 50% at 50% 30%, #142219 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 100%, #080f0a 0%, transparent 60%),
    linear-gradient(180deg, #0a120c 0%, #040806 100%);
}

/* Granite veins built from layered radial gradients & lines */
.hero__veins {
  position: absolute;
  inset: -10%;
  z-index: -2;
  opacity: 0.55;
  background:
    radial-gradient(2px 90px at 12% 30%, rgba(212,175,55,0.10), transparent 70%),
    radial-gradient(120px 2px at 80% 18%, rgba(212,175,55,0.07), transparent 70%),
    radial-gradient(2px 120px at 30% 80%, rgba(212,175,55,0.06), transparent 70%),
    radial-gradient(180px 2px at 60% 70%, rgba(212,175,55,0.05), transparent 70%),
    conic-gradient(from 30deg at 60% 40%, rgba(255,255,255,0.02), transparent 30%);
  filter: blur(0.5px);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Animated gold dust */
.hero__dust {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(245,217,122,0.4) 0, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(245,217,122,0.3) 0, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(245,217,122,0.35) 0, transparent 2px),
    radial-gradient(circle at 85% 25%, rgba(245,217,122,0.3) 0, transparent 2px),
    radial-gradient(circle at 15% 70%, rgba(245,217,122,0.25) 0, transparent 2px),
    radial-gradient(circle at 60% 15%, rgba(245,217,122,0.3) 0, transparent 2px);
  background-size: 200px 200px;
  animation: dustDrift 18s linear infinite;
  opacity: 0.55;
}

@keyframes dustDrift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-20px, -40px, 0); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark {
  width: clamp(110px, 14vw, 170px);
  height: auto;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 10px 40px rgba(212,175,55,0.25));
  animation: floatY 8s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}
.hero__title-script {
  font-family: var(--f-script);
  font-size: clamp(3.4rem, 13vw, 9rem);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 60px rgba(212,175,55,0.25);
  /* Italianno's "z" carries a long swash on the right + descenders below.
     Padding gives the glyph room so it isn't clipped by container overflow. */
  padding: 0.05em 0.18em 0.08em 0.02em;
  line-height: 1;
}
.hero__title-sub {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.5rem;
  padding-left: 0.55em; /* compensate letter-spacing */
}

.hero__rule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
  width: min(380px, 60%);
}
.hero__rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), transparent);
}
.hero__rule-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(212,175,55,0.6);
}

.hero__tagline {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--ink-dim);
  max-width: 38rem;
  margin: 0 0 2.2rem;
}
.hero__location {
  display: block;
  font-style: normal;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.8rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-faint);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.hero__scroll:hover { color: var(--gold-2); }
.hero__scroll-arrow {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--gold) 30%, var(--gold));
  position: relative;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
.hero__scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

@media (max-width: 600px) {
  .hero__scroll { display: none; }
}

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem);
  z-index: 1;
}

/* gold divider above */
.portfolio::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto 3rem;
  background: var(--gold-grad);
  opacity: 0.6;
}

.tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 999px;
  margin: 0 auto 2.5rem;
  background: rgba(14,24,18,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tabs { display: flex; }
.tabs-wrap { display: flex; justify-content: center; }

.portfolio > .tabs {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.tab {
  position: relative;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  padding: 0.7em 1.4em;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  transition: color var(--med) var(--ease);
  z-index: 1;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: #1a1408; }
.tab__count {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  font-weight: 600;
}
.tab.is-active .tab__count { color: #1a1408; opacity: 1; }

.tab__indicator {
  position: absolute;
  top: 0.4rem; left: 0.4rem; bottom: 0.4rem;
  width: 50%;
  background: var(--gold-grad);
  border-radius: 999px;
  transition: transform var(--med) var(--ease), width var(--med) var(--ease);
  z-index: 0;
  box-shadow: 0 6px 20px -6px var(--gold-glow);
}

/* ----- Cover-flow 3D stage ----- */
.stage {
  position: relative;
  display: flex;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 4rem;
  height: clamp(460px, 62vh, 700px);
  align-items: center;
  justify-content: center;
  user-select: none;
}

.stage__perspective {
  perspective: 1800px;
  perspective-origin: 50% 50%;
  width: 100%;
  height: 100%;
  position: relative;
}

.stage__track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 32vw, 440px);
  height: clamp(380px, 56vh, 600px);
  transform: translate(-50%, -50%) translateX(var(--tx, 0)) translateZ(var(--tz, 0)) rotateY(var(--ry, 0)) scale(var(--sc, 1));
  transition:
    transform 650ms var(--ease),
    opacity   650ms var(--ease),
    filter    650ms var(--ease);
  opacity: var(--op, 1);
  filter: brightness(var(--br, 1)) saturate(var(--sa, 1));
  transform-style: preserve-3d;
  border-radius: var(--radius);
  cursor: pointer;
  z-index: var(--z, 1);
  will-change: transform, opacity;
}

.slide__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a120d;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,0.7),
    0 10px 25px -10px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(212,175,55,0.18);
}
.slide.is-active .slide__frame {
  box-shadow:
    0 40px 80px -10px rgba(0,0,0,0.85),
    0 0 0 1px rgba(212,175,55,0.5),
    0 0 60px -10px rgba(212,175,55,0.35);
}

.slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--slow) var(--ease);
}
.slide.is-active:hover .slide__img { transform: scale(1.04); }

.slide__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.slide.is-active .slide__glow { opacity: 1; }

.slide__hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  color: var(--gold-2);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--med) var(--ease) 100ms;
  pointer-events: none;
}
.slide.is-active .slide__hint { opacity: 1; }

.stage__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.45);
  background: rgba(10,18,14,0.7);
  color: var(--gold-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
  z-index: 5;
}
.stage__nav:hover { transform: translateY(-50%) scale(1.08); background: rgba(212,175,55,0.15); border-color: var(--gold); color: var(--gold); }
.stage__nav svg { width: 26px; height: 26px; }
.stage__nav--prev { left: 0.5rem; }
.stage__nav--next { right: 0.5rem; }

.stage__meta {
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 4;
}
.stage__counter {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--gold-2);
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.stage__dots {
  display: flex;
  gap: 6px;
}
.stage__dots button {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(212,175,55,0.3);
  padding: 0;
  cursor: pointer;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.stage__dots button:hover { background: rgba(212,175,55,0.6); }
.stage__dots button.is-active { background: var(--gold); transform: scale(1.4); }

/* Mobile carousel sizing — slightly smaller cards, tighter padding,
   smaller arrow buttons positioned over the slides. */
@media (max-width: 899px) {
  .stage {
    padding: 0 0.4rem;
    height: clamp(440px, 72vh, 640px);
  }
  .slide {
    width: clamp(240px, 76vw, 340px);
    height: clamp(360px, 64vh, 500px);
  }
  .stage__nav {
    width: 42px;
    height: 42px;
    background: rgba(10,18,14,0.55);
  }
  .stage__nav svg { width: 22px; height: 22px; }
  .stage__nav--prev { left: 0.25rem; }
  .stage__nav--next { right: 0.25rem; }
  .stage__meta { bottom: 0.25rem; }
  .stage__counter { font-size: 0.85rem; }
}

/* The masonry gallery is intentionally hidden — the 3D carousel is
   the primary portfolio view on every screen size. The DOM is kept
   so the lightbox indexing works uniformly across the codebase. */
.gallery { display: none; }

.gallery__item {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #0a120d;
  border: 1px solid rgba(212,175,55,0.12);
  transition: transform var(--fast) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.gallery__item:hover, .gallery__item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 18px 40px -15px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.2);
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--slow) var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.6));
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.gallery__item:hover::after { opacity: 1; }

/* =========================================================
   About
   ========================================================= */
.about {
  padding: clamp(4rem, 8vw, 7rem) var(--gut);
  position: relative;
}
.about::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto 3rem;
  background: var(--gold-grad);
  opacity: 0.6;
}

.about__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; text-align: center; }
}

.about__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  position: relative;
  padding: 1rem;
}
.about__badge img {
  width: clamp(180px, 24vw, 260px);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(212,175,55,0.25));
}
.about__badge-line {
  margin: 1rem 0 0;
  font-family: var(--f-sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.about__body p {
  font-family: var(--f-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 1.2rem;
}
.about__body .section__title { text-align: left; }
@media (max-width: 800px) {
  .about__body .section__title { text-align: center; }
}

.about__pull {
  font-family: var(--f-script) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  margin-top: 1.5rem !important;
  line-height: 1.1 !important;
}

/* =========================================================
   Techniques
   ========================================================= */
.techniques {
  padding: clamp(3rem, 6vw, 5rem) var(--gut) clamp(4rem, 7vw, 6rem);
  position: relative;
}

.tech-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 800px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.tech {
  background:
    linear-gradient(180deg, rgba(20,32,24,0.7), rgba(10,18,14,0.7));
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: transform var(--med) var(--ease), border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.tech:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7), 0 0 30px -10px var(--gold-glow);
}
.tech h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: var(--gold-2);
  letter-spacing: 0.02em;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.tech__note {
  margin: -0.4rem 0 0.9rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.tech ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tech li {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink-dim);
  position: relative;
  padding-left: 1.1rem;
}
.tech li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.techniques__credentials {
  text-align: center;
  margin: 2.5rem auto 0;
  color: var(--ink-faint);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-style: italic;
  font-family: var(--f-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.techniques__credentials .sep { color: var(--gold); }

/* =========================================================
   Contact
   ========================================================= */
.contact {
  padding: clamp(4rem, 8vw, 7rem) var(--gut);
  position: relative;
}
.contact::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto 3rem;
  background: var(--gold-grad);
  opacity: 0.6;
}

.contact__cards {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) {
  .contact__cards { grid-template-columns: 1fr; }
}

.contact__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(180deg, rgba(20,32,24,0.7), rgba(10,18,14,0.7));
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--med) var(--ease), border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.contact__card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 18px 40px -15px rgba(0,0,0,0.7), 0 0 30px -10px var(--gold-glow);
}
.contact__card--static { cursor: default; }
.contact__card--static:hover { transform: none; }

.contact__label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.contact__value {
  font-family: var(--f-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink);
}

.contact__cta { text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.foot {
  padding: 3rem var(--gut) 2.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid rgba(212,175,55,0.15);
  margin-top: 2rem;
}
.foot__mark { width: 52px; opacity: 0.85; }
.foot__name {
  font-size: 2.4rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  line-height: 1;
}
.foot__meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  margin: 0;
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 7, 5, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  animation: lbFade var(--med) var(--ease);
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox[hidden] { display: none; }

.lightbox__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
  height: 100%;
  position: relative;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -10px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,175,55,0.25);
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.lightbox__counter {
  color: var(--gold-2);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin: 0;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(14,24,18,0.7);
  color: var(--gold-2);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
  z-index: 5;
}
.lightbox__close:hover { transform: scale(1.08); background: rgba(212,175,55,0.18); color: var(--gold); }

.lightbox__nav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(14,24,18,0.7);
  color: var(--gold-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
  margin: 0 0.5rem;
  z-index: 6;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__nav:hover { transform: scale(1.08); background: rgba(212,175,55,0.18); color: var(--gold); }
.lightbox__nav svg { width: 26px; height: 26px; }

@media (max-width: 600px) {
  .lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
  }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__mark, .hero__dust, .hero__scroll-arrow { animation: none !important; }
  .slide { transition: none !important; }
}

/* =========================================================
   Inquiry modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  animation: lbFade var(--med) var(--ease);
}
.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 5, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background:
    radial-gradient(120% 80% at 0% 0%, #16241b 0%, transparent 60%),
    linear-gradient(180deg, #101b14 0%, #0a120d 100%);
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow:
    0 40px 90px -20px rgba(0,0,0,0.85),
    0 0 0 1px rgba(212,175,55,0.08),
    0 0 60px -20px var(--gold-glow);
  animation: modalRise var(--med) var(--ease);
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(14,24,18,0.7);
  color: var(--gold-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.modal__close:hover { transform: scale(1.08); background: rgba(212,175,55,0.18); color: var(--gold); }

.modal__head { margin: 0 0 1.4rem; padding-right: 2rem; }
.modal__title {
  margin: 0.2rem 0 0.6rem;
  line-height: 1;
}
.modal__title .script {
  font-family: var(--f-script);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  color: var(--gold-2);
  font-weight: 400;
}
.modal__lede {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.97rem;
  line-height: 1.5;
}

.inquiry-form { display: flex; flex-direction: column; gap: 1rem; }
.inquiry-form[hidden] { display: none; }

.inquiry-form__gotcha {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.field__opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-weight: 300;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--f-sans);
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--ink);
  background: rgba(4, 8, 6, 0.6);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23e8c773' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
  padding-right: 2.2rem;
  cursor: pointer;
}
.field select option { background: #0a120d; color: var(--ink); }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(212,175,55,0.7);
  background: rgba(4, 8, 6, 0.85);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

/* color the native date placeholder/icon to fit the dark theme */
.field input[type="date"] { color-scheme: dark; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c9706a;
  box-shadow: 0 0 0 3px rgba(201,112,106,0.14);
}
.field__error {
  font-size: 0.8rem;
  color: #e09a94;
  min-height: 0;
}
.field__error:empty { display: none; }

.inquiry-form__status {
  margin: 0;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(201,112,106,0.12);
  border: 1px solid rgba(201,112,106,0.4);
  color: #e09a94;
}
.inquiry-form__status[hidden] { display: none; }

.inquiry-form__submit { margin-top: 0.3rem; align-self: flex-start; }
.inquiry-form__submit[disabled] { opacity: 0.6; cursor: progress; }

.inquiry-form__fine {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* success state */
.inquiry-form__success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
}
.inquiry-form__success[hidden] { display: none; }
.inquiry-form__success-mark {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.08);
}
.inquiry-form__success-mark svg { width: 32px; height: 32px; }
.inquiry-form__success h3 {
  font-family: var(--f-script);
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 400;
  color: var(--gold-2);
  margin: 0 0 0.4rem;
  line-height: 1;
}
.inquiry-form__success p {
  margin: 0 auto 1.5rem;
  max-width: 36ch;
  color: var(--ink-dim);
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .inquiry-form__submit { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal__panel { animation: none; }
}
