:root {
  color-scheme: dark;
  --paper: #0d1316;
  --panel: #131e22;
  --ink: #edf4f1;
  --muted: #a3b3b7;
  --accent: #5de4b0;
  --line: #2a373b;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--paper); }
.shell { width: min(100% - 6rem, 80rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--accent); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand > span { font-size: 2.05rem; font-weight: 780; line-height: .88; letter-spacing: -.065em; }
.brand > .wist-wordmark { letter-spacing: .025em; text-align: center; }
.brand-sub { display: block; margin-top: .38rem; font-size: .61rem; font-weight: 550; letter-spacing: .12em; }
.masthead .brand > span { font-size: 2.65rem; }
.masthead .brand-sub { font-size: .86rem; letter-spacing: .08em; }
nav { display: flex; align-items: center; gap: clamp(1.4rem, 3.2vw, 3rem); font-size: .85rem; font-weight: 600; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a:hover, .text-link:hover { color: var(--accent); }
.nav-contact { gap: 1.8rem; border-bottom: 1px solid var(--accent); }
.nav-contact span { font-size: 1.15rem; }
.home-hero { position: relative; isolation: isolate; }
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#5de4b00c 1px, transparent 1px), linear-gradient(90deg, #5de4b00c 1px, transparent 1px), radial-gradient(ellipse at 55% 35%, #163128, transparent 78%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.hero-backdrop svg { display: block; width: 100%; height: 100%; }
.backdrop-traces { stroke: var(--accent); opacity: .24; }
.backdrop-signals { opacity: .48; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; padding-block: clamp(4rem, 7vw, 7rem); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--muted); font: 600 .67rem/1.6 "Courier New", monospace; text-transform: uppercase; letter-spacing: .13em; }
.hero .eyebrow { display: flex; align-items: center; gap: .6rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.055em; line-height: 1.08; text-wrap: balance; }
h1 { margin-top: 1.65rem; font-size: clamp(3.2rem, 6.7vw, 6.3rem); letter-spacing: -.065em; }
em { font-style: normal; }
h2 { font-size: clamp(2.3rem, 3.8vw, 3.6rem); }
h3 { font-size: 1.5rem; letter-spacing: -.035em; }
.hero-lead { max-width: 43ch; margin-top: 1.65rem; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 52px; padding: .85rem 1.25rem; background: var(--accent); color: var(--paper); font-size: .82rem; font-weight: 650; border: 1px solid transparent; border-radius: 4px; transition: background-color .2s ease, transform .2s ease; }
.button span { font-size: 1.2rem; line-height: 1; }
.button:hover { background: #93f2cf; transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; font-size: .81rem; font-weight: 600; }
.hero-note { margin-top: 2.2rem; font-size: .68rem; color: var(--muted); }
.hero-art { position: relative; padding: 1.2rem 0; border: 1px solid #314b43; border-radius: 10px; background-color: #101c20; background-image: linear-gradient(#5de4b00c 1px, transparent 1px), linear-gradient(90deg, #5de4b00c 1px, transparent 1px), radial-gradient(ellipse at 50% 45%, #1c4032, #10191d 75%); background-size: 44px 44px, 44px 44px, 100% 100%; }
.art-heading, .art-caption { display: flex; align-items: center; padding-inline: 1.3rem; color: var(--muted); font: .6rem/1.5 "Courier New", monospace; letter-spacing: .13em; }
.chip-diagram { display: block; width: 100%; height: auto; }
.chip-base { --lift: 24px; }
.chip-die { --lift: -58px; }
.chip-mark { --lift: -116px; }
.chip-signals > * {
  opacity: 0;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 18 82;
  filter: drop-shadow(0 0 4px var(--accent));
}
.backdrop-signals > * { stroke-width: 2; }
.art-caption { justify-content: flex-end; }
.capability-strip { padding-block: 1.4rem; border-block: 1px solid var(--line); }
.capability-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(.88rem, 1.2vw, 1rem);
  font-weight: 550;
}
.capability-copy { display: none; }
.section-space { padding-block: clamp(4.5rem, 8vw, 8rem); }
.solutions { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); }
.section-intro .eyebrow, .section-heading .eyebrow { margin-bottom: 1.4rem; }
.section-intro > p:last-child { max-width: 37ch; margin-top: 1.5rem; color: var(--muted); font-size: .96rem; }
.service { display: grid; grid-template-columns: auto 1fr auto; align-items: start; column-gap: 1.2rem; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-number { padding-top: .15rem; color: var(--muted); font: .68rem/1.5 "Courier New", monospace; }
.service p { margin-top: .65rem; color: var(--muted); font-size: .88rem; }
.service-icon { color: var(--ink); }
.service-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.tags li { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 2px; font-size: .62rem; }
.approach { background: var(--panel); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.section-heading > p { max-width: 36ch; font-size: .95rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem; padding: 0; margin: 3rem 0 0; list-style: none; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.step-number { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.4rem; font: .75rem/1.5 "Courier New", monospace; color: var(--muted); }
.step-number span { font-size: 1.2rem; }
.steps p { margin-top: .8rem; max-width: 36ch; font-size: .88rem; color: var(--muted); }
.work .section-heading { margin-bottom: 2.5rem; }
.work-brand { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2rem); padding: clamp(1.4rem, 4vw, 2.5rem); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.work-brand img { width: clamp(3.5rem, 7vw, 4.5rem); }
.work-brand p { margin-top: .45rem; color: var(--muted); font-size: .95rem; }
.contact { background: var(--panel); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(4rem, 7vw, 7rem); }
.contact h2 { font-size: clamp(2.7rem, 5.5vw, 5.3rem); }
.contact-lead { max-width: 42ch; margin-top: 1.25rem; color: var(--muted); }
.contact-email { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; margin-top: 1rem; border-bottom: 1px solid var(--line); color: var(--accent); font-size: clamp(.9rem, 1.6vw, 1.4rem); font-weight: 550; letter-spacing: -.025em; }
.contact-email:hover { text-decoration: underline; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact-field { display: grid; gap: .45rem; }
.contact-field label { font-size: .9rem; font-weight: 650; }
.contact-wide { grid-column: 1 / -1; }
.contact-field input, .contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #617379;
  border-radius: 4px;
  font: inherit;
}
.contact-field textarea { resize: vertical; }
.contact-field :is(input, textarea):focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form .button { font-family: inherit; cursor: pointer; }
.contact-note { margin-top: .75rem; font-size: .8rem; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2.2rem; }
.footer-inner > p { font-size: .7rem; color: var(--muted); }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 4rem); }
  .hero { gap: 1rem; }
  h1 { font-size: clamp(3.2rem, 6.6vw, 5.4rem); }
  .actions { gap: .7rem 1rem; }
  .solutions { gap: 3rem; }
  .service { column-gap: .8rem; }
  .service-icon { display: none; }
  .steps { gap: 2rem; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 88px; gap: 1.5rem; }
  nav { gap: 1.2rem; }
  nav a[href="#approach"] { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; }
  h1 { font-size: clamp(3.2rem, 9vw, 5.5rem); }
  .hero-lead { max-width: 46ch; }
  .hero-note { margin-top: 1.5rem; }
  .hero-art { width: min(100%, 31rem); justify-self: center; }
  .chip-diagram { max-height: 21rem; }
  .solutions { grid-template-columns: 1fr; gap: 2rem; }
  .section-intro > p:last-child { max-width: 46ch; }
  .service-icon { display: block; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1.3rem; }
  .steps { gap: 1.4rem; }
  .steps h3 { font-size: 1.3rem; }
  .work-brand { grid-template-columns: auto 1fr; }
  .work-brand .button { grid-column: 1 / -1; justify-self: start; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-email { font-size: 1.2rem; }
  .footer-inner { flex-wrap: wrap; gap: 1.5rem; }
  .footer-inner > p { order: 3; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { flex-wrap: wrap; gap: .8rem; padding-block: 1.2rem .7rem; }
  .brand img { width: 36px; }
  .brand > span { font-size: 1.8rem; }
  .masthead .brand img { width: 46px; }
  .masthead .brand > span { font-size: 2.2rem; }
  .masthead .brand-sub { font-size: .76rem; }
  nav { width: 100%; justify-content: space-between; gap: .7rem; font-size: .76rem; }
  .nav-contact { gap: 1rem; }
  .hero { padding-top: 2.8rem; }
  h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .hero-lead { font-size: .97rem; }
  .actions { gap: .7rem; }
  .service { column-gap: .8rem; }
  .service h3 { font-size: 1.3rem; }
  .service-icon svg { width: 21px; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step-number { margin-bottom: 1rem; }
  .steps h3 { font-size: 1.5rem; }
  .contact-email { font-size: 1rem; gap: .5rem; }
  .contact-form { grid-template-columns: 1fr; }
}
@keyframes chip-lift {
  0%, 5%, 85%, 100% { transform: translateY(0); }
  29%, 61% { transform: translateY(var(--lift)); }
}
@keyframes circuit-signal {
  0%, 16% { opacity: 0; stroke-dashoffset: 18; }
  22% { opacity: 1; }
  59% { opacity: 1; }
  66%, 100% { opacity: 0; stroke-dashoffset: -100; }
}
@keyframes capability-scroll {
  to { transform: translateX(-50%); }
}
@keyframes enter-view {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes service-enter {
  from {
    opacity: 0;
    transform: translateX(calc(var(--service-direction, 1) * clamp(2.5rem, 12vw, 5rem)));
  }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.chip-base, .chip-die, .chip-mark) { animation: chip-lift 6s ease-in-out infinite; }
  .chip-signals > * { animation: circuit-signal 6s linear infinite; }
  .chip-diagram .chip-signals > :nth-child(even) { animation-delay: .35s; }
  .backdrop-signals > * { animation-duration: 9s; animation-delay: -3s; }
  .backdrop-signals > :nth-child(even) { animation-delay: -7.5s; }
  .hero-copy { animation: enter-view .7s ease-out both; }
  .capability-window {
    overflow: clip;
    mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
  }
  .capability-track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: capability-scroll 36s linear infinite;
  }
  .capability-list {
    display: flex;
    flex: 1 0 auto;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: 0;
    white-space: nowrap;
  }
  .capability-list li {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2vw, 2rem);
    padding-inline: clamp(.55rem, 1vw, 1rem);
  }
  .capability-list li::after {
    content: "✳" / "";
    color: var(--accent);
    opacity: .65;
  }
  @media (hover: hover) {
    .capability-window:hover .capability-track { animation-play-state: paused; }
  }
  .scroll-reveals :is(.service, .steps > li):not(.is-revealed, :focus-within) { opacity: 0; }
  .scroll-reveals .steps > li.is-revealed { animation: enter-view 1.05s ease-out both; }
  .scroll-reveals .service-list { overflow: clip; }
  .scroll-reveals .service.is-revealed { animation: service-enter 1.05s ease-out both; }
  .scroll-reveals .service:nth-child(even) { --service-direction: -1; }
  @media (width > 480px) {
    .scroll-reveals .steps > li.is-revealed:nth-child(2) { animation-delay: .16s; }
    .scroll-reveals .steps > li.is-revealed:nth-child(3) { animation-delay: .32s; }
  }
  .button span, .text-link span, .contact-email span { transition: transform .2s ease; }
  .button:is(:hover, :focus-visible) span, .contact-email:is(:hover, :focus-visible) span { transform: translate(3px, -3px); }
  .text-link:is(:hover, :focus-visible) span { transform: translateY(3px); }
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 50%) {
    .section-intro, .section-heading, .project, .contact-inner {
      animation: enter-view 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
    :is(.project, .contact-inner):focus-within { animation: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
