:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #ededee;
  --muted: #8d8d93;
  --silver: #c9cbd1;
  --silver-grad: linear-gradient(100deg, #f4f4f6 0%, #a9abb3 55%, #e2e3e7 100%);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; overflow-wrap: break-word; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:focus-visible {
  outline: 1px solid var(--silver);
  outline-offset: 4px;
  border-radius: 4px;
}

.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220, 222, 230, .07), transparent);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .8s var(--ease);
  will-change: transform;
}

.glow.on { opacity: 1; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px var(--pad);
  padding-top: max(22px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(10, 10, 11, .92), rgba(10, 10, 11, 0));
}

.logo {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .32em;
  margin-right: auto;
}

.nav { display: flex; gap: 26px; }

.nav a, .lang button {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .4s var(--ease);
}

.nav a:hover, .lang button:hover, .lang button[aria-pressed="true"] { color: var(--text); }

.lang {
  display: flex;
  gap: 2px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.lang button {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 6px 7px;
  cursor: pointer;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  min-height: min(100vh, 780px);
  min-height: min(100svh, 780px);
  padding: 120px var(--pad) 40px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9dbe1;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.6s var(--ease) infinite;
}

h1 {
  margin-top: 34px;
  font-size: clamp(2.5rem, 6.6vw, 6.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

h1 em { font-size: 1.12em; line-height: .9; padding-right: .06em; }

.lead {
  margin-top: 28px;
  max-width: 30em;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 300;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

.btn:hover {
  background: #fff;
  box-shadow: 0 0 40px rgba(220, 222, 230, .18);
}

.arrow {
  flex: none;
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  transition: transform .5s var(--ease);
}

.btn:hover .arrow, .contact-link:hover .arrow { transform: translate(2px, 2px); }
.btn[target]:hover .arrow, .contact-link:hover .arrow { transform: translate(2px, -2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .4);
}

.socials { display: flex; gap: 10px; }

.social {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--silver);
  transition: border-color .5s var(--ease), color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}

.social:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 28px rgba(220, 222, 230, .12);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg .fill { fill: currentColor; stroke: none; }

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(210, 212, 222, .09), transparent);
}

.ring, .orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ring { border: 1px solid var(--line); }
.ring-inner { inset: 17%; border-style: dashed; border-color: rgba(255, 255, 255, .06); }

.orbit {
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(230, 232, 238, .7) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 16s linear infinite;
}

.onit {
  position: relative;
  text-align: center;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.05;
}

.onit em {
  display: block;
  margin-top: 6px;
  font-size: 1.5em;
  letter-spacing: .02em;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--pad) 0;
}

.hero + .section { padding-top: clamp(40px, 5vw, 72px); }

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--line-strong);
}

.project {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: border-color .7s var(--ease), box-shadow .7s var(--ease);
}

.project:hover {
  border-color: var(--line-strong);
  box-shadow: 0 30px 80px -40px rgba(200, 202, 212, .16);
}

.project .btn { flex: none; }

.project-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-meta span:first-child { color: var(--silver); }

.project h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.project-desc {
  max-width: 32em;
  margin-top: 16px;
  font-weight: 300;
  color: var(--muted);
}

.contact { text-align: left; }

.contact-title {
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.contact-title em { font-size: 1.12em; }

.contact-lead {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  color: var(--muted);
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .6s var(--ease), background-color .6s var(--ease);
}

.contact-link:hover {
  border-color: var(--line-strong);
  background: #151518;
}

.contact-link svg:first-child { width: 24px; height: 24px; color: var(--silver); }

.contact-name { font-size: 18px; font-weight: 500; }

.contact-handle {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.contact-link .arrow { color: var(--muted); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: clamp(72px, 10vw, 128px) auto 0;
  padding: 28px var(--pad);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
}

.footer-onit { color: var(--silver); }

.load {
  opacity: 0;
  animation: rise 1.2s var(--ease) var(--d, 0s) forwards;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes ping {
  0% { transform: scale(1); opacity: .6; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 128px;
    min-height: 0;
  }

  .hero-visual { width: min(78%, 320px); }

  .project { flex-direction: column; align-items: flex-start; gap: 30px; }
}

@media (max-width: 600px) {
  .header { gap: 16px; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 18px; }
  .logo { font-size: 14px; letter-spacing: .26em; }
  .nav { gap: 16px; }
  .nav a, .lang button { font-size: 11px; letter-spacing: .1em; }
  .lang { padding-left: 10px; }
  .lang button { padding: 6px 5px; }

  .hero { padding-top: 112px; gap: 48px; }
  h1 { margin-top: 28px; }
  .actions { margin-top: 34px; }
  .btn { height: 50px; padding: 0 22px; }
  .social { width: 50px; height: 50px; }

  .label { margin-bottom: 30px; }

  .contact-links { grid-template-columns: 1fr; margin-top: 40px; }
  .contact-link { padding: 22px 22px; }

  .footer { flex-direction: column; gap: 8px; letter-spacing: .16em; }
}

@media (max-width: 380px) {
  .nav { display: none; }
}

@media (hover: none) {
  .glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .load, .js .reveal { opacity: 1; transform: none; }
  .glow { display: none; }
}
