:root {
  --ink: #141316;
  --muted: #6d6972;
  --paper: #f4f1eb;
  --white: #fffdf8;
  --purple: #a983e4;
  --purple-light: #ded0f4;
  --line: rgba(20, 19, 22, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 5vw;
  color: var(--white);
  background: rgba(20, 19, 22, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.logo { display: flex; align-items: center; gap: 15px; width: fit-content; }
.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: linear-gradient(145deg, #bd99f2 0%, #8c65c8 100%);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(169, 131, 228, .12), 0 8px 24px rgba(0, 0, 0, .25);
  font: 800 15px/1 "Manrope", sans-serif;
  font-style: italic;
  letter-spacing: -.08em;
  transform: rotate(-7deg);
  transition: transform .25s, box-shadow .25s;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 14px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  opacity: .75;
}
.logo:hover .logo-mark {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 0 0 7px rgba(169, 131, 228, .16), 0 10px 28px rgba(0, 0, 0, .3);
}
.logo-text { font: 700 13px/1 "Manrope", sans-serif; letter-spacing: .18em; }
.nav { display: flex; gap: 38px; height: 100%; align-items: center; }
.nav-link {
  position: relative;
  color: #aaa5ae;
  font: 600 12px/1 "Manrope", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width .25s;
}
.nav-link.active::after { width: 100%; }
.language-switcher { justify-self: end; display: flex; gap: 9px; align-items: center; color: #77727c; }
.lang { padding: 5px 0; color: #77727c; background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.lang.active { color: var(--white); border-bottom: 2px solid var(--purple); }
.menu-toggle { display: none; }

.section { scroll-margin-top: 80px; }
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 6vw;
  padding: 140px 8vw 90px;
  overflow: hidden;
  background: var(--purple);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, black, transparent 66%);
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 22px;
  font: 700 11px/1 "Manrope", sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font: 800 clamp(52px, 7vw, 108px)/.94 "Manrope", sans-serif;
  letter-spacing: -.075em;
}
h1 em, h2 em { font-weight: 500; }
.hero-text {
  max-width: 590px;
  margin: 34px 0 0;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55;
}
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--ink);
  transition: transform .2s, background .2s, color .2s;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--white); background: var(--ink); }
.text-link { padding: 8px 0; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); }
.skill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 55px; }
.skill-row span { padding: 8px 13px; font-size: 11px; font-weight: 700; border: 1px solid rgba(20,19,22,.35); border-radius: 30px; }
.portrait-frame { position: relative; max-width: 510px; margin: auto; }
.portrait-frame img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  border-radius: 3px;
}
.portrait-accent {
  position: absolute;
  z-index: 1;
  inset: -20px 20px 20px -20px;
  border: 1px solid rgba(20, 19, 22, .55);
}
.status-card {
  position: absolute;
  z-index: 3;
  right: -30px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 17px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.status-dot { width: 7px; height: 7px; background: #8ee59d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(142,229,157,.14); }
.metric-card {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: 126px;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--ink);
}
.metric-card strong { font: 800 30px/1 "Manrope", sans-serif; }
.metric-label { margin-bottom: 16px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.metric-one { top: 12%; right: -2%; }
.metric-two { bottom: 14%; left: -5%; }
.scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 8vw;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.scroll-hint i { width: 48px; height: 1px; background: var(--ink); }

.about-strip { padding: 100px 8vw; background: var(--ink); color: var(--white); }
.section-number { display: block; margin-bottom: 18px; color: var(--purple); font: 700 11px/1 "Manrope", sans-serif; }
.statement { max-width: 990px; margin: 0 0 80px; font: 500 clamp(28px, 4.2vw, 64px)/1.15 "Manrope", sans-serif; letter-spacing: -.055em; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid rgba(255,255,255,.18); }
.services article { padding-top: 25px; }
.services span { color: var(--purple); font-size: 11px; }
.services h3 { margin: 24px 0 12px; font: 700 20px/1.2 "Manrope", sans-serif; }
.services p { max-width: 270px; margin: 0; color: #a6a1ab; font-size: 13px; line-height: 1.6; }

.portfolio { padding: 120px 8vw; }
.section-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 5vw; margin-bottom: 70px; }
.section-heading h2 { max-width: 850px; font-size: clamp(44px, 6.5vw, 92px); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 75px 28px; }
.project-card { min-width: 0; }
.project-wide { grid-column: 1 / -1; }
.project-preview { height: clamp(280px, 34vw, 520px); overflow: hidden; border: 1px solid var(--line); transition: transform .35s; }
.project-card:hover .project-preview { transform: translateY(-7px); }
.project-info { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; }
.project-info p { margin: 0 0 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.project-info h3 { margin: 0; font: 700 clamp(20px, 2.1vw, 30px)/1.15 "Manrope", sans-serif; letter-spacing: -.035em; }
.project-info a {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.project-info a:hover { color: var(--white); background: var(--ink); }
.project-description { max-width: 480px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.portfolio-note { margin: 70px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.preview-sales { padding: 7%; color: #eef0f5; background: #202229; }
.dash-top { display: flex; gap: 6px; align-items: center; color: #9d9fa6; font-size: 8px; letter-spacing: .1em; }
.dash-top span { margin-right: auto; }
.dash-top i { width: 22px; height: 3px; background: #4a4d56; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: 11%; }
.kpi-row b { padding: 10%; color: var(--white); background: #292c34; font: 700 clamp(17px, 2.2vw, 33px)/1 "Manrope", sans-serif; }
.kpi-row small, .ops-kpis small { display: block; margin-top: 13px; color: #858893; font: 700 6px/1 "DM Sans", sans-serif; letter-spacing: .13em; }
.dash-bottom { display: grid; grid-template-columns: 1.7fr 1fr; gap: 4%; height: 45%; margin-top: 6%; }
.bar-chart { display: flex; align-items: end; gap: 5%; padding: 8%; background: #292c34; }
.bar-chart i { flex: 1; background: var(--purple); }
.bar-chart i:nth-child(1) { height: 27%; }.bar-chart i:nth-child(2) { height: 48%; }.bar-chart i:nth-child(3) { height: 38%; }.bar-chart i:nth-child(4) { height: 68%; }.bar-chart i:nth-child(5) { height: 57%; }.bar-chart i:nth-child(6) { height: 78%; }.bar-chart i:nth-child(7) { height: 92%; }
.donut { align-self: stretch; margin: 13%; border: clamp(12px, 2vw, 28px) solid var(--purple); border-left-color: #555865; border-radius: 50%; }
.preview-operations { display: flex; padding: 4%; background: #e6e7e9; }
.ops-side { width: 24%; padding: 5%; color: #f6f6f6; background: #1d2025; font-size: 8px; }
.ops-side i { display: block; width: 70%; height: 3px; margin-top: 25px; background: #484b51; }
.ops-main { flex: 1; padding: 4%; }
.ops-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; }
.ops-kpis b { padding: 7%; background: #f7f7f6; font: 800 clamp(18px, 2.3vw, 34px)/1 "Manrope", sans-serif; }
.line-chart { height: 35%; margin-top: 5%; padding: 4%; background: #f7f7f6; }
.line-chart svg { width: 100%; height: 100%; }
.line-chart polyline { fill: none; stroke: var(--purple); stroke-width: 4; }
.ops-bars { display: flex; gap: 3%; align-items: end; height: 24%; margin-top: 5%; }
.ops-bars i { flex: 1; background: #2b2d32; }
.ops-bars i:nth-child(1) { height: 55%; }.ops-bars i:nth-child(2) { height: 75%; }.ops-bars i:nth-child(3) { height: 45%; }.ops-bars i:nth-child(4) { height: 85%; }.ops-bars i:nth-child(5) { height: 68%; }
.preview-finance { position: relative; display: grid; grid-template-columns: .7fr 1.3fr; align-items: end; padding: 6%; color: var(--white); background: #171619; }
.finance-copy { align-self: center; }
.finance-copy span { color: var(--purple); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.finance-copy strong { display: block; margin: 22px 0 6px; font: 800 clamp(36px, 6vw, 88px)/1 "Manrope", sans-serif; letter-spacing: -.06em; }
.finance-copy p { color: #85818b; font-size: 8px; letter-spacing: .15em; }
.finance-chart { display: flex; align-items: end; gap: 3%; height: 65%; border-bottom: 1px solid #514c56; }
.finance-chart i { flex: 1; background: var(--purple); opacity: .8; }
.finance-chart i:nth-child(1) { height: 22%; }.finance-chart i:nth-child(2) { height: 31%; }.finance-chart i:nth-child(3) { height: 29%; }.finance-chart i:nth-child(4) { height: 42%; }.finance-chart i:nth-child(5) { height: 38%; }.finance-chart i:nth-child(6) { height: 51%; }.finance-chart i:nth-child(7) { height: 55%; }.finance-chart i:nth-child(8) { height: 61%; }.finance-chart i:nth-child(9) { height: 57%; }.finance-chart i:nth-child(10) { height: 72%; }.finance-chart i:nth-child(11) { height: 79%; }.finance-chart i:nth-child(12) { height: 88%; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  padding: 120px 8vw;
  color: var(--white);
  background: var(--purple);
}
.contact h2 { font-size: clamp(54px, 7vw, 105px); }
.contact-intro > p:last-child { max-width: 540px; margin: 35px 0 0; line-height: 1.65; }
.contact-links { align-self: end; }
.contact-links a {
  display: grid;
  grid-template-columns: .6fr 1.5fr auto;
  gap: 20px;
  align-items: center;
  padding: 25px 0;
  border-top: 1px solid rgba(20,19,22,.35);
}
.contact-links a:last-child { border-bottom: 1px solid rgba(20,19,22,.35); }
.contact-links span { color: rgba(20,19,22,.65); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.contact-links strong { font-size: 14px; }
.contact-links b { transition: transform .2s; }
.contact-links a:hover b { transform: translate(4px, -4px); }
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 8vw;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
}
.legal-nav { display: flex; align-items: center; gap: 22px; }
.legal-nav a { color: #aaa5ae; transition: color .2s; }
.legal-nav a:hover { color: var(--white); }

.legal-page { min-height: 100vh; padding: 145px max(20px, 14vw) 100px; background: var(--paper); }
.legal-page .legal-back { display: inline-block; margin-bottom: 55px; font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--ink); }
.legal-page h1 { max-width: 900px; margin-bottom: 55px; font-size: clamp(48px, 8vw, 105px); }
.legal-content { max-width: 780px; }
.legal-content h2 { margin: 45px 0 14px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.04em; }
.legal-content h3 { margin: 28px 0 10px; font: 700 17px/1.3 "Manrope", sans-serif; }
.legal-content p, .legal-content li { color: #47434b; font-size: 14px; line-height: 1.75; }
.legal-content ul { padding-left: 20px; }
.legal-content a { border-bottom: 1px solid var(--ink); }
.required-field { padding: 18px 20px; background: var(--purple-light); border-left: 3px solid var(--purple); }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; height: 70px; padding: 0 20px; }
  .logo-text { display: none; }
  .menu-toggle {
    display: grid;
    gap: 6px;
    margin-right: 22px;
    padding: 10px;
    background: none;
    border: 0;
  }
  .menu-toggle span { display: block; width: 22px; height: 1px; background: var(--white); transition: transform .2s; }
  .menu-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 35px 20px;
    background: var(--ink);
  }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 130px 20px 100px; }
  .hero-visual { margin-top: 30px; }
  .portrait-frame { width: 82%; }
  .metric-one { right: 0; }
  .metric-two { left: 0; }
  .scroll-hint { display: none; }
  .about-strip, .portfolio, .contact { padding: 80px 20px; }
  .services, .project-grid, .contact { grid-template-columns: 1fr; }
  .services { gap: 35px; }
  .section-heading { grid-template-columns: 1fr; }
  .project-wide { grid-column: auto; }
  .project-preview { height: 65vw; min-height: 280px; }
  .preview-finance { grid-template-columns: 1fr; }
  .finance-copy { align-self: auto; }
  .finance-chart { height: 120px; }
  .contact-links { margin-top: 30px; }
}

@media (max-width: 520px) {
  h1 { font-size: 48px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .metric-card { width: 105px; }
  .metric-card strong { font-size: 24px; }
  .contact-links a { grid-template-columns: 1fr auto; }
  .contact-links strong { grid-column: 1 / -1; grid-row: 2; }
  footer, .legal-nav { align-items: flex-start; flex-direction: column; gap: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
