:root {
  color-scheme: light;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --ink: #111111;
  --muted: #6e6e73;
  --line: #e5e5e5;
  --accent: #26313c;
  --accent-blue: #5e8fa8;
  --ok: #167044;
  --danger: #b42318;
  --radius: 28px;
  --radius-small: 16px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  border-bottom: 1px solid rgba(229, 229, 229, 0.74);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--max), calc(100% - 44px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 220px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 650;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.14;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.38;
}

.button,
button.button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button img,
.nav-cta img {
  width: 16px;
  height: 16px;
}

.button:disabled {
  cursor: progress;
  opacity: 0.62;
  transform: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(72px, 10vw, 132px) max(22px, 5vw) clamp(58px, 8vw, 98px);
}

.hero-copy {
  max-width: 650px;
}

.hero-media {
  display: grid;
}

.hero-image,
.project-card__image,
.empty-state__image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--alt);
}

.hero-image img {
  width: 100%;
  min-height: clamp(380px, 48vw, 680px);
  object-fit: cover;
}

.section {
  padding: clamp(82px, 11vw, 144px) max(22px, 5vw);
}

.section.alt {
  background: var(--alt);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.46;
}

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

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.project-card__image {
  border-width: 0 0 1px;
  border-radius: 0;
}

.project-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card__body {
  padding: 26px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.project-card p,
.process-step p,
.audience-card p,
.blog-card p {
  color: var(--muted);
  line-height: 1.52;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.audience-card,
.blog-card,
.icon-card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #ffffff;
}

.icon-card img,
.process-step img {
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
}

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

.process-step {
  padding: 30px;
  border-top: 1px solid var(--line);
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px);
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
}

.contact-strip p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
}

.contact-strip .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contact-strip .button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent);
}

.contact-strip .button.secondary.light {
  background: transparent;
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) 1fr;
  gap: 42px;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 46px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__brand img {
  width: 220px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
}

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

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.page-hero,
.page-shell,
.article-shell {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 122px) 0;
}

.page-hero {
  max-width: 1040px;
}

.article-shell {
  max-width: 800px;
}

.page-hero h1,
.page-shell h1,
.article-shell h1 {
  margin-top: 12px;
  font-size: clamp(44px, 6vw, 82px);
}

.article-lead,
.article-body {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
}

.article-body p {
  margin-bottom: 24px;
}

.article-cta {
  margin-top: clamp(54px, 8vw, 84px);
  padding-top: clamp(30px, 5vw, 48px);
  border-top: 1px solid var(--line);
}

.article-cta h2 {
  max-width: 680px;
  font-size: clamp(32px, 4vw, 54px);
}

.article-cta p {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.blog-list-cta {
  margin-top: clamp(44px, 7vw, 72px);
}

.article-meta,
.text-link {
  color: var(--muted);
  font-size: 14px;
}

.text-link:hover {
  color: var(--ink);
}

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

.empty-state {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(48px, 8vw, 86px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--alt);
  text-align: center;
}

.empty-state img {
  width: min(380px, 100%);
}

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 48px;
  padding: 0 15px;
}

textarea {
  min-height: 164px;
  padding: 14px 15px;
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  height: auto;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

.status {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

.status[data-type="ok"] {
  color: var(--ok);
}

.status[data-type="error"] {
  color: var(--danger);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  background: var(--alt);
}

.login-panel {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.login-panel .brand img {
  width: 230px;
  margin-bottom: 26px;
}

.hidden {
  display: none !important;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

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

@media (max-width: 1080px) {
  .icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header__inner {
    position: relative;
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-small) var(--radius-small);
    background: rgba(255, 255, 255, 0.98);
  }

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

  .site-nav a {
    padding: 13px 10px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }

  .hero,
  .contact-strip,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .process-grid,
  .projects-grid,
  .projects-grid.large,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

}

@media (max-width: 680px) {
  .site-header__inner {
    width: min(100% - 32px, var(--max));
  }

  .brand img,
  .site-footer__brand img {
    width: 178px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero,
  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-image img {
    min-height: 300px;
  }

  .projects-grid,
  .projects-grid.large,
  .process-grid,
  .icon-grid,
  .blog-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .audience-card,
  .blog-card,
  .icon-card {
    min-height: auto;
  }
}
