@font-face {
  font-family: "Cascadia Mono";
  src: url("../fonts/cascadia-mono-light-10c85af3.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Cascadia Mono";
  src: url("../fonts/cascadia-mono-semilight-8168b5ed.woff2") format("woff2");
  font-style: normal;
  font-weight: 350;
  font-display: swap;
}

@font-face {
  font-family: "Cascadia Mono";
  src: url("../fonts/cascadia-mono-regular-d004563e.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cascadia Mono";
  src: url("../fonts/cascadia-mono-semibold-48133abf.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cascadia Mono";
  src: url("../fonts/cascadia-mono-bold-7605cc43.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --color-canvas: hsl(240 3% 6%);
  --color-text: hsl(0 0% 98%);
  --color-primary: hsl(223 100% 38%);
  --color-primary-deep: #001a5c;
  --color-secondary: hsl(225 5% 15%);
  --color-muted: hsl(220 5% 22%);
  --color-muted-text: hsl(225 5% 49%);
  --color-accent: hsl(222 45% 14%);
  --color-border: hsl(220 5% 12%);
  --color-input: hsl(225 4% 18%);
  --color-danger: hsl(0 84% 60%);
  --color-canvas-72: hsl(240 3% 6% / 72%);
  --color-canvas-86: hsl(240 3% 6% / 86%);
  --color-canvas-88: hsl(0 0% 7% / 88%);
  --color-text-30: hsl(0 0% 100% / 30%);
  --color-text-70: hsl(0 0% 100% / 70%);
  --color-text-soft: hsl(0 0% 88%);
  --color-muted-soft: hsl(220 10% 66%);
  --color-primary-10: hsl(223 100% 38% / 10%);
  --color-primary-22: hsl(223 100% 44% / 22%);
  --color-primary-24: hsl(223 100% 42% / 24%);
  --color-primary-38: hsl(223 100% 38% / 38%);
  --color-primary-44: hsl(223 100% 38% / 44%);
  --color-primary-58: hsl(223 100% 38% / 58%);
  --color-primary-65: hsl(223 100% 54% / 65%);
  --color-primary-hover: hsl(223 100% 43%);
  --color-home-primary: hsl(258 100% 42%);
  --color-home-primary-hover: hsl(258 100% 48%);
  --color-overlay-light: hsl(0 0% 96% / 30%);
  --color-success: #2f9e77;
  --color-success-surface: #0b3328;
  --color-error-surface: #3b1115;
  --color-error-text: #ff9b9b;
  --color-form-focus: #ff4f00;
  --radius-card: 4px;
  --radius-control: 16px;
  --radius-media: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --header-height: 56px;
  --footer-height: 80px;
  --container-gutter: 16px;
  --container-max: 1540px;
  --font-mono:
    "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-primary);
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.page-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-background__orb {
  position: absolute;
  width: var(--page-orb-size);
  aspect-ratio: 1;
  top: var(--page-orb-y);
  left: var(--page-orb-x);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--page-orb-color) 0%,
    color-mix(in srgb, var(--page-orb-color) 78%, transparent) 48%,
    transparent 72%
  );
  opacity: var(--page-orb-opacity);
  filter: blur(42px);
}

.page-background__orb--left-edge {
  left: calc(var(--page-orb-size) / 2);
}

@media (max-width: 767px) {
  .page-background__orb {
    transform: translate(-50%, -50%) scale(0.55);
  }

  .page-background__orb--left-edge {
    left: calc(var(--page-orb-size) * 0.275);
  }
}

.site-main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.container--narrow {
  max-width: 760px;
}

.container--full {
  max-width: none;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: hsl(240 3% 6% / 86%);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-logo {
  display: inline-flex;
  min-width: 82px;
  min-height: 44px;
  align-items: center;
}

.site-logo img {
  width: 82px;
  height: auto;
  object-fit: contain;
}

.desktop-nav,
.site-header .site-header__cta {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  font-size: 18px;
  font-weight: 300;
  text-decoration: none;
}

.nav-link::after {
  position: absolute;
  right: 16%;
  bottom: 7px;
  left: 16%;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 240ms ease-out;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  position: relative;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.menu-button__bar {
  position: absolute;
  width: 24px;
  height: 1px;
  background: var(--color-text);
  transition:
    transform 300ms ease,
    opacity 300ms ease;
}

.menu-button__bar:nth-child(1) {
  transform: translateY(-8px);
}
.menu-button__bar:nth-child(3) {
  transform: translateY(8px);
}

.menu-button[aria-expanded="true"] .menu-button__bar:nth-child(1) {
  transform: rotate(45deg);
}
.menu-button[aria-expanded="true"] .menu-button__bar:nth-child(2) {
  opacity: 0;
}
.menu-button[aria-expanded="true"] .menu-button__bar:nth-child(3) {
  transform: rotate(-45deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 19;
  overflow: auto;
  border-top: 1px solid var(--color-border);
  background:
    radial-gradient(
      circle at 50% 112%,
      hsl(223 100% 38% / 44%),
      transparent 42%
    ),
    var(--color-canvas);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding-top: var(--space-14);
  padding-bottom: max(var(--space-20), env(safe-area-inset-bottom));
}

.nav-link--mobile {
  font-size: 24px;
}

.mobile-menu__cta {
  width: min(100%, 360px);
  margin-top: var(--space-8);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 240ms ease-out,
    background-color 240ms ease-out,
    color 240ms ease-out,
    opacity 240ms ease-out;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-text);
}

.button--primary:hover {
  background: hsl(223 100% 43%);
}

.button--outline {
  border-color: var(--color-input);
  background: transparent;
  color: var(--color-text);
}

.button--outline:hover {
  background: var(--color-accent);
}

.button--text {
  background: transparent;
  color: var(--color-text);
  text-decoration: underline;
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-page h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(32px, 6vh, 64px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.error-page__inner > p {
  max-width: 620px;
  margin: var(--space-6) 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.375;
}

.error-page {
  display: flex;
  min-height: calc(100svh - var(--header-height) - var(--footer-height));
  align-items: center;
  padding-block: var(--space-14);
}

.error-page__code {
  margin: 0 0 var(--space-4);
  color: var(--color-muted-text);
  font-size: 20px;
}

.error-page .button {
  margin-top: var(--space-8);
}

.site-footer {
  position: relative;
  z-index: 3;
  min-height: var(--footer-height);
  border-top: 1px solid var(--color-border);
  background: hsl(240 3% 6% / 72%);
  backdrop-filter: blur(8px);
}

.site-footer__inner {
  display: flex;
  min-height: var(--footer-height);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-block: var(--space-4);
  text-align: center;
}

.site-footer p,
.site-footer a {
  margin: 0;
  font-size: 14px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-4);
}

.site-footer__nav a {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer a {
  color: var(--color-muted-text);
}

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

/* Stage 6 public site */
.eyebrow {
  margin: 0 0 var(--space-4);
  color: hsl(220 10% 66%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.breadcrumbs {
  padding-top: var(--space-6);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--color-muted-text);
  font-size: 13px;
  line-height: 1.4;
  list-style: none;
  white-space: nowrap;
}

.breadcrumbs li {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs li + li::before {
  margin-right: var(--space-2);
  color: var(--color-border);
  content: "/";
}

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

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--color-text);
}

.section {
  padding-block: clamp(72px, 10vw, 160px);
}

.section-heading {
  display: grid;
  gap: var(--space-3);
  margin-bottom: clamp(40px, 6vw, 88px);
}

.section-heading > * {
  margin: 0;
}

.section-heading h2,
.logo-section h2,
.final-cta h2,
.service-tasks h2 {
  max-width: 16ch;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.service-catalog {
  padding-block: clamp(48px, 7vw, 96px) clamp(72px, 10vw, 160px);
}

.service-catalog__intro {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 88px);
}

.service-catalog__intro h1 {
  margin: 0;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.service-catalog__intro p {
  max-width: 34ch;
  margin: var(--space-4) 0 0;
  color: var(--color-muted-text);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
}

.about-offers {
  padding-block: clamp(40px, 5vw, 80px) clamp(56px, 7vw, 112px);
}

.about-offers .section-heading {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.about-offers .section-heading h1 {
  max-width: 16ch;
  color: var(--color-text);
  font-size: clamp(28px, 3.1vw, 48px);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.home-hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-height) - var(--footer-height));
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero {
  min-height: calc(100svh - var(--header-height));
}

.page-home .site-footer {
  margin-top: calc(var(--footer-height) * -1);
}

.home-hero::before,
.page-hero::before {
  position: absolute;
  width: min(75vw, 980px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: hsl(223 100% 38% / 38%);
  filter: blur(130px);
  pointer-events: none;
}

.home-hero::before {
  content: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  align-items: stretch;
  padding-block: 0;
}

.home-hero__copy {
  display: flex;
  width: min(100%, 512px);
  flex: 0 1 512px;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.page-home .home-hero__copy {
  transform: translateY(calc(var(--footer-height) * -0.5));
}

.home-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(32px, 6vh, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.home-hero__lead {
  max-width: 512px;
  margin: 0;
  font-size: clamp(20px, 1vh, 24px);
  font-weight: 600;
  line-height: 1.375;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: 0;
}

.home-hero__actions .button {
  width: 100%;
}

.home-hero__spiral-position {
  position: absolute;
  z-index: 1;
  top: -80px;
  right: -100%;
  width: 1700px;
  max-width: none;
  pointer-events: none;
  transform: translateX(10%);
}

.home-hero__spiral {
  display: block;
  width: 100%;
  max-width: none;
  animation: spiral-rotation 20s linear infinite;
}

.home-hero__brief {
  display: inline-flex;
}

@media (max-width: 1023px) {
  .page-home .home-hero__copy {
    transform: translateY(20px);
  }

  .home-hero__lead {
    font-size: 14px;
    line-height: 1.45;
  }

  .home-hero__actions .button {
    min-height: 34px;
    font-size: 14px;
  }

  .home-hero__brief {
    border-color: hsl(258 100% 42%);
    background: hsl(258 100% 42%);
  }

  .home-hero__brief:hover {
    background: hsl(258 100% 48%);
  }
}

.page-hero {
  position: relative;
  min-height: min(74svh, 820px);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.page-hero::before {
  top: -65%;
  right: -18%;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(72px, 10vw, 144px);
}

.page-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(48px, 9vw, 148px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.page-hero__lead {
  max-width: 820px;
  margin: clamp(28px, 4vw, 56px) 0 0;
  color: hsl(0 0% 88%);
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.35;
}

.hero-enter {
  animation: hero-enter 700ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.hero-enter--delay {
  animation-delay: 100ms;
}

.hero-enter--delay-2 {
  animation-delay: 220ms;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms ease var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.22, 0.8, 0.24, 1) var(--reveal-delay, 0ms);
}

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

.reveal--delay-1 {
  --reveal-delay: 70ms;
}
.reveal--delay-2 {
  --reveal-delay: 140ms;
}
.reveal--delay-3 {
  --reveal-delay: 210ms;
}

.service-grid {
  display: grid;
  gap: 10px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 126px;
  align-items: center;
  gap: var(--space-5);
  padding: 14px 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  isolation: isolate;
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease,
    transform 300ms ease;
}

.service-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(circle, hsl(223 100% 44% / 22%), transparent 68%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: hsl(223 100% 54% / 65%);
  box-shadow: 0 0 28px hsl(223 100% 42% / 24%);
  transform: translateY(-2px);
}

.service-card__icon {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms ease;
}

.service-card:hover .service-card__icon img,
.service-card:focus-visible .service-card__icon img {
  transform: scale(1.06);
}

.service-card__copy {
  display: grid;
  gap: 6px;
}

.service-card__copy strong {
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.1;
}

.service-card__copy span {
  color: var(--color-muted-text);
  font-size: 14px;
}

@media (max-width: 767px) {
  .about-offers .service-card:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
  }

  .about-offers .service-card:nth-child(even) .service-card__copy {
    justify-items: end;
  }
}

.project-card__arrow {
  font-size: 28px;
  transition: transform 260ms ease;
}

.project-card__link:hover .project-card__arrow,
.project-card__link:focus-visible .project-card__arrow {
  transform: translate(5px, -5px);
}

.project-catalog {
  padding-top: clamp(56px, 8vw, 124px);
}

.project-filters {
  margin: 0 0 clamp(48px, 6vw, 92px);
}

.project-filters__groups {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 7vw, 130px);
}

.project-filters__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-filters__group legend {
  margin-bottom: 24px;
  padding: 0;
  color: var(--color-text);
  font-size: clamp(24px, 2.15vw, 36px);
  font-weight: 350;
  line-height: 1.1;
}

.project-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-filter-chip {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--color-input);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.project-filter-chip input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.project-filter-chip::before {
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: var(--color-muted);
  content: "";
}

.project-filter-chip:hover,
.project-filter-chip:has(input:focus-visible) {
  border-color: color-mix(in srgb, var(--color-text) 48%, transparent);
}

.project-filter-chip.is-active,
.project-filter-chip:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.project-filter-chip.is-active::before,
.project-filter-chip:has(input:checked)::before {
  background: hsl(0 0% 96% / 30%);
}

.project-filters__mobile-toggle {
  display: none;
}

.project-filters__apply {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: var(--color-text);
  font: inherit;
}

.project-filters__apply[hidden] {
  display: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.2vw, 48px) clamp(20px, 2.3vw, 36px);
}

.project-card__link {
  display: block;
  text-decoration: none;
}

.project-card__media {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-secondary);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms cubic-bezier(0.22, 0.8, 0.24, 1),
    filter 500ms ease;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: hsl(223 100% 38% / 58%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.project-card__link:hover img,
.project-card__link:focus-visible img {
  transform: scale(1.045);
  filter: blur(10px) saturate(1.1);
}

.project-card__link:hover .project-card__overlay,
.project-card__link:focus-visible .project-card__overlay {
  opacity: 1;
}

.project-card__copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-5);
}

.project-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  grid-column: 1 / -1;
  color: var(--color-muted-text);
  font-size: 13px;
}

.project-card__desktop-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--color-text);
  opacity: 0;
  text-align: center;
  transition: opacity 360ms ease;
}

.project-card__desktop-copy p,
.project-card__desktop-copy h2 {
  margin: 0;
}

.project-card__desktop-copy p {
  transform: translateY(-22px);
  transition: transform 280ms ease;
}

.project-card__desktop-copy h2 {
  max-width: 80%;
  transform: translateY(8px);
  font-size: clamp(21px, 2vw, 31px);
  font-weight: 350;
  line-height: 1.08;
  transition: transform 280ms ease 50ms;
}

.project-card__desktop-copy div {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: flex;
  justify-content: center;
  gap: 8px 16px;
  transform: translateY(28px);
  font-size: 13px;
  transition: transform 280ms ease 90ms;
}

.project-card__link:hover .project-card__desktop-copy,
.project-card__link:focus-visible .project-card__desktop-copy {
  opacity: 1;
}

.project-card__link:hover .project-card__desktop-copy p,
.project-card__link:focus-visible .project-card__desktop-copy p,
.project-card__link:hover .project-card__desktop-copy h2,
.project-card__link:focus-visible .project-card__desktop-copy h2,
.project-card__link:hover .project-card__desktop-copy div,
.project-card__link:focus-visible .project-card__desktop-copy div {
  transform: translateY(0);
}

.project-card__copy p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-muted-text);
  font-size: 14px;
}

.project-card__copy h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 350;
  line-height: 1.08;
}

.project-cta-card {
  aspect-ratio: 5 / 3;
  border: 1px solid color-mix(in srgb, var(--color-text) 22%, transparent);
  border-radius: 30px;
  transition:
    border-color 220ms ease,
    background-color 220ms ease;
}

.project-cta-card__link {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--color-muted-text);
  text-align: center;
  text-decoration: none;
}

.project-cta-card__link strong {
  color: var(--color-text);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 350;
}

.project-cta-card__link span {
  font-size: clamp(15px, 1.35vw, 20px);
}

.project-cta-card:hover,
.project-cta-card:focus-within {
  border-color: var(--color-primary);
  background: hsl(223 100% 38% / 10%);
}

.empty-state {
  padding-block: var(--space-20);
  border-block: 1px solid var(--color-border);
  font-size: clamp(18px, 2vw, 28px);
}

.case-intro {
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px);
}

.case-intro__inner {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}

.case-intro__copy {
  align-self: center;
}

.case-intro h1 {
  margin: 0;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}

.case-intro__copy > p {
  margin: var(--space-3) 0 0;
  color: var(--color-muted-text);
  font-size: clamp(16px, 1.5vw, 20px);
}

.case-intro__media {
  width: 100%;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-media);
  background: var(--color-secondary);
}

.case-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-intro {
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px);
}

.service-intro__grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}

.service-intro__copy {
  align-self: center;
}

.service-intro h1 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}

.service-intro__lead {
  max-width: 32ch;
  margin: var(--space-4) 0 0;
  color: var(--color-muted-text);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
}

.service-intro__tasks {
  align-self: end;
}

.service-intro__tasks ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
}

.service-intro__tasks li {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 350;
  line-height: 1.3;
}

.service-description .content-section:first-child {
  border-top: 1px solid var(--color-border);
}

.related-projects .section-heading h2 {
  max-width: none;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.case-featured-video {
  width: min(calc(100% - (var(--container-gutter) * 2)), 1024px);
  margin: 0 auto;
  padding: 0;
}

.case-featured-video .content-video__frame {
  border-radius: var(--radius-media);
}

.case-featured-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}

.case-tags a {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--color-input);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}

.case-story {
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 9vw, 128px);
}

.case-story__grid {
  display: grid;
  gap: clamp(48px, 7vw, 96px) clamp(40px, 7.5vw, 128px);
}

.case-story__item h2 {
  margin: 0 0 var(--space-3);
  color: var(--color-text);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.35;
}

.case-story__item > div {
  color: var(--color-text);
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 300;
  line-height: 1.55;
}

.case-story-feature {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-block: 0 clamp(56px, 9vw, 128px);
}

.case-story-feature__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
}

.case-story-feature__media img {
  width: 100%;
}

.content-section {
  padding-block: clamp(64px, 9vw, 140px);
  border-bottom: 1px solid var(--color-border);
}

.content-section__grid,
.service-tasks__grid {
  display: grid;
  gap: var(--space-8);
}

.content-section h2,
.service-tasks h2 {
  margin: 0;
  color: var(--color-muted-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-section__body {
  max-width: 920px;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.55;
}

.content-gallery {
  display: grid;
  gap: var(--space-6);
  padding-block: clamp(64px, 9vw, 140px);
}

.content-gallery__item,
.content-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
}

.content-video {
  padding-block: clamp(64px, 9vw, 140px);
}

.content-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--color-secondary);
}

.content-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.content-gallery img,
.content-media img {
  width: 100%;
}

.case-page .content-media {
  width: min(calc(100% - (var(--container-gutter) * 2)), var(--container-max));
  margin-inline: auto;
}

.case-page .content-video {
  padding-block: clamp(48px, 7vw, 96px);
}

.case-page .content-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-tasks__grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.service-tasks__grid li {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  font-size: clamp(20px, 2.5vw, 36px);
}

.logo-section {
  border-top: 1px solid var(--color-border);
}

.page-pages-about .logo-section {
  padding-block: clamp(42px, 5vw, 72px);
  border-top: 0;
}

.logo-section h2 {
  margin: 0 0 clamp(48px, 7vw, 96px);
}

.page-pages-about .logo-section h2 {
  margin-bottom: clamp(24px, 3vw, 42px);
  font-size: clamp(28px, 3.1vw, 48px);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  list-style: none;
}

.logo-grid li {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.logo-grid img {
  width: auto;
  max-width: 76%;
  max-height: 76px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.7);
  transition:
    filter 300ms ease,
    transform 300ms ease;
}

.logo-grid li:hover img {
  filter: none;
  transform: scale(1.04);
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.page-pages-about .logo-marquee {
  border: 0;
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: client-logo-marquee 34s linear infinite;
}

.logo-marquee__item {
  display: grid;
  width: clamp(190px, 18vw, 320px);
  height: 164px;
  flex: 0 0 auto;
  place-items: center;
  padding: var(--space-6);
  border-right: 1px solid var(--color-border);
}

.page-pages-about .logo-marquee__item {
  border-right: 0;
}

.logo-marquee__item img {
  width: auto;
  max-width: 76%;
  max-height: 76px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.7);
  transition:
    filter 300ms ease,
    transform 300ms ease;
}

.logo-marquee__item.is-featured img,
.logo-marquee__item:hover img {
  filter: none;
  transform: scale(1.04);
}

.logo-section--awards .logo-grid {
  grid-template-columns: 1fr;
  border: 0;
}

.logo-section--awards .logo-grid li {
  min-height: 148px;
  padding: var(--space-5);
  border: 0;
}

.logo-section--awards .logo-grid img {
  max-width: min(100%, 320px);
  max-height: 92px;
  filter: none;
}

@keyframes client-logo-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation-play-state: paused;
  }
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 14vw, 220px);
  background: var(--color-primary);
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(36px, 6vw, 72px);
}

.final-cta h2 {
  margin: 0;
}

.final-cta .button--outline {
  border-color: hsl(0 0% 100% / 70%);
}

.case-brief-cta,
.service-brief-cta {
  padding: 0 0 clamp(48px, 7vw, 96px);
}

.case-brief-cta__inner,
.service-brief-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--color-input);
  border-radius: var(--radius-media);
  background: transparent;
}

.case-brief-cta h2,
.service-brief-cta h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 400;
}

.related-projects__all {
  display: flex;
  width: fit-content;
  margin: clamp(32px, 5vw, 64px) auto 0;
}

.contacts__grid {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.contacts__grid a {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding-block: clamp(28px, 5vw, 64px);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.contacts__grid span {
  color: var(--color-muted-text);
  font-size: 13px;
  text-transform: uppercase;
}

.contacts__grid strong {
  padding-right: 48px;
  font-size: clamp(20px, 4vw, 52px);
  font-weight: 350;
  overflow-wrap: anywhere;
}

.contacts__grid i {
  position: absolute;
  right: 0;
  bottom: clamp(28px, 5vw, 64px);
  font-size: 30px;
  font-style: normal;
}

.policy-copy .content-section__grid {
  max-width: 980px;
}

.site-footer__inner {
  gap: var(--space-4);
}

.site-footer__copyright {
  color: var(--color-text);
}

@keyframes spiral-rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  :root {
    --container-gutter: 24px;
  }

  .home-hero__spiral-position {
    top: -80px;
    right: -50%;
    width: 1700px;
  }

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

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-section--awards .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contacts__grid a:nth-child(odd) {
    padding-right: var(--space-8);
    border-right: 1px solid var(--color-border);
  }

  .contacts__grid a:nth-child(even) {
    padding-left: var(--space-8);
  }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 88px;
    --footer-height: 60px;
    --container-gutter: 32px;
  }

  .site-logo {
    min-width: 106px;
  }

  .site-header {
    height: var(--header-height);
    min-height: 0;
  }

  .site-footer {
    height: var(--footer-height);
    min-height: 0;
  }

  .site-header__inner {
    height: var(--header-height);
    min-height: 0;
  }

  .site-logo img {
    width: 106px;
    height: 65px;
  }

  .home-hero__copy {
    gap: 40px;
  }

  .home-hero__actions .button {
    width: auto;
  }
  .home-hero__brief {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }

  .site-header .site-header__cta {
    display: inline-flex;
  }

  .menu-button,
  .mobile-menu {
    display: none;
  }

  .nav-link,
  .button {
    min-height: 52px;
    font-size: 24px;
  }

  .error-page h1 {
    font-size: clamp(48px, 8vh, 96px);
  }

  .error-page__inner > p {
    font-size: clamp(20px, 1.4vw, 24px);
  }

  .site-footer__inner {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr auto 1fr;
    padding-block: 0;
  }

  .site-footer__copyright {
    justify-self: start;
  }
  .site-footer__nav {
    grid-column: 2;
  }
  .site-footer__nav a {
    min-height: 0;
    padding: 0;
    font-size: 14px;
  }
  .site-footer__policy {
    justify-self: end;
  }

  .home-hero__spiral-position {
    top: auto;
    right: -320px;
    bottom: 20px;
    width: min(1500px, 100vw);
    transform: translateY(40%);
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }

  .service-card {
    min-height: 300px;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 28px 20px;
    text-align: center;
  }

  .service-card__icon {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
  }

  .service-card__copy {
    align-items: center;
    gap: 18px;
  }

  .service-card__copy strong {
    display: flex;
    min-height: 2.25em;
    align-items: flex-start;
    justify-content: center;
  }

  .service-card__copy span {
    min-height: 4.2em;
  }

  .content-section__grid,
  .service-tasks__grid {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  }

  .case-intro__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .service-intro__grid {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: end;
  }

  .case-intro__media {
    width: min(
      100%,
      calc((100vw - (var(--container-gutter) * 2) - 56px) / 3),
      495px
    );
  }

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

  .case-story-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .logo-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .project-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card__copy {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
  }

  .project-catalog {
    padding-top: 36px;
  }

  .project-filters__groups {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 0 4px;
  }

  .project-filters__mobile-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
    border: 1px solid var(--color-input);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--color-text);
    font: inherit;
  }

  .project-filters__group legend {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .project-filter-chip {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-card__copy {
    gap: 6px var(--space-3);
    padding-top: 12px;
  }

  .project-card__copy p {
    font-size: 14px;
  }

  .project-card__copy h2 {
    font-size: 20px;
  }

  .project-card__arrow {
    display: none;
  }

  .project-cta-card {
    border-radius: 22px;
  }

  .case-brief-cta__inner,
  .service-brief-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-brief-cta__inner .button,
  .service-brief-cta__inner .button {
    width: 100%;
  }

  .case-page .content-gallery {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  :root {
    --container-gutter: 40px;
  }

  .home-hero h1 {
    font-size: clamp(32px, 8vh, 96px);
  }
}

@media (min-width: 1600px) {
  :root {
    --container-gutter: 40px;
  }
}

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

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

.brief-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.brief-field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.brief-field input,
.brief-field textarea {
  width: 100%;
  border: 1px solid var(--color-muted);
  border-radius: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  padding: 15px 16px;
  font: inherit;
  font-weight: 400;
}
.brief-field textarea {
  resize: vertical;
  line-height: 1.5;
}
.brief-field input:focus,
.brief-field textarea:focus {
  outline: 3px solid var(--color-form-focus);
  outline-offset: 1px;
  border-color: var(--color-text);
}
.brief-field [aria-invalid="true"] {
  border-color: var(--color-danger);
}
.brief-field small,
.brief-field__error {
  margin: 0;
  color: var(--color-error-text);
  font-size: 13px;
}
.brief-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.brief-details {
  grid-column: 1 / -1;
  border-block: 1px solid var(--color-muted);
  padding-block: 18px;
}
.brief-details summary {
  cursor: pointer;
  font-weight: 700;
}
.brief-details__fields {
  display: grid;
  gap: 20px;
  padding-top: 20px;
}
.brief-consent {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}
.brief-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--color-form-focus);
}
.brief-consent a {
  color: inherit;
}
.form-message {
  display: grid;
  gap: 5px;
  margin-bottom: 24px;
  border: 1px solid var(--color-muted);
  padding: 16px;
}
.form-message--success {
  border-color: var(--color-success);
  background: var(--color-success-surface);
}
.form-message--error {
  border-color: var(--color-danger);
  background: var(--color-error-surface);
}

.contacts-page {
  min-height: calc(100svh - var(--header-height) - var(--footer-height));
  padding-block: clamp(56px, 7vw, 112px);
}

.contacts-page__layout {
  display: grid;
  gap: clamp(52px, 9vw, 160px);
  align-items: start;
}
.contacts-page__form-column {
  min-width: 0;
}
.contacts-page__form-column > h1 {
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1;
}
.contacts-page .brief-form {
  max-width: 620px;
}
.contacts-page .brief-field {
  color: var(--color-text);
  font-weight: 400;
}
.contacts-page .brief-field span {
  color: var(--color-muted-text);
}
.contacts-page .brief-field input,
.contacts-page .brief-field textarea {
  border-color: var(--color-muted);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  padding: 14px 16px;
}
.contacts-page .brief-field textarea {
  min-height: 132px;
  border-radius: var(--radius-card);
}
.contacts-page .brief-field input:focus,
.contacts-page .brief-field textarea:focus {
  outline-color: var(--color-primary);
  border-color: var(--color-text);
}
.contacts-page .brief-field small,
.contacts-page .brief-field__error {
  color: #ff9b9b;
}
.contacts-page .brief-details {
  border-color: var(--color-muted);
}
.contacts-page .brief-consent {
  color: var(--color-text);
}
.contacts-page .brief-consent input {
  accent-color: var(--color-primary);
}
.contacts-page .form-message {
  border-color: var(--color-muted);
  background: hsl(0 0% 7% / 88%);
  color: var(--color-text);
}
.contacts-page .form-message--success {
  border-color: #2f9e77;
  background: #0b3328;
}
.contacts-page .form-message--error {
  border-color: var(--color-danger);
  background: #3b1115;
}
.contacts-page__details {
  display: grid;
  gap: clamp(32px, 4vw, 60px);
  max-width: 360px;
}
.contacts-page__details .eyebrow {
  margin: 0;
  color: var(--color-muted-text);
}
.contacts-page__team {
  display: grid;
  gap: 16px;
}
.contacts-page__team h2,
.contacts-page__list dt {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
}
.contacts-page__team a,
.contacts-page__list a {
  color: var(--color-text);
  text-decoration-color: hsl(0 0% 100% / 30%);
  text-underline-offset: 0.2em;
}
.contacts-page__list {
  display: grid;
  gap: clamp(30px, 4vw, 58px);
  margin: 0;
}
.contacts-page__list div {
  display: grid;
  gap: 12px;
}
.contacts-page__list dd {
  margin: 0;
  color: var(--color-muted-text);
}

@media (min-width: 960px) {
  .contacts-page__layout {
    grid-template-columns: minmax(0, 620px) minmax(280px, 360px);
    justify-content: center;
  }
}

@media (min-width: 760px) {
  .brief-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brief-field--wide,
  .brief-form > .button,
  .brief-form > .brief-field__error {
    grid-column: 1 / -1;
  }
  .brief-details__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
}

.vacancy-grid {
  display: grid;
  gap: 20px;
}
.vacancy-card {
  display: grid;
  gap: 18px;
  min-height: 360px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--color-muted);
  color: inherit;
  text-decoration: none;
}
.vacancy-card:hover {
  border-color: var(--color-text);
  background: var(--color-secondary);
}
.vacancy-card > span,
.vacancy-card dt {
  color: var(--color-muted-text);
}
.vacancy-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}
.vacancy-card p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}
.vacancy-card dl {
  display: grid;
  gap: 12px;
  margin-top: auto;
}
.vacancy-card dl div {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) 1fr;
  gap: 12px;
}
.vacancy-card dd {
  margin: 0;
}
.vacancy-meta {
  padding-block: 28px;
  border-block: 1px solid var(--color-muted);
}
.vacancy-meta dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin: 0;
}
.vacancy-meta dl div {
  display: grid;
  gap: 8px;
}
.vacancy-meta dt {
  color: var(--color-muted-text);
}
.vacancy-meta dd {
  margin: 0;
}
.vacancy-list {
  border-bottom: 1px solid var(--color-muted);
}
.vacancy-list__grid {
  display: grid;
  gap: 28px;
}
.vacancy-list h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
}
.vacancy-list ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.55;
}
.job-application {
  border-top: 1px solid var(--color-muted);
  background: var(--color-canvas);
  color: var(--color-text);
}
.job-application__details {
  display: grid;
}
.job-application__summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
}
.job-application__summary::-webkit-details-marker {
  display: none;
}
.job-application__summary::marker {
  content: "";
}
.job-application__details[open] .job-application__summary {
  margin-bottom: clamp(36px, 6vw, 72px);
}
.job-application__layout {
  display: grid;
  gap: 40px;
}
.job-application__intro {
  max-width: 520px;
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
}
.job-form {
  position: relative;
  display: grid;
  gap: 20px;
  color-scheme: dark;
}
.job-form .brief-field input,
.job-form .brief-field textarea {
  border-color: var(--color-muted);
  background: var(--color-input);
  color: var(--color-text);
  caret-color: var(--color-text);
}
.job-form .brief-field input::placeholder,
.job-form .brief-field textarea::placeholder {
  color: var(--color-muted-text);
  opacity: 1;
}
.job-form .brief-field input:focus,
.job-form .brief-field textarea:focus {
  border-color: var(--color-text);
}
.job-form .brief-field small,
.job-form .brief-field__error,
.job-form__legal small {
  color: var(--color-danger);
}
.job-form__legal {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--color-muted);
  background: var(--color-input);
}
.job-form__legal label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.job-form__legal input {
  width: 18px;
  height: 18px;
  accent-color: #ff4f00;
}
.job-application .form-message {
  border-color: var(--color-muted);
  background: var(--color-secondary);
  color: var(--color-text);
}
.job-application .form-message--success {
  border-color: #2f9e77;
  background: #0b3328;
}
.job-application .form-message--error {
  border-color: var(--color-danger);
  background: #3b1115;
}

@media (min-width: 760px) {
  .vacancy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .job-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .job-form__legal,
  .job-form > .button,
  .job-form > .brief-field__error {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .vacancy-list__grid,
  .job-application__layout {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 72px;
    align-items: start;
  }
}
