:root {
  --ink: #0f1115;
  --ink-2: #1f252e;
  --muted: #626b78;
  --line: #d7dce2;
  --line-dark: rgba(255, 255, 255, 0.16);
  --paper: #f3f5f7;
  --paper-2: #e8edf2;
  --white: #ffffff;
  --blue: #0f62fe;
  --blue-dark: #003fbe;
  --cyan: #007d79;
  --green: #198038;
  --red: #da1e28;
  --amber: #b26b25;
  --shadow: 0 28px 80px rgba(15, 17, 21, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::selection {
  background: var(--blue);
  color: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 3px;
  background: var(--blue);
  transform-origin: left;
  transition: width 90ms linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 86px);
  border-bottom: 1px solid rgba(215, 220, 226, 0.82);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(24px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  font-weight: 720;
  transition: transform 280ms var(--ease), color 280ms var(--ease);
}

.brand:hover {
  color: var(--blue);
  transform: translateX(2px);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.brand:hover .brand-mark::after {
  transform: scaleX(1);
}

.site-nav {
  display: flex;
  align-items: stretch;
  min-height: 68px;
}

.site-nav a {
  position: relative;
  min-width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 620;
  overflow: hidden;
  transition: color 280ms var(--ease), background 280ms var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(15, 98, 254, 0.07);
  color: var(--blue-dark);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  min-width: 154px;
  background: var(--blue);
  color: var(--white);
}

.site-nav .nav-cta::after {
  background: var(--white);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  background: var(--blue-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--paper);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.image-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  transform: translate3d(0, calc(var(--scroll-y, 0) * 0.08px), 0) scale(1.04);
  filter: saturate(1.04) contrast(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.58);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  padding: 132px 0 92px;
  margin-left: clamp(20px, 5vw, 86px);
  color: var(--white);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark .eyebrow {
  color: #8ab5ff;
}

h1 {
  max-width: 1040px;
  font-size: 5.6rem;
  line-height: 0.96;
  font-weight: 430;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  font-size: 3.25rem;
  line-height: 1.04;
  font-weight: 440;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.17rem;
  line-height: 1.25;
  font-weight: 680;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.28rem;
}

.reveal-line {
  opacity: 0;
  transform: translateY(24px);
  animation: revealLine 900ms var(--ease) forwards;
}

.reveal-line:nth-child(2) {
  animation-delay: 120ms;
}

.hero-copy,
.button-row,
.trust-line {
  opacity: 0;
  transform: translateY(20px);
  animation: revealLine 900ms var(--ease) forwards;
}

.hero-copy {
  animation-delay: 220ms;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  animation-delay: 340ms;
}

.trust-line {
  max-width: 780px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 640;
  animation-delay: 460ms;
}

@keyframes revealLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button {
  --x: 50%;
  --y: 50%;
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 760;
  cursor: pointer;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), background 320ms var(--ease), color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, 0.34), transparent 36%);
  opacity: 0;
  transition: opacity 260ms var(--ease);
}

.button::after {
  content: "→";
  position: relative;
  transition: transform 260ms var(--ease);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 98, 254, 0.24);
}

.button:hover::before {
  opacity: 1;
}

.button:hover::after {
  transform: translateX(5px);
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.button.primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.research-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.research-strip div {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
  transition: transform 360ms var(--ease), background 360ms var(--ease);
}

.research-strip div:hover {
  background: #edf5ff;
  transform: translateY(-4px);
}

.research-strip span {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 760;
}

.research-strip strong {
  font-size: 1.18rem;
  font-weight: 680;
}

.section {
  padding: 98px clamp(20px, 5vw, 86px);
}

.first-section {
  padding-top: 78px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 42px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.focus-grid article {
  position: relative;
  min-height: 292px;
  padding: 28px;
  overflow: hidden;
  background: var(--white);
  transition: transform 420ms var(--ease), background 420ms var(--ease), box-shadow 420ms var(--ease);
}

.info-card::before,
.focus-grid article::before,
.service-block::before,
.case-study::before,
.company-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 420ms var(--ease);
}

.info-card:hover,
.focus-grid article:hover {
  z-index: 2;
  background: #f8fbff;
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.info-card:hover::before,
.focus-grid article:hover::before,
.service-block:hover::before,
.case-study:hover::before,
.company-section:hover::before {
  transform: scaleY(1);
}

.info-card:nth-child(2)::before {
  background: var(--cyan);
}

.info-card:nth-child(3)::before {
  background: var(--red);
}

.info-card:nth-child(4)::before {
  background: var(--green);
}

.card-kicker {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 760;
}

.info-card p,
.focus-grid p,
.service-block p,
.company-section p,
.case-content p,
.feature-copy p {
  color: var(--muted);
}

.image-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.image-feature.reverse {
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.08fr);
}

.image-feature.reverse .image-frame {
  order: 2;
}

.image-feature.reverse .feature-copy {
  order: 1;
}

.image-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: translate3d(0, calc(var(--image-shift, 0) * 1px), 0) scale(1.04);
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.image-frame:hover img {
  transform: translate3d(0, calc(var(--image-shift, 0) * 1px), 0) scale(1.09);
  filter: saturate(1.1) contrast(1.04);
}

.feature-copy {
  max-width: 620px;
}

.feature-copy p {
  font-size: 1.08rem;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 780;
}

.text-link::after {
  content: "→";
  transition: transform 260ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(6px);
}

.muted {
  background: var(--paper-2);
}

.evidence-section {
  background: var(--ink);
  color: var(--white);
}

.evidence-section .eyebrow {
  color: #8ab5ff;
}

.evidence-grid,
.lab-program-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.evidence-card,
.lab-program-card,
.principle-grid article {
  position: relative;
  min-height: 270px;
  padding: 26px;
  overflow: hidden;
  background: #1f252e;
  transition: background 360ms var(--ease), transform 360ms var(--ease);
}

.lab-program-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.evidence-card:hover,
.principle-grid article:hover {
  background: #29313c;
  transform: translateY(-6px);
}

.lab-program-card:hover {
  background: #f8fbff;
  transform: translateY(-6px);
}

.evidence-card span,
.lab-program-card span {
  display: inline-block;
  margin-bottom: 30px;
  color: #8ab5ff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lab-program-card span {
  color: var(--blue);
}

.evidence-card p,
.principle-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.lab-program-card p {
  color: var(--muted);
}

.stack-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-stack-section {
  padding-top: 74px;
  padding-bottom: 0;
  border-bottom: 0;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stack-grid.wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stack-pill {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  background: var(--paper);
  transition: background 280ms var(--ease), transform 280ms var(--ease);
}

.stack-pill:hover {
  background: #edf5ff;
  transform: translateY(-4px);
}

.stack-pill strong {
  font-weight: 780;
}

.stack-pill span {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.dark {
  background: var(--ink);
  color: var(--white);
}

.dark p {
  color: rgba(255, 255, 255, 0.74);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.rich-copy {
  font-size: 1.08rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-grid span {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border-left: 4px solid var(--blue);
  font-weight: 720;
  transition: transform 320ms var(--ease), background 320ms var(--ease);
}

.proof-grid span:hover {
  background: #edf5ff;
  transform: translateX(4px);
}

.work-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-item,
.case-index a {
  position: relative;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  background: var(--white);
  transition: transform 360ms var(--ease), background 360ms var(--ease), color 360ms var(--ease);
}

.work-item::after,
.case-index a::after {
  content: "→";
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--blue);
  font-size: 1.5rem;
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}

.work-item:hover,
.case-index a:hover {
  z-index: 2;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-6px);
}

.work-item:hover::after,
.case-index a:hover::after {
  transform: translateX(0);
  opacity: 1;
}

.work-item span,
.case-index span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.work-item:hover span,
.case-index a:hover span {
  color: rgba(255, 255, 255, 0.72);
}

.work-item strong,
.case-index strong {
  max-width: 82%;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 680;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
}

.process-grid div {
  min-height: 250px;
  padding: 26px;
  background: #1f252e;
  transition: background 360ms var(--ease), transform 360ms var(--ease);
}

.process-grid div:hover {
  background: #29313c;
  transform: translateY(-6px);
}

.process-grid span {
  display: block;
  margin-bottom: 38px;
  color: #8ab5ff;
  font-weight: 760;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.cta-band h2 {
  margin-bottom: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 108px clamp(20px, 5vw, 86px) 76px;
  background: var(--ink);
  color: var(--white);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 86px);
  right: clamp(20px, 5vw, 86px);
  bottom: 0;
  height: 1px;
  background: var(--line-dark);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.14rem;
}

.visual-page {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.visual-page .image-frame {
  min-height: 390px;
}

.service-visual {
  padding-bottom: 0;
}

.work-visual-band {
  height: 420px;
  overflow: hidden;
  background: var(--ink);
}

.work-visual-band img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translate3d(0, calc(var(--scroll-y, 0) * -0.035px), 0) scale(1.04);
  opacity: 0.82;
}

.service-stack,
.company-stack,
.case-study-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.faq-section {
  background: var(--paper-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.faq-card {
  min-height: 250px;
  padding: 24px;
  background: var(--white);
  transition: background 320ms var(--ease), transform 320ms var(--ease);
}

.faq-card:hover {
  background: #f8fbff;
  transform: translateY(-6px);
}

.faq-card p {
  color: var(--muted);
}

.service-block,
.company-section,
.case-study {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 82px);
  padding: 44px;
  overflow: hidden;
  background: var(--white);
  transition: background 360ms var(--ease), transform 360ms var(--ease);
}

.service-block:hover,
.company-section:hover,
.case-study:hover {
  background: #f8fbff;
}

.feature-list,
.values-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.feature-list li,
.values-list li {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: var(--paper);
  color: var(--ink-2);
  font-weight: 620;
  transition: background 280ms var(--ease), transform 280ms var(--ease);
}

.feature-list li:hover,
.values-list li:hover {
  background: var(--white);
  transform: translateX(4px);
}

.case-index-section {
  padding-top: 42px;
  padding-bottom: 0;
}

.case-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-section {
  padding-top: 42px;
}

.case-study {
  align-items: start;
}

.case-title {
  position: sticky;
  top: 104px;
}

.privacy-note {
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: var(--paper);
  color: var(--ink-2);
  font-weight: 700;
}

.case-content {
  display: grid;
  gap: 4px;
}

.case-content h3 {
  margin-top: 18px;
  margin-bottom: 2px;
  color: var(--blue-dark);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.focus-grid article {
  min-height: 286px;
}

.lab-program-section {
  background: var(--white);
}

.principle-section {
  border-top: 1px solid var(--line-dark);
}

.company-signal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.company-signal div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 86px);
  background: var(--white);
}

.company-signal span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.company-signal strong {
  font-size: 1.2rem;
  font-weight: 680;
}

.contact-section {
  align-items: start;
  padding-top: 60px;
}

.contact-intro {
  display: grid;
  gap: 28px;
}

.contact-section .image-frame {
  min-height: 360px;
}

.contact-proof {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-proof p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 14px 16px;
  background: var(--white);
}

.contact-proof strong {
  color: var(--ink);
}

.contact-proof span,
.contact-proof a {
  color: var(--muted);
  text-align: right;
}

.contact-proof a:hover {
  color: var(--blue);
}

.contact-fit-list {
  display: grid;
  gap: 1px;
  margin: 18px 0 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.contact-fit-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: var(--white);
  font-weight: 620;
}

.project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(15, 17, 21, 0.08);
}

.project-form label {
  display: grid;
  gap: 8px;
  font-weight: 720;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #8d949e;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.16);
}

.project-form textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.form-message {
  max-width: 1040px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--white);
  border-left: 4px solid var(--blue);
  box-shadow: 0 18px 50px rgba(15, 17, 21, 0.08);
}

.form-message.success {
  border-left-color: var(--green);
}

.form-message.error {
  border-left-color: var(--red);
}

.form-message h2 {
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 5vw, 86px);
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 780;
}

.info-card,
.service-block,
.case-study,
.focus-grid article,
.company-section,
.image-frame,
.feature-copy,
.reveal-panel,
.case-index a,
.company-signal div,
.project-form,
.evidence-card,
.lab-program-card,
.principle-grid article,
.stack-pill,
.faq-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .info-card,
  .service-block,
  .case-study,
  .focus-grid article,
  .company-section,
  .image-frame,
  .feature-copy,
  .reveal-panel,
  .case-index a,
  .company-signal div,
  .project-form,
  .evidence-card,
  .lab-program-card,
  .principle-grid article,
  .stack-pill,
  .faq-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .card-grid.four,
  .process-grid,
  .case-index,
  .company-signal,
  .evidence-grid,
  .lab-program-grid,
  .principle-grid,
  .stack-grid.wide,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-list.compact,
  .focus-grid,
  .research-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-height: 52px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    padding-top: 94px;
  }

  h1 {
    font-size: 4.05rem;
  }

  h2 {
    font-size: 2.42rem;
  }

  .split,
  .visual-page,
  .service-block,
  .company-section,
  .case-study,
  .image-feature,
  .image-feature.reverse {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    grid-template-columns: 1fr;
  }

  .image-feature.reverse .image-frame,
  .image-feature.reverse .feature-copy {
    order: initial;
  }

  .case-title {
    position: static;
  }

  .cta-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand {
    gap: 10px;
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    width: min(100% - 40px, 100%);
    margin-left: 20px;
  }

  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy,
  .page-hero p:not(.eyebrow),
  .feature-copy p {
    font-size: 1.05rem;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .card-grid.four,
  .process-grid,
  .work-list.compact,
  .focus-grid,
  .proof-grid,
  .feature-list,
  .values-list,
  .project-form,
  .research-strip,
  .case-index,
  .company-signal,
  .evidence-grid,
  .lab-program-grid,
  .principle-grid,
  .faq-grid,
  .stack-grid,
  .stack-grid.wide {
    grid-template-columns: 1fr;
  }

  .contact-proof p {
    flex-direction: column;
    gap: 4px;
  }

  .contact-proof span,
  .contact-proof a {
    text-align: left;
  }

  .image-frame,
  .contact-section .image-frame {
    min-height: 300px;
  }

  .work-visual-band {
    height: 300px;
  }

  .service-block,
  .company-section,
  .case-study,
  .project-form {
    padding: 26px;
  }

  .button,
  .project-form button {
    width: 100%;
  }
}
