:root {
  --black: #0e0e0e;
  --white: #ffffff;
  --grey: #8a8a8a;
  --line: #e2e2e2;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
::selection {
  background: var(--black);
  color: var(--white);
}
body {
  background: var(--white);
  color: var(--black);
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- preloader ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}
#loader.done {
  transform: translateY(-100%);
}
#loader span {
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 5vw, 54px);
  opacity: 0;
  animation: lfade 0.8s ease 0.2s forwards;
}
@keyframes lfade {
  to {
    opacity: 1;
  }
}

/* ---------- custom cursor ---------- */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--black);
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s,
    height 0.25s,
    opacity 0.25s;
  mix-blend-mode: difference;
  background: #fff;
  opacity: 0;
}
#cursor.on {
  opacity: 1;
}
#cursor.hover {
  width: 48px;
  height: 48px;
}
@media (pointer: coarse) {
  #cursor {
    display: none;
  }
}

/* ---------- nav ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  padding: 24px 5vw;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  transition: color 0.4s ease;
}
nav a {
  color: inherit;
}
nav a:hover {
  opacity: 0.55;
}
nav.dark {
  color: #fff;
}
nav:not(.dark) {
  color: #0e0e0e;
}
nav .lang-btn {
  color: inherit;
}
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.lang-btn .chev {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.3s ease;
}
.lang.open .chev {
  transform: rotate(-135deg) translateY(-1px);
}
.lang-menu {
  isolation: isolate;
  mix-blend-mode: normal;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 64px;
  background: rgba(14, 14, 14, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  overflow: hidden;
}
.lang.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-menu a {
  display: block;
  padding: 7px 14px;
  font-weight: 600;
  font-size: 12px;
  color: #cfcfcf;
  letter-spacing: 0.06em;
  text-align: center;
}
.lang-menu a:hover {
  background: #1a1a1a;
  color: #fff;
  opacity: 1;
}

/* ---------- masked line reveal ---------- */
.mask {
  overflow: hidden;
  display: block;
}
.mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.in .mask > span {
  transform: none;
}
.in .mask:nth-child(2) > span {
  transition-delay: 0.12s;
}
.in .mask:nth-child(3) > span {
  transition-delay: 0.24s;
}
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}
.fade.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade,
  .mask > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #loader {
    display: none;
  }
  .ticker-track {
    animation: none !important;
  }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5vw 7vh;
}
.hero h1 {
  font-size: clamp(64px, 14vw, 200px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* ---------- manifesto ---------- */
.manifesto {
  padding: 18vh 5vw 12vh;
}
.manifesto h2 {
  font-size: clamp(26px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 1200px;
}
.manifesto .facts {
  margin-top: 8vh;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--grey);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
}
.manifesto .facts b {
  color: var(--black);
  font-weight: 600;
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 22px 0;
}
.ticker-track {
  display: inline-block;
  animation: scroll 28s linear infinite;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ticker-track span {
  margin: 0 28px;
  color: var(--black);
}
.ticker-track span:nth-child(even) {
  color: var(--grey);
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- founder ---------- */
.founder {
  padding: 14vh 5vw;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 6vw;
  align-items: start;
}
.founder h2 {
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.founder .role {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  color: var(--grey);
  margin: 14px 0 6vh;
}
.founder .bio {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  max-width: 560px;
  color: #333;
}
.founder .links {
  margin-top: 5vh;
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.founder .links a {
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}
.founder .links a:hover {
  opacity: 0.5;
}
.portrait {
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  background: linear-gradient(160deg, #1a1a1a, #3b3b3b);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #777;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  will-change: transform;
}

/* ---------- projects ---------- */
.project {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14vh 5vw 8vh;
  color: var(--white);
  overflow: hidden;
}
.p-media {
  background: #101010;
}
.p-meh {
  background: linear-gradient(165deg, #0e0e0e 55%, #1c1a10);
}
.project .idx {
  position: absolute;
  top: 14vh;
  right: 5vw;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #555;
}
.project .status {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
  transition: letter-spacing 0.5s ease;
}
.project:hover .status {
  letter-spacing: 0.3em;
}
.project .logo {
  font-size: clamp(52px, 11vw, 160px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 6vh 0;
  will-change: transform;
}
.project .logo small {
  display: block;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: 0;
  color: #bdbdbd;
  margin-top: 18px;
  max-width: 640px;
  line-height: 1.5;
}
.project .meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 980px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #cfcfcf;
}
.project .meta .k {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7d7d7d;
  margin-bottom: 8px;
  font-weight: 600;
}
.project .socials {
  margin-top: 5vh;
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.project .socials a {
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
}
.project .socials a:hover {
  opacity: 0.5;
}

/* ---------- contacts ---------- */
.contacts {
  padding: 16vh 5vw 10vh;
}
.contacts h2 {
  font-size: clamp(40px, 8vw, 110px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8vh;
}
.contacts .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
  line-height: 1.7;
}
.contacts a {
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}
.contacts a:hover {
  opacity: 0.5;
}
.clocks-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.clock .k {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
  font-weight: 600;
}
.clock .t {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
}
.contacts .copy {
  margin-top: 12vh;
  font-size: 12px;
  color: var(--grey);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .founder {
    grid-template-columns: 1fr;
  }
  .portrait {
    order: -1;
    max-width: 340px;
  }
}
