@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("assets/fonts/barlow-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("assets/fonts/barlow-latin-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #090b11;
  --panel: #11151e;
  --ink: #f2f4f9;
  --copy: #bdc4d0;
  --muted: #a3adbe;
  --line: #343c4a;
  --accent: #a4b8ff;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "Space Mono", Consolas, monospace;
  font: 100%/1.55 Barlow, "Segoe UI", sans-serif;
  background: var(--ground);
  color: var(--ink);
}
* { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
body { font-size: 1.0625rem; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 6.65vw, 6.25rem); line-height: .97; letter-spacing: -.065em; }
h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); line-height: 1.05; letter-spacing: -.058em; }
h3 { font-size: clamp(1.45rem, 2.2vw, 2.1rem); line-height: 1.12; letter-spacing: -.045em; }
h4 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.025em; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { color: #d7e1ff; }
:focus-visible { outline: 2px solid #d5e0ff; outline-offset: 4px; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - clamp(2.5rem, 9vw, 9rem)), 78rem); margin-inline: auto; }
.skip, .visually-hidden { position: absolute; }
.visually-hidden { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { z-index: 5; top: 8px; left: 8px; padding: .7rem; background: var(--ground); transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead { background: #07090e; border-bottom: 1px solid #272d39; }
.nav-bar, nav { display: flex; align-items: center; }
.nav-bar { justify-content: space-between; min-height: 7rem; gap: 1rem; padding-block: .625rem; }
.signature { width: clamp(11.875rem, 19.2vw, 14.125rem); min-width: 0; }
.signature svg { display: block; width: 100%; height: auto; }
nav { gap: clamp(.85rem, 3.3vw, 3rem); flex-shrink: 0; white-space: nowrap; }
nav a, .action, .contact button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
nav a { font: 400 .875rem/1.2 var(--mono); color: #dce0ea; }
.nav-contact { padding-inline: 1.1rem; border: 1px solid #5a6377; border-radius: 2px; }
.nav-contact:hover { border-color: var(--accent); background: #192032; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ground); }
.hero-layout { min-height: clamp(27rem, 37vw, 35rem); display: flex; align-items: center; }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 39%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground) 0%, transparent 27%), linear-gradient(0deg, var(--ground), transparent 11%, transparent 94%, #090b1144); }
.intro { width: min(48%, 39rem); position: relative; padding-block: clamp(2.4rem, 4.5vw, 4.6rem); }
.eyebrow { font: 400 .8125rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.studio-label { display: flex; align-items: center; gap: .72rem; color: #c1cfff; }
.studio-label::before { content: ""; width: 1.85rem; height: .61rem; flex: none; background: repeating-linear-gradient(115deg, transparent 0 3px, #9db3ff 3px 6px, transparent 6px 8px); }
.intro h1 { margin-block: 1.15rem 1rem; }
.intro h1 span { display: block; color: var(--accent); }
.intro-text { max-width: 49ch; color: var(--copy); line-height: 1.55; }
.action, .contact button { background: var(--accent); color: #0a1023; border: none; font: 600 1rem/1.2 var(--display); padding: .9rem 1.35rem; border-radius: 2px; }
.action { margin-top: 1.4rem; }
.action:hover, .contact button:hover { background: #c4d2ff; color: #070b14; }

.project-band { background: #10131b; border-block: 1px solid #2c3340; }
.projects { padding-block: clamp(2.4rem, 4.4vw, 4.2rem); }
.work-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.3rem; margin-bottom: 1.55rem; }
#mechanicaledge, .project-picker [aria-controls="mechanicaledge"] { --project-accent: #ffc18a; --project-glow: #6e4d38; }
#mydentitykey, .project-picker [aria-controls="mydentitykey"] { --project-accent: #c2baff; --project-glow: #54577e; }
.project-picker { display: flex; flex-wrap: wrap; gap: .45rem; }
.project-picker button { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 2px; background: #11151d; color: var(--copy); font: 600 .93rem/1.2 Barlow, sans-serif; text-align: left; }
.project-picker button:hover, .project-picker button[aria-pressed="true"] { border-color: var(--project-glow); color: var(--ink); }
.project-progress { position: absolute; z-index: -1; inset: 0; pointer-events: none; transform: scaleX(0); transform-origin: left; background: color-mix(in srgb, var(--project-glow) 28%, transparent); border-bottom: 2px solid var(--project-accent); }
.project-picker button[aria-pressed="true"]::before { content: ""; position: absolute; z-index: -2; inset: auto 0 0; height: 2px; background: var(--project-glow); }
.project-picker img { width: 2.45rem; height: 1.6rem; object-fit: cover; object-position: top; }
.project { min-width: 0; scroll-margin-top: 1rem; }
.project + .project { margin-top: 2rem; }
.project-slides.is-ready { display: grid; isolation: isolate; }
.project-slides.is-ready > .project { grid-area: 1 / 1; margin: 0; align-self: start; }
.project-slides.is-ready > .project[inert] { visibility: hidden; opacity: 0; }
@supports (grid-template-rows: subgrid) {
  .project-slides.is-ready > .project { display: grid; grid-area: 1 / 1 / span 2 / 2; grid-template-rows: subgrid; align-self: stretch; }
}
@media (prefers-reduced-motion: no-preference) {
  .project-slides.can-fade > .project { transition: opacity 600ms ease-in-out, visibility 0s; }
  .project-slides.can-fade > .project[inert] { transition-delay: 0s, 600ms; }
}
@media (prefers-reduced-motion: reduce) {
  .project-progress { opacity: 0; }
  .project-picker button[aria-pressed="true"]::before { background: var(--project-accent); }
}
@media (forced-colors: active) {
  .project-picker button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
}
.project-feature { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); overflow: hidden; border: 1px solid #434b5b; border-radius: 3px; background: #141922; }
.feature-copy { align-self: center; padding: clamp(1.4rem, 3.7vw, 3.6rem); }
.category { color: var(--project-accent); margin-bottom: 1.1rem; }
.feature-copy h3 { font-size: clamp(2rem, 3.25vw, 3.4rem); max-width: 19ch; }
.feature-summary { max-width: 38ch; margin-top: 1rem; color: var(--copy); }
.feature-link, .demo-link, .project-inquiry { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.feature-link { margin-top: .7rem; color: var(--ink); text-decoration-color: var(--project-accent); }
.feature-link:hover { color: var(--project-accent); }
.product-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.feature-art { position: relative; display: grid; align-items: center; padding: clamp(1rem, 3vw, 2.75rem); border-left: 1px solid #3c4351; background-color: #1d222b; background-image: linear-gradient(90deg, #d2d9e309 1px, transparent 1px), linear-gradient(#d2d9e309 1px, transparent 1px), radial-gradient(ellipse at 75% 100%, var(--project-glow), transparent 78%); background-size: 24px 24px, 24px 24px, auto; }
.feature-art::after { content: ""; position: absolute; width: 1.4rem; height: .23rem; right: .65rem; bottom: .65rem; background: var(--project-accent); }
.feature-art img { width: 100%; height: auto; outline: 1px solid #a3adbe55; box-shadow: 0 .85rem 2rem #05070c80; }
.case-study > summary, .more-screens summary { padding-block: .9rem; width: fit-content; min-height: 44px; font: 400 .875rem/1.5 var(--mono); color: var(--accent); }
.case-study > summary::marker, .more-screens summary::marker { color: var(--accent); }
.story { max-width: 65ch; color: var(--copy); }
.case-study > .story { margin-block: .3rem 1.6rem; }
.story p + p { margin-top: .6rem; }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.screen-frame { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid #515c70; border-radius: 3px; background: var(--panel); }
.screen-frame:hover { border-color: var(--accent); }
.screen-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mobile-stage { display: grid; place-items: center; background: radial-gradient(ellipse at 45% 75%, #4d5075, #202433 62%, #171b24); }
.handset { position: absolute; height: 84%; aspect-ratio: 386 / 840; border-radius: 18% / 8.3%; border: 3px solid #313644; overflow: hidden; transform: rotate(-7deg); box-shadow: 8px 12px 18px #06080c88; }
.handset img { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: .9rem; }
figcaption p { margin-top: .35rem; max-width: 54ch; color: var(--copy); }
.more-screens { margin-top: 1.2rem; border-block: 1px solid var(--line); }
.more-screens .screens { padding-block: .5rem 1.55rem; }
.project-inquiry { margin-top: 1rem; }

.services { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(1.8rem, 6vw, 5.8rem); align-items: start; padding-block: clamp(3.2rem, 6vw, 6rem); }
.services-intro p { max-width: 47ch; color: var(--copy); margin-top: 1rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: grid; grid-template-columns: clamp(8rem, 13vw, 12.4rem) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }
.service-list li + li { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.service-image { display: block; border: 1px solid #424b5d; border-radius: 2px; background: #11151b; overflow: hidden; }
.service-image img { width: 100%; height: auto; }
.service-list h3 { font-size: clamp(1.35rem, 1.85vw, 1.75rem); margin-bottom: .35rem; }
.service-list p { color: var(--copy); }
.contact { color-scheme: light; --ink: #111727; --copy: #2d374b; --accent: #25376a; --line: #8492af; background-color: #cdd8ef; color: var(--ink); border-top: 1px solid #e4ebff; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(2rem, 9vw, 9rem); padding-block: clamp(3.2rem, 6vw, 5.75rem); }
.contact-copy h2 { max-width: 13ch; margin-block: .85rem 1.2rem; }
.contact-copy > p:not(.eyebrow) { color: var(--copy); max-width: 38ch; }
.field { margin-bottom: 1.12rem; }
label { display: block; font: 600 1rem/1.4 var(--display); margin-bottom: .45rem; }
input, textarea { display: block; width: 100%; color: var(--ink); background: #eff3fc; border: 1px solid var(--line); border-radius: 2px; padding: .74rem .88rem; line-height: 1.4; }
textarea { min-height: 7.5rem; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #991d3b; }
.error { display: block; color: #7a1531; }
.error:not(:empty), #form-status:not(:empty) { margin-top: .5rem; }
.contact button { background: #172542; color: #f6f8ff; }
.contact button:hover { background: #2d416d; color: white; }
.contact :focus-visible { outline-color: #253e88; }
button:disabled { opacity: .7; cursor: wait; }
#form-status { font-weight: 600; }
.preview-note { font: 400 .8125rem/1.55 var(--mono); color: #39465f; margin-top: .8rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.6rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand p { display: grid; }
.footer-brand strong { font-family: var(--display); font-weight: 700; }
.footer-brand small, footer > a { font: .8125rem/1.5 var(--mono); color: var(--muted); }

@media (min-width: 1024px) and (hover: hover), (min-width: 1400px) {
  .hero-layout { display: grid; grid-template-columns: 48% minmax(0, 1fr); }
  .intro { grid-area: 1 / 1; width: auto; }
  .hero-visual { grid-area: 1 / 2; position: relative; inset: auto; }
  .hero-visual img { height: auto; }
  .hero-visual::after {
    background: linear-gradient(90deg, var(--ground), transparent 11% 91%, var(--ground)),
                linear-gradient(0deg, var(--ground), transparent 6% 94%, var(--ground));
  }
}

@media (max-width: 820px) {
  .nav-bar.wrap { width: calc(100% - 2rem); gap: .6rem; }
  .nav-bar nav { gap: .75rem; }
  .nav-contact { padding-inline: .55rem; }
  .hero-layout { min-height: 26rem; }
  .intro { width: 55%; }
  h1 { font-size: clamp(3rem, 7.5vw, 4.1rem); }
  .hero-visual { left: 44%; }
  .hero-visual img { object-position: 52% center; }
  .services { grid-template-columns: 1fr; }
  .services-intro p { max-width: 67ch; }
  .service-list li { grid-template-columns: clamp(8rem, 25vw, 12rem) 1fr; }
}
@media (max-width: 44rem) {
  .nav-bar { min-height: clamp(5.25rem, 14.5vw, 6.25rem); }
  .signature { width: clamp(9.15rem, 27.7vw, 11.875rem); }
  nav a { font-size: .8125rem; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero-layout { display: grid; min-height: auto; }
  .intro, .hero-visual { grid-area: 1 / 1; }
  .hero-visual { position: relative; inset: auto; height: clamp(11rem, 52vw, 17rem); width: calc(100% + 2.5rem); margin-inline: -1.25rem; grid-row: 2; }
  .hero-visual img { object-position: 50% 52%; }
  .hero-visual::after { background: linear-gradient(180deg, var(--ground), transparent 18%, transparent 92%, #090b1166); }
  .intro { width: 100%; padding-block: 2rem .55rem; }
  .intro h1 { margin-block: .85rem; }
  .intro-text { max-width: 52ch; }
  .action { margin-top: 1rem; }
  .work-heading { align-items: flex-start; }
  .project-picker { width: 100%; }
  .project-picker button { flex: 1 1 0; }
  .project-feature, .screens, .contact-layout { grid-template-columns: 1fr; }
  .project-feature { grid-template-rows: auto 1fr; }
  .feature-art { grid-row: 1; border-left: 0; border-bottom: 1px solid var(--line); }
  .feature-art img { max-height: 18rem; width: auto; justify-self: center; }
  .contact-copy h2 { max-width: 18ch; }
}
@media (max-width: 36rem) {
  .nav-bar.wrap { width: calc(100% - 1.5rem); min-height: 9.5rem; flex-direction: column; justify-content: center; gap: .5rem; padding-block: 1rem; }
  .signature { width: min(45.2%, 10.75rem); }
  .nav-bar nav { width: min(100%, 19rem); justify-content: space-between; }
}
@media (max-width: 430px) {
  .service-list li { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .service-image { width: min(70%, 13rem); }
  .project-picker img { display: none; }
}
