:root {
  --ink: #0b0e0d;
  --ink-soft: #202723;
  --paper: #f7f6f1;
  --white: #ffffff;
  --lime: #c9ff4a;
  --coral: #ee4b2f;
  --blue: #2467f4;
  --line-dark: rgba(255, 255, 255, 0.2);
  --line-light: rgba(11, 14, 13, 0.18);
  --muted-dark: rgba(255, 255, 255, 0.7);
  --muted-light: #515a55;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

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

a {
  color: inherit;
}

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

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

h1,
h2,
.hero__statement,
strong {
  letter-spacing: 0;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: grid;
  width: min(1160px, calc(100% - 32px));
  min-height: 60px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(11, 14, 13, 0.88);
  color: var(--white);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand,
.topbar nav,
.topbar__contact,
.button,
.text-link {
  display: inline-flex;
  align-items: center;
}

.brand,
.topbar a,
.button,
.text-link,
footer a {
  text-decoration: none;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand img {
  border-radius: 7px;
}

.topbar nav {
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.topbar nav a:hover {
  color: var(--white);
}

.topbar__contact {
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.topbar svg,
.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 126px max(24px, calc((100vw - 1160px) / 2)) 86px;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  background-image: url("/design/assets/agentpass-workbench.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.035);
  will-change: transform;
}

.hero__veil {
  z-index: -2;
  background: rgba(5, 8, 7, 0.78);
}

.hero__content {
  width: min(820px, 100%);
  animation: hero-enter 760ms ease-out both;
}

.eyebrow,
.section-index {
  margin-bottom: 18px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 20px;
  font-size: 7rem;
  line-height: 0.9;
}

.hero__statement {
  max-width: 760px;
  margin-bottom: 34px;
  font-size: 2.5rem;
  font-weight: 760;
  line-height: 1.08;
}

.button {
  min-height: 54px;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button:hover {
  background: var(--white);
}

.hero__caption {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.intro,
.process,
.contact,
footer {
  padding-right: max(24px, calc((100vw - 1160px) / 2));
  padding-left: max(24px, calc((100vw - 1160px) / 2));
}

.intro {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 80px;
  padding-top: 92px;
  padding-bottom: 92px;
}

.intro .section-index,
.process .section-index,
.contact .section-index {
  color: var(--coral);
}

.intro h2,
.case h2,
.process h2,
.contact h2 {
  margin-bottom: 24px;
  font-size: 4rem;
  line-height: 0.98;
}

.intro div > p,
.case__copy > p:not(.section-index),
.case__mark p,
.process__header p,
.process__steps p,
.contact > p:not(.section-index) {
  color: var(--muted-light);
  font-size: 1.08rem;
  line-height: 1.66;
}

.work {
  background: var(--ink);
}

.case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 70px;
  align-items: center;
  min-height: 840px;
  padding: 96px max(24px, calc((100vw - 1160px) / 2));
  overflow: hidden;
}

.case--romeo,
.case--agentpass {
  background: var(--ink);
  color: var(--white);
}

.case--flash {
  background: #fff7ef;
  color: var(--ink);
}

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

.case--flash + .case {
  border-top-color: var(--line-light);
}

.case__copy {
  z-index: 2;
}

.case__copy .section-index {
  color: var(--lime);
}

.case--flash .section-index {
  color: var(--coral);
}

.case--romeo .case__copy > p:not(.section-index),
.case--agentpass .case__copy > p:not(.section-index) {
  color: var(--muted-dark);
}

.case__media {
  position: relative;
  margin: 0;
}

.case__media img {
  width: 100%;
  aspect-ratio: 1.44 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
  transition: transform 360ms ease;
}

.case:hover .case__media img {
  transform: translateY(-8px);
}

.text-link {
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  font-weight: 850;
  transition: transform 180ms ease;
}

.size-proof {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 42px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.size-proof__marks {
  display: flex;
  min-height: 96px;
  align-items: flex-end;
  gap: 18px;
}

.size-proof__marks img {
  border-radius: 7px;
}

.case__mark {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 28px;
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 18px;
}

.case__mark img {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 8px;
}

.case__mark p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.process {
  padding-top: 98px;
  padding-bottom: 104px;
  background: var(--paper);
}

.process__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.6fr);
  gap: 72px;
  align-items: end;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 70px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.process__steps li {
  min-height: 300px;
  padding: 24px 22px 0;
  border-right: 1px solid var(--line-light);
}

.process__steps li:first-child {
  padding-left: 0;
}

.process__steps li:last-child {
  border-right: 0;
}

.process__steps span {
  display: block;
  margin-bottom: 64px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
}

.process__steps strong {
  display: block;
  min-height: 58px;
  margin-bottom: 14px;
  font-size: 1.24rem;
  line-height: 1.2;
}

.process__steps p {
  font-size: 0.94rem;
}

.contact {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--coral);
  color: var(--ink);
}

.contact .section-index {
  color: var(--ink);
}

.contact h2 {
  max-width: 820px;
  font-size: 5rem;
}

.contact > p:not(.section-index) {
  max-width: 620px;
  color: rgba(11, 14, 13, 0.76);
}

.button--light {
  margin-top: 12px;
  background: var(--white);
}

footer {
  display: grid;
  min-height: 140px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--ink);
  color: var(--white);
}

footer p {
  margin: 0;
  color: var(--muted-dark);
  text-align: center;
}

footer > a:last-child {
  color: var(--lime);
  font-weight: 800;
}

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

.button:focus-visible,
.text-link:focus-visible,
.topbar a:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .topbar nav {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  h1 {
    font-size: 5.2rem;
  }

  .hero__statement {
    font-size: 2rem;
  }

  .intro,
  .case,
  .process__header {
    grid-template-columns: 1fr;
  }

  .intro,
  .process__header,
  .case {
    gap: 38px;
  }

  .case {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 170px;
  }

  .case__media {
    order: -1;
  }

  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process__steps li:nth-child(2) {
    border-right: 0;
  }

  .process__steps li:nth-child(n + 3) {
    border-top: 1px solid var(--line-light);
  }
}

@media (max-width: 620px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 54px;
    gap: 10px;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .topbar__contact {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 88svh;
    padding-top: 108px;
    padding-bottom: 70px;
  }

  .hero__veil {
    background: rgba(5, 8, 7, 0.84);
  }

  h1 {
    font-size: 4rem;
  }

  .hero__statement {
    font-size: 1.5rem;
  }

  .hero__caption {
    display: none;
  }

  .intro h2,
  .case h2,
  .process h2 {
    font-size: 2.65rem;
  }

  .contact h2 {
    font-size: 3.2rem;
  }

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

  .case {
    padding-top: 68px;
    padding-bottom: 156px;
  }

  .case__media img {
    aspect-ratio: 1 / 0.78;
  }

  .size-proof,
  .case__mark {
    right: 20px;
    left: 20px;
  }

  .size-proof {
    justify-content: space-between;
    gap: 12px;
  }

  .size-proof__marks {
    gap: 10px;
  }

  .size-proof__marks .mark-96 {
    width: 72px;
    height: 72px;
  }

  .case__mark img {
    width: 70px;
    height: 70px;
  }

  .process {
    padding-top: 76px;
    padding-bottom: 80px;
  }

  .process__steps {
    grid-template-columns: 1fr;
  }

  .process__steps li,
  .process__steps li:first-child {
    min-height: 0;
    padding: 24px 0 28px;
    border-right: 0;
    border-top: 1px solid var(--line-light);
  }

  .process__steps span {
    margin-bottom: 26px;
  }

  .process__steps strong {
    min-height: 0;
  }

  .contact {
    min-height: 560px;
  }

  .button--light span {
    overflow-wrap: anywhere;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 36px;
    padding-bottom: 36px;
    text-align: left;
  }

  footer p {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
