:root {
  --ink: #0b1f24;
  --ink-soft: #3d5258;
  --paper: #eef3f4;
  --paper-2: #e4ecee;
  --teal: #0f766e;
  --teal-bright: #2dd4bf;
  --orange: #f97316;
  --line: rgba(11, 31, 36, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(45, 212, 191, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(249, 115, 22, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(15, 118, 110, 0.12), transparent 55%),
    linear-gradient(165deg, #f5f8f9 0%, #e8f0f2 45%, #eef2f0 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(238, 243, 244, 0.92), rgba(238, 243, 244, 0));
  backdrop-filter: blur(6px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  opacity: 0.75;
  transition: opacity 0.25s var(--ease);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 1.75rem);
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.45rem 1.85rem 0.45rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%) calc(100% - 14px) calc(50% - 2px) / 5px 5px no-repeat,
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%) calc(100% - 10px) calc(50% - 2px) / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.lang-switch select:hover,
.lang-switch select:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero-brand {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-brand-ad {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 16vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--ink) 30%, var(--teal) 70%, var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-in 1s var(--ease) both;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: brand-in 1s var(--ease) 0.12s both;
}

.hero-headline {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: brand-in 1s var(--ease) 0.22s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.15rem);
  animation: brand-in 1s var(--ease) 0.32s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: brand-in 1s var(--ease) 0.42s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #f5fafb;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.85;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  right: -6%;
  top: 12%;
  background: radial-gradient(circle at 35% 35%, rgba(45, 212, 191, 0.55), rgba(15, 118, 110, 0.08) 65%, transparent 70%);
}

.orb-b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  right: 18%;
  top: 38%;
  background: radial-gradient(circle at 40% 40%, rgba(249, 115, 22, 0.4), transparent 70%);
  animation-delay: -4s;
  animation-duration: 18s;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 36, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 35%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.projects,
.contact {
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.project-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.project-item.is-visible {
  opacity: 1;
  transform: none;
}

.project-kind {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.project-body h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.project-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.project-status {
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.contact {
  background: linear-gradient(180deg, transparent, rgba(15, 118, 110, 0.06));
}

.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.15rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-mail:hover,
.contact-mail:focus-visible {
  color: var(--teal);
  border-color: var(--teal-bright);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-18px, 24px) scale(1.06);
  }
}

@media (max-width: 720px) {
  .header-actions {
    gap: 0.65rem;
  }

  .nav {
    gap: 0.85rem;
    font-size: 0.88rem;
  }

  .lang-switch select {
    padding-inline: 0.55rem 1.7rem;
    font-size: 0.8rem;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .project-status {
    justify-self: start;
  }

  .hero {
    justify-content: center;
    padding-top: 6rem;
  }

  .orb-a {
    top: 0;
    opacity: 0.55;
  }
}

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

  .hero-brand-ad,
  .hero-brand-name,
  .hero-headline,
  .hero-lead,
  .hero-cta,
  .orb,
  .project-item {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
