/* ══════════════════════════════════════════════════════════════
   DEVON HOLLAWELL · SHARED SITE SYSTEM  (site.css)
   Header, nav, mobile menu, footer and motion — taken from the
   homepage (index.html) so every page looks and moves the same.
   Pair with site.js.
   ══════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Gosseliena'; src: url('fonts/Gosseliena.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Very Vogue'; src: url('fonts/nicky-laatz-very-vogue-display.otf') format('opentype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Very Vogue'; src: url('fonts/nicky-laatz-very-vogue-display-italic.otf') format('opentype'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Very Vogue'; src: url('fonts/nicky-laatz-very-vogue-text.otf') format('opentype'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Very Vogue'; src: url('fonts/nicky-laatz-very-vogue-text-italic.otf') format('opentype'); font-weight: 300; font-style: italic; }

:root {
  --pearl-black:     #0B0B0C;
  --editorial-white: #F6F2EC;
  --taupe:           #D9CBBE;
  --evergreen:       #0F2A24;
  --cherry:          #B11226;
  --poppy:           #E85D2A;
  --gold:            #B89A5B;
  --warm:            #6b5d52;
  --rule:            rgba(15,42,36,0.10);
  --powder-blue:     #91AAB5;
  --ease-editorial:  cubic-bezier(0.16,1,0.3,1);
  --font-body:    'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Very Vogue', 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--editorial-white);
  color: var(--pearl-black);
  font-size: 16px;
  overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ══ MOTION: scroll reveal (same timing as the homepage) ══ */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.85s var(--ease-editorial), transform 0.85s var(--ease-editorial);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Line rise: big headline lines slide up out of a mask */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > .line-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 1.3s var(--ease-editorial);
}
.line-mask.visible > .line-inner { transform: translateY(0); }

/* Clip reveal: the element's content wipes open from the bottom.
   (The clip sits on the children so the element itself stays observable.) */
.clip-reveal > * {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-editorial);
  transition-delay: inherit;
}
.clip-reveal.visible > * { clip-path: inset(0 0 0 0); }

/* Word-by-word colour reveal (site.js wraps words in .wr-w) */
.wr-w { transition: color 0.12s linear; }

/* ══ HEADER + NAV (from homepage) ══ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  color: #F6F2EC;
  transition: background 0.4s, color 0.3s;
}

.site-header.header-scrolled {
  background: rgba(246,242,236,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--pearl-black);
}

.site-header.nav-dark {
  color: var(--pearl-black);
}

.editorial-nav {
  position: relative;
  width: 100%;
  min-height: 88px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background-color .4s ease,
    color .4s ease,
    backdrop-filter .4s ease;
}

.editorial-nav.scrolled {
  background: rgba(246, 242, 236, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* DH monogram - left anchor */
.nav-monogram {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  z-index: 10;
}
.nav-monogram img {
  display: block;
  width: clamp(68px, 5.5vw, 96px);
  height: auto;
  object-fit: contain;
  /* default: over dark background — invert to cream */
  filter: invert(1) opacity(0.92);
  transition: filter 0.30s ease;
}
/* light background or scrolled: black monogram */
.site-header.nav-dark .nav-monogram img,
.site-header.header-scrolled .nav-monogram img {
  filter: invert(0) opacity(1);
}

/* Right-side nav group - all links + hamburger together */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(28px, 2.3vw, 44px);
  margin-left: auto;
}

.nav-links a {
  font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: opacity 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  width: 42px;
  height: 32px;
  padding: 0;
  margin-left: 12px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s ease, opacity .35s ease;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--editorial-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 10vw;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 6vw;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close span {
  position: absolute;
  width: 28px;
  height: 1.5px;
  background: var(--pearl-black);
}

.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child  { transform: rotate(-45deg); }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-nav a {
  font-family: 'Very Vogue', serif;
  font-style: italic;
  font-size: clamp(38px, 9vw, 64px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--pearl-black);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}

.mobile-menu-nav a:hover { color: var(--cherry); }


@media (max-width: 1024px) {
  .editorial-nav { min-height: 76px; padding: 0 5vw; }
  .nav-links > a { display: none; }
  .nav-links { gap: 0; }
  .menu-toggle { margin-left: 0; }
}
@media (max-width: 768px) {
  .editorial-nav { min-height: 68px; padding: 0 6vw; }
}

/* ══ FOOTER (from homepage) ══ */
.site-footer {
  background: var(--evergreen);
  padding: clamp(52px,5vw,72px) clamp(32px,8vw,100px) clamp(32px,3vw,48px);
  overflow: hidden;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: clamp(40px,5vw,80px);
  padding-bottom: clamp(32px,4vw,48px);
  border-bottom: 1px solid rgba(246,242,236,0.07);
  margin-bottom: clamp(24px,3vw,36px);
}
.footer-nav-col h3,
.footer-about-col h3 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(16px,1.1vw,17px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246,242,236,0.60);
  margin-bottom: 28px;
}
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav-list a {
  font-family: 'Jost', sans-serif;
  font-size: clamp(16px,1.2vw,19px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(246,242,236,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--gold); }
.footer-about-col {
  display: flex;
  flex-direction: column;
}
.footer-about-statement {
  font-size: clamp(16px,1.1vw,17px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(246,242,236,0.65);
  margin-bottom: 28px;
  max-width: 320px;
}
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.footer-social-link {
  font-family: 'Jost', sans-serif;
  font-size: clamp(16px,1.2vw,18px);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,242,236,0.80);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social-link:hover { color: var(--gold); }
.site-footer-base {
  border-top: 1px solid rgba(246,242,236,0.10);
  padding: 28px 44px 22px;
}
.site-footer-base-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.footer-base-link {
  font-family: 'Jost', sans-serif;
  font-size: clamp(16px,1.1vw,18px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,242,236,0.80);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-base-link:hover { color: var(--gold); }
.site-footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-footer-logo img {
  display: block;
  width: clamp(80px,9vw,120px);
  height: auto;
  object-fit: contain;
  filter: invert(1) opacity(0.90);
  image-rendering: -webkit-optimize-contrast;
}
.site-footer-base-bottom {
  display: flex;
  justify-content: flex-end;
}
.site-footer-copy {
  font-family: 'Jost', sans-serif;
  font-size: clamp(16px,1vw,17px);
  font-weight: 300;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(246,242,236,0.62);
}
@media (max-width: 768px) {
  .site-footer { padding: 64px 6vw 40px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 5vw; }
  .footer-about-col { grid-column: 1 / -1; }
  .site-footer-base { padding: 24px 20px 16px; }
  .site-footer-base-row { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
  .site-footer-base-bottom { justify-content: center; }
}

/* ══ Reduced motion: show everything, no movement ══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .line-mask > .line-inner { transform: none !important; transition: none !important; }
  .clip-reveal > * { clip-path: none !important; transition: none !important; }
  [data-drift], [data-parallax] { transform: none !important; }
}
