@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700;800&display=swap');

:root {
  --ink: #111111;
  --paper: #e5e5e5;      /* Light industrial grey */
  --surface: #ffffff;    /* White cards */
  --muted: #555555;
  --line: #111111;       /* Stark black lines */
  --accent: #c8ff5f;     /* Neon Lime */
  --accent-dark: #b1e84a;
  --blue: #4db8ff;       /* Light blue */
  --white: #ffffff;
  --black: #000000;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

img, video {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(229, 229, 229, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}

.brand {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  border: 2px solid var(--line);
  transition: all 200ms ease;
}
.brand:hover {
  background: var(--accent);
  color: var(--ink);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav a {
  color: var(--muted);
  transition: color 200ms ease;
  padding: 4px 8px;
}

nav a:hover {
  color: var(--ink);
  background: var(--accent);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

[id] {
  scroll-margin-top: 86px;
}

/* HERO */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  padding-top: 92px;
  padding-bottom: 64px;
  background-image: radial-gradient(rgba(17, 17, 17, 0.15) 2px, transparent 2px);
  background-size: 32px 32px;
  background-position: 0 0;
}

.hero-copy {
  max-width: 620px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 8vw, 6.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  max-width: 32rem;
}

.hero-actions,
.feature-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--line);
  transition: all 200ms cubic-bezier(0, 0, 0, 1);
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.primary:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translate(4px, -4px);
  box-shadow: -6px 6px 0 var(--ink);
}

.button.secondary:hover {
  background: var(--blue);
  color: var(--ink);
  transform: translate(4px, -4px);
  box-shadow: -6px 6px 0 var(--ink);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  min-width: 0;
}

.ai-stage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ID CARD */
.id-card {
  position: relative;
  width: min(100%, 540px);
  border: 2px solid var(--line);
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  box-shadow: 16px 16px 0 var(--ink);
  transition: transform 200ms ease-out;
}

.id-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
}

.id-barcode {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.id-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--ink);
  color: var(--white);
  padding: 6px 12px;
  text-transform: uppercase;
}

.id-title {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.id-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-box {
  border: 2px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
}

.metric-box.bg-blue {
  background: var(--blue);
}

.metric-box.bg-lime {
  background: var(--accent);
}

.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

.metric-value {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 800;
  color: var(--ink);
}

/* PROJECTS */
.projects {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 2px solid var(--line);
  background: #d4d4d4;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.project-list {
  border-top: 2px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 40px);
  border-bottom: 2px solid var(--line);
  transition: background 300ms ease;
}

.project-row:hover {
  background: rgba(255, 255, 255, 0.4);
}

.project-index {
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 800;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 2px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--surface);
}

.project-meta span:nth-child(1) { background: var(--accent); }
.project-meta span:nth-child(2) { background: var(--blue); }

.project-row h3 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.project-title-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.project-title-group h3 {
  margin-bottom: 0;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--ink);
  object-fit: cover;
}

.project-row p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 0;
}

.project-row .project-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.project-media {
  margin-top: 32px;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-strip img,
.screenshot-strip video,
.video-preview video {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.15);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.screenshot-strip img:hover,
.screenshot-strip video:hover,
.video-preview video:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--ink);
  border-color: var(--ink);
}

.screenshot-strip img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screenshot-strip video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sentinext-media video {
  aspect-ratio: 16 / 9;
}

.video-preview {
  max-width: 480px;
}

.project-row > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: all 200ms cubic-bezier(0, 0, 0, 1);
}

.project-row > a:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translate(4px, -4px);
  box-shadow: -6px 6px 0 var(--ink);
}

/* CONTACT */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 2px solid var(--line);
  background-image: repeating-linear-gradient(45deg, rgba(17, 17, 17, 0.05) 0, rgba(17, 17, 17, 0.05) 2px, transparent 2px, transparent 12px);
}

.contact > div {
  background: var(--surface);
  padding: 32px;
  border: 2px solid var(--line);
  box-shadow: 12px 12px 0 var(--ink);
}

.contact h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

.contact-links a {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  padding: 0 24px;
  border: 2px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  background: var(--surface);
  transition: all 200ms cubic-bezier(0, 0, 0, 1);
}

.contact-links a:hover {
  background: var(--blue);
  color: var(--ink);
  transform: translateX(8px);
  box-shadow: -8px 8px 0 var(--ink);
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding: 32px 0 48px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  transition: color 200ms ease;
}
.site-footer a:hover {
  color: var(--blue);
}

/* POLICY */
.policy-page {
  padding-top: 140px;
}

.policy {
  max-width: 800px;
  padding-bottom: 100px;
}

.policy h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5rem);
}

.policy h2 {
  max-width: none;
  margin-top: 56px;
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.policy p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.policy a {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  transition: opacity 200ms ease;
  font-weight: 700;
}
.policy a:hover {
  opacity: 0.7;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 130px;
  }

  .hero-stage {
    min-height: auto;
    order: -1;
  }
  
  .ai-stage {
    justify-content: flex-start;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-index {
    margin-bottom: 10px;
  }
  
  .project-row > a {
    justify-self: start;
    margin-top: 10px;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 20px;
  }

  nav {
    gap: 16px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 4.2rem);
  }

  .id-card {
    padding: 24px;
  }

  .id-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .id-metrics {
    grid-template-columns: 1fr;
  }

  .metric-box {
    padding: 16px;
  }

  .screenshot-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    margin-right: -20px;
    padding-right: 20px;
  }

  .screenshot-strip img,
  .screenshot-strip video {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  
  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}
