/* Owlex — light · Kode Mono · #9dabce #64462c */

:root {
  --mist: #9dabce;
  --bark: #64462c;
  --mist-soft: color-mix(in srgb, var(--mist) 35%, white);
  --bark-deep: #4d3522;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #e8ecf2;
  --ink: #14161a;
  --ink-muted: #5c6570;
  --ink-faint: #8b939e;
  --border: rgba(20, 22, 26, 0.08);
  --border-strong: rgba(100, 70, 44, 0.18);
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 22, 26, 0.06);
  --shadow-lift: 0 12px 32px rgba(20, 22, 26, 0.08);
  --font: "Kode Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.2, 0.64, 1);
  --radius: 6px;
  --radius-sm: 4px;
}

html[data-theme="night"] {
  color-scheme: dark;
  --mist: #8fa3c4;
  --bark: #d4b896;
  --mist-soft: color-mix(in srgb, var(--mist) 45%, #1a1f28);
  --bark-deep: #e8d4b8;
  --surface: #171b24;
  --surface-2: #0c0f14;
  --surface-3: #1f2633;
  --ink: #e8ecf4;
  --ink-muted: #a8b3c4;
  --ink-faint: #6d7789;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(157, 171, 206, 0.22);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 14px 40px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
  transition:
    color 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    background 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="night"] body {
  background:
    radial-gradient(
      ellipse 100% 52% at 50% 0%,
      rgba(215, 185, 135, 0.1),
      transparent 48%
    ),
    radial-gradient(
      ellipse 58% 42% at 92% 100%,
      rgba(115, 140, 185, 0.09),
      transparent 52%
    ),
    var(--surface-2);
}

.site-header,
section,
.site-footer,
.gallery-dialog,
.lore-card,
.gallery-card,
.btn {
  transition:
    background-color 1s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.85s ease,
    color 0.75s ease,
    box-shadow 1s ease;
}

main {
  position: relative;
  z-index: 1;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  transition: opacity 0.8s ease;
}

html[data-theme="night"] .grain {
  mix-blend-mode: soft-light;
  opacity: 0.055;
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Lamp pull — day / night */

.lamp-pull {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem 0.5rem;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-faint);
  -webkit-tap-highlight-color: transparent;
}

.lamp-pull:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--mist) 65%, var(--bark));
  outline-offset: 4px;
  border-radius: 8px;
}

.lamp-pull__housing {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lamp-pull__socket {
  width: 1.6rem;
  height: 0.5rem;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-3) 90%, var(--ink-muted)),
    color-mix(in srgb, var(--ink-faint) 65%, var(--surface-2))
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.12);
}

.lamp-pull__cord {
  width: 2px;
  height: 3.4rem;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    #9a9590,
    #4a4744 55%,
    #3a3836
  );
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06);
}

.lamp-pull__knob {
  width: 1rem;
  height: 1rem;
  margin-top: -2px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    #f2ebe4,
    #c4b5a2 45%,
    #6b5d4c
  );
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.28),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.48s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.lamp-pull--pulling .lamp-pull__knob {
  transform: translateY(16px);
}

.lamp-pull__status {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

html[data-theme="night"] .lamp-pull__label--to-night {
  display: none;
}

html[data-theme="night"] .lamp-pull__label--to-day {
  display: inline;
}

.lamp-pull__label--to-day {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .lamp-pull__knob {
    transition-duration: 0.15s;
  }

  body,
  .site-header,
  section,
  .site-footer,
  .gallery-dialog,
  .lore-card,
  .gallery-card,
  .btn {
    transition-duration: 0.01s !important;
  }
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo--brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}

.logo__img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}

.logo__wordmark {
  font-weight: 700;
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  letter-spacing: 0.18em;
}

@media (max-width: 767px) {
  .logo--brand {
    min-width: 0;
    max-width: calc(100% - 3.25rem);
  }

  .logo__wordmark {
    font-size: clamp(0.72rem, 4vw, 0.88rem);
    letter-spacing: 0.1em;
  }
}

@media (max-width: 380px) {
  .logo__wordmark {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .logo__img {
    width: 2.35rem;
    height: 2.35rem;
  }
}

@media (max-width: 340px) {
  /* Wordmark hidden; .logo--brand has aria-label for a11y */
  .logo__wordmark {
    display: none;
  }

  .logo--brand {
    max-width: none;
  }
}

.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  margin-left: -0.55rem;
  background: var(--ink);
  border-radius: 1px;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.25s ease,
    top 0.3s var(--ease-out);
}

.nav-toggle__bar:nth-child(1) {
  top: calc(50% - 6px);
}

.nav-toggle__bar:nth-child(2) {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle__bar:nth-child(3) {
  top: calc(50% + 6px);
}

.site-header--open .nav-toggle__bar:nth-child(1) {
  top: 50%;
  margin-top: -1px;
  transform: rotate(45deg);
}

.site-header--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header--open .nav-toggle__bar:nth-child(3) {
  top: 50%;
  margin-top: -1px;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.nav-icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  color: var(--bark);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.nav-cta--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
}

.nav-cta__label {
  display: inline;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    flex-basis: 100%;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.4s var(--ease-out),
      opacity 0.25s ease,
      visibility 0s linear 0.4s;
    padding: 0;
    margin: 0;
    border-top: none;
  }

  .nav-section {
    display: flex;
    width: 100%;
  }

  .nav-section--pages {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-section--social {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 0.5rem 0.65rem;
    padding-top: 0.65rem;
    margin-top: 0.15rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  }

  .site-header--open .nav {
    max-height: 28rem;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s, 0s, 0s;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
  }

  .nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
  }

  .nav-section--pages .nav-link {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  }

  .nav-section--pages .nav-link:last-child {
    border-bottom: none;
  }

  .nav-section--social .nav-link {
    border-bottom: none;
    min-height: 2.5rem;
  }

  .nav-section--social .nav-icon-btn {
    width: 2.5rem;
    min-height: 2.5rem;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }

  .nav-section--social .nav-cta {
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    min-height: 2.5rem;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }

  body.site-nav-open {
    overflow: hidden;
  }

  @media (prefers-reduced-motion: reduce) {
    .nav {
      transition: none;
    }
  }
}

@media (min-width: 768px) {
  .nav-section {
    display: contents;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav {
    flex-basis: auto;
    width: auto;
    order: unset;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: none !important;
  }

  .nav .nav-link {
    min-height: unset;
    padding: unset;
    border-bottom: none !important;
  }

  .nav .nav-icon-btn {
    width: 2.25rem;
    min-height: 2.25rem;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }

  .nav .nav-cta {
    min-height: unset;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
}

.nav-cta:hover {
  background: color-mix(in srgb, var(--mist) 12%, white);
  border-color: color-mix(in srgb, var(--mist) 45%, var(--bark));
}

.brand-icon {
  display: block;
  flex-shrink: 0;
}

.brand-icon--opensea,
.footer-brand-icon--opensea {
  color: #2081e2;
}

.brand-icon--instagram {
  color: #e4405f;
}

.brand-icon--tiktok {
  color: var(--ink);
}

.brand-icon--shopify {
  color: #96bf48;
}

html[data-theme="night"] .brand-icon--tiktok {
  color: #f4f4f5;
}

/* Hero */

.hero {
  min-height: 100vh;
  padding: 5.5rem 1.75rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 90% 55% at 75% 0%,
      color-mix(in srgb, var(--mist) 22%, white),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 45% at 10% 90%,
      color-mix(in srgb, var(--bark) 8%, white),
      transparent 50%
    ),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--mist) 5%, transparent) 100%
  );
  pointer-events: none;
}

html[data-theme="night"] .hero {
  background:
    radial-gradient(
      ellipse 88% 52% at 72% 0%,
      color-mix(in srgb, var(--mist) 18%, transparent),
      transparent 54%
    ),
    radial-gradient(
      ellipse 68% 48% at 12% 88%,
      color-mix(in srgb, var(--bark) 12%, transparent),
      transparent 52%
    ),
    linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
}

.hero-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  margin: 0 0 1rem;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.15rem, 6.5vw, 3.35rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.title-line__inner {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero-lead,
  .hero-actions {
    opacity: 0;
    animation: fade-rise 0.75s var(--ease-out) forwards;
  }

  .hero .eyebrow {
    animation-delay: 0.04s;
  }

  .hero-lead {
    animation-delay: 0.72s;
  }

  .hero-actions {
    animation-delay: 0.82s;
  }

  .hero .title-line__inner {
    opacity: 0;
    transform: translate3d(0, 120%, 0);
    animation-duration: 0.88s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: forwards;
  }

  .hero .title-line--1 .title-line__inner {
    animation-name: hero-line-from-left;
    animation-delay: 0.06s;
  }

  .hero .title-line--3 .title-line__inner {
    animation-name: hero-line-from-right;
    animation-delay: 0.38s;
  }

  .hero .title-line--accent .title-line__inner {
    animation-name: hero-line-from-center, hero-accent-glow;
    animation-duration: 0.88s, 5.5s;
    animation-delay: 0.2s, 1.15s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-line-from-left {
  from {
    opacity: 0;
    transform: translate3d(-0.2em, 118%, 0) rotate(-0.35deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes hero-line-from-center {
  from {
    opacity: 0;
    transform: translate3d(0, 118%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-line-from-right {
  from {
    opacity: 0;
    transform: translate3d(0.22em, 118%, 0) rotate(0.35deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes hero-accent-glow {
  0%,
  100% {
    text-shadow:
      0 0 0 transparent,
      0 0 0 transparent;
    filter: brightness(1);
  }
  45% {
    text-shadow:
      0 0 32px color-mix(in srgb, var(--mist) 42%, transparent),
      0 0 1px color-mix(in srgb, var(--bark) 20%, transparent);
    filter: brightness(1.04);
  }
}

.title-line.accent .title-line__inner {
  color: var(--bark);
}

@media (prefers-reduced-motion: reduce) {
  .title-line {
    overflow: visible;
  }

  .title-line__inner {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-lead {
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    transform 0.22s var(--ease-snap),
    box-shadow 0.22s var(--ease-out),
    background 0.2s,
    border-color 0.2s;
}

.btn-primary {
  background: var(--bark);
  color: var(--surface);
  box-shadow: var(--shadow-sm), 0 4px 16px color-mix(in srgb, var(--bark) 28%, transparent);
}

.btn-primary:hover {
  background: var(--bark-deep);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  flex-shrink: 0;
}

/* Hero visual */

.hero-visual {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-owlex {
  position: relative;
  z-index: 2;
  width: min(280px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--mist) 40%, transparent);
  user-select: none;
  line-height: 0;
}

.hero-owlex__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: float-y 3.5s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.scroll-hint:hover {
  color: var(--bark);
}

@keyframes float-y {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

/* Sections */

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.75rem;
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.gallery .section-title {
  margin-bottom: 0.5rem;
}

.gallery-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .gallery-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.gallery-header__copy {
  flex: 1;
  min-width: 0;
}

.gallery-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  flex-shrink: 0;
}

.gallery-stat__n {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--mist) 55%, var(--ink));
}

.gallery-stat__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Lore */

.lore {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lore-columns {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .lore-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.lore-card {
  padding: 1.5rem 1.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-snap),
    border-color 0.2s,
    box-shadow 0.3s;
}

.lore-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bark);
}

.lore-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.lore-card:hover {
  border-color: color-mix(in srgb, var(--mist) 45%, var(--border));
}

.lore-card.is-lifted {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--mist) 35%, var(--border));
}

/* Gallery — bento + framed placeholders */

.gallery {
  background: var(--surface-2);
}

.gallery-intro {
  margin: 0;
  max-width: 48ch;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.gallery-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .gallery-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  }

  .gallery-card--feature {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 300px;
  }

  .gallery-card--compact:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .gallery-card--compact:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .gallery-card--compact:nth-of-type(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .gallery-card--compact:nth-of-type(5) {
    grid-column: 3;
    grid-row: 2;
  }

  .gallery-card--wide {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 132px;
  }
}

.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 0;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.25s;
}

.gallery-card:focus {
  outline: none;
}

.gallery-card:focus-visible {
  box-shadow:
    var(--shadow-sm),
    0 0 0 2px var(--surface),
    0 0 0 4px color-mix(in srgb, var(--mist) 65%, var(--bark));
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--mist) 35%, var(--border));
}

.gallery-card:active {
  transform: translateY(-1px);
}

.gallery-card__frame {
  position: relative;
  flex: 1;
  min-height: 140px;
  margin: 0.65rem 0.65rem 0;
  border-radius: 7px;
  overflow: hidden;
}

.gallery-card--feature .gallery-card__frame {
  min-height: 200px;
}

.gallery-card--wide .gallery-card__frame {
  min-height: 100px;
}

.gallery-card__mat {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--bark) 12%, var(--border));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface-2) 90%, white) 0%,
    var(--surface-3) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.gallery-card__canvas {
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-3);
}

.gallery-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.gallery-card__canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 5px,
    rgba(20, 22, 26, 0.05) 5px,
    rgba(20, 22, 26, 0.05) 6px
  );
  pointer-events: none;
}

.gallery-card__shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0.1) 52%,
    transparent 58%
  );
  transform: translateX(-100%) rotate(8deg);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}

.gallery-card:hover .gallery-card__shine {
  transform: translateX(100%) rotate(8deg);
}

.gallery-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-2) 65%, white));
}

.gallery-card__eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bark);
}

.gallery-card--feature .gallery-card__footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
}

.gallery-card--feature .gallery-card__eyebrow {
  grid-column: 1 / -1;
}

.gallery-card__id {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.gallery-card--feature .gallery-card__id {
  font-size: 1.15rem;
}

.gallery-card__chain {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.gallery-card__hint {
  width: 100%;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.gallery-card--wide {
  flex-direction: column;
}

@media (min-width: 900px) {
  .gallery-card--wide {
    flex-direction: row;
    align-items: stretch;
  }

  .gallery-card--wide .gallery-card__frame {
    flex: 1;
    margin: 0.65rem;
    min-height: 0;
  }

  .gallery-card--wide .gallery-card__footer {
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 9rem;
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 1rem 1.25rem;
  }

  .gallery-card--wide .gallery-card__hint {
    width: auto;
  }
}

/* Lightbox */

.gallery-dialog {
  padding: 0;
  border: none;
  border-radius: 12px;
  max-width: min(440px, 92vw);
  background: var(--surface);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--border);
}

.gallery-dialog::backdrop {
  background: rgba(20, 22, 26, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme="night"] .gallery-dialog::backdrop {
  background: rgba(2, 6, 14, 0.78);
}

.gallery-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.gallery-dialog__close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.gallery-dialog__body {
  padding: 1.5rem 1.5rem 1.35rem;
  padding-top: 2.75rem;
}

.gallery-dialog__stage {
  aspect-ratio: 1;
  max-height: min(56vh, 360px);
  margin: 0 auto 1.1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-dialog__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: var(--surface-2);
}

.gallery-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.gallery-dialog__title [data-dialog-token] {
  color: var(--bark);
  font-weight: 700;
}

.gallery-dialog__meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card:hover {
    transform: none;
  }

  .gallery-card__shine {
    transition: none;
  }

  .gallery-card:hover .gallery-card__shine {
    transform: translateX(-100%) rotate(8deg);
    opacity: 0;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 1.75rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  color: var(--ink);
}

.footer-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-start;
}

@media (min-width: 600px) {
  .footer-social {
    gap: 1rem;
    justify-content: flex-end;
  }
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bark);
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: var(--bark-deep);
}

.footer-social-link--icon {
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.footer-social-link--icon:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.footer-brand-icon {
  display: block;
  flex-shrink: 0;
}

.footer-brand-icon--x {
  color: var(--ink);
}

.footer-brand-icon--instagram {
  color: #e4405f;
}

.footer-brand-icon--tiktok {
  color: var(--ink);
}

.footer-brand-icon--shopify {
  color: #96bf48;
}

html[data-theme="night"] .footer-brand-icon--tiktok {
  color: #f4f4f5;
}

/* Click feedback — restrained */

.click-pop.is-active {
  animation: pop 0.38s var(--ease-snap);
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

.click-bounce.is-active {
  animation: bounce-in 0.42s var(--ease-snap);
}

@keyframes bounce-in {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mist) 25%, var(--bark) 15%);
  opacity: 0.35;
  transform: scale(0);
  animation: ripple-expand 0.55s var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  to {
    transform: scale(3.5);
    opacity: 0;
  }
}
