/* Terminal Cel motion, states, and chrome the Tailwind layer does not own. */

:root {
  color-scheme: light;
  --ink: #000000;
  --paper: #ffffff;
  --neon: #a1fea0;
  --neon-halo: rgba(161, 254, 160, 0.5);
  --danger: #93000a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scrollbar-color: var(--ink) #f9f9f9;
  scrollbar-width: thin;
}

body {
  overflow-x: clip;
}

#mobile-and-apps .font-label-eyebrow.leading-tight {
  line-height: 1.15;
}

footer a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

main .grid > *,
#intake-panel,
textarea.nx-field,
#receipt-scope,
.nx-field {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

textarea.nx-field,
#receipt-scope {
  word-break: break-word;
}

#home .lg\:col-span-4 {
  border-color: #ffffff;
}

::-webkit-scrollbar {
  display: block !important;
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f9f9f9;
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
}

::selection {
  background: var(--neon);
  color: var(--ink);
}

h1,
h2,
#about dd {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1.text-headline-lg,
#contact h2 {
  font-size: 48px !important;
  line-height: 0.9 !important;
  letter-spacing: -0.03em !important;
}

@media (min-width: 768px) {
  h1.text-headline-lg,
  #contact h2 {
    font-size: 80px !important;
    line-height: 0.88 !important;
    letter-spacing: -0.04em !important;
  }
}

@media (min-width: 1100px) {
  h1.text-headline-lg,
  #contact h2 {
    font-size: 112px !important;
    line-height: 0.86 !important;
    letter-spacing: -0.05em !important;
  }
}

header a[data-path="home"] {
  flex-shrink: 0;
}

header a[data-path="home"] .font-headline-sm {
  font-size: 22px !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap;
}

header nav {
  flex-shrink: 0;
}

header nav a {
  white-space: nowrap;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
}

header > div > div:last-child {
  flex-shrink: 0;
}

@media (max-width: 1279px) {
  #home .grid {
    grid-template-columns: 1fr !important;
  }

  #home .lg\:col-span-8,
  #home .lg\:col-span-4 {
    grid-column: 1 / -1 !important;
    min-width: 0;
    max-width: 100%;
  }

  #home .font-label-terminal > .flex > span,
  #home .pt-space-xs > .flex > span {
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 18px;
  }
}

#home .font-label-terminal > .flex {
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 10px;
}

#home .font-label-terminal > .flex > span {
  white-space: nowrap;
  letter-spacing: 0.06em;
  font-size: 13px;
  line-height: 18px;
}

@media (min-width: 1280px) {
  #home .font-label-terminal > .flex > span {
    letter-spacing: 0.04em;
    font-size: 11px;
    line-height: 16px;
  }
}

#home .pt-space-xs > .flex {
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
}

#home .pt-space-xs > .flex > span {
  white-space: nowrap;
  letter-spacing: 0.08em;
  font-size: 12px;
  line-height: 16px;
}

@media (min-width: 1280px) {
  #home .pt-space-xs > .flex > span {
    letter-spacing: 0.08em;
    font-size: 10px;
    line-height: 14px;
  }
}

@media (max-width: 640px) {
  #home .font-label-terminal > .flex,
  #home .pt-space-xs > .flex {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  #home .font-label-terminal > .flex > span,
  #home .pt-space-xs > .flex > span {
    white-space: normal;
  }
}

#case-studies .border-t > .flex.justify-between {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

#case-studies .border-t > .flex.justify-between:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

#case-studies .border-t > .flex.justify-between > span {
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: normal;
}

#case-studies .border-t > .flex.justify-between > span:last-child {
  font-size: 16px;
  letter-spacing: 0.02em;
}

#engagement .border-t .flex.justify-between {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 4px 12px;
  align-items: baseline;
}

#engagement .border-t .flex.justify-between > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0.04em;
  font-size: 14px;
  line-height: 20px;
}

#engagement .border-t .flex.justify-between > span:last-child {
  text-align: right;
}

section[id],
#dispatch {
  scroll-margin-top: 96px;
}

.nx-skip {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 80;
  transform: translateY(-140%);
  background: var(--neon);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 25px;
  padding: 10px 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nx-skip:focus {
  transform: translateY(12px);
}

#route-slash {
  position: fixed;
  top: 80px;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: var(--neon);
  box-shadow: 0 0 24px 4px var(--neon-halo);
  transform: scaleX(0);
  transform-origin: left center;
}

body.nx-slash #route-slash {
  animation: nx-slash 680ms var(--ease);
}

@keyframes nx-slash {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  46% {
    transform: scaleX(1);
    transform-origin: left center;
  }
  54% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

#intake-panel.nx-arrive {
  animation: nx-arrive 680ms var(--ease);
}

@keyframes nx-arrive {
  0% {
    transform: translateY(14px);
    box-shadow: 0 0 0 0 rgba(161, 254, 160, 0);
  }
  100% {
    transform: none;
    box-shadow: 0 0 40px 10px var(--neon-halo);
  }
}

.nx-marquee {
  animation: nx-marquee 28s linear infinite;
  will-change: transform;
}

@keyframes nx-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nx-marquee:hover {
  animation-play-state: paused;
}

header nav a.is-current {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--neon);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

a[class*="rounded-[25px]"],
a[class*="rounded-[100px]"],
button {
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 120ms var(--ease),
    box-shadow 180ms var(--ease);
}

a[class*="rounded-[25px]"]:active,
a[class*="rounded-[100px]"]:active,
button:active:not(:disabled) {
  transform: translateY(1px);
}

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

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

#mobile-nav {
  position: fixed;
  z-index: 55;
  inset: 80px 0 0 0;
  overflow: auto;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 24px 16px 40px;
}

#mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

#mobile-nav a.is-current {
  background: var(--neon);
  padding-inline: 12px;
}

#mobile-nav a[href="/start-a-project"] {
  margin-top: 16px;
  border: 1px solid var(--ink);
  border-radius: 25px;
  background: var(--neon);
  justify-content: center;
}

body.nx-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow-y: scroll;
}

.nx-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
}

.nx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #000;
  text-decoration: none;
}

.nx-foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

.nx-foot-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.nx-foot .nx-mark { width: 36px; height: 36px; }

.nx-foot-name {
  margin: 2px 0 0;
  min-width: 0;
  color: #f9f9f9;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}

.nx-foot-facts { margin: 0; min-width: 0; }

.nx-foot-facts div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 0;
}

.nx-foot-facts dt,
.nx-foot-facts dd,
.nx-foot-pages a,
.nx-foot-base {
  font-family: "Courier Prime", monospace;
  text-transform: uppercase;
}

.nx-foot-facts dt {
  color: #a1fea0;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.3;
}

.nx-foot-facts dd {
  margin: 0;
  min-width: 0;
  color: #f9f9f9;
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.nx-foot-pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px 16px;
  min-width: 0;
}

.nx-foot-pages a,
.nx-foot-base a {
  color: #f9f9f9;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
  padding: 6px 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nx-foot a:hover,
.nx-foot a.is-current { color: #a1fea0; }

.nx-foot-base {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #f9f9f9;
  color: #f9f9f9;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  min-width: 0;
}

.nx-foot-base p { margin: 0; overflow-wrap: anywhere; }

.nx-foot-base nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .nx-foot { padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 1100px) {
  .nx-foot {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(180px, 0.7fr);
    column-gap: 32px;
    align-items: start;
  }

  .nx-foot-base { grid-column: 1 / -1; }

  .nx-foot-pages { grid-template-columns: minmax(0, 1fr); }

  .nx-foot-base {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
  }
}

.nx-legal {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
}

.nx-legal h3 {
  margin: 1.1rem 0 0.35rem;
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nx-legal p { margin: 0 0 0.65rem; }

.nx-legal a { color: #076e23; }

.nx-field,
.nx-set {
  min-width: 0;
}

.nx-field {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 25px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.01em;
}

input.nx-field,
select.nx-field {
  height: 48px;
  padding: 0 20px;
}

textarea.nx-field {
  min-height: 120px;
  padding: 16px 20px;
  resize: vertical;
}

select.nx-field {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #000 50%),
    linear-gradient(135deg, #000 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.nx-field::placeholder {
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

.nx-field:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow:
    0 0 0 1px var(--ink),
    0 0 0 4px var(--neon-halo);
}

.nx-field.nx-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.nx-set.nx-error {
  border: 1px solid var(--danger);
  border-radius: 25px;
  padding: 8px;
}

.nx-msg {
  margin: 6px 0 0;
  color: var(--danger);
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-count {
  margin: 6px 0 0;
  color: #5e5e5e;
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

form[data-tried="1"] .nx-count.is-short {
  color: var(--danger);
}

.nx-set {
  border: 0;
  margin: 0;
  padding: 0;
}

.nx-plat,
.nx-ack {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 25px;
  background: #f9f9f9;
  cursor: pointer;
}

.nx-plat:has(input:checked),
.nx-ack:has(input:checked) {
  background: var(--neon);
}

.nx-plat input,
.nx-ack input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  display: grid;
  place-items: center;
}

.nx-ack input {
  border-radius: 4px;
}

.nx-plat input:checked,
.nx-ack input:checked {
  background: var(--neon);
}

.nx-plat input:checked::after,
.nx-ack input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-1px) rotate(-45deg);
}

.nx-plat input:focus-visible,
.nx-ack input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.nx-ack {
  align-items: flex-start;
  background: var(--paper);
}

.nx-banner {
  border: 1px solid var(--danger);
  border-radius: 25px;
  background: #ffdad6;
  color: var(--danger);
  padding: 12px 16px;
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#intake-receipt[hidden],
#consultation-form[hidden],
#mobile-nav[hidden],
[hidden] {
  display: none !important;
}

#intake-receipt dl {
  margin: 0;
}

#intake-receipt dl div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  min-width: 0;
}

@media (min-width: 640px) {
  #intake-receipt dl div {
    grid-template-columns: 140px 1fr;
    gap: 12px;
  }
}

#intake-receipt dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.nx-sheet {
  width: min(720px, calc(100vw - 2rem));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 25px;
  background: var(--paper);
  color: var(--ink);
}

.nx-sheet::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.nx-sheet-panel {
  padding: 28px;
  overflow: auto;
  max-height: min(80vh, 760px);
}

@media (prefers-reduced-motion: no-preference) {
  .nx-sheet[open] {
    animation: nx-sheet-in 420ms var(--ease);
  }
}

@keyframes nx-sheet-in {
  from {
    transform: translateY(18px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .nx-marquee,
  #route-slash,
  #intake-panel.nx-arrive,
  .nx-sheet[open] {
    animation: none !important;
  }

  a[class*="rounded-[25px]"],
  a[class*="rounded-[100px]"],
  button {
    transition: none;
  }
}
