:root {
  --bg: #0b0d13;
  --bg-alt: #0f121a;
  --surface: #141824;
  --text: #e6e9f2;
  --muted: #a7b0c0;
  --primary: #6ee7ff;
  --ring: rgba(110, 231, 255, .35);
  --shadow: rgba(0, 0, 0, .35);
  --radius: 14px;
  --container: min(1120px, 92vw);
  --header-h: 72px
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #162036 0%, var(--bg) 60%) no-repeat fixed;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h)
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block
}

.container {
  width: var(--container);
  margin-inline: auto
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: .5rem;
  outline: 2px solid var(--primary)
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 9999;
  backdrop-filter: saturate(140%) blur(8px);
  background: linear-gradient(180deg, rgba(11, 13, 19, .85), rgba(11, 13, 19, .55));
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text)
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 15px
}

.brand-text {
  font-weight: 800;
  letter-spacing: .4px
}

.nav {
  display: flex;
  gap: 1.2rem;
  justify-content: center
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500
}

.nav a:hover {
  color: var(--text)
}

.lang-switch .chip {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  padding: .4rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04)
}

.lang-switch .chip.active {
  background: linear-gradient(180deg, #6ee7ff, #70b3ff);
  color: #001328;
  border: 0
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: clip
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(110%) brightness(.8) contrast(1.1);
  opacity: .35
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 40%, rgba(110, 231, 255, .28), transparent 60%), linear-gradient(180deg, rgba(11, 13, 19, .2), var(--bg) 85%);
  pointer-events: none
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 8rem 0 6rem
}

.hero-title {
  font-size: clamp(2rem, 3.5vw + 1rem, 4.25rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.02em
}

.hero-title .kicker {
  display: block;
  font-size: .9rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6rem
}

.hero-sub {
  color: var(--muted);
  max-width: 62ch;
  margin: 1rem auto 2rem
}

.hero-ctas {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  position: relative;
  isolation: isolate
}

.btn-ghost {
  background: rgba(255, 255, 255, .04)
}

.btn-primary {
  background: linear-gradient(180deg, #6ee7ff, #70b3ff);
  color: #001328;
  border: 0;
  box-shadow: 0 10px 25px -10px rgba(110, 231, 255, .55)
}

.btn-primary:hover {
  transform: translateY(-1px)
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08)
}

.chip {
  font-size: .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  padding: .35rem .6rem;
  color: var(--muted)
}

.hero-meta {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap
}

.section {
  padding: clamp(3rem, 6vw, 6rem) 0
}

.section.alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.6rem);
  margin: 0 0 .4rem
}

.muted {
  color: var(--muted)
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 2rem
}

.grid-3>.card {
  grid-column: span 4
}

@media (max-width:900px) {
  .grid-3>.card {
    grid-column: span 6
  }
}

@media (max-width:640px) {
  .grid-3>.card {
    grid-column: span 12
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 10px 25px -20px var(--shadow);
  transition: transform .35s ease, border-color .35s ease, background .35s ease
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 255, .35);
  background: linear-gradient(180deg, rgba(110, 231, 255, .08), rgba(255, 255, 255, .02))
}

.card .icon {
  width: 40px;
  height: 40px;
  opacity: .9
}

.card h3 {
  margin: .6rem 0
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-left: 0;
  list-style: none
}

.tags li {
  font-size: .8rem;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .2rem .5rem
}

.project-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(12, 1fr)
}

.project {
  grid-column: span 4;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  overflow: clip
}

@media (max-width:1024px) {
  .project {
    grid-column: span 6
  }
}

@media (max-width:640px) {
  .project {
    grid-column: span 12
  }
}

.project-media {
  display: block;
  overflow: hidden
}

.project-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease
}

.project:hover .project-media img {
  transform: scale(1.06)
}

.project-body {
  padding: 1rem
}

.actions {
  display: flex;
  gap: .6rem;
  margin-top: .6rem
}

.about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center
}

@media (max-width:900px) {
  .about {
    grid-template-columns: 1fr
  }
}

.about-media img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 45px -28px var(--shadow)
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .6rem;
  margin: 1.2rem 0
}

@media (max-width:900px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.tech {
  display: flex;
  align-items: center;
  gap: .30rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03)
}

.tech img {
  width: 18px;
  height: 18px;
  opacity: .9
}

.timeline {
  display: grid;
  gap: .5rem;
  margin-top: 1rem
}

.tl-item {
  display: flex;
  gap: .6rem;
  align-items: baseline
}

.tl-item span {
  font-variant-numeric: tabular-nums;
  color: var(--primary)
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

@media (max-width:900px) {
  .quotes {
    grid-template-columns: 1fr
  }
}

.quote {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 25px -20px var(--shadow)
}

.contact-form {
  display: grid;
  gap: .9rem;
  max-width: 720px;
  margin: 1.2rem auto 0
}

.form-field {
  display: grid;
  gap: .4rem
}

label {
  color: var(--text);
  font-weight: 600
}

input,
textarea {
  width: 100%;
  padding: .9rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring)
}

.error {
  color: #ff9aa2;
  font-size: .85rem;
  visibility: hidden;
  min-height: 1.2em
}

.btn-submit {
  overflow: hidden
}

.btn-wave {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  transform: translateX(-100%);
  background: currentColor;
  opacity: .5
}

.btn-submit:active .btn-wave {
  animation: wave 600ms ease
}

@keyframes wave {
  from {
    transform: translateX(-100%)
  }

  to {
    transform: translateX(100%)
  }
}

.form-status {
  text-align: center;
  color: var(--muted);
  min-height: 1.4em
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #0a0c12;
  padding: 1rem 0 2rem
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: .8rem
}

.footer-nav a:hover {
  color: var(--text)
}

[data-animate] {
  opacity: 0;
  transform: translateY(8px);
  will-change: transform, opacity
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
  transition: transform .7s cubic-bezier(.2, .7, 0, 1), opacity .6s ease
}

[data-animate="hero"] {
  transform: translateY(10px) scale(.98)
}

[data-animate="rise"] {
  transform: translateY(18px)
}

[data-animate="tilt"] {
  transform: rotateX(3deg) translateY(10px);
  transform-origin: 50% 100%
}

[data-animate="float-in"] {
  transform: translateY(16px) scale(.98)
}

@media (prefers-reduced-motion:reduce) {

  .btn,
  .card,
  .project-media img,
  .revealed {
    transition: none !important
  }
}

h1,
h2,
h3 {
  letter-spacing: -.01em
}

.section,
[id] {
  scroll-margin-top: calc(var(--header-h) + 8px)
}