@font-face {
  font-family: Michroma;
  src: url("../assets/fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Anta;
  src: url("../fonts/Anta/Anta-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --surface: #030612;
  --text: #f6f7fc;
  --muted: #c3c9db;
  --cyan: #04b9ed;
  --orange: #ff581f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; vertical-align: middle; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #8cddff; outline-offset: 7px; border-radius: 3px; }
::selection { color: #fff; background: #7d2e91; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: #fff;
  color: #030612;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.atmosphere {
  position: absolute;
  inset: 0 0 auto;
  height: max(100vh, 1024px);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--surface);
}
.atmosphere__canvas, .atmosphere__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.atmosphere__canvas { opacity: 0; transition: opacity 180ms; }
.atmosphere__canvas.is-ready { opacity: 1; }
.atmosphere__shade {
  background: linear-gradient(90deg, rgb(3 6 18 / 25%), transparent 65%), linear-gradient(180deg, transparent 62%, #030612 99%);
}
.page-shell { width: min(100% - 12.8vw, 1440px); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 144px;
  gap: 28px;
}
.brand { display: block; width: 225px; margin-left: -9px; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }

.hero { min-height: 560px; padding-top: 47px; padding-bottom: 92px; }
h1 {
  font-family: Michroma, sans-serif;
  font-size: clamp(48px, 4.7vw, 75px);
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 0 -5px;
  text-shadow: 0 2px 22px rgb(3 6 18 / 45%);
}
.hero__line { display: block; }
.hero__line--primary { color: #ff2b3f; }
.hero__line--accent { color: #168bff; }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.project { display: block; border-top: 2px solid; padding: 20px 0; min-width: 0; transition: background 250ms; }
.project--blue { border-color: #00aee8; --project-glow: rgb(50 95 255 / 48%); }
.project--orange { border-color: #fa5427; --project-glow: rgb(255 12 18 / 48%); }
.project__brand { display: flex; align-items: center; justify-content: center; height: 100px; max-width: 500px; margin-inline: auto; position: relative; isolation: isolate; }
.project--blue .project__brand { max-width: 480px; }
.project__aurora {
  position: absolute;
  left: -12px;
  top: -24px;
  width: calc(100% + 24px);
  height: calc(100% + 48px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}
.project:is(:hover, :focus-visible) .project__aurora { opacity: 1; }
.project--blue .project__aurora { filter: brightness(1.05); }
.project__logo { width: 100%; height: auto; object-fit: contain; object-position: center; transition: filter 350ms, transform 350ms; }
.project__logo--ns { max-width: 480px; }
.project__logo--zs { max-width: 500px; }
.project:is(:hover, :focus-visible) .project__logo { filter: drop-shadow(0 1px 2px rgb(0 3 12 / 95%)) drop-shadow(0 0 5px var(--project-glow)); transform: translateY(-3px); }

.site-footer { display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 27px; border-top: 1px solid #242936; padding: 27px 0 34px; }
.email { font-family: Anta, sans-serif; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 180ms; }
.email:hover { color: #fff; }

@media (min-width: 1600px) {
  .hero { padding-top: 70px; padding-bottom: 110px; }
  .site-header { min-height: 160px; }
  .site-footer { margin-top: 55px; }
}
@media (max-width: 1000px) {
  .atmosphere__shade { background: linear-gradient(90deg, rgb(3 6 18 / 62%), rgb(3 6 18 / 48%) 45%, transparent 78%), linear-gradient(180deg, transparent 62%, #030612 99%); }
  .page-shell { width: calc(100% - 80px); }
  .site-header { min-height: 126px; }
  .brand { width: 205px; }
  .hero { min-height: 540px; padding-top: 55px; padding-bottom: 90px; }
  h1 { font-size: clamp(37px, 5vw, 50px); }
  .projects { gap: 30px; }
  .project__brand { height: 76px; }
  .email { font-size: 12px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 24px; }
  .page-shell { width: calc(100% - 44px); }
  .atmosphere { height: 880px; }
  .atmosphere__shade { background: linear-gradient(90deg, rgb(3 6 18 / 55%), rgb(3 6 18 / 20%)), linear-gradient(180deg, transparent 35%, #030612 94%); }
  .site-header { min-height: 106px; gap: 12px; }
  .brand { width: 169px; margin-left: -7px; }
  .hero { min-height: 440px; padding-top: 66px; padding-bottom: 80px; }
  h1 { font-size: clamp(27px, 8.1vw, 46px); line-height: 1.2; letter-spacing: -0.035em; margin: 0 0 0 -2px; }
  .projects { grid-template-columns: 1fr; gap: 13px; }
  .project { padding: 16px 0 22px; }
  .project__brand { height: 65px; }
  .project__logo--ns { max-width: 440px; }
  .project__logo--zs { max-width: 450px; }
  .site-footer { margin-top: 29px; padding-top: 24px; padding-bottom: 23px; }
  .email { width: 100%; font-size: 13px; letter-spacing: 0.13em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .project:is(:hover, :focus-visible) .project__logo { transform: none; }
}
