/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #faf7f2; color: #2a1f14; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --ink:   #2a1f14;
  --mid:   #7a5c3e;
  --light: #c8a87a;
  --paper: #faf7f2;
  --cream: #f2ead8;
  --green: #3d5c35;
  --line:  rgba(42,31,20,0.1);
}

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s cubic-bezier(0.16, 1, 0.3, 1),
              transform .75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-solid {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: .85rem 2rem;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid var(--ink);
  transition: opacity .2s; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-solid:hover { opacity: .82; }
.btn-ghost {
  display: inline-block;
  color: var(--ink);
  padding: .85rem 2rem;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid var(--line);
  transition: border-color .2s; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { border-color: var(--ink); }

/* ── Section shared ───────────────────────────────────────────── */
section { padding: 7rem 6%; }
.section-label {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--light); margin-bottom: 1rem; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.15;
  color: var(--ink); margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--mid); }
.section-body {
  font-size: .95rem; color: var(--mid);
  line-height: 1.85; font-weight: 300; max-width: 540px;
}
.divider { height: 1px; background: var(--line); margin: 0 6%; }

/* ── Nav ──────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 64px;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600;
  letter-spacing: .04em; color: var(--ink);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: .55rem 1.4rem;
  border-radius: 2px; color: var(--ink); transition: all .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: .3s; }

/* ── Mobile menu ──────────────────────────────────────────────── */
#mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 1.5rem 6%; z-index: 99;
  flex-direction: column; gap: 0;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); padding: 1rem 0;
  border-bottom: 1px solid var(--line); transition: color .2s;
}
#mobile-menu a:hover { color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 6%;
  position: relative;
  overflow: hidden;
}

/* Slideshow */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }

/* Overlay */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(20,14,9,0.72) 0%,
    rgba(20,14,9,0.45) 55%,
    rgba(20,14,9,0.2)  100%
  );
}

/* Hero content — entrance animation on load */
.hero-inner {
  position: relative; z-index: 2;
  max-width: 700px; width: 100%;
  padding-top: 64px;
}
.hero-eyebrow {
  font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(200,168,122,0.85); margin-bottom: 1.5rem; display: block;
  animation: heroFadeUp .9s .1s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300; line-height: 1.05;
  color: #fff; margin-bottom: 1.75rem;
  animation: heroFadeUp 1s .2s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-title em { font-style: italic; color: rgba(200,168,122,0.9); }
.hero-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8; font-weight: 300;
  max-width: 480px; margin-bottom: 2.5rem;
  animation: heroFadeUp 1s .35s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: heroFadeUp 1s .5s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Override button colours for hero */
#home .btn-solid {
  background: rgba(255,255,255,0.95); color: var(--ink);
  border-color: rgba(255,255,255,0.95);
}
#home .btn-solid:hover { background: #fff; opacity: 1; }
#home .btn-ghost { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.35); }
#home .btn-ghost:hover { border-color: rgba(255,255,255,0.85); color: #fff; }

/* Slide dots */
.hero-dots {
  position: absolute; bottom: 2.5rem; left: 6%;
  display: flex; gap: .6rem; z-index: 2;
  animation: heroFadeUp .8s .7s both;
}
.hero-dot {
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all .3s;
  border: none; padding: 0; display: inline-block;
}
.hero-dot.active { background: rgba(255,255,255,0.9); width: 40px; }

/* Scroll hint */
.hero-scroll {
  position: absolute; bottom: 2.5rem; right: 6%;
  display: flex; flex-direction: column;
  align-items: center; gap: .6rem; z-index: 2;
  animation: heroFadeUp .8s .7s both, heroScrollBob 2.5s 1.5s ease-in-out infinite;
}
@keyframes heroScrollBob {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: .5; }
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.3); display: block;
}
.hero-scroll-text {
  font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}

/* ── Five Elements ────────────────────────────────────────────── */
.elements { background: var(--ink); padding: 0 6%; display: flex; }
.element {
  flex: 1; padding: 2.5rem 0; text-align: center;
  border-right: 1px solid rgba(255,255,255,.06); transition: background .2s;
}
.element:last-child { border-right: none; }
.element:hover { background: rgba(255,255,255,.03); }
.element-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 400;
  color: rgba(250,247,242,.85); margin-bottom: .25rem; letter-spacing: .04em;
}
.element-sub {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(200,168,122,.5);
}

/* ── About ────────────────────────────────────────────────────── */
#about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; background: var(--cream);
}
.about-image {
  aspect-ratio: 4/5; background: rgba(42,31,20,.05);
  border-radius: 2px; display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cert-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.cert-tag {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(61,92,53,.25);
  padding: .3rem .75rem; border-radius: 2px;
}

/* ── Products ─────────────────────────────────────────────────── */
#products { background: var(--paper); }
.products-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 3.5rem;
  flex-wrap: wrap; gap: 1rem;
}
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.product-card { background: var(--paper); padding: 2rem; transition: background .2s; }
.product-card:hover { background: var(--cream); }
.product-img {
  aspect-ratio: 1; background: var(--cream); margin-bottom: 1.5rem;
  border-radius: 1px; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-cat {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--light); margin-bottom: .4rem;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400;
  color: var(--ink); margin-bottom: .4rem; line-height: 1.3;
}
.product-desc {
  font-size: .82rem; color: var(--mid);
  line-height: 1.7; font-weight: 300; margin-bottom: 1.25rem;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-sizes { font-size: .7rem; color: var(--light); letter-spacing: .06em; }
.product-btn {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink);
  padding-bottom: 1px; transition: opacity .2s;
}
.product-btn:hover { opacity: .55; }

/* ── Why Us ───────────────────────────────────────────────────── */
#why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3rem; margin-top: 4rem; }
.why-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300;
  color: var(--light); opacity: .45; margin-bottom: .75rem; line-height: 1;
}
.why-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400; color: var(--ink); margin-bottom: .5rem;
}
.why-text { font-size: .85rem; color: var(--mid); line-height: 1.8; font-weight: 300; }

/* ── Export ───────────────────────────────────────────────────── */
#export {
  background: var(--ink); display: grid;
  grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
#export .section-label { color: rgba(200,168,122,.55); }
#export .section-title { color: rgba(250,247,242,.88); }
#export .section-body  { color: rgba(250,247,242,.45); }
.country-wrap { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.country-tag {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(250,247,242,.45); border: 1px solid rgba(255,255,255,.1);
  padding: .35rem .9rem; border-radius: 2px; transition: all .2s;
}
.country-tag:hover { border-color: rgba(255,255,255,.3); color: rgba(250,247,242,.85); }
.export-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.06);
}
.export-stat {
  background: rgba(255,255,255,.025); padding: 2.5rem 2rem;
  text-align: center; transition: background .2s;
}
.export-stat:hover { background: rgba(255,255,255,.055); }
.export-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300;
  color: rgba(250,247,242,.82); line-height: 1; margin-bottom: .4rem;
}
.export-label {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(200,168,122,.45);
}

/* ── Contact ──────────────────────────────────────────────────── */
#contact {
  background: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.contact-detail { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-detail:first-of-type { border-top: 1px solid var(--line); }
.contact-detail-label {
  font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mid); margin-bottom: .6rem;
}
.contact-detail-value {
  font-family: 'Lora', serif; font-weight: 500; font-size: 1.2rem;
  line-height: 1.5; color: var(--ink);
}
.contact-detail-value a { transition: color .2s; text-decoration: none; }
.contact-detail-value a:hover { color: var(--mid); }
.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block; font-family: 'DM Sans', sans-serif; font-size: .7rem;
  font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--mid); margin-bottom: .5rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--line); padding: .75rem 0;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; color: var(--ink);
  outline: none; transition: border-color .2s;
  -webkit-appearance: none; border-radius: 0;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(122,92,62,.4); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-bottom-color: var(--ink); }
.form-field textarea { resize: none; height: 120px; }
.form-submit {
  background: var(--ink); color: var(--paper); border: none;
  padding: 1rem 3rem; font-size: .85rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px;
  transition: transform 0.2s, opacity .2s;
  margin-top: 1rem; font-family: 'DM Sans', sans-serif;
  position: relative; overflow: hidden;
}
.form-submit:hover { opacity: .9; transform: translateY(-1px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-success {
  display: none; margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: rgba(61,92,53,.08); border: 1px solid rgba(61,92,53,.2);
  border-radius: 2px; color: var(--green);
  font-size: .85rem; letter-spacing: .04em;
}
.form-error {
  display: none; margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: rgba(192,57,43,.06); border: 1px solid rgba(192,57,43,.2);
  border-radius: 2px; color: #c0392b;
  font-size: .85rem; letter-spacing: .04em;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer { background: var(--ink); padding: 4rem 6% 2.5rem; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap; gap: 2rem;
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: rgba(250,247,242,.8); font-weight: 400; margin-bottom: .4rem;
}
.footer-brand-tag {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(200,168,122,.35);
}
.footer-col-title {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(200,168,122,.35); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .82rem; color: rgba(250,247,242,.3); transition: color .2s; }
.footer-links a:hover { color: rgba(250,247,242,.65); }
.footer-bottom {
  padding-top: 2rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .7rem; color: rgba(250,247,242,.18); letter-spacing: .05em; }

/* ── Gallery ──────────────────────────────────────────────────── */
#gallery { background: var(--paper); }
.gallery-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}
.gallery-admin-controls { display: flex; align-items: center; gap: .75rem; }
.upload-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink);
  padding: .7rem 1.6rem; border-radius: 2px;
  cursor: pointer; transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.upload-btn:hover { background: var(--ink); color: var(--paper); }
.gallery-logout-btn {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid); background: none; border: 1px solid var(--line);
  padding: .7rem 1rem; border-radius: 2px; cursor: pointer;
  transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.gallery-logout-btn:hover { border-color: var(--mid); color: var(--ink); }

/* Drop zone */
.gallery-dropzone {
  border: 1.5px dashed rgba(42,31,20,.18); border-radius: 4px;
  padding: 5rem 2rem; text-align: center; transition: all .2s; cursor: pointer;
}
.gallery-dropzone.drag-over { border-color: var(--mid); background: var(--cream); }
.dropzone-icon { font-size: 2rem; color: var(--light); opacity: .5; margin-bottom: 1rem; font-weight: 300; }
.dropzone-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--ink); margin-bottom: .4rem; }
.dropzone-sub { font-size: .8rem; color: var(--mid); letter-spacing: .05em; }

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 3px;
}

/* Gallery item */
.gallery-item {
  position: relative; aspect-ratio: 1; overflow: hidden;
  cursor: pointer; background: var(--cream);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
  will-change: transform;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Overlay — always slightly visible on mobile/touch, hover on desktop */
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(42,31,20,0);
  transition: background .3s;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(42,31,20,.38); }

/* Caption */
.gallery-item-caption {
  font-size: .75rem; color: #fff; letter-spacing: .08em;
  opacity: 0; transform: translateY(4px); transition: all .25s; font-weight: 300;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; transform: translateY(0); }

/* ── MOBILE TOUCH FIX: always show overlay & caption on small screens ── */
@media (hover: none) {
  /* Touch device — no real hover support */
  .gallery-item-overlay { background: linear-gradient(to top, rgba(42,31,20,.55) 0%, transparent 55%); }
  .gallery-item-caption { opacity: 1; transform: translateY(0); }
  .gallery-item img { transition: none; } /* remove scale on tap, looks wrong */
}

/* Delete & caption edit (admin only) */
.gallery-item-delete {
  position: absolute; top: .6rem; right: .6rem;
  width: 28px; height: 28px; background: rgba(42,31,20,.65);
  border: none; border-radius: 50%; color: #fff; font-size: .75rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.gallery-item:hover .gallery-item-delete { opacity: 1; }
.gallery-item-delete:hover { background: rgba(192,57,43,.85); }
@media (hover: none) { .gallery-item-delete { opacity: 1; } }

.gallery-item-edit {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(42,31,20,.8); padding: .5rem .65rem; display: none;
}
.gallery-item:hover .gallery-item-edit { display: block; }
.gallery-item-edit input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,.3); color: #fff;
  font-size: .75rem; font-family: 'DM Sans', sans-serif;
  outline: none; letter-spacing: .05em; padding: .2rem 0;
}
.gallery-item-edit input::placeholder { color: rgba(255,255,255,.4); }

/* PIN login overlay */
.gallery-login-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20,14,9,.88); z-index: 300;
  align-items: center; justify-content: center;
}
.gallery-login-overlay.open { display: flex; }
.gallery-login-box {
  background: var(--paper); border-radius: 4px;
  padding: 2.5rem 2rem; width: 320px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.gallery-login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400; color: var(--ink); margin-bottom: .3rem;
}
.gallery-login-sub { font-size: .78rem; color: var(--mid); margin-bottom: 1.75rem; letter-spacing: .04em; }
.pin-boxes { display: flex; gap: .65rem; justify-content: center; margin-bottom: 1rem; }
.pin-box {
  width: 52px; height: 60px;
  border: 1.5px solid var(--line); border-radius: 4px;
  text-align: center; font-size: 1.6rem; font-weight: 700;
  color: var(--ink); font-family: monospace;
  background: var(--paper); outline: none; transition: .2s;
  -webkit-text-security: disc;
}
.pin-box:focus { border-color: var(--ink); }
.pin-box.wrong { border-color: #c0392b; animation: shake .35s ease; }
@keyframes shake {
  0%,100%{transform:translateX(0)} 20%{transform:translateX(-5px)}
  40%{transform:translateX(5px)}  60%{transform:translateX(-4px)} 80%{transform:translateX(4px)}
}
.pin-msg { font-size: .78rem; color: #c0392b; min-height: 1.2em; margin-bottom: .75rem; letter-spacing: .04em; }
.pin-cancel {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  background: none; border: none; color: var(--mid);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  padding: .5rem; transition: color .2s;
}
.pin-cancel:hover { color: var(--ink); }
.pin-hint { font-size: .7rem; color: var(--light); margin-top: 1.25rem; letter-spacing: .04em; }
.pin-hint strong { color: var(--mid); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(20,14,9,.92); z-index: 200;
  align-items: center; justify-content: center; cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap { max-width: 88vw; max-height: 88vh; position: relative; cursor: default; }
.lightbox-img-wrap img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 2px; display: block; }
.lightbox-caption { text-align: center; color: rgba(255,255,255,.45); font-size: .78rem; letter-spacing: .1em; margin-top: .85rem; min-height: 1.2em; }
.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.75rem;
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 1.4rem; cursor: pointer; line-height: 1; transition: color .2s; z-index: 201;
}
.lightbox-close:hover { color: #fff; }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.4);
  font-size: 3rem; cursor: pointer; padding: 1rem; transition: color .2s;
  line-height: 1; z-index: 201; font-weight: 300;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { color: #fff; }
.gallery-empty-public { text-align: center; padding: 4rem 2rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #about, #export, #contact { grid-template-columns: 1fr; gap: 3rem; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .elements { flex-wrap: wrap; }
  .element { width: 33.33%; }
  .export-stats { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 540px) {
  section { padding: 5rem 5%; }
  .hero-title { font-size: 2.6rem; }
  .why-grid { grid-template-columns: 1fr; }
  .element { width: 50%; }
  .export-stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .lightbox-prev, .lightbox-next { font-size: 2rem; }
  .hero-scroll { display: none; } /* hide on small phones */
}