:root {
  --ink: #151515;
  --muted: #747474;
  --line: rgba(21, 21, 21, 0.1);
  --mint: #f1f6f5;
  --card: #f8f8f8;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 20px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
}

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

.section-shell,
.header-inner {
  width: min(calc(100% - 20px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
}

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

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.nav-link:not(.contact-link)::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.contact-link {
  display: block;
  padding: 10px 33px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  transition: color 0.2s linear, background-color 0.2s linear;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px 6px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 29px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-top: 90px;
  padding-bottom: 120px;
}

.hero h1 {
  margin-bottom: 0;
  font-size: 68px;
  font-weight: 300;
  line-height: 1.3;
}

.hero p {
  width: min(970px, 100%);
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 33px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  font: 300 16px/1.5 "Manrope", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.button-dark:hover {
  color: var(--ink);
  background: #fff;
}

.hero .button {
  margin-top: 24px;
}

.sectors,
.portfolio {
  padding-bottom: 120px;
}

.section-title {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  text-transform: uppercase;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 30px;
  padding-top: 36px;
}

.sector-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 234px;
  padding: 32px 24px;
  background: var(--mint);
}

.sector-card h3 {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
}

.sector-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 56px 30px;
  padding-top: 36px;
}

.portfolio-item {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  min-width: 0;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  min-height: 286px;
  padding: 42px 32px;
  background: var(--card);
}

.logo-box {
  display: flex;
  min-height: 50px;
  align-items: flex-start;
  justify-content: center;
}

.logo-box img {
  width: auto;
  max-width: 250px;
  max-height: 50px;
  object-fit: contain;
  object-position: left top;
}

.portfolio-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 17px;
}

.portfolio-meta a {
  font-size: 24px;
  line-height: 1.5;
  text-decoration: none;
}

.portfolio-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.portfolio-meta span {
  flex: 0 0 auto;
  padding: 2px 16px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  line-height: 23px;
  text-transform: none;
}

.contact {
  padding-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  padding-top: 36px;
}

.contact-copy h3 {
  width: min(400px, 100%);
  margin-bottom: 22px;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.3;
}

.contact-copy p {
  width: min(300px, 100%);
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.5;
}

.contact-copy a {
  color: #8a4a5b;
  text-underline-offset: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 56px 54px;
  background: var(--mint);
}

.contact-form > label,
.form-row {
  width: 100%;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.form-row label {
  min-width: 0;
}

.contact-form label {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  color: #777;
  background: #fff;
  font: 300 12px/1.5 "Manrope", sans-serif;
  outline: none;
}

.contact-form input {
  height: 46px;
}

.contact-form textarea {
  min-height: 142px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #9b9b9b;
}

.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  text-transform: none;
}

.contact-form > .botcheck {
  display: none;
}

.consent input[type="checkbox"] {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 8px;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
}

.consent input[type="checkbox"]:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 4px #fff;
}

.consent span {
  padding-top: 1px;
}

.consent a {
  text-decoration: underline;
}

.contact-form .button:hover {
  background: #fff;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-form .button:disabled:hover {
  color: #fff;
  background: var(--ink);
}

.form-message {
  display: none;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message.visible {
  display: block;
}

.form-message.error {
  color: #9b1c1c;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--line);
  color: #777;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  html {
    scroll-padding-top: 84px;
  }

  .header-inner {
    min-height: 84px;
    padding: 20px 0;
  }

  .brand img {
    max-width: 219px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .primary-navigation {
    position: absolute;
    z-index: 30;
    top: 100%;
    right: -10px;
    left: -10px;
    display: none;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--card);
  }

  .primary-navigation.open {
    display: block;
  }

  .nav-link,
  .contact-link {
    display: block;
    padding: 15px 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link:hover,
  .nav-link.active,
  .contact-link:hover {
    color: #fff;
    background: var(--ink);
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .sectors,
  .portfolio {
    padding-bottom: 60px;
  }

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

  .portfolio-card {
    min-height: 0;
    padding: 32px 24px;
  }

  .portfolio-meta a {
    font-size: 16px;
  }

  .contact {
    padding-bottom: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .contact-copy h3 {
    width: 100%;
    font-size: 50px;
  }

  .contact-copy p {
    width: 100%;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  .brand img {
    width: min(218px, 62vw);
  }

  .hero {
    gap: 26px;
  }

  .hero h1 {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero .button {
    margin-top: 0;
  }

  .sector-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .portfolio-grid {
    gap: 30px;
  }

  .sector-card {
    min-height: 0;
  }

  .portfolio-card {
    gap: 24px;
  }

  .portfolio-meta {
    flex-wrap: wrap;
  }

  .contact-copy h3 {
    font-size: 30px;
  }

  .contact-copy p {
    font-size: 16px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
