:root {
  --blue: #0380ff;
  --ink: #151415;
  --paper: #fefffe;
  --warm: #f7f0df;
  --mist: #edf4f8;
  --line: #d8dde3;
  --muted: #62666f;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Sora", Avertastd, sans-serif;
  font-weight: 300;
  line-height: 1.75;
}

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

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 18px;
  z-index: 10;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  top: 18px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand img,
.footer-brand img {
  width: min(260px, 100%);
  max-height: 48px;
  height: auto;
  object-fit: contain;
}

.footer-brand img {
  width: min(220px, 100%);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-button,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  font: 700 0.94rem/1 "Sora", Avertastd, sans-serif;
  cursor: pointer;
}

.primary,
.nav-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.secondary {
  background: var(--paper);
}

.hero {
  padding: 82px 0 72px;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 4.2vw, 4.25rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 2.65vw, 2.75rem);
  line-height: 1.12;
}

h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.75vw, 1.65rem);
  line-height: 1.15;
}

.lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  font-weight: 300;
  line-height: 1.75;
}

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

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 15px 0;
  animation: ticker 30s linear infinite;
}

.ticker span {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.manifesto {
  background: var(--paper);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 48px;
}

.manifesto h2 {
  max-width: 900px;
}

.section-head {
  max-width: 740px;
  margin-bottom: 40px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.service-list article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.service-list article:last-child {
  border-right: 0;
}

.service-list span {
  color: var(--blue);
  font-weight: 700;
}

.service-list p {
  margin: auto 0 0;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
}

.proof {
  background: var(--mist);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-item {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.work-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: var(--warm);
}

.work-item span {
  padding: 0 18px 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lightbox {
  width: min(1120px, calc(100% - 28px));
  max-width: none;
  height: min(92svh, 980px);
  max-height: none;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(21, 20, 21, 0.72);
}

.lightbox-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.lightbox-bar strong {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lightbox-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.82rem/1 "Sora", Avertastd, sans-serif;
  cursor: pointer;
}

.lightbox-actions button:last-child {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.lightbox-stage {
  height: calc(100% - 67px);
  overflow: auto;
  padding: 18px;
  background: var(--mist);
}

.lightbox-stage img {
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  background: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(380px, 1fr);
  gap: 60px;
}

.process ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.process li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink);
}

.process strong {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process span {
  color: var(--ink);
  font-weight: 300;
  line-height: 1.75;
}

.contact-section {
  background: var(--ink);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: 60px;
  align-items: start;
}

.contact-grid .eyebrow {
  color: #fff;
}

.contact-grid p {
  max-width: 620px;
  color: #d9dde3;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.hero-form {
  border-color: var(--ink);
}

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

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  font: 300 1rem/1.7 "Sora", Avertastd, sans-serif;
}

.site-footer {
  padding: 30px 0;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-weight: 300;
}

.footer-grid p {
  margin: 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-layout,
  .manifesto-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-form {
    max-width: 560px;
  }

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

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

  .service-list article:nth-child(2) {
    border-right: 0;
  }

  .service-list article:nth-child(1),
  .service-list article:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 74px;
  }

  .brand img {
    width: min(180px, 100%);
    max-height: 38px;
  }

  .nav-button {
    min-height: 42px;
    padding: 11px 14px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-layout {
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.35rem, 9.5vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

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

  .lightbox-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-list article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-list article:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 62px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .footer-grid p {
    max-width: 280px;
  }
}
