:root {
  --white: #ffffff;
  --paper: #f7f7f7;
  --section: #e9e9e9;
  --black: #050505;
  --text: #262626;
  --muted: #5b5b5b;
  --line: #d8d8d8;
  --line-strong: #d31422;
  --red: #d31422;
  --red-dark: #a50d18;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  --radius: 8px;
  --max: 1180px;
  --heading: "Sora", "Montserrat", system-ui, sans-serif;
  --body: "Source Sans 3", "Open Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(211, 20, 34, 0.78);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 112px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 92px;
  text-decoration: none;
}

.brand-mark img {
  width: clamp(150px, 16vw, 210px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: #111;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100svh - 112px));
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 24px;
  color: var(--white);
  text-align: center;
  background: #000 url("./assets/hero-laptop.jpg") center 46% / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 54%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.68)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44));
}

.hero-content {
  width: min(100%, 880px);
}

.hero-kicker,
.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--red);
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-kicker {
  color: #ffffff;
}

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

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 7vw, 6.1rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 1rem;
  color: var(--red);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 0.72rem;
  color: var(--red);
  font-size: 1.22rem;
  font-weight: 800;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 1.55rem;
  color: #f5f5f5;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 0.92rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-secondary {
  color: var(--white);
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-secondary:hover {
  color: var(--black);
  background: var(--white);
}

.section {
  padding: 84px max(24px, calc((100vw - var(--max)) / 2));
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.25rem);
  align-items: center;
  background: var(--white);
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy p,
.section-heading p,
.service-card p,
.case-card p,
.process-steps p,
.contact-details p,
.policy-shell p {
  color: var(--text);
}

.about-copy p {
  font-size: 1.08rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2.25rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.services-section,
.contact-section {
  background: var(--section);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  overflow: hidden;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-card > div,
.service-card.compact {
  padding: 1.45rem;
}

.service-card.compact {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: center;
}

.service-card.compact::before {
  display: block;
  width: 64px;
  height: 5px;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: var(--red);
  content: "";
}

.service-card p,
.case-card p,
.process-steps p {
  margin-bottom: 0;
}

.portfolio-section {
  background: var(--white);
}

.engagement-section {
  background: var(--black);
}

.engagement-section h2,
.engagement-section .section-heading p {
  color: var(--white);
}

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

.engagement-grid article {
  min-height: 250px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  background: #111;
}

.engagement-grid h3,
.engagement-grid p {
  color: var(--white);
}

.engagement-grid p:last-child {
  margin-bottom: 0;
  color: #d7d7d7;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--paper);
}

.case-card-wide {
  grid-column: span 3;
  min-height: auto;
}

.case-meta {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.case-meta div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.case-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 0.48rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text);
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--red);
  content: "";
}

.tool-list {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.process-section {
  background: var(--black);
}

.process-section h2,
.process-section h3,
.process-section p {
  color: var(--white);
}

.process-section .section-heading p {
  color: #d7d7d7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.process-steps article {
  min-height: 250px;
  padding: 1.35rem;
  background: #111;
}

.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 3rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-family: var(--heading);
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-details {
  padding: 1.5rem;
  border-left: 5px solid var(--red);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-details a {
  display: table;
  margin-top: 0.75rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

label {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(211, 20, 34, 0.7);
  border-radius: 6px;
  color: var(--text);
  background: var(--white);
}

input,
select {
  padding: 0 0.9rem;
}

textarea {
  min-height: 140px;
  padding: 0.85rem 0.9rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 20, 34, 0.14);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-submit {
  width: 100%;
  border-radius: 6px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #f3f3f3;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.site-footer a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red);
}

.policy-page {
  background: var(--white);
}

.policy-header {
  position: static;
}

.policy-nav {
  display: flex;
}

.policy-shell {
  width: min(100% - 48px, 900px);
  margin: 0 auto;
  padding: 78px 0 96px;
}

.policy-shell h1 {
  margin-bottom: 1rem;
  color: var(--red);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.policy-shell h2 {
  margin-bottom: 0.65rem;
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1.1;
}

.policy-shell section {
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}

.policy-kicker,
.policy-updated {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.policy-updated {
  margin-bottom: 2rem;
}

.policy-shell a {
  color: var(--red);
}

@media (max-width: 960px) {
  .site-header {
    min-height: 94px;
  }

  .brand-mark {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

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

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

  .site-nav a {
    display: flex;
    justify-content: center;
    padding: 0.8rem;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .policy-nav {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .about-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .case-study-grid,
  .engagement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card-wide {
    grid-column: span 2;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 82px;
    padding-inline: 16px;
  }

  .brand-mark {
    min-height: 62px;
  }

  .brand-mark img {
    width: 132px;
  }

  .hero {
    min-height: 560px;
    padding: 76px 16px;
    background-attachment: scroll;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 66px 16px;
  }

  .service-grid,
  .case-study-grid,
  .engagement-grid,
  .process-steps,
  .case-card-wide {
    grid-template-columns: 1fr;
  }

  .case-card-wide {
    grid-column: span 1;
  }

  .service-card img {
    height: 180px;
  }

  .case-card,
  .service-card.compact,
  .process-steps article {
    min-height: auto;
  }

  .case-meta div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    padding-inline: 16px;
  }

  .site-footer nav {
    justify-content: center;
  }

  .policy-shell {
    width: min(100% - 32px, 900px);
    padding-top: 58px;
  }
}

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