@font-face {
  font-family: "New Rocker";
  src: url("assets/new-rocker-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Ghastly Panic";
  src: url("assets/ghastly-panic-kramrun.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020, U+0041, U+004B, U+004D-004E, U+0052, U+0055;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --background: #090708;
  --surface: #120d0f;
  --ink: #f2e9e7;
  --muted: #c2b2b4;
  --accent: #f08390;
  --line: #39232b;
  --edge: clamp(20px, 5.4vw, 88px);
  --header-height: 72px;
  --radius: 4px;
  font-family: Manrope, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  isolation: isolate;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.65;
}

::selection { color: #fff; background: #972b40; }

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

a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

.wrap {
  width: min(100% - var(--edge) * 2, 1320px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--surface);
}

.skip:focus { transform: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0c0809ac;
  backdrop-filter: blur(7px);
}

.navigation {
  display: grid;
  min-height: var(--header-height);
  place-items: center;
}

.masthead-brand {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font: 400 clamp(2rem, 3.8vw, 2.625rem)/1 "New Rocker", Georgia, serif;
  text-decoration: none;
}

.masthead-brand:hover { color: var(--accent); }

.masthead-brand-canvas {
  position: absolute;
  inset: -8px -20px;
  width: calc(100% + 40px);
  height: calc(100% + 16px);
  visibility: hidden;
  pointer-events: none;
}

.has-masthead-shader .masthead-brand-canvas { visibility: visible; }
.has-masthead-shader .masthead-brand-text { opacity: 0; }

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .has-masthead-shader .masthead-brand-canvas { visibility: hidden; }
  .has-masthead-shader .masthead-brand-text { opacity: 1; }
}

.navigation-links {
  display: flex;
  gap: clamp(14px, 4vw, 44px);
  align-items: center;
  margin-left: auto;
  white-space: nowrap;
}

.navigation-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.navigation-links a:hover, .navigation-links .navigation-contact { color: var(--ink); }
.navigation-links .navigation-contact:hover { color: var(--accent); }

.hero {
  min-height: clamp(560px, 78svh, 850px);
  display: grid;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #0e080b url("assets/strange-red-particles.webp") 66% center / cover no-repeat;
}

.pixel-canvas {
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  image-rendering: pixelated;
}

.site-backdrop.has-pixels .pixel-canvas { visibility: visible; }

.site-backdrop video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #090708dd 0%, #0907088f 29%, #0907080e 74%, #09070830 100%),
    linear-gradient(0deg, #0907085c 0%, transparent 42%, transparent 74%, #09070838 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  padding-block: 80px 110px;
}

.hero-content { padding-bottom: 14px; }

.hero-title-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: clamp(8px, 2vw, 32px);
  align-items: center;
}

.hero-heart {
  position: relative;
  justify-self: center;
  width: min(100%, clamp(230px, 35vw, 520px));
  height: 0;
  pointer-events: none;
}

.hero-heart canvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  transform: translateY(-47%);
  visibility: hidden;
}

.hero-heart.has-heart canvas { visibility: visible; }

.hero-title {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 2px 0 14px;
  font: 400 clamp(7.5rem, 24vw, 21rem)/1.39 "Ghastly Panic", "Barlow Condensed", sans-serif;
  white-space: nowrap;
}

.hero-title-text {
  display: block;
  transform: translateY(-0.15em);
  color: #f7dedb;
  background: linear-gradient(180deg, #f8ece5 35%, #efbbb9 65%, #ca3c56 93%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0 #661423);
}

.title-shader {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  visibility: hidden;
  pointer-events: none;
}

.has-title-shader .title-shader { visibility: visible; }
.has-title-shader .hero-title-text { opacity: 0; }

.hero-description {
  max-width: 33ch;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.skills-panel {
  border-radius: 7px;
  background: #10080dbb;
  box-shadow: 0 8px 26px #0502055c;
  position: relative;
  isolation: isolate;
  width: min(100%, 26rem);
  margin: 0 0 32px;
  user-select: none;
}

.skills-panel::before,
.skills-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

.skills-panel::before {
  background: radial-gradient(ellipse 96px 46px at var(--light-x, 50%) var(--light-y, 50%), #be284a99, transparent);
  opacity: var(--light-strength, 0);
  content: "";
}

.skills-panel.has-shader::before { visibility: hidden; }
.skills-canvas { visibility: hidden; }
.skills-panel.has-shader .skills-canvas { visibility: visible; }

.hero-skills {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
}

.skill-key {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.skill-key:focus-visible {
  outline: 0;
  box-shadow: inset 0 -2px var(--accent);
}

.skill-key img {
  display: block;
  width: clamp(21px, 2.9vw, 27px);
  height: auto;
  filter: drop-shadow(0 1px 3px #090708d9);
  pointer-events: none;
  transition: transform 230ms cubic-bezier(.2, .75, .3, 1), filter 220ms ease;
}

.skill-key.is-active img {
  transform: translateY(-2px) scale(1.12);
  filter: brightness(1.18) drop-shadow(0 2px 6px #eb48647a);
}

.skill-key:active img { transform: translateY(1px) scale(.96); }

.skills-label {
  position: absolute;
  top: calc(100% + 4px);
  left: clamp(37px, var(--skill-label-x, 50%), calc(100% - 37px));
  padding: 1px 8px;
  border-radius: 4px;
  background: #140b0fe8;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -3px);
  transition: opacity 160ms ease, transform 180ms ease;
}

.skills-panel.has-label .skills-label {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 430px) {
  .skills-panel { width: min(100%, 14.5rem); }
  .hero-skills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .skill-key img, .skills-label { transition: none; }
  .skill-key.is-active img, .skill-key:active img { transform: none; }
}

@media (forced-colors: active) {
  .skill-key:focus-visible { outline: 2px solid Highlight; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid #d06073;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.button-quiet {
  border-color: #b86172;
  background: #39131d80;
  backdrop-filter: blur(7px);
}
.button-quiet:hover { background: #641c31c7; }

.projects { padding: clamp(52px, 8vw, 116px) 0 clamp(36px, 6vw, 90px); }

.section-head { margin-bottom: clamp(46px, 7vw, 98px); }
.section-head h2 { max-width: 13ch; }

h2 {
  font-size: clamp(2.15rem, 5.7vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 800;
  text-shadow: 0 2px 20px #090708d9;
}

.project {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  grid-template-areas: "info visual";
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
}

.cleanframe-project + .project { margin-top: clamp(58px, 9vw, 126px); }

.project-secondary {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "visual info";
  margin-left: clamp(0px, 6vw, 84px);
}

.project-info {
  grid-area: info;
  min-width: 0;
  position: relative;
  isolation: isolate;
}

.project-info::before {
  position: absolute;
  z-index: -1;
  inset: -26px -32px;
  background: radial-gradient(ellipse at center, #090708a6 26%, transparent 76%);
  content: "";
  pointer-events: none;
}

.project-type {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 750;
}

.project-info h3 {
  margin: 6px 0 12px;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.project-info > p:not(.project-type) {
  max-width: 37ch;
  color: var(--muted);
}

.cleanframe-project {
  container-type: inline-size;
  padding: clamp(16px, 3.8vw, 52px);
  border-radius: 7px;
  background: #10080dbb;
  box-shadow: 0 8px 26px #0502055c;
}

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

.cleanframe-title {
  margin-block: clamp(12px, 2.3cqi, 26px) clamp(16px, 2.5cqi, 30px);
  color: var(--ink);
  font-size: max(2rem, 19cqi);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.077em;
}

.cleanframe-title span {
  display: block;
  color: #ef9aa8;
  background: linear-gradient(175deg, #f8d4d7 6%, #e6879c 93%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cleanframe-description {
  max-width: 31ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.1cqi, 1.45rem);
  line-height: 1.5;
}

.cleanframe-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(28px, 5cqi, 60px);
  margin: clamp(20px, 3.8cqi, 44px) 0 0;
}

.cleanframe-stack dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: clamp(1rem, 1.5cqi, 1.15rem);
  font-weight: 800;
}

.cleanframe-platform img,
.cleanframe-stack img {
  display: block;
  flex: 0 0 auto;
}

.cleanframe-stack dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(0.875rem, 1.3cqi, 1rem);
  line-height: 1.5;
}

.project-visual {
  grid-area: visual;
  min-width: 0;
}

.project-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #c2839060;
  border-radius: 7px;
  box-shadow: 0 18px 56px #050205a0;
}

.bots {
  padding-block: clamp(56px, 8vw, 118px) clamp(30px, 7vw, 90px);
}

.bots .section-head {
  margin-bottom: clamp(28px, 5vw, 58px);
}

.bots-subtitle {
  margin-block-start: clamp(12px, 1.4vw, 16px);
  color: var(--muted);
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  line-height: 1.5;
}

.bots-discord-mark {
  position: relative;
  display: inline-block;
  width: 0.76em;
  margin-inline-end: -0.07em;
  color: transparent;
  forced-color-adjust: none;
}

.bots-discord-mark::after {
  content: "";
  position: absolute;
  inset-inline: 0.025em;
  top: 61%;
  height: 0.66em;
  background: var(--accent);
  mask: url("assets/discord.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.bot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 6vw, 84px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bot-entry {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 22px 4px 23px;
  border-top: 1px solid #9a56644f;
  background: linear-gradient(90deg, #090708b3, #0907084d);
}

.bot-entry h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.16rem, 2.3vw, 1.55rem);
  line-height: 1.24;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.bot-entry p { max-width: 54ch; color: var(--muted); }

.bot-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
}

.bot-tech li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.bot-tech img { width: 18px; height: 18px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .bot-entry {
    position: relative;
    isolation: isolate;
  }

  .bot-entry::before {
    content: "";
    position: absolute;
    inset: 3px 4px 0;
    z-index: -1;
    pointer-events: none;
    background:
      repeating-linear-gradient(90deg, transparent 0 3px, #10070b65 3px 7px),
      repeating-linear-gradient(transparent 0 3px, #10070b54 3px 7px),
      radial-gradient(ellipse at 29% 42%, #9d2a4b70, #59132740 46%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 73% at 33% 48%, #000 14%, transparent 76%);
    opacity: 0;
    transition: opacity 240ms ease-out;
  }

  .bot-entry:hover::before { opacity: 1; }
}

@media (forced-colors: active) {
  .bots-discord-mark::after { background: CanvasText; }
}

.contact {
  display: grid;
  justify-items: center;
  padding-block: clamp(60px, 10vw, 146px) clamp(76px, 12vw, 174px);
}

.contact-methods {
  width: min(100%, 28rem);
  padding: clamp(18px, 4vw, 36px) clamp(14px, 4vw, 32px);
  border-radius: var(--radius);
  background: linear-gradient(155deg, #190b10c7, #090708ab 64%);
}

.contact-methods h2 {
  margin-bottom: clamp(20px, 4vw, 32px);
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  text-align: center;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  min-height: 74px;
  padding: 12px clamp(4px, 1.3vw, 16px);
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.contact-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 29% 50%, #982a484d, transparent 66%);
  opacity: 0;
}

.contact-action:is(:hover, :focus-visible)::before { opacity: 1; }
.contact-action:focus-visible { outline: none; }
.contact-action:focus-visible .contact-account strong {
  text-decoration: underline 2px currentColor;
  text-underline-offset: 0.22em;
}

.contact-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.contact-icon {
  width: clamp(24px, 3vw, 32px);
  aspect-ratio: 1;
  background: var(--accent);
  mask: var(--contact-icon) center / contain no-repeat;
}

.contact-icon-discord { --contact-icon: url("assets/discord.svg"); }
.contact-icon-telegram { --contact-icon: url("assets/telegram.svg"); }
.contact-icon-github { --contact-icon: url("assets/github.svg"); }

.contact-account { line-height: 1.3; }
.contact-account strong { font-size: clamp(1.05rem, 2vw, 1.27rem); }

.contact-handle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  user-select: text;
}

.contact-cue {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.contact-arrow { width: 21px; height: 21px; }

.contact-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .contact-action::before { transition: opacity 180ms ease-out; }
}

@media (forced-colors: active) {
  .contact-icon { background: currentColor; forced-color-adjust: none; }
}

@media (max-width: 760px) {
  .project, .project-secondary {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "info" "visual";
    margin-inline: 0;
  }
  .project-info::before { inset-inline: -14px; }
}

@media (max-width: 520px) {
  :root { --header-height: 62px; }
  .navigation-links { gap: 10px; }
  .navigation-links a { font-size: 0.8125rem; }
  .hero { min-height: clamp(495px, 74svh, 650px); }
  .hero-content { padding-bottom: 0; }
  .site-backdrop::after {
    background: linear-gradient(90deg, #09070862, #09070822),
      linear-gradient(0deg, #0907085c, transparent 38%, #09070836 100%);
  }
  .hero-inner { padding-block: 64px 108px; }
  .hero-title { margin-block: 5px 12px; }
  .hero-heart { width: min(100%, 38vw); }
  h2 { letter-spacing: -0.055em; }
  .hero-description { max-width: 29ch; margin-bottom: 22px; }
  .bot-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 359px) {
  :root { --edge: 16px; }
  .navigation-links { gap: 7px; }
  .navigation-links a { font-size: 0.75rem; }
}

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

@media (forced-colors: active) {
  .cleanframe-title span {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .hero-title .hero-title-text {
    opacity: 1;
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
  }
  .hero-title .title-shader { visibility: hidden; }
}
