/* =========================================================================
   JINXED BY DESIGN — base stylesheet
   Phase 2: design tokens, reset, tie-dye atmosphere, nav shell, view system,
   glow-hover utilities. Home hero, products, forms added in later phases.
   ========================================================================= */

:root {
  /* Core palette */
  --ink: #0a0a0a;           /* canvas black */
  --ink-soft: #151515;      /* slightly lifted panels */
  --bone: #f4f1e8;          /* warm off-white, matches logo interior */
  --bone-soft: rgba(244, 241, 232, 0.72);
  --bone-mute: rgba(244, 241, 232, 0.55);
  --bone-faint: rgba(244, 241, 232, 0.18);
  --bone-hair: rgba(244, 241, 232, 0.08);

  /* Brand accents — acid green is the signature; the other three carry
     atmosphere, product framing, and the cursive wordmark gradient. */
  --clover: #4ade1f;        /* acid/lime green — primary accent */
  --clover-bright: #6aff3a; /* glow/hover amp */
  --hot: #ff1f9f;           /* hot magenta */
  --cyan: #1fe0ff;           /* electric cyan */
  --violet: #9d4bff;        /* fluorescent violet */

  /* Semantic color roles (edit these, not components, when re-skinning) */
  --bg: var(--ink);
  --fg: var(--bone);
  --accent: var(--clover);
  --accent-hover: var(--clover-bright);
  --link: var(--clover);

  /* Typography */
  --font-display: "Bungee", "Impact", "Arial Black", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;

  /* Spatial tokens */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Layout */
  --max-width: 1200px;
  --content-width: 960px;
  --mobile-break: 768px;
  --nav-height: 64px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 300ms;
  --dur-slow: 600ms;

  /* The signature wordmark gradient — used on "Jinxed by Design" in the nav
     and anywhere else that wants the full accent rainbow. */
  --wordmark-gradient: linear-gradient(
    92deg,
    var(--clover) 0%,
    var(--cyan) 35%,
    var(--hot) 65%,
    var(--violet) 100%
  );
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

/* ---------- accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 8px 12px;
  z-index: 1100;
  border-right: 2px solid var(--accent);
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus — visible and on-brand, not the default ugly ring. */
:focus-visible {
  outline: 2px solid var(--clover);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- tie-dye atmospheric background ----------
   Three soft, heavily-blurred radial blobs fixed to the viewport, behind
   all content (z-index: -1), low opacity. */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.35;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.blob--pink {
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  min-width: 360px;
  min-height: 360px;
  background: radial-gradient(circle, var(--hot) 0%, transparent 70%);
}

.blob--cyan {
  bottom: -15%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  min-width: 420px;
  min-height: 420px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}

.blob--violet {
  top: 35%;
  left: 45%;
  width: 30vw;
  height: 30vw;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .blob {
    animation: none !important;
  }
}

/* =========================================================================
   NAV — fixed header, cursive gradient wordmark left, Bungee menu right
   ========================================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bone-hair);
}

/* ----- wordmark (cursive, gradient-filled, hover-aura) ----- */
.nav-wordmark {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-2) 0;

  background: var(--wordmark-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  transition:
    background-position var(--dur-slow) var(--ease),
    filter var(--dur-med) var(--ease);
}

/* Gradient-filled text doesn't accept text-shadow, so the hover aura uses
   drop-shadow on the whole element. Gradient also animates position for a
   subtle shimmer on hover. */
.nav-wordmark:hover,
.nav-wordmark:focus-visible {
  background-position: 100% 50%;
  filter: drop-shadow(0 0 12px rgba(74, 222, 31, 0.55))
    drop-shadow(0 0 24px rgba(255, 31, 159, 0.25));
}

/* ----- desktop menu (Bungee, uppercase, glow on hover) ----- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-item {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 1px;
  color: var(--bone-soft);
  padding: var(--space-2) 0;
  position: relative;
  transition:
    color var(--dur-fast) var(--ease),
    text-shadow var(--dur-fast) var(--ease);
}

/* Animated underline — slides in from left on hover/active. */
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--clover);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-med) var(--ease);
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--bone);
}

.nav-item:hover::after,
.nav-item:focus-visible::after {
  transform: scaleX(0.6);
}

.nav-item.is-active {
  color: var(--clover);
}

.nav-item.is-active::after {
  transform: scaleX(1);
}

/* ----- mobile dropdown (shown below breakpoint) ----- */
.nav-mobile-wrap {
  display: none;
}

.nav-mobile {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 1px;
  background: var(--ink-soft);
  color: var(--bone);
  border: 1px solid var(--bone-faint);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  /* Keep the OS caret — it's the most reliable visual affordance. */
}

.nav-mobile:hover {
  border-color: var(--clover);
}

.nav-mobile:focus-visible {
  border-color: var(--clover);
  box-shadow: 0 0 12px rgba(74, 222, 31, 0.4);
}

@media (max-width: 768px) {
  .nav {
    padding: 0 var(--space-4);
  }
  .nav-menu {
    display: none;
  }
  .nav-mobile-wrap {
    display: block;
  }
}

/* =========================================================================
   VIEW SYSTEM — single-page app, nav swaps which <section class="view"> shows
   ========================================================================= */

main {
  padding-top: var(--nav-height);
  min-height: 100vh;
  position: relative;
}

.view {
  display: none;
  padding: var(--space-7) var(--space-6) var(--space-8);
  max-width: var(--max-width);
  margin: 0 auto;
  animation: view-fade-in var(--dur-med) var(--ease);
}

.view--active {
  display: block;
}

/* The `hidden` HTML attr sets display: none; overridden when .view--active
   is applied so JS only needs to toggle the class. */
.view[hidden] {
  display: none;
}
.view--active[hidden] {
  display: block;
}

@keyframes view-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Phase-2 placeholder styling — replaced per-view in later phases. */
.view-placeholder {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

.view-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 2px;
  margin: 0;
  color: var(--bone);
  line-height: 1.1;
}

.view-stub {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--bone-mute);
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

/* =========================================================================
   GLOW-HOVER UTILITIES — reusable on any interactive element going forward
   ========================================================================= */

/* Text glow — for text-only targets (nav items, inline links, text CTAs). */
.glow-hover-text {
  transition:
    color var(--dur-fast) var(--ease),
    text-shadow var(--dur-fast) var(--ease);
}

.glow-hover-text:hover,
.glow-hover-text:focus-visible {
  text-shadow: 0 0 14px rgba(74, 222, 31, 0.65);
}

/* Box glow — for button boxes and framed elements (CTAs, product cards). */
.glow-hover-box {
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-med) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.glow-hover-box:hover,
.glow-hover-box:focus-visible {
  box-shadow:
    0 0 18px rgba(74, 222, 31, 0.5),
    0 0 36px rgba(74, 222, 31, 0.2);
}

/* Aura glow — for gradient-filled text and irregular shapes (wordmark, SVG). */
.glow-hover-aura {
  transition: filter var(--dur-med) var(--ease);
}

.glow-hover-aura:hover,
.glow-hover-aura:focus-visible {
  filter:
    drop-shadow(0 0 12px rgba(74, 222, 31, 0.55))
    drop-shadow(0 0 24px rgba(255, 31, 159, 0.25));
}

/* =========================================================================
   HOME VIEW — hero, rotating tagline, CTAs, featured products teaser
   ========================================================================= */

.view--home {
  /* Let the hero breathe; override default view padding for this view only. */
  padding: 0 var(--space-5) var(--space-8);
  max-width: 1100px;
}

/* ----- hero ----- */

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-4) var(--space-7);
  gap: var(--space-5);
}

.home-logo {
  position: relative;
  width: clamp(160px, 22vw, 220px);
  aspect-ratio: 1 / 1;
}

.home-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Soft green halo behind the logo — faint bloom that reinforces the
   fluorescent brand without screaming. Subtle pulse animation. */
.home-logo__halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 31, 0.35) 0%, transparent 65%);
  filter: blur(24px);
  z-index: 0;
  animation: halo-pulse 4s ease-in-out infinite;
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* ----- rotating tagline ----- */

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: 1px;
  line-height: 1.05;
  color: var(--bone);
  margin-top: var(--space-3);
  min-height: 2.6em; /* reserve space so layout doesn't jump when line2 is empty */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.1em;
  transition:
    opacity var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease);
}

.tagline--fading {
  opacity: 0;
  transform: translateY(-6px);
}

.tagline__line {
  display: block;
}

.tagline__line:empty {
  display: none;
}

/* Reusable color utilities for tagline accent and anywhere else. */
.accent-green  { color: var(--clover); }
.accent-pink   { color: var(--hot); }
.accent-cyan   { color: var(--cyan); }
.accent-violet { color: var(--violet); }

/* ----- intro paragraph ----- */

.home-intro {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
  color: var(--bone-soft);
}

/* ----- CTAs ----- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-3);
}

.cta {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 1px;
  padding: 0.875rem 1.375rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.cta--primary {
  background: var(--clover);
  color: var(--ink);
  border-color: var(--clover);
}

.cta--primary:hover,
.cta--primary:focus-visible {
  background: var(--clover-bright);
  color: var(--ink);
  border-color: var(--clover-bright);
}

.cta--secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}

.cta--secondary:hover,
.cta--secondary:focus-visible {
  color: var(--clover-bright);
  border-color: var(--clover-bright);
}

/* =========================================================================
   PRODUCT CARDS — gradient frame wraps a dark photo area, details below
   ========================================================================= */

/* Gradient variants — the card's "frame" color. */
.product-card--pink-violet  { --card-gradient: linear-gradient(135deg, var(--hot),    var(--violet)); }
.product-card--green-cyan   { --card-gradient: linear-gradient(135deg, var(--clover), var(--cyan));   }
.product-card--hot-cyan     { --card-gradient: linear-gradient(135deg, var(--hot),    var(--cyan));   }
.product-card--hot-violet   { --card-gradient: linear-gradient(135deg, var(--hot),    var(--violet)); }
.product-card--green-violet { --card-gradient: linear-gradient(135deg, var(--clover), var(--violet)); }
.product-card--cyan-violet  { --card-gradient: linear-gradient(135deg, var(--cyan),   var(--violet)); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--bone);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease);
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card.is-hidden {
  display: none !important;
}

/* Frame: gradient bg with a dark photo inset creating a border-like effect. */
.product-card__frame {
  position: relative;
  background: var(--card-gradient, var(--ink-soft));
  border-radius: var(--radius-md);
  padding: 4px;
  aspect-ratio: 1 / 1;
  transition: box-shadow var(--dur-med) var(--ease);
}

.product-card__frame:hover {
  box-shadow: 0 0 20px rgba(74, 222, 31, 0.3);
}

.product-card__photo {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--ink);
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder: when no image, the dark photo area gets a soft gradient wash
   plus a diagonal hatch so it reads as "coming soon" rather than broken. */
.product-card__placeholder {
  position: absolute;
  inset: 0;
  background: var(--card-gradient, transparent);
  opacity: 0.3;
}

.product-card__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 14px,
    rgba(10, 10, 10, 0.35) 14px 16px
  );
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: var(--clover);
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.6px;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  z-index: 2;
}

.product-card__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.25rem;
}

.product-card__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  margin: 0;
  color: var(--bone);
  line-height: 1.3;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--clover);
}

.product-card__desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--bone-mute);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.product-card__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.product-card__sold-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--bone-mute);
  letter-spacing: 1px;
}

/* Sold state: desaturate the frame, disable hover motion. */
.product-card.is-sold .product-card__frame {
  filter: grayscale(0.7);
  opacity: 0.7;
}

.product-card.is-sold:hover              { transform: none; }
.product-card.is-sold .product-card__frame:hover { box-shadow: none; }

/* Action buttons used inside product cards */
.btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  line-height: 1;
}

.btn--buy {
  background: var(--clover);
  color: var(--ink);
  border-color: var(--clover);
}
.btn--buy:hover,
.btn--buy:focus-visible {
  background: var(--clover-bright);
  border-color: var(--clover-bright);
}

.btn--dibs {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone-faint);
}
.btn--dibs:hover,
.btn--dibs:focus-visible {
  color: var(--clover);
  border-color: var(--clover);
}

/* =========================================================================
   FEATURED SECTION — home page teaser strip
   ========================================================================= */

.home-featured {
  padding: var(--space-6) 0 var(--space-7);
  border-top: 1px solid var(--bone-hair);
}

.featured-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 1.5px;
  margin: 0;
  color: var(--bone);
}

.featured-seeall {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--clover);
  text-decoration: none;
  white-space: nowrap;
}

.featured-seeall:hover {
  color: var(--clover-bright);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.featured-note {
  margin-top: var(--space-5);
  text-align: center;
  font-size: 0.75rem;
  color: var(--bone-faint);
  font-style: italic;
}

/* ----- mobile tightening for home view ----- */

@media (max-width: 768px) {
  .home-hero {
    padding: var(--space-7) var(--space-2) var(--space-6);
    gap: var(--space-4);
  }
  .cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================================
   SHOP VIEW — header, filter bar, product grid, empty state
   ========================================================================= */

.shop-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.shop-tagline {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--bone-soft);
  margin: var(--space-2) 0 0;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: 0 var(--space-2);
}

.filter-chip {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--bone-soft);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--bone-faint);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--bone);
  border-color: var(--bone-soft);
}

.filter-chip.is-active {
  background: var(--clover);
  color: var(--ink);
  border-color: var(--clover);
}

.filter-chip.is-active:hover {
  background: var(--clover-bright);
  border-color: var(--clover-bright);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
}

.shop-empty {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--bone-mute);
  font-style: italic;
  margin-top: var(--space-6);
}

/* =========================================================================
   MODAL — reused for buy and dibs flows
   ========================================================================= */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  background: #141414;
  border: 1px solid var(--bone-hair);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5) var(--space-5);
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 2 * var(--space-4));
  overflow-y: auto;
  box-shadow:
    0 0 0 1px rgba(74, 222, 31, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  color: var(--bone-soft);
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.modal__close:hover {
  color: var(--clover);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--clover);
  margin: 0 0 var(--space-4);
}

.modal__lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0 0 var(--space-3);
  color: var(--bone);
}

.modal__note {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--bone-soft);
  margin: 0 0 var(--space-4);
  line-height: 1.55;
}

.modal__note code {
  font-family: var(--font-mono, "Menlo", "Consolas", monospace);
  background: rgba(74, 222, 31, 0.12);
  color: var(--clover);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.875em;
}

/* =========================================================================
   PAY OPTIONS — buttons inside the buy modal for links mode
   ========================================================================= */

.pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pay-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-4) var(--space-3);
  background: #1c1c1c;
  border: 1px solid var(--bone-faint);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--bone);
  transition: all var(--dur-fast) var(--ease);
}

.pay-option:hover,
.pay-option:focus-visible {
  border-color: var(--clover);
  color: var(--bone);
}

.pay-option__label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 1px;
  color: var(--bone);
}

.pay-option__handle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--bone-mute);
  font-weight: 400;
}

@media (max-width: 480px) {
  .pay-options { grid-template-columns: 1fr; }
}

/* =========================================================================
   FORMS — dibs form lives inside the modal; same styles reused in Phase 5
   ========================================================================= */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 1.5px;
  color: var(--bone-soft);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: #1c1c1c;
  color: var(--bone);
  border: 1px solid var(--bone-faint);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--clover);
  box-shadow: 0 0 0 3px rgba(74, 222, 31, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-body);
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.form-status {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--bone-soft);
  margin: 0;
  line-height: 1.5;
  min-height: 1.5em;
}

/* Honeypot — visually hidden but present for bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================================
   PAGE HEADERS — shared across About / Custom / Contact
   ========================================================================= */

.page-header {
  text-align: center;
  margin-bottom: var(--space-7);
  padding: var(--space-4) 0;
}

.page-subhead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bone-soft);
  margin: var(--space-2) 0 0;
  font-style: italic;
}

/* =========================================================================
   ABOUT VIEW
   ========================================================================= */

.about-content {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--bone-soft);
}

.about-content p {
  margin: 0 0 var(--space-4);
}

.about-lead {
  font-size: 1.3125rem !important;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: var(--space-5) !important;
  line-height: 1.4;
}

.about-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2.5px;
  color: var(--clover);
  margin: var(--space-7) 0 var(--space-3);
}

/* Soft accent-colored rule under section titles */
.about-section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--clover);
  margin-top: var(--space-2);
}

.pile-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pile {
  background: #141414;
  border: 1px solid var(--bone-hair);
  border-left: 3px solid var(--clover);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.pile--readymade { border-left-color: var(--cyan); }
.pile--curated   { border-left-color: var(--hot); }

.pile__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 1.5px;
  color: var(--bone);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
}

.pile p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.pile a {
  color: var(--clover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.about-outro {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--bone-hair);
  text-align: center;
}

.about-signoff {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--bone-soft);
  margin-top: var(--space-3) !important;
}

/* =========================================================================
   COMMISSION FORM (CUSTOM WORK VIEW)
   ========================================================================= */

.commission-intro {
  max-width: 620px;
  margin: 0 auto var(--space-6);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--bone-soft);
}

.form--page {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--space-5);
  background: #111;
  border: 1px solid var(--bone-hair);
  border-radius: var(--radius-lg);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.field-hint {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--bone-mute);
  margin: 4px 0 0;
  font-style: italic;
}

/* Checkbox group (preferred contact method) */
.field--checks {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--checks legend {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 1.5px;
  color: var(--bone-soft);
  margin-bottom: 4px;
  padding: 0;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--bone);
  cursor: pointer;
  padding: 4px 0;
}

.check input[type="checkbox"] {
  accent-color: var(--clover);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Inline row of checkboxes once there's enough width */
@media (min-width: 560px) {
  .field--checks {
    flex-direction: row;
    gap: var(--space-4);
    align-items: center;
  }
  .field--checks legend {
    flex: 0 0 100%;
    margin-bottom: var(--space-2);
  }
}

/* =========================================================================
   CONTACT VIEW — two-column on desktop, stacked on mobile
   ========================================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-aside {
  padding: var(--space-5);
  background: #111;
  border: 1px solid var(--bone-hair);
  border-radius: var(--radius-lg);
}

.contact-aside__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 2px;
  color: var(--clover);
  margin: 0 0 var(--space-3);
}

.contact-aside__blurb {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--bone-soft);
  margin: 0 0 var(--space-4);
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #1c1c1c;
  border: 1px solid var(--bone-faint);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--bone);
  transition: all var(--dur-fast) var(--ease);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--clover);
  color: var(--bone);
}

.social-link__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--clover);
}

.social-link__handle {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--bone-soft);
}

.contact-aside__note {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--bone-mute);
  font-style: italic;
  margin: 0;
  line-height: 1.55;
}

/* =========================================================================
   GALLERY — masonry-style grid of archival images, click opens lightbox
   ========================================================================= */

.gallery-grid {
  /* CSS columns give us a simple masonry layout without JS. Images flow
     top-to-bottom in each column, filling each before starting the next. */
  column-count: 3;
  column-gap: var(--space-4);
  padding: 0;
}

@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
}
@media (max-width: 500px) {
  .gallery-grid {
    column-count: 1;
    column-gap: var(--space-3);
  }
}

.gallery-item {
  /* Each item is a tile. `break-inside: avoid` keeps columns from slicing
     an image across a column break. margin-bottom gives vertical rhythm. */
  display: block;
  width: 100%;
  margin: 0 0 var(--space-4);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  break-inside: avoid;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-med) var(--ease);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(74, 222, 31, 0.35);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.gallery-item.is-hidden {
  display: none !important;
}

/* =========================================================================
   LIGHTBOX — full-screen single-image view with prev/next
   ========================================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.lightbox[hidden] { display: none; }

.lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Clicks on empty stage area close the lightbox (handled in JS). */
  cursor: pointer;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  /* Subtle green aura to echo the brand without overpowering the image. */
  box-shadow: 0 0 40px rgba(74, 222, 31, 0.15);
  border-radius: var(--radius-md);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(10, 10, 10, 0.6);
  color: var(--bone);
  border: 1px solid var(--bone-hair);
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-display);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.lightbox__close {
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  padding-bottom: 4px; /* optical centering for the chevrons */
}

.lightbox__nav--prev { left:  var(--space-4); }
.lightbox__nav--next { right: var(--space-4); }

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  color: var(--clover);
  border-color: var(--clover);
  background: rgba(10, 10, 10, 0.8);
}

@media (max-width: 500px) {
  .lightbox { padding: var(--space-3); }
  .lightbox__close { width: 36px; height: 36px; top: var(--space-3); right: var(--space-3); }
  .lightbox__nav   { width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox__nav--prev { left:  var(--space-3); }
  .lightbox__nav--next { right: var(--space-3); }
}
