@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #070b16;
  --surface: #0f182e;
  --surface-raised: #152440;
  --ink: #f4f8ff;
  --muted: #b5c3db;
  --line: #263957;
  --brand-blue: #0449fe;
  --brand-blue-hover: #0856fe;
  --brand-cyan: #64cefe;
  --stroke: #9bc4ff32;
  --bright-ink: #dceaff;
  --atmosphere: url("assets/buildt-atmosphere.webp");
  --gutter: clamp(1.2rem, 5vw, 4.5rem);
  --section-space: clamp(4.25rem, 8vw, 8rem);
  --sans: Manrope, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { position: relative; margin: 0; }
body.project-dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
section[id] { scroll-margin-block-start: 5.75rem; }
::selection { background: var(--brand-cyan); color: var(--page); }
:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 4px; }
[hidden] { display: none !important; }

.frame { width: min(81rem, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { margin-block-start: var(--section-space); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 10;
  inset: 1rem auto auto 1rem;
  padding: .75rem 1rem;
  transform: translateY(-175%);
  border-radius: .5rem;
  color: var(--page);
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(5rem, 9vw, 7.6rem);
  border: 1px solid transparent;
  border-radius: 1rem;
  transition: background-color 240ms ease, border-color 240ms ease;
}
.site-header.is-scrolled {
  --header-inset: clamp(.85rem, 2vw, 1.35rem);
  min-height: 4rem;
  margin-block-start: .65rem;
  padding-inline: var(--header-inset);
  border-color: var(--stroke);
  background: #0a1427ed;
  box-shadow: 0 14px 36px #01040c70;
  backdrop-filter: blur(20px);
}
.wordmark { display: inline-flex; flex: none; align-items: center; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.8vw, 3rem); margin-inline: auto; }
.site-nav > a:not(.button) { color: var(--bright-ink); font-size: .94rem; font-weight: 600; }
.site-nav > a:not(.button):hover { color: #fff; }
.nav-contact { position: absolute; inset-inline-end: var(--header-inset, 0); }
.site-header .wordmark { position: absolute; inset-inline-start: var(--header-inset, 0); }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  width: max-content;
  max-width: 100%;
  padding: .65rem 1.18rem;
  border: 1px solid transparent;
  border-radius: .72rem;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.button-outline { background: #111f3b9e; color: var(--ink); border-color: #bddeff50; }
.button-outline:hover { color: #fff; border-color: var(--brand-cyan); background: #183566; }
.button-primary { background: var(--brand-blue); border-color: #7adcff75; color: #fff; box-shadow: 0 7px 24px #0449fe40; }
.button-primary:hover { background: var(--brand-blue-hover); border-color: var(--brand-cyan); }
.button-quiet { border-color: #c4e3ff55; background: #0b183275; color: var(--ink); }
.button-quiet:hover { border-color: var(--brand-cyan); background: #192d57a6; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(47rem, 62vw, 59rem);
  padding: clamp(10rem, 14.1vw, 13.25rem) 0 clamp(5rem, 7.2vw, 7.5rem);
  background: var(--page);
}
.hero-visual { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.hero-atmosphere { position: absolute; inset: 0; background: var(--atmosphere) 50% 47% / cover no-repeat; opacity: .91; }
.hero-light {
  position: absolute;
  z-index: 1;
  inset: -13%;
  background:
    radial-gradient(ellipse at 3% 39%, #2d62fb63, #142cdc30 26%, transparent 48%),
    radial-gradient(ellipse at 99% 30%, #206afa67, transparent 47%),
    radial-gradient(ellipse at 47% 87%, #033fff43, transparent 46%);
  mix-blend-mode: screen;
  filter: blur(22px);
}
.hero-visual::before, .hero-visual::after { position: absolute; inset: 0; pointer-events: none; content: ""; }
.hero-visual::before {
  z-index: 1;
  background:
    radial-gradient(ellipse at 12% 10%, #1852db55, transparent 46%),
    radial-gradient(ellipse at 97% 28%, #2b8bdf40, transparent 43%);
  mix-blend-mode: screen;
}
.hero-visual::after {
  z-index: 2;
  background:
    linear-gradient(180deg, #070b1650, transparent 17%, transparent 64%, var(--page) 100%),
    radial-gradient(ellipse at 49% 40%, #060b18ef 0%, #080f21c2 29%, #0a163426 58%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.eyebrow { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .55rem; color: #bde5ff; font-size: .76rem; font-weight: 700; line-height: 1.45; letter-spacing: .085em; text-transform: uppercase; }
.label-mark { display: inline-block; flex: none; width: .42rem; height: .42rem; border-radius: 1px; background: var(--brand-cyan); transform: rotate(45deg); }
.hero-label { padding: .55rem .8rem; border: 1px solid var(--stroke); border-radius: 999px; color: var(--bright-ink); background: #101d398f; font-size: .82rem; font-weight: 600; letter-spacing: .005em; text-transform: none; }
.hero h1 {
  margin-block: clamp(1.5rem, 2.65vw, 2.25rem) 0;
  color: #fff;
  font-size: clamp(3.75rem, 5.45vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -.054em;
  word-spacing: .045em;
  line-height: 1.045;
  text-wrap: balance;
}
.hero h1 span { color: #d9e9ff; }
.hero-intro { max-width: 31rem; margin-top: clamp(1.2rem, 2.2vw, 1.8rem); color: var(--bright-ink); font-size: clamp(1rem, 1.33vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: clamp(1.4rem, 2.5vw, 2rem); }
.hero-content .button { min-height: 3.05rem; padding-inline: 1.35rem; }
.hero-foot {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(42rem, 100% - var(--gutter) * 2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3.5vw, 3.15rem);
  margin-block: clamp(2.6rem, 4.6vw, 4.4rem) 0;
  padding: 0;
}

.hero-foot > div {
  display: grid;
  align-content: start;
  gap: .35rem;
  min-width: 0;
  padding-block: .95rem .3rem;
  border-top: 1px solid #a4d3ff7a;
}

.hero-foot dt {
  grid-row: 2;
  color: var(--ink);
  font-size: clamp(.875rem, 1.4vw, 1.1rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero-metric-value {
  grid-row: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 5.3vw, 4.3rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
}

.hero-metric-note {
  grid-row: 3;
  margin: 0;
  color: var(--bright-ink);
  font-size: .8rem;
  line-height: 1.35;
}

.section-heading h2 { margin-block-start: .75rem; font-size: clamp(2.65rem, 4.15vw, 4.65rem); font-weight: 500; letter-spacing: -.055em; word-spacing: .045em; line-height: 1.08; text-wrap: balance; }
.section-heading p:not(.eyebrow) { max-width: 29rem; color: var(--muted); line-height: 1.65; }
.studio { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.12fr); align-items: center; gap: clamp(2rem, 6.5vw, 7.5rem); margin-block-start: clamp(1.75rem, 4.3vw, 4rem); }
.studio-copy > p:not(.eyebrow) { margin-block-start: 1.1rem; }
.studio-copy .button { margin-block-start: 1.4rem; }
.studio-art { position: relative; isolation: isolate; aspect-ratio: 1.4; overflow: hidden; border: 1px solid var(--stroke); border-radius: 1.15rem; background: var(--surface-raised); box-shadow: 0 0 5rem #184cb431; }
.studio-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.studio-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 96% 93%, #205ac965, transparent 55%), linear-gradient(145deg, #111f4698, transparent 51%);
  pointer-events: none;
}

.work-heading { display: grid; align-items: end; grid-template-columns: minmax(0, 1fr) minmax(14rem, .45fr); gap: 1.5rem; margin-block-end: clamp(1.35rem, 3vw, 2.65rem); }
.work-heading > p { justify-self: end; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 1.8vw, 1.45rem); }
.project-card { display: grid; min-width: 0; }
.project-card-featured { grid-column: 1 / -1; }
.project-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: .8rem;
  color: inherit;
  background: var(--surface);
  text-align: start;
  cursor: pointer;
  transition: border-color 220ms ease;
}

.project-trigger:is(:hover, :focus-visible) { border-color: var(--muted); }
.project-card-featured .project-trigger {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: auto;
}

.project-image { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-raised); }
.project-card-featured .project-image { align-self: stretch; }
.project-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.65rem, 2vw, 1.35rem);
  min-width: 0;
  padding: clamp(1rem, 2.35vw, 1.65rem);
}

.project-card-featured .project-caption { display: grid; align-content: center; justify-content: stretch; gap: clamp(1.1rem, 2.65vw, 2.3rem); padding: clamp(1.3rem, 4vw, 3.8rem); }
.project-kicker { display: block; margin-block-end: .5rem; color: var(--bright-ink); font-size: .87rem; font-weight: 700; line-height: 1.35; }
.project-name { display: block; font-size: clamp(1.28rem, 2.55vw, 2.05rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.13; overflow-wrap: anywhere; }
.project-type { display: block; max-width: 31rem; margin-block-start: .4rem; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.project-card-featured .project-name { font-size: clamp(2.05rem, 4.35vw, 4.35rem); font-weight: 600; line-height: 1.02; text-wrap: balance; }
.project-card-featured .project-type { margin-block-start: .75rem; font-size: clamp(.93rem, 1.4vw, 1.03rem); }

.round-control { position: relative; display: grid; flex: none; place-items: center; width: 2.55rem; height: 2.55rem; border: 1px solid var(--stroke); border-radius: 50%; color: var(--ink); background: var(--surface-raised); transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.project-trigger .round-control { background: transparent; }
.project-trigger:is(:hover, :focus-visible) .round-control { background: var(--surface-raised); border-color: var(--muted); }
summary:hover .round-control, .close-project:hover { color: #08152d; background: var(--brand-cyan); border-color: var(--brand-cyan); }
.plus-icon::before, .plus-icon::after { position: absolute; inset: 50% auto auto 50%; width: .78rem; height: 1px; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.plus-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; padding: 0; list-style: none; }
.tag-list li { padding: .26rem .58rem; border: 1px solid var(--stroke); border-radius: 999px; color: var(--bright-ink); font-size: .79rem; }

.method-heading { max-width: 50rem; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.55rem, 3vw, 2.9rem);
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 18% 0%, #1a2b5e, transparent 75%), var(--surface);
  list-style: none;
}
.method-grid > li { padding: clamp(1.15rem, 2.6vw, 2rem); }
.method-grid > li + li { border-inline-start: 1px solid var(--stroke); }
.method-grid h3 { margin-top: 1.25rem; font-size: 1.22rem; font-weight: 650; letter-spacing: -.03em; }
.method-grid p { margin-top: .35rem; color: var(--muted); line-height: 1.55; }
.method-grid .tag-list { margin-top: 1.15rem; }
.method-symbol { position: relative; display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border-radius: .58rem; color: #d4e5ff; background: #24468d; }
.method-symbol::before, .method-symbol::after { position: absolute; width: .88rem; height: .88rem; border: 1px solid currentColor; border-radius: .15rem; content: ""; }
.method-symbol-discover { color: #bdedff; background: #1b4e73; }
.method-symbol-discover::before { transform: translate(-.15rem, -.15rem); }
.method-symbol-discover::after { transform: translate(.15rem, .15rem); }
.method-symbol-design::before { transform: rotate(45deg); }
.method-symbol-design::after { border-radius: 50%; }
.method-symbol-build { color: #dae4ff; background: #2e3990; }
.method-symbol-build::before { width: .85rem; height: 1.2rem; border-width: 0 1px; transform: rotate(40deg); }
.method-symbol-build::after { width: 1.2rem; height: .85rem; border-width: 1px 0; transform: rotate(40deg); }

.contact { position: relative; isolation: isolate; overflow: hidden; margin-block-start: var(--section-space); padding: clamp(1.65rem, 5.65vw, 5rem); border: 1px solid var(--stroke); border-radius: 1.05rem; background: radial-gradient(ellipse at 102% 10%, #234bb8 0%, transparent 58%), #111e40; }
.contact::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(95deg, #0d1b38c8, #0d1b38ca 49%, #0d1b3868), var(--atmosphere) center 62% / cover; opacity: .82; content: ""; }
.contact-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .6fr); gap: 1rem; align-items: end; }
.contact h2 { margin-top: .75rem; color: var(--ink); font-size: clamp(3rem, 6.65vw, 6.3rem); font-weight: 500; letter-spacing: -.063em; word-spacing: .045em; line-height: .99; overflow-wrap: break-word; }
.contact-method > p:first-child { color: var(--bright-ink); font-size: 1.02rem; font-weight: 650; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .48rem; margin-top: .75rem; }
.copy-button { color: var(--ink); border-color: #b5ddff72; background: #14285089; }
.copy-button:hover { background: #1f478a; border-color: var(--brand-cyan); }
.copy-status { min-width: 100%; overflow-wrap: anywhere; color: var(--bright-ink); font-size: .84rem; }
.copy-status:empty { display: none; }
.contact-note { margin-top: .5rem; color: var(--muted); font-size: .84rem; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; min-height: 7rem; padding-block: 1.65rem; }
.site-footer p, .back-link { color: var(--muted); font-size: .88rem; }
.back-link { padding-block: .7rem; text-decoration: underline; text-underline-offset: .22rem; }
.back-link:hover { color: var(--ink); }

.project-dialog { width: min(42rem, 100% - 2rem); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; border: 1px solid var(--stroke); border-radius: 1rem; color: var(--ink); background: var(--surface); }
.project-dialog::backdrop { background: #050a17db; backdrop-filter: blur(7px); }
.project-dialog-inner { position: relative; }
.close-project { position: absolute; z-index: 1; top: .8rem; right: .8rem; cursor: pointer; }
.close-project .plus-icon { position: relative; width: 1rem; height: 1rem; transform: rotate(45deg); }
.dialog-image { width: 100%; height: auto; max-height: 46vh; object-fit: cover; }
.dialog-copy { padding: clamp(1.25rem, 4vw, 2.5rem); }
.dialog-copy h2 { margin-block: .35rem .6rem; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 550; letter-spacing: -.055em; line-height: 1.08; }
.dialog-copy p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.project-detail-list { display: grid; gap: .72rem; margin: 1.35rem 0 0; }
.project-detail-list > div {
  display: grid;
  grid-template-columns: minmax(6.75rem, .44fr) minmax(0, 1fr);
  gap: .65rem;
  padding-block-start: .85rem;
  border-block-start: 1px solid var(--stroke);
}
.project-detail-list dt { color: var(--ink); font-weight: 700; }
.project-detail-list dd { margin: 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 52rem) {
  .site-header { min-height: 4.45rem; justify-content: flex-end; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .42rem; min-height: 2.65rem; padding: .35rem .65rem; border: 1px solid #9ae5ff; border-radius: .68rem; color: #08152d; background: var(--brand-cyan); font-size: .875rem; font-weight: 800; cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { width: .75rem; height: 1px; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; left: 0; background: currentColor; content: ""; }
  .menu-icon::before { transform: translateY(-3px); }
  .menu-icon::after { transform: translateY(3px); }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
  .site-nav { display: none; position: absolute; inset: calc(100% - .25rem) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: .55rem .8rem .85rem; border: 1px solid var(--stroke); border-radius: .85rem; background: var(--surface); box-shadow: 0 1rem 2rem #03091598; }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.button) { padding-block: .8rem; border-bottom: 1px solid var(--line); }
  .nav-contact { position: static; margin-block-start: .65rem; }
}

@media (max-width: 47rem) {
  .hero { min-height: auto; padding: clamp(6.1rem, 15vw, 8rem) 0 4rem; }
  .hero-atmosphere { background-position: 54% 45%; }
  .hero-visual::before { background: radial-gradient(ellipse at 10% 8%, #1649db58, transparent 51%), radial-gradient(ellipse at 83% 81%, #2586e063, transparent 55%); }
  .hero-visual::after { background: linear-gradient(180deg, #070b1630, #070b169e 25%, #070b16ae 48%, #070b1605 76%, var(--page) 100%); }
  .hero-content { justify-items: start; text-align: start; }
  .hero h1 { font-size: clamp(2.58rem, 8.25vw, 4.35rem); margin-block-start: 1.05rem; line-height: 1.045; text-wrap: initial; }
  .hero-intro { max-width: 22rem; margin-top: 1rem; }
  .hero-actions { justify-content: start; margin-top: 1.2rem; }
  .hero-content .button { min-height: 2.75rem; padding-inline: .85rem; }
  .hero-foot { gap: .9rem; margin-top: 2rem; }
  .hero-foot > div { padding-block: .7rem .25rem; }
  .studio, .work-heading, .work-grid, .method-grid, .contact-main { grid-template-columns: minmax(0, 1fr); }
  .studio { gap: 1.25rem; }
  .studio-art { aspect-ratio: 1.38; }
  .section-heading h2 { font-size: clamp(2.25rem, 7.5vw, 3.7rem); text-wrap: initial; }
  .work-heading { gap: .7rem; }
  .work-heading > p { justify-self: start; }
  .project-card-featured .project-trigger { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .project-card-featured .project-caption { display: flex; justify-content: space-between; gap: .85rem; padding: 1.2rem 1rem; }
  .project-card-featured .project-name { font-size: clamp(1.65rem, 6.1vw, 2.5rem); }
  .project-card-featured .project-type { margin-block-start: .42rem; }
  .method-grid > li { padding: 1rem; }
  .method-grid > li + li { border-inline-start: 0; border-block-start: 1px solid var(--stroke); }
  .method-grid h3 { margin-top: .75rem; }
  .contact h2 { font-size: clamp(2rem, 9.6vw, 4.4rem); }
  .site-footer p { order: 2; flex-basis: 100%; }
}

@media (max-width: 23rem) {
  .project-detail-list > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .hero h1 { font-size: clamp(2rem, 10.7vw, 2.58rem); }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .hero-atmosphere { animation: atmosphere-enter 1.35s ease-out both; }
  [data-reveal].is-awaiting-reveal:not(:focus-within):not(:target) { opacity: 0; translate: 0 .65rem; }
  [data-reveal].is-visible:not(:focus-within) { transition: opacity 480ms ease-out, translate 480ms ease-out; }
}

@keyframes atmosphere-enter {
  from { transform: scale(1.02); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
