/* =============================================
   H. — Hillary Weber-Gale | Global Styles
   ============================================= */

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

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --light-rule: rgba(10,10,10,0.12);

  /* Accessible text colors — all meet WCAG AA on white */
  --text-primary:    #0a0a0a;   /* body copy */
  --text-secondary:  #595959;   /* labels, meta — 7:1 */
  --text-tertiary:   #767676;   /* captions, smallest labels — 4.5:1 */
  --text-placeholder:#949494;   /* placeholder labels — 3:1 (large text) */

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --page-pad: clamp(24px, 5vw, 80px);
  --max-w: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ──
   mix-blend-mode: difference makes it auto-invert on dark backgrounds */
#cursor {
  position: fixed;
  width: 11px;
  height: 11px;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.4s ease, width 0.25s ease, height 0.25s ease;
  will-change: transform;
}
#cursor svg { width: 100%; height: 100%; display: block; }
#cursor svg path { fill: #ffffff; } /* white + difference blend = black on white, white on black */
#cursor.is-hovering {
  width: 18px;
  height: 18px;
}
#cursor.is-hidden { opacity: 0 !important; }

/* Hide native cursor everywhere — belt and suspenders */
*, *::before, *::after,
a, a:hover, a:focus, a:active,
button, button:hover,
[role="button"],
input, textarea, select { cursor: none !important; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--page-pad);
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
nav.scrolled {
  background: rgba(250,249,246,0.96);
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: block;
  height: 26px;
  width: auto;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { height: 26px; width: auto; display: block; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

/* ── FOOTER ── */
footer {
  padding: 56px var(--page-pad) 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 160px;
}
.footer-logo { display: block; height: 24px; }
.footer-logo svg { height: 24px; width: auto; }
.footer-email a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-email a:hover { color: var(--text-primary); }
.footer-copy {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* On short/narrow screens a flat 160px footer gap reads as a large empty
   chunk, especially on pages with little content above it. Scale it down
   below the tablet breakpoint instead; desktop is unaffected. */
@media (max-width: 860px) {
  footer { margin-top: clamp(64px, 14vh, 120px); }
}

/* ── SCROLL REVEALS ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.26s; }
.reveal-delay-3 { transition-delay: 0.42s; }
.reveal-delay-4 { transition-delay: 0.58s; }

.reveal-img {
  opacity: 0;
  transform: scale(0.975);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-img.visible { opacity: 1; transform: scale(1); }

/* ── LAYOUT ── */
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }

/* ── UTILITY ── */
.section-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  transition: gap 0.35s ease, color 0.2s;
}
.arrow-link:hover { gap: 18px; }

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
  background: #eceae5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.img-placeholder-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-placeholder);
}

/* ── CLIENT LOGOS MARQUEE ── */
.client-logos {
  padding: clamp(56px, 7vh, 88px) 0;
  margin: clamp(56px, 7vh, 88px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.marquee-outer {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text-primary);
  opacity: 0.55;
  white-space: nowrap;
  padding: 0 20px;
}
.marquee-sep {
  color: var(--text-primary);
  opacity: 0.25;
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  font-style: italic;
  font-weight: 300;
  flex-shrink: 0;
}

