/* ===== Tokens ===== */
:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201f1d;
  --color-accent: #b68235;
  --color-accent-2: #ac803e;
  --color-divider: rgba(32, 31, 29, 0.16);

  --color-neutral-100: #f8f4f4;
  --color-neutral-900: #2d2b2b;

  --color-accent-300: #facb8d;
  --color-accent-700: #7d5411;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(45, 43, 43, 0.14);
  --shadow-md: 0 3px 10px rgba(45, 43, 43, 0.16);
  --shadow-lg: 0 20px 48px rgba(45, 43, 43, 0.22);

  --nav-h: 76px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.eyebrow {
  display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent-700); margin-bottom: 16px; font-weight: 600;
}
.eyebrow-dark { color: var(--color-accent-300); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-accent);
  color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

::selection { background: rgba(182, 130, 53, 0.28); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ===== Progress bar ===== */
.progress-bar { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 100; background: transparent; }
.progress-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent));
  transition: width 0.08s linear;
}

/* ===== Custom cursor (fine-pointer devices only) ===== */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 999;
    pointer-events: none; border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
  }
  .cursor-dot { width: 6px; height: 6px; background: var(--color-accent); }
  .cursor-ring {
    width: 34px; height: 34px; border: 1.5px solid rgba(182, 130, 53, 0.55);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s ease, background .25s ease;
  }
  .cursor-ring.is-hover { width: 56px; height: 56px; background: rgba(182, 130, 53, 0.1); }
  body { cursor: none; }
  a, button, [data-tilt] { cursor: none; }
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  padding: 18px clamp(20px, 5vw, 48px);
  color: var(--color-neutral-100);
  transition: background-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(243, 242, 242, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--color-text);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.nav-brand {
  display: flex; flex-direction: column; line-height: 1.05; margin-right: auto;
  font-family: var(--font-heading); font-weight: 600; font-size: 20px;
}
.nav-brand-sub {
  font-family: var(--font-body); font-weight: 400; font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); position: relative; }
.nav-links a { font-size: 14px; position: relative; padding: 4px 0; opacity: 0.9; transition: opacity .2s ease, color .2s ease; }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; color: var(--color-accent); }
.nav-indicator {
  position: absolute; bottom: -2px; height: 1.5px; background: var(--color-accent);
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s ease;
  opacity: 0; width: 0;
}
.nav-cta { flex: none; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; flex: none; margin-right: -5px;
}
.nav-toggle span { display: block; height: 1.5px; width: 22px; background: currentColor; transition: transform .3s var(--ease), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 14.5px;
  padding: 12px 24px; border-radius: 3px; border: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s var(--ease), box-shadow .25s ease;
  will-change: transform;
}
.btn span { display: inline-block; transition: transform .2s var(--ease); }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent); color: #fff; box-shadow: 0 8px 20px rgba(182,130,53,.32); }
.btn-ghost { color: var(--color-accent); border-color: rgba(182,130,53,.4); }
.btn-ghost:hover { background: rgba(182,130,53,.1); }
.btn-on-dark { color: var(--color-neutral-100); border-color: rgba(248,244,244,.5); }
.btn-on-dark:hover { background: rgba(248,244,244,.12); }

/* ===== Hero ===== */
.hero { position: relative; height: min(92vh, 860px); min-height: 600px; overflow: hidden; }
.hero-media { position: absolute; inset: -6% 0 0 0; will-change: transform; }
.hero-media img {
  width: 100%; height: 106%; object-fit: cover; object-position: center 30%;
  filter: saturate(0.98) contrast(1.02);
}
.hero-glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(250,203,141,.16), transparent 70%);
  left: 0; top: 0; transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; transition: opacity .4s ease;
}
@media (hover: hover) and (pointer: fine) { .hero:hover .hero-glow { opacity: 1; } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,43,43,0) 0%, rgba(45,43,43,0) 55%, rgba(45,43,43,.4) 100%);
}
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 64px); }
.hero-card {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) clamp(26px, 4.5vw, 48px);
}
.hero-card::before {
  content: "";
  position: absolute; inset: -12% -10%;
  background: radial-gradient(ellipse 90% 100% at 18% 78%, rgba(18,16,15,.68) 0%, rgba(18,16,15,.4) 42%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}
.hero-card h1 { font-size: clamp(38px, 6vw, 68px); color: var(--color-neutral-100); max-width: 16ch; margin: 14px 0 20px; text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
.hero-card .eyebrow { color: var(--color-accent-300); margin-bottom: 0; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-card p { font-size: 17px; line-height: 1.6; max-width: 48ch; color: rgba(248,244,244,.94); margin-bottom: 30px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--color-accent); color: #fff; }
.hero-actions .btn-primary:hover { background: var(--color-accent-2); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.hero-actions .btn-on-dark { background: rgba(18,16,15,.5); }
.hero-actions .btn-on-dark:hover { background: rgba(18,16,15,.72); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(248,244,244,.55); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue-line { width: 2px; height: 8px; border-radius: 2px; background: rgba(248,244,244,.9); animation: scrollCue 1.8s ease-in-out infinite; }
@keyframes scrollCue { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.hero-card [data-reveal] { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); padding: clamp(28px, 4vw, 40px) 0; }
.stats-grid { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0 20px; border-left: 1px solid var(--color-divider); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num { font-family: var(--font-heading); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; color: var(--color-text); }
.stat:first-child .stat-num { color: var(--color-accent); }
.stat-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(32,31,29,.65); margin-top: 8px; }

/* ===== Philosophy / Features ===== */
.philosophy { padding: clamp(56px, 8vw, 96px) 0; }
.philosophy-lead { font-weight: 400; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.22; max-width: 19ch; margin-bottom: 48px; }
.philosophy-grid, .features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.features-grid { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--color-divider); padding-top: clamp(48px, 7vw, 72px); margin-top: clamp(8px, 2vw, 24px); }
.philosophy-grid h3, .features-grid h3 { font-size: 20px; margin-bottom: 12px; }
.features-grid h3 { font-size: 19px; margin-bottom: 10px; }
.philosophy-grid p, .features-grid p { font-size: 15.5px; line-height: 1.7; color: rgba(32,31,29,.8); max-width: 48ch; }
.features-grid p { font-size: 15px; line-height: 1.65; color: rgba(32,31,29,.78); }
.divider-left { border-left: 1px solid var(--color-divider); padding-left: clamp(28px, 5vw, 56px); }
.features-grid .divider-left { padding-left: clamp(24px, 4vw, 40px); }

/* ===== Collection ===== */
.collection { border-top: 1px solid var(--color-divider); padding: clamp(56px, 8vw, 96px) 0; }
.collection h2 { font-size: clamp(28px, 4vw, 42px); max-width: 22ch; margin-bottom: 10px; }
.section-sub { font-size: 15.5px; line-height: 1.6; color: rgba(32,31,29,.78); max-width: 58ch; margin-bottom: 56px; }

.collection-row {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 56px); align-items: center;
  padding: clamp(32px, 5vw, 48px) 0; border-top: 1px solid var(--color-divider);
}
.collection-row-reverse { direction: rtl; }
.collection-row-reverse > * { direction: ltr; }
.row-index { font-family: var(--font-heading); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-bottom: 18px; color: var(--color-accent-300); }
.row-index-sm { font-size: 34px; color: var(--color-accent); }
.collection-row h3 { font-size: 22px; margin-bottom: 6px; }
.row-meta { font-size: 13px; letter-spacing: 0.03em; color: rgba(32,31,29,.6); margin-bottom: 18px; }
.row-list { font-family: var(--font-heading); font-size: 19px; line-height: 1.7; letter-spacing: 0.01em; color: rgba(32,31,29,.85); max-width: 64ch; margin-bottom: 24px; }
.row-actions { display: flex; gap: 13px; flex-wrap: wrap; }

.plate { margin: 0; overflow: hidden; border-radius: 4px; box-shadow: var(--shadow-lg); border: 6px solid var(--color-surface); outline: 1px solid var(--color-divider); position: relative; }
.plate::after {
  content: ""; position: absolute; inset: 0; background: var(--color-bg);
  transform-origin: right; transition: transform .9s var(--ease); transition-delay: .05s; z-index: 2;
}
.plate.is-visible::after { transform: scaleX(0); }
.plate img { width: 100%; height: auto; display: block; transition: transform .7s var(--ease); }
.plate-tilt { transform-style: preserve-3d; will-change: transform; }
.plate-tilt:hover img { transform: scale(1.03); }

/* ===== Craft ===== */
.craft { padding: clamp(56px, 8vw, 96px) 0; }
.craft h2 { font-size: clamp(28px, 4vw, 42px); max-width: 22ch; margin-bottom: 48px; }
.craft-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 40px); }
.craft-step .row-index-sm { margin-bottom: 14px; }
.craft-step h3 { font-size: 18px; margin-bottom: 8px; }
.craft-step p { font-size: 14.5px; line-height: 1.65; color: rgba(32,31,29,.78); }
.craft-line {
  grid-column: 1 / -1; order: -1; height: 2px; background: var(--color-divider);
  position: relative; margin-bottom: clamp(24px, 4vw, 40px); overflow: hidden;
}
.craft-line span { position: absolute; inset: 0; width: 0%; background: var(--color-accent); transition: width 1.1s var(--ease); }

/* ===== Contact ===== */
.contact { background: var(--color-neutral-900); padding: clamp(56px, 8vw, 96px) 0; margin-top: clamp(24px,4vw,40px); }
.contact-lead { font-size: clamp(28px, 4.2vw, 46px); color: var(--color-neutral-100); max-width: 18ch; margin: 0 0 18px; }
.contact-sub { font-size: 15.5px; line-height: 1.7; color: rgba(248,244,244,.78); max-width: 56ch; margin-bottom: 32px; }
.contact-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 56px; }
.contact-hr { height: 1px; border: 0; margin: 0 0 24px; background: rgba(248,244,244,.16); }
.contact-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-neutral-100); margin-bottom: 6px; }
.footer-meta { font-size: 13px; color: rgba(248,244,244,.65); line-height: 1.6; }
.footer-copy { font-size: 13px; color: rgba(248,244,244,.5); align-self: flex-end; }

/* ===== Floating actions ===== */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.whatsapp-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: fabPulse 2.6s ease-out infinite;
}
@keyframes fabPulse { to { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); }

.back-to-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-neutral-900); color: var(--color-neutral-100);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s var(--ease);
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--color-bg); padding: 8px 24px 24px; gap: 4px; border-bottom: 1px solid var(--color-divider);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { color: var(--color-text); padding: 12px 0; border-bottom: 1px solid var(--color-divider); font-size: 16px; }
  .nav-indicator { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Hero: a tall overlay box forces heavy left/right cropping on a wide
     landscape image. Show the image near its native ratio instead, and
     move the text to a solid band below it rather than overlaid. */
  .hero { height: auto; min-height: 0; overflow: visible; }
  .hero-media { position: relative; inset: auto; aspect-ratio: 1536 / 1024; }
  .hero-media img { height: 100%; object-position: center 28%; }
  .hero-glow, .hero-scrim, .scroll-cue { display: none; }
  .hero-content { position: static; background: var(--color-neutral-900); padding: 32px 20px 40px; }
  .hero-card { padding: 0; }
  .hero-card::before { display: none; }

  .philosophy-grid, .features-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat, .divider-left, .features-grid .divider-left { border-left: none; padding-left: 0; border-top: 1px solid var(--color-divider); padding-top: 20px; }
  .stat:first-child { border-top: none; padding-top: 0; }

  .collection-row, .collection-row-reverse { grid-template-columns: 1fr; direction: ltr; }
  .collection-row-reverse figure { order: -1; }

  .craft-grid { grid-template-columns: 1fr; }
  .craft-grid .divider-left { border-left: none; padding-left: 0; border-top: 1px solid var(--color-divider); padding-top: 20px; }
}

@media (max-width: 480px) {
  .hero-card { padding: 22px; }
}

/* ===== Reduced motion ===== */
@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; }
  .hero-media { transform: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .plate::after { display: none; }
}
