/* =========================================================
   DVOE — landing page styles
   Minimal black & white, inspired by the logo
   ========================================================= */

:root {
  --bg: #000;
  --bg-alt: #070707;
  --surface: #0d0d0d;
  --fg: #fff;
  --muted: #8f8f8f;
  --muted-2: #5c5c5c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);

  /* Pastel palette — the UI stays monochrome until hover */
  --p-pink: #f7b8d0;
  --p-peach: #fbcfa8;
  --p-lemon: #f4e6a0;
  --p-mint: #b3e8cd;
  --p-sky: #acd4f6;
  --p-lavender: #cdbcf6;
  --accent: var(--p-lavender);
  --on-accent: #0b0b0b;
  --color-speed: .55s;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--fg); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Shared bits ---------- */

.underline {
  width: min(320px, 60%);
  height: 6px;
  margin: 28px 0;
  background: var(--fg);
  border-radius: 99px;
  transform-origin: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color var(--color-speed), color var(--color-speed);
}
.eyebrow:hover { border-color: var(--accent); color: var(--accent); }
.eyebrow:hover .dot { background: var(--accent); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 0 rgba(255,255,255,.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border-radius: 99px;
  border: 1px solid var(--fg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color var(--color-speed) var(--ease), border-color var(--color-speed) var(--ease), transform .3s var(--ease);
}
/* pastel fill sweeps in on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--color-speed) var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--on-accent); border-color: var(--accent); }
.btn:active { transform: scale(.97); }

.btn--light { background: var(--fg); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }

.btn--small { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo__icon { width: 52px; height: auto; color: var(--fg); transition: color var(--color-speed) var(--ease); }
.logo:hover .logo__icon { color: var(--accent); }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
  line-height: 1;
  position: relative;
  padding-bottom: 7px;
}
.logo__text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--fg);
  transform-origin: left;
  transition: transform .4s var(--ease), background var(--color-speed) var(--ease);
}
.logo:hover .logo__text::after { transform: scaleX(1.6); background: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease), background var(--color-speed) var(--ease);
}
.nav__link { transition: color var(--color-speed) var(--ease); }
.nav__link.is-active { color: var(--fg); }
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover::after { background: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.lang__btn {
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  transition: background var(--color-speed), color var(--color-speed);
}
.lang__btn:hover { color: var(--accent); }
.lang__btn.is-active { background: var(--fg); color: var(--bg); }
.lang__btn.is-active:hover { background: var(--accent); color: var(--on-accent); }
.lang__btn[data-lang="uk"] { --accent: var(--p-sky); }
.lang__btn[data-lang="en"] { --accent: var(--p-lemon); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--color-speed);
  --accent: var(--p-pink);
}
.burger:hover { border-color: var(--accent); }
.burger:hover span { background: var(--accent); }
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform .35s var(--ease), top .35s var(--ease), background var(--color-speed);
}
.burger span:first-child { top: 17px; }
.burger span:last-child  { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(255,255,255,.07), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  opacity: .5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 84px);
  line-height: 1.04;
  letter-spacing: -.02em;
  min-height: 3.15em; /* reserve 3 lines so the typing effect doesn't shift the layout */
}
.typed { color: var(--fg); }
.caret {
  display: inline-block;
  width: .08em;
  height: .82em;
  margin-left: .08em;
  vertical-align: -0.04em;
  background: var(--fg);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lead {
  max-width: 540px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__visual { display: flex; justify-content: center; }

.keyboard {
  display: grid;
  grid-template-columns: repeat(var(--cols, 15), 1fr);
  gap: clamp(6px, .8vw, 10px);
  width: 100%;
  max-width: 520px;
  transform: perspective(1200px) rotateX(18deg) rotateZ(-6deg);
}
.key {
  aspect-ratio: 1 / 0.82;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s;
}
.key.is-wide-2 { grid-column: span 2; aspect-ratio: auto; }
.key.is-wide-3 { grid-column: span 3; aspect-ratio: auto; }
.key.is-wide-7 { grid-column: span 7; aspect-ratio: auto; }
.key.is-on {
  background: var(--fg);
  border-color: var(--fg);
  transform: translateY(2px);
  box-shadow: 0 0 30px rgba(255,255,255,.35);
}
/* hover paints the key fast and lets it fade slowly — leaves a pastel trail */
.key:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(2px);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 55%, transparent);
  transition-duration: .12s;
}
.key { transition-duration: 1.4s; }
.key.is-on { transition-duration: .12s; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--line-strong);
  border-radius: 99px;
  transition: border-color var(--color-speed);
  --accent: var(--p-mint);
}
.scroll-hint:hover { border-color: var(--accent); }
.scroll-hint:hover span { background: var(--accent); }
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--fg);
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  80%, 100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex-shrink: 0; }
.marquee__list li {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted-2);
  white-space: nowrap;
  transition: color var(--color-speed);
}
.marquee__list li::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid var(--muted-2);
  border-radius: 2px;
  transition: border-color var(--color-speed), transform var(--color-speed) var(--ease);
}
.marquee__list li:hover { color: var(--accent); }
.marquee__list li:hover::after { border-color: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(90px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 24px;
  row-gap: 18px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section__index {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  align-self: center;
  justify-self: start;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.section__subtitle {
  grid-column: 2;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about__text p + p { margin-top: 20px; }
.about__text p { color: var(--muted); }
.about__text .about__lead {
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  margin-bottom: 32px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--color-speed);
}
.stat:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  transition: color var(--color-speed);
}
.stat:hover .stat__value { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 15px; line-height: 1.4; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(60px, 8vw, 110px);
}
.value {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--color-speed), background var(--color-speed), transform .4s var(--ease);
}
.value:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  transform: translateY(-4px);
}
.value__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--color-speed);
}
.value__title::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 99px;
  background: var(--fg);
  transition: background var(--color-speed), width var(--color-speed) var(--ease);
}
.value:hover .value__title { color: var(--accent); }
.value:hover .value__title::before { background: var(--accent); width: 36px; }
.value p { color: var(--muted); font-size: 16px; }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  position: relative;
  padding: 44px 36px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.service:hover::before { transform: translateY(0); }
.service:hover,
.service:hover p,
.service:hover .service__num { color: var(--on-accent); }
.service { transition: color var(--color-speed); }
.service__num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 56px;
  transition: color .3s;
}
.service__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 14px;
}
.service p { color: var(--muted); font-size: 16px; transition: color .3s; }

/* ---------- Projects ---------- */

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--color-speed), box-shadow var(--color-speed), transform .5s var(--ease);
}
.project:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 70%, transparent);
}
/* tint the monochrome preview with the pastel accent */
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity var(--color-speed) var(--ease);
  pointer-events: none;
}
.project:hover .project__media::after { opacity: 1; }
.project__meta span,
.project__title,
.project__link,
.badge { transition: color var(--color-speed), border-color var(--color-speed); }
.project:hover .project__title { color: var(--accent); }
.project:hover .project__meta span { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.project:hover .project__link { color: var(--accent); border-color: var(--accent); }
.project:hover .badge { color: var(--accent); border-color: var(--accent); }

.project__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a0a0a;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); }

.badge {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project__body { padding: 32px 32px 36px; display: flex; flex-direction: column; flex: 1; }
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.project__meta span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  color: var(--muted);
}
.project__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.project__text { color: var(--muted); margin-bottom: 28px; }
.project__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--line-strong);
  color: var(--muted);
}

.project-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 36px 40px;
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  transition: background var(--color-speed) var(--ease), color var(--color-speed) var(--ease), border-color var(--color-speed);
  --accent: var(--p-peach);
}
.project-cta__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
}
.project-cta__action { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.arrow { display: inline-block; font-size: 1.4em; transition: transform .4s var(--ease); }
.project-cta:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); border-style: solid; }
.project-cta:hover .arrow { transform: translateX(8px); }

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 40px;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -20px;
  height: 2px;
  background: var(--line);
}
.step:last-child::before { right: 0; }
.step::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 6px var(--bg-alt);
  transition: background var(--color-speed), transform var(--color-speed) var(--ease);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  margin-bottom: 24px;
  transition: color var(--color-speed), -webkit-text-stroke-color var(--color-speed);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 12px;
  transition: color var(--color-speed);
}
.step:hover::after { background: var(--accent); transform: scale(1.5); }
.step:hover .step__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step:hover .step__title { color: var(--accent); }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Contact ---------- */

.contact__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.contact__info .section__index { display: inline-block; margin-bottom: 28px; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.contact__lead { color: var(--muted); font-size: 18px; max-width: 460px; }

.contact__list { margin-top: 48px; border-top: 1px solid var(--line); }
.contact__list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact__label { color: var(--muted); font-size: 14px; padding-top: 2px; }
.contact__list a { font-weight: 600; transition: color var(--color-speed); }
.contact__list a:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 20px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; }
.social-link__icon { width: 20px; height: 20px; flex-shrink: 0; }

.form {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field { position: relative; }
.field__input {
  width: 100%;
  padding: 22px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--fg);
  font: inherit;
  font-size: 17px;
  outline: none;
  resize: vertical;
  transition: border-color var(--color-speed);
}
.field__input:hover { border-bottom-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.field__input:focus { border-bottom-color: var(--accent); }
.field__input.is-invalid { border-bottom-color: #ff6b6b; }
.field__label {
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-22px) scale(.8);
  color: var(--fg);
}
.field__input:focus + .field__label { color: var(--accent); }
.form__note { min-height: 1.5em; font-size: 14px; color: var(--muted); text-align: center; }
.form__note.is-error { color: #ff6b6b; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo--footer .logo__icon { width: 44px; }
.logo--footer .logo__text { font-size: 18px; }
.footer__tagline, .footer__copy { color: var(--muted); font-size: 14px; }
.footer__social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--color-speed), border-color var(--color-speed), background var(--color-speed);
  --accent: var(--p-pink);
}
.footer__social svg { width: 20px; height: 20px; }
.footer__social:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ---------- Pastel accents (assigned per element, shown only on hover) ---------- */

.logo { --accent: var(--p-lavender); }
.header__cta { --accent: var(--p-pink); }
.hero__buttons .btn:nth-child(1) { --accent: var(--p-mint); }
.hero__buttons .btn:nth-child(2) { --accent: var(--p-peach); }
.eyebrow { --accent: var(--p-mint); }
.form { --accent: var(--p-mint); }
.form .btn { --accent: var(--p-sky); }
.contact__list a[href^="mailto"] { --accent: var(--p-sky); }
.social-link { --accent: var(--p-pink); }

:is(.nav__link, .marquee__list li, .stat, .value, .service, .project, .step):nth-child(6n+1) { --accent: var(--p-pink); }
:is(.nav__link, .marquee__list li, .stat, .value, .service, .project, .step):nth-child(6n+2) { --accent: var(--p-sky); }
:is(.nav__link, .marquee__list li, .stat, .value, .service, .project, .step):nth-child(6n+3) { --accent: var(--p-mint); }
:is(.nav__link, .marquee__list li, .stat, .value, .service, .project, .step):nth-child(6n+4) { --accent: var(--p-lemon); }
:is(.nav__link, .marquee__list li, .stat, .value, .service, .project, .step):nth-child(6n+5) { --accent: var(--p-lavender); }
:is(.nav__link, .marquee__list li, .stat, .value, .service, .project, .step):nth-child(6n+6) { --accent: var(--p-peach); }

/* project cards get their own fixed colours */
.projects .project:nth-child(1) { --accent: var(--p-mint); }
.projects .project:nth-child(2) { --accent: var(--p-lavender); }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .header__cta { display: none; }
}

@media (max-width: 960px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 32px;
    background: rgba(0,0,0,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--fg);
  }
  .nav__link::after { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { order: -1; }
  .keyboard { max-width: 420px; }

  .about, .contact__inner { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .step:nth-child(2n)::before { right: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .projects { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service__num { margin-bottom: 32px; }
  .section__head { grid-template-columns: 1fr; }
  .section__subtitle { grid-column: 1; }
  .project-cta { padding: 28px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-bottom: 110px; }
  .hero__buttons .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .logo__icon { width: 42px; }
  .logo__text { font-size: 18px; }
  .header__actions { gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .step::before { right: 0; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .stat { padding: 24px 18px; }
}

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