/* ============================================================
   The Artisans — shared site styles
   Dark base, editorial typography, rolling reveals
   ============================================================ */

/* ---------- FuturaPT local fonts ---------- */
@font-face {
  font-family: 'FuturaPT';
  src: url('/futurapt/FuturaPT-Light.woff') format('woff'),
       url('/futurapt/FuturaPT-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaPT';
  src: url('/futurapt/FuturaPT-LightObl.woff') format('woff'),
       url('/futurapt/FuturaPT-LightObl.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaPT';
  src: url('/futurapt/FuturaPT-Book.woff') format('woff'),
       url('/futurapt/FuturaPT-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaPT';
  src: url('/futurapt/FuturaPT-BookObl.woff') format('woff'),
       url('/futurapt/FuturaPT-BookObl.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaPT';
  src: url('/futurapt/FuturaPT-Medium.woff') format('woff'),
       url('/futurapt/FuturaPT-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0B0C;
  --bg-2: #111113;
  --ink: #E8E2D6;        /* warm ivory */
  --ink-dim: rgba(232,226,214,0.62);
  --ink-faint: rgba(232,226,214,0.38);
  --rule: rgba(232,226,214,0.14);
  --rule-soft: rgba(232,226,214,0.08);

  --serif: 'FuturaPT', 'Futura', 'Century Gothic', sans-serif;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--ink-faint);
  font-weight: 300;
}
.serif { font-family: var(--serif); font-weight: 300; }
.italic { font-style: italic; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; text-transform: lowercase; }
h1 { font-size: clamp(56px, 9vw, 132px); line-height: 0.95; letter-spacing: 0.02em; }
h2 { font-size: clamp(40px, 6vw, 88px); line-height: 0.98; letter-spacing: 0.02em; }
h3 { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.15; font-weight: 300; letter-spacing: 0.02em; }

p { line-height: 1.6; color: var(--ink-dim); margin: 0; text-transform: lowercase; }

/* Keep bold/strong at Book weight — FuturaPT Bold is too heavy */
strong, b { font-weight: 400; }

/* Mobile CTA pill injected into nav overlay — hidden on desktop */
.nav-cta-mobile { display: none; }

/* ---------- Layout ---------- */
.container {
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}
.section {
  padding-top: clamp(80px, 12vh, 160px);
  padding-bottom: clamp(80px, 12vh, 160px);
  border-top: 1px solid var(--rule-soft);
}

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
  overflow: hidden;
  color: var(--ink);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: transform .4s ease, color .4s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill.solid {
  background: var(--ink); color: #0B0B0C;
}
.pill.solid:hover { background: #fff; }

/* ---------- Top nav ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: background .5s ease, backdrop-filter .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.topnav.scrolled {
  background: rgba(11,11,12,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--rule-soft);
}
.brandmark-img {
  display: inline-flex; align-items: center;
  line-height: 1; user-select: none; flex-shrink: 0;
}
.brand-logo {
  height: 54px; width: auto;
  display: block;
  object-fit: contain;
}
.brand-logo--footer {
  height: 72px;
  margin-bottom: 20px;
}

.nav-links {
  display: flex; gap: clamp(20px, 2.4vw, 36px);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
}
.nav-links a { transition: color .3s ease; position: relative; }
.nav-links a::after {
  content:""; position:absolute; left:0; right:0; bottom:-6px;
  height:1px; background: var(--ink); transform: scaleX(0);
  transform-origin: left; transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin: -8px;
  flex-direction: column; justify-content: center; gap: 5px;
  z-index: 60;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--ink);
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-cta-mobile { display: block; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex;
    position: fixed; inset: 0; top: 0;
    background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 36px; z-index: 55;
    font-size: 22px; letter-spacing: 0.22em;
    opacity: 0; pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.16,.84,.44,1);
  }
  .nav-links.nav-open {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .nav-links a::after { display: none; }
  /* Hide "Book a fitting" pill on mobile — it's in the overlay menu already */
  .nav-right .pill { display: none; }
}

.nav-right { display: flex; gap: 10px; align-items: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule-soft);
  padding: 80px clamp(20px, 4vw, 56px) 40px;
  display: grid; gap: 60px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.footer h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 300;
  letter-spacing: 0.22em; text-transform: lowercase;
  color: var(--ink-faint); margin: 0 0 18px 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--ink-dim); font-size: 14px; transition: color .3s ease; text-transform: lowercase; }
.footer ul a:hover { color: var(--ink); }
.footer .legal {
  grid-column: 1 / -1; display: flex; justify-content: space-between;
  border-top: 1px solid var(--rule-soft); padding-top: 24px; margin-top: 20px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: lowercase; color: var(--ink-faint);
}
@media (max-width: 800px) {
  .footer { grid-template-columns: 1fr 1fr; }
  .footer .legal { flex-direction: column; gap: 12px; }
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s ease;
  cursor: pointer;
  text-decoration: none;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45), 0 4px 12px rgba(0,0,0,0.4);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float .wa-tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--bg-2); color: var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 4px; white-space: nowrap;
  border: 1px solid var(--rule-soft);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.wa-float:hover .wa-tooltip { opacity: 1; }
@media (max-width: 600px) {
  .wa-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
  .wa-float .wa-tooltip { display: none; }
}

/* ============================================================
   Rolling reveal — line mask
   ============================================================ */
.line-roll {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  padding-right: 0.12em; /* prevent italic glyph clipping on right edge */
  font-style: inherit;
}
.line-roll > span {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 1.2s cubic-bezier(.16,.84,.44,1),
    opacity .9s ease-out;
}
.is-in .line-roll > span,
.line-roll.is-in > span {
  transform: translateY(0);
  opacity: 1;
}

/* word-by-word stagger */
.word-roll {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  padding-right: 0.15em;  /* prevent italic/thin glyph clipping on right */
  margin-right: -0.15em;  /* offset so word-spacing stays natural */
  vertical-align: bottom;
}
.word-roll > span {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition:
    transform 1.1s cubic-bezier(.16,.84,.44,1),
    opacity .85s ease-out;
}
.is-in .word-roll > span { transform: translateY(0); opacity: 1; }

/* fade up — used on metadata, CTAs, descriptions */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity .9s ease-out,
    transform .9s cubic-bezier(.16,.84,.44,1),
    filter .9s ease-out;
}
.is-in .fade-up,
.fade-up.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* draw line — horizontal rule that sweeps left→right */
.draw-line {
  position: relative; height: 1px;
  background: transparent; overflow: hidden;
}
.draw-line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(.7,0,.2,1);
}
.is-in .draw-line::after,
.draw-line.is-in::after { transform: scaleX(1); }

/* utility: stagger via CSS custom property --d */
[style*="--d"] { transition-delay: var(--d); }

/* ============================================================
   Reusable atoms
   ============================================================ */

/* Page intro (used at top of inner pages) */
.page-intro {
  padding: clamp(140px, 18vh, 220px) clamp(20px, 4vw, 56px) clamp(60px, 10vh, 120px);
  border-bottom: 1px solid var(--rule-soft);
}
.page-intro .meta {
  display: flex; gap: 24px; align-items: center;
  margin-bottom: 28px;
}
.page-intro .meta .num {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--ink-faint);
}
.page-intro .meta .rule {
  flex: 1; height: 1px; background: var(--rule);
}

/* Image slot — landscape placeholder */
.img-plate {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #2a2520 0%, #14110f 100%);
  border: 1px solid var(--rule-soft);
}
.img-plate::before {
  content:""; position:absolute; inset:0; opacity:.08;
  background-image:
    repeating-linear-gradient(45deg, rgba(232,226,214,0.3) 0 1px, transparent 1px 18px);
}
.img-plate .label {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(232,226,214,0.55);
}
.img-plate .corner {
  position: absolute; width: 14px; height: 14px;
  border-color: rgba(232,226,214,0.45);
}
.img-plate .c-tl { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.img-plate .c-tr { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.img-plate .c-bl { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.img-plate .c-br { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }
