/* ============================================================
   PTHR3 DENIM — Stylesheet
   File: css/styles.css

   HOW TO EDIT IN VS CODE:
   1. Open the p3/ folder:  File › Open Folder › select p3/
   2. Install "Live Server" extension (Ritwick Dey)
   3. Right-click index.html › Open with Live Server

   SECTIONS:
   01  Reset & Variables
   02  Utility & Layout helpers
   03  Navigation + Mobile Drawer
   04  Hero
   05  Ticker / Marquee strip
   06  Origin Banner
   07  Archive Section
   08  Process Section
   09  About Section
   10  Inquiry Section
   11  Footer
   12  Modal
   13  Animations
   14  Media Queries  (tablet 900px · mobile 480px)
   ============================================================ */


/* ── 01  RESET & VARIABLES ─────────────────────────────────── */

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

:root {
  /* Palette */
  --black:  #0a0a0a;
  --ash:    #111111;
  --smoke:  #1a1a1a;
  --bone:   #e8e0d4;
  --rust:   #c4622d;
  --mist:   #787878;
  --white:  #f5f0ea;
  --gold:   #b8a060;
  --gold-dim: rgba(184, 160, 96, 0.15);

  /* Spacing scale */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  48px;
  --sp-xl:  80px;
  --sp-2xl: 120px;

  /* Layout */
  --max-w:       1340px;   /* max content width */
  --gutter:      32px;     /* page-edge padding desktop */
  --gutter-mob:  20px;     /* page-edge padding mobile */

  /* Type */
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-mono:    'DM Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med:  0.45s;
  --dur-slow: 0.75s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--font-mono);
  cursor: crosshair;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/*
  Grain overlay — a subtle film-grain texture layered over the entire page.
  Uses an inline SVG with fractalNoise to generate the grain pattern.
  pointer-events: none means it never blocks clicks or hovers.
  z-index: 9000 keeps it above all content but below the modal (z-index: 500
  is the modal, but the grain is decorative and very faint at opacity: 0.35).
*/
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.35;
}


/* ── 02  UTILITY & LAYOUT ──────────────────────────────────── */

/* Centered content wrapper — used in most sections */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Section eyebrow label (small all-caps rust text) */
.eyebrow {
  font-size: 8px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--sp-sm);
}

/* Divider line */
.rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* Scroll-reveal base — JS adds .visible when element enters viewport */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Stagger children reveals */
.reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-group.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }

/* Small decorative pip (gold square) */
.pip {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}


/* ── 03  NAVIGATION ────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  transition: background var(--dur-med) ease, padding var(--dur-med) ease,
              box-shadow var(--dur-med) ease;
}

/* Raised above the backdrop when mobile drawer is open */
.nav.nav-open {
  z-index: 206;
}

/* Scrolled state — added by JS once page scrolls */
.nav.scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Logo image + text combined */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
  border-radius: 2px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.22em;
  color: var(--white);
  line-height: 1;
}

.nav-logo-text span {
  color: var(--rust);
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color var(--dur-fast) ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--rust);
  transition: width var(--dur-med) var(--ease-out);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Inquire CTA link in nav — styled differently */
.nav-links .nav-cta {
  border: 1px solid rgba(196, 98, 45, 0.4);
  padding: 6px 14px;
  color: var(--rust);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}

/* Hamburger — desktop hidden, mobile visible */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative; /* needed for z-index to take effect */
  z-index: 210;
}

.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast) ease,
              width var(--dur-med) var(--ease-out);
}

.nav-hamburger span:nth-child(2) { width: 70%; }

/* Hamburger → X animation when menu is open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile Drawer ── */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--ash);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 205;
  display: flex;
  flex-direction: column;
  padding: 80px var(--sp-lg) var(--sp-xl);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-drawer a {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.06em;
  color: var(--mist);
  padding: 8px 0;
  transition: color var(--dur-fast) ease;
}

.mobile-drawer a:hover {
  color: var(--white);
}

.drawer-footer {
  margin-top: auto;
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

/* Backdrop dim when drawer is open */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 204;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}


/* ── 04  HERO ──────────────────────────────────────────────── */

.hero {
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-xl) var(--gutter);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.22) saturate(0.4);
  scale: 1.04;   /* slight oversize to allow parallax without white edges */
}

.hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(10, 10, 10, 1)    0%,
      rgba(10, 10, 10, 0.2)  50%,
      rgba(10, 10, 10, 0.55) 100%),
    linear-gradient(to right,
      rgba(10, 10, 10, 0.3)  0%,
      transparent            60%);
}

/* Three decorative animated vertical lines */
.smoke-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(196, 98, 45, 0.2),
    transparent
  );
  animation: smokeDrift 10s ease-in-out infinite;
}

.sl1 { left: 12%;  height: 60%; top: 20%; animation-delay: 0s;    }
.sl2 { left: 50%;  height: 75%; top: 10%; animation-delay: 2.8s;  opacity: 0.45; }
.sl3 { left: 80%;  height: 45%; top: 30%; animation-delay: 5.5s;  opacity: 0.25; }

/* Content — layered above bg and grad */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(184, 160, 96, 0.55);
  padding: 6px 14px;
  margin-bottom: 20px;
  animation: fadeUp 1s var(--ease-out) 0.2s both;
}

.hero-badge span {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 148px);
  line-height: 0.87;
  color: var(--white);
  animation: fadeUp 1s var(--ease-out) 0.4s both;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rust);
  font-size: 0.6em;
  line-height: 1;
}

.hero-sub {
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mist);
  max-width: 340px;
  line-height: 2;
  animation: fadeUp 1s var(--ease-out) 0.6s both;
}

/* Clickable scroll indicator — bottom right */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 2s ease 1.4s both;
  text-decoration: none;
}

.hero-scroll-text {
  font-size: 7px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  writing-mode: vertical-rl;
  transition: color var(--dur-fast) ease;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--rust), transparent);
  animation: scrollPulse 2s ease-in-out infinite 1.5s;
}

.hero-scroll:hover .hero-scroll-text {
  color: var(--white);
}


/* ── 05  TICKER / MARQUEE ──────────────────────────────────── */

.ticker {
  background: var(--rust);
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-segment {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.ticker-segment span {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.ticker-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ── 06  ORIGIN BANNER ─────────────────────────────────────── */

.origin-banner {
  background: var(--ash);
  border-bottom: 1px solid rgba(184, 160, 96, 0.12);
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ob-label {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.ob-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ob-text {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--mist);
  line-height: 1.8;
}


/* ── 07  ARCHIVE SECTION ───────────────────────────────────── */

#archive {
  padding-top: 0;
}

.section-header {
  padding: 64px var(--gutter) 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.section-count {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mist);
  text-transform: uppercase;
  align-self: flex-end;
  padding-bottom: 4px;
}

/* Filter tabs */
.filters {
  padding: 18px var(--gutter);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease,
              background var(--dur-fast) ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--rust);
  color: var(--white);
  background: rgba(196, 98, 45, 0.1);
}

/* ── Archive grid ── */

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.piece-card {
  background: var(--black);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

/* Hero card — full width, landscape */
.piece-card:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

/* Last card — full width, landscape (mirrors the hero card) */
.piece-card:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.piece-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur-slow) ease;
  display: block;
}

.piece-card:hover .piece-img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

/* Gradient overlay on card */
.piece-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.97) 0%,
    rgba(10, 10, 10, 0.02) 52%,
    transparent            100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background var(--dur-med) ease;
}

/* Hover makes overlay slightly lighter so image reads better */
.piece-card:hover .piece-overlay {
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.05) 55%,
    transparent           100%
  );
}

/* "Personal Archive" pill — top right */
.piece-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid rgba(184, 160, 96, 0.5);
  color: var(--gold);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
}

.piece-number {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--rust);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.piece-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  transition: color var(--dur-fast) ease;
}

.piece-card:hover .piece-name {
  color: var(--bone);
}

.piece-meta {
  margin-top: 6px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--mist);
  line-height: 1.6;
}

/* View prompt — hidden by default, revealed on hover */
.piece-view {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-med) ease, transform var(--dur-med) ease;
}

.piece-view::after {
  content: '→';
  font-size: 10px;
}

.piece-card:hover .piece-view {
  opacity: 1;
  transform: translateY(0);
}


/* ── 08  PROCESS SECTION ───────────────────────────────────── */

.process {
  padding: var(--sp-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.process-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 540px;
}

/* Left — image panel */
.process-img-wrap {
  position: relative;
  overflow: hidden;
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7) saturate(0.6);
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur-slow) ease;
}

.process-img-wrap:hover .process-img {
  transform: scale(1.03);
  filter: brightness(0.8) saturate(0.75);
}

.process-img-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 7px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* Right — text panel */
.process-text {
  background: var(--ash);
  padding: var(--sp-xl) var(--sp-xl) var(--sp-xl) 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-lg);
}

.process-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 0.02em;
}

.process-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rust);
  font-size: 0.65em;
}

.process-body {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mist);
  line-height: 2.1;
  max-width: 380px;
}

/* Three-step process list */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--rust);
  padding-top: 2px;
  flex-shrink: 0;
  width: 28px;
}

.step-text {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--mist);
  line-height: 1.9;
}

.step-text strong {
  color: var(--bone);
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
}


/* Process image strip — 3 images below the split layout */
.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.process-strip-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65) saturate(0.5);
  transition: filter var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out);
  display: block;
}

.process-strip-img:hover {
  filter: brightness(0.85) saturate(0.75);
}


/* ── 09  ABOUT SECTION ─────────────────────────────────────── */

.about {
  padding: var(--sp-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Full-bleed faint background image */
.about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.06) saturate(0.2);
  z-index: 0;
}

.about-inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
}

/* Large manifesto type */
.manifesto-block {
  margin-bottom: var(--sp-xl);
}

.mf-line {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 96px);
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.01em;
}

.mf-line.hi   { color: var(--white); }
.mf-line .r   { color: var(--rust);  }

/* Story block — below the manifesto */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: start;
}

.about-story-lead {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.05;
}

.about-story-lead em {
  color: var(--rust);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8em;
}

.about-story-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-story-body p {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mist);
  line-height: 2.1;
}

.about-story-body p strong {
  color: var(--bone);
  font-weight: 400;
}

/* Stat row */
.about-stats {
  display: flex;
  gap: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
}


/* ── 10  INQUIRY SECTION ───────────────────────────────────── */

.inquire {
  padding: var(--sp-2xl) 0;
  background: var(--ash);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Very faint atmospheric background image — set via JS (id="inquireBg") */
.inquire-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.05) saturate(0.1);
  z-index: 0;
}

/* Content sits above the .inquire-bg background image */
.inquire-inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

/* Left — heading block */
.inquire-heading {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 0.88;
  margin-bottom: var(--sp-md);
}

.inquire-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rust);
  font-size: 0.62em;
}

.inquire-sub {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mist);
  line-height: 2;
  max-width: 360px;
}

/* Right — contact methods */
.inquire-methods {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inquire-method {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.inquire-method:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.method-label {
  font-size: 7px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rust);
}

.method-value {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color var(--dur-fast) ease;
}

.method-value a:hover {
  color: var(--rust);
}

.method-note {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--mist);
  line-height: 1.7;
}

/* "Request an Inquiry" note */
.inquire-note {
  margin-top: var(--sp-lg);
  padding: var(--sp-md);
  border: 1px solid rgba(184, 160, 96, 0.2);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--mist);
  line-height: 1.9;
}

.inquire-note strong {
  color: var(--gold);
  font-weight: 400;
}


/* ── 11  FOOTER ────────────────────────────────────────────── */

.footer {
  padding: var(--sp-xl) 0 var(--sp-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  padding: 0 var(--gutter) var(--sp-xl);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-xl);
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer logo */
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.8;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.18em;
  color: var(--white);
  line-height: 1;
}

.footer-tagline {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

/* Footer nav columns */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  padding: 0 var(--sp-xl);
}

.footer-nav-col h4 {
  font-size: 7px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
  font-weight: 400;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: uppercase;
  transition: color var(--dur-fast) ease;
}

.footer-nav-col a:hover {
  color: var(--white);
}

/* Footer contact block */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}

.footer-contact h4 {
  font-size: 7px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 400;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-item span:first-child {
  font-size: 7px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-contact-item a,
.footer-contact-item span:last-child {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--bone);
  transition: color var(--dur-fast) ease;
}

.footer-contact-item a:hover {
  color: var(--rust);
}

/* Footer bottom bar */
.footer-bottom {
  padding: var(--sp-md) var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(120, 120, 120, 0.4);
}

.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-legal a {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(120, 120, 120, 0.35);
  transition: color var(--dur-fast) ease;
}

.footer-legal a:hover {
  color: var(--mist);
}


/* ── 12  MODAL ─────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.97);
  z-index: 500;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Close button */
.modal-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 600;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.modal-close:hover {
  border-color: var(--rust);
  color: var(--rust);
}

/* Desktop: two-column layout */
.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

/* Left — image column */
.modal-img-col {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.modal-img-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.3s ease;
}

/* Dot indicators */
.modal-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.dot.active {
  background: var(--rust);
  transform: scale(1.2);
}

/* Thumbnail strip */
.thumb-strip {
  display: flex;
  gap: 3px;
  padding: 3px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.thumb-strip::-webkit-scrollbar { display: none; }

.thumb {
  flex-shrink: 0;
  width: 62px;
  height: 80px;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
  cursor: pointer;
  transition: opacity var(--dur-fast) ease;
  border: 1px solid transparent;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: var(--rust);
}

/* Right — info column */
.modal-info-col {
  padding: 72px 48px 60px;
  overflow-y: auto;
}

.modal-collection-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(184, 160, 96, 0.4);
  padding: 5px 12px;
  margin-bottom: 14px;
}

.modal-collection-tag span {
  font-size: 7px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-eyebrow {
  font-size: 8px;
  letter-spacing: 0.32em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 74px);
  letter-spacing: 0.02em;
  line-height: 0.87;
  color: var(--white);
  margin-bottom: 28px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 20px 0;
}

/* Detail rows */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 20px;
}

.d-label {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  flex-shrink: 0;
}

.d-value {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--bone);
  text-align: right;
  line-height: 1.6;
}

/* Story text */
.modal-story {
  margin-top: 24px;
  font-size: 11px;
  line-height: 2.1;
  color: var(--mist);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Tag chips */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.tag {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--mist);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.tag:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--bone);
}

/* CTA bar */
.modal-cta {
  margin-top: 32px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(184, 160, 96, 0.25);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  cursor: default;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

/* Nav arrows inside modal */
.modal-nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.modal-nav-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.modal-nav-btn:hover {
  border-color: var(--rust);
  color: var(--white);
}


/* ── 13  ANIMATIONS ────────────────────────────────────────── */

@keyframes smokeDrift {
  0%, 100% { transform: translateX(0px);  opacity: 0.4;  }
  50%       { transform: translateX(10px); opacity: 0.85; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}


/* ── 14  MEDIA QUERIES ─────────────────────────────────────── */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --sp-2xl: 80px;
  }

  /* Nav */
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { padding: var(--sp-xl) var(--gutter); }

  /* Process — stack vertically */
  .process-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .process-img-wrap {
    height: 380px;
  }

  .process-text {
    padding: var(--sp-xl) var(--gutter);
  }

  /* About story — stack */
  .about-story {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  /* Inquiry — stack */
  .inquire-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  /* Modal — single column */
  .modal-content {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .modal-img-col {
    position: static;
    height: auto;
  }

  .modal-img-wrap {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .modal-info-col {
    padding: 40px var(--gutter) 60px;
  }

  /* Footer top */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .footer-nav {
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process strip — square crop on tablet */
  .process-strip-img { aspect-ratio: 1 / 1; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  :root {
    --gutter: var(--gutter-mob);
    --sp-xl:  56px;
    --sp-2xl: 64px;
  }

  /* Archive grid — single column */
  .archive-grid { grid-template-columns: 1fr; }

  .piece-card:first-child,
  .piece-card:last-child {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  /* Section header — stack */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-xs);
    padding: 44px var(--gutter) 24px;
  }

  /* Process steps */
  .process-img-wrap { height: 280px; }

  /* Process strip — stack to single column on mobile */
  .process-strip { grid-template-columns: 1fr; }

  .process-strip-img { aspect-ratio: 3 / 2; }

  /* About stats */
  .about-stats { gap: var(--sp-lg); }
  .stat-num    { font-size: 40px;   }

  /* Footer nav */
  .footer-nav { grid-template-columns: 1fr; gap: var(--sp-md); }

  /* Footer bottom */
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Modal */
  .modal-close { top: 14px; right: 14px; }

  .modal-info-col { padding: 28px var(--gutter-mob) 48px; }

  .modal-title { font-size: 48px; }
}

/* ── Reduced motion — respect user OS preference ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
  }
}
