:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-soft: #eef6fb;
  --metal: #dfe7ee;
  --ink: #05070a;
  --muted: #5a6673;
  --line: #d3e0e9;
  --baby-blue: #bfe8ff;
  --baby-blue-strong: #7ed2ff;
  --baby-blue-deep: #2698d8;
  --accent: #23b684;
  --dark: #05070a;
  --shadow: 0 18px 50px rgba(5, 7, 10, 0.12);
  --radius: 8px;
  font-family: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 72px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 56px);
  background: var(--dark);
  border-bottom: 0;
  backdrop-filter: blur(16px);
  overflow: visible;
  transition:
    background 200ms ease,
    box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 10, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--baby-blue-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 80ms linear;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--baby-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--baby-blue);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  position: relative;
  z-index: 30;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  pointer-events: auto;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(780px, 82svh);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.94) 0%, rgba(5, 7, 10, 0.78) 44%, rgba(5, 7, 10, 0.24) 100%),
    linear-gradient(135deg, rgba(191, 232, 255, 0.24), rgba(255, 255, 255, 0.04)),
    url("img/portfolio-hero-optimized.jpg") center / cover,
    var(--dark);
  background-blend-mode: normal, screen, luminosity, normal;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(191, 232, 255, 0.08) 42%, transparent 62%);
  transform: translateX(-120%);
  animation: hero-sheen 6s ease-in-out 900ms infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1120px) / 2));
  padding: 76px 0 96px;
  color: #ffffff;
  animation: hero-rise 820ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.eyebrow,
.section-kicker,
.project-type {
  color: var(--baby-blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 840px;
  margin: 14px 0 18px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.hero-scroll span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(191, 232, 255, 0.44);
  border-radius: 50%;
  color: var(--baby-blue);
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: #ffffff;
  transform: translateY(2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes hero-sheen {
  0%,
  44% {
    transform: translateX(-120%);
  }

  72%,
  100% {
    transform: translateX(120%);
  }
}

.button-primary {
  background: var(--baby-blue);
  color: var(--dark);
  box-shadow: 0 14px 28px rgba(126, 210, 255, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(191, 232, 255, 0.58);
  color: #ffffff;
}

.section h2,
.contact-section h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.prose p,
.service-item p,
.project-card p,
.contact-section p {
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--surface-soft);
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(191, 232, 255, 0.14), transparent 40%),
    var(--dark);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: #ffffff;
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.prose {
  display: grid;
  gap: 18px;
  font-size: 1.05rem;
}

.quick-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.quick-list li {
  position: relative;
  padding-left: 22px;
}

.quick-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metrics div {
  min-height: 142px;
  padding: 26px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.metric-icon,
.card-icon,
.proof-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(38, 152, 216, 0.18);
  border-radius: 8px;
  background: rgba(191, 232, 255, 0.24);
  color: var(--baby-blue-deep);
}

.metric-icon svg,
.card-icon svg,
.proof-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
}

.metrics strong {
  display: block;
  color: var(--dark);
  font-size: 1.45rem;
  line-height: 1.1;
}

.metrics div > span:not(.metric-icon) {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.section-intro {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 720px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-item {
  display: grid;
  align-content: start;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(191, 232, 255, 0.64);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 251, 0.82));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-item:nth-child(2) .card-icon {
  background: rgba(35, 182, 132, 0.12);
  color: #0d7a59;
}

.service-item:nth-child(3) .card-icon {
  background: rgba(38, 152, 216, 0.12);
  color: var(--baby-blue-deep);
}

.service-item h3,
.project-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.service-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.94rem;
  list-style: none;
}

.service-points li {
  position: relative;
  padding-left: 18px;
}

.service-points li::before {
  content: "";
  position: absolute;
  top: 0.76em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--baby-blue-deep);
  transform: translateY(-50%);
}

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

.package-card {
  display: grid;
  align-content: start;
  min-height: 410px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(5, 7, 10, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.package-card-featured {
  border-color: rgba(191, 232, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(191, 232, 255, 0.14), rgba(35, 182, 132, 0.08)),
    var(--dark);
  color: #ffffff;
}

.package-label {
  color: var(--baby-blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.package-card-featured .package-label {
  color: var(--baby-blue);
}

.package-card h3 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.14;
}

.package-card-featured h3 {
  color: #ffffff;
}

.package-card p {
  margin: 0;
  color: var(--muted);
}

.package-card-featured p,
.package-card-featured .package-features {
  color: rgba(255, 255, 255, 0.78);
}

.package-features {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.package-features li {
  position: relative;
  padding-left: 20px;
}

.package-features li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.package-card a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin-top: 26px;
  color: var(--baby-blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.package-card-featured a {
  color: var(--baby-blue);
}

.package-card a:hover,
.package-card a:focus-visible {
  text-decoration: underline;
}

.audience-section {
  background: var(--surface);
}

.audience-grid {
  display: grid;
  gap: 14px;
}

.audience-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, var(--surface-soft));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.audience-item h3,
.process-steps h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.audience-item p {
  margin: 0;
  color: var(--muted);
}

.about-me-section {
  padding: 76px 0;
  background: var(--surface);
}

.about-me-grid {
  max-width: 900px;
}

.about-me-content {
  max-width: 760px;
}

.about-me-content p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(38, 152, 216, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-steps article {
  display: grid;
  align-content: start;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(191, 232, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(191, 232, 255, 0.28);
  border-radius: 8px;
  background: rgba(191, 232, 255, 0.08);
  color: var(--baby-blue);
  font-weight: 800;
  line-height: 1;
}

.process-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.projects-heading {
  align-items: center;
}

.project-filters {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.filter-button.is-active {
  background: var(--dark);
  color: var(--baby-blue);
}

.metrics div:hover,
.service-item:hover,
.package-card:hover,
.audience-item:hover,
.project-card:hover,
.proof-items article:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 152, 216, 0.34);
  box-shadow: 0 22px 46px rgba(5, 7, 10, 0.13);
}

.process-steps article:hover {
  transform: translateY(-4px);
  border-color: rgba(191, 232, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card.is-hidden {
  display: none;
}

.project-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--dark);
}

.project-mockup {
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--dark);
}

.project-mockup-phone {
  background:
    radial-gradient(circle at 50% 18%, rgba(126, 210, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #05070a, #111820);
}

.browser-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--dark);
  box-shadow: none;
}

.browser-frame::before {
  display: none;
}

.browser-frame span {
  display: none;
}

.browser-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 700ms ease;
}

.phone-frame {
  position: relative;
  width: 128px;
  height: 236px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(191, 232, 255, 0.26);
  border-radius: 28px;
  background: #05070a;
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.42),
    0 0 0 6px rgba(255, 255, 255, 0.04);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 1;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 21px;
  transition: transform 700ms ease;
}

.project-card:hover .browser-frame img,
.project-card:hover .phone-frame img {
  transform: scale(1.045);
}

.project-content {
  padding: 26px;
}

.project-card p {
  min-height: 0;
}

.project-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--baby-blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.project-card a:hover,
.project-card a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.proof-section {
  background: var(--surface-soft);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.proof-grid h2 {
  margin: 8px 0 0;
  max-width: 560px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.12;
}

.proof-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proof-items article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.proof-items strong {
  color: var(--baby-blue-deep);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.proof-items article > span:not(.proof-icon) {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact-section {
  padding: 84px 0;
  background:
    linear-gradient(135deg, rgba(191, 232, 255, 0.16), transparent 38%),
    var(--dark);
  color: #ffffff;
}

.contact-section h2,
.contact-section p {
  color: #ffffff;
}

.contact-section p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 18px;
}

.contact-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.contact-actions .button-secondary {
  background: transparent;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(191, 232, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

.form-field {
  display: grid;
  position: relative;
  gap: 8px;
}

.form-field-full,
.form-footer {
  grid-column: 1 / -1;
}

.form-field label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(191, 232, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--dark);
  font: inherit;
  outline: 0;
}

.form-field input,
.form-field select {
  height: 48px;
  padding: 0 14px;
}

.form-field select.native-select {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-field textarea {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--baby-blue);
  box-shadow: 0 0 0 3px rgba(191, 232, 255, 0.2);
}

.form-field textarea::placeholder {
  color: #6d7783;
}

.custom-select {
  position: relative;
  z-index: 1;
}

.custom-select.is-open {
  z-index: 18;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(191, 232, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--dark);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select.has-placeholder .custom-select-value {
  color: #687482;
  font-weight: 600;
}

.custom-select-chevron {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(38, 152, 216, 0.1);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.custom-select-chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 2px solid var(--baby-blue-deep);
  border-bottom: 2px solid var(--baby-blue-deep);
  transform: rotate(45deg);
}

.custom-select-trigger:hover,
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-color: var(--baby-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(191, 232, 255, 0.18);
  outline: 0;
}

.custom-select.is-open .custom-select-chevron {
  background: rgba(38, 152, 216, 0.16);
  transform: rotate(180deg);
}

.custom-select.is-invalid .custom-select-trigger {
  border-color: #ff9d9d;
  box-shadow: 0 0 0 3px rgba(255, 157, 157, 0.16);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  max-height: 248px;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(191, 232, 255, 0.48);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 42px rgba(5, 7, 10, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.custom-select.is-open .custom-select-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select-option {
  display: flex;
  align-items: center;
  min-height: 38px;
  width: 100%;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dark);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: var(--surface-soft);
  color: var(--baby-blue-deep);
  outline: 0;
}

.custom-select-option.is-placeholder {
  color: #687482;
  font-weight: 600;
}

.custom-select-option.is-selected {
  background: var(--dark);
  color: var(--baby-blue);
  box-shadow: inset 3px 0 0 var(--baby-blue-strong);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.form-footer .button {
  min-width: 180px;
}

.form-footer .button-secondary {
  background: transparent;
  border-color: rgba(191, 232, 255, 0.58);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--baby-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  padding: 46px 0 24px;
  background: #020305;
  color: rgba(255, 255, 255, 0.72);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  font-size: 0.92rem;
}

.footer-brand {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.footer-brand strong,
.footer-nav strong,
.footer-social strong {
  color: #ffffff;
  font-size: 1rem;
}

.footer-brand span {
  line-height: 1.6;
}

.footer-contact {
  width: fit-content;
  color: var(--baby-blue);
  font-weight: 800;
  text-decoration: none;
}

.footer-nav,
.footer-social {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav a,
.footer-social a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible,
.footer-contact:hover,
.footer-contact:focus-visible {
  color: var(--baby-blue);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #23b684;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(5, 7, 10, 0.24);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-2px);
  background: #32c995;
  box-shadow: 0 22px 44px rgba(5, 7, 10, 0.28);
}

.back-to-top {
  position: fixed;
  right: 29px;
  bottom: 94px;
  z-index: 34;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(5, 7, 10, 0.1);
  border-radius: 50%;
  background: #ffffff;
  color: var(--dark);
  box-shadow: 0 14px 28px rgba(5, 7, 10, 0.16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--dark);
  color: var(--baby-blue);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    position: fixed;
    top: 14px;
    right: 20px;
    transform: none;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 24;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    padding: 12px 20px 22px;
    background: var(--dark);
    border-bottom: 0;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav a.is-active {
    padding-left: 12px;
    border-left: 3px solid var(--baby-blue);
  }

  .hero {
    min-height: min(720px, 80svh);
    background-position: 58% center;
  }

  .hero-content {
    padding: 62px 0 74px;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .service-grid,
  .package-grid,
  .project-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-items {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .projects-heading {
    display: grid;
    align-items: start;
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    height: 66px;
    min-height: 66px;
    padding: 0 14px;
    overflow: visible;
  }

  .nav-toggle {
    top: 11px;
    right: 14px;
  }

  .site-nav {
    inset: 66px 0 auto 0;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(5, 7, 10, 0.94) 0%, rgba(5, 7, 10, 0.76) 64%, rgba(5, 7, 10, 0.34) 100%),
      linear-gradient(135deg, rgba(191, 232, 255, 0.24), rgba(255, 255, 255, 0.04)),
      url("img/portfolio-hero-optimized.jpg") 62% center / cover,
      var(--dark);
    background-blend-mode: normal, screen, luminosity, normal;
  }

  .hero-content {
    width: calc(100% - 36px);
    max-width: 760px;
    margin-left: 18px;
    margin-right: 18px;
    padding: 56px 0 66px;
  }

  .hero h1 {
    max-width: 21rem;
    font-size: clamp(1.85rem, 8.2vw, 2.15rem);
    line-height: 1.1;
  }

  .eyebrow {
    max-width: 20rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero-copy {
    max-width: 21.5rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    text-align: center;
    line-height: 1.25;
  }

  .hero-scroll {
    margin-top: 22px;
  }

  .section,
  .contact-section {
    padding: 58px 0;
  }

  .section h2,
  .contact-section h2,
  .proof-grid h2 {
    max-width: 21.5rem;
    font-size: clamp(1.62rem, 7.7vw, 2.05rem);
    line-height: 1.14;
  }

  .metrics div,
  .service-item,
  .package-card,
  .project-content {
    padding: 22px;
  }

  .project-filters {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-button {
    min-width: 0;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .project-visual {
    height: 220px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps article {
    min-height: auto;
  }

  .service-item,
  .package-card {
    min-height: auto;
  }

  .browser-frame {
    width: 100%;
    height: 100%;
  }

  .phone-frame {
    width: 110px;
    height: 200px;
    padding: 7px;
    border-radius: 24px;
  }

  .phone-frame img {
    border-radius: 18px;
  }

  .proof-items article {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .site-footer {
    padding-bottom: 88px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }

  .back-to-top {
    right: 19px;
    bottom: 82px;
    width: 44px;
    height: 44px;
  }
}
