/*
 * Adnova theme
 * Minimal dark site with one blue light-wave motif.
 */

:root {
  --bg: #00040a;
  --bg-2: #03070d;
  --panel: #07101a;
  --panel-2: #0b1420;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7faff;
  --muted: #aeb9c8;
  --dim: #6f7b8e;
  --blue: #0a66ff;
  --cyan: #32c8ff;
  --radius: 16px;
  --radius-lg: 26px;
  --container: 1180px;
  --wide: 1360px;
  --header: 62px;
  --font: "Satoshi", "Inter", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 72% 8%, rgba(10, 102, 255, 0.11), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.site-header__inner,
.hero__content,
.section__header,
.section__lead,
.service-line,
.work-grid,
.card-grid--projects,
.process__list,
.conversion-cta__panel,
.site-footer__grid {
  min-width: 0;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--text);
  text-decoration-color: rgba(10, 102, 255, 0.55);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cyan);
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(50, 200, 255, 0.75);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  transform: translateY(-160%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  padding: 0.75rem 1rem;
  transition: transform 180ms ease;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.site-main {
  background: transparent;
}

h1,
h2,
h3,
h4,
.hero__title,
.section__title,
.page-title,
.entry-title {
  margin: 0;
  color: var(--text);
  font-weight: 520;
  letter-spacing: 0;
  text-wrap: balance;
}

h1,
.hero__title,
.page-title {
  font-size: clamp(3.7rem, 5.3vw, 4.9rem);
  line-height: 1.04;
}

h2,
.section__title {
  font-size: clamp(2.15rem, 3.8vw, 3.85rem);
  line-height: 1.06;
  max-width: 100%;
  overflow-wrap: break-word;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.22;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

.blue-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 24px rgba(10, 102, 255, 0.8);
}

.section__kicker,
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.gradient-line {
  display: block;
  width: 5.8rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 5, 10, 0.7);
  backdrop-filter: blur(20px);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
}

.site-header__logo,
.site-branding,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: lowercase;
}

.site-branding {
  flex: 0 0 auto;
}

.site-header__logo--theme-logo {
  width: clamp(9.85rem, 11.75vw, 12rem);
  height: 2.55rem;
  background: url("../img/adnova-logo-white.svg") left center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(10, 102, 255, 0.16));
}

.site-header__logo img,
.custom-logo {
  width: auto;
  height: auto;
  max-width: clamp(9.1rem, 12vw, 11.3rem);
  max-height: 2.4rem;
  min-width: 0;
  object-fit: contain;
  opacity: 1;
}

.site-header__logo--theme-logo .site-logo-image {
  display: none;
}

.site-logo-mark,
.site-footer__logo::before {
  content: "";
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  clip-path: polygon(50% 6%, 94% 86%, 72% 86%, 50% 45%, 28% 86%, 6% 86%);
}

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

.site-header__logo:has(.custom-logo) .site-logo-fallback__mark,
.site-header__logo:has(.custom-logo) .site-logo-fallback__text {
  display: none;
}

.site-header__nav {
  flex: 1;
}

.site-header__nav ul,
.primary-menu,
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 1.65vw, 1.55rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav a,
.primary-menu a,
.menu a {
  display: inline-flex;
  border-radius: 999px;
  color: rgba(247, 250, 255, 0.76);
  padding: 0.25rem 0;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-header__nav a:hover,
.current-menu-item > a {
  color: var(--text);
  background: transparent;
}

.site-header__cta {
  flex: 0 0 auto;
}

.site-header__cta .btn {
  min-height: 2.05rem;
  border-color: rgba(255, 255, 255, 0.68);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  padding: 0.42rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 650;
  box-shadow: none;
}

.site-header__cta .btn:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.site-header__toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.site-header__toggle span,
.site-header__toggle::before,
.site-header__toggle::after {
  content: "";
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.btn,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 420ms ease, border-color 420ms ease, background 420ms ease, box-shadow 420ms ease, color 420ms ease;
}

.btn::before,
button[type="submit"]::before,
input[type="submit"]::before {
  content: "";
  position: absolute;
  inset: -35% auto -35% -55%;
  z-index: -1;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg) translateX(-120%);
  transition: transform 620ms ease;
}

.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: var(--blue);
  color: var(--text);
  box-shadow: 0 18px 46px rgba(10, 102, 255, 0.28);
}

.btn-secondary,
.btn-dark {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.btn:hover {
  box-shadow: 0 18px 45px rgba(10, 102, 255, 0.22);
  transform: translateY(-2px);
}

.btn:hover::before,
button[type="submit"]:hover::before,
input[type="submit"]:hover::before {
  transform: skewX(-18deg) translateX(430%);
}

.hero {
  position: relative;
  min-height: clamp(35rem, calc(100svh - var(--header)), 42rem);
  overflow: hidden;
  margin-bottom: clamp(-7.2rem, -9vw, -5.2rem);
  padding: clamp(2.4rem, 5vw, 4.6rem) 0 clamp(2.2rem, 5vw, 4rem);
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(2, 5, 10, 0.98) 0%, rgba(2, 5, 10, 0.9) 32%, rgba(2, 5, 10, 0.36) 62%, rgba(2, 5, 10, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 4, 10, 0.08) 0%, rgba(0, 4, 10, 0) 50%, rgba(0, 4, 10, 0.82) 82%, var(--bg) 100%),
    url("../img/hero-background-adnova.png");
  background-position:
    center,
    center,
    calc(50% + var(--hero-parallax-x)) calc(100% + var(--hero-parallax-y));
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  isolation: isolate;
  transition: background-position 220ms ease-out;
}

.hero::before {
  content: none;
}

.hero::after,
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: block;
}

.hero__inner::before,
.hero__inner::after {
  display: none;
}

.hero__title {
  max-width: 10.9ch;
}

.hero__content {
  min-width: 0;
  width: min(100%, 34rem);
  margin-left: clamp(0rem, 4.6vw, 3.8rem);
}

.hero__lead {
  max-width: 27rem;
  margin-top: 1.55rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero .btn {
  min-height: 2.65rem;
  border-radius: 8px;
  padding-inline: 1.05rem;
  font-size: 0.86rem;
  line-height: 1.08;
}

.hero .btn-primary::after {
  content: "→";
  margin-left: 0.55rem;
  font-weight: 900;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.018);
}

.hero__title-accent {
  color: var(--blue);
}

.hero::after {
  opacity: 0.56;
}

.section {
  position: relative;
  overflow: hidden;
  padding: clamp(4.8rem, 7.2vw, 7.4rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(ellipse at 72% 12%, rgba(10, 102, 255, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 22rem);
}

.hero + .section {
  margin-top: 0;
  border-top: 0;
  padding-top: clamp(3.4rem, 5.8vw, 5.1rem);
  background:
    radial-gradient(ellipse at 74% 0%, rgba(10, 102, 255, 0.045), transparent 30rem),
    var(--bg);
}

.hero + .section::after {
  opacity: 0;
}

.hero + .section::before {
  opacity: 0.08;
}

.section::before {
  content: "";
  position: absolute;
  right: -20vw;
  bottom: -11rem;
  width: min(72rem, 86vw);
  height: min(28rem, 38vw);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 48% 52%, rgba(50, 200, 255, 0.36), rgba(10, 102, 255, 0.26) 26%, transparent 62%),
    linear-gradient(142deg, transparent 22%, rgba(0, 92, 255, 0.56) 46%, rgba(47, 199, 255, 0.32) 54%, transparent 78%);
  filter: blur(15px) saturate(1.2);
  opacity: 0.28;
  transform: rotate(-9deg);
  mix-blend-mode: screen;
}

.section > .container,
.section > .container-wide {
  position: relative;
  z-index: 1;
}

.section__header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.56fr);
  column-gap: clamp(1.5rem, 5vw, 5rem);
  row-gap: 0.95rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 4.2vw, 3.8rem);
}

.section__header .section__kicker,
.section__header .section__title,
.section__header .gradient-line {
  grid-column: 1;
}

.section__header .section__lead {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.1vw, 1.02rem);
  line-height: 1.7;
}

.section__actions {
  margin-top: 2rem;
}

.service-lines {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-line {
  display: grid;
  grid-template-columns: 5rem minmax(12rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.15rem, 3vw, 2.65rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(1.3rem, 2.55vw, 1.95rem) 0;
  background: linear-gradient(90deg, rgba(10, 102, 255, 0.035), transparent 34%);
}

.service-line span {
  color: var(--blue);
  font-weight: 850;
}

.service-line h3 {
  font-size: clamp(1.12rem, 1.9vw, 1.65rem);
  line-height: 1.24;
}

.service-line p {
  max-width: 42rem;
  line-height: 1.7;
}

.selected-projects {
  position: relative;
  padding-top: clamp(5.4rem, 8vw, 8.4rem);
  padding-bottom: clamp(5.8rem, 8.5vw, 9rem);
  background:
    radial-gradient(ellipse at 36% 0%, rgba(50, 200, 255, 0.06), transparent 24rem),
    linear-gradient(180deg, rgba(10, 102, 255, 0.035), transparent 18rem);
}

.selected-projects::before {
  opacity: 0.36;
}

.work-grid,
.card-grid--projects {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 0.91fr));
  gap: clamp(1.05rem, 2vw, 1.6rem);
}

.work-item,
.card,
.project-card,
.card--project,
.process__item,
.faq__item,
.dark-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(2, 5, 10, 0.46);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.work-item,
.project-card,
.card--project {
  transition: border-color 520ms ease, box-shadow 520ms ease, transform 520ms ease, background 520ms ease;
}

.work-item::after,
.project-card::after,
.card--project::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(50, 200, 255, 0);
  opacity: 0;
  transition: opacity 520ms ease, box-shadow 520ms ease;
}

.work-item:hover,
.project-card:hover,
.card--project:hover {
  border-color: rgba(50, 200, 255, 0.28);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), 0 0 42px rgba(10, 102, 255, 0.14);
  transform: translateY(-4px);
}

.work-item:hover::after,
.project-card:hover::after,
.card--project:hover::after {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(50, 200, 255, 0.28);
}

.work-item {
  min-height: clamp(22rem, 31vw, 29rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 2.2vw, 1.9rem);
}

.work-item:first-child {
  min-height: clamp(25rem, 36vw, 34rem);
}

.work-item::before,
.placeholder-visual::before,
.project-card__media::before {
  content: "";
  display: block;
  height: clamp(9rem, 14vw, 13.5rem);
  margin-bottom: auto;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 55% 56%, rgba(50, 200, 255, 0.58), rgba(10, 102, 255, 0.4) 24%, transparent 60%),
    linear-gradient(138deg, transparent 16%, rgba(10, 102, 255, 0.76), rgba(50, 200, 255, 0.32), transparent 82%),
    #04080e;
  filter: blur(0.2px) saturate(1.18);
  transition: transform 560ms ease, filter 560ms ease, opacity 560ms ease;
  transform-origin: center;
}

.work-item:first-child::before {
  height: clamp(12rem, 18vw, 17rem);
}

.work-item:hover::before,
.project-card:hover .project-card__media::before,
.card--project:hover .project-card__media::before {
  filter: blur(0.2px) saturate(1.32);
  opacity: 0.96;
  transform: scale(1.035);
}

.work-item span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-item h3 {
  margin-top: 0.85rem;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.22;
  transition: transform 520ms ease, color 520ms ease;
}

.work-item:first-child h3 {
  font-size: clamp(1.65rem, 2.8vw, 2.65rem);
  line-height: 1.12;
}

.work-item p,
.project-card p,
.card--project p {
  line-height: 1.66;
  transition: opacity 520ms ease, transform 520ms ease;
}

.work-item h3 + p,
.project-card h3 + p,
.card--project h3 + p {
  margin-top: 0.75rem;
}

.work-item:hover h3,
.project-card:hover h3,
.card--project:hover h3 {
  color: var(--text);
  transform: translateY(-2px);
}

.work-item:hover p,
.project-card:hover p,
.card--project:hover p {
  opacity: 1;
  transform: translateY(-2px);
}

.process__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__item {
  min-height: 13.5rem;
  border-radius: 0;
  border-right: 0;
  padding: 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 70%);
}

.process__item:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.process__item:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.process__number {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 102, 255, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 850;
}

.process__title {
  margin-top: 1rem;
  font-size: 1.03rem;
  line-height: 1.25;
}

.process__title + .process__text {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.58;
}

.final-cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 4rem);
}

.final-cta__panel::before {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -42%;
  width: 72%;
  height: 78%;
  background:
    radial-gradient(ellipse at 48% 54%, rgba(50, 200, 255, 0.44), rgba(10, 102, 255, 0.34) 26%, transparent 64%),
    linear-gradient(135deg, transparent 20%, rgba(10, 102, 255, 0.64), rgba(50, 200, 255, 0.26), transparent 80%);
  filter: blur(18px);
  opacity: 0.58;
  transform: rotate(-10deg);
  pointer-events: none;
}

.conversion-cta__panel {
  display: grid;
  grid-template-columns: 1fr minmax(14rem, 0.35fr);
  gap: 2rem;
  align-items: end;
}

.conversion-cta__actions {
  min-width: 0;
}

.conversion-cta__content {
  min-width: 0;
}

.conversion-cta .section__title {
  max-width: 13ch;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.04;
}

.conversion-cta .section__lead {
  max-width: 45rem;
}

.conversion-cta .section__title + .section__lead {
  margin-top: 1.35rem;
  line-height: 1.62;
}

.conversion-cta__note {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(3rem, 6vw, 5rem) 0 1.35rem;
  background:
    radial-gradient(ellipse at 78% 10%, rgba(10, 102, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 18rem),
    var(--bg);
}

.site-footer__cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: clamp(2rem, 4.5vw, 3.2rem);
}

.site-footer__cta h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.04;
}

.site-footer__cta .btn {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.018);
}

.site-footer__grid {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(18rem, 1.45fr) minmax(10rem, 0.7fr) minmax(15rem, 0.9fr) minmax(7rem, 0.45fr);
  gap: clamp(1.6rem, 4vw, 4.2rem);
  align-items: start;
}

.site-footer__column {
  min-width: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.site-footer__logo:has(img)::before {
  display: none;
}

.site-footer__logo img {
  display: block;
  width: clamp(8rem, 10vw, 10rem);
  height: auto;
}

.site-footer__grid h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer .site-footer__nav > h2,
.site-footer .site-footer__services > h2,
.site-footer .site-footer__contact > h2,
.site-footer .site-footer__social > h2 {
  margin: 0 0 1rem !important;
  color: var(--text) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.site-footer p,
.site-footer li,
.site-footer address {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.site-footer__brand p {
  max-width: 28rem;
}

.site-footer__meta {
  color: var(--dim);
  font-size: 0.84rem;
}

.site-footer ul {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

.site-footer__social-icons {
  display: flex;
  gap: 0.65rem;
}

.site-footer__social-link {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-footer__social-link:hover {
  border-color: rgba(50, 200, 255, 0.6);
  background: rgba(10, 102, 255, 0.16);
  transform: translateY(-1px);
}

.site-footer__social-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.74;
}

.site-footer__social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.site-footer__bottom {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1rem;
  color: var(--dim);
}

.site-footer__bottom p {
  font-size: 0.82rem;
}

.page-header {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.entry-content,
.card__text {
  color: var(--muted);
}

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

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

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 750;
}

.contact-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input,
textarea,
select,
.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0.9rem 1rem;
}

textarea,
.textarea {
  min-height: 10rem;
  resize: vertical;
}

.faq__button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 1.1rem;
  text-align: left;
}

.faq__panel {
  padding: 0 1.1rem 1.1rem;
}

.faq__panel[hidden] {
  display: none;
}

[data-reveal] {
  transform: translateY(24px);
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

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

.hero [data-reveal] {
  transform: none;
  opacity: 1;
  animation: hero-reveal 860ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

@keyframes hero-reveal {
  from {
    transform: translateY(20px);
    opacity: 0.01;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .hero__inner,
  .section__header,
  .conversion-cta__panel {
    grid-template-columns: 1fr;
  }

  .section__header .section__lead {
    grid-column: 1;
    grid-row: auto;
  }

  .work-grid,
  .card-grid--projects,
  .process__list,
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process__item,
  .process__item:first-child,
  .process__item:last-child {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
}

@media (max-width: 860px) {
  :root {
    --header: 62px;
  }

  body {
    font-size: 16px;
  }

  .site-header__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .site-header__cta {
    display: none;
  }

  .site-header__nav {
    display: none;
    position: fixed;
    inset: var(--header) 1rem auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(2, 5, 10, 0.96);
    padding: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
  }

  body.nav-open .site-header__nav {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header__nav ul,
  .primary-menu,
  .menu {
    display: grid;
    justify-content: stretch;
  }

  .site-header__nav a {
    min-height: 2.6rem;
    font-size: 0.78rem;
  }

  .hero {
    min-height: clamp(34rem, calc(100svh - var(--header)), 39rem);
    margin-bottom: -4.8rem;
    padding: clamp(2.3rem, 7vw, 3.4rem) 0 clamp(4rem, 12vw, 5.5rem);
    background-position: center, center, 62% bottom;
  }

  .section__header {
    min-width: 0;
  }

  .section__header .section__title,
  .section__header .section__lead,
  .service-line h3,
  .service-line p,
  .card,
  .project-card,
  .process__item {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .section__header .section__lead,
  .service-line p {
    max-width: min(100%, 34rem);
  }

  .hero__content {
    margin-left: 0;
  }

  .hero__lead {
    max-width: min(34rem, 100%);
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero__actions {
    gap: 0.55rem;
    margin-top: 1.35rem;
  }

  .work-grid,
  .card-grid--projects,
  .process__list,
  .site-footer__grid,
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .work-item,
  .work-item:first-child {
    min-height: clamp(19rem, 62vw, 25rem);
  }

  .work-item::before,
  .work-item:first-child::before {
    height: clamp(8.8rem, 34vw, 12rem);
  }

  .conversion-cta__panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .conversion-cta .section__title {
    max-width: 14ch;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .site-footer__grid {
    gap: 1.6rem;
  }

  .site-footer__cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer__cta h2 {
    max-width: 14ch;
    line-height: 1.06;
  }

  .hero + .section {
    padding-top: clamp(3.2rem, 10vw, 4.4rem);
  }

  .site-footer__grid > *,
  .site-footer p,
  .site-footer li,
  .site-footer address {
    min-width: 0;
  }

  .service-line {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 520px) {
  .container,
  .container-wide {
    width: min(100% - 2rem, var(--container));
  }

  h1,
  .hero__title,
  .page-title {
    font-size: clamp(2.55rem, 11.2vw, 3.2rem);
    line-height: 1.05;
  }

  .hero__title {
    max-width: 10ch;
  }

  h2,
  .section__title {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
    line-height: 1.09;
  }

  .conversion-cta .section__title {
    max-width: 12ch;
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    line-height: 1.08;
  }

  .final-cta__panel {
    padding: 1.35rem;
  }

  .conversion-cta__actions {
    margin-top: 1.1rem;
    width: 100%;
  }

  .conversion-cta .btn {
    max-width: 100%;
    white-space: normal;
  }

  .conversion-cta__note {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .site-footer__grid h2 {
    font-size: 0.74rem;
  }

  .site-footer .site-footer__nav > h2,
  .site-footer .site-footer__services > h2,
  .site-footer .site-footer__contact > h2,
  .site-footer .site-footer__social > h2 {
    font-size: 0.74rem !important;
  }

  .hero__lead {
    max-width: 22rem;
  }

  .section__header .section__lead,
  .service-line p,
  .work-item p {
    max-width: 22rem;
  }

  .site-header__logo--theme-logo {
    width: 9.3rem;
    height: 2.22rem;
  }

  .site-header__toggle {
    width: 2.45rem;
    height: 2.45rem;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero .btn {
    min-height: 2.9rem;
    padding: 0.75rem 1rem;
  }

}

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

  [data-reveal] {
    transform: none;
    opacity: 1;
  }

  .hero {
    transition: none;
  }

  .hero [data-reveal] {
    animation: none;
  }

  .btn,
  .work-item,
  .project-card,
  .card--project {
    transition: none;
  }
}
