/* Main edit points: change these variables to adjust the whole site. */
:root {
  --bg: #05070d;
  --panel: #0b1220;
  --panel-soft: rgba(11, 18, 32, 0.78);
  --border: rgba(83, 210, 255, 0.2);
  --border-strong: rgba(83, 210, 255, 0.44);
  --text: #eef7ff;
  --muted: #9fb1c5;
  --accent: #53d2ff;
  --accent-strong: #2f8cff;
  --accent-pink: #ff4fd8;
  --glass: rgba(11, 18, 32, 0.64);
  --max-width: 1080px;
  --radius: 8px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, rgba(255, 79, 216, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 10%, rgba(83, 210, 255, 0.13), transparent 26rem),
    linear-gradient(180deg, rgba(47, 140, 255, 0.1), transparent 24rem),
    var(--bg);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.enter-active {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(83, 210, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 210, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 79, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 216, 0.04) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 168px 168px, 168px 168px;
  opacity: 0.48;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 78%);
  animation: gridMove 13s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(83, 210, 255, 0.055) 39%, transparent 42% 100%),
    linear-gradient(65deg, transparent 0 55%, rgba(255, 79, 216, 0.045) 56%, transparent 59% 100%);
  opacity: 0.7;
  animation: gridWash 8s ease-in-out infinite alternate;
}

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

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  color: #00111f;
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: #00111f;
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 7, 13, 0.38);
  backdrop-filter: blur(20px);
  transition: opacity 360ms ease, visibility 360ms ease;
}

.enter-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.enter-screen__button {
  position: relative;
  width: min(100%, 430px);
  min-height: 150px;
  overflow: hidden;
  padding: 2rem;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(83, 210, 255, 0.06) 42%, rgba(11, 18, 32, 0.78)),
    rgba(11, 18, 32, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -30px 60px rgba(0, 0, 0, 0.22),
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 50px rgba(83, 210, 255, 0.12);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transform: perspective(900px) rotateX(4deg) translateZ(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: glassFloat 4.8s ease-in-out infinite;
}

.enter-screen__button::before {
  position: absolute;
  inset: -45% auto -45% -75%;
  width: 62%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: rotate(18deg);
  animation: glassShine 4.2s ease-in-out infinite;
}

.enter-screen__button:hover,
.enter-screen__button:focus-visible {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -30px 60px rgba(0, 0, 0, 0.2),
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 70px rgba(83, 210, 255, 0.24);
  transform: perspective(900px) rotateX(0deg) translateY(-4px) translateZ(18px);
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(5, 7, 13, 0.78);
  border-bottom: 1px solid rgba(83, 210, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 800;
}

.brand__mark {
  width: 34px;
  height: 34px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 0 24px rgba(83, 210, 255, 0.18);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a,
.nav__links button {
  position: relative;
  overflow: hidden;
  padding: 0.72rem 0.85rem;
  color: var(--muted);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(83, 210, 255, 0.045) 46%, rgba(11, 18, 32, 0.3)),
    rgba(11, 18, 32, 0.26);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transform: perspective(700px) translateZ(0);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav__links a::before,
.nav__links button::before,
.button::before,
.simple-card--button::before {
  position: absolute;
  inset: -60% auto -60% -80%;
  width: 58%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: rotate(20deg);
  transition: transform 520ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a.is-active,
.nav__links button:hover,
.nav__links button:focus-visible,
.nav__links button.is-active {
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(83, 210, 255, 0.1) 42%, rgba(11, 18, 32, 0.48)),
    rgba(83, 210, 255, 0.09);
  border-color: rgba(83, 210, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(83, 210, 255, 0.12);
  transform: perspective(700px) rotateX(7deg) translateY(-2px) translateZ(12px);
  outline: none;
}

.nav__links a:hover::before,
.nav__links a:focus-visible::before,
.nav__links button:hover::before,
.nav__links button:focus-visible::before,
.button:hover::before,
.button:focus-visible::before,
.simple-card--button:hover::before,
.simple-card--button:focus-visible::before {
  transform: translateX(330%) rotate(20deg);
}

.nav__toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.page {
  width: min(100% - 2rem, var(--max-width));
  min-height: calc(100vh - 148px);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
  animation: pageIn 520ms ease both;
}

.tab-panels {
  position: relative;
}

.tab-panel {
  width: 100%;
}

.tab-panel.is-active {
  animation: tabFadeDown 360ms ease both;
}

.tab-panel.is-exiting {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  pointer-events: none;
  animation: tabFadeUp 240ms ease both;
}

.page--home {
  display: grid;
  align-content: center;
  gap: clamp(2rem, 5vw, 3rem);
}

.page--home .overview-grid {
  margin-top: clamp(3.5rem, 9vw, 7rem);
}

.hero,
.page-heading {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.lead,
.content-panel p,
.simple-card p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.lead {
  max-width: 680px;
  margin: 1.4rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  overflow: hidden;
  padding: 0 1.05rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(83, 210, 255, 0.065) 46%, rgba(11, 18, 32, 0.76)),
    rgba(11, 18, 32, 0.76);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -18px 34px rgba(0, 0, 0, 0.18),
    0 16px 34px rgba(0, 0, 0, 0.26);
  transform: perspective(800px) translateZ(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 34px rgba(0, 0, 0, 0.16),
    0 22px 44px rgba(0, 0, 0, 0.34),
    0 0 36px rgba(83, 210, 255, 0.15);
  transform: perspective(800px) rotateX(6deg) translateY(-4px) translateZ(16px);
  outline: none;
}

.button--primary {
  color: #00111f;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.45), rgba(140, 233, 255, 0.82) 35%, rgba(47, 140, 255, 0.72)),
    linear-gradient(135deg, var(--accent), #8ce9ff);
  border-color: transparent;
}

.overview-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.overview-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.overview-grid--home {
  margin-top: clamp(3.5rem, 9vw, 7rem);
}

.card-grid {
  margin-top: 2.5rem;
}

.simple-card,
.content-panel,
.skill-item {
  position: relative;
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.simple-card {
  display: block;
  min-height: 220px;
  overflow: hidden;
  padding: 1.15rem;
  color: var(--text);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -30px 60px rgba(0, 0, 0, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.22);
  transform: perspective(1000px) translateZ(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.magnetic-glass {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --magnet-z: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  isolation: isolate;
  transform: perspective(1100px)
    translate3d(var(--magnet-x), var(--magnet-y), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateZ(var(--magnet-z));
  transform-style: preserve-3d;
  will-change: transform;
}

.magnetic-glass::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.68), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06) 42%, transparent 70%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 180ms ease;
}

.magnetic-glass:hover,
.magnetic-glass:focus-visible {
  --magnet-z: 28px;
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18) 36%, rgba(83, 210, 255, 0.1) 72%),
    rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -34px 70px rgba(255, 255, 255, 0.1),
    0 34px 70px rgba(0, 0, 0, 0.42),
    0 0 56px rgba(255, 255, 255, 0.22),
    0 0 38px rgba(83, 210, 255, 0.18);
}

.magnetic-glass:hover::after,
.magnetic-glass:focus-visible::after {
  opacity: 1;
}

.simple-card:hover,
.simple-card:focus-visible {
  border-color: var(--border-strong);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(83, 210, 255, 0.08) 46%, rgba(11, 18, 32, 0.76)),
    var(--panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -30px 60px rgba(0, 0, 0, 0.12),
    0 28px 60px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(83, 210, 255, 0.12);
  transform: perspective(1000px) rotateX(4deg) rotateY(-3deg) translateY(-8px) translateZ(18px);
  outline: none;
}

.simple-card.magnetic-glass:hover,
.simple-card.magnetic-glass:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18) 36%, rgba(83, 210, 255, 0.1) 72%),
    rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -34px 70px rgba(255, 255, 255, 0.1),
    0 34px 70px rgba(0, 0, 0, 0.42),
    0 0 56px rgba(255, 255, 255, 0.22),
    0 0 38px rgba(83, 210, 255, 0.18);
  transform: perspective(1100px)
    translate3d(var(--magnet-x), var(--magnet-y), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateZ(var(--magnet-z));
}

.simple-card--button {
  width: 100%;
  cursor: pointer;
}

.simple-card > span,
.skill-item span {
  display: block;
  margin-bottom: 1.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.simple-card p {
  margin: 1rem 0 0;
}

.project-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.low-emphasis {
  opacity: 0.28;
}

.content-panel {
  max-width: 800px;
  margin-top: 2.5rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.content-panel p {
  margin: 0;
}

.content-panel p + p {
  margin-top: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.tags span {
  padding: 0.35rem 0.55rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 800px;
  margin-top: 2.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 1rem;
}

.skill-item span {
  margin-bottom: 0;
}

.skill-item strong {
  font-size: 1.05rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 880px;
  margin-top: 2.5rem;
}

.settings-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(83, 210, 255, 0.06) 42%, rgba(11, 18, 32, 0.74)),
    var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -28px 58px rgba(0, 0, 0, 0.13),
    0 20px 46px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.settings-card::before {
  position: absolute;
  inset: -50% auto -50% -80%;
  width: 58%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(20deg);
  animation: settingsShine 6s ease-in-out infinite;
}

.settings-card__header,
.range-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-card__header {
  margin-bottom: 2rem;
}

.settings-card__header span,
.range-control span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-card__header h2 {
  margin-top: 0.45rem;
}

.range-control strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.range-input {
  position: relative;
  width: 100%;
  height: 10px;
  margin-top: 1rem;
  appearance: none;
  background: linear-gradient(90deg, rgba(83, 210, 255, 0.42), rgba(255, 79, 216, 0.26));
  border: 1px solid rgba(83, 210, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  appearance: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(83, 210, 255, 0.75)),
    var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(83, 210, 255, 0.35), 0 8px 16px rgba(0, 0, 0, 0.35);
}

.range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(83, 210, 255, 0.75)),
    var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(83, 210, 255, 0.35), 0 8px 16px rgba(0, 0, 0, 0.35);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 62px;
  height: 34px;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.88);
  border: 1px solid rgba(159, 177, 197, 0.24);
  border-radius: 999px;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.34);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  content: "";
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(159, 177, 197, 0.72));
  border-radius: 50%;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, background 180ms ease;
}

.switch input:checked + span {
  background: rgba(83, 210, 255, 0.22);
  border-color: rgba(83, 210, 255, 0.7);
  box-shadow: inset 0 1px 8px rgba(83, 210, 255, 0.18), 0 0 24px rgba(83, 210, 255, 0.16);
}

.switch input:checked + span::after {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(83, 210, 255, 0.86));
  transform: translateX(28px);
}

.switch input:focus-visible + span,
.range-input:focus-visible {
  outline: 2px solid rgba(83, 210, 255, 0.7);
  outline-offset: 3px;
}

.footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}

.footer__notes {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 56px 56px, 56px 56px, -168px 168px, -168px 168px;
  }
}

@keyframes gridWash {
  from {
    opacity: 0.38;
    transform: translate3d(-2.5%, 0, 0);
  }
  to {
    opacity: 0.78;
    transform: translate3d(2.5%, 0, 0);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tabFadeUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-24px);
  }
}

@keyframes tabFadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glassFloat {
  0%,
  100% {
    transform: perspective(900px) rotateX(4deg) translateY(0) translateZ(0);
  }
  50% {
    transform: perspective(900px) rotateX(2deg) translateY(-8px) translateZ(10px);
  }
}

@keyframes glassShine {
  0%,
  28% {
    transform: translateX(0) rotate(18deg);
  }
  64%,
  100% {
    transform: translateX(330%) rotate(18deg);
  }
}

@keyframes settingsShine {
  0%,
  34% {
    transform: translateX(0) rotate(20deg);
  }
  72%,
  100% {
    transform: translateX(340%) rotate(20deg);
  }
}

@media (max-width: 900px) {
  .overview-grid,
  .overview-grid--three,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 66px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: grid;
    padding: 0.6rem;
    background: rgba(5, 7, 13, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .nav__links.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav__links a,
  .nav__links button {
    padding: 0.9rem;
  }

  .page {
    min-height: calc(100vh - 142px);
    padding: 3.5rem 0;
  }

  .overview-grid,
  .overview-grid--three,
  .card-grid,
  .skill-list,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 3.8rem);
  }
}

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

  .enter-screen__button,
  .nav__links a,
  .nav__links button,
  .button,
  .simple-card {
    transform: none !important;
  }
}
