/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --bg: #FAFAFA;
  --bg-alt: #F1F1EF;
  --surface: #FFFFFF;
  --ink: #121212;
  --muted: #6E6E6E;
  --line: #E3E3E0;
  --accent: #2F5D50;
  --overlay: rgba(12, 12, 12, 0.55);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================
   PANELS (scroll-snap sections)
   ========================================================== */
.panel {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* ==========================================================
   MINI STICKY HEADER (fades in once you scroll past hero)
   ========================================================== */
.mini-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1.1rem var(--gutter);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.mini-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border-bottom-color: var(--line);
}
.mini-wordmark {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero { align-items: center; text-align: center; padding: 6rem var(--gutter) 3rem; }

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.logo-mark {
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.works-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.work-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: clamp(140px, 24vw, 200px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.work-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.work-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.work-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.work-price {
  font-size: 0.85rem;
  color: var(--muted);
}

/* placeholder "artwork" — replace with real photos, see README */
.swatch-1 { background: linear-gradient(135deg, #C9AE8C, #8C6E54); }
.swatch-2 { background: linear-gradient(135deg, #97A47F, #57654A); }
.swatch-3 { background: linear-gradient(135deg, #B3746B, #6E3E3C); }
.swatch-4 { background: linear-gradient(135deg, #7E8FA0, #45535E); }
.swatch-5 { background: linear-gradient(135deg, #D8C08A, #A67F4C); }
.swatch-6 { background: linear-gradient(135deg, #8A7CA8, #4F4468); }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  animation: cue-bob 2.2s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ==========================================================
   GENERIC SECTION BLOCK (portfolio / recognition)
   ========================================================== */
.section-block { background: var(--bg-alt); border-top: 1px solid var(--line); }
.section-inner { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); width: 100%; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.portfolio-tile {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  border: 1px solid var(--line);
}
@media (max-width: 700px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.recognition-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recognition-list li {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.recognition-list li:last-child { border-bottom: 1px solid var(--line); }

.recognition-year {
  font-size: 0.85rem;
  color: var(--muted);
  width: 3.5rem;
  flex-shrink: 0;
}
.recognition-text { font-size: 0.98rem; }

/* ==========================================================
   FOOTER / CONTACT
   ========================================================== */
.footer-panel { background: var(--bg); min-height: auto; padding: 4rem 0; justify-content: center; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.footer-email {
  display: inline-block;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
}

.footer-social a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-social a:hover { color: var(--ink); }

.footer-copy {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================================
   ITEM DIALOG (popup)
   ========================================================== */
.item-dialog {
  border: none;
  border-radius: 10px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 2.5rem);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.item-dialog::backdrop {
  background: var(--overlay);
}

.dialog-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px 10px 0 0;
}

.dialog-body { padding: 1.5rem; }
.dialog-body h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }

.dialog-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.dialog-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dialog-stock {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.dialog-location {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.dialog-contact {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.dialog-contact:hover { background: var(--accent); }

.dialog-close {
  display: block;
  width: 100%;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--ink); color: var(--ink); }
