/* ═══════════════════════════════════════════════
   SLATE & ARC — LUXURY MONOCHROME DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
@font-face {
  font-family: 'ProperAmpersand';
  src: local('Inter'), local('Arial'), local('Helvetica'), local('system-ui');
  unicode-range: U+0026; /* Target only the & character */
}

:root {
  /* Backgrounds */
  --bg:    #FAFAF8;    /* warm off-white page */
  --bg2:   #F2F1EE;    /* light warm grey surface */
  --bg3:   #FFFFFF;    /* pure white cards */
  --bg4:   #E8E7E4;    /* muted grey surface */

  /* Text */
  --k:     #141413;    /* near-black primary */
  --k2:    #2D2D2B;    /* dark grey heading */
  --d:     #71716E;    /* warm mid-grey description */
  --d2:    #9A9A96;    /* lighter grey caption */

  /* Borders */
  --ln:    #E2E1DE;    /* subtle warm border */
  --lnk:  #C8C7C4;    /* stronger border */

  /* Dark sections */
  --dark:  #0C0C0B;    /* dark section bg */
  --dk2:   #161615;    /* elevated dark surface */
  --dk-t:  #F0EFEC;    /* text on dark bg */
  --dk-d:  #6A6A66;    /* desc text on dark bg */
  --dk-ln: #2A2A28;    /* border on dark bg */

  /* Accent — subtle warm charcoal */
  --accent: #141413;

  /* Typography */
  --fd: 'ProperAmpersand', 'Bebas Neue', sans-serif;
  --fs: 'Syne', sans-serif;
  --fb: 'ProperAmpersand', 'Space Grotesk', sans-serif;
  --fm: 'DM Mono', monospace;

  /* Easing */
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
}

/* ── SKIP TO CONTENT (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--k);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--k); outline-offset: 2px; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg);
  color: var(--k);
  font-family: var(--fb);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ── PRELOADER ── */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader img { height: 48px; animation: preloaderPulse 1.2s ease-in-out infinite; }
@keyframes preloaderPulse { 0%,100%{opacity:.3;transform:scale(.96)} 50%{opacity:1;transform:scale(1)} }

/* ── PAGE TRANSITION ── */
.page-transition {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--k);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.page-transition.active { transform: scaleY(1); transform-origin: top; }

/* ── CURSOR ── */
#cur {
  position: fixed; width: 8px; height: 8px;
  background: var(--k); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s, opacity .2s;
  mix-blend-mode: difference;
}
#cur.on { width: 56px; height: 56px; opacity: .08; }
@media (max-width: 768px) { #cur { display: none; } }
@media (hover: none) { #cur { display: none; } }

/* ── NAVIGATION ── */
nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 56px;
  transition: padding .5s var(--ease), background .4s, border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
nav.sc {
  padding: 16px 56px;
  background: rgba(250, 250, 248, .88);
  border-bottom-color: var(--ln);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 40px rgba(0,0,0,.04);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img {
  height: 48px;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  box-shadow: 0 0 0 1px var(--ln);
}
.nav-wm {
  font-family: var(--fm); font-size: 11px; letter-spacing: .06em;
  color: var(--k); font-weight: 400;
}
.nav-wm b { font-weight: 300; opacity: .3; }
.nav-links { display: flex; gap: 48px; list-style: none; }
.nav-links a {
  font-family: var(--fb); font-size: 13px; font-weight: 500;
  letter-spacing: .02em; color: var(--d);
  transition: color .3s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--k);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--k); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--fb); font-size: 13px; font-weight: 600;
  letter-spacing: .02em;
  padding: 12px 28px; background: var(--k); color: var(--bg);
  transition: all .3s var(--ease);
  border: none;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--k2); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,.15); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; width: 24px; height: 20px; position: relative; z-index: 210; }
.burger span {
  display: block; width: 100%; height: 1.5px; background: var(--k);
  transition: all .4s var(--ease); transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mob {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 190;
  flex-direction: column; align-items: center; justify-content: center; gap: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mob.open { display: flex; opacity: 1; visibility: visible; }
.mob a {
  font-family: var(--fd); font-size: clamp(48px, 12vw, 80px);
  color: var(--k); letter-spacing: .02em;
  padding: 8px 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
}
.mob.open a {
  opacity: 1; transform: none;
}
.mob.open a:nth-child(1) { transition-delay: .1s; }
.mob.open a:nth-child(2) { transition-delay: .15s; }
.mob.open a:nth-child(3) { transition-delay: .2s; }
.mob.open a:nth-child(4) { transition-delay: .25s; }
.mob.open a:nth-child(5) { transition-delay: .3s; }
.mob a:hover { color: var(--d); }
.mob-x { display: none; }

/* ── SCROLL REVEAL ── */
.R {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.R.V { opacity: 1; transform: none; }
.Rf { opacity: 0; transition: opacity 1.2s var(--ease-out) .15s; }
.Rf.V { opacity: 1; }
/* Stagger children */
.R-stagger .R:nth-child(1) { transition-delay: 0s; }
.R-stagger .R:nth-child(2) { transition-delay: .08s; }
.R-stagger .R:nth-child(3) { transition-delay: .16s; }
.R-stagger .R:nth-child(4) { transition-delay: .24s; }
.R-stagger .R:nth-child(5) { transition-delay: .32s; }
.R-stagger .R:nth-child(6) { transition-delay: .40s; }

/* Image reveal */
.img-reveal {
  overflow: hidden; position: relative;
}
.img-reveal img {
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.img-reveal.V img { transform: scale(1); }

/* ── MARQUEE ── */
.mq {
  overflow: hidden;
  border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln);
  padding: 14px 0; background: var(--k);
}
.mq-t {
  display: inline-flex; white-space: nowrap;
  animation: mq 28s linear infinite;
}
.mq-i {
  font-family: var(--fb); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--bg); padding: 0 44px;
  display: inline-flex; align-items: center; gap: 44px;
}
.mq-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--d); flex-shrink: 0; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Light marquee variant */
.mq-light { background: var(--bg); border-color: var(--ln); }
.mq-light .mq-i { color: var(--k); }
.mq-light .mq-dot { background: var(--lnk); }

/* ── BUTTONS ── */
.btn-k {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fb); font-size: 14px; font-weight: 600;
  letter-spacing: .02em;
  padding: 16px 36px; background: var(--k); color: var(--bg);
  border: none; cursor: pointer;
  transition: all .35s var(--ease);
  position: relative; overflow: hidden;
  border-radius: 999px;
}
.btn-k::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent);
  opacity: 0; transition: opacity .3s;
}
.btn-k:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.btn-k:hover::before { opacity: 1; }
.btn-k:active { transform: translateY(0); }

.btn-o {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fb); font-size: 14px; font-weight: 500;
  letter-spacing: .02em;
  padding: 15px 36px; border: 1.5px solid var(--ln); color: var(--d);
  background: transparent;
  transition: all .35s var(--ease);
  border-radius: 999px;
}
.btn-o:hover { border-color: var(--k); color: var(--k); transform: translateY(-1px); }

/* Arrow button */
.btn-arr {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--fb); font-size: 14px; font-weight: 500;
  color: var(--k); border: none; background: none; cursor: pointer;
  padding: 0;
  transition: gap .3s var(--ease);
}
.btn-arr::after { content: '→'; transition: transform .3s var(--ease); }
.btn-arr:hover { gap: 18px; }
.btn-arr:hover::after { transform: translateX(3px); }

/* ── IMAGE STYLES ── */
.img-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.img-hover:hover .img-cover { transform: scale(1.04); }

/* ── SECTION HEADING ── */
.sec-tag {
  font-family: var(--fb); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--d); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.sec-tag::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--lnk);
}
.sec-h {
  font-family: var(--fd); letter-spacing: -.01em; line-height: .88;
  color: var(--k);
}
.sec-h .out { -webkit-text-stroke: 1.5px var(--d2); color: transparent; display: block; }
.sec-h .solid { display: block; }
.sec-body {
  font-family: var(--fb); font-size: 15px; font-weight: 400;
  color: var(--d); line-height: 1.8; max-width: 480px;
}

/* Dark section text */
.on-dark { color: var(--dk-t); }
.on-dark .sec-tag { color: var(--dk-d); }
.on-dark .sec-tag::before { background: var(--dk-ln); }
.on-dark .sec-h { color: var(--dk-t); }
.on-dark .sec-h .out { -webkit-text-stroke-color: var(--dk-d); }
.on-dark .sec-body { color: var(--dk-d); }

/* ── TAG / PILL ── */
.pill {
  font-family: var(--fb); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 16px; border: 1px solid var(--ln); color: var(--d);
  transition: all .25s var(--ease);
}
.pill:hover { border-color: var(--k); color: var(--k); }
.pill-dark { border-color: var(--dk-ln); color: var(--dk-d); }
.pill-dark:hover { border-color: var(--dk-t); color: var(--dk-t); }

/* ── FOOTER ── */
footer {
  background: var(--dark); border-top: 1px solid var(--dk-ln);
  padding: 80px 56px 40px;
}
.f-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--dk-ln);
}
.f-brand-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.f-brand-head img {
  height: 48px;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}
.f-brand-name {
  font-family: var(--fm); font-size: 16px; letter-spacing: .06em;
  color: var(--dk-t); font-weight: 400;
}
.f-brand-name b { font-weight: 300; opacity: .4; }
.f-brand-text {
  font-family: var(--fb); font-size: 14px; color: var(--dk-d);
  line-height: 1.7; max-width: 320px;
}
.f-col-title {
  font-family: var(--fb); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--dk-d); margin-bottom: 20px;
}
.f-col a {
  display: block; font-family: var(--fb); font-size: 14px;
  color: rgba(240,239,236,.5); padding: 6px 0;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.f-col a:hover { color: var(--dk-t); padding-left: 4px; }
.f-bottom {
  display: flex; align-items: center; justify-content: center;
  padding-top: 32px;
}
.f-c { font-family: var(--fb); font-size: 12px; color: var(--dk-d); }
.f-socials { display: flex; gap: 20px; }
.f-socials a {
  font-family: var(--fb); font-size: 12px; font-weight: 500;
  color: var(--dk-d); letter-spacing: .06em;
  transition: color .25s;
}
.f-socials a:hover { color: var(--dk-t); }

/* Back to top */
.back-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 100;
  width: 48px; height: 48px;
  background: var(--k); color: var(--bg);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  opacity: 0; transform: translateY(12px);
  transition: all .4s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.back-top.show { opacity: 1; transform: none; }
.back-top:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.25); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav, nav.sc { padding: 20px 28px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  footer { padding: 60px 28px 32px; }
  .f-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  nav, nav.sc { padding: 18px 20px; }
  footer { padding: 48px 20px 28px; }
  .f-top { grid-template-columns: 1fr; gap: 32px; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
}
