/* ============================================================
   THANATOS DEUS — project-6.css
   Dark editorial · Baroque meets machine
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-orange: #FF6420;
  --charcoal:     #1A1A1A;
  --stratus:      #8A8A8A;
  --off-white:    #F5F4F0;
  --paper:        rgba(245,244,240,0.7);
  --white:        #FFFFFF;
  --black:        #0C0C0C;
  --void:         #080808;
  --ml: max(48px, 7vw);
  --mr: max(48px, 7vw);

  --fs-72:  clamp(36px, 5vw, 72px);
  --fs-36:  clamp(22px, 2.5vw, 36px);
  --fs-25:  clamp(16px, 1.74vw, 25px);
  --fs-15:  15px;
  --fs-11:  11px;
  --fs-9:   9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; }
::selection { background: var(--brand-orange); color: var(--black); }

body {
  background: var(--void);
  color: var(--off-white);
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.syne    { font-family: 'Syne', sans-serif; font-weight: 700; }
.mono    { font-family: 'IBM Plex Mono', monospace; }
.manrope { font-family: 'Manrope', sans-serif; }

/* ── Scroll progress ── */
.scroll-progress-track { position: fixed; top: 0; right: 0; width: 15px; height: 100vh; z-index: 9999; pointer-events: none; }

.scroll-progress-fill {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 0%;
  background: var(--brand-orange);
}

/* ── Reveals ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ============================================================
   HEADER
============================================================ */
#main-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1500;
  background: transparent;
  opacity: 0;
  transition: opacity .4s ease, transform .35s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
#main-nav.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#main-nav.nav-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--mr) 20px var(--ml); position: relative;
}
.nav-logo-wrap { display: flex; align-items: center; text-decoration: none; }
.nav-logo-svg { width: auto; height: 40px; overflow: visible; }
.nav-links {
  display: flex; align-items: center; gap: 48px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  font-size: var(--fs-11); font-weight: 700;
  color: var(--off-white); text-decoration: none;
  letter-spacing: .04em; opacity: .55; transition: opacity .2s ease;
}
.nav-link:hover { opacity: 1; }
.nav-clock {
  font-size: var(--fs-11); font-weight: 400; letter-spacing: .14em;
  color: var(--brand-orange); width: 220px; flex-shrink: 0;
  text-align: right; white-space: nowrap; overflow: hidden;
}

/* ── Back button ── */
#rp-back {
  position: fixed; top: 80px; left: var(--ml); z-index: 2000;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--brand-orange);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#rp-back.visible { opacity: 1; pointer-events: all; }
#rp-back:hover { opacity: 0.6; transform: translateX(-4px); }
.rp-back-icon { font-size: 14px; }
.rp-back-label { font-size: var(--fs-9); letter-spacing: 0.14em; text-transform: uppercase; }

/* ============================================================
   HERO
============================================================ */
#td-hero {
  position: relative; width: 100%; height: 100vh; overflow: hidden;
}
.td-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
}
.td-hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,0.95) 0%,
    rgba(8,8,8,0.4) 40%,
    rgba(8,8,8,0.1) 70%,
    transparent 100%
  );
}
.td-hero-content {
  position: absolute; bottom: 100px; left: var(--ml); z-index: 2;
  display: flex; flex-direction: column; gap: 12px;
}
.td-hero-eyebrow {
  font-size: var(--fs-9); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-orange);
}
.td-hero-title {
  font-size: clamp(48px, 8vw, 120px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 0.95; color: var(--off-white);
}
.td-hero-sub {
  font-size: var(--fs-11); letter-spacing: 0.14em;
  color: rgba(245,244,240,0.4); margin-top: 8px;
}
.td-hero-scroll {
  position: absolute; bottom: 32px; left: var(--ml);
  font-size: var(--fs-9); letter-spacing: 0.18em;
  color: var(--brand-orange); z-index: 2;
  animation: fadeUpPulse 2s ease infinite;
}
@keyframes fadeUpPulse {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ============================================================
   ABOUT — Two columns
============================================================ */
#td-about {
  display: flex; align-items: stretch;
  border-top: 1px solid rgba(245,244,240,0.06);
}
.td-about-text {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 60px 120px var(--ml);
}
.td-about-eyebrow {
  font-size: var(--fs-9); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand-orange);
  margin-bottom: 32px;
}
.td-about-headline {
  font-size: var(--fs-36); font-weight: 800;
  line-height: 1.25; letter-spacing: -0.02em;
  color: var(--off-white); max-width: 560px; margin-bottom: 32px;
}
.td-about-body {
  font-size: var(--fs-15); font-weight: 300;
  line-height: 1.75; color: var(--paper); max-width: 480px;
  margin-bottom: 16px;
}
.td-about-body em { color: var(--brand-orange); font-style: italic; }

.td-about-meta {
  width: 340px; flex-shrink: 0;
  display: flex; flex-direction: column;
  justify-content: center; gap: 28px;
  padding: 120px var(--mr) 120px 48px;
  border-left: 1px solid rgba(245,244,240,0.06);
}
.td-meta-item { display: flex; flex-direction: column; gap: 4px; }
.td-meta-key {
  font-size: var(--fs-9); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-orange);
}
.td-meta-val {
  font-size: var(--fs-11); font-weight: 400;
  color: rgba(245,244,240,0.6);
}

/* ============================================================
   FULL IMAGE
============================================================ */
#td-full-image {
  padding: 80px var(--ml);
  display: flex; flex-direction: column; align-items: center;
  border-top: 1px solid rgba(245,244,240,0.06);
}
.td-full-img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
}
.td-full-caption {
  margin-top: 24px;
  font-size: var(--fs-9); letter-spacing: 0.1em;
  color: var(--stratus); text-align: center;
}

/* ============================================================
   DISSECTION SECTIONS
============================================================ */
.td-dissect {
  display: flex; align-items: stretch;
  min-height: 80vh;
  border-top: 1px solid rgba(245,244,240,0.06);
}
.td-dissect--reverse { flex-direction: row-reverse; }

.td-dissect-img {
  flex: 0 0 35%;
  overflow: hidden;
  position: relative;
  padding: 60px;
  display: flex;
  align-items: center;
}
.td-dissect-img img {
  width: 100%; height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.6s ease;
}
.td-dissect-img:hover img {
  filter: brightness(1);
}

.td-dissect-text {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
}
.td-dissect-label {
  font-size: var(--fs-9); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-orange);
  margin-bottom: 20px;
}
.td-dissect-title {
  font-size: var(--fs-36); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--off-white); margin-bottom: 24px;
}
.td-dissect-body {
  font-size: var(--fs-15); font-weight: 300;
  line-height: 1.75; color: var(--paper); max-width: 480px;
  margin-bottom: 16px;
}
.td-dissect-body em {
  color: var(--brand-orange); font-style: italic;
}

/* ============================================================
   QUOTE
============================================================ */
#td-quote {
  min-height: 50vh;
  padding: 100px var(--ml);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(245,244,240,0.06);
}
.td-quote-mark {
  font-size: clamp(80px, 12vw, 200px);
  line-height: 0.5; color: var(--brand-orange);
  opacity: 0.15; user-select: none;
  margin-bottom: 24px;
}
.td-quote-text {
  font-size: var(--fs-25); line-height: 1.5;
  color: var(--off-white); max-width: 640px;
  font-style: italic;
}
.td-quote-attr {
  font-size: var(--fs-9); letter-spacing: 0.14em;
  color: var(--brand-orange); margin-top: 32px;
}

/* ============================================================
   CLOSING
============================================================ */
#td-closing {
  min-height: 80vh;
  padding: 120px var(--ml);
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid rgba(245,244,240,0.06);
}
.td-closing-inner {
  max-width: 640px; text-align: center;
}
.td-closing-headline {
  font-size: var(--fs-72); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05;
  color: var(--off-white); margin-bottom: 40px;
}
.td-closing-body {
  font-size: var(--fs-15); font-weight: 300;
  line-height: 1.75; color: var(--paper);
  margin-bottom: 20px;
}
.td-closing-body em { color: var(--brand-orange); font-style: italic; }
.td-closing-coda {
  font-size: var(--fs-11); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand-orange);
  margin-top: 48px;
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  position: relative; min-height: 100vh;
  background: var(--black);
  display: flex; flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid rgba(245,244,240,0.06);
}
.footer-main {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 120px var(--mr) 80px var(--ml); flex: 1; gap: 80px;
}
.footer-left { max-width: 520px; display: flex; flex-direction: column; gap: 28px; }
.footer-label {
  font-size: var(--fs-9); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand-orange);
}
.footer-headline {
  font-size: var(--fs-72); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05; color: var(--off-white);
}
.footer-headline-accent { color: var(--brand-orange); }
.footer-cta-btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 12px;
  padding: 16px 32px; background: var(--brand-orange);
  text-decoration: none; width: fit-content;
  transition: all 0.4s var(--ease);
}
.footer-cta-btn:hover { gap: 20px; padding: 16px 40px 16px 32px; background: #ff7a3f; }
.footer-cta-btn-text {
  font-size: var(--fs-9); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--black); font-weight: 500;
}
.footer-cta-btn-arrow {
  font-size: 14px; color: var(--black);
  transition: transform 0.3s var(--ease);
}
.footer-cta-btn:hover .footer-cta-btn-arrow { transform: translateX(4px); }
.footer-right { display: flex; flex-direction: column; gap: 36px; padding-top: 56px; }
.footer-contact-block { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-label {
  font-size: var(--fs-9); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-orange);
}
.footer-contact-value {
  font-size: var(--fs-15); font-weight: 400;
  color: var(--off-white); text-decoration: none; line-height: 1.5;
  transition: color 0.2s ease;
}
a.footer-contact-value:hover { color: var(--brand-orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--mr) 24px var(--ml);
  border-top: 1px solid rgba(245,244,240,0.06);
}
.footer-bottom-left { display: flex; align-items: center; gap: 20px; }
.footer-logo-svg { width: auto; height: 32px; overflow: visible; flex-shrink: 0; }
.footer-copyright { font-size: var(--fs-9); letter-spacing: 0.08em; color: var(--stratus); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  :root { --ml: 56px; --mr: 56px; }
}
@media (max-width: 768px) {
  :root { --ml: 24px; --mr: 24px; }
  #td-about { flex-direction: column; }
  .td-about-meta {
    width: 100%; border-left: none;
    border-top: 1px solid rgba(245,244,240,0.06);
    padding: 48px var(--ml) 80px;
  }
  .td-dissect,
  .td-dissect--reverse { flex-direction: column; }
  .td-dissect-img { flex: none; height: 50vw; }
  .td-dissect-text { padding: 48px var(--ml); }
  .footer-main { flex-direction: column; padding: 80px var(--ml) 60px; gap: 48px; }
  .footer-right { padding-top: 0; }
  .footer-bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
}