/* ================================================================
   OMI BARBER CLUB — Design Tokens
   v4.1 — refined editorial direction
   ================================================================ */

:root {
  /* Brand */
  --navy:        #00183C;
  --navy-deep:   #000B22;
  --navy-soft:   #0A2350;
  --wine:        #680907;
  --wine-light:  #851311;
  --wine-deep:   #4A0605;
  --silver:      #D9DBE0;
  --bone:        #F4F2EE;
  --bone-deep:   #EDEAE4;
  --bone-warm:   #EFEBE3;

  /* Semantic */
  --ink:         var(--navy);
  --ink-soft:    #2E3A4F;
  --muted:       #5F6B7E;
  --border:      rgba(0, 24, 60, 0.10);
  --border-strong: rgba(0, 24, 60, 0.22);

  /* Type */
  --serif:  "Fraunces", "Times New Roman", Georgia, serif;
  --sans:   "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card:  0 12px 32px rgba(0, 24, 60, 0.12), 0 2px 6px rgba(0, 24, 60, 0.06);
  --shadow-deep:  0 30px 70px rgba(0, 24, 60, 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Density (tunable via Tweaks) */
  --pad-section: 120px;
  --pad-edge: 32px;
  --maxw: 1320px;
}

/* ================================================================
   Reset
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  font-feature-settings: "ss01", "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--wine); color: var(--bone); }

/* ================================================================
   Grain — subtle paper texture overlay
   ================================================================ */
.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.btn-primary {
  background: var(--navy);
  color: var(--bone);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 24, 60, 0.28);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-wine {
  background: var(--wine);
  color: var(--bone);
}
.btn-wine:hover {
  background: var(--wine-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(104, 9, 7, 0.32);
}
.btn-wine:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--bone);
  border-color: var(--navy);
}

/* ================================================================
   Image tone — unifies photography palette
   ================================================================ */
.toned {
  filter: saturate(0.78) contrast(1.04) brightness(0.96);
}

/* ================================================================
   Reveal animation
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   Placeholder — striped, monospace-labeled image stand-in
   ================================================================ */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(217, 219, 224, 0.06) 0,
      rgba(217, 219, 224, 0.06) 1px,
      transparent 1px,
      transparent 14px
    );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(104, 9, 7, 0.18), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(217, 219, 224, 0.10), transparent 50%);
  pointer-events: none;
}
.ph[data-label]::after {
  content: attr(data-label);
  position: relative;
  margin: 18px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid rgba(217, 219, 224, 0.28);
  background: rgba(0, 11, 34, 0.4);
  backdrop-filter: blur(4px);
  border-radius: var(--r-xs);
  z-index: 1;
}
.ph[data-glyph]::before {
  content: attr(data-glyph);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(80px, 14vw, 220px);
  color: rgba(217, 219, 224, 0.10);
  line-height: 1;
  pointer-events: none;
}

/* light-bg variant (for placeholders sitting on bone) */
.ph.ph-light {
  background-color: var(--bone-deep);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(0, 24, 60, 0.05) 0,
      rgba(0, 24, 60, 0.05) 1px,
      transparent 1px,
      transparent 14px
    );
}
.ph.ph-light::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(104, 9, 7, 0.10), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(0, 24, 60, 0.06), transparent 50%);
}
.ph.ph-light[data-label]::after {
  color: var(--muted);
  border-color: rgba(0, 24, 60, 0.18);
  background: rgba(244, 242, 238, 0.5);
}
.ph.ph-light[data-glyph]::before { color: rgba(0, 24, 60, 0.06); }

/* ================================================================
   Marquee — running ticker
   ================================================================ */
.marquee {
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  --marquee-duration: 50s;
}
.marquee-track {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
  animation: marquee var(--marquee-duration) linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ================================================================
   Print-safe + reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
