/* JPKP shared site design system — extracted from index.html
   Used by every page except index.html (which stays self-contained/inline). */

:root {
  --blue: #001763;
  --red: #e71818;
  --slate: #c1c4d5;
  --orange: #f27c0a;
  --black: #000;
  --white: #fff;
  --ink: #0a0d18;
  --line: rgba(0, 23, 99, 0.14);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: auto;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100vw;
}
body.loading {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
::selection {
  background: var(--red);
  color: #fff;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}

.mono {
  font-family: "DM Mono", monospace;
  letter-spacing: 0.02em;
}
.container {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
}

.eyebrow {
  font:
    500 11px/1.2 "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.section {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 40px;
  margin-bottom: 70px;
}
.section-head h2 {
  font-size: clamp(44px, 6.5vw, 100px);
  line-height: 0.91;
  letter-spacing: -0.065em;
  font-weight: 900;
  text-transform: uppercase;
}
.section-head p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.65;
  color: #4b5060;
  align-self: end;
}
.section.on-dark .section-head p {
  color: rgba(255, 255, 255, 0.58);
}

.rule {
  height: 1px;
  background: currentColor;
  opacity: 0.18;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: 0.35s var(--ease);
}
.btn:hover {
  transform: translateY(-3px);
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn.primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn.primary:hover {
  background: #b90e0e;
}
.btn.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn.light:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}
.btn.dark {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.4);
}
.btn.dark:hover {
  color: #fff;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.9s var(--ease);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* preloader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--blue);
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  transition: transform 0.9s var(--ease);
}
#loader.done {
  transform: translateY(-100%);
}
.loader-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.loader-brand {
  font-size: clamp(42px, 8vw, 110px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.85;
}
.loader-meta {
  text-align: right;
  font-size: 11px;
  line-height: 1.7;
}
.loader-progress {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.loader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 1.4s var(--ease);
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  color: #fff;
  background: rgba(0, 23, 99, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.92);
}
.nav-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
/* brand lockup — mark image + live wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand__mark {
  height: 28px;
  width: auto;
  display: block;
  flex: none;
}
.brand__word {
  font:
    900 16px/1 Inter,
    system-ui,
    sans-serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: currentColor;
}
.brand--footer .brand__mark {
  height: 34px;
}
.brand--footer .brand__word {
  font-size: 22px;
  letter-spacing: -0.05em;
}
.nav-status {
  font: 400 10px "DM Mono";
  white-space: nowrap;
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0.85;
}
.dot {
  width: 7px;
  height: 7px;
  background: #5cff8d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(92, 255, 141, 0.1);
}
.nav-cta {
  padding: 11px 15px;
  font-size: 10px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  border-radius: var(--radius);
}

/* flip menu — a small pill that morphs (GSAP-driven width/height/offset) into a full nav panel,
   sitting outside <header> so .nav's backdrop-filter can't clip its position:fixed box.
   The toggle button lives INSIDE .flip-panel (not as its sibling) so it always tracks the
   panel's true rendered edge, including the panel's own open-state relative top/right offset. */
.flip-menu {
  position: fixed;
  top: 17px;
  right: 24px;
  z-index: 9600;
}

.flip-panel {
  position: relative;
  width: 122px;
  height: 46px;
  max-width: 92vw;
  max-height: min(82vh, 640px);
  background: var(--black);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  border-radius: 2.27rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 104px 40px 20px;
  overflow: hidden;
}
.flip-link-wrap {
  perspective: 340px;
  perspective-origin: bottom;
}
.flip-link-wrap a {
  display: block;
  color: #fff;
  font-size: clamp(32px, 3.4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.flip-link-wrap a:hover {
  color: var(--orange);
}

.flip-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px 14px;
  padding: 18px 0px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.flip-footer a {
  width: 100%;
  font: 700 10px "DM Mono";
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  transition: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate);
  height: 33px;
}
.flip-footer a:hover {
  color: var(--orange);
}

.flip-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 122px;
  height: 46px;
  overflow: hidden;
  background: none;
  z-index: 2;
}
.flip-slider {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 200%;
}
.flip-cell {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 11px "DM Mono";
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flip-cell--menu {
  background: var(--red);
  color: #fff;
}
.flip-cell--close {
  background: var(--red);
  color: #fff;
}

@media (max-width: 560px) {
  .flip-menu {
    top: 12px;
    right: 16px;
  }
  .flip-links {
    padding: 96px 26px 14px;
  }
}

/* inner-page hero (about / services / contact / journal / service detail / 404) */
.page-hero {
  min-height: 62svh;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 150px 0 60px;
  position: relative;
}
.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 95%);
}
.page-hero:after {
  content: "";
  position: absolute;
  width: 45vw;
  height: 45vw;
  right: -14vw;
  top: 0;
  background: radial-gradient(
    circle,
    rgba(242, 124, 10, 0.13),
    transparent 65%
  );
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.page-kicker .eyebrow {
  color: #fff;
  opacity: 0.72;
}
.page-hero h1 {
  font-size: clamp(46px, 6.5vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 900;
  text-transform: uppercase;
  max-width: 900px;
}
.page-hero h1 .accent {
  color: var(--red);
}
.page-hero p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  margin-top: 24px;
}
.page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* strips / marquee */
.strip {
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.marquee {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font: 700 12px "DM Mono";
  letter-spacing: 0.09em;
  padding: 18px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.marquee b {
  color: var(--orange);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* numbered grid cards — exact mirror of index.html's .business/.biz so <main> can swap safely between pages */
.business {
  background: #fff;
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.business-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.business-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.biz {
  min-height: 245px;
  padding: 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: 0.4s var(--ease);
  overflow: hidden;
}
.biz:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: 0.5s var(--ease);
}
.biz:hover {
  color: #fff;
}
.biz:hover:before {
  transform: none;
}
.biz > * {
  position: relative;
  z-index: 1;
}
.biz-num {
  font: 400 10px "DM Mono";
  color: var(--orange);
  display: block;
  margin-bottom: 70px;
}
.biz h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.biz p {
  font-size: 13px;
  line-height: 1.6;
  color: #656a78;
  max-width: 270px;
  transition: 0.3s;
}
.biz:hover p {
  color: rgba(255, 255, 255, 0.7);
}

/* problem — two-col copy + list */
.problem {
  background: #eef0f5;
}
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.problem-copy h2 {
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}
.problem-copy p {
  margin-top: 28px;
  max-width: 510px;
  line-height: 1.7;
  color: #555b69;
}
.problem-list {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.problem-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}
.problem-item span {
  font: 400 10px "DM Mono";
  color: var(--orange);
}

/* services — numbered list */
.services {
  background: #000;
  color: #fff;
}
.services .section-head p {
  color: rgba(255, 255, 255, 0.58);
}
.services-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.service {
  display: grid;
  grid-template-columns: 70px 1.15fr 1.2fr 150px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: 0.4s var(--ease);
}
.service:hover {
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.service-no {
  font: 400 11px "DM Mono";
  color: var(--orange);
}
.service h3 {
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.service p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}
.service a {
  justify-self: end;
  color: var(--orange);
  font: 700 10px "DM Mono";
  text-transform: uppercase;
}

/* journey / process — step grids */
.journey {
  background: #fff;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  min-height: 270px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.step strong {
  font: 400 11px "DM Mono";
  color: var(--orange);
}
.step h3 {
  font-size: 25px;
  letter-spacing: -0.045em;
  margin-top: 55px;
  text-transform: uppercase;
}
.step p {
  font-size: 12px;
  line-height: 1.6;
  color: #626776;
  margin-top: 12px;
}
.arrow {
  position: absolute;
  right: 15px;
  top: 25px;
  font-size: 22px;
  color: var(--slate);
}

.process {
  background: #eef0f5;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.process-step {
  padding: 20px 24px;
  border-top: 1px solid #000;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  min-height: 280px;
}
.process-step:first-child {
  border-left: 1px solid #000;
}
.process-step .big {
  font-size: 70px;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: var(--blue);
}
.process-step h3 {
  text-transform: uppercase;
  font-size: 18px;
  margin: 10px 0;
}
.process-step p {
  font-size: 12px;
  line-height: 1.6;
  color: #626776;
}

/* industries */
.industries {
  background: var(--blue);
  color: #fff;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.industry {
  min-height: 170px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px;
  position: relative;
  transition: 0.4s;
}
.industry:hover {
  background: #fff;
  color: #000;
}
.industry .tag {
  font: 400 10px "DM Mono";
  color: var(--orange);
}
.industry h3 {
  font-size: 25px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-top: 45px;
}
.industry p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}
.industry:hover p {
  color: #666;
}

/* why — big statement + reasons list */
.why {
  background: #fff;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
/* display headings that are semantic <h1>/<h2> — reset UA margin */
.why-big,
.about-big,
.faq-title,
.contact-title,
.tech-big {
  margin: 0;
}
.why-big {
  font-size: clamp(54px, 7vw, 105px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.87;
  text-transform: uppercase;
}
.reasons {
  border-top: 1px solid var(--line);
}
.reason {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.reason b {
  font: 400 10px "DM Mono";
  color: var(--orange);
}
.reason h3 {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.reason p {
  font-size: 13px;
  line-height: 1.55;
  color: #666;
  margin-top: 6px;
}

/* work / project tiles */
.work {
  background: #000;
  color: #fff;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 16px;
}
.project.span-2 {
  grid-column: span 2;
}
.project.row-2 {
  grid-row: span 2;
}
.project {
  background: #11151f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.55;
  z-index: 0;
  transition: 0.7s var(--ease);
}
.project:hover .project-img {
  opacity: 0.72;
  transform: scale(1.05);
}
.project:before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  right: -25%;
  bottom: -30%;
  background: radial-gradient(circle, rgba(231, 24, 24, 0.28), transparent 60%);
  z-index: 1;
  transition: 0.7s var(--ease);
}
.project:hover:before {
  transform: scale(1.2);
}
.project:nth-child(even):before {
  background: radial-gradient(
    circle,
    rgba(242, 124, 10, 0.25),
    transparent 60%
  );
}
.project:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 13, 24, 0.15) 0%,
    rgba(10, 13, 24, 0.45) 55%,
    rgba(10, 13, 24, 0.92) 100%
  );
}
.project .meta {
  position: relative;
  z-index: 2;
  font: 400 10px "DM Mono";
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
}
.project h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.project.span-2 h3,
.project.row-2 h3 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 0.85;
  letter-spacing: -0.065em;
}
.project .type {
  position: relative;
  z-index: 2;
  color: var(--orange);
  font: 500 10px "DM Mono";
  text-transform: uppercase;
}
.work-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.6;
}

/* tech stack */
.tech {
  background: var(--blue);
  color: #fff;
}
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.tech-big {
  font-size: clamp(55px, 7vw, 105px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-transform: uppercase;
}
.tech-note {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.7;
  max-width: 440px;
}
.stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.stack div {
  min-height: 115px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.stack small {
  font: 400 9px "DM Mono";
  color: var(--orange);
  display: block;
  margin-bottom: 23px;
}
.stack strong {
  font-size: 18px;
}

/* maturity + finder */
.maturity {
  background: #fff;
}
.maturity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.maturity-card {
  padding: 30px;
  min-height: 250px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: 0.35s;
}
.maturity-card:hover {
  background: var(--blue);
  color: #fff;
}
.maturity-card span {
  font: 400 10px "DM Mono";
  color: var(--orange);
}
.maturity-card h3 {
  font-size: 25px;
  text-transform: uppercase;
  margin-top: 60px;
  letter-spacing: -0.04em;
}
.maturity-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #646a78;
  margin-top: 10px;
}
.maturity-card:hover p {
  color: rgba(255, 255, 255, 0.65);
}
.finder {
  margin-top: 70px;
  background: #000;
  color: #fff;
  padding: 55px;
}
.finder h3 {
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.finder-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.finder-options button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 13px 16px;
  font: 700 10px "DM Mono";
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: 0.3s;
}
.finder-options button:hover,
.finder-options button.active {
  background: var(--red);
  border-color: var(--red);
}
.finder-result {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.6;
  min-height: 45px;
}

/* FAQ accordion */
.faq {
  background: #eef0f5;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 90px;
}
.faq-title {
  font-size: clamp(50px, 7vw, 105px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}
.faq-list {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}
.faq-q {
  width: 100%;
  padding: 22px 0;
  background: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
}
.faq-q span:last-child {
  font: 400 20px "DM Mono";
  color: var(--orange);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
  font-size: 13px;
  line-height: 1.65;
  color: #656a78;
}
.faq-item.open .faq-a {
  max-height: 260px;
  padding: 0 40px 22px 0;
}

/* about */
.about {
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-big {
  font-size: clamp(54px, 7vw, 105px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-transform: uppercase;
}
.about-copy {
  font-size: 17px;
  line-height: 1.7;
  color: #4f5563;
}
.about-copy p + p {
  margin-top: 20px;
}
.company-facts {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.fact {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact:nth-child(odd) {
  padding-right: 20px;
}
.fact:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.fact small {
  font: 400 9px "DM Mono";
  color: var(--orange);
}
.fact strong {
  display: block;
  margin-top: 7px;
  font-size: 14px;
}

/* contact form */
.contact {
  background: #000;
  color: #fff;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-title {
  font-size: clamp(58px, 8vw, 125px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}
.contact-copy {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  font-size: 14px;
  max-width: 510px;
  margin-top: 28px;
}
.contact-links {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font: 400 9px "DM Mono";
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  background: #0d1018;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 15px;
  outline: none;
  border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.form .btn {
  margin-top: 8px;
  width: max-content;
}

/* variants for placing these blocks on a light section instead of their default dark one */
.on-light.services,
.on-light.work,
.on-light.contact,
.on-light.faq {
  background: #fff;
  color: var(--ink);
}
.on-light .services-list,
.on-light .list-detailed {
  border-top-color: rgba(0, 0, 0, 0.16);
}
.on-light .service {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}
.on-light .service p,
.on-light .work-note,
.on-light .contact-copy {
  color: #656a78;
}
.on-light .field input,
.on-light .field textarea,
.on-light .field select {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.on-light .field label {
  color: rgba(0, 0, 0, 0.5);
}

/* simple auth-style card (login / signup / forgot password) */
.auth-wrap {
  min-height: 100svh;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  position: relative;
}
.auth-wrap:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 95%);
}
.auth-card {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  margin: auto;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 46px;
}
.auth-card h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.auth-card .lede {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.auth-card .form {
  grid-template-columns: 1fr;
}
.auth-card .btn {
  width: 100%;
  margin-top: 12px;
}
.auth-foot {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.auth-foot a {
  color: var(--orange);
  font-weight: 700;
}

/* prose (journal articles / legal pages) */
.prose {
  background: #fff;
}
.prose .container {
  max-width: 820px;
}
.prose .eyebrow {
  margin-bottom: 18px;
  display: block;
}
.prose h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 46px 0 16px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 30px 0 12px;
}
.prose p {
  font-size: 16px;
  line-height: 1.8;
  color: #3a3f4d;
  margin: 0 0 18px;
}
.prose ul,
.prose ol {
  margin: 0 0 18px 22px;
  color: #3a3f4d;
  font-size: 16px;
  line-height: 1.8;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong {
  font-weight: 800;
}
.prose .meta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
  color: #656a78;
  font: 500 11px "DM Mono";
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prose blockquote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 22px;
  margin: 24px 0;
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}

/* journal index cards */
.journal-list {
  border-top: 1px solid var(--line);
}
.journal-row {
  display: grid;
  grid-template-columns: 120px 1fr 160px;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: 0.3s;
}
.journal-row:hover {
  background: rgba(0, 23, 99, 0.03);
}
.journal-row .date {
  font: 400 10px "DM Mono";
  color: var(--orange);
}
.journal-row h3 {
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.journal-row p {
  font-size: 13px;
  color: #656a78;
  margin-top: 6px;
}
.journal-row .read {
  justify-self: end;
  font: 700 10px "DM Mono";
  text-transform: uppercase;
  color: var(--orange);
}

/* generic empty/error state (404) */
.state-block {
  min-height: 70svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  color: #fff;
}
.state-block .code {
  font: 900 clamp(90px, 18vw, 220px)/0.8 Inter;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.12);
}
.state-block h1 {
  margin-top: -20px;
  font-size: clamp(26px, 4vw, 42px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.state-block p {
  margin: 16px auto 26px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
}

/* footer */
.footer {
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 55px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid.with-legal {
  grid-template-columns: 1.3fr repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .footer-grid.with-legal {
    grid-template-columns: 2fr repeat(2, 1fr);
  }
  .footer-grid.with-legal > div:nth-last-child(2) {
    grid-column: 2;
  }
  .footer-grid.with-legal > div:last-child {
    grid-column: 3;
  }
}
@media (max-width: 760px) {
  .footer-grid.with-legal {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid.with-legal > div {
    grid-column: auto !important;
  }
}
.footer-brand {
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.footer .brand {
  color: #fff;
  margin-bottom: 4px;
}
.footer p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 300px;
}
.footer h4 {
  font: 500 10px "DM Mono";
  color: var(--orange);
  margin-bottom: 16px;
}
.footer ul {
  list-style: none;
}
.footer li {
  margin: 9px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.footer li a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 400 9px "DM Mono";
  color: rgba(255, 255, 255, 0.42);
}

/* per-field validation error under an input */
.field-err {
  color: #ff8a8a;
  font:
    400 10px "DM Mono",
    monospace;
  min-height: 0;
  margin-top: -2px;
}
.field-err:empty {
  display: none;
}
.field.has-err input,
.field.has-err select,
.field.has-err textarea {
  border-color: #ff6b6b;
}
.on-light .field-err {
  color: var(--red);
}
#formMsg.is-ok {
  color: #6ee7a0;
}
#formMsg.is-err {
  color: #ff8a8a;
}
.on-light #formMsg.is-ok {
  color: #147a44;
}
.on-light #formMsg.is-err {
  color: var(--red);
}

/* inline form notices (success / error) */
.form-note {
  grid-column: 1/-1;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  margin-bottom: 6px;
}
.form-note--ok {
  color: #1f9d5b;
  background: rgba(31, 157, 91, 0.08);
}
.form-note--err {
  color: var(--red);
  background: rgba(231, 24, 24, 0.07);
}
.on-light .form-note--ok {
  color: #147a44;
}

/* simple centred form block (referral / feedback / small utility forms) */
.form-narrow {
  width: min(560px, 100%);
  margin: 0 auto;
}

/* pricing cards */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.price-card {
  position: relative;
  padding: 34px 30px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  transition: 0.3s var(--ease);
}
.price-card--featured {
  background: var(--blue);
  color: #fff;
}
.price-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red);
  color: #fff;
  font:
    800 9px "DM Mono",
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.price-card h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.price-card__price {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.05em;
}
.price-card__price small {
  display: block;
  font:
    400 10px "DM Mono",
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 4px;
}
.price-card__features {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.price-card__features li {
  padding-left: 18px;
  position: relative;
  color: #4b5060;
}
.price-card--featured .price-card__features li {
  color: rgba(255, 255, 255, 0.75);
}
.price-card__features li:before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}
.price-card__html {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5060;
}
.price-card .btn {
  margin-top: auto;
  width: 100%;
}
@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* "see all X ->" link under a homepage section grid */
.section-more {
  margin-top: 34px;
}
.section-more a {
  font:
    700 11px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: 0.25s var(--ease);
}
.section-more a:hover {
  color: var(--red);
}
.section.industries .section-more a,
.section.work .section-more a,
.services .section-more a {
  color: var(--orange);
}

/* reusable end-of-page CTA strip */
.cta-strip {
  background: var(--blue);
  color: #fff;
  text-align: center;
}
.cta-strip .eyebrow {
  color: var(--orange);
  justify-content: center;
}
.cta-strip h2 {
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 18px auto 30px;
  max-width: 900px;
}
.cta-strip .hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* page-transition curtain — two-tone wipe with a destination label */
#pageCurtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}
#pageCurtain .curtain-bar {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
}
#pageCurtain .curtain-bar.accent {
  background: var(--red);
}
#pageCurtain .curtain-bar.main {
  background: var(--blue);
}
#pageCurtain .curtain-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  color: #fff;
  font-size: clamp(12px, 2vw, 15px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
#pageCurtain .curtain-label:before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  flex: none;
}

/* responsive */
@media (max-width: 1100px) {
  .nav-status {
    display: none;
  }
  .problem-layout,
  .why-grid,
  .tech-layout,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .journey-grid,
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .maturity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 2;
  }
  .faq-grid {
    gap: 50px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }
  .section {
    padding: 82px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 45px;
  }
  .section-head p {
    font-size: 15px;
  }
  .nav-inner {
    height: 66px;
  }
  .nav-status,
  .nav-cta {
    display: none;
  }
  .brand__mark {
    height: 24px;
  }
  .brand__word {
    font-size: 14px;
  }
  .page-hero {
    padding: 120px 0 50px;
  }
  .page-hero h1 {
    font-size: clamp(38px, 12vw, 60px);
  }
  .business-grid,
  .industry-grid,
  .maturity-grid {
    grid-template-columns: 1fr;
  }
  .biz {
    min-height: 205px;
  }
  .biz-num {
    margin-bottom: 50px;
  }
  .service {
    grid-template-columns: 40px 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  .service p {
    grid-column: 2;
  }
  .service a {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
  .journey-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .step,
  .process-step {
    min-height: 190px;
  }
  .step h3 {
    margin-top: 38px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .project,
  .project.row-2,
  .project.span-2 {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 340px;
  }
  .stack {
    grid-template-columns: 1fr 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-title {
    font-size: 46px;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .journal-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .journal-row .read {
    justify-self: start;
  }
  .auth-card {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
