:root {
  --ink: #05080d;
  --navy: #071525;
  --blue: #1957d2;
  --sky: #83d5ff;
  --white: #f5f8fc;
  --grey: #9aa7b7;
  --line: rgba(255, 255, 255, .16);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
  font: 400 14px/1.55 "Montserrat", "Segoe UI", Arial, sans-serif;
}
button, a { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
a { text-decoration: none; }
::selection { color: var(--ink); background: var(--sky); }

.cursor-glow {
  position: fixed;
  z-index: 0;
  left: -260px;
  top: -260px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(85, 183, 255, .12), transparent 68%);
  will-change: transform;
}

.header {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 50%;
  width: min(var(--max), calc(100% - 64px));
  height: 70px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border: 1px solid rgba(155, 194, 239, .2);
  border-radius: 14px;
  background: rgba(5, 14, 27, .9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px) saturate(135%);
  transition: height .25s ease, background .25s ease, box-shadow .25s ease;
}
.header.scrolled {
  height: 62px;
  background: rgba(5, 14, 27, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
}
.brand {
  padding: 0;
  background: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.04em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav button, .back-top {
  padding: 0;
  color: #dbe2eb;
  background: none;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.nav button { position: relative; }
.nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.nav button:hover::after { right: 0; }
.header-actions, .language-switcher { display: flex; align-items: center; }
.header-actions { gap: 14px; }
.language-switcher {
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;
}
.language-switcher button {
  width: 31px;
  height: 27px;
  padding: 0;
  border-radius: 20px;
  color: #b4bfcb;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}
.language-switcher button.active { color: var(--ink); background: var(--white); }
.menu-button { display: none; }
.section { position: relative; z-index: 1; }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #1757d1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58vw;
  height: 58vw;
  right: -18vw;
  top: -22vw;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 9vw rgba(255,255,255,.035), 0 0 0 18vw rgba(255,255,255,.025);
  animation: drift 11s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translate(-22px, 18px) scale(1.025); } }
.hero-content {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 64px));
  padding: 116px 0 68px;
}
.eyebrow, .section-index {
  margin: 0 0 38px;
  color: var(--sky);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(42px, 7vh, 72px);
}
.hero-kicker .eyebrow { margin: 0; color: white; }
.hero-kicker > span {
  color: rgba(255,255,255,.68);
  font-size: 9px;
  letter-spacing: .18em;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #fff;
  font-size: clamp(78px, 13.5vw, 190px);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.hero h1 span { white-space: nowrap; }
.hero h1 span:last-child { align-self: flex-end; }
.hero-accent {
  position: absolute;
  z-index: 4;
  top: 41%;
  right: 5%;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: "Uncial Antiqua", Georgia, serif;
  font-size: clamp(18px, 2.1vw, 31px);
  line-height: .95;
  text-shadow: 0 2px 15px rgba(0,0,50,.2);
  transform: rotate(-8deg);
}
.hero-accent span:last-child { margin-left: 1.8em; }
.hero-bottom {
  width: 55%;
  margin: clamp(46px, 7vh, 72px) 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.hero-bottom p { max-width: 510px; margin: 0; color: rgba(255,255,255,.83); font-size: 14px; line-height: 1.7; }
.round-link {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65);
  color: #fff;
  background: transparent;
  font-size: 23px;
  transition: transform .35s ease, background .35s ease;
}
.round-link:hover { color: var(--blue); transform: rotate(45deg); background: #fff; }
.round-link span { display: block; }
.hero-side {
  position: absolute;
  right: 18px;
  top: 50%;
  color: rgba(255,255,255,.5);
  font-size: 8px;
  letter-spacing: .2em;
  transform: translateY(-50%) rotate(90deg);
}
.about, .projects, .tools {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 145px 0;
}
.about-layout { display: grid; grid-template-columns: 1.45fr .72fr; gap: 9vw; align-items: end; }
.about h2, .section-heading h2, .tools h2, .contact h2 {
  margin: 0;
  font-size: clamp(42px, 6.3vw, 88px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.07em;
}
em { color: var(--sky); font-style: normal; }
.about-copy > p { margin: 0; color: #aeb8c4; font-size: 16px; line-height: 1.85; }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column; }
.stats strong { color: var(--white); font-size: 30px; font-weight: 500; }
.stats span { color: #758293; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.team-card {
  position: relative;
  margin-top: 26px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(25,87,210,.16), rgba(255,255,255,.02));
}
.team-card::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 1px;
  top: -1px;
  right: 20px;
  background: var(--sky);
}
.team-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sky);
}
.team-card small { color: var(--sky); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.team-card h3 { margin: 5px 0 7px; font-size: 15px; font-weight: 600; }
.team-card p { margin: 0; color: #8996a7; font-size: 12px; line-height: 1.6; }

.projects { padding-top: 105px; }
.section-heading {
  display: grid;
  grid-template-columns: .5fr 1.1fr .65fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 75px;
}
.section-heading .section-index { align-self: start; }
.section-heading > p { margin: 0 0 8px; color: var(--grey); line-height: 1.8; }
.project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 76px 18px; }
.project-card {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.project-card:nth-child(1) { grid-column: 1 / -1; }
.project-card.is-open { grid-column: 1 / -1; }
.project-trigger {
  position: relative;
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #0a1522;
  text-align: left;
}
.project-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.project-trigger:hover::after { border-color: rgba(131,213,255,.65); background: rgba(5,8,13,.08); }
.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.project-card img,
.project-gallery-grid {
  user-select: none;
  -webkit-user-select: none;
  user-drag: none;
  -webkit-user-drag: none;
}
.project-open {
  position: absolute;
  right: 22px;
  bottom: 22px;
  min-width: 54px;
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 28px;
  color: var(--ink);
  background: var(--sky);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.project-open b { font: inherit; }
.project-open i { font-size: 20px; font-style: normal; line-height: 1; transition: transform .26s ease; }
.project-trigger:hover .project-open { opacity: 1; transform: none; }
.project-card.is-open .project-open { opacity: 1; transform: none; }
.project-card.is-open .project-open i { transform: rotate(45deg); }
.project-caption {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(240px, 1fr);
  align-items: start;
  gap: 40px;
  padding: 21px 0 0;
  border-top: 1px solid var(--line);
}
.project-caption h3 { margin: 0; font-size: 19px; font-weight: 500; }
.project-caption p { margin: 2px 0 0; color: #8793a2; font-size: 12px; line-height: 1.65; }

.project-gallery {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .28s cubic-bezier(.2,.8,.2,1), visibility 0s .28s;
}
.project-card.is-open .project-gallery {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .28s cubic-bezier(.2,.8,.2,1), visibility 0s;
}
.project-gallery-inner {
  min-height: 0;
  overflow: hidden;
  contain: layout paint;
}
.project-gallery-head {
  margin-top: 30px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(131,213,255,.55);
}
.project-gallery-head > span {
  color: var(--sky);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-close {
  padding: 8px 0 8px 18px;
  color: #c4ced9;
  background: transparent;
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.project-close b { margin-left: 9px; color: var(--sky); font-size: 18px; font-weight: 400; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-gallery-grid figure {
  min-width: 0;
  margin: 0;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(12px);
  transition:
    opacity .22s ease calc(var(--gallery-index) * 35ms),
    transform .26s cubic-bezier(.2,.8,.2,1) calc(var(--gallery-index) * 35ms),
    clip-path .28s cubic-bezier(.2,.8,.2,1) calc(var(--gallery-index) * 35ms);
}
.project-card.is-open .project-gallery-grid figure {
  opacity: 1;
  clip-path: inset(0);
  transform: none;
}
.project-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #020509;
}
.project-gallery-grid figcaption {
  padding-top: 8px;
  color: #687586;
  font-size: 9px;
  letter-spacing: .12em;
}

.tools { padding-top: 100px; }
.tools-layout { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 8vw; }
.tools-layout p { margin: 0; color: var(--grey); font-size: 16px; line-height: 1.85; }
.tool-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 75px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tool-list span {
  padding: 30px 20px;
  border-right: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
  letter-spacing: .04em;
}
.tool-list span:last-child { border: 0; }

.contact {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 45%, rgba(83,145,255,.55), transparent 35%),
    var(--blue);
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(68vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 10vw rgba(255,255,255,.035), 0 0 0 20vw rgba(255,255,255,.025);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.025); opacity: .65; } }
.contact-type {
  position: absolute;
  z-index: -1;
  left: 50%;
  color: transparent;
  font-size: clamp(90px, 16vw, 230px);
  font-weight: 700;
  line-height: .7;
  letter-spacing: -.08em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255,255,255,.14);
  transform: translateX(-50%);
}
.contact-type-top { top: 12%; }
.contact-type-bottom { bottom: 8%; }
.contact-content { position: relative; z-index: 2; width: min(920px, calc(100% - 48px)); padding: 110px 0 90px; text-align: center; }
.contact-content .section-index { color: #caeaff; }
.contact-content > p { text-transform: uppercase; letter-spacing: .15em; font-size: 9px; }
.contact h2 { margin: 28px 0 48px; font-size: clamp(44px, 7.5vw, 100px); }
.contact h2 em { color: transparent; -webkit-text-stroke: 1px var(--white); }
.social-panel {
  width: min(700px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.55);
}
.social-link {
  min-height: 92px;
  padding: 18px 10px;
  display: grid;
  grid-template-columns: 40px 1fr auto 28px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.55);
  text-align: left;
  transition: color .3s ease, background .3s ease, padding .3s ease;
}
a.social-link:hover {
  padding-inline: 20px;
  color: var(--blue);
  background: #fff;
}
.social-index { color: rgba(255,255,255,.6); font-size: 8px; letter-spacing: .15em; }
a.social-link:hover .social-index, a.social-link:hover .social-copy small { color: rgba(25,87,210,.7); }
.social-copy { display: flex; flex-direction: column; }
.social-copy small { color: rgba(255,255,255,.65); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.social-copy strong { margin-top: 3px; font-size: 20px; font-weight: 500; }
.social-action { font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.social-link b { font-size: 20px; font-weight: 400; text-align: right; }
footer {
  width: min(var(--max), calc(100% - 64px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #788493;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .header, .hero-content, .about, .projects, .tools, footer { width: calc(100% - 34px); }
  .menu-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: none;
  }
  .menu-button span { width: 15px; height: 1px; background: white; transition: transform .25s; }
  .menu-button.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    background: #081426;
    border: 1px solid rgba(255,255,255,.15);
  }
  .nav.open { display: flex; }
  .about, .projects, .tools { padding: 105px 0; }
  .about-layout, .section-heading, .tools-layout { grid-template-columns: 1fr; gap: 42px; }
  .about-copy { max-width: 620px; }
  .hero-bottom { width: 72%; }
  .hero-accent { right: 3%; top: 39%; }
  .tool-list { grid-template-columns: 1fr 1fr; }
  .tool-list span:nth-child(2) { border-right: 0; }
  .tool-list span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-gallery-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  .cursor-glow { display: none; }
  .header { top: 8px; height: 62px; padding: 0 14px; }
  .language-switcher button { width: 28px; }
  .hero-content { padding: 100px 0 52px; }
  .hero-kicker { margin-bottom: 42px; }
  .hero-kicker > span, .hero-side { display: none; }
  .hero h1 { font-size: clamp(46px, 13.2vw, 66px); line-height: .84; letter-spacing: -.075em; }
  .hero h1 span:last-child { align-self: flex-start; }
  .hero-accent { position: static; width: max-content; margin: 22px 42px 0 auto; font-size: 16px; }
  .hero-bottom { width: 100%; margin-top: 38px; grid-template-columns: 1fr auto; }
  .hero-bottom p { font-size: 13px; }
  .round-link { width: 52px; height: 52px; flex-basis: 52px; }
  .about h2, .section-heading h2, .tools h2 { font-size: 39px; }
  .project-list { grid-template-columns: 1fr; }
  .project-card:nth-child(1) { grid-column: auto; }
  .project-open { opacity: 1; transform: none; min-width: 44px; height: 44px; padding-inline: 13px; }
  .project-open b { display: none; }
  .project-caption { grid-template-columns: 1fr; gap: 10px; }
  .contact { min-height: 780px; }
  .contact-content { width: calc(100% - 30px); padding: 90px 0 70px; }
  .contact h2 { margin-bottom: 38px; }
  .contact-type { font-size: 28vw; }
  .social-link { min-height: 82px; grid-template-columns: 25px 1fr auto 18px; gap: 10px; padding-inline: 4px; }
  .social-copy strong { font-size: 17px; }
  .social-action { font-size: 8px; }
  .team-card { padding: 20px; }
  footer { padding: 28px 0; flex-wrap: wrap; gap: 18px; }
  footer p { order: 3; width: 100%; }
  .project-gallery-head { margin-top: 22px; }
  .project-gallery-head > span { max-width: 56%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
