/* =========================================================
   ATELIER NOIR — editorial designer clothing
   inspired by hermes-agent's restraint, applied to fashion
   ========================================================= */

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

:root {
  /* palette: ink, cream, oxblood, brass, ash */
  --ink: #0a0a0c;
  --ink-2: #111114;
  --ash: #1a1a1f;
  --smoke: #2a2a32;
  --bone: #e8e3d8;
  --cream: #f4ede0;
  --paper: #faf6ed;
  --mute: #8a8278;
  --oxblood: #6b1a1a;
  --brass: #b08d57;
  --ember: #d4622a;

  --radius: 2px;
  --radius-md: 4px;
  --max: 1440px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.7, 0, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--ink);
  color: var(--bone);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }

/* =========================================================
   BACK BUTTON
   ========================================================= */
.back-btn {
  position: fixed;
  top: 80px;
  left: 40px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 227, 216, 0.15);
  border-radius: 999px;
  transition: all 0.5s var(--ease);
}
.back-btn:hover {
  border-color: var(--ember);
  color: var(--ember);
  padding-left: 8px;
}
.back-arrow {
  display: inline-block;
  font-size: 14px;
  transition: transform 0.5s var(--ease);
}
.back-btn:hover .back-arrow {
  transform: translateX(-4px);
}

/* when nav is non-interactive, soften its hover affordance */
.nav span {
  opacity: 0.7;
}
.nav .cart-num {
  opacity: 0.5;
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--cream);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor.hover {
  width: 64px;
  height: 64px;
  border-color: var(--ember);
  background: rgba(212, 98, 42, 0.05);
  mix-blend-mode: normal;
}

/* =========================================================
   GRAIN
   ========================================================= */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 40px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  mix-blend-mode: difference;
}
.nav-left, .nav-right {
  display: flex;
  gap: 28px;
}
.nav-right { justify-content: flex-end; }
.nav-center {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.nav a {
  position: relative;
  padding: 6px 2px;
  transition: opacity 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav .cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav .cart-num {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  opacity: 0.6;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-top: 30px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass);
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
}
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.4s var(--ease) forwards;
}
.hero h1 .word:nth-child(2) > span { animation-delay: 0.08s; }
.hero h1 .word:nth-child(3) > span { animation-delay: 0.16s; }
.hero h1 .word:nth-child(4) > span { animation-delay: 0.24s; }
.hero h1 .word:nth-child(5) > span { animation-delay: 0.32s; }
.hero h1 .word:nth-child(6) > span { animation-delay: 0.40s; }
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 60px;
}
.hero-meta p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone);
  max-width: 380px;
}
.hero-meta p .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--brass);
  margin-right: 8px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--ember);
  color: var(--paper);
}
.btn-ghost {
  border: 1px solid rgba(232, 227, 216, 0.3);
  color: var(--bone);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(232, 227, 216, 0.04);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-top: 1px solid rgba(232, 227, 216, 0.12);
  border-bottom: 1px solid rgba(232, 227, 216, 0.12);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
  background: var(--ink);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 32px;
  font-weight: 300;
  color: var(--bone);
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track .star {
  color: var(--ember);
  font-style: normal;
  font-size: 18px;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECTIONS — common
   ========================================================= */
.section {
  padding: 140px 40px;
  position: relative;
}
.section-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--brass);
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 80px;
  border-bottom: 1px solid rgba(232, 227, 216, 0.12);
  padding-bottom: 20px;
}
.section-label h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.section-label h2 em {
  font-style: italic;
  color: var(--brass);
}
.section-label .meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
}

/* =========================================================
   LOOKBOOK — editorial split
   ========================================================= */
.look {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  background: var(--ash);
  border: 1px solid rgba(232, 227, 216, 0.08);
  transition: border-color 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.look:hover {
  border-color: rgba(232, 227, 216, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
.look-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.4s var(--ease), filter 0.8s;
  filter: saturate(0.85) brightness(0.9);
}
.look-1 .look-img {
  background: 
    radial-gradient(circle at 30% 20%, rgba(212, 98, 42, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(176, 141, 87, 0.18) 0%, transparent 60%),
    #0c0c0e;
}
.look-2 .look-img {
  background: 
    radial-gradient(circle at 70% 30%, rgba(107, 26, 26, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(212, 98, 42, 0.15) 0%, transparent 60%),
    #0c0c0e;
}
.look-3 .look-img {
  background: 
    radial-gradient(circle at 50% 50%, rgba(138, 130, 120, 0.18) 0%, transparent 65%),
    radial-gradient(circle at 90% 10%, rgba(176, 141, 87, 0.22) 0%, transparent 60%),
    #0a0a0c;
}
.look-4 .look-img {
  background: 
    radial-gradient(circle at 20% 30%, rgba(176, 141, 87, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(107, 26, 26, 0.18) 0%, transparent 60%),
    #0d0d10;
}
.look-5 .look-img {
  background: 
    radial-gradient(circle at 60% 70%, rgba(212, 98, 42, 0.26) 0%, transparent 60%),
    radial-gradient(circle at 10% 10%, rgba(138, 130, 120, 0.18) 0%, transparent 60%),
    #0a0a0c;
}
.look-6 .look-img {
  background: 
    radial-gradient(circle at 40% 80%, rgba(107, 26, 26, 0.32) 0%, transparent 65%),
    radial-gradient(circle at 80% 30%, rgba(176, 141, 87, 0.18) 0%, transparent 60%),
    #08080a;
}

.look:hover .look-img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.look-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.5s var(--ease);
}
.look:hover .look-overlay {
  background: linear-gradient(to top, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0.2) 100%);
}
.look-tag {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.look-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 6px;
}
.look-price {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mute);
  transition: color 0.5s var(--ease);
}
.look:hover .look-price {
  color: var(--bone);
}

.row {
  display: grid;
  gap: 40px;
}
.row.cols-2 { grid-template-columns: 1fr 1fr; }
.row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.row.tall-1 { grid-template-columns: 1.4fr 1fr 1fr; }
.row.tall-2 { grid-template-columns: 1fr 1fr 1.4fr; }
.row .look.wide { aspect-ratio: 4/5; }

/* =========================================================
   ATELIER — typography showcase
   ========================================================= */
.atelier {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.atelier .stamp {
  width: 140px; height: 140px;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.atelier-left .label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 20px;
}
.atelier-left h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.atelier-left h3 em {
  font-style: italic;
  color: var(--oxblood);
}
.atelier-left p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(10, 10, 12, 0.7);
  max-width: 460px;
  margin-bottom: 40px;
}
.atelier-left .signature {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
}
.atelier-left .signature span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 8px;
}
.atelier-right {
  position: relative;
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(10,10,12,0.04) 22px 23px),
    linear-gradient(135deg, #f0e8d6 0%, #d8cdb6 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.atelier-right::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(107, 26, 26, 0.3);
  border-radius: var(--radius-md);
}
.atelier-right::after {
  content: "AN";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 220px;
  color: rgba(107, 26, 26, 0.12);
  letter-spacing: -0.05em;
}

/* =========================================================
   INDEX — products table
   ========================================================= */
.index-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.index-table thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 20px 16px;
  border-bottom: 1px solid rgba(232, 227, 216, 0.15);
  font-weight: 500;
}
.index-table thead th:last-child { text-align: right; }
.index-table tbody tr {
  border-bottom: 1px solid rgba(232, 227, 216, 0.08);
  transition: background 0.5s var(--ease);
}
.index-table tbody tr:hover {
  background: rgba(232, 227, 216, 0.025);
}
.index-table tbody td {
  padding: 32px 16px;
  font-size: 15px;
  color: var(--bone);
  vertical-align: middle;
}
.index-table tbody td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.index-table .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--brass);
  width: 60px;
}
.index-table .swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 14px;
  border: 1px solid rgba(232, 227, 216, 0.2);
}
.index-table .name {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 22px;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.index-table .meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =========================================================
   MATERIALS — pills
   ========================================================= */
.materials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(232, 227, 216, 0.12);
  border: 1px solid rgba(232, 227, 216, 0.12);
}
.material {
  background: var(--ink);
  padding: 50px 32px;
  position: relative;
  transition: background 0.6s var(--ease);
}
.material:hover { background: var(--ash); }
.material-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--brass);
  margin-bottom: 24px;
}
.material-name {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 8px;
}
.material-name em { font-style: italic; color: var(--brass); }
.material-origin {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 24px;
}
.material-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--bone);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(232, 227, 216, 0.12);
  padding: 100px 40px 40px;
  position: relative;
}
.footer-massive {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-align: center;
  margin-bottom: 80px;
}
.footer-massive em {
  font-style: italic;
  color: var(--brass);
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(232, 227, 216, 0.12);
}
.footer-cols h4 {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-cols ul { list-style: none; }
.footer-cols li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--bone);
  transition: color 0.3s;
}
.footer-cols li:hover { color: var(--ember); }
.footer-tag {
  font-size: 13px;
  line-height: 1.6;
  color: var(--bone);
  max-width: 320px;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(232, 227, 216, 0.12);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =========================================================
   REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .atelier { grid-template-columns: 1fr; gap: 40px; padding: 60px 40px; }
  .row.cols-3 { grid-template-columns: 1fr 1fr; }
  .materials { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-top, .hero-meta { grid-template-columns: 1fr; gap: 24px; }
  .hero-cta { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .nav { padding: 18px 20px; font-size: 10px; gap: 14px; }
  .nav-center { display: none; }
  .section, .hero, .atelier { padding-left: 20px; padding-right: 20px; }
  .atelier { padding: 60px 28px; }
  .row.cols-2, .row.cols-3, .row.tall-1, .row.tall-2 { grid-template-columns: 1fr; }
  .materials { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .index-table tbody td { padding: 20px 8px; }
  .index-table .name { font-size: 16px; }
  .index-table .meta { display: none; }
  .btn { padding: 14px 22px; font-size: 10px; }
}