:root {
  /* Brand colors from HAGE ICT logo */
  --hage-blue: #0047ff;
  --hage-blue-bright: #1a5cff;
  --hage-blue-soft: rgba(0, 71, 255, 0.22);
  --hage-ink: #000000;
  --hage-ink-2: #050505;
  --hage-panel: #0a0a0a;
  --hage-text: #f2f4ff;
  --hage-muted: #a8b0c8;
  --hage-line: rgba(0, 71, 255, 0.28);
  --hage-radius: 18px;
  --hage-max: 1180px;
  --font-display: "Syne", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.hage-site {
  margin: 0;
  font-family: var(--font-body);
  color: var(--hage-text);
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(0, 71, 255, 0.28), transparent 55%),
    radial-gradient(800px 480px at 92% 8%, rgba(26, 92, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #000000 0%, #050505 45%, #000000 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.hage-wrap {
  width: min(100% - 2.5rem, var(--hage-max));
  margin-inline: auto;
}

/* Header */
.hage-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.hage-header.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: var(--hage-line);
  backdrop-filter: blur(16px);
}

.hage-social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hage-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--hage-line);
  color: var(--hage-blue-bright);
  background: rgba(0, 71, 255, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hage-social a:hover {
  background: var(--hage-blue);
  border-color: var(--hage-blue);
  color: #fff;
  transform: translateY(-2px);
}

.hage-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hage-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.hage-logo img {
  height: 48px;
  width: auto;
}

.hage-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.hage-nav .menu {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hage-nav .menu li {
  list-style: none;
}

.hage-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hage-muted);
  transition: color 0.25s ease;
}

.hage-nav a:hover,
.hage-nav .current-menu-item > a {
  color: #fff;
}

.hage-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hage-line);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* Buttons */
.hage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hage-btn:hover {
  transform: translateY(-2px);
}

.hage-btn--primary {
  background: linear-gradient(135deg, #0033ff, var(--hage-blue-bright));
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 71, 255, 0.42);
}

.hage-btn--ghost {
  background: transparent;
  border-color: var(--hage-line);
  color: #fff;
}

.hage-btn--ghost:hover {
  border-color: var(--hage-blue-bright);
}

/* Hero — one composition, brand first, full-bleed */
.hage-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hage-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hage-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hage-kenburns 18s ease-in-out infinite alternate;
}

.hage-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.96) 100%),
    radial-gradient(700px 420px at 70% 35%, rgba(0, 71, 255, 0.32), transparent 65%);
}

.hage-hero__content {
  padding: 9rem 0 5rem;
}

.hage-hero__brand {
  width: min(420px, 78vw);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(28px);
  animation: hage-rise 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hage-hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(28px);
  animation: hage-rise 0.9s 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hage-hero h1 span {
  color: var(--hage-blue-bright);
}

.hage-hero__lead {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: var(--hage-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0;
  transform: translateY(28px);
  animation: hage-rise 0.9s 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hage-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(28px);
  animation: hage-rise 0.9s 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hage-scroll-hint {
  margin-top: 3.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--hage-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hage-scroll-hint i {
  width: 18px;
  height: 28px;
  border: 1px solid var(--hage-muted);
  border-radius: 999px;
  position: relative;
}

.hage-scroll-hint i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--hage-blue-bright);
  transform: translateX(-50%);
  animation: hage-scroll 1.4s ease-in-out infinite;
}

/* Sections */
.hage-section {
  padding: 6.5rem 0;
}

.hage-section__head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.hage-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--hage-blue-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hage-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hage-section__head p {
  margin: 0;
  color: var(--hage-muted);
  font-size: 1.05rem;
}

/* Services — interaction containers, not decorative cards */
.hage-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hage-service {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--hage-line);
  border-radius: var(--hage-radius);
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.9), rgba(12, 18, 32, 0.55));
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.hage-service::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--hage-blue-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hage-service:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 139, 255, 0.45);
}

.hage-service:hover::before {
  opacity: 1;
}

.hage-service__media {
  margin: -0.2rem -0.2rem 1.1rem;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hage-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hage-service:hover .hage-service__media img {
  transform: scale(1.06);
}

.hage-service h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.hage-service p {
  margin: 0;
  color: var(--hage-muted);
  font-size: 0.98rem;
}

/* Our Customers */
.hage-customers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hage-customer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.6rem 1.3rem 1.4rem;
  min-height: 190px;
  border: 1px solid var(--hage-line);
  border-radius: var(--hage-radius);
  background: #ffffff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hage-customer:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 71, 255, 0.55);
  box-shadow: 0 18px 40px rgba(0, 71, 255, 0.18);
}

.hage-customer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;
}

.hage-customer__logo img {
  max-height: 80px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hage-customer h3 {
  margin: 0;
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

/* About split */
.hage-about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hage-about__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
}

.hage-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hage-about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 11, 20, 0.7));
}

.hage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hage-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
}

.hage-stat span {
  color: var(--hage-muted);
  font-size: 0.9rem;
}

/* Portfolio mosaic */
.hage-portfolio {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 1rem;
}

.hage-project {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hage-line);
}

.hage-project:first-child {
  grid-row: span 2;
}

.hage-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hage-project:hover img {
  transform: scale(1.05);
}

.hage-project__meta {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.92));
}

.hage-project__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.hage-project__meta span {
  color: var(--hage-muted);
  font-size: 0.9rem;
}

/* Process */
.hage-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hage-step {
  padding: 1.4rem 1.2rem;
  border-top: 2px solid var(--hage-blue);
}

.hage-step em {
  display: block;
  margin-bottom: 0.7rem;
  font-style: normal;
  color: var(--hage-blue-bright);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hage-step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.hage-step p {
  margin: 0;
  color: var(--hage-muted);
}

/* CTA band */
.hage-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  background:
    linear-gradient(120deg, rgba(31, 108, 255, 0.28), rgba(7, 11, 20, 0.2)),
    var(--hage-panel);
  border: 1px solid rgba(61, 139, 255, 0.35);
}

.hage-cta h2 {
  max-width: 16ch;
}

.hage-cta p {
  max-width: 36rem;
  color: var(--hage-muted);
}

.hage-cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Contact */
.hage-contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.hage-contact__panel,
.hage-form {
  padding: 1.75rem;
  border: 1px solid var(--hage-line);
  border-radius: 22px;
  background: rgba(18, 26, 44, 0.55);
}

.hage-contact__panel h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.hage-contact__panel p,
.hage-contact__panel a {
  color: var(--hage-muted);
}

.hage-contact__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.hage-contact__list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--hage-line);
}

.hage-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--hage-muted);
}

.hage-form .field {
  margin-bottom: 1rem;
}

.hage-form input,
.hage-form textarea,
.hage-form select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--hage-line);
  background: rgba(7, 11, 20, 0.65);
  color: #fff;
  font: inherit;
}

.hage-form textarea {
  min-height: 140px;
  resize: vertical;
}

.hage-form input:focus,
.hage-form textarea:focus,
.hage-form select:focus {
  outline: none;
  border-color: var(--hage-blue-bright);
  box-shadow: 0 0 0 3px var(--hage-blue-soft);
}

/* Footer */
.hage-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--hage-line);
}

.hage-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.hage-footer__brand img {
  height: 42px;
  width: auto;
  margin-bottom: 1rem;
}

.hage-footer p {
  color: var(--hage-muted);
  max-width: 28rem;
}

.hage-footer h4 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
}

.hage-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hage-footer li + li {
  margin-top: 0.55rem;
}

.hage-footer a {
  color: var(--hage-muted);
}

.hage-footer a:hover {
  color: #fff;
}

.hage-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hage-line);
  color: var(--hage-muted);
  font-size: 0.9rem;
}

/* Reveal on scroll */
.hage-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hage-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hage-page-hero {
  padding: 9rem 0 3.5rem;
}

.hage-page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

/* Animations */
@keyframes hage-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hage-kenburns {
  to {
    transform: scale(1.14) translate(-1.5%, -1%);
  }
}

@keyframes hage-scroll {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 8px);
  }
}

@media (max-width: 980px) {
  .hage-services-grid,
  .hage-customers,
  .hage-process,
  .hage-about,
  .hage-contact,
  .hage-footer__grid,
  .hage-portfolio {
    grid-template-columns: 1fr;
  }

  .hage-customers {
    grid-template-columns: repeat(2, 1fr);
  }

  .hage-portfolio {
    grid-template-rows: none;
  }

  .hage-project:first-child {
    grid-row: auto;
    min-height: 320px;
  }

  .hage-project {
    min-height: 240px;
  }

  .hage-nav {
    position: fixed;
    inset: 78px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(7, 11, 20, 0.96);
    border: 1px solid var(--hage-line);
  }

  .hage-nav.is-open {
    display: flex;
  }

  .hage-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hage-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hage-customers {
    grid-template-columns: 1fr;
  }
}
