/* ==========================================================================
   Zoose Labs — Landing page
   Brand system: Space Grotesk + JetBrains Mono · Ink #0A0A0B · Paper #F5F5F3
   ========================================================================== */

:root {
  --ink:        #0A0A0B;
  --ink-soft:   #16161A;
  --paper:      #F5F5F3;
  --paper-dim:  #DCDCD6;
  --paper-low:  rgba(245, 245, 243, 0.55);
  --paper-faint: rgba(245, 245, 243, 0.12);
  --rule:       rgba(245, 245, 243, 0.08);
  --accent:     #5cd3ff;          /* approx oklch(0.75 0.17 230) */
  --accent-dim: rgba(92, 211, 255, 0.18);

  --serif:    'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max-w:    1180px;
  --gutter:   clamp(20px, 4vw, 56px);
  --section-y: clamp(120px, 16vh, 200px);

  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  /* Lock the browser-level theme to dark — affects scrollbars, form-control
     defaults, and any system-rendered UI. The page itself is dark regardless,
     but this prevents user-agent light bleed on scrollbars / autofill / etc. */
  color-scheme: dark;
  background: var(--ink);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Skip to content (keyboard-only) ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Reveal-on-scroll base state ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a parent that uses .reveal */
.reveal-stagger > .reveal { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.78);
  border-bottom-color: var(--rule);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}

.nav-mark { color: var(--paper); }

.nav-wordmark {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.nav-wordmark-thin {
  font-weight: 400;
  opacity: 0.55;
  margin-left: 5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--paper-low);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--paper); }

@media (max-width: 600px) {
  .nav-links { gap: 18px; font-size: 11px; }
  .nav { padding: 14px var(--gutter); }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--paper-low);
  margin-bottom: 32px;
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8.5vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  max-width: 14ch;
}

.hero-accent {
  background: linear-gradient(120deg, var(--paper) 0%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--paper-low);
  max-width: 40ch;
  margin: 0 0 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 245, 243, 0.22);
}
.btn-ghost:hover {
  border-color: var(--paper);
  background: var(--paper-faint);
  transform: translateY(-1px);
}

.hero-mark {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(420px, 58vw, 820px);
  height: auto;
  z-index: 1;
  opacity: 0.22;
  pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(92, 211, 255, 0.12));
}

@media (max-width: 900px) {
  .hero-mark {
    right: -30vw;
    width: 110vw;
    opacity: 0.10;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--paper-low);
  animation: scroll-hint 2.4s var(--ease) infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50%      { transform: translate(-50%, 6px); opacity: 0.95; }
}

@media (max-width: 600px) {
  .hero { padding: 100px var(--gutter) 60px; }
  .hero-scroll { display: none; }
}

/* ── Section base ─────────────────────────────────────────────────────────── */
.section {
  padding: var(--section-y) var(--gutter);
  position: relative;
  border-top: 1px solid var(--rule);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--paper-low);
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 56px;
}

.section-body {
  max-width: 64ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--paper-low);
}

.section-body p { margin: 0 0 20px; }
.section-body p:last-child { margin-bottom: 0; }

/* ── Work grid ────────────────────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 20px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  min-height: 360px;
}

.work-card:hover {
  border-color: rgba(245, 245, 243, 0.22);
  transform: translateY(-3px);
}

.work-card-empty:hover {
  transform: none;
  border-color: var(--rule);
}

.work-card-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  margin: -36px -32px 28px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(92, 211, 255, 0.08), rgba(92, 211, 255, 0.02));
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.work-card-preview-logo {
  max-height: 56px;
  width: auto;
  opacity: 0.95;
}

.work-card-header {
  margin-bottom: 24px;
}

.work-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--paper-low);
  margin-bottom: 18px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-live {
  background: #43BF8E;
  box-shadow: 0 0 12px rgba(67, 191, 142, 0.6);
}
.dot-soon {
  background: var(--paper-low);
  box-shadow: none;
}

.work-card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.work-card-tagline {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--paper-low);
  font-weight: 400;
}

.work-card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper-low);
  margin: 0 0 28px;
  flex: 1;
}

.work-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  color: rgba(245, 245, 243, 0.4);
  margin-bottom: 16px;
}

.work-card-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--accent);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.work-card-link:hover {
  color: var(--paper);
  gap: 10px;
}

/* ── Domains (Technology · Development · Consulting) ─────────────────────── */
.domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px 40px;
}

.domain {
  position: relative;
}

.domain-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 18px;
}

.domain h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  line-height: 1.1;
}

.domain p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--paper-low);
  margin: 0;
  max-width: 36ch;
}

/* ── Principles ──────────────────────────────────────────────────────────── */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 36px;
}

.principle {
  position: relative;
}

.principle-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.principle h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.25;
}

.principle p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-low);
  margin: 0;
}

/* ── Numbers strip ───────────────────────────────────────────────────────── */
.section-numbers {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 80px var(--gutter);
  background: var(--ink-soft);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.number-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--paper);
}

.number-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--paper-low);
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-title { margin-bottom: 32px; }

.contact-body {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--paper-low);
  max-width: 50ch;
  margin: 0 0 48px;
  line-height: 1.6;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--paper);
  border-bottom: 1px solid var(--paper-faint);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.contact-mail:hover {
  color: var(--accent);
  gap: 18px;
  border-color: var(--accent);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.meta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(245, 245, 243, 0.4);
  margin-bottom: 6px;
}

.meta-value {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--paper);
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 48px var(--gutter);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  color: var(--paper);
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--paper-low);
}

.footer-rights {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(245, 245, 243, 0.4);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.notfound {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  overflow: hidden;
}
.notfound-inner {
  position: relative;
  max-width: 640px;
  text-align: left;
  z-index: 1;
}
.notfound-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--paper-low);
  margin-bottom: 24px;
}
.notfound-headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}
.notfound-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--paper-low);
  max-width: 480px;
  margin: 0 0 36px;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll { animation: none; }
  html { scroll-behavior: auto; }
}
