/* ===========================
   KNOORS DATA SCIENCE — STYLES
   Inspired by Obsidian Velocity
   =========================== */

@font-face {
  font-family: 'Raveo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('public/fonts/RaveoVF.woff2') format('woff2');
}

:root {
  --bg: #F7F7F5;
  --bg-alt: #EFEFEC;
  --bg-dark: #1C1C1A;
  --text: #1A1A18;
  --text-muted: #6B6B67;
  --text-faint: #9C9C97;
  --accent: #637B8C;
  --accent-light: #8FA5B2;
  --accent-dark: #445B6A;
  --border: #E0DED8;
  --border-light: #EDEBE6;

  --font-sans: 'Raveo', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;

  --nav-h: 64px;
  --container: 1080px;
  --radius: 3px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* CONTAINER */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: 0 1px 0 0 var(--border-light);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--accent);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.2s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-menu a { font-size: 1.5rem; font-weight: 300; color: var(--text); }
.mobile-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 82vh;
  min-height: 520px;
  max-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-chart-wrap {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-52%);
  width: 38%;
  pointer-events: none;
}
.hero-chart-img {
  width: 100%;
  opacity: 0.55;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 260;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 14em;
}
.hero-sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 36em;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  70% { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--accent-light);
  color: var(--accent-dark);
}
.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* ===========================
   SECTIONS — SHARED
   =========================== */
.section {
  padding: 7rem 0;
}
.section-header {
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 280;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 58ch;
}
.body-text + .body-text { margin-top: 1rem; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
}

/* ===========================
   ABOUT
   =========================== */
.about {
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-photo-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  border-radius: 2px;
  filter: grayscale(15%);
  transition: filter 0.3s;
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--border);
  border-radius: 2px;
  pointer-events: none;
  z-index: -1;
}
.about-domains {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.about-text .section-label { margin-top: 0; }
.about-text .section-title { margin-bottom: 1.5rem; }

/* ===========================
   CLIENTS
   =========================== */
.clients-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 0 5rem;
  background: var(--bg);
}
.clients-strip .section-header {
  margin-bottom: 3.5rem;
}
.clients-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
}
.client-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  height: 120px;
  border-right: 1px solid var(--border);
}
.client-logo-wrap:last-child {
  border-right: none;
}
.client-logo {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: 0.65;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.client-logo:hover {
  opacity: 1;
  filter: grayscale(0.4);
}

/* ===========================
   SERVICES
   =========================== */
.services {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg-alt);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
}
.service-card:hover {
  background: var(--bg);
}
.service-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===========================
   WORK
   =========================== */
.work {
  border-top: 1px solid var(--border);
}
.work-list {
  display: flex;
  flex-direction: column;
}
.work-item {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
  padding: 2.5rem 0;
}
.work-divider {
  height: 1px;
  background: var(--border);
}
.work-domain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  padding-top: 0.2rem;
}
.work-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.work-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.work-tags {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  padding-top: 0.2rem;
  min-width: 140px;
}

/* ===========================
   PRIVACY
   =========================== */
.privacy {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #E8E6DF;
  border-top: 1px solid #2A2A28;
  padding: 4.5rem 0;
}
.privacy-fog-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.privacy-fog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% center;
  opacity: 0.05;
  filter: grayscale(1);
}
.privacy .container {
  position: relative;
  z-index: 1;
}
.privacy .section-label { color: var(--accent-light); }
.privacy .section-title { color: #E8E6DF; }
.privacy .body-text { color: #9C9C97; max-width: 52ch; }
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.privacy-text-full { }
.privacy-techs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.privacy-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.privacy-chart {
  width: 100%;
  max-width: 420px;
  filter: invert(1) hue-rotate(180deg) brightness(1.1) saturate(1.4);
}
.privacy-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #5A5A55;
  text-align: center;
  max-width: 36ch;
  line-height: 1.6;
}
.privacy-tech-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.privacy-tech-dot {
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  margin-top: 0.55rem;
}
.privacy-tech-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #D8D6CF;
  margin-bottom: 0.2rem;
}
.privacy-tech-item p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #7A7A75;
}

/* ===========================
   CONTACT
   =========================== */
.contact {
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.contact-inner .section-label { margin-bottom: 0.75rem; }
.contact-inner .section-title { margin-bottom: 1.5rem; }
.contact-lead {
  margin-bottom: 2.5rem;
  text-align: center;
}
.contact-footnote {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-logo:hover .footer-logo-img { opacity: 0.8; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: right;
}

/* ===========================
   FADE-IN ANIMATION
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.service-card:nth-child(2) { transition-delay: 0.07s; }
.service-card:nth-child(3) { transition-delay: 0.07s; }
.service-card:nth-child(4) { transition-delay: 0.14s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo-wrap { max-width: 240px; }

  .work-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .work-tags {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .privacy-techs {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo { margin: 0 auto; }
  .footer-tagline { text-align: center; }
}

@media (max-width: 600px) {
  .section { padding: 4.5rem 0; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-title { font-size: 2rem; }

  .container { padding: 0 1.25rem; }
}
