/* =============================================================================
   Art on the Beach — Master Stylesheet
   Aesthetic: Luxury Coastal Dark
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */

:root {
  /* Colour palette */
  --c-void:        #0a0a0a;   /* near-black background */
  --c-deep:        #111111;   /* card/panel background */
  --c-surface:     #181818;   /* elevated surfaces */
  --c-border:      #242424;   /* subtle borders */
  --c-border-warm: #2e2a24;   /* warm-tinted border */

  --c-sand:        #c8a96e;   /* primary gold accent */
  --c-sand-light:  #dfc08a;   /* hover state */
  --c-sand-dim:    #8a7048;   /* muted accent */
  --c-sand-glow:   rgba(200, 169, 110, 0.12); /* ambient glow */

  --c-text:        #e8e2d9;   /* primary text — warm off-white */
  --c-text-muted:  #c0b4a9;   /* secondary text */
  --c-text-faint:  #3d3a35;   /* disabled / placeholder */

  --c-white:       #f5f0e8;   /* headings / inverted elements */
  --c-error:       #c0675a;
  --c-success:     #6a9e7f;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Bricolage Grotesque', sans-serif;

  --fs-xs:   0.75rem;    /* 12px */
  --fs-sm:   0.875rem;   /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md:   1.125rem;   /* 18px */
  --fs-lg:   1.375rem;   /* 22px */
  --fs-xl:   1.75rem;    /* 28px */
  --fs-2xl:  2.25rem;    /* 36px */
  --fs-3xl:  3rem;       /* 48px */
  --fs-4xl:  4rem;       /* 64px */
  --fs-5xl:  5.5rem;     /* 88px */

  --fw-light:  300;
  --fw-normal: 400;
  --fw-medium: 500;

  --lh-tight:  1.1;
  --lh-snug:   1.3;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  --ls-tight:  -0.03em;
  --ls-normal: 0em;
  --ls-wide:   0.08em;
  --ls-wider:  0.15em;
  --ls-widest: 0.25em;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-max:  1360px;
  --container-pad:  clamp(1.25rem, 5vw, 3rem);
  --nav-height:     72px;

  /* Borders & Radius */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;
  --radius-xl:  16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-gold:0 0 40px rgba(200,169,110,0.15);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   150ms;
  --dur-base:   280ms;
  --dur-slow:   500ms;
  --dur-slower: 800ms;
}


/* =============================================================================
   RESET & BASE
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--c-void);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle grain texture overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  /*transform: rotate(-1deg);
  transform-origin: center top;*/
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-white);
}


/* =============================================================================
   CUSTOM SCROLLBAR
   ============================================================================= */

::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: var(--c-void); }
::-webkit-scrollbar-thumb        { background: var(--c-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: var(--c-sand-dim); }


/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1560px;
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--sm {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }


/* =============================================================================
   TYPOGRAPHY UTILITIES
   ============================================================================= */

.display {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--c-white);
}

.display em {
  font-style: italic;
  color: var(--c-sand);
}

.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-tight);
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: var(--fw-light);
}

.heading-3 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-2xl));
  font-weight: var(--fw-normal);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-sand);
}

.body-lg  { font-size: var(--fs-md); line-height: var(--lh-loose); }
.body-sm  { font-size: var(--fs-sm); }
.muted    { color: var(--c-text-muted); }
.centered { text-align: center; }

/* Gold rule divider */
.rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--c-text-muted);
}
.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-warm), transparent);
}


/* =============================================================================
   NAVIGATION
   ============================================================================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--c-border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Logo */
.site-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav__logo img {
  height: 48px;
  width: auto;
  filter: brightness(0.92);
  transition: filter var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.site-nav__logo:hover img {
  filter: brightness(1) sepia(0.2) hue-rotate(10deg);
  transform: scale(1.02);
}

/* Primary nav links */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--dur-fast);
  position: relative;
  padding-block: var(--space-2);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-sand);
  transition: width var(--dur-base) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link.active {
  color: var(--c-text);
}

.site-nav__link:hover::after,
.site-nav__link.active::after {
  width: 100%;
}

/* Right side icons */
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--c-text-muted);
  transition: color var(--dur-fast);
  position: relative;
}

.nav-icon-btn:hover { color: var(--c-text); }

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--c-sand);
  color: var(--c-void);
  font-size: 9px;
  font-weight: var(--fw-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile menu toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px;
  color: var(--c-text-muted);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--c-void);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-drawer__link {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-3xl));
  font-weight: var(--fw-light);
  color: var(--c-text-muted);
  letter-spacing: var(--ls-tight);
  transition: color var(--dur-fast);
}

.nav-drawer__link:hover { color: var(--c-white); }

.nav-drawer__divider {
  width: 1px;
  height: 2rem;
  background: var(--c-border);
}


/* =============================================================================
   PAGE WRAPPER
   ============================================================================= */

.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }


/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
  margin-top: var(--space-32);
  border-top: 1px solid var(--c-border);
  padding-block: var(--space-16) var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--space-8);
}

.footer-brand__logo {
  height: 52px;
  width: auto;
  filter: brightness(0.55);
  margin-bottom: var(--space-6);
}

.footer-brand__tagline {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--c-text-muted);
  line-height: var(--lh-snug);
  max-width: 280px;
}

.footer-col__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-sand);
  margin-bottom: var(--space-5);
}

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

.footer-col__link {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  transition: color var(--dur-fast);
}

.footer-col__link:hover { color: var(--c-text); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  letter-spacing: var(--ls-wide);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: var(--c-text-faint);
  transition: color var(--dur-fast);
}

.footer-social a:hover { color: var(--c-sand); }

.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75em 1.75em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

/* Primary — gold */
.btn--primary {
  background: var(--c-sand);
  color: var(--c-void);
  border: 1px solid var(--c-sand);
}
.btn--primary:hover {
  background: var(--c-sand-light);
  border-color: var(--c-sand-light);
  box-shadow: 0 4px 20px rgba(200,169,110,0.3);
  transform: translateY(-1px);
}

/* Ghost — outline */
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-sand);
  color: var(--c-sand);
}

/* Ghost gold */
.btn--ghost-gold {
  background: transparent;
  color: var(--c-sand);
  border: 1px solid var(--c-sand-dim);
}
.btn--ghost-gold:hover {
  background: var(--c-sand-glow);
  border-color: var(--c-sand);
}

/* Icon button */
.btn--icon {
  padding: 0.6em;
  border-radius: var(--radius-md);
}

.btn--lg {
  padding: 1em 2.5em;
  font-size: var(--fs-base);
}

.btn--sm {
  padding: 0.5em 1.25em;
  font-size: var(--fs-xs);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}


/* =============================================================================
   ARTWORK CARD
   ============================================================================= */

.artwork-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  cursor: pointer;
}

.artwork-card:hover {
  border-color: var(--c-border-warm);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.artwork-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-surface);
}

.artwork-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slower) var(--ease-out);
}

.artwork-card:hover .artwork-card__image-wrap img {
  transform: scale(1.04);
}

/* 360 badge */
.badge-360 {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: 2px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-sand);
}

/* Sold out overlay */
.badge-sold-out {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.6);
}

.badge-sold-out span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(10,10,10,0.7);
}

/* Wishlist toggle */
.wishlist-toggle {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-text-muted);
  transition: all var(--dur-fast);
  z-index: 2;
}

.wishlist-toggle:hover,
.wishlist-toggle.active {
  color: var(--c-sand);
  border-color: var(--c-sand-dim);
}

.wishlist-toggle svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.wishlist-toggle.active svg { fill: var(--c-sand); stroke: var(--c-sand); }

.artwork-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.artwork-card__category {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-sand);
}

.artwork-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-normal);
  color: var(--c-white);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
}

.artwork-card__artist {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  font-style: italic;
}

.artwork-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-border);
}

.artwork-card__price {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-normal);
  color: var(--c-white);
}

.artwork-card__price.poa {
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.artwork-card__edition {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  letter-spacing: var(--ls-wide);
}


/* =============================================================================
   FORMS
   ============================================================================= */

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

.form-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  color: var(--c-text);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  appearance: none;
}

.form-control::placeholder { color: var(--c-text-faint); }

.form-control:focus {
  border-color: var(--c-sand-dim);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--c-error);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: var(--lh-normal);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7168' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--c-error);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}


/* =============================================================================
   FLASH MESSAGES
   ============================================================================= */

.flash {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid;
}

.flash--success {
  background: rgba(106,158,127,0.1);
  border-color: rgba(106,158,127,0.3);
  color: var(--c-success);
}

.flash--error {
  background: rgba(192,103,90,0.1);
  border-color: rgba(192,103,90,0.3);
  color: var(--c-error);
}

.flash--info {
  background: var(--c-sand-glow);
  border-color: rgba(200,169,110,0.2);
  color: var(--c-sand);
}


/* =============================================================================
   PAGE HERO
   ============================================================================= */

.page-hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-16);
  position: relative;
}

.page-hero__eyebrow {
  margin-bottom: var(--space-5);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-tight);
  color: var(--c-white);
  margin-bottom: var(--space-6);
}

.page-hero__subtitle {
  font-size: var(--fs-md);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
  max-width: 600px;
}

/* Horizontal rule accent */
.page-hero::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--c-sand);
  margin-top: var(--space-10);
}


/* =============================================================================
   LOADING STATES
   ============================================================================= */

.skeleton {
  background: linear-gradient(90deg,
    var(--c-surface) 25%,
    var(--c-border) 50%,
    var(--c-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-sand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* =============================================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }


/* =============================================================================
   PAGINATION
   ============================================================================= */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-16);
}

.pagination ul {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: var(--fs-sm);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  transition: all var(--dur-fast);
}

.pagination a:hover {
  border-color: var(--c-sand);
  color: var(--c-sand);
}

.pagination li.active a {
  background: var(--c-sand);
  border-color: var(--c-sand);
  color: var(--c-void);
}


/* =============================================================================
   BREADCRUMB
   ============================================================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--c-text-muted);
  margin-bottom: var(--space-8);
}

.breadcrumb a:hover { color: var(--c-sand); }
.breadcrumb__sep { color: var(--c-text-faint); }


/* =============================================================================
   MODAL
   ============================================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--c-deep);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: var(--space-8);
  transform: scale(0.96) translateY(8px);
  transition: transform var(--dur-base) var(--ease-out);
  position: relative;
}

.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: var(--c-text-muted);
  transition: color var(--dur-fast);
}

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


/* =============================================================================
   TOAST NOTIFICATIONS
   ============================================================================= */

.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--c-text);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  pointer-events: all;
  transform: translateX(120%);
  transition: transform var(--dur-base) var(--ease-out);
}

.toast.show { transform: translateX(0); }

.toast--success { border-left: 3px solid var(--c-success); }
.toast--error   { border-left: 3px solid var(--c-error); }
.toast--info    { border-left: 3px solid var(--c-sand); }


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  .site-nav__links  { display: none; }
  .nav-hamburger    { display: flex; }
  .grid--3,
  .grid--4          { grid-template-columns: repeat(2, 1fr); }
  .grid--2          { grid-template-columns: 1fr; }
  .site-footer__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid--3,
  .grid--4          { grid-template-columns: 1fr; }
  .toast-container  { left: var(--space-4); right: var(--space-4); }
  .toast            { max-width: 100%; }
}
