/* =============================================================
   Igor Iakobenchuk — landing page styles
   Design tokens defined in :root. Edit the tokens, not the rules.
   ============================================================= */

:root {
  /* Colour — deep blue dark mode */
  --bg: #070A14;
  --surface: #101524;
  --ink-1: #E6EAF3;
  --ink-2: #838DA3;
  --ink-3: #48506A;
  --hairline: #1B2034;
  --accent: #143E68;
  --accent-hover: #1B4E80;

  /* Typography */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 640px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* =============================================================
   Reset / base
   ============================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable both-edges;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body {
  display: flex;
}

/* Cursor-aware accent spotlight. Fixed radial gradient that follows the mouse.
   JS sets --mouse-x and --mouse-y. Falls back gracefully when JS is off. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(20, 62, 104, 0.10),
    transparent 50%
  );
  z-index: 1;
  will-change: background;
}

/* Subtle noise texture for premium dark-mode depth. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: screen;
  z-index: 2;
}

/* Content sits above the spotlight + noise layers. */
.page {
  position: relative;
  z-index: 3;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

input {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================
   Layout container
   ============================================================= */

.page {
  width: 100%;
  max-width: var(--container);
  margin: auto;
  padding: 32px 24px 24px;
}

/* =============================================================
   Hero
   ============================================================= */

.hero {
  margin-bottom: 64px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  margin-bottom: 32px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar .ti {
  font-size: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 96;
  color: var(--ink-1);
  margin: 0 0 28px;
  max-width: 620px;
}

.subhead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 540px;
}

/* =============================================================
   Social links
   ============================================================= */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-bottom: 64px;
}

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-1);
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--hairline);
}

.link .ti {
  font-size: 18px;
  color: var(--ink-2);
  transition: color 0.22s ease, transform 0.22s ease;
}

/* Animated accent underline grows from centre on hover. */
.link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.link:hover::after,
.link:focus-visible::after {
  width: 100%;
  left: 0;
}

.link:hover .ti {
  color: var(--ink-1);
  transform: translateY(-1px);
}

.link:focus-visible {
  outline: 2px solid var(--ink-1);
  outline-offset: 4px;
  border-radius: 2px;
}

/* =============================================================
   Project card (vploq)
   ============================================================= */

.project-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 56px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.project-card:hover {
  border-color: var(--accent);
  background: #131829;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px -12px rgba(20, 62, 104, 0.4);
}

.project-card:focus-visible {
  outline: 2px solid var(--ink-1);
  outline-offset: 4px;
}

.project-logo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  max-width: 72px;
  max-height: 40px;
}

.project-body {
  flex: 1;
  min-width: 0;
}

.project-body .eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  margin: 0 0 4px;
}

.project-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

.project-arrow {
  flex-shrink: 0;
  color: var(--ink-2);
  transition: color 0.18s ease, transform 0.18s ease;
}

.project-arrow .ti {
  font-size: 22px;
}

.project-card:hover .project-arrow {
  color: var(--ink-1);
  transform: translate(2px, -2px);
}

/* =============================================================
   Dispatch (email)
   ============================================================= */

.dispatch {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  margin-bottom: 48px;
}

.dispatch .eyebrow {
  font-size: 11px;
  margin-bottom: 12px;
}

.dispatch-pitch {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-1);
  margin: 0 0 20px;
}

.dispatch-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dispatch-form input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink-1);
  outline: none;
  transition: border-color 0.18s ease;
}

.dispatch-form input::placeholder {
  color: var(--ink-3);
}

.dispatch-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 62, 104, 0.35);
}

.dispatch-form button {
  background: var(--accent);
  color: var(--ink-1);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s ease, transform 0.06s ease;
}

.dispatch-form button:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px -4px rgba(20, 62, 104, 0.6);
}

.dispatch-form button:active {
  transform: scale(0.98);
}

.dispatch-fine {
  font-size: 12px;
  color: var(--ink-3);
  margin: 14px 0 0;
}

/* =============================================================
   Footer
   ============================================================= */

.footer {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
}

/* =============================================================
   Page-load stagger fade-up
   Each section drifts up 10px while fading in.
   ============================================================= */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero       { animation: fade-up 0.55s 0.00s both cubic-bezier(0.4, 0, 0.2, 1); }
.links      { animation: fade-up 0.55s 0.10s both cubic-bezier(0.4, 0, 0.2, 1); }
.project-card { animation: fade-up 0.55s 0.20s both cubic-bezier(0.4, 0, 0.2, 1); }
.dispatch   { animation: fade-up 0.55s 0.30s both cubic-bezier(0.4, 0, 0.2, 1); }
.footer     { animation: fade-up 0.55s 0.40s both cubic-bezier(0.4, 0, 0.2, 1); }

/* =============================================================
   Reduced motion — kill all animation for users who opt out.
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body::before {
    background: none !important;
  }
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 640px) {
  .page {
    padding: 24px 20px 20px;
  }

  .display {
    font-size: 36px;
    line-height: 1.06;
  }

  .subhead {
    font-size: 16px;
  }

  .links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 48px;
  }

  .project-card {
    flex-wrap: wrap;
    padding: 16px;
  }

  .project-logo {
    width: 64px;
    height: 64px;
  }

  .project-logo img {
    max-width: 52px;
    max-height: 28px;
  }

  .project-arrow {
    margin-left: auto;
  }

  .dispatch {
    padding: 22px 20px 20px;
  }
}
