:root {
  --bg: #050608;
  --bg-2: #0b0f13;
  --ink: #f5f7f8;
  --muted: #aab2b8;
  --soft: #d9dee2;
  --line: rgba(255,255,255,0.13);
  --line-strong: rgba(255,255,255,0.24);
  --panel: rgba(14,18,22,0.74);
  --blue: #2f5f86;
  --cyan: #8fd4ff;
  --amber: #e7b15f;
  --green: #92b08f;
  --max: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 44rem 26rem at 86% 0%, rgba(47,95,134,0.42), transparent 62%),
    radial-gradient(ellipse 36rem 20rem at 12% 18%, rgba(231,177,95,0.18), transparent 62%),
    linear-gradient(180deg, #07080a 0%, #0b0f13 46%, #050608 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

main,
section {
  background-color: transparent;
}

section[id] {
  scroll-margin-top: 118px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,8,0.82), transparent 28%, transparent 72%, rgba(5,6,8,0.78)),
    radial-gradient(circle at 50% 40%, transparent 0 42%, rgba(0,0,0,0.55) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 16px max(16px, calc((100% - var(--max)) / 2));
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(5,6,8,0.86), rgba(5,6,8,0.52));
  backdrop-filter: blur(18px);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(150px, 15vw, 204px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.42));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a,
.site-footer a {
  transition: color 0.18s ease, opacity 0.18s ease;
}
.nav a:hover,
.site-footer a:hover { color: var(--ink); }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
  padding: clamp(54px, 8vw, 112px) 0 clamp(42px, 7vw, 86px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
h1 span { display: block; }
h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: normal;
}
h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}
p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}
.hero-copy { min-width: 0; }

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  font-weight: 750;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.button.primary {
  color: #061017;
  background: linear-gradient(135deg, #f7f8f8, #b8e4ff 54%, #e7b15f);
  box-shadow: 0 16px 42px rgba(143,212,255,0.16);
}
.button.ghost {
  color: var(--soft);
  background: rgba(255,255,255,0.045);
}

.hero-stage {
  position: relative;
  min-height: 610px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 6% 0 8% 8%;
  border: 1px solid rgba(143,212,255,0.22);
  background: linear-gradient(135deg, rgba(47,95,134,0.24), rgba(231,177,95,0.08));
  transform: rotate(-3deg);
}

.feature-card,
.work-card,
.service-item,
.contact-panel,
.timeline,
.legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.feature-card {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  width: min(78%, 430px);
  isolation: isolate;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,0.72));
  z-index: 1;
}
.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
}
.feature-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
}
.feature-card span,
.work-card span,
.service-item span,
.timeline span {
  display: block;
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}
.feature-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1.15rem;
}
.feature-card.is-large { top: 0; right: 0; width: min(88%, 520px); }
.feature-card:not(.is-large):nth-child(2) { left: 0; bottom: 94px; width: min(56%, 310px); }
.feature-card:not(.is-large):nth-child(3) { right: 32px; bottom: 0; width: min(54%, 300px); }

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.035);
}
.marquee div {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.marquee span {
  padding: 18px 30px;
  color: var(--soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  white-space: nowrap;
}

.split-section,
.process-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(82px, 12vw, 150px) 0;
}

.profile-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.work-section {
  padding: clamp(78px, 11vw, 136px) 0;
  background: linear-gradient(180deg, transparent, rgba(47,95,134,0.13), transparent);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.work-card {
  overflow: hidden;
  border-radius: 8px;
  transform: translateZ(0);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143,212,255,0.42);
  background: linear-gradient(180deg, rgba(143,212,255,0.12), rgba(255,255,255,0.04));
}
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.work-card div { padding: 18px; }
.work-card p { margin-bottom: 0; font-size: 0.96rem; }

.services-section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.service-item {
  min-height: 260px;
  padding: 22px;
  border-radius: 8px;
}
.service-item p { font-size: 0.96rem; margin-bottom: 0; }

.process-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    url("img/evix-channel-banner.jpg") center / cover fixed;
}
.process-section .section-shell {
  backdrop-filter: blur(1px);
}
.timeline {
  display: grid;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5,6,8,0.72);
}
.timeline div {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.timeline div:last-child { border-bottom: 0; }
.timeline p { margin-bottom: 0; }

.contact-section {
  padding: clamp(82px, 12vw, 150px) 0;
}
.contact-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px;
  text-align: center;
}
.contact-panel p { max-width: 680px; margin-inline: auto; }
.contact-actions { justify-content: center; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer nav {
  display: flex;
  gap: 18px;
}

.legal-main {
  padding: clamp(72px, 10vw, 120px) 0;
}
.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 8px;
}
.legal-card h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); }
.legal-card h2 { margin-top: 34px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.legal-card h3 { margin-top: 24px; }
.legal-card h4 {
  margin: 22px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}
.legal-card a { color: var(--cyan); border-bottom: 1px solid rgba(143,212,255,0.35); }
.legal-card ul { color: var(--muted); line-height: 1.7; padding-left: 1.2rem; }
.legal-card,
.legal-card p,
.legal-card li {
  overflow-wrap: anywhere;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.motion-ready .reveal.is-visible,
.reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@media (max-width: 980px) {
  .hero,
  .split-section,
  .process-layout {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-stage { min-height: 520px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(ellipse 28rem 18rem at 100% 0%, rgba(47,95,134,0.24), transparent 64%),
      radial-gradient(ellipse 24rem 16rem at 8% 14%, rgba(231,177,95,0.12), transparent 62%),
      linear-gradient(180deg, #07080a 0%, #0b0f13 46%, #050608 100%);
  }
  .section-shell,
  .section-shell {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .brand img { width: 152px; }
  section[id] { scroll-margin-top: 146px; }
  .nav { justify-content: flex-start; gap: 12px 16px; }
  .work-grid,
  .service-grid { grid-template-columns: 1fr; }
  .service-item { min-height: 0; }
  .site-footer {
    flex-direction: column;
  }
  h1 {
    font-size: clamp(2.1rem, 10.2vw, 2.72rem);
    line-height: 0.96;
  }
  h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    line-height: 1.03;
  }
  .legal-card h1 { font-size: clamp(2.35rem, 14vw, 4.2rem); }
  .legal-card { padding-inline: 20px; }
  .hero-actions .button,
  .contact-actions .button {
    flex: 1 1 100%;
    padding-inline: 14px;
  }
  .hero-copy > p:not(.eyebrow),
  p {
    font-size: 1rem;
  }
  .hero {
    gap: 26px;
    padding-top: 44px;
  }
  .hero-stage {
    display: grid;
    gap: 12px;
    min-height: auto;
    overflow: visible;
  }
  .hero-stage::before { display: none; }
  .feature-card,
  .feature-card.is-large,
  .feature-card:not(.is-large):nth-child(2),
  .feature-card:not(.is-large):nth-child(3) {
    position: relative;
    inset: auto;
    width: 100%;
  }
  .feature-card img {
    aspect-ratio: 16 / 9;
  }
}
