:root {
  --purple: #7844c0;
  --purple-deep: #321269;
  --purple-soft: #eee7fa;
  --ink: #16111f;
  --muted: #6f6977;
  --line: #e8e4ec;
  --paper: #ffffff;
  --soft: #f8f6fb;
  --radius-lg: 30px;
  --radius-md: 20px;
  --shadow: 0 24px 70px rgba(50, 18, 105, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--purple); border-radius: 999px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232,228,236,.75);
}
.nav-wrap { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 146px; height: 34px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 11px 14px; border-radius: 999px; color: #4d4755; font-size: 14px; font-weight: 700; transition: .2s ease; }
.nav-links a:hover, .nav-links a.active { background: var(--purple-soft); color: var(--purple-deep); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 17px !important; background: var(--ink) !important; color: #fff !important; }
.nav-cta svg { width: 16px; height: 16px; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 14px; align-items: center; justify-content: center; cursor: pointer; }
.menu-button span, .menu-button span::before, .menu-button span::after { content: ""; width: 18px; height: 2px; background: var(--ink); display: block; position: relative; border-radius: 99px; }
.menu-button span::before { position: absolute; top: -6px; }
.menu-button span::after { position: absolute; top: 6px; }

.hero {
  position: relative; overflow: hidden; padding: 92px 0 74px;
  background:
    radial-gradient(circle at 84% 18%, rgba(120,68,192,.16), transparent 28%),
    radial-gradient(circle at 8% 85%, rgba(50,18,105,.10), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fcfbfe 100%);
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(120,68,192,.14); border-radius: 50%; right: -210px; top: -150px;
  box-shadow: 0 0 0 65px rgba(120,68,192,.025), 0 0 0 130px rgba(120,68,192,.018);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 68px; }
.hero h1 { margin: 18px 0 22px; max-width: 820px; font-size: clamp(48px, 6.1vw, 88px); line-height: .98; letter-spacing: -.062em; font-weight: 800; }
.hero h1 .gradient { background: linear-gradient(100deg, var(--purple-deep), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 680px; margin: 0; font-size: 18px; line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 21px; border-radius: 14px; font-weight: 800; font-size: 14px; transition: .22s ease; }
.btn-primary { background: var(--purple-deep); color: #fff; box-shadow: 0 12px 30px rgba(50,18,105,.20); }
.btn-primary:hover { transform: translateY(-2px); background: #25104c; }
.btn-secondary { background: #fff; border: 1px solid var(--line); }
.btn-secondary:hover { border-color: #c9bddb; transform: translateY(-2px); }

.hero-art { position: relative; min-height: 470px; }
.hero-card-main { position: absolute; inset: 34px 28px 34px 34px; border-radius: 36px; background: linear-gradient(150deg, #2f1262 0%, #6f38b9 62%, #8d60cc 100%); box-shadow: 0 40px 90px rgba(50,18,105,.28); overflow: hidden; }
.hero-card-main::before { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -85px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.025); }
.hero-card-main::after { content: ""; position: absolute; width: 180px; height: 180px; left: -60px; bottom: -70px; background: rgba(255,255,255,.08); border-radius: 44px; transform: rotate(26deg); }
.hero-mark { position: absolute; top: 50%; left: 50%; width: 178px; transform: translate(-50%,-53%); filter: brightness(0) invert(1); opacity: .98; }
.hero-card-main.hero-card-image::before, .hero-card-main.hero-card-image::after { display: none; }
.hero-card-image { background: #321269; }
.hero-landing-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mini { position: absolute; left: 0; bottom: 0; width: 210px; padding: 19px 20px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero-mini strong { display: block; font-size: 27px; letter-spacing: -.04em; }
.hero-mini span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.hero-badge { position: absolute; right: 0; top: 0; padding: 14px 17px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 800; color: var(--purple-deep); }

.logo-strip { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.logo-strip .label { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 22px; }
.logo-marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.logo-track { display: flex; width: max-content; gap: 18px; animation: marquee 28s linear infinite; }
.logo-track:hover { animation-play-state: paused; }
.logo-pill { width: 168px; height: 76px; flex: 0 0 auto; padding: 13px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: grid; place-items: center; }
.logo-pill img { max-width: 100%; max-height: 48px; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }

.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head h2, .page-hero h1 { margin: 12px 0 0; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -.045em; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); line-height: 1.7; }

.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 292px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: #fff; overflow: hidden; transition: .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #dcd1eb; }
.service-card:nth-child(1), .service-card:nth-child(2) { grid-column: span 6; }
.service-card:nth-child(n+3) { grid-column: span 4; }
.service-no { font-size: 12px; font-weight: 900; letter-spacing: .13em; color: var(--purple); }
.service-card h3 { margin: 46px 0 12px; max-width: 360px; font-size: 27px; letter-spacing: -.035em; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.service-arrow { position: absolute; right: 24px; top: 24px; width: 43px; height: 43px; border-radius: 13px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; font-size: 20px; transition: .2s; }
.service-card:hover .service-arrow { background: var(--purple-deep); color: #fff; transform: rotate(10deg); }
.service-card::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(120,68,192,.13), transparent 70%); right: -26px; bottom: -28px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.copy h2 { margin: 14px 0 20px; font-size: clamp(38px,4vw,58px); line-height: 1.05; letter-spacing: -.045em; }
.copy p { color: var(--muted); line-height: 1.8; font-size: 16px; }
.copy .btn { margin-top: 12px; }
.visual-panel { min-height: 470px; border-radius: 34px; background: linear-gradient(145deg, #f4effb, #fff); border: 1px solid #e4daef; position: relative; overflow: hidden; }
.visual-panel::before { content: ""; position: absolute; inset: 42px; border-radius: 30px; background: linear-gradient(150deg, #301363, #7f49c6); box-shadow: 0 30px 70px rgba(50,18,105,.24); }
.visual-panel .orbit { position: absolute; inset: 90px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; z-index: 1; box-shadow: 0 0 0 40px rgba(255,255,255,.04),0 0 0 80px rgba(255,255,255,.025); }
.visual-panel .visual-logo { position: absolute; z-index: 2; width: 168px; top: 50%; left: 50%; transform: translate(-50%,-50%); filter: brightness(0) invert(1); }

.stats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #fff; }
.stat { padding: 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 36px; letter-spacing: -.045em; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.client-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.client-card { min-height: 190px; border: 1px solid var(--line); border-radius: 24px; background: #fff; display: grid; place-items: center; padding: 28px; transition: .22s ease; }
.client-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #d8cae9; }
.client-card img { width: 100%; height: 118px; object-fit: contain; }
.client-card.tall img { height: 132px; }
.client-caption { margin-top: 28px; color: var(--muted); font-size: 13px; text-align: center; }

.process-section { background: linear-gradient(180deg, #fff 0%, #fbf9fe 100%); }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.process-card { position: relative; min-height: 300px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: #fff; overflow: hidden; transition: .25s ease; }
.process-card::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -72px; bottom: -82px; background: radial-gradient(circle, rgba(120,68,192,.18), rgba(120,68,192,0) 70%); }
.process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d9cce9; }
.process-card span { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--purple-soft); color: var(--purple-deep); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.process-card h3 { margin: 62px 0 12px; font-size: 26px; letter-spacing: -.035em; }
.process-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.process-link { text-align: center; margin-top: 32px; }
.client-grid-work .client-card { min-height: 225px; padding: 24px; }
.client-grid-work .client-card img { height: 150px; }

.cta-band { padding: 0 0 96px; }
.cta-box { position: relative; overflow: hidden; padding: 58px; border-radius: 34px; background: linear-gradient(125deg, var(--purple-deep), var(--purple)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-box::after { content: ""; position: absolute; width: 360px; height: 360px; right: -130px; top: -150px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 0 0 45px rgba(255,255,255,.05),0 0 0 90px rgba(255,255,255,.03); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { margin: 0 0 10px; font-size: clamp(32px,4vw,52px); letter-spacing: -.045em; }
.cta-box p { margin: 0; color: rgba(255,255,255,.78); }
.cta-box .btn { background: #fff; color: var(--purple-deep); flex: 0 0 auto; }

.page-hero { padding: 82px 0 68px; background: radial-gradient(circle at 80% 0%, rgba(120,68,192,.13), transparent 28%), #fff; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 720px; margin: 20px 0 0; font-size: 18px; line-height: 1.7; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.value-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.value-card b { color: var(--purple); font-size: 13px; }
.value-card h3 { font-size: 24px; letter-spacing: -.03em; margin: 30px 0 10px; }
.value-card p { color: var(--muted); line-height: 1.7; margin: 0; font-size: 14px; }

.detail-stack { display: grid; gap: 18px; }
.detail-card { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 28px; align-items: start; padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.detail-index { width: 58px; height: 58px; border-radius: 18px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; font-weight: 900; }
.detail-card h2 { margin: 3px 0 10px; font-size: 28px; letter-spacing: -.035em; }
.detail-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.detail-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.detail-list li { padding-left: 20px; position: relative; color: #514b59; font-size: 14px; }
.detail-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); position: absolute; left: 0; top: .55em; }

.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: start; }
.contact-main { padding: 46px; border-radius: 30px; background: linear-gradient(150deg, #2f1262, #7a46c1); color: #fff; position: relative; overflow: hidden; }
.contact-main::after { content: ""; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); position: absolute; right: -120px; top: -120px; box-shadow: 0 0 0 45px rgba(255,255,255,.04),0 0 0 90px rgba(255,255,255,.025); }
.contact-main > * { position: relative; z-index: 1; }
.contact-main .eyebrow { color: #fff; }
.contact-main .eyebrow::before { background: rgba(255,255,255,.65); }
.contact-main h2 { font-size: clamp(38px,5vw,66px); line-height: 1; letter-spacing: -.05em; margin: 18px 0 18px; }
.email-link { display: inline-block; font-size: clamp(24px,3.2vw,42px); font-weight: 800; letter-spacing: -.035em; border-bottom: 2px solid rgba(255,255,255,.4); padding-bottom: 4px; }
.contact-main p { color: rgba(255,255,255,.74); line-height: 1.75; max-width: 620px; }
.phone-link { display: inline-flex; margin-top: 28px; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.08); font-weight: 800; }
.social-stack { display: grid; gap: 14px; }
.social-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: .2s; }
.social-card:hover { transform: translateX(5px); box-shadow: var(--shadow); border-color: #d7cae7; }
.social-card strong { display: block; font-size: 18px; }
.social-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.social-arrow { width: 42px; height: 42px; border-radius: 13px; background: var(--purple-soft); color: var(--purple-deep); display: grid; place-items: center; flex: 0 0 auto; }

.footer { padding: 50px 0 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 40px; }
.footer-brand img { width: 148px; height: 36px; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 430px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.footer-col h4 { margin: 0 0 14px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.footer-col a { display: block; padding: 6px 0; font-weight: 700; font-size: 14px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .menu-button { display: flex; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 72px; padding: 12px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .hero-grid, .split, .contact-layout { grid-template-columns: 1fr; }
  .hero-art { min-height: 430px; }
  .service-card:nth-child(n) { grid-column: span 6; }
  .client-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { align-items: start; flex-direction: column; }
  .detail-card { grid-template-columns: 70px 1fr; }
  .detail-card .detail-list { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 26px, 1180px); }
  .nav-wrap { height: 72px; }
  .brand img { width: 126px; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: 48px; }
  .hero-art { min-height: 350px; }
  .hero-card-main { inset: 24px 14px 24px 18px; border-radius: 28px; }
  .hero-mark { width: 142px; }
  .hero-mini { width: 172px; padding: 15px; }
  .hero-mini strong { font-size: 22px; }
  .hero-badge { right: 2px; font-size: 11px; }
  .section { padding: 72px 0; }
  .service-card:nth-child(n) { grid-column: 1/-1; min-height: 255px; }
  .client-grid, .values { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 250px; }
  .client-grid-work .client-card { min-height: 195px; }
  .client-grid-work .client-card img { height: 130px; }
  .client-card { min-height: 165px; }
  .client-card img { height: 104px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .cta-box { padding: 38px 28px; flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 64px 0 52px; }
  .detail-card { grid-template-columns: 1fr; padding: 25px; }
  .detail-card .detail-list { grid-column: auto; }
  .contact-main { padding: 32px 25px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}


/* Home page intro loader: index.html only */
body.home-loading { overflow: hidden; }
.home-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #fff;
  animation: homeLoaderExit 1s ease forwards;
}
.home-loader-label {
  color: var(--purple-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  animation: homeLoaderText .7s ease-in-out infinite alternate;
}
@keyframes homeLoaderText {
  from { opacity: .42; }
  to { opacity: 1; }
}
@keyframes homeLoaderExit {
  0%, 78% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .home-loader { animation-duration: .35s; }
  .home-loader-label { animation: none; }
}
