:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .64);
  --line: rgba(255, 255, 255, .13);
  --blue: #4a74ff;
  --gut: clamp(16px, 3.2vw, 48px);
  --sans: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --section: clamp(96px, 15vw, 220px);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-block-start: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
ol { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--blue); color: #fff; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 60;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.micro {
  font-family: var(--mono), var(--sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--faint);
}
html[lang="en"] .micro { text-transform: uppercase; letter-spacing: .12em; }

/* Hairline columns behind the page */
.rails {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-inline: var(--gut);
}
.rails i { border-inline-start: 1px solid rgba(255, 255, 255, .05); }
.rails i:first-child { border: 0; }

/* Loader */
.loader { display: none; }
html.js .loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gut);
  background: #000;
  transition: opacity .5s ease, visibility .5s;
}
html.js .loader.done { opacity: 0; visibility: hidden; }
.loader b { font-weight: 400; font-size: 24px; letter-spacing: -.01em; }
.loader .count { justify-self: end; color: #fff; }

/* Header */
.top {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gut);
  background: linear-gradient(#000 62%, transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 20px;
  letter-spacing: -.01em;
}
.brand img { width: 26px; height: 26px; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(239, 238, 236, .08);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:active { transform: scale(.98); }
.btn-solid { background: #fff; color: #000; border-color: #fff; }
.lang { padding: 0 14px; font-family: var(--mono), var(--sans); font-size: 13px; }

@media (hover: hover) {
  .btn:hover { background: rgba(239, 238, 236, .18); border-color: rgba(255, 255, 255, .3); }
  .btn-solid:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
}

/* Hero stage */
.stage { position: relative; z-index: 1; height: 250svh; }
.stage-pin {
  position: sticky;
  inset-block-start: 0;
  height: 100svh;
  overflow: hidden;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-pin::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 16%;
  background: linear-gradient(transparent, #000);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  inset-block-start: clamp(104px, 17vh, 164px);
  padding-inline: var(--gut);
  text-align: center;
  will-change: opacity, transform;
}
.hero-copy .micro { display: block; color: #fff; margin-block-end: clamp(16px, 2.6vh, 28px); }

h1 {
  font-size: clamp(2.75rem, 7.6vw, 6.75rem);
  line-height: 1.04;
  letter-spacing: -.028em;
}
.line { display: block; overflow: hidden; padding-block: .1em; margin-block: -.1em; }
.line > span { display: block; }
.grey { color: rgba(255, 255, 255, .42); }
html.js .line > span { transform: translateY(112%); transition: transform 1.1s var(--ease); }
html.js .line:nth-child(2) > span { transition-delay: .09s; }
html.ready .line > span { transform: none; }

.pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-block-start: clamp(22px, 4vh, 40px);
  padding: 2px 6px;
  background: rgba(239, 238, 236, .08);
  backdrop-filter: blur(10px);
  font-size: 15px;
}
.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: clamp(9px, 1.3vw, 16px);
  color: var(--dim);
  transition: color .2s ease;
}
@media (hover: hover) { .pills a:hover { color: #fff; } }

.cue {
  position: absolute;
  z-index: 2;
  inset-block-end: 22px;
  inset-inline-start: var(--gut);
}
.stamp {
  position: absolute;
  z-index: 2;
  inset-block-end: 22px;
  inset-inline-end: var(--gut);
  unicode-bidi: plaintext;
}

.motion {
  position: absolute;
  z-index: 2;
  inset-block-end: 10px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--faint);
  cursor: pointer;
}
@media (hover: hover) { .motion:hover { color: #fff; } }

/* Accessibility statement */
.doc {
  position: relative;
  z-index: 1;
  max-width: calc(46rem + 2 * var(--gut));
  padding: clamp(116px, 15vh, 170px) var(--gut) var(--section);
}
.doc h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); margin-block-end: 22px; }
.doc h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.012em; margin-block: 44px 12px; }
.doc p, .doc li { color: var(--dim); }
.doc ul { margin: 0; padding-inline-start: 1.2em; list-style: disc; }
.doc li { margin-block-end: 8px; }
.doc a { color: #fff; border-block-end: 1px solid var(--blue); }

.foot a { display: inline-flex; align-items: center; min-height: 24px; color: #fff; border-block-end: 1px solid var(--blue); }

/* Sections */
main > section:not(.stage) {
  position: relative;
  z-index: 1;
  padding: var(--section) var(--gut) 0;
}

.statement {
  max-width: 21em;
  font-size: clamp(1.75rem, 4.3vw, 3.75rem);
  line-height: 1.22;
  letter-spacing: -.02em;
}
.statement span[aria-hidden] span { color: #fff; opacity: .34; transition: opacity .2s linear; }
html.no-words .statement span[aria-hidden] span { opacity: 1; }

.sec-head {
  display: grid;
  gap: 18px;
  margin-block-end: clamp(44px, 7vw, 96px);
}
h2 {
  font-size: clamp(2.5rem, 6.6vw, 5.75rem);
  line-height: 1.05;
  letter-spacing: -.026em;
}
h2 span { display: block; }

/* Services */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  align-items: baseline;
  gap: 8px 0;
  padding-block: clamp(26px, 3.4vw, 46px);
  border-block-start: 1px solid var(--line);
  position: relative;
}
.service:last-child { border-block-end: 1px solid var(--line); }
.service::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: -1px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: var(--origin, right);
  transition: transform .5s var(--ease);
}
html[dir="ltr"] { --origin: left; }
h3 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em; }
.service p { grid-column: 3; grid-row: 1; color: var(--dim); max-width: 34em; font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.service h3 { grid-column: 1 / span 2; grid-row: 1; padding-inline-start: 25%; padding-inline-start: calc(25% + 12px); }
.service .micro { grid-column: 1; grid-row: 1; }

@media (hover: hover) {
  .service:hover::before { transform: scaleX(1); }
}

/* Work */
.work-card { display: block; }
.work-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07090f;
  box-shadow: 0 0 120px -30px rgba(74, 116, 255, .5);
}
.work-frame img {
  width: 100%;
  aspect-ratio: 160 / 69;
  object-fit: cover;
  object-position: top;
  transition: transform .9s var(--ease);
}
.work-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 16px 0;
  padding-block-start: 26px;
  align-items: baseline;
}
.work-meta h3 { grid-column: 1 / span 2; }
.work-meta p { color: var(--dim); max-width: 34em; }
.visit {
  display: inline-block;
  margin-block-start: 14px;
  color: #fff;
  border-block-end: 1px solid var(--blue);
}
@media (hover: hover) {
  .work-card:hover img { transform: scale(1.018); }
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li {
  padding: 22px 12px 8px;
  border-block-start: 1px solid var(--line);
  min-height: 250px;
}
.steps .micro { display: block; margin-block-end: clamp(40px, 6vw, 84px); }
.steps h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin-block-end: 10px; }
.steps p { color: var(--dim); max-width: 21em; }

/* FAQ */
.faq details { border-block-start: 1px solid var(--line); }
.faq details:last-child { border-block-end: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding-block: clamp(18px, 2.2vw, 28px);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.012em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 1.25em;
  color: var(--blue);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  max-width: 40em;
  padding-block-end: clamp(20px, 2.4vw, 30px);
  color: var(--dim);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

/* Contact */
#contact { text-align: center; padding-block-end: var(--section) !important; overflow: hidden; }
#contact::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -30%;
  height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(45, 90, 255, .36), transparent 72%);
  pointer-events: none;
}
#contact > * { position: relative; }
#contact h2 { margin-block-end: 22px; }
.contact-text { color: var(--dim); font-size: clamp(1.1rem, 1.6vw, 1.4rem); margin-block-end: clamp(32px, 5vw, 60px); }
.mail {
  display: inline-block;
  direction: ltr;
  font-size: clamp(1.28rem, 5.1vw, 4.4rem);
  letter-spacing: -.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  border-block-end: 1px solid rgba(255, 255, 255, .35);
  transition: border-color .25s ease;
}
@media (hover: hover) { .mail:hover { border-color: var(--blue); } }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-block-start: clamp(28px, 4vw, 44px);
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gut);
  border-block-start: 1px solid var(--line);
}

/* Reveal */
html.js .r { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .r.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .rails { grid-template-columns: repeat(2, 1fr); }
  .rails i:nth-child(n+3) { display: none; }
  .service { grid-template-columns: 1fr; }
  .service .micro, .service h3, .service p { grid-column: 1; grid-row: auto; padding: 0; }
  .work-meta { grid-template-columns: 1fr; }
  .work-meta h3, .work-meta .micro, .work-meta div { grid-column: 1; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; padding: 20px 0 30px; }
  .steps .micro { margin-block-end: 18px; }
  .stamp { display: none; }
  .motion { left: auto; inset-inline-end: calc(var(--gut) - 12px); transform: none; }
  .foot { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .top .btn:not(.lang) { padding: 0 13px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage { height: 100svh; }
  html.js .line > span, html.js .r { transform: none; opacity: 1; transition: none; }
  .statement span[aria-hidden] span { opacity: 1; }
  .cue { display: none; }
}
