/* Nexysoft - dark engineering aesthetic, logo-aligned accents */

:root {
  --color-accent: #f26419;
  --color-accent-hot: #ff7a35;
  --color-gold: #e8a317;
  --color-deep-red: #b91c1c;
  --color-bg: #060708;
  --color-surface: #0e1016;
  --color-surface-2: #141820;
  --color-border: rgba(242, 100, 25, 0.22);
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-text: #e8eaef;
  --color-text-muted: #9aa3b2;
  --color-secondary: #343a40;
  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --shadow-glow: 0 0 60px rgba(242, 100, 25, 0.15);
  --radius: 14px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.text-em {
  font-weight: 600;
  color: inherit;
}

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

a {
  color: var(--color-accent-hot);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  position: relative;
}

.section__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin: 0 0 0.65rem;
}

.section__eyebrow--on-dark {
  color: rgba(255, 180, 120, 0.95);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  color: var(--color-text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__title--light {
  color: #f4f6fa;
}

.section__title--on-dark {
  color: #fff;
}

.section__lead {
  margin: 0 0 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.08rem;
  max-width: 40rem;
  line-height: 1.6;
}

.section__lead--muted {
  color: #8b95a5;
}

/* --- Sticky site header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sibling backdrop: fixed .nav__menu must not descend from backdrop-filter (avoids sideways scroll). */
.site-header__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(6, 7, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: calc(100dvh - 4.5rem);
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 70% -20%, rgba(242, 100, 25, 0.28), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(185, 28, 28, 0.18), transparent 45%),
    linear-gradient(180deg, #0a0b10 0%, #060708 100%);
  z-index: 0;
}

.hero__circuit {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background-image: linear-gradient(rgba(242, 100, 25, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 100, 25, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.hero__orb--1 {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  background: rgba(242, 100, 25, 0.35);
  top: -10%;
  right: -5%;
}

.hero__orb--2 {
  width: min(320px, 50vw);
  height: min(320px, 50vw);
  background: rgba(232, 163, 23, 0.12);
  bottom: 10%;
  left: -8%;
}

.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo--animate {
  animation: logoEnter 0.9s var(--transition) forwards;
  opacity: 0;
  transform: translateY(-10px);
}

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

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__img {
  height: 44px;
  width: auto;
  max-height: 44px;
  display: block;
  transition: transform var(--transition), filter var(--transition);
}

.logo:hover .logo__img {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 18px rgba(242, 100, 25, 0.28));
}

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav__menu a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.nav__menu a:hover {
  color: #fff;
  text-decoration: none;
}

.nav__cta {
  background: rgba(242, 100, 25, 0.15);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.nav__cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 210;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1rem 0 clamp(3rem, 8vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 200, 160, 0.85);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.12;
  animation: fadeUp 0.85s var(--transition) 0.08s both;
}

.hero__accent {
  background: linear-gradient(105deg, #fff 0%, #ffc9a8 45%, var(--color-accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.55rem;
  max-width: 36rem;
  animation: fadeUp 0.85s var(--transition) 0.2s both;
}

.hero__copy .hero__tagline + .hero__tagline {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.62);
}

.hero__pills {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  animation: fadeUp 0.85s var(--transition) 0.28s both;
}

.hero__pills li {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-subtle);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.85s var(--transition) 0.36s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__logo-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo-card--animate {
  animation: logoCardIn 1.1s cubic-bezier(0.34, 1.2, 0.64, 1) 0.15s both;
}

@keyframes logoCardIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero__logo-ring {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(242, 100, 25, 0.5), transparent 40%, rgba(232, 163, 23, 0.25));
  z-index: -1;
  opacity: 0.7;
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.85;
  }
}

.hero__logo-img {
  width: min(280px, 55vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn--hero {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 36px rgba(242, 100, 25, 0.4);
}

.btn--hero:hover {
  background: var(--color-accent-hot);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(242, 100, 25, 0.5);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent-hot);
  border-color: var(--color-border);
}

.btn--outline:hover {
  background: rgba(242, 100, 25, 0.1);
  border-color: var(--color-accent);
  text-decoration: none;
}

.btn--submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  width: 100%;
  max-width: 300px;
}

.btn--submit:hover {
  background: #cfd2d8;
  color: #1a1d24;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 13px;
  z-index: 5;
}

.hero__scroll-hint::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.35;
    transform: translateY(10px);
  }
}

/* --- About --- */
.about {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text);
}

.about__grid--visual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.about__photo-frame {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

.about__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 100, 25, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__photo-col:hover .about__photo {
  transform: scale(1.03);
}

.about__copy-col .section__title {
  margin-bottom: 1rem;
}

.about__lede {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #9aa3b2;
}

.about__lede .text-em,
.about__geo .text-em,
.about__focus .text-em {
  color: #e8eaef;
}

.about__geo {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #9aa3b2;
}

.about__focus {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #9aa3b2;
}

.about__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about__chips li {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(242, 100, 25, 0.1);
  border: 1px solid var(--color-border);
  color: rgba(255, 255, 255, 0.88);
}

.about__actions {
  margin-top: 1.65rem;
}

/* --- Business card contact dialog --- */
.biz-card-modal[hidden] {
  display: none !important;
}

.biz-card-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  min-width: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.biz-card-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.biz-card-modal.is-open .biz-card-modal__backdrop {
  opacity: 1;
}

.biz-card-modal__panel {
  position: relative;
  width: min(100%, 360px);
  max-height: min(calc(100dvh - 2rem), calc(100vh - 2rem));
  align-self: center;
  flex: 0 1 auto;
  touch-action: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: center center;
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1051;
}

.biz-card-modal.is-open .biz-card-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.biz-card-modal__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.biz-card-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.biz-card {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0f14;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.biz-card__inner {
  position: relative;
  z-index: 1;
  border-radius: 9px;
  padding: 1.1rem 1.15rem 1.05rem;
  padding-top: 2.35rem;
  background: #0d0f14;
  overflow: hidden;
}

.biz-card__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.biz-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.biz-card__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
}

.biz-card__mark img {
  height: 30px;
  width: auto;
  max-width: 100px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.biz-card__headlines {
  min-width: 0;
}

.biz-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #f4f6fa;
  margin: 0 0 0.15rem;
  line-height: 1.2;
}

.biz-card__tagline {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
}

.biz-card__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem 1rem;
  align-items: start;
}

.biz-card__details {
  min-width: 0;
}

.biz-card__row {
  margin-bottom: 0.65rem;
}

.biz-card__row:last-of-type {
  margin-bottom: 0;
}

.biz-card__label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-hot);
  margin-bottom: 0.2rem;
}

.biz-card__value {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(232, 234, 239, 0.92);
  font-style: normal;
}

.biz-card__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(242, 100, 25, 0.35);
  transition: color var(--transition), border-color var(--transition);
}

.biz-card__link:hover {
  color: var(--color-accent-hot);
  border-bottom-color: var(--color-accent-hot);
  text-decoration: none;
}

.biz-card__value--inline {
  margin: 0;
  font-size: 0.875rem;
}

.biz-card__row--web {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.biz-card__qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.biz-card__qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  /* White modules only; no tile, sits on the dark card */
}

.biz-card__qr-frame canvas {
  display: block;
  margin: 0;
  width: 160px;
  height: 160px;
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.biz-card__qr-caption {
  margin: 0.45rem 0 0.1rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.biz-card__qr-sub {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.32);
  max-width: 7.5rem;
}

.biz-card__add-contact,
.biz-card__add-contact-hint {
  display: none;
}

@keyframes biz-card-add-jump {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-10px);
  }
  55% {
    transform: translateY(-10px);
  }
}

html.biz-card-open,
body.biz-card-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .biz-card-modal__panel {
    transform: none;
    transition: opacity 0.2s ease;
  }

  .biz-card-modal.is-open .biz-card-modal__panel {
    transform: none;
  }

  .biz-card__add-contact {
    animation: none !important;
  }
}

/* --- Services --- */
.services {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.service-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-glow);
}

.service-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card__media img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: #f4f6fa;
  margin: 0 0 0.5rem;
}

.service-card__desc {
  margin: 0;
  color: #9aa3b2;
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card__desc .text-em {
  color: #c5cbd6;
}

/* --- Projects --- */
.projects {
  background: var(--color-bg);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

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

.project-card:hover {
  border-color: rgba(242, 100, 25, 0.35);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__media img {
  transform: scale(1.09);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 7, 8, 0.15) 35%, rgba(6, 7, 8, 0.88) 100%);
  pointer-events: none;
}

.project-card__overlay .project-card__tag {
  margin-bottom: 0.35rem;
}

.project-card__overlay .project-card__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.project-card__body {
  padding: 1.1rem 1.35rem 1.35rem;
}

.project-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 200, 160, 0.95);
}

.project-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: #f4f6fa;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.project-card__desc {
  margin: 0 0 1.15rem;
  color: #9aa3b2;
  font-size: 0.92rem;
  line-height: 1.6;
}

.project-card__desc .text-em {
  color: #c5cbd6;
}

.project-card__cta {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.62rem 0.85rem;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
}

.carousel {
  max-width: 720px;
  margin: 2rem auto 0;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0.5rem;
}

.testimonial {
  margin: 0;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  padding: 2rem 2rem 2.25rem;
  border-radius: var(--radius);
  text-align: center;
}

.testimonial__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--color-accent);
}

.testimonial__quote {
  font-size: 1.05rem;
  color: #d1d6df;
  font-style: italic;
  margin: 0 0 1.25rem;
  line-height: 1.65;
}

.testimonial__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  color: #fff;
  font-size: 0.98rem;
}

.testimonial__company {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.carousel__btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #3d4554;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.15);
}

/* --- CTA band --- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: linear-gradient(125deg, #1a0a06 0%, var(--color-accent) 42%, #7c2d12 78%, #1a1d24 100%);
}

.cta-band__grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.cta-band__particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: particleDrift 22s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes particleDrift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(28px, 28px);
  }
}

.cta-band__inner {
  position: relative;
  z-index: 1;
}

.cta-band__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  color: #fff;
  margin: 0 auto 0.75rem;
  letter-spacing: -0.02em;
  max-width: 22ch;
  line-height: 1.2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.cta-band__sub {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* --- Contact --- */
.contact {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-subtle);
}

.contact__card-cta {
  margin: 1.75rem 0 0;
  text-align: center;
}

.contact__biz-card-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

.contact__biz-card-btn:hover,
.contact__biz-card-btn:focus-visible {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.contact__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  margin: 1.5rem auto 0;
  max-width: 560px;
  font-size: 0.8rem;
  color: #8b95a5;
}

.contact__share-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.15rem;
}

.contact__share a {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 100, 25, 0.25);
}

.contact__share a:hover {
  color: var(--color-accent-hot);
  border-bottom-color: var(--color-accent);
}

.contact-form {
  position: relative;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__status {
  min-height: 1.25rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #9aa3b2;
}

.contact-form__status.contact-form__status--success {
  color: #7dd3a8;
}

.contact-form__status.contact-form__status--error {
  color: #f0a8a8;
}

.btn--submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-form__row {
  margin-bottom: 1.2rem;
}

.contact-form__label,
.contact-form__legend {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #b4bcc8;
  margin-bottom: 0.4rem;
}

.contact-form__fieldset {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 1rem 1.2rem 1.2rem;
  margin: 0 0 1.2rem;
}

.contact-form__legend {
  padding: 0 0.5rem;
}

.contact-form__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.93rem;
  color: #c5cbd6;
}

.contact-form__check:last-child {
  margin-bottom: 0;
}

.contact-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form__input::placeholder {
  color: #6b7280;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.2);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social__link {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
}

.social__link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  text-decoration: none;
  color: #fff;
}

/* --- Footer --- */
.footer {
  background: #0a0c10;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 0 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
}

.footer__logo-img {
  height: 40px;
  width: auto;
  max-height: 40px;
  display: block;
}

.footer__tag {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  opacity: 0.75;
  max-width: 16rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--color-accent-hot);
  text-decoration: none;
}

.footer__social {
  display: flex;
  gap: 0.85rem;
}

.footer__social a {
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  transition: color var(--transition), transform var(--transition);
}

.footer__social a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer__copy {
  text-align: center;
  margin: 2.25rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Modal --- */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__panel {
  position: relative;
  /* min(100%, Npx) keeps the dialog centered on wide viewports; width:100% alone fills the flex row */
  width: min(100%, 640px);
  max-width: 100%;
  align-self: center;
  min-width: 0;
  flex: 0 1 auto;
  max-height: min(85vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 0.48s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1001;
  box-sizing: border-box;
}

.modal.is-open .modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-surface-2);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  background: var(--color-accent);
  color: #fff;
}

.modal__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 3rem 1.25rem 0;
  padding-right: 0.5rem;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.modal__block {
  margin-bottom: 1.4rem;
}

.modal__block:last-child {
  margin-bottom: 0;
}

.modal__block h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-hot);
  margin: 0 0 0.45rem;
}

.modal__block p {
  margin: 0;
  color: #b8c0cc;
  font-size: 0.96rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.modal__body {
  min-width: 0;
}

body.modal-open {
  overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    order: 1;
  }

  .hero__showcase {
    order: 0;
  }

  .hero__pills,
  .hero__actions {
    justify-content: center;
  }

  .hero__tagline {
    margin-inline: auto;
  }

  .hero__copy .hero__tagline + .hero__tagline {
    margin-inline: auto;
  }

  .about__grid--visual {
    grid-template-columns: 1fr;
  }

  .about__photo-col {
    order: -1;
  }

  .services__grid,
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo-img {
    margin-inline: auto;
  }

  .footer__nav {
    justify-content: center;
  }

  .footer__social {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    /* Above .nav__menu (220) so the hamburger / X stays visible when the drawer is open */
    z-index: 250;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 220;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.35rem;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    border-left: 1px solid var(--color-border-subtle);
  }

  .nav.is-open .nav__menu {
    transform: translateX(0);
  }

  .modal__panel {
    max-height: min(82dvh, 100vh - 2rem - env(safe-area-inset-bottom, 0px));
    max-width: 100%;
    width: 100%;
    padding: 1.35rem 1rem max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .modal__title {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    margin-right: 2.75rem;
    margin-bottom: 1rem;
  }

  .modal__close {
    top: 0.65rem;
    right: 0.65rem;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .modal__block p {
    font-size: 0.93rem;
  }

  .biz-card__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .biz-card__details {
    width: 100%;
    text-align: center;
  }

  .biz-card__label {
    text-align: center;
  }

  .biz-card__qr-block {
    width: 100%;
    align-items: center;
  }

  .biz-card__qr-frame,
  .biz-card__qr-caption,
  .biz-card__qr-sub {
    display: none !important;
  }

  .biz-card__add-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin-top: 0.35rem;
    padding: 0.95rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background: var(--color-accent);
    box-shadow: 0 10px 32px rgba(242, 100, 25, 0.38);
    transition: background var(--transition), box-shadow var(--transition);
    animation: biz-card-add-jump 1.15s ease-in-out infinite;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .biz-card__add-contact:hover,
  .biz-card__add-contact:focus-visible {
    background: var(--color-accent-hot);
    animation-play-state: paused;
    outline: none;
    box-shadow: 0 12px 36px rgba(242, 100, 25, 0.48);
  }

  .biz-card__add-contact-hint {
    display: block;
    margin: 0.65rem 0 0;
    max-width: 16rem;
    font-size: 0.68rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.38);
  }
}

@media (min-width: 769px) {
  .modal__panel {
    width: min(100%, 720px);
  }
}

/* --- Legal pages (privacy, terms) --- */
.legal-doc__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  color: #f4f6fa;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-doc__updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-doc__body {
  max-width: 42rem;
  color: #b8c0cc;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-doc__body h2 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.25rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.legal-doc__body h2:first-of-type {
  margin-top: 0;
}

.legal-doc__body p {
  margin: 0 0 1rem;
}

.legal-doc__body ul {
  margin: 0 0 1.1rem 1.25rem;
  padding: 0;
}

.legal-doc__body li {
  margin-bottom: 0.45rem;
}

.legal-doc__body a {
  color: var(--color-accent-hot);
}

.legal-doc__body a:hover {
  color: #fff;
}

.footer__brand a {
  display: inline-block;
  text-decoration: none;
}
