/* ==========================================================================
   Hristijan Rafajlovski — portfolio
   Design system: starlit violet cosmos
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500&family=Inter:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --void-canvas: #030014;
  --midnight-surface: #060317;
  --deep-indigo: #10093a;

  /* Text */
  --lilac-white: #f4f0ff;
  --pearl: #ffffff;
  --ash: #a8a6b7;
  --fog: #918ea0;
  --steel: #54525f;
  --dusk: #72707b;

  /* Accent — the only chromatic voice */
  --lavender: #9382ff;
  --iris: #5046e4;
  --cosmic: linear-gradient(90.01deg, #e59cff 0.01%, #ba9cff 50.01%, #9cb2ff 100%);
  --aurora: linear-gradient(90deg, rgba(183,164,251,0) 0%, #b7a4fb 50%, rgba(133,98,255,0) 100%);

  /* Hairlines */
  --line: rgba(244, 240, 255, 0.08);
  --line-strong: rgba(244, 240, 255, 0.14);

  /* Type */
  --font-display: 'DM Sans', 'Aeonik', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-body-lg: 18px;
  --text-subheading: 24px;
  --text-heading-sm: 32px;
  --text-heading: 48px;
  --text-heading-lg: clamp(32px, 4.4vw, 56px);
  --text-display: clamp(38px, 6.2vw, 72px);

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 108px;

  /* Radius — 5 / 16 / 24 / 32 / 999 only */
  --radius-btn: 5px;
  --radius-card: 16px;
  --radius-block: 24px;
  --radius-badge: 32px;
  --radius-pill: 999px;

  /* Elevation — inset rim light, never drop shadows */
  --rim: inset 0 0 24px rgba(255, 255, 255, 0.04);
  --rim-strong: inset 0 0 24px rgba(255, 255, 255, 0.06);
  --rim-violet: inset 0 -7px 11px rgba(164, 143, 255, 0.12);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void-canvas);
  color: var(--lilac-white);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: 'calt' 0, 'cv10', 'liga' 0, 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;      /* medium is the brand — never bold up */
  margin: 0;
}

::selection { background: rgba(147, 130, 255, 0.32); color: var(--pearl); }

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void-canvas); }
::-webkit-scrollbar-thumb { background: #1a1140; border-radius: var(--radius-pill); border: 2px solid var(--void-canvas); }
::-webkit-scrollbar-thumb:hover { background: #2a1e5c; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  background: var(--iris);
  color: var(--pearl);
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  font-size: var(--text-body-sm);
  font-weight: 500;
}
.skip-link:focus { left: 24px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Cosmos backdrop
   Painted once, never blurred, never animated on scroll — this is what keeps
   scrolling smooth. Everything here is composited on its own layer.
   -------------------------------------------------------------------------- */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -6%, rgba(80, 70, 228, 0.30) 0%, rgba(80, 70, 228, 0) 68%),
    radial-gradient(42% 36% at 88% 16%, rgba(147, 130, 255, 0.12) 0%, rgba(147, 130, 255, 0) 70%),
    radial-gradient(46% 34% at 8% 42%, rgba(114, 96, 255, 0.10) 0%, rgba(114, 96, 255, 0) 72%);
  transform: translateZ(0);
}

.cosmos__stars { position: absolute; inset: 0; }

.star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  animation: twinkle 6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: var(--o, .5); }
  50%      { opacity: calc(var(--o, .5) * 0.28); }
}

.page { position: relative; z-index: 1; }

/* Aurora divider — transparent at the ends, violet at the centre */
.aurora-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--aurora);
  opacity: .5;
}

/* --------------------------------------------------------------------------
   Navigation — floating pill
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1060px;
  height: 52px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: none;
  transition: box-shadow .32s ease, background-color .32s ease;
}

/* The surface only appears once the page has moved. */
.nav.is-scrolled .nav__pill {
  background: rgba(6, 3, 23, 0.92);
  box-shadow: var(--rim-strong), 0 0 0 1px var(--line);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--lilac-white);
  white-space: nowrap;
  margin-right: auto;
}

.nav__links { display: flex; align-items: center; gap: 2px; }

.nav__link {
  padding: 7px 11px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 400;
  color: var(--fog);
  transition: color .2s ease;
}
.nav__link:hover { color: var(--lilac-white); }
.nav__link.is-active { color: var(--lilac-white); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-btn);
  color: var(--fog);
  transition: color .2s ease;
}
.nav__icon:hover { color: var(--lilac-white); }
.nav__icon svg { width: 17px; height: 17px; }

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: var(--radius-btn);
  color: var(--lilac-white);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle span + span { margin-top: 4px; }
.nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 82px 20px auto;
  z-index: 99;
  padding: 12px;
  border-radius: var(--radius-block);
  background: rgba(6, 3, 23, 0.97);
  box-shadow: var(--rim-strong), 0 0 0 1px var(--line-strong);
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }

.drawer a {
  padding: 13px 12px;
  border-radius: var(--radius-btn);
  font-size: var(--text-body-lg);
  color: var(--ash);
}
.drawer a:hover { color: var(--lilac-white); }
.drawer .btn { margin-top: 8px; justify-content: center; }

/* --------------------------------------------------------------------------
   Buttons — 5px radius
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn svg { width: 15px; height: 15px; flex: none; }
.btn--sm { padding: 9px 14px; font-size: var(--text-body-sm); }

.btn--primary { background: var(--iris); color: var(--pearl); }
.btn--primary:hover { background: #5f56ec; box-shadow: var(--rim-violet); }

.btn--quiet {
  background: var(--midnight-surface);
  color: var(--lilac-white);
  box-shadow: var(--rim), 0 0 0 1px var(--line);
}
.btn--quiet:hover { background: var(--deep-indigo); box-shadow: var(--rim-strong), 0 0 0 1px var(--line-strong); }

.btn__arrow { transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Text link with chevron */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lavender);
  border-radius: var(--radius-btn);
  transition: color .2s ease;
}
.link:hover { color: var(--lilac-white); }
.link svg { width: 14px; height: 14px; transition: transform .25s ease; }
.link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Section furniture — centred rhythm, one continuous canvas
   -------------------------------------------------------------------------- */

.section { padding: var(--section-gap) 0; scroll-margin-top: 96px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  background: var(--midnight-surface);
  box-shadow: var(--rim-violet), 0 0 0 1px rgba(80, 70, 228, .5);
  font-size: 13px;
  font-weight: 500;
  color: var(--lilac-white);
  margin-bottom: 24px;
}
.badge svg { width: 13px; height: 13px; color: var(--lavender); }

.section__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }

.section__title {
  font-size: var(--text-heading-lg);
  line-height: 1.14;
  letter-spacing: -0.4px;
  color: var(--lilac-white);
  margin-bottom: 18px;
}

.section__lede {
  font-size: var(--text-body-lg);
  line-height: 1.56;
  color: var(--ash);
  max-width: 620px;
  margin: 0 auto;
}

.grad {
  background: var(--cosmic);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Hero — asymmetric: copy left, proof panel right
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  align-items: center;
  min-height: 86svh;
  padding: 152px 0 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--lavender);
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.09;
  letter-spacing: -0.5px;
  color: var(--lilac-white);
  margin-bottom: 24px;
}

.hero__lede {
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  color: var(--ash);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero__lede strong { color: var(--lilac-white); font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Proof panel */
.proof {
  padding: 28px 30px;
  border-radius: var(--radius-block);
  background: var(--midnight-surface);
  box-shadow: var(--rim), 0 0 0 1px var(--line);
}

.proof__label {
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 22px;
}

.proof__list li { padding: 18px 0; box-shadow: inset 0 -1px 0 var(--line); }
.proof__list li:first-child { padding-top: 0; }
.proof__list li:last-child { padding-bottom: 0; box-shadow: none; }

.proof__num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--lilac-white);
  margin-bottom: 6px;
}

.proof__cap {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fog);
}

/* --------------------------------------------------------------------------
   Logo marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding: 32px 0;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Ambient, not a feature: the moving strip stays faint until hovered. */
.marquee__item {
  margin-right: 54px;
  opacity: .34;
  transition: opacity .3s ease, transform .3s ease;
}
.marquee__item:hover { opacity: 1; transform: translateY(-2px); }
.marquee__item img { width: 32px; height: 32px; object-fit: contain; }

@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   Feature blocks — no card surface, they float on the canvas
   -------------------------------------------------------------------------- */

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

/* Five feature blocks: flex so the incomplete last row centres itself
   instead of leaving a hole on the right. */
.grid--services { display: flex; flex-wrap: wrap; justify-content: center; }
.grid--services .feature { flex: 0 1 calc(33.333% - 11px); }

.feature { padding: 16px; }

.feature__icon { color: var(--lilac-white); margin-bottom: 18px; }
.feature__icon svg { width: 24px; height: 24px; }

.feature__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--lilac-white);
  margin-bottom: 10px;
}

.feature__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fog);
}

/* --------------------------------------------------------------------------
   Ventures
   -------------------------------------------------------------------------- */

.venture {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-block);
  background: var(--midnight-surface);
  box-shadow: var(--rim), 0 0 0 1px var(--line);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.venture:hover { background: #08051d; box-shadow: var(--rim-strong), 0 0 0 1px var(--line-strong); }

.venture__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.venture__logo {
  width: 48px;
  height: 48px;
  flex: none;
}

.venture__logo img { width: 100%; height: 100%; object-fit: contain; }

.venture__role {
  font-size: var(--text-caption);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lavender);
}

.venture__name {
  font-size: var(--text-subheading);
  line-height: 1.33;
  color: var(--lilac-white);
  margin-bottom: 6px;
}

.venture__kicker { font-size: var(--text-body-sm); color: var(--lavender); margin-bottom: 16px; }

.venture__body { font-size: 15px; line-height: 1.6; color: var(--ash); margin-bottom: 20px; }

.venture__foot { margin-top: auto; }

.venture--past .venture__role { color: var(--fog); }

.venture__body strong { color: var(--lilac-white); font-weight: 500; }

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */

.work__foot { display: flex; justify-content: center; margin-top: 40px; }

/* Spotlight: the one real, in-progress product, given room and a screenshot */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius-block);
  background: var(--midnight-surface);
  box-shadow: var(--rim), 0 0 0 1px var(--line);
  overflow: hidden;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.spotlight:hover { background: #08051d; box-shadow: var(--rim-strong), 0 0 0 1px var(--line-strong); }

.spotlight__media { padding: 28px 0 28px 28px; }

.spotlight__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--line);
}

.spotlight__body { padding: 36px 40px; }

.spotlight__kind {
  display: inline-block;
  font-size: var(--text-caption);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 14px;
}

.spotlight__title {
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: 500;
  color: var(--lilac-white);
  margin-bottom: 12px;
}

.spotlight__text {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ash);
  margin-bottom: 20px;
}

.spotlight__link { margin-top: 20px; }

.project {
  display: block;
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--midnight-surface);
  box-shadow: var(--rim), 0 0 0 1px var(--line);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.project:hover { background: #08051d; box-shadow: var(--rim-strong), 0 0 0 1px var(--line-strong); }

.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.project__kind {
  font-size: var(--text-caption);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
}

.project__arrow { color: var(--fog); transition: color .25s ease, transform .25s ease; }
.project__arrow svg { width: 15px; height: 15px; }
.project:hover .project__arrow { color: var(--lavender); transform: translate(2px, -2px); }

.project__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--lilac-white);
  margin-bottom: 10px;
}

.project__body { font-size: var(--text-body-sm); line-height: 1.6; color: var(--fog); margin-bottom: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  padding: 4px 11px;
  border-radius: var(--radius-badge);
  background: rgba(244, 240, 255, 0.04);
  box-shadow: 0 0 0 1px var(--line);
  font-size: var(--text-caption);
  color: var(--ash);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Stack — logo wall
   -------------------------------------------------------------------------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 30px 12px;
}

/* No card, no border: the logos sit straight on the canvas in their own colours. */
.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4px;
  transition: transform .25s ease;
}
.logo-tile:hover { transform: translateY(-3px); }

.logo-tile img { width: 40px; height: 40px; object-fit: contain; }

/* Marks that are black by design would vanish on this canvas. */
.logo-tile--light img,
.marquee__item--light img { filter: brightness(0) invert(1); }

/* Next.js ships as a black disc with a white N; a straight invert gives the
   official dark-mode version rather than a white blob. */
.logo-tile--invert img,
.marquee__item--invert img { filter: invert(1); }

.logo-tile span {
  font-size: var(--text-caption);
  color: var(--fog);
  text-align: center;
  line-height: 1.33;
  transition: color .25s ease;
}
.logo-tile:hover span { color: var(--lilac-white); }

.stack-note {
  margin-top: 28px;
  text-align: center;
  font-size: var(--text-body-sm);
  color: var(--fog);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 56px;
  align-items: start;
  text-align: left;
}

.about__title {
  font-size: var(--text-heading-sm);
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--lilac-white);
  margin-bottom: 22px;
}

.about__body p { font-size: 17px; line-height: 1.72; color: var(--ash); }
.about__body p + p { margin-top: 20px; }
.about__body strong { color: var(--lilac-white); font-weight: 500; }

.about__aside {
  padding: 28px;
  border-radius: var(--radius-block);
  background: var(--midnight-surface);
  box-shadow: var(--rim), 0 0 0 1px var(--line);
}

.factlist li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  box-shadow: inset 0 -1px 0 var(--line);
  font-size: var(--text-body-sm);
}
.factlist li:last-child { box-shadow: none; padding-bottom: 0; }
.factlist .key { color: var(--fog); white-space: nowrap; }
.factlist .val { color: var(--lilac-white); text-align: right; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 52px 48px;
  border-radius: var(--radius-block);
  background: var(--midnight-surface);
  box-shadow: var(--rim-strong), 0 0 0 1px var(--line);
}

.contact--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact--single .contact__socials { justify-content: center; }

.contact__title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.17;
  letter-spacing: -0.3px;
  color: var(--lilac-white);
  margin-bottom: 16px;
}

.contact__lede {
  font-size: var(--text-body);
  line-height: 1.62;
  color: var(--ash);
  margin-bottom: 28px;
}

.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

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

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-btn);
  background: rgba(244, 240, 255, 0.03);
  box-shadow: 0 0 0 1px var(--line);
  font-size: var(--text-body-sm);
  color: var(--ash);
  transition: color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.social:hover {
  color: var(--lilac-white);
  background: var(--deep-indigo);
  box-shadow: 0 0 0 1px rgba(147, 130, 255, .3);
}
.social svg { width: 16px; height: 16px; flex: none; }

/* Form */
.form { display: flex; flex-direction: column; gap: 16px; }

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

.field label {
  display: block;
  font-size: 13px;
  color: var(--fog);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: var(--radius-btn);
  background: rgba(244, 240, 255, 0.035);
  box-shadow: 0 0 0 1px var(--line);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--lilac-white);
  transition: box-shadow .2s ease, background-color .2s ease;
}

.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }

.field input::placeholder,
.field textarea::placeholder { color: var(--steel); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: rgba(244, 240, 255, 0.05);
  box-shadow: 0 0 0 1px var(--lavender);
}

.field input:user-invalid,
.field textarea:user-invalid { box-shadow: 0 0 0 1px rgba(229, 156, 255, .55); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23918ea0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
}
.field select option { background: var(--midnight-surface); color: var(--lilac-white); }

/* Spam trap — never shown, never announced */
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__submit { align-self: flex-start; margin-top: 4px; }
.form__submit[disabled] { opacity: .55; cursor: progress; }

.form__status { font-size: var(--text-body-sm); color: var(--lavender); min-height: 1px; }
.form__status.is-error { color: #e59cff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { padding: 44px 0 40px; margin-top: 96px; box-shadow: inset 0 1px 0 var(--line); }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__note { font-size: 13px; color: var(--fog); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 13px; color: var(--fog); transition: color .2s ease; }
.footer__links a:hover { color: var(--lilac-white); }

/* --------------------------------------------------------------------------
   Reveal on scroll — opacity + transform only, so it composites cheaply
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .6s cubic-bezier(.22,.7,.3,1), transform .6s cubic-bezier(.22,.7,.3,1);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .proof { max-width: 520px; }
  .contact { grid-template-columns: 1fr; gap: 40px; padding: 40px 32px; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media { padding: 24px 24px 0; }
  .spotlight__body { padding: 28px 24px 32px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--services .feature { flex: 0 1 calc(50% - 8px); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .drawer { display: flex; }
}

@media (max-width: 720px) {
  :root { --section-gap: 80px; }
  .container { padding: 0 20px; }
  .hero { min-height: 0; padding: 124px 0 72px; }
  .hero__title { max-width: 100%; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--services .feature { flex: 1 1 100%; }
  .proof { max-width: none; padding: 24px 22px; }
  .proof__num { font-size: 30px; }
  .contact { padding: 32px 22px; gap: 36px; }
  .spotlight__media { padding: 18px 18px 0; }
  .spotlight__body { padding: 24px 20px 28px; }
  .form__row { grid-template-columns: 1fr; }
  .venture { padding: 24px; }
  .about__body p { font-size: 16px; }
  .logo-wall { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .form__submit { align-self: stretch; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .cosmos, .nav, .drawer, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
