/* ============================================================
   AURELIA — Atelier de bijuterii fine
   Stil: Luxury / Editorial (dark), adaptat local, catalog creier-site
   Fonturi: Fraunces (display) + Manrope (UI/body)
   ============================================================ */

:root {
  --bg: #0b0a08;
  --bg-elevated: #17140f;
  --bg-elevated-2: #201c14;
  --ivory: #f5f0e6;
  --muted: #9c9384;
  --gold: #c9a24b;
  --gold-bright: #e0bd6f;
  --line: rgba(245, 240, 230, 0.14);
  --line-strong: rgba(245, 240, 230, 0.28);
  --ink: #0b0a08;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1440px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  --ease-luxe: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Paper grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Visible vertical gridlines (desktop, decorative) */
.gridlines { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; }
.gridlines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.gridlines span:nth-child(1) { left: var(--gutter); }
.gridlines span:nth-child(2) { left: 33.33%; }
.gridlines span:nth-child(3) { right: 33.33%; }
.gridlines span:nth-child(4) { right: var(--gutter); }
@media (min-width: 1024px) { .gridlines { display: block; } }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--gold); display: inline-block; }

.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.04;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.15;
}
.italic-gold { font-style: italic; color: var(--gold); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 34rem;
}

.dropcap:first-letter {
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 0.8;
  float: left;
  margin: 0.05em 0.08em 0 0;
  color: var(--gold);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 3.1rem;
  padding: 0 2.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary {
  background: var(--ivory);
  color: var(--ink);
}
.btn-primary span.fill {
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-luxe);
  z-index: -1;
}
.btn-primary:hover span.fill { transform: translateX(0); }
.btn-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  transition: background 0.5s var(--ease-luxe), border-color 0.5s var(--ease-luxe);
}
.btn-secondary:hover { background: rgba(245,240,230,0.06); border-color: var(--gold); }
.btn-link {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ivory);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.35rem;
  transition: color 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe);
}
.btn-link:hover { color: var(--gold); border-color: var(--gold); }

/* Magnetic wrapper (JS adds transform) */
.magnetic { will-change: transform; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.4rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-luxe), border-color 0.5s var(--ease-luxe), padding 0.4s var(--ease-luxe);
}
.nav.is-scrolled {
  background: rgba(11, 10, 8, 0.92);
  border-bottom-color: var(--line);
  padding: 1rem 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}
.nav-logo em { color: var(--gold); font-style: italic; }
.nav-links { display: none; align-items: center; gap: 2.4rem; }
.nav-links a {
  position: relative;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.4rem;
  transition: color 0.35s var(--ease-luxe);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 50%; bottom: -1px;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform 0.35s var(--ease-luxe);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: translateX(-50%) rotate(45deg) scale(1); }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 60;
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span { height: 1px; background: var(--ivory); transition: transform 0.35s var(--ease-luxe), opacity 0.35s var(--ease-luxe); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease-luxe), visibility 0s 0.5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; transition: transform 0.5s var(--ease-luxe), visibility 0s 0s; }
.mobile-menu a { font-family: var(--font-display); font-size: 2.4rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--ivory); }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--gutter) 4rem;
  overflow: hidden;
}
.hero-photo {
  position: relative;
  width: min(820px, 92vw);
  aspect-ratio: 3 / 2;
  margin: 1.2rem auto 0;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side at 50% 50%, rgba(201,162,75,0.22), rgba(201,162,75,0.05) 60%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
/* black-ground photo melts into the page: soft elliptical edge */
.hero-photo img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
}

.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-title { max-width: 20ch; }
.hero-sub { margin: 1.6rem auto 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.vertical-label {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: none;
}
@media (min-width: 1100px) { .vertical-label { display: block; } }
.vertical-label.left { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.vertical-label.right { right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(180deg); }
.page-header .vertical-label.right { top: 60%; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }
/* on phones the buttons sit at the bottom of the first screen: the cue would cross them */
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-border-t { border-top: 1px solid var(--line); }
.section-dark { background: var(--bg); }
.section-elevated { background: var(--bg-elevated); }

.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3.5rem; }
.section-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }

/* Asymmetric grid utilities */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.col-span-7 { grid-column: span 12; }
.col-span-5 { grid-column: span 12; }
.col-start-2-span-9 { grid-column: span 12; }
@media (min-width: 860px) {
  .col-span-7 { grid-column: span 7; }
  .col-span-5 { grid-column: span 5; }
  .col-start-2-span-9 { grid-column: 2 / span 9; }
}

/* Philosophy image */
.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.01);
  transition: filter 1.8s var(--ease-luxe), transform 1.8s var(--ease-luxe);
}
.frame:hover img, .frame.in-view img { filter: grayscale(0); }
.frame:hover img { transform: scale(1.06); }
.frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(245,240,230,0.08);
  pointer-events: none;
}

/* Piece / product cards */
.piece-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); }
.piece {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
@media (min-width: 640px) { .piece { grid-column: span 6; } }
@media (min-width: 1024px) { .piece { grid-column: span 4; } }
.piece-frame { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-elevated); }
.piece-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: filter 1.6s var(--ease-luxe), transform 1.6s var(--ease-luxe);
}
.piece:hover .piece-frame img { filter: grayscale(0); transform: scale(1.07); }
.piece-tag {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  padding: 0.35rem 0.7rem;
}
.piece-body { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.piece-name { font-family: var(--font-display); font-size: 1.3rem; }
.piece-material { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.piece-desc { font-size: 0.9rem; color: var(--muted); }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }
.filter-btn {
  border: 1px solid var(--line-strong);
  padding: 0.6rem 1.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease-luxe), border-color 0.35s var(--ease-luxe), background 0.35s var(--ease-luxe);
}
.filter-btn.is-active, .filter-btn:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* Stat band with video background */
.band {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
}
.band video, .band .band-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.5);
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,0.55), rgba(11,10,8,0.85));
}
.band-content { position: relative; z-index: 2; width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); color: var(--gold); }
.stat-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

/* Quote */
.quote-block {
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  transition: border-color 0.5s var(--ease-luxe), padding-left 0.5s var(--ease-luxe);
}
.quote-block:hover { border-left-color: var(--gold); }
.quote-text { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.35; }
.quote-attr { margin-top: 1.5rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Process steps */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.3rem; }
.process-title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.5rem; }
.process-desc { color: var(--muted); max-width: 42rem; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.7rem 0;
  color: var(--ivory);
  transition: border-color 0.4s var(--ease-luxe);
}
.field input::placeholder, .field textarea::placeholder { font-family: var(--font-display); font-style: italic; color: var(--muted); opacity: 0.8; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--gold); outline: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A24B' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.2rem center; }
.field select option { background: var(--bg-elevated); color: var(--ivory); }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.form-success { display: none; padding: 1.5rem; border: 1px solid var(--gold); color: var(--gold); font-size: 0.85rem; margin-top: 1.5rem; }
.form-success.is-visible { display: block; }

.info-list { display: flex; flex-direction: column; gap: 1.8rem; }
.info-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.icon-ring {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: background 0.4s var(--ease-luxe), color 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe);
}
.info-item:hover .icon-ring { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.info-item h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.3rem; }
.info-item p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col > div, .footer-col > a { padding-top: 1.2rem; }
.footer-col { border-top: 1px solid var(--line); padding-top: 0; }
.footer-brand { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.8rem; }
.footer-tag { color: var(--muted); font-size: 0.85rem; max-width: 22rem; }
.footer-heading { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.88rem; transition: color 0.3s var(--ease-luxe); }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a {
  width: 2.2rem; height: 2.2rem; border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  transition: background 0.3s var(--ease-luxe), color 0.3s var(--ease-luxe), border-color 0.3s var(--ease-luxe);
}
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.75rem; color: var(--muted);
}
.footer-mark { text-align: center; font-family: var(--font-display); font-style: italic; color: var(--muted); margin-top: 2.5rem; letter-spacing: 0.02em; }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: var(--ivory); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--ivory); transition: width 0.25s var(--ease-luxe), height 0.25s var(--ease-luxe); }
body.cursor-hidden .cursor-dot, body.cursor-hidden .cursor-ring { display: none; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 9rem var(--gutter) 3rem;
  position: relative;
}
.page-header .eyebrow { margin-bottom: 1.2rem; }

/* Full-bleed media band (atelier hero) */
.media-hero {
  position: relative;
  height: 78vh;
  min-height: 420px;
  overflow: hidden;
  margin-top: 0;
}
.media-hero video, .media-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.25) brightness(0.55);
}
.media-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,8,0.75), rgba(11,10,8,0.35) 40%, rgba(11,10,8,0.85)); }
.media-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 3.5rem; }

/* Utility */
.text-center { text-align: center; }
.section.text-center { display: flex; flex-direction: column; justify-content: center; min-height: 50vh; }
.mt-lg { margin-top: clamp(3rem, 6vw, 5rem); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.reveal { opacity: 1; }
.gold { color: var(--gold); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: 0.8rem 1.4rem; z-index: 999;
  font-size: 0.85rem;
}
.skip-link:focus { left: var(--gutter); top: 1rem; }
