:root {
  --paper: #f6f7f2;
  --paper-strong: #ffffff;
  --ink: #111713;
  --ink-soft: #4d5750;
  --line: #dce3dc;
  --line-strong: #c8d2c9;
  --accent: #0a7c5a;
  --accent-dark: #06533d;
  --surface: rgba(255, 255, 255, 0.74);
  --shadow: 0 22px 60px -38px rgba(17, 23, 19, 0.38);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 23, 19, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.78), rgba(246, 247, 242, 0.46) 44%, rgba(232, 239, 232, 0.68)),
    linear-gradient(180deg, transparent 0%, rgba(10, 124, 90, 0.08) 100%);
}

a {
  color: inherit;
}

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

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(17, 23, 19, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 19, 0.08) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(220, 227, 220, 0.86);
  border-radius: 8px;
  background: rgba(246, 247, 242, 0.76);
  box-shadow: 0 16px 38px -31px rgba(17, 23, 19, 0.42);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions,
.tag-list,
.link-row,
.case-meta,
.case-stamp {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 40%, var(--paper) 40% 58%, transparent 58%),
    linear-gradient(180deg, transparent 40%, var(--paper) 40% 58%, transparent 58%),
    var(--accent);
  transform: rotate(45deg);
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(17, 23, 19, 0.06);
}

.nav-links a:active,
.button:active {
  transform: translateY(1px) scale(0.99);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero-copy {
  max-width: 620px;
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 58px;
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text,
.contact-section p,
.case-summary,
.process-list p,
.empty-state p,
.error-state p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero-text {
  max-width: 550px;
  margin-bottom: 30px;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: border-color 260ms var(--ease), background 260ms var(--ease), color 260ms var(--ease), transform 260ms var(--ease);
  will-change: transform;
}

.button-primary {
  color: #ffffff;
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 34px -28px rgba(17, 23, 19, 0.64);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.58);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--ink);
  background: var(--paper-strong);
}

.hero-showcase {
  position: relative;
  padding: 0;
}

.browser-frame {
  overflow: hidden;
  border: 1px solid rgba(200, 210, 201, 0.9);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transform-origin: center;
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}

.browser-frame:hover {
  box-shadow: 0 30px 90px -46px rgba(17, 23, 19, 0.5);
}

.browser-top {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 242, 0.86);
}

.browser-top span {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(17, 23, 19, 0.18);
  border-radius: 999px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(238, 241, 236, 0.48)),
    linear-gradient(90deg, rgba(10, 124, 90, 0.04), rgba(17, 23, 19, 0.04));
}

.metric-card {
  padding: 16px;
  border: 1px solid rgba(200, 210, 201, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.metric-value,
.metric-label {
  margin: 0;
}

.metric-value {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 24px;
  font-weight: 700;
}

.metric-label {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.case-stamp {
  position: absolute;
  right: 28px;
  bottom: 12px;
  gap: 10px;
  max-width: calc(100% - 56px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 38px -30px rgba(17, 23, 19, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

.service-strip {
  display: flex;
  gap: 8px;
}

.service-strip span {
  padding: 4px 8px;
  border: 1px solid rgba(200, 210, 201, 0.9);
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-strip .live-dot {
  width: 9px;
  height: 9px;
  margin: 0 2px 0 0;
  padding: 0;
  border: 0;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(10, 124, 90, 0.32);
  animation: pulse 2.4s var(--ease) infinite;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  margin-top: 120px;
  margin-bottom: 72px;
}

.ticker div {
  display: flex;
  width: max-content;
  gap: 42px;
  padding: 15px 0;
  color: var(--ink-soft);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  animation: marquee 52s linear infinite;
}

.ticker span {
  position: relative;
}

.ticker span::after {
  position: absolute;
  top: 50%;
  right: -25px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-cases {
  padding-top: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.64fr 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 760px;
  display: block;
}

.project-state {
  min-height: 360px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  animation: rise 720ms var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.case-visual {
  overflow: hidden;
  border: 1px solid rgba(200, 210, 201, 0.9);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 22px 56px -42px rgba(17, 23, 19, 0.46);
}

.case-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 700ms var(--ease);
}

.case-study:hover .case-visual img {
  transform: scale(1.025);
}

.case-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study.is-reverse .case-visual {
  order: 2;
}

.case-study.is-reverse .case-copy {
  order: 1;
}

.case-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.case-meta span,
.tag-list span {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.52);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.case-copy h3 {
  margin-bottom: 14px;
}

.case-summary {
  margin-bottom: 18px;
}

.case-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.case-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.case-list li::before {
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transform: rotate(45deg);
}

.tag-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.case-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.case-links a {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 220ms var(--ease), color 220ms var(--ease), background 220ms var(--ease);
}

.case-links a:hover,
.case-links a:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.link-row {
  flex-wrap: wrap;
  gap: 10px;
}

.link-row a {
  min-height: 42px;
  padding: 0 14px;
}

.skeleton-case {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.skeleton {
  overflow: hidden;
  position: relative;
  display: block;
  border-radius: 8px;
  background: rgba(17, 23, 19, 0.08);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.55s infinite;
}

.skeleton-media {
  aspect-ratio: 16 / 10;
}

.skeleton-lines {
  display: grid;
  gap: 12px;
}

.skeleton-small {
  width: 154px;
  height: 28px;
}

.skeleton-title {
  width: 84%;
  height: 46px;
}

.skeleton-line {
  width: 100%;
  height: 18px;
}

.skeleton-line.short {
  width: 62%;
}

.empty-state,
.error-state {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.projects-end {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 28px 0 6px;
  border-top: 1px solid var(--line);
}

.projects-end span {
  color: var(--ink-soft);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty-state h3,
.error-state h3 {
  margin-bottom: 10px;
}

.process-section {
  padding-top: 12px;
}

.process-list {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 0.9fr;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li {
  min-height: 250px;
  padding: 28px 26px 34px 0;
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
  padding-left: 26px;
}

.process-list li:nth-child(2) {
  padding-left: 26px;
}

.process-list span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.process-list strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.1;
}

.process-list p {
  margin-bottom: 0;
  font-size: 16px;
}

.contact-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 32px 0 84px;
}

.contact-section h2 {
  max-width: 780px;
  margin-bottom: 20px;
}

.contact-section p {
  max-width: 610px;
  margin-bottom: 28px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 124, 90, 0.32);
  }
  72% {
    box-shadow: 0 0 0 12px rgba(10, 124, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 124, 90, 0);
  }
}

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

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

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

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

@media (max-width: 960px) {
  .hero,
  .case-study,
  .skeleton-case,
  .section-heading,
  .process-list {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero,
  .section,
  .contact-section,
  .footer {
    width: min(100% - 32px, 1180px);
  }

  .topbar {
    gap: 16px;
    margin-top: 14px;
  }

  .case-study.is-reverse .case-visual,
  .case-study.is-reverse .case-copy {
    order: initial;
  }

  .hero {
    min-height: auto;
    gap: 32px;
    padding: 24px 0 32px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-text {
    margin-bottom: 24px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 40px;
  }

  .process-list {
    border-bottom: 0;
  }

  .case-study,
  .skeleton-case {
    gap: 24px;
  }

  .ticker {
    margin-top: 80px;
    margin-bottom: 96px;
  }

  .section {
    padding: 80px 0;
  }

  .process-list li,
  .process-list li:nth-child(2),
  .process-list li:last-child {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list span {
    margin-bottom: 18px;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-links a {
    padding: 10px 6px;
    text-align: center;
  }

  .hero,
  .section,
  .contact-section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    gap: 24px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 26px;
  }

  .hero-text,
  .contact-section p,
  .case-summary {
    font-size: 16px;
  }

  .case-stamp {
    position: static;
    margin-top: 12px;
  }

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

  .hero-actions,
  .contact-actions,
  .link-row {
    width: 100%;
  }

  .case-links {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .contact-actions .button,
  .link-row a {
    width: 100%;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-value {
    font-size: 22px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .ticker {
    margin-top: 56px;
    margin-bottom: 64px;
  }

  .section {
    padding: 68px 0;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .topbar,
  .hero,
  .section,
  .contact-section,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 36px;
    line-height: 0.98;
  }

  h2 {
    font-size: 30px;
  }

  .button {
    min-height: 46px;
    padding: 0 14px;
  }

  .showcase-grid {
    gap: 10px;
    padding: 10px;
  }

  .metric-label {
    font-size: 13px;
  }

  .ticker div {
    gap: 28px;
  }
}
