/* =========================================================
   Omen DEV — dark minimal, pink accents
   ========================================================= */

:root {
  --bg: #16121c;
  --text: #f5eef3;
  --muted: #9d909f;
  --line: rgba(245, 238, 243, 0.11);
  --pink: #ff5c9d;
  --pink-strong: #ff3d8a;
  --pink-soft: rgba(255, 92, 157, 0.14);

  --shell: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono",
    Consolas, "Liberation Mono", monospace;

  color-scheme: dark;
}

/* ---------- reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--pink);
  color: #180a11;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- ambient layers ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 88% -8%, rgba(255, 92, 157, 0.11), transparent 62%),
    radial-gradient(46% 38% at -6% 104%, rgba(126, 92, 255, 0.07), transparent 64%);
}

.glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 92, 157, 0.12), transparent 62%);
  transition: opacity 0.6s var(--ease);
  will-change: transform;
}

.glow.is-on {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .glow {
    display: none;
  }
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  width: 100%;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.section {
  padding-block: clamp(52px, 8vw, 92px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--pink);
  color: #180a11;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 12px;
}

/* ---------- typography bits ---------- */

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  flex: none;
  width: 16px;
  height: 1px;
  background: var(--pink);
  opacity: 0.85;
}

.dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 92, 157, 0.12);
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .header {
    background: rgba(22, 18, 28, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
  }
}

.header.is-scrolled {
  background: rgba(22, 18, 28, 0.88);
  border-bottom-color: var(--line);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand__mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 14px rgba(255, 92, 157, 0.65);
}

.brand__name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand__tag {
  padding: 1px 6px 2px;
  border: 1px solid rgba(255, 92, 157, 0.4);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--pink);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
}

.nav a {
  position: relative;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}

.menu-btn:hover,
.menu-btn:active {
  border-color: rgba(255, 92, 157, 0.55);
}

.menu-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-btn span:nth-child(1) {
  transform: translate(-50%, -3.5px);
}

.menu-btn span:nth-child(2) {
  transform: translate(-50%, 3.5px);
}

/* ---------- mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(22, 18, 28, 0.98);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu[open] {
  display: flex;
  flex-direction: column;
  animation: menuIn 0.3s var(--ease);
}

.menu::backdrop {
  background: rgba(8, 7, 10, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  flex: none;
  padding-top: env(safe-area-inset-top);
}

.menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.menu__close:hover,
.menu__close:active {
  border-color: var(--pink);
  color: var(--pink);
}

.menu__nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell);
  margin: auto;
  padding: 28px var(--gutter);
}

.menu__nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.9rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.menu__nav a span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--pink);
}

.menu__nav a:active {
  color: var(--pink);
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 22px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu__foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.menu__foot a:hover {
  color: var(--pink);
  border-color: var(--pink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(36px, 6vh, 72px);
  padding-bottom: clamp(40px, 7vh, 76px);
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -18%;
  width: min(86vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 92, 157, 0.15), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.66fr);
  grid-template-rows: auto auto;
  column-gap: clamp(28px, 6vw, 76px);
  row-gap: clamp(22px, 4vw, 34px);
  align-items: start;
}

.hero__text {
  grid-column: 1;
  grid-row: 1;
}

.hero h1 {
  max-width: 15ch;
  margin-top: 18px;
  font-size: clamp(2.5rem, 6.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
  text-wrap: balance;
}

.hero h1 em,
.contact__title em {
  font-style: normal;
  color: var(--pink);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 em,
  .contact__title em {
    background: linear-gradient(94deg, #ff9ac5 0%, #ff5c9d 48%, #ff2f7f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.lede {
  max-width: 46ch;
  margin-top: 22px;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 92, 157, 0.55);
  color: var(--pink);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #180a11;
}

.btn--primary:hover {
  background: var(--pink-strong);
  border-color: var(--pink-strong);
  color: #180a11;
  box-shadow: 0 14px 34px -14px rgba(255, 92, 157, 0.8);
}

.btn svg {
  flex: none;
}

/* photo */

.hero__photo {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 400px;
}

.hero__photo::before {
  content: "";
  position: absolute;
  inset: -8% -10% -4%;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 34%, rgba(255, 92, 157, 0.26), transparent 62%);
  pointer-events: none;
}

.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 92, 157, 0.2);
  border-radius: 26px;
  background: #1c1724;
  box-shadow: 0 34px 80px -42px rgba(0, 0, 0, 0.95);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 38%;
  background: linear-gradient(180deg, rgba(22, 18, 28, 0) 0%, rgba(22, 18, 28, 0.55) 100%);
  pointer-events: none;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* quote */

.hero__quote {
  max-width: 52ch;
  margin-top: 30px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 92, 157, 0.5);
}

.quote__text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #c4b7c6;
  transition: opacity 0.25s var(--ease);
}

.quote__author {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote__author[hidden] {
  display: none;
}

.quote__text.is-swapping {
  opacity: 0;
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
}

.ticker__group span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker__group span::after {
  content: "·";
  margin-inline: 30px;
  color: var(--pink);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- section head ---------- */

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.sec-head h2 {
  margin-top: 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

/* ---------- project rows ---------- */

.rows {
  border-top: 1px solid var(--line);
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 24px;
  grid-template-areas: "num title tags arrow";
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 68px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  background: linear-gradient(90deg, rgba(255, 92, 157, 0.075), transparent 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

a.row:hover::before,
a.row:focus-visible::before {
  opacity: 1;
}

a.row:active::before {
  opacity: 1;
}

.row__num {
  grid-area: num;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

a.row:hover .row__num,
a.row:focus-visible .row__num,
a.row:active .row__num {
  color: var(--pink);
}

.row__title {
  grid-area: title;
  min-width: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  transition: transform 0.3s var(--ease);
}

a.row:hover .row__title,
a.row:focus-visible .row__title {
  transform: translateX(5px);
}

.row__tags {
  grid-area: tags;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.row__arrow {
  grid-area: arrow;
  display: flex;
  justify-content: flex-end;
  color: var(--muted);
  transition: color 0.25s var(--ease), transform 0.3s var(--ease);
}

a.row:hover .row__arrow,
a.row:focus-visible .row__arrow,
a.row:active .row__arrow {
  color: var(--pink);
  transform: translate(2px, -2px);
}

.row--soon .row__title {
  color: #c9bccb;
}

.row--soon .row__arrow {
  opacity: 0.45;
}

.chip {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 92, 157, 0.38);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  vertical-align: 2px;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: start;
}

.about__body {
  max-width: 56ch;
  text-wrap: pretty;
}

.about__lead {
  font-size: clamp(1.12rem, 2.1vw, 1.4rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about__body p + p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- contact ---------- */

.section--contact {
  padding-top: 0;
  padding-bottom: clamp(64px, 11vw, 104px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  column-gap: clamp(28px, 6vw, 76px);
  row-gap: 32px;
  align-items: center;
}

.contact__title {
  margin-top: 16px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}

.contact__text .lede {
  margin-top: 18px;
}

.contact__text .actions {
  margin-top: 28px;
}

.contact__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-self: end;
  width: 100%;
  max-width: 330px;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid rgba(255, 92, 157, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 78% 0%, rgba(255, 92, 157, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.015);
  text-align: center;
  box-shadow: 0 30px 70px -44px rgba(0, 0, 0, 0.95);
}

.contact__avatar {
  width: 112px;
  height: 112px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 92, 157, 0.42);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 7px rgba(255, 92, 157, 0.07);
}

.contact__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.contact__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact__handle {
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.contact__note {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 24ch;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__note .dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

/* ---------- mobile telegram button ---------- */

.fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink);
  color: #180a11;
  text-decoration: none;
  box-shadow: 0 14px 34px -12px rgba(255, 92, 157, 0.75);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.fab.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fab.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
}

.fab:active {
  transform: scale(0.94);
}

/* ---------- footer ---------- */

.footer {
  padding-block: 22px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer a {
  padding: 8px 0;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer a:hover {
  color: var(--pink);
}

/* ---------- 404 ---------- */

.nf {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding-block: 64px;
}

.nf__code {
  font-family: var(--mono);
  font-size: clamp(4rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--pink);
}

.nf h1 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: -0.04em;
}

.nf p {
  max-width: 44ch;
  margin-top: 12px;
  color: var(--muted);
}

.nf p.nf__code {
  max-width: none;
  margin-top: 6px;
  color: var(--pink);
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
}

.js .reveal.is-in {
  opacity: 1;
  animation: rise 0.7s var(--ease) var(--d, 0ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- media ---------- */

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* вузький десктоп і планшет: тримаємо фото поруч із текстом */
@media (min-width: 641px) and (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 34vw, 320px);
    column-gap: clamp(20px, 3.4vw, 34px);
  }

  .hero__photo {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 5.6vw, 3.6rem);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 32vw, 300px);
    column-gap: clamp(20px, 3.4vw, 34px);
  }

  .contact__card {
    max-width: none;
    padding: 24px;
  }

  .contact__avatar {
    width: 96px;
    height: 96px;
  }

  .contact__title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 640px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 26px;
  }

  .contact__card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    justify-self: stretch;
    gap: 16px;
    width: 100%;
    max-width: none;
    padding: 18px 20px;
    border-radius: 20px;
    text-align: left;
  }

  .contact__avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
    box-shadow: 0 0 0 5px rgba(255, 92, 157, 0.07);
  }

  .contact__meta {
    align-items: flex-start;
    gap: 4px;
  }

  .contact__note {
    max-width: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .hero__text {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__photo {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    max-width: 18ch;
  }
}

/* широкий телефон: фото-банер, щоб не було порожнечі збоку */
@media (min-width: 521px) and (max-width: 640px) {
  .portrait {
    aspect-ratio: 4 / 3.8;
  }
}

@media (max-width: 760px) {
  .js .nav {
    display: none;
  }

  .js .menu-btn {
    display: block;
  }

  .fab {
    display: flex;
  }

  /* без JS меню лишається доступним у шапці */
  html:not(.js) .nav {
    gap: 14px;
  }

  html:not(.js) .nav a {
    font-size: 0.8rem;
  }

  html:not(.js) .header__in {
    height: auto;
    min-height: 64px;
    padding-block: 10px;
    row-gap: 6px;
    flex-wrap: wrap;
  }

  html:not(.js) .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .header__in {
    height: 68px;
  }

  .brand {
    min-height: 48px;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero__photo::before {
    display: none;
  }

  .row {
    grid-template-columns: 30px minmax(0, 1fr) 44px;
    grid-template-areas:
      "num title arrow"
      "num tags arrow";
    row-gap: 5px;
    min-height: 80px;
    padding-block: 18px;
  }

  .row__tags {
    font-size: 0.65rem;
  }

  .row__arrow {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  a.row:active .row__arrow {
    border-color: var(--pink);
  }

  .row--soon .row__arrow {
    border-color: transparent;
  }

  .row::before {
    left: calc(var(--gutter) * -1 + 8px);
    right: calc(var(--gutter) * -1 + 8px);
  }

  .footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    max-width: none;
  }

  .hero__photo {
    max-width: none;
  }

  .portrait {
    aspect-ratio: 4 / 4.85;
    border-radius: 22px;
  }

  .lede {
    font-size: 0.98rem;
  }

  .actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 14px;
  }

  .about__lead {
    font-size: 1.1rem;
  }

  .footer__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
  }

  .ticker__track {
    animation: none;
  }

  .glow {
    display: none;
  }

  .dot {
    animation: none;
  }
}
