:root {
  --bg: #050505;
  --surface: #0f0f10;
  --surface-soft: #141415;
  --text: #f3f3f3;
  --muted: #b3b3b3;
  --line: #242426;
  --line-strong: #333338;
  --white: #ffffff;
  --header-clearance: clamp(4.6rem, 9vh, 6.4rem);
  --hero-bottom-safe: max(1.5rem, env(safe-area-inset-bottom));
  --intro-fade-duration: 560ms;
  --shell-fade-duration: 560ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 10% -20%, #101012 0%, var(--bg) 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}


body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.app-shell {
  min-height: 100vh;
  min-height: 100svh;
  background-color: transparent;
}

.intro-overlay {
  display: none;
}

html.js .intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), rgba(5, 5, 5, 0.98) 62%);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--intro-fade-duration) cubic-bezier(0.22, 1, 0.36, 1), visibility 0ms linear var(--intro-fade-duration);
}

.intro-word {
  font-weight: 700;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  font-size: clamp(2.5rem, 9.5vw, 8.6rem);
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.18), 0 0 52px rgba(255, 255, 255, 0.08);
  animation: introPulse 1480ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.intro-exit .intro-overlay,
body.intro-complete .intro-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-shell {
  opacity: 1;
  transition: opacity var(--shell-fade-duration) ease;
}

html.js body.intro-pending .app-shell {
  opacity: 0;
}

html.js body.intro-exit .app-shell,
html.js body.intro-complete .app-shell {
  opacity: 1;
}

.bg-motion {
  position: fixed;
  inset: -12vh -8vw;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0);
}

.orb,
.grid-glow {
  position: absolute;
  border-radius: 999px;
  opacity: 0.18;
  will-change: transform, opacity;
}

.orb {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03) 52%, transparent 72%);
  mix-blend-mode: screen;
}

.orb-1 {
  width: min(52vw, 760px);
  aspect-ratio: 1;
  top: -14vh;
  left: -14vw;
  animation: driftA 26s ease-in-out infinite alternate;
}

.orb-2 {
  width: min(44vw, 620px);
  aspect-ratio: 1;
  top: 32vh;
  right: -10vw;
  opacity: 0.15;
  animation: driftB 30s ease-in-out infinite alternate;
}

.orb-3 {
  width: min(34vw, 500px);
  aspect-ratio: 1;
  bottom: -18vh;
  left: 26vw;
  opacity: 0.12;
  animation: driftC 34s ease-in-out infinite alternate;
}

.grid-glow {
  inset: 0;
  border-radius: 0;
  opacity: 0.1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.6), transparent 78%);
  animation: driftGrid 22s linear infinite;
}


.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(#fff 0.4px, transparent 0.4px);
  background-size: 3px 3px;
  z-index: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  width: min(1120px, 92%);
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 11, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  z-index: 40;
  isolation: isolate;
}

.logo {
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.85rem;
}

nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.is-active {
  background: var(--white);
  color: #060606;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

nav a:hover {
  color: var(--white);
}

main {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 1.2rem 0 5rem;
}

.section {
  padding: 4.8rem 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  padding-top: clamp(1.2rem, 3vh, 2.1rem);
  padding-bottom: calc(2.2rem + var(--hero-bottom-safe));
  min-height: calc(100vh - var(--header-clearance));
  min-height: calc(100svh - var(--header-clearance));
  min-height: calc(100dvh - var(--header-clearance));
  display: grid;
  align-content: center;
  gap: 1.2rem;
  overflow: visible;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #d4d4d4;
  margin: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 6.3vw, 4.8rem);
  line-height: 1.03;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  max-width: 20ch;
  line-height: 1.16;
  margin-bottom: 0;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.lead {
  color: var(--muted);
  max-width: 68ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, #121214 0%, #0f0f10 100%);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.card p {
  color: #c4c4c4;
  margin-bottom: 0;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: #141416;
}

.card.soft {
  background: #101011;
}

.profile .role {
  color: #d9d9d9;
  font-size: 0.92rem;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.process-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
  background: #0f0f10;
}

.process-list span {
  font-size: 1rem;
  font-weight: 600;
  color: #f7f7f7;
}

.process-list h3 {
  margin-bottom: 0.2rem;
}

.process-list p {
  margin-bottom: 0;
  color: #c5c5c5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 220ms ease;
}

.btn-primary {
  background: var(--white);
  color: #0a0a0a;
  border: 1px solid var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.btn-ghost,
.btn-nav {
  border: 1px solid var(--line-strong);
  color: #ececec;
}

.btn-ghost:hover,
.btn-nav:hover {
  border-color: #d6d6d6;
}

.hero-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  padding-bottom: 0.15rem;
}

.cta {
  border-bottom: none;
}

.cta p {
  max-width: 60ch;
  color: var(--muted);
}

.floating-contact {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #070707;
  background: var(--white);
  border: 1px solid var(--white);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.floating-contact:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--white);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}

.site-footer {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 1.2rem 0 2.2rem;
  color: #9b9b9b;
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


@keyframes introPulse {
  0% {
    opacity: 0;
    transform: scale(0.94);
    letter-spacing: 0.5em;
    filter: blur(4px);
  }
  28% {
    opacity: 1;
    transform: scale(1);
    letter-spacing: 0.42em;
    filter: blur(0);
  }
  72% {
    opacity: 1;
    transform: scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(3px);
  }
}

@keyframes driftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vh, 0) scale(1.06); }
  100% { transform: translate3d(8vw, -2vh, 0) scale(0.98); }
}

@keyframes driftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4vw, -4vh, 0) scale(1.04); }
  100% { transform: translate3d(-9vw, 3vh, 0) scale(0.97); }
}

@keyframes driftC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2vw, -3vh, 0) scale(1.05); }
  100% { transform: translate3d(-4vw, 2vh, 0) scale(0.96); }
}

@keyframes driftGrid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-44px, -44px, 0); }
}


@media (prefers-reduced-motion: reduce) {
  .orb,
  .grid-glow,
  .intro-word,
  .reveal {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .intro-overlay,
  .app-shell {
    transition-duration: 180ms;
  }


  .reveal {
    opacity: 1;
  }
}

@media (max-width: 920px) {
  :root {
    --header-clearance: clamp(4.2rem, 10vh, 5.8rem);
  }

  nav a:not(.btn-nav) {
    display: none;
  }

  .lang-switch {
    margin-left: 0.2rem;
  }

  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.7rem 0;
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: calc(2.6rem + var(--hero-bottom-safe));
  }
}


@media (max-width: 540px) {
  .site-header {
    width: 94%;
    border-radius: 14px;
    padding: 0.7rem 0.8rem;
  }

  .lang-btn {
    padding: 0.3rem 0.45rem;
    font-size: 0.7rem;
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    width: 100%;
  }

  .floating-contact {
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.72rem 0.95rem;
    width: auto;
  }

  .process-list li {
    grid-template-columns: 44px 1fr;
  }
}
