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

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/ibm-plex-mono-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0b1224;
  --surface: #101b35;
  --ink: #f3f5f8;
  --muted: #aebbd1;
  --line: #354461;
  --accent: #b8bfff;
  --signal: #315eff;
  --paper: #f3f5f8;
  --paper-muted: #43516b;
  --paper-line: #c4cce1;
  --button-ink: #101b35;
  --button: #b8bfff;
  --button-hover: #e3e6ff;
  --mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(1.25rem, 5.3vw, 5.4rem);
  --ease: cubic-bezier(.22, .75, .19, 1);
  --block: clamp(4rem, 10vw, 9.5rem);
  font: 400 1rem/1.58 Manrope, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body, h1, h2, h3, p, figure, ol { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--button-ink); }
h1, h2, h3 { font-weight: 720; line-height: 1; letter-spacing: -.047em; }
h2 { font-size: clamp(2.65rem, 5.4vw, 6rem); }
h3 { font-size: clamp(1.45rem, 2.7vw, 2.65rem); }
p { color: var(--muted); }
.shell { width: min(calc(100% - var(--gutter) * 2), 94rem); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; z-index: 9; top: .6rem; left: .6rem; padding: .68rem 1rem; background: var(--accent); color: var(--button-ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 5.2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; justify-self: start; align-items: center; min-height: 2.75rem; white-space: nowrap; }
.brand img { width: clamp(7.4rem, 11.8vw, 10rem); height: auto; }
.main-nav, .footer-links { display: flex; gap: clamp(1rem, 2.8vw, 3.2rem); font-size: .91rem; font-weight: 655; }
.main-nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.main-nav a:hover, .footer-links a:hover { color: var(--accent); }
.header-quote { justify-self: end; }
.fold-link, .text-link, .action-cut { width: fit-content; max-width: 100%; min-height: 2.75rem; align-items: center; justify-content: center; display: inline-flex; font-size: .92rem; line-height: 1.25; font-weight: 750; }
.text-link, .fold-link { color: inherit; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.text-link { text-decoration-line: underline; }
.text-link:hover, .fold-link:hover { color: var(--accent); }
.service-directory { display: flex; flex-wrap: wrap; column-gap: 1.75rem; margin-top: 1rem; }
.fold-link { position: relative; padding-inline: 0 1rem; border: 0; background: transparent; }
.fold-link::after { content: ''; position: absolute; right: 0; bottom: .55rem; width: .63rem; height: .63rem; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transition: transform .24s var(--ease); }
.fold-link:hover::after { transform: translate(.14rem,.14rem); }

.action-cut { --cut: .82rem; position: relative; isolation: isolate; min-height: 3.3rem; padding: .76rem 1.65rem .76rem 1.02rem; border: 0; color: #111a35; background: transparent; font-weight: 800; text-align: left; }
.action-cut::before, .action-cut::after { content: ''; position: absolute; z-index: -1; inset: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.action-cut::before { background: var(--button); transition: background .25s var(--ease); }
.action-cut::after { inset: .26rem .25rem auto auto; width: 1.1rem; height: .83rem; background: currentColor; mask: url('/assets/spacedap-symbol.svg') center / contain no-repeat; clip-path: none; opacity: .74; }
.action-cut:hover::before { background: var(--button-hover); }

.hero { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--line); }
.hero-layout {
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-height: clamp(40rem, calc(100svh - 5.2rem), 58rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: 'title art' 'copy art';
  gap: 1.8rem 0;
  align-items: end;
  padding-block: clamp(4rem, 11vh, 8rem) clamp(2.4rem, 8vh, 5rem);
}
.hero h1 { grid-area: title; position: relative; z-index: 2; font-size: clamp(4rem, 8.1vw, 10rem); font-weight: 740; line-height: .86; letter-spacing: -.073em; width: max-content; max-width: 100%; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: .1em; }
.hero-accent { color: var(--accent); }
.hero-copy { grid-area: copy; position: relative; z-index: 2; align-self: end; }
.hero-copy p { max-width: 43ch; font-size: clamp(1rem, 1.35vw, 1.23rem); line-height: 1.58; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.2rem; margin-top: 1.3rem; }
.hero-routes {
  --route-gap: clamp(.6rem, 1.4vw, 1.15rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--route-gap);
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(1.25rem, 3vw, 2.1rem);
  border-block: 1px solid var(--line);
}
.hero-routes a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 690;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .3em;
}
.hero-routes a + a { gap: var(--route-gap); }
.hero-routes a + a::before {
  content: '';
  inline-size: 1px;
  block-size: .85rem;
  background: var(--line);
}
.hero-routes a:hover { color: var(--ink); text-decoration-color: var(--accent); }
.hero-visual { position: absolute; z-index: 1; right: calc(-1 * var(--gutter)); top: 50%; width: min(64%, 67rem); transform: translateY(-49%); pointer-events: none; }
.hero-art { position: relative; background: radial-gradient(ellipse 48% 46% at 52% 52%, #192e62 0%, #142247 48%, transparent 100%); }
.hero-mark { width: 100%; height: auto; }
.hero-motion { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-art.has-live-mark .hero-mark { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: enter-orbit .9s var(--ease) both; }
  @keyframes enter-orbit { from { opacity: .36; scale: .95; } }
}

.services { padding-block: var(--block); background: var(--surface); }
.services h2 { margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.service-layout { display: grid; grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr); gap: clamp(1.5rem, 5.5vw, 6rem); align-items: stretch; }
.service-display { min-width: 0; display: grid; grid-template-rows: 1fr auto; background: #253453; position: relative; border-inline-start: 1px solid #9aafe5; }
.service-display img { width: 100%; height: 100%; max-height: 24rem; object-fit: cover; object-position: top; }
.service-display figcaption { padding: .65rem 1rem; color: #d6ddf1; font-size: .85rem; }
.service-list { border-top: 1px solid #546687; }
.service-row { border-bottom: 1px solid #546687; }
.service-row summary { list-style: none; display: flex; justify-content: space-between; gap: .75rem; align-items: center; min-height: clamp(4.2rem, 6.8vw, 6.8rem); padding: .85rem 0; font-size: clamp(1.35rem, 2.6vw, 2.75rem); font-weight: 720; letter-spacing: -.04em; line-height: 1.1; }
.service-row summary::-webkit-details-marker { display: none; }
.service-indicator { display: block; width: 1.42rem; aspect-ratio: 1; border: 1px solid var(--accent); border-radius: 0 65% 65% 0; flex-shrink: 0; transition: background .2s var(--ease), transform .2s var(--ease); }
.service-row[open] .service-indicator { background: var(--accent); transform: rotate(90deg); }
.service-row p { max-width: 49ch; padding: 0 2rem 1.2rem 0; color: #c9d5eb; }

.process { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); align-items: start; gap: clamp(1.8rem, 6vw, 6rem); padding-block: var(--block); }
.process h2 { max-width: 12ch; font-size: clamp(2.4rem, 4.7vw, 5.2rem); }
.process ol { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process li { padding: 1.4rem 0 1.4rem 1.2rem; border-bottom: 1px solid var(--line); position: relative; }
.process li::before { content: ''; position: absolute; top: 1.7rem; left: 0; width: .58rem; height: .5rem; border: 1px solid var(--accent); border-radius: 0 65% 65% 0; }
.process h3 { font-size: clamp(1.14rem, 1.85vw, 1.63rem); }
.process p { margin-top: .6rem; max-width: 54ch; }

.contact { color-scheme: light; background: var(--paper); color: var(--button-ink); }
.contact-inner { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); align-items: end; gap: clamp(2rem, 7vw, 7rem); padding-block: var(--block); }
.contact h2 { font-size: clamp(3.12rem, 6.15vw, 7.5rem); max-width: 12ch; }
.contact-copy > p { color: var(--paper-muted); font-size: 1.04rem; max-width: 51ch; margin: 1.35rem 0; }
.contact-copy .chosen-model { color: var(--button-ink); font-weight: 750; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.1rem; }
.contact .action-cut { --button: var(--button-ink); --button-hover: #233c7c; color: white; }
.contact .text-link:hover { color: #193eaa; }
.contact :focus-visible, .models :focus-visible { outline-color: #315eff; }
.contact-links { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; margin-top: 1.2rem; border-top: 1px solid var(--paper-line); }
.contact-links a { display: inline-flex; align-items: start; min-height: 2.75rem; padding-block: .7rem; }
.contact-links a > span { display: grid; line-height: 1.32; }
.contact-links strong { font-size: .92rem; }
.contact-links a > span > span { color: var(--paper-muted); font-size: .83rem; }
.contact-links a:hover strong { text-decoration: underline; text-underline-offset: .22em; }
.contact-portrait { color: var(--ink); background: var(--surface); position: relative; isolation: isolate; }
.contact-portrait img { width: 100%; height: auto; aspect-ratio: 1.07; object-fit: cover; object-position: center 38%; }
.contact-portrait::after { content: ''; position: absolute; top: 0; right: 0; width: clamp(1rem, 6vw, 5.3rem); aspect-ratio: 1; background: var(--paper); clip-path: polygon(0 0,100% 0,100% 100%); }
.contact-portrait figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .75rem; padding: .78rem 1rem; }
.contact-portrait figcaption span { color: var(--muted); font-size: .79rem; }

.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.8rem; padding-block: 2rem; }
.footer p { margin-top: .3rem; font-size: .8rem; }
.footer-links { flex-wrap: wrap; gap: .25rem 1.45rem; }
.footer-links span { margin-left: .35em; color: var(--muted); white-space: nowrap; }

.brief-dialog { width: min(100% - 1.75rem, 37rem); max-height: calc(100dvh - 1.75rem); padding: clamp(1.25rem, 4vw, 2.1rem); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
.brief-dialog::backdrop { background: #070e1ddb; }
.brief-heading, .brief-actions { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.brief-heading h2 { font-size: clamp(1.95rem, 4.5vw, 2.9rem); }
.brief-heading p { margin-top: .55rem; font-size: .94rem; }
.close-dialog { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; color: var(--ink); background: transparent; }
.close-dialog:hover { color: var(--accent); }
.brief-form { display: grid; gap: .48rem; margin-top: 1.35rem; }
.brief-form label { font-size: .91rem; font-weight: 740; }
.brief-form input, .brief-form textarea, .brief-form select { width: 100%; min-width: 0; min-height: 2.85rem; padding: .66rem .75rem; margin-bottom: .48rem; border: 1px solid #667797; border-radius: 0; background: var(--canvas); color: var(--ink); }
.brief-form textarea { resize: vertical; }
.brief-actions { justify-content: start; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
.brief-input-hint, .brief-privacy { color: var(--muted); font-size: .84rem; }
.brief-input-hint { margin: -.55rem 0 .55rem; }
.brief-privacy { margin: .15rem 0 .55rem; }
.brief-privacy a { text-decoration: underline; text-underline-offset: .18em; }
.brief-channel { color: var(--ink); border: 0; padding: 0; background: transparent; }
.brief-actions button:disabled { opacity: .62; cursor: wait; }
.brief-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.brief-status:empty { margin: 0; }
.brief-confirmation { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.brief-confirmation p { margin-block: .9rem 1.2rem; }
.brief-confirmation strong { color: var(--ink); font-family: var(--mono); }
.privacy-copy { max-width: 52rem; margin-inline: auto; padding-block: clamp(3.5rem, 8vw, 7rem); }
.privacy-copy h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); }
.privacy-copy h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.15; margin-top: 2.8rem; }
.privacy-copy p { margin-top: .9rem; }
.brief-status { font-size: .92rem; }

@media (max-width: 960px) {
  .site-header { gap: 1rem; }
  .hero h1 { font-size: clamp(3.65rem, 8.1vw, 5.25rem); }
  .hero-visual { width: 67%; right: calc(-1 * var(--gutter)); }
}

@media (max-width: 780px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 4.25rem; gap: .65rem; }
  .main-nav, .header-quote { display: none; }
  .hero-layout { min-height: clamp(38rem, 84svh, 45rem); }
  .service-layout { gap: 2rem; }
}

@media (max-width: 620px) {
  .hero-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto auto; grid-template-areas: 'title' 'copy' 'art'; min-height: 0; gap: 1.05rem; padding-block: clamp(1.65rem, 6vw, 3.2rem) 1rem; }
  .hero h1 { width: auto; font-size: clamp(2.65rem,11.5vw,4.65rem); line-height: .9; }
  .hero-visual { grid-area: art; position: relative; width: min(92%,28rem); top: auto; right: auto; transform: none; justify-self: center; margin-block: -1.65rem -1.1rem; }
  .hero-copy p { font-size: .97rem; line-height: 1.53; }
  .hero-actions { margin-top: .85rem; }
  .hero-routes { --route-gap: .45rem; margin-top: 1rem; }
  .hero-routes a { font-size: .78rem; }
  .service-layout, .process, .contact-inner { grid-template-columns: 1fr; }
  .service-layout { gap: 1.45rem; }
  .service-display { grid-row: 2; }
  .contact-inner { gap: 1.35rem; }
  .footer-inner { flex-direction: column; align-items: start; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-motion { display: none; }
  .hero-art.has-live-mark .hero-mark { visibility: visible; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

