:root {
  --bg: #F7F5F1;
  --bg-soft: #EFEBE4;
  --ink: #1B1B18;
  --ink-soft: #5B5A54;
  --red: #E3402F;
  --green: #2E5C46;
  --green-deep: #16301F;
  --night: #0C0F0D;
  --night-2: #121813;
  --line: rgba(27,27,24,0.12);
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', sans-serif;
  --mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
#siteHeader.scrolled {
  padding: 10px 0;
  background: rgba(12,15,13,0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}
.logo-mark-img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: height 0.4s ease;
}
.scrolled .logo-mark-img { height: 32px; }
.logo-text {
  font-family: var(--serif);
  font-size: 22px;
  color: #F7F5F1;
  letter-spacing: 0.3px;
}
.logo-text em { font-style: normal; color: var(--red); }

nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  background: none;
  border: none;
  color: rgba(247,245,241,0.75);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 4px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid rgba(247,245,241,0.35);
  border-radius: 999px;
  margin-left: 8px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--red); background: rgba(227,64,47,0.12); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: #F7F5F1;
  transition: 0.3s;
}
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 70%; max-width: 320px;
  height: 100vh;
  background: var(--night-2);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 32px;
  gap: 8px;
  transition: right 0.4s ease;
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.mobile-menu.open { right: 0; }
.mobile-menu .nav-link { color: #eee; text-align: left; font-size: 15px; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.5vh, 32px);
  padding: clamp(64px, 12vh, 110px) 24px clamp(20px, 5vh, 56px);
  background: radial-gradient(ellipse at 50% 20%, #16211A 0%, var(--night) 60%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -20px;
  background: url('../assets/storefront.jpg') center/cover;
  filter: blur(14px) brightness(0.55) saturate(0.9);
  transition: filter 0.2s linear;
  will-change: filter;
}
.hero-tint {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(12,15,13,0.32), rgba(12,15,13,0.68)),
    radial-gradient(circle at 15% 85%, rgba(46,92,70,0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(227,64,47,0.18), transparent 40%);
}
.hero-glow {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-red { background: var(--red); top: 8%; right: 8%; animation: drift 14s ease-in-out infinite; }
.glow-green { background: var(--green); bottom: 4%; left: 6%; animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
}

.hero-glasses {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(560px, 70vw, 58vh);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
  will-change: transform;
}
.lens-flare { mix-blend-mode: screen; opacity: 0.9; }
.lens-letter {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 500;
  fill: #F7F5F1;
  fill-opacity: 0.92;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: none;
  text-align: center;
  padding: 0 24px;
  max-width: 772px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 1.6vh, 12px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #C9A9A4;
  margin: 0 0 clamp(8px, 2vh, 18px);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, min(6.5vw, 6vh), 74px);
  line-height: 1.08;
  color: #F7F5F1;
  margin: 0 0 clamp(10px, 2.2vh, 20px);
}
.hero-sub {
  font-size: clamp(13px, 1.7vh, 16px);
  line-height: 1.55;
  color: rgba(247,245,241,0.68);
  margin: 0 0 clamp(16px, 3.5vh, 34px);
  font-weight: 300;
}

.btn-primary {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--night);
  background: linear-gradient(120deg, #F7F5F1, #e7e2d8);
  border: none;
  padding: clamp(11px, 2vh, 16px) 38px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(227,64,47,0.35); }

.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 46px;
  background: rgba(247,245,241,0.25);
  overflow: hidden;
  transition: opacity 0.2s linear;
}
.scroll-cue span {
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--red);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 11vh, 100px) 32px clamp(24px, 5vh, 40px);
  text-align: center;
}
.section-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 2px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 48px);
  margin: 10px 0 20px;
  color: var(--ink);
}
.section-head.light h2 { color: var(--ink); }
.rule { width: 60px; height: 2px; background: var(--green); margin: 0 auto; }

/* ---------- Studio (Gabinet) ---------- */
.studio {
  background: var(--bg);
  padding: 90px 32px 70px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.studio-photos { position: relative; min-height: 320px; }
.studio-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(22,48,31,0.16);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.studio-photo.in-view { opacity: 1; transform: translateY(0); }
.studio-photo.main { width: 82%; }
.studio-photo.main img { width: 100%; height: 340px; object-fit: cover; }
.studio-photo.card {
  position: absolute;
  width: 46%;
  right: 0; bottom: -30px;
  border: 6px solid var(--bg);
  transition-delay: 0.15s;
}
.studio-photo.card img { width: 100%; height: 190px; object-fit: cover; }
.studio-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.studio-text.in-view { opacity: 1; transform: translateY(0); }
.studio-text .section-num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.studio-text p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

/* ---------- Services ---------- */
.services { background: var(--bg); padding-bottom: clamp(30px, 6vh, 48px); }
.services .section-head { padding-bottom: clamp(20px, 4vh, 30px); }
.service-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4.3vh, 34px) clamp(22px, 3vw, 32px);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
  opacity: 0;
  transform: translateY(30px);
}
.service-card.in-view { opacity: 1; transform: translateY(0); }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(22,48,31,0.12);
  border-color: rgba(46,92,70,0.3);
}
.service-card.featured {
  background: linear-gradient(160deg, var(--green-deep), var(--green));
  color: #F2F0EA;
  border: none;
}
.service-card.featured h3, .service-card.featured .service-icon { color: #F2F0EA; }
.service-card.featured p { color: rgba(242,240,234,0.82); }
.service-icon { color: var(--red); margin-bottom: 18px; }
.service-card.featured .service-icon { color: #E8C9A0; }
.service-photo {
  width: 100%;
  height: clamp(100px, 15vh, 130px);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: clamp(14px, 2.4vh, 20px);
  background: #fff;
  border: 1px solid var(--line);
}
.service-card.featured .service-photo { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.service-photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: transform 0.5s ease;
}
.service-card:hover .service-photo img { transform: scale(1.05); }
.service-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 14px;
}
.service-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-weight: 300;
}
.service-note { font-size: 13px !important; opacity: 0.8; }

/* ---------- Gallery / Carousel ---------- */
.gallery { background: var(--bg-soft); padding-bottom: clamp(48px, 9vh, 80px); }
.carousel {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(22,48,31,0.14);
}
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.9s ease;
}
.carousel-slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.carousel-arrow:hover { background: var(--green); color: #fff; transform: scale(1.06); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(27,27,24,0.2);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dots button.active { background: var(--red); transform: scale(1.3); }

.gallery-text {
  width: 60%;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px clamp(56px, 10vh, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: clamp(26px, 5vh, 36px) 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(24px);
  font-size: 14.5px;
}
.contact-card.in-view { opacity: 1; transform: translateY(0); }
.contact-card svg { color: var(--red); }
.contact-card:hover { transform: translateY(-6px); border-color: rgba(46,92,70,0.35); box-shadow: 0 20px 40px rgba(22,48,31,0.1); }

/* ---------- Location ---------- */
.location { line-height: 0; background: var(--bg); }
.location iframe { filter: grayscale(0.25) contrast(1.05); }

/* ---------- Footer ---------- */
footer { background: var(--night); color: rgba(247,245,241,0.6); padding: 50px 0; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.footer-brand { font-family: var(--serif); font-size: 20px; color: #F7F5F1; margin: 0 0 6px; }
.footer-left p, .footer-right p { margin: 4px 0; }
.footer-right { text-align: right; }
footer a { color: var(--red); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav { display: none; }
  .menu-toggle { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .studio { grid-template-columns: 1fr; padding: 70px 24px 90px; }
  .studio-photo.main { width: 100%; }
  .studio-photo.card { width: 60%; bottom: -24px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 20px; }
  .section-head { padding: 70px 20px 30px; }
  .carousel { gap: 10px; }
  .carousel-arrow { width: 38px; height: 38px; }
  .hero { padding: 90px 20px 40px; gap: 14px; }
  .hero-glasses { width: 82vw; }
}
