/* ============================================================
   HAFEEZA TURE · THE THRESHOLD ARCHITECT
   Ancestral infrastructure with feminine authority.
   Theaster Gates meets The Row meets a family trust document.
   ============================================================ */

:root {
  --ink: #14110E;
  --soot: #1C1815;
  --brass: #C49A4A;
  --amber: #D9A441;
  --oxblood: #6E2A2A;
  --clay: #9C5B3B;
  --bone: #EDE7DA;
  --stone: #A89A82;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Anchored sections clear the fixed nav when jumped to */
section[id], header[id] { scroll-margin-top: 90px; }

body {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(196,154,74,0.08), transparent 60%),
    var(--ink);
  margin: 0;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- NOISE ---------- */
.noise-overlay {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 100;
  opacity: 0.05; mix-blend-mode: multiply;
}

/* ---------- NAVBAR ---------- */
.nav-inner {
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
#navbar.scrolled .nav-inner {
  background: rgba(28,24,21,0.6);
  backdrop-filter: blur(18px);
  border-color: rgba(196,154,74,0.18);
}
.nav-link {
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}
.nav-link:hover { color: var(--bone); transform: translateY(-1px); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--brass);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---------- BUTTONS ---------- */
.cta-btn {
  background: var(--brass);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  display: inline-flex; align-items: center; justify-content: center;
}
.cta-btn:hover { transform: scale(1.03); }
.cta-slide {
  position: absolute; inset: 0;
  background: var(--amber);
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}
.cta-btn:hover .cta-slide { transform: translateX(0); }

.ghost-btn {
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.4s ease, background 0.4s ease;
}
.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brass);
  background: rgba(196,154,74,0.06);
}

/* ---------- HERO ---------- */
.hero-bg {
  background:
    radial-gradient(900px 700px at 50% 100%, rgba(110,42,42,0.22), transparent 65%),
    linear-gradient(180deg, #14110E 0%, #1A1511 55%, #14110E 100%);
}
.arch-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawArch 3.5s ease forwards 0.3s;
}
@keyframes drawArch { to { stroke-dashoffset: 0; } }

.hero-title { letter-spacing: -0.02em; }

/* ---------- HERO PORTRAIT ---------- */
.hero-portrait-wrap {
  display: flex;
  justify-content: center;
}
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(196,154,74,0.3);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero-portrait-ring {
  position: absolute;
  inset: 0;
  border-radius: 2.5rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(20,17,14,0.55) 100%);
}
@media (max-width: 768px) {
  .hero-portrait { max-width: 280px; margin: 0 auto 1rem; }
  .hero-portrait-wrap { order: -1; }
}

/* ---------- DECLARATION MARQUEE ---------- */
.declaration {
  background: var(--soot);
}
.marquee-track { overflow: hidden; width: 100%; }
.marquee {
  animation: scroll-marquee 38s linear infinite;
  width: max-content;
}
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- ENEMY ---------- */
.enemy {
  background:
    linear-gradient(180deg, transparent, rgba(110,42,42,0.07) 50%, transparent),
    var(--ink);
}
.enemy-card {
  background: var(--soot);
  border: 1px solid rgba(156,91,59,0.2);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.enemy-card:hover {
  transform: translateY(-3px);
  border-color: rgba(156,91,59,0.5);
}

/* ---------- VEHICLE CARDS ---------- */
.vehicle-card {
  display: block;
  background: linear-gradient(160deg, var(--soot), #161310);
  border: 1px solid rgba(196,154,74,0.16);
  border-radius: 2rem;
  padding: 2.25rem;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.45s ease;
}
.vehicle-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196,154,74,0.45);
}
.vehicle-wide { grid-column: 1 / -1; }
.vehicle-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.vehicle-for {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brass);
  line-height: 1.5; max-width: 80%;
}
.vehicle-arrow {
  color: var(--brass); font-size: 1.1rem;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  flex-shrink: 0;
}
.vehicle-card:hover .vehicle-arrow { transform: translate(3px,-3px); }
.vehicle-name {
  color: var(--bone); font-size: 1.7rem; line-height: 1.1;
  transition: color 0.3s ease;
}
.vehicle-card:hover .vehicle-name { color: var(--amber); }
.vehicle-desc {
  color: var(--stone); margin-top: 0.9rem;
  line-height: 1.65; font-size: 1rem;
}
.vehicle-thesis {
  color: var(--bone); margin-top: 1.1rem;
  font-size: 1.15rem; line-height: 1.4;
}
.vehicle-cta {
  display: inline-block; margin-top: 1.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(196,154,74,0.35);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.vehicle-card:hover .vehicle-cta { color: var(--amber); border-color: var(--amber); }

@media (max-width: 768px) {
  .vehicle-name { font-size: 1.4rem; }
  .vehicle-for { max-width: 100%; }
}

/* ---------- STORY / CREED ---------- */
.creed {
  background: linear-gradient(160deg, var(--soot), #161310);
  border: 1px solid rgba(196,154,74,0.18);
  border-radius: 2rem;
  padding: 2.5rem;
}
.creed-list {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.creed-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.75rem;
  border-bottom: 1px solid rgba(196,154,74,0.1);
  color: var(--bone);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  line-height: 1.4;
}
.creed-list li:last-child { border-bottom: none; }
.creed-list li::before {
  content: '◇';
  position: absolute; left: 0; top: 0.95rem;
  color: var(--brass); font-size: 0.7rem;
}

/* ---------- WORK WITH ME / OPPORTUNITIES ---------- */
.opp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.opp {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(196,154,74,0.22);
  border-radius: 999px;
  color: var(--bone);
  font-size: 0.95rem;
  background: rgba(28,24,21,0.5);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.35s ease, background 0.35s ease;
}
.opp:hover {
  transform: translateY(-2px);
  border-color: var(--brass);
  background: rgba(196,154,74,0.08);
}

/* ---------- CONTACT ---------- */
.contact {
  background:
    radial-gradient(700px 500px at 50% 0%, rgba(196,154,74,0.1), transparent 60%),
    var(--ink);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--soot);
  border-top: 1px solid rgba(196,154,74,0.18);
}
.footer-head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass);
  margin-bottom: 1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.6rem; color: var(--stone); font-size: 0.95rem; }
.footer-list a { color: var(--stone); text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.footer-list a:hover { color: var(--bone); transform: translateY(-1px); }
.footer-legal-link { color: var(--stone); text-decoration: none; transition: color 0.3s ease; }
.footer-legal-link:hover { color: var(--brass); }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(217,164,65,0.6);
  animation: pulse 2.4s infinite;
  display: inline-block;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,164,65,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(217,164,65,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,164,65,0); }
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); }

/* ---------- LEGAL / PRIVACY PAGE ---------- */
.legal-prose p {
  color: var(--stone);
  line-height: 1.75;
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
}
.legal-prose h2 {
  font-family: 'Fraunces', serif;
  color: var(--bone);
  font-size: 1.5rem;
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
}
.legal-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
}
.legal-prose li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.6rem;
  color: var(--stone);
  line-height: 1.65;
  border-bottom: 1px solid rgba(196,154,74,0.1);
}
.legal-prose li:last-child { border-bottom: none; }
.legal-prose li::before {
  content: '◇';
  position: absolute; left: 0; top: 0.85rem;
  color: var(--brass); font-size: 0.65rem;
}
.legal-prose strong { color: var(--bone); font-weight: 500; }
.legal-prose a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(196,154,74,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}
.legal-prose a:hover { text-decoration-color: var(--amber); }
.legal-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196,154,74,0.15);
  font-style: italic;
  font-size: 0.92rem !important;
  color: var(--stone) !important;
}
.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--brass);
  text-decoration: none;
  transition: transform 0.3s ease;
}
.back-link:hover { transform: translateX(-4px); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .arch-line { animation: none; stroke-dashoffset: 0; }
  .status-dot { animation: none; }
  * { scroll-behavior: auto !important; }
  /* Marquee becomes a single centered, non-clipped line */
  .marquee {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .marquee span[aria-hidden="true"] { display: none; }
  .marquee span:nth-of-type(n+3) { display: none; }
}
