/*
 * ArtFusion — Kinetic styles.
 * Ported from the approved Claude Design "02-Kinetic" direction.
 * Design tokens alias the theme.json color presets so there is one source of truth.
 */

:root {
  --ground: var(--wp--preset--color--ground, #f6f3ee);
  --ink: var(--wp--preset--color--ink, #16110c);
  --ink-2: var(--wp--preset--color--ink-2, #1d1812);
  --ink-soft: var(--wp--preset--color--ink-soft, #5b5247);
  --accent: var(--wp--preset--color--accent, #3b1d8f);
  --accent-2: var(--wp--preset--color--accent-2, #ff5a2c);
  --accent-bright: var(--wp--preset--color--accent-bright, #9b7bff);
  --line: rgba(22, 17, 12, .13);
  --maxw: 1320px;
}

/* Base — scoped so we don't fight core block spacing elsewhere */
body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
.af *,
.af *::before,
.af *::after { box-sizing: border-box; }
.af h1, .af h2, .af h3, .af h4, .af h5, .af p { margin: 0; }
.af a { text-decoration: none; }
/* Links inherit text colour, except buttons which set their own. */
.af a:not(.btn) { color: inherit; }

.disp { font-family: "Archivo", sans-serif; font-stretch: 125%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
.eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--accent); }

/* NAV */
header.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: .3s; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
header.nav.scrolled { background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.logo .orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2)); box-shadow: 0 0 14px rgba(59, 29, 143, .55); }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--ink-soft); transition: .2s; }
.nav-links a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; padding: 12px 22px; border-radius: 8px; transition: .25s; cursor: pointer; border: 2px solid var(--ink); }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn .arr { transition: transform .25s; font-variant-emoji: text; }
.btn:hover .arr { transform: translate(3px, -3px); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 60px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; width: 100%; }
.hero h1 { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: clamp(54px, 9vw, 138px); line-height: .86; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 .ai { position: relative; display: inline-block; color: var(--accent); }
.hero h1 em { font-style: italic; font-stretch: 75%; font-weight: 600; text-transform: none; letter-spacing: -.01em; }
.hero-sub { margin-top: 30px; font-size: 19px; color: var(--ink-soft); max-width: 42ch; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
/* fusion orb visual */
.fusion { position: relative; height: 440px; display: grid; place-items: center; }
.fusion .ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--line); }
.r1 { width: 340px; height: 340px; animation: spin 26s linear infinite; }
.r2 { width: 250px; height: 250px; animation: spin 18s linear infinite reverse; }
.r3 { width: 160px; height: 160px; animation: spin 12s linear infinite; }
.ring .sat { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.r2 .sat { background: var(--accent); }
.r3 .sat { background: var(--accent-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.core-orb { width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #a98cff, var(--accent) 46%, #23104f);
  box-shadow: 0 0 0 10px rgba(59, 29, 143, .12), 0 0 70px rgba(95, 45, 205, .5), 0 0 120px rgba(255, 90, 44, .28);
  animation: pulse 4s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.fusion .lbl { position: absolute; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--ground); padding: 3px 9px; border: 1px solid var(--line); border-radius: 100px; }
.lbl-1 { top: 8%; left: 2%; }
.lbl-2 { bottom: 14%; right: -2%; }
.lbl-3 { bottom: 2%; left: 14%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .fusion { height: 340px; order: -1; } }

/* REVEAL animations */
.reveal { transition: .9s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready .reveal { opacity: 0; transform: translateY(28px); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready .reveal { opacity: 1 !important; transform: none !important; transition: none; } }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }

/* TICKER */
.ticker { background: var(--ink); color: var(--ground); overflow: hidden; padding: 16px 0; transform: rotate(-1.4deg) scale(1.04); margin: 0 0; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; width: max-content; animation: roll 24s linear infinite; align-items: center; }
.ticker-track span { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: -.01em; display: inline-flex; gap: 40px; align-items: center; }
.ticker-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-bright); }
@keyframes roll { to { transform: translateX(-50%); } }

/* SECTIONS */
.sec { padding: 120px 0; }
.sec-tag { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-tag::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.sec h2 { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: clamp(38px, 5.5vw, 76px); line-height: .94; letter-spacing: -.03em; text-transform: uppercase; }
.sec h2 em { font-style: italic; font-stretch: 75%; font-weight: 600; text-transform: none; color: var(--accent); }

/* SERVICES cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.card { background: var(--ink); color: var(--ground); border-radius: 18px; padding: 34px 30px 30px; min-height: 380px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: .4s; cursor: default; }
.card:nth-child(2) { background: var(--accent); color: #fff; }
.card:nth-child(3) { background: var(--accent-2); }
.card:hover { transform: translateY(-8px); }
.card .cnum { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 80px; line-height: .8; opacity: .18; letter-spacing: -.04em; }
.card h3 { font-family: "Archivo", sans-serif; font-stretch: 110%; font-weight: 700; font-size: 28px; letter-spacing: -.02em; margin: auto 0 14px; text-transform: uppercase; line-height: .96; }
.card p { font-size: 15.5px; line-height: 1.55; opacity: .82; }
.card .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.card .chips span { font-size: 11.5px; letter-spacing: .05em; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 100px; }
.card .glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); right: -40px; top: -40px; transition: .4s; }
.card:hover .glow { transform: scale(1.6); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { min-height: auto; } }

/* ORCHESTRATION band */
.orch { padding: 118px 0; background: var(--ink); color: var(--ground); position: relative; overflow: hidden; }
.orch::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(95, 45, 205, .3), transparent 45%), radial-gradient(circle at 10% 90%, rgba(255, 90, 44, .16), transparent 50%); }
.orch .wrap { position: relative; }
.orch h2 { color: var(--ground); }
.orch .eyebrow { color: var(--accent-bright); }
.orch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 40px; }
.orch p { font-size: 18px; line-height: 1.6; color: rgba(246, 243, 238, .72); max-width: 44ch; }
.orch-metrics { display: flex; gap: 46px; margin-top: 36px; flex-wrap: wrap; }
.metric .n { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.02em; color: var(--accent-bright); }
.metric .l { font-size: 13px; color: rgba(246, 243, 238, .6); margin-top: 8px; letter-spacing: .03em; }
.flowbox { border: 1px solid rgba(246, 243, 238, .16); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 14px; background: rgba(246, 243, 238, .03); }
.flow { display: flex; align-items: center; gap: 16px; }
.flow .ico { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: rgba(95, 45, 205, .18); color: var(--accent-bright); border: 1px solid rgba(139, 111, 255, .34); }
.flow .t strong { display: block; font-size: 16px; font-weight: 600; color: var(--ground); }
.flow .t span { font-size: 13.5px; color: rgba(246, 243, 238, .55); }
.flow-arrow { margin-left: 22px; color: rgba(246, 243, 238, .4); font-size: 16px; height: 8px; line-height: 0; }
@media (max-width: 900px) { .orch-grid { grid-template-columns: 1fr; gap: 40px; } }

/* APPROACH steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.step { border: 2px solid var(--ink); border-radius: 16px; padding: 30px 26px; transition: .3s; }
.step:hover { background: var(--ink); color: var(--ground); transform: translateY(-6px); }
.step .sn { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 22px; color: var(--accent); }
.step h4 { font-family: "Archivo", sans-serif; font-stretch: 110%; font-weight: 700; font-size: 22px; text-transform: uppercase; margin: 16px 0 10px; letter-spacing: -.01em; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.step:hover p { color: rgba(246, 243, 238, .7); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ORIGIN */
.origin { padding: 120px 0; text-align: center; }
.origin .eyebrow { margin-bottom: 26px; display: block; }
.origin h2 { font-family: "Archivo", sans-serif; font-stretch: 115%; font-weight: 800; font-size: clamp(34px, 5vw, 68px); line-height: 1.02; letter-spacing: -.025em; max-width: 20ch; margin: 0 auto; }
.origin h2 em { font-style: italic; font-stretch: 75%; font-weight: 500; color: var(--accent); }
.arc { display: flex; justify-content: center; gap: 0; margin-top: 64px; flex-wrap: wrap; }
.arc-node { flex: 1; min-width: 150px; max-width: 230px; padding: 0 18px; position: relative; }
.arc-node::after { content: "→"; position: absolute; right: -8px; top: 6px; color: var(--accent); font-size: 20px; }
.arc-node:last-child::after { display: none; }
.arc-node .ay { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 30px; color: var(--accent); }
.arc-node strong { display: block; font-size: 16px; margin: 10px 0 6px; }
.arc-node span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .arc-node::after { display: none; } .arc-node { max-width: none; flex-basis: 46%; } }

/* CTA */
.cta { padding: 130px 0; text-align: center; position: relative; }
.cta h2 { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; font-size: clamp(52px, 11vw, 160px); line-height: .84; letter-spacing: -.04em; text-transform: uppercase; }
.cta h2 em { font-style: italic; font-stretch: 60%; font-weight: 600; color: var(--accent); text-transform: none; }
.cta p { margin: 28px auto 36px; max-width: 46ch; font-size: 18px; color: var(--ink-soft); }

/* FOOTER */
footer.af-footer { background: var(--ink); color: var(--ground); padding: 60px 0 38px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 243, 238, .5); margin-bottom: 15px; }
.foot-grid a { display: block; font-size: 15px; padding: 5px 0; opacity: .8; transition: .2s; }
.foot-grid a:hover { opacity: 1; color: var(--accent-bright); transform: translateX(3px); }
.foot-brand .logo { font-size: 26px; margin-bottom: 14px; }
.foot-brand p { font-size: 15px; color: rgba(246, 243, 238, .6); max-width: 32ch; }
.foot-bot { display: flex; justify-content: space-between; margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(246, 243, 238, .14); font-size: 13px; color: rgba(246, 243, 238, .5); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
