:root {
  --black: #050505;
  --ink: #111111;
  --coal: #1d1d1d;
  --white: #ffffff;
  --paper: #f4f1ea;
  --muted: #696969;
  --line: rgba(255, 255, 255, 0.2);
  --line-dark: rgba(0, 0, 0, 0.16);
  --accent: #d7ff3f;
  --font-display: "IBM Plex Sans", Arial, sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --header-height: 82px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--accent);
  color: var(--black);
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--black);
  background: var(--white);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: var(--white);
  border-bottom-color: var(--line-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: clamp(54px, 5.8vw, 72px);
  max-width: min(244px, 50vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: currentColor;
}

.nav-button {
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  padding: 0.72rem 0.95rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
  padding: 0;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(88svh - var(--header-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 68px) 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 44%, rgba(0, 0, 0, 0.08) 100%),
    var(--hero-image) center / cover;
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  min-width: 0;
  padding-bottom: clamp(118px, 15vh, 152px);
}

.eyebrow,
.card-kicker,
.footer-label {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 1120px;
  font-size: clamp(2.75rem, 5.35vw, 5.55rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.85rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  font-weight: 700;
}

.hero-body {
  max-width: 710px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.05rem;
  border: 1px solid currentColor;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.button-light {
  background: var(--white);
  color: var(--black);
}

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

.button-ghost {
  background: transparent;
  color: var(--white);
}

.proof-strip {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 5, 5, 0.88);
  color: var(--white);
}

.proof-item {
  min-height: 96px;
  padding: 21px clamp(16px, 3vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 0;
}

.proof-item span,
.client-line,
.step-number {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.proof-item strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(0.95rem, 1.45vw, 1.13rem);
  line-height: 1.28;
  color: var(--white);
  overflow-wrap: break-word;
}

.section {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 5vw, 68px);
}

section[id] {
  scroll-margin-top: var(--header-height);
}

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

.section-light {
  background: var(--paper);
  color: var(--black);
}

.section-intro {
  width: min(var(--max), 100%);
  margin: 0 auto clamp(36px, 6vw, 74px);
}

.section-intro-split {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

.section-intro-split > *,
.service-row > *,
.work-card > *,
.physical-ai > *,
.contact-section > *,
.process-step {
  min-width: 0;
}

.section-intro h2 {
  max-width: 860px;
}

.section-intro p:last-child {
  max-width: 610px;
  margin: 0;
  color: currentColor;
  opacity: 0.76;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.6;
}

.section-light .eyebrow,
.section-light .card-kicker {
  color: var(--black);
}

.service-list {
  width: min(var(--max), 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(34px, 5vw, 62px) 0;
  border-bottom: 1px solid var(--line);
}

.service-row-copy > p {
  max-width: 830px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  line-height: 1.62;
  overflow-wrap: break-word;
}

.service-row h3 {
  max-width: 360px;
}

.check-list,
.detail-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.check-list li,
.detail-list li {
  position: relative;
  padding: 12px 0 12px 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.48;
  overflow-wrap: break-word;
}

.check-list li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.proof-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-body);
  font-size: 0.9rem !important;
  font-weight: 600;
  text-transform: none;
  color: var(--white) !important;
}

.work-list {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(36px, 5vw, 64px);
}

.work-card {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding-top: clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
}

.work-media {
  min-height: 330px;
  max-height: 430px;
  aspect-ratio: 16 / 10;
  background: #e6e2d8;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.04);
  transition: filter 180ms ease, transform 320ms ease;
}

.work-media.image-contain img {
  object-fit: contain;
  padding: clamp(18px, 3vw, 36px);
  filter: none;
}

.work-card:hover .work-media img {
  filter: grayscale(0) contrast(1.02);
  transform: scale(1.02);
}

.work-card:hover .work-media.image-contain img {
  filter: none;
  transform: none;
}

.work-media-text {
  min-height: 320px;
  border: 1px solid var(--line-dark);
  background: var(--black);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(24px, 4vw, 38px);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  place-items: end start;
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-copy p {
  max-width: 720px;
  color: rgba(0, 0, 0, 0.76);
  line-height: 1.58;
  overflow-wrap: break-word;
}

.client-line {
  margin: 12px 0 22px;
  color: var(--muted);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 6px;
}

.metric-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line-dark);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  overflow-wrap: break-word;
}

.section-light .detail-list li {
  border-top-color: var(--line-dark);
  color: rgba(0, 0, 0, 0.75);
}

.section-light .detail-list li::before {
  background: var(--black);
}

.text-link {
  width: max-content;
  margin-top: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.physical-ai {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 86px);
  background: var(--black);
  color: var(--white);
  align-items: start;
}

.physical-ai-copy {
  max-width: 720px;
}

.physical-ai .eyebrow {
  color: var(--accent);
}

.physical-ai-copy > p {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.62;
}

.physical-ai-points {
  border-top: 1px solid var(--line);
}

.physical-ai-media {
  grid-column: 1 / -1;
  margin-top: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #000;
  overflow: hidden;
}

.physical-ai-media img {
  width: 100%;
  height: auto;
  max-height: min(58vw, 720px);
  object-fit: contain;
  background: #000;
}

.physical-ai .check-list li {
  border-top-color: var(--line);
  color: rgba(255, 255, 255, 0.76);
}

.physical-ai .check-list li::before {
  background: var(--accent);
}

.lab-note {
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.92rem !important;
  font-weight: 600;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
}

.process-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process-step {
  min-height: 300px;
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.step-number {
  margin-bottom: 26px;
  color: var(--accent);
}

.process-step h3 {
  font-size: clamp(1.24rem, 1.85vw, 1.68rem);
  margin-bottom: 16px;
  line-height: 1.16;
}

.process-step p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.58;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
  background: var(--paper);
  color: var(--black);
}

.contact-copy {
  max-width: 640px;
}

.contact-copy .eyebrow {
  color: var(--black);
}

.contact-copy h2 {
  margin-bottom: 24px;
}

.contact-copy p {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.contact-email {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 0;
  background: #fafafa;
  color: var(--black);
  padding: 0.75rem 0.82rem;
}

.contact-form textarea {
  resize: vertical;
}

.form-wide {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 68px);
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-line {
  color: rgba(255, 255, 255, 0.68);
}

.thank-you-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--black);
}

.thank-you-shell {
  width: min(720px, calc(100% - 36px));
  padding: clamp(32px, 6vw, 70px);
  border: 1px solid var(--line);
}

.thank-you-shell h1 {
  margin-bottom: 20px;
}

.load-error {
  min-height: 70svh;
  display: grid;
  align-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
}

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

@media (max-width: 1080px) {
  .service-list,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
    padding-block: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line-dark);
  }

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

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-button {
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid var(--black);
    text-align: center;
  }

  .brand-logo {
    width: auto;
    height: 58px;
    max-width: 58vw;
  }

  .hero {
    min-height: calc(92svh - var(--header-height));
    padding-inline: 18px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.9) 66%, #000 100%),
      var(--hero-image) center / cover;
  }

  .hero-content {
    padding-bottom: 270px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item {
    min-height: 86px;
  }

  .section-intro-split,
  .work-card,
  .physical-ai,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .work-media {
    width: 100%;
    min-height: 0;
    height: clamp(240px, 62vw, 330px);
    max-height: none;
    aspect-ratio: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.08rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.8rem, 9.6vw, 2.7rem);
  }

  .service-list,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip {
    position: relative;
    margin-inline: -18px;
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: auto;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero {
    display: block;
    padding-top: 42px;
  }

  .hero-content {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    padding-bottom: 42px;
  }

  .hero-body {
    max-width: min(31ch, 100%);
    font-size: 1.04rem;
    line-height: 1.52;
  }

  .button {
    font-size: 0.88rem;
    padding-inline: 0.9rem;
  }

  .site-footer {
    display: grid;
  }
}

@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;
  }
}
