/* Digital Pulse Creations — static company site */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --surface: #16161f;
  --text: #e8e8ed;
  --muted: #9898a8;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo__img {
  height: clamp(48px, 7.5vw, 58px);
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
}

.logo--with-img {
  line-height: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__link {
  display: block;
  padding: 9px 16px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav__link.nav__cta {
  margin-left: 2px;
  padding-left: 18px;
  padding-right: 18px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.08));
  color: var(--accent) !important;
  border: 1px solid rgba(34, 211, 238, 0.45);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.nav__link.nav__cta:hover {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.28), rgba(34, 211, 238, 0.14));
  color: #e4fbff !important;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.15);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.75) 50%, rgba(10, 10, 15, 0.95) 100%),
    url("../assets/hero-bg.jpeg") center / cover no-repeat;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(34, 211, 238, 0.12), transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 16px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 14ch;
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.25);
}

.btn--primary:hover {
  background: #5ee9fd;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section--surface {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__head--left {
  text-align: left;
  margin-left: 0;
}

.section__head--wide {
  max-width: none;
  width: 100%;
}

.section--why .section__head {
  margin-bottom: clamp(40px, 6vw, 56px);
}

.section__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section__intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-4px);
}

.card__step {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.card__name {
  font-size: 1.15rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 700;
}

.card__subtitle {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  font-size: 1rem;
}

.card__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__body strong {
  color: var(--text);
}

.card--service .card__body + .card__body {
  margin-top: 12px;
}

/* Why us — alternating bands with aligned image frames */
.story-band {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 88px);
}

@media (min-width: 768px) {
  .story-band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    column-gap: clamp(32px, 5vw, 64px);
    align-items: center;
  }

  .story-band--img-left .story-band__figure {
    order: -1;
  }
}

.story-band:last-child {
  margin-bottom: 0;
}

.story-band__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
}

@media (min-width: 768px) {
  .story-band__copy {
    padding: 12px 16px 12px 0;
    align-self: center;
  }

  .story-band--img-left .story-band__copy {
    padding: 12px 0 12px 16px;
  }
}

.story-band__figure {
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-width: 0;
}

.story-band__frame {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  aspect-ratio: 3 / 2;
  max-height: clamp(220px, 32vw, 380px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

@media (min-width: 768px) {
  .story-band__frame {
    max-height: min(380px, 42vh);
  }
}

.story-band__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.story-band__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.story-band__title {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.story-band__text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 42em;
}

@media (max-width: 767px) {
  .story-band {
    gap: 22px;
    align-items: stretch;
  }

  .story-band__frame {
    max-height: none;
    aspect-ratio: 16 / 10;
    max-width: 100%;
  }

  .story-band__figure {
    order: -1;
  }

  .story-band__copy {
    order: 1;
    padding: 0;
  }
}

/* About */
.about__header {
  margin-bottom: 20px;
}

.about__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 0;
  max-width: 20ch;
}

.about__lead-xl {
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: rgba(232, 232, 237, 0.95);
  margin: 0 0 clamp(28px, 5vw, 44px);
  max-width: 62ch;
}

.about__split {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

@media (min-width: 900px) {
  .about__split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(36px, 5vw, 64px);
    align-items: start;
  }
}

.about__subhead {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 18px;
  color: var(--text);
}

.about__copy {
  min-width: 0;
}

.about__figure {
  margin: 0;
  min-width: 0;
}

.about__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  max-height: min(360px, 70vh);
  background: var(--surface);
}

.about__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.about__body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

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

.clients-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.clients-row__item {
  margin: 0;
  padding: 20px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.clients-row__item img {
  max-height: 140px;
  width: auto;
  margin: 0 auto;
}

.section--cta {
  padding: 96px 0;
  background: radial-gradient(ellipse 80% 80% at 50% 100%, rgba(34, 211, 238, 0.08), transparent 55%);
  border-top: 1px solid var(--border);
}

.contact {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 700px) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__kicker {
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 1rem;
}

.contact__title-xl {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.contact__line {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.05rem;
}

.contact__label {
  color: var(--muted);
  margin-right: 8px;
}

.contact__value {
  font-weight: 600;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  max-width: 440px;
}

.contact__status {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact__status[data-tone="success"] {
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--accent);
}

.contact__status[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label-block {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.contact__input {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact__input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.contact__input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.contact__input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.contact__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

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

.contact__submit {
  align-self: flex-start;
  margin-top: 4px;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer__brand,
.footer__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
  }

  .nav__list > li:first-child .nav__link {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .nav__link {
    border-radius: 0;
    padding: 14px 18px;
  }

  .nav__list > li:last-child .nav__link.nav__cta {
    margin-left: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .story-band {
    grid-template-columns: 1fr;
  }

  .about__title {
    max-width: none;
  }

  .about__split {
    grid-template-columns: 1fr;
  }

  .about__figure {
    order: -1;
  }

  .about__copy {
    order: 1;
  }
}

/* ---------- Motion: load + scroll (respects prefers-reduced-motion) ---------- */
@keyframes animFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animHeaderDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animHeroBgSoft {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .header--enter {
    opacity: 0;
    animation: animHeaderDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero__bg {
    transform: scale(1.06);
    transform-origin: center center;
    animation: animHeroBgSoft 1.15s ease-out forwards;
  }

  .hero__enter {
    opacity: 0;
    animation: animFadeSlideUp 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero__content .hero__enter:nth-child(1) {
    animation-delay: 0.06s;
  }

  .hero__content .hero__enter:nth-child(2) {
    animation-delay: 0.18s;
  }

  .hero__content .hero__enter:nth-child(3) {
    animation-delay: 0.3s;
  }

  .hero__content .hero__enter:nth-child(4) {
    animation-delay: 0.42s;
  }

  [data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition:
      opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-stagger, 0) * 0.07s);
    will-change: opacity, transform;
  }

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

@media (prefers-reduced-motion: reduce) {
  .header--enter,
  .hero__enter {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .hero__bg {
    animation: none !important;
    transform: none !important;
  }

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