/* ============================================================
    ACIANO AIR Conditioning — homepage v2
    Vibrant light palette + heavy motion layer
    ============================================================ */

html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01","cv11"; overflow-x: hidden; }

/* ---------- scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #2563ff, #ff5a36 60%, #22c79a);
  z-index: 60; transition: width .12s linear;
  box-shadow: 0 0 18px rgba(37,99,255,.4);
}

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: #5b6478;
  margin-bottom: 1.25rem;
}
.eyebrow.justify-center { justify-content: center; }
.section-title {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.018em;
  color: #0a0f1f;
}

.grad-text {
  background: linear-gradient(95deg, #2563ff 0%, #ff5a36 50%, #22c79a 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 7s ease-in-out infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ---------- HERO airflow + animated mesh ---------- */
.airflow {
  background:
    radial-gradient(1100px 520px at 18% 0%, rgba(37,99,255,0.12), transparent 60%),
    radial-gradient(900px 420px at 95% 30%, rgba(255,90,54,0.10), transparent 60%),
    linear-gradient(180deg, rgba(246,247,251,0) 60%, rgba(232,238,252,0.8) 100%);
}
.airflow::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10,15,31,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 70%);
  opacity: .55;
}

.mesh { overflow: hidden; }
.mesh .blob {
  position: absolute; display: block;
  border-radius: 50%; filter: blur(80px);
  mix-blend-mode: multiply; opacity: .55;
  will-change: transform;
}
.mesh .b1 { width: 520px; height: 520px; left: -120px; top: -100px; background: #2563ff; animation: drift1 18s ease-in-out infinite; }
.mesh .b2 { width: 460px; height: 460px; right: -120px; top: 60px;  background: #ff5a36; animation: drift2 22s ease-in-out infinite; }
.mesh .b3 { width: 420px; height: 420px; left: 30%;     bottom: -120px; background: #22c79a; animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,40px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,80px) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-60px) scale(.95); } }

.floaters .f {
  position: absolute; display: block;
  border: 1.5px solid rgba(10,15,31,.18);
  border-radius: 50%;
  animation: floatY 9s ease-in-out infinite;
}
.floaters .f1 { width: 14px; height: 14px; top: 22%; left: 8%; animation-delay: 0s; border-color: #2563ff; }
.floaters .f2 { width: 8px;  height: 8px;  top: 70%; left: 14%; animation-delay: -3s; background: #ff5a36; border-color: #ff5a36; }
.floaters .f3 { width: 22px; height: 22px; top: 14%; right: 10%; animation-delay: -5s; border-color: #22c79a; border-radius: 4px; transform: rotate(20deg); }
@keyframes floatY {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-22px) rotate(8deg); }
}

/* ---------- HEADLINE word-by-word reveal ---------- */
.reveal .line { display: block; overflow: hidden; padding-bottom: .04em; }
.reveal .w {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wRise .9s cubic-bezier(.2,.8,.2,1) forwards;
  margin-right: .12em;
}
.reveal .line:nth-child(1) .w { animation-delay: .12s; }
.reveal .line:nth-child(2) .w:nth-child(1) { animation-delay: .26s; }
.reveal .line:nth-child(2) .w:nth-child(2) { animation-delay: .32s; }
.reveal .line:nth-child(3) .w { animation-delay: .46s; }
@keyframes wRise {
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- KPI strip ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .num {
  font-family: 'Sora', sans-serif; font-weight: 300;
  font-size: clamp(30px, 3vw, 42px); line-height: 1;
  letter-spacing: -.02em; color: #0a0f1f;
}
.kpi .lbl { font-size: 12px; color: #5b6478; letter-spacing: .04em; }

/* ---------- Image placeholders ---------- */
.ph-stripe {
  background-color: #e8eefc;
  background-image: repeating-linear-gradient(135deg, rgba(37,99,255,.08) 0 8px, transparent 8px 18px);
  position: relative;
}
.ph-stripe.alt {
  background-color: #fff1e8;
  background-image: repeating-linear-gradient(135deg, rgba(255,90,54,.10) 0 8px, transparent 8px 18px);
}
.ph-stripe.ph-mint {
  background-color: #e6f7f0;
  background-image: repeating-linear-gradient(135deg, rgba(34,199,154,.12) 0 8px, transparent 8px 18px);
}

/* ---------- BUTTONS ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, #2563ff, #ff5a36);
  transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary .arrow { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost { position: relative; }
.btn-ghost:hover { background: #fff; border-color: #0a0f1f; }

.magnetic { will-change: transform; }

/* ---------- BRAND MARQUEE ---------- */
.marquee { mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.marquee .track {
  animation: scroll 38s linear infinite;
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 22px; letter-spacing: .04em; color: #1a2436;
}
.marquee:hover .track { animation-play-state: paused; }
.marquee .brand-text { padding-inline: .25rem; transition: color .25s ease; }
.marquee .brand-text:hover { color: #2563ff; }
.marquee .dot { width: 6px; height: 6px; border-radius: 999px; background: #ff5a36; flex: none; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- SERVICES grid ---------- */
.svc {
  background: #f6f7fb; padding: 2rem 1.75rem 2rem;
  display: flex; flex-direction: column; gap: .75rem;
  position: relative; overflow: hidden;
  transition: background .35s ease;
}
.svc::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #2563ff, #ff5a36);
  transition: width .55s cubic-bezier(.2,.8,.2,1);
}
.svc:hover { background: #ffffff; }
.svc:hover::after { width: 100%; }
.svc .num {
  font-family: 'Sora', sans-serif; font-weight: 300;
  font-size: 14px; color: #2563ff; letter-spacing: .15em;
  margin-bottom: .25rem;
}
.svc h3 {
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 22px; letter-spacing: -.01em; color: #0a0f1f; line-height: 1.15;
  transition: transform .3s ease;
}
.svc:hover h3 { transform: translateX(4px); }
.svc p { color: #1a2436; opacity: .8; font-size: 14.5px; line-height: 1.55; }
.svc ul { list-style: none; padding: 0; margin-top: .5rem; display: flex; flex-direction: column; gap: 6px; }
.svc ul li {
  font-size: 13px; color: #1a2436; opacity: .75;
  padding-left: 1rem; position: relative;
}
.svc ul li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 1px; background: #ff5a36;
  transition: width .25s ease;
}
.svc:hover ul li::before { width: 14px; }

/* ---------- PROJECTS — tilt + zoom ---------- */
.proj {
  background: #f6f7fb; border: 1px solid #e2e3e9;
  border-radius: 16px; overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .35s;
  transform-style: preserve-3d;
}
.proj:hover {
  transform: translateY(-6px);
  border-color: #c8cbd5;
  box-shadow: 0 1px 0 rgba(10,15,31,.04), 0 36px 60px -28px rgba(37,99,255,.30);
}
.proj.tilt:hover { /* JS adds rotateX/rotateY via CSS vars */
  transform: translateY(-6px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
}
.proj .ph {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  transition: background-size .8s ease;
}
.ph-zoom { background-size: 18px 18px !important; }
.proj:hover .ph-zoom { background-size: 26px 26px !important; }
.proj .ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,255,0) 60%, rgba(37,99,255,.18));
  opacity: 0; transition: opacity .45s ease;
}
.proj:hover .ph::after { opacity: 1; }

.ph-label {
  position: absolute; inset: auto 0 0 0; padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px; letter-spacing: .04em;
  color: rgba(10,15,31,.55);
}

/* stock-image fill */
.img-fill {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}
.proj:hover .img-fill { transform: scale(1.06); }
.brand-card:hover .img-fill { transform: scale(1.04); }
.img-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,31,0) 55%, rgba(10,15,31,.35) 100%);
  pointer-events: none;
}
.brand-vis .img-fill { filter: saturate(1.05); }
.proj .meta { padding: 1.25rem 1.4rem 1.5rem; }
.proj .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #2563ff;
  margin-bottom: .55rem;
}
.proj h3 {
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 19px; letter-spacing: -.01em; color: #0a0f1f; line-height: 1.2;
}
.proj p { margin-top: .4rem; color: #1a2436; opacity: .75; font-size: 13.5px; line-height: 1.55; }
.proj .row {
  margin-top: .9rem; display: flex; gap: .55rem; align-items: center;
  font-size: 12px; color: #5b6478; letter-spacing: .03em;
}
.proj .row span:nth-child(even) { opacity: .5; }

/* ---------- BRAND CARDS ---------- */
.brand-card {
  display: grid; grid-template-columns: 5fr 6fr;
  background: #f6f7fb; border: 1px solid #e2e3e9;
  border-radius: 20px; overflow: hidden; min-height: 320px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 60px -28px rgba(10,15,31,.25);
}
@media (max-width: 720px) { .brand-card { grid-template-columns: 1fr; } }
.brand-vis { position: relative; min-height: 260px; overflow: hidden; }
.brand-vis::before {
  content: "";
  position: absolute; inset: -10%;
  background-image: repeating-linear-gradient(135deg, rgba(10,15,31,.04) 0 8px, transparent 8px 18px);
  animation: stripeMove 14s linear infinite;
}
@keyframes stripeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-72px); }
}
.brand-vis-1 {
  background:
    radial-gradient(420px 280px at 30% 30%, rgba(37,99,255,.35), transparent 70%),
    radial-gradient(380px 240px at 80% 80%, rgba(34,199,154,.25), transparent 70%),
    #e8eefc;
}
.brand-vis-2 {
  background:
    radial-gradient(420px 280px at 70% 30%, rgba(255,90,54,.35), transparent 70%),
    radial-gradient(380px 240px at 20% 80%, rgba(37,99,255,.20), transparent 70%),
    #fff1e8;
}
.brand-body { padding: 2rem 2rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.brand-title { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.brand-body p { color: #1a2436; opacity: .8; font-size: 14.5px; line-height: 1.6; max-width: 42ch; }
.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #2563ff;
  padding: 5px 10px; border: 1px solid #2563ff; border-radius: 999px;
}
.brand-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 14px; font-weight: 600; color: #0a0f1f;
  position: relative; padding-bottom: 4px; width: fit-content;
}
.brand-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: #0a0f1f; transform-origin: right; transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.brand-link:hover { color: #2563ff; }
.brand-link:hover::after { background: #2563ff; transform: scaleX(0); transform-origin: left; animation: underline .9s .15s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes underline { 0% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- WHY US (dark) — spotlight + line draw ---------- */
.spotlight-layer {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(280px 280px at var(--mx, 50%) var(--my, 50%), rgba(37,99,255,.18), transparent 70%);
  mix-blend-mode: screen; transition: background .15s linear;
}
[data-spot]:not([data-spot-dark]) .spotlight-layer {
  background: radial-gradient(360px 360px at var(--mx, 50%) var(--my, 50%), rgba(37,99,255,.06), transparent 70%);
}
.why { background: #0a0f1f; padding: 1.75rem; min-height: 180px; display: flex; flex-direction: column; gap: .55rem; transition: background .35s ease; }
.why:hover { background: #131b30; }
.why .ic { width: 36px; height: 36px; color: #ff5a36; }
.why .ic svg { width: 28px; height: 28px; }
.why .ic .draw path, .why .ic .draw circle {
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: draw 1.6s ease forwards;
}
.why:nth-child(2) .ic .draw path { animation-delay: .15s; }
.why:nth-child(3) .ic .draw path, .why:nth-child(3) .ic .draw circle { animation-delay: .3s; }
.why:nth-child(4) .ic .draw path { animation-delay: .45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.why h4 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; color: #f6f7fb; }
.why p { font-size: 13.5px; line-height: 1.55; color: rgba(246,247,251,.65); max-width: 40ch; }

/* ---------- CLIENT LOGOS ---------- */
.logo-cell {
  background: #f6f7fb; aspect-ratio: 16 / 7;
  display: grid; place-items: center;
  transition: background .25s ease;
  position: relative; overflow: hidden;
}
.logo-cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(37,99,255,.0), rgba(37,99,255,.08), rgba(255,90,54,.08), rgba(37,99,255,.0));
  transform: translateX(-110%); transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.logo-cell:hover { background: #fff; }
.logo-cell:hover::before { transform: translateX(110%); }
.logo-cell span {
  font-family: 'Sora', sans-serif; font-weight: 700;
  letter-spacing: .12em; font-size: 13px; color: #1a2436; opacity: .55;
  transition: color .25s ease, opacity .25s ease;
  position: relative;
}
.logo-cell:hover span { color: #2563ff; opacity: 1; }

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative; background: #0a0f1f; color: #f6f7fb;
  border-radius: 28px; overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(37,99,255,.55), transparent 60%),
    radial-gradient(600px 260px at 100% 100%, rgba(255,90,54,.45), transparent 60%),
    radial-gradient(500px 220px at 60% 30%, rgba(34,199,154,.20), transparent 60%);
  pointer-events: none;
  animation: pulse 9s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: .9; transform: scale(1); }
  50%     { opacity: 1;  transform: scale(1.04); }
}
.cta-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.cta-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: rgba(246,247,251,.6); letter-spacing: .04em; }
.cta-form input, .cta-form select, .cta-form textarea {
  background: rgba(246,247,251,.06);
  border: 1px solid rgba(246,247,251,.15);
  border-radius: 10px; padding: 12px 14px;
  color: #f6f7fb; font-family: inherit; font-size: 14px;
  outline: none; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(246,247,251,.35); }
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  border-color: #ff5a36; background: rgba(246,247,251,.10);
}
.cta-form select option { color: #0a0f1f; }
.cta-form button { background: #ff5a36 !important; }
.cta-form button:hover { background: #e63d18 !important; }

/* ---------- FOOTER ---------- */
.ft-h {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(246,247,251,.55); font-weight: 700; margin-bottom: .9rem;
}
.ft-list { display: flex; flex-direction: column; gap: .5rem; }
.ft-list a { color: rgba(246,247,251,.8); position: relative; transition: color .2s ease, padding-left .25s ease; }
.ft-list a:hover { color: #ff5a36; padding-left: 8px; }
.ft-list a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 1px; background: #ff5a36; transition: width .25s ease;
}
.ft-list a:hover::before { width: 5px; }

.soc {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(246,247,251,.18);
  border-radius: 999px; color: rgba(246,247,251,.75);
  transition: all .25s ease;
}
.soc:hover { background: #ff5a36; border-color: #ff5a36; color: #0a0f1f; transform: translateY(-2px); }

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal .w { transform: none; opacity: 1; }
}
