/* ===========================================
   ZED ALLEYS — DESIGN SYSTEM
   Editorial × Cinematic Dark
   =========================================== */

:root {
  /* Color — deep teal dark with coral accent, drawn from the ZED mark */
  --bg: #0a1416;
  --bg-elev: #0f1c1f;
  --bg-soft: #16272b;
  --ink: #f4f1ea;
  --ink-dim: #a3b0af;
  --ink-muted: #647576;
  --line: rgba(244, 241, 234, 0.08);
  --line-strong: rgba(244, 241, 234, 0.18);

  /* Brand teal — straight from the logo */
  --brand-teal: #264653;

  /* Single accent — logo coral */
  --accent: #e76f51;
  --accent-soft: rgba(231, 111, 81, 0.15);

  /* Status green — availability indicator */
  --success: #4ade80;

  /* Type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 192px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--bg); }

/* ============ TYPE SYSTEM ============ */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav > * { pointer-events: auto; }
.nav.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(10, 20, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand .brand-mark {
  height: 20px;
  width: auto;
  display: block;
}
.nav-brand .brand-word {
  padding-top: 1px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.nav-links {
  display: flex;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  color: #fff;
  border-radius: 999px;
  transition: background 0.4s var(--ease-out);
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0);
  transition: border-color 0.4s var(--ease-out);
}
.nav-link:hover::before { border-color: rgba(255,255,255,0.5); }
.nav-link.is-active::before { border-color: rgba(255,255,255,0.9); }

/* ============ CURSOR ============ */

.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s var(--ease-out);
  will-change: transform;
}
.cursor.is-hovering {
  width: 64px; height: 64px;
  background: var(--ink);
}
.cursor.is-text {
  width: 4px;
  height: 24px;
  border-radius: 2px;
}
@media (hover: none) { .cursor { display: none; } }

/* ============ MAGNETIC LINK ============ */

.magnetic {
  display: inline-block;
  position: relative;
  transition: transform 0.4s var(--ease-elastic);
  will-change: transform;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}
.btn:hover { color: var(--bg); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary::before { background: var(--accent); }

/* ============ MARQUEE ============ */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg);
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-star {
  width: 28px; height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--line);
  padding: 80px 40px 40px;
  margin-top: 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer-big {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 80px 0 40px;
}
.footer-big a { display: inline-block; transition: color 0.3s; }
.footer-big a:hover { color: var(--accent); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer ul { list-style: none; }
.footer li { padding: 6px 0; }
.footer li a { transition: color 0.3s, padding-left 0.3s var(--ease-out); display: inline-block; }
.footer li a:hover { color: var(--accent); padding-left: 8px; }

/* ============ PAGE TRANSITION ============ */

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 9998;
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.is-active {
  animation: pageTransition 1.4s var(--ease-in-out) forwards;
}
@keyframes pageTransition {
  0% { transform: translateY(100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ============ ENTRY ANIMATION ============ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.split-line {
  display: block;
  overflow: hidden;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.split-line.is-visible > span {
  transform: translateY(0);
}

/* ============ UTILITIES ============ */

.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.container-tight { max-width: 880px; margin: 0 auto; padding: 0 40px; }

.divider {
  height: 1px;
  background: var(--line);
  margin: var(--s-9) 0;
}

.scroll-hint {
  position: absolute;
  bottom: 40px; left: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--ink-dim);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(0.3); transform-origin: left; }
}

/* ============ PLACEHOLDER IMAGE ============ */

.placeholder {
  position: relative;
  background: var(--bg-soft);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 12px,
      rgba(244,241,234,0.025) 12px,
      rgba(244,241,234,0.025) 13px
    );
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placeholder-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10,20,22,0.6);
  backdrop-filter: blur(4px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .container, .container-tight { padding: 0 20px; }
  .footer { padding: 60px 20px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
}
