/* =====================================================================
   Om Enterprise — PREMIUM UI LAYER
   3D depth · scroll choreography · hover micro-interactions · entrance
   ---------------------------------------------------------------------
   COLOR SYSTEM
     Brand primary   #3783F0   (blue)      → CTAs, links, accents
     Brand secondary #6963EC   (indigo)    → gradient partner
     Ink / wordmark  #2B2C58 / #162235     → headings & logo
     Warm accents (from the logo emblem, used sparingly):
       Gold  #BD8A30 · Crimson #9E2A25 · Mauve #B06D88 · Burgundy #4D1F2B
     Neutrals  bg #FFFFFF · secondary #EFF6FF · muted #F0F6FD
               border #E0E5ED · muted-text #404E63
     Signature gradient  135deg  #3783F0 → #6963EC
   TYPE SYSTEM
     Display / headings  Manrope 800
     Brand wordmark      Playfair Display 800 (serif)
     Body                Inter 400–600
   ===================================================================== */

:root {
  --gold:    #bd8a30;
  --crimson: #9e2a25;
  --mauve:   #b06d88;
  --burgundy:#4d1f2b;
  --ink:     #2b2c58;
  --ease-premium: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------------------
   1. ENTRANCE — branded preloader
   ------------------------------------------------------------------- */
body.is-loading { overflow: hidden; }
#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 60% at 50% 35%, #ffffff 0%, #eef3fc 55%, #e7eefb 100%);
  transition: opacity .9s var(--ease-premium), visibility .9s;
}
body.loaded #preloader { opacity: 0; visibility: hidden; }
.pre-logo { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.pre-emblem {
  width: 92px; height: 95px;
  object-fit: contain;
  animation: preFloat 2.2s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(43,44,88,.25));
}
.pre-word {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800; font-size: 1.55rem; letter-spacing: .22em;
  color: var(--ink);
  opacity: 0; transform: translateY(10px);
  animation: preWord .9s var(--ease-premium) .35s forwards;
}
.pre-bar {
  width: 170px; height: 4px; border-radius: 999px;
  background: #dfe6f3; overflow: hidden; position: relative;
}
.pre-bar span {
  position: absolute; inset: 0; width: 40%; border-radius: 999px;
  background: var(--grad-h);
  animation: preLoad 1.25s ease-in-out infinite;
}
@keyframes preFloat { 50% { transform: translateY(-10px) scale(1.03); } }
@keyframes preWord  { to { opacity: 1; transform: none; } }
@keyframes preLoad  { 0% { left: -45%; } 100% { left: 105%; } }

/* ---------------------------------------------------------------------
   2. Scroll progress bar
   ------------------------------------------------------------------- */
#scrollProgress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  z-index: 200;
  background: linear-gradient(90deg, #3783f0, #6963ec, #bd8a30);
  box-shadow: 0 0 14px rgba(55,131,240,.6);
  transition: width .12s linear;
}

/* ---------------------------------------------------------------------
   3. Cursor glow (fine-pointer devices only)
   ------------------------------------------------------------------- */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(55,131,240,.45);
  pointer-events: none; z-index: 300;
  will-change: transform;
  transition: width .25s var(--ease-premium), height .25s var(--ease-premium),
              background .25s, border-color .25s;
}
.cursor-glow.active {
  width: 58px; height: 58px;
  background: rgba(55,131,240,.07);
  border-color: rgba(105,99,236,.55);
}
@media (pointer: coarse) { .cursor-glow { display: none !important; } }

/* ---------------------------------------------------------------------
   4. Living aurora background
   ------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed; inset: -10%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 38% at 15% 8%,  rgba(55,131,240,.16) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(34% 34% at 90% 12%, rgba(105,99,236,.16) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(36% 36% at 80% 85%, rgba(189,138,48,.10) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(45% 40% at 50% 105%, rgba(226,239,255,.8) 0%, rgba(255,255,255,0) 60%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(1.5%, -1.5%, 0) scale(1.06); }
  100% { transform: translate3d(-1.5%, 1%, 0) scale(1.1); }
}

/* ---------------------------------------------------------------------
   5. Shimmering gradient text
   ------------------------------------------------------------------- */
.grad-text {
  background: linear-gradient(110deg, #3783f0 0%, #6963ec 35%, #8d7bff 50%, #6963ec 65%, #3783f0 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* ---------------------------------------------------------------------
   6. Scroll reveal — staggered, with depth
   ------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(46px) scale(.985);
  transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   7. 3D tilt + glare
   ------------------------------------------------------------------- */
.tilt {
  transition: transform .25s var(--ease-premium), box-shadow .25s var(--ease-premium);
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-glare {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%),
              rgba(255,255,255,.5), rgba(255,255,255,0) 45%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none; z-index: 3;
}
.tilt:hover .tilt-glare { opacity: .9; }
.card, .feature, .founder-media { position: relative; overflow: hidden; }
/* keep the founder badge above the glare */
.founder-media .founder-badge { z-index: 4; }

/* ---------------------------------------------------------------------
   8. Buttons — shine sweep + glow
   ------------------------------------------------------------------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: "";
  position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-22deg);
  transition: left .65s var(--ease-premium);
  z-index: 2;
}
.btn:hover::after { left: 150%; }
.btn-primary:hover { box-shadow: 0 18px 45px -12px rgba(83,112,233,.65); }

/* ---------------------------------------------------------------------
   9. Nav link underline
   ------------------------------------------------------------------- */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute; left: .85rem; right: .85rem; bottom: .35rem;
  height: 2px; border-radius: 2px;
  background: var(--grad-h);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-premium);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------
   10. Icon micro-interactions
   ------------------------------------------------------------------- */
.card-icon, .feature-icon, .ci-icon, .mission-icon { transition: transform .45s var(--ease-premium), box-shadow .45s ease; }
.card:hover .card-icon   { transform: rotate(-6deg) scale(1.1); box-shadow: 0 16px 30px -10px rgba(55,131,240,.6); }
.feature:hover .feature-icon { transform: translateY(-4px) scale(1.12); }
.contact-item:hover .ci-icon { transform: scale(1.12) rotate(-4deg); }
.card:hover h3 { color: var(--primary); transition: color .3s ease; }

/* ---------------------------------------------------------------------
   11. Idle float on floating elements
   ------------------------------------------------------------------- */
.float-card { animation: floatY 4.5s ease-in-out infinite; }
.float-card.br { animation-delay: -2.2s; }
@keyframes floatY { 50% { transform: translateY(-12px); } }

.mission-icon { animation: floatY 5s ease-in-out infinite; }

/* ---------------------------------------------------------------------
   12. Premium card surfaces
   ------------------------------------------------------------------- */
.card, .feature, .stats-card, .mission-card, .quote-form, .contact-item, .info-box {
  transition: transform .3s var(--ease-premium), box-shadow .35s var(--ease-premium),
              border-color .3s ease, background .3s ease;
}
.card:hover, .feature:hover { border-color: rgba(55,131,240,.35); }

/* Animated gradient ring on the quote form.
   Masked down to a border rim: scroll3d's will-change puts a stacking
   context on .quote-form, so a z-index:-1 fill would paint OVER the white
   card background and flood the form with gradient. The mask keeps only
   the ring; the spin animates the gradient angle (not the element) so the
   rounded-rect rim never rotates out of alignment. */
@property --ring-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.quote-form { position: relative; }
.quote-form::before {
  content: "";
  position: absolute; inset: -2px;
  z-index: -1; border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(from var(--ring-a, 0deg), #3783f0, #6963ec, #bd8a30, #9e2a25, #3783f0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s ease;
  animation: spinRing 8s linear infinite;
}
.quote-form:hover::before,
.quote-form:focus-within::before { opacity: .8; }
@keyframes spinRing { to { --ring-a: 1turn; } }

/* ---------------------------------------------------------------------
   13. Hero scroll cue
   ------------------------------------------------------------------- */
.hero { position: relative; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  display: grid; place-items: center; gap: .4rem;
  color: var(--muted-foreground);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  opacity: .8;
}
.scroll-cue .mouse {
  width: 22px; height: 36px; border: 2px solid var(--muted-foreground);
  border-radius: 12px; position: relative;
}
.scroll-cue .mouse::before {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--primary); transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0%{opacity:0; top:7px;} 30%{opacity:1;} 60%{opacity:1; top:16px;} 100%{opacity:0; top:16px;} }

/* ---------------------------------------------------------------------
   14. Section heading shimmer accent (eyebrow)
   ------------------------------------------------------------------- */
.eyebrow { position: relative; }

/* ---------------------------------------------------------------------
   15. Animated section backgrounds — drifting colour orbs + washes
   ------------------------------------------------------------------- */
section { position: relative; }
section > .container { position: relative; z-index: 1; }

.decor { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  transform: translate3d(0, 0, 0); will-change: transform;
  filter: saturate(1.18);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .74; } 50% { opacity: 1; } }

/* Per-section colour washes (sit behind the orbs & content) */
#about {
  background: radial-gradient(115% 60% at 100% 18%, rgba(234,237,255,.5) 0%, rgba(255,255,255,0) 60%);
}
#services {
  background:
    radial-gradient(130% 60% at 50% 0%, rgba(239,246,255,.72) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(rgba(55,131,240,.05) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}
#why {
  background:
    radial-gradient(130% 60% at 50% 100%, rgba(234,237,255,.66) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(rgba(105,99,236,.05) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}
#founder {
  background: radial-gradient(115% 60% at 0% 28%, rgba(239,246,255,.55) 0%, rgba(255,255,255,0) 60%);
}
#clients {
  background:
    radial-gradient(130% 60% at 50% 0%, rgba(239,246,255,.72) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(rgba(189,138,48,.045) 1px, transparent 1px);
  background-size: auto, 26px 26px;
}
#contact {
  background: radial-gradient(120% 80% at 50% 50%, rgba(239,246,255,.78) 0%, rgba(255,255,255,0) 75%);
}

/* ---------------------------------------------------------------------
   16. Mission & Vision — "thrown-open" entrance + premium hover
   ---------------------------------------------------------------------
   scroll3d.js owns these cards' `transform` (inline, every frame), so all
   motion here rides the independent translate / scale / rotate properties,
   which compose with that transform instead of fighting over it.
   Mission keeps the cool brand blue; Vision answers in the warm gold.
   ------------------------------------------------------------------- */
.mv-grid .mission-card {
  position: relative;
  overflow: hidden;
  translate: var(--mv-from, 0 0);
  transition:
    translate 1.05s var(--ease-premium),
    opacity .9s var(--ease-premium),
    filter .9s var(--ease-premium),
    scale .4s var(--ease-premium),
    box-shadow .45s var(--ease-premium),
    border-color .35s ease,
    background .35s ease;
  transition-delay:
    var(--reveal-delay, 0s), var(--reveal-delay, 0s), var(--reveal-delay, 0s),
    0s, 0s, 0s, 0s;
}
.mv-grid .mission-card:first-child { --mv-from: -1.5rem 0; }
.mv-grid .mission-card:last-child  { --mv-from: 1.5rem 0; }
/* stacked single-column layout (<880px, mirrors style.css .mv-grid):
   a horizontal throw would carry the full-width cards past the viewport
   edge and they'd enter visibly chopped — rise from below instead */
@media (max-width: 879px) {
  .mv-grid .mission-card:first-child,
  .mv-grid .mission-card:last-child { --mv-from: 0 2.5rem; }
}
.mv-grid .mission-card.in { translate: none; }

/* inner cascade — icon pops, then eyebrow and copy rise beneath the
   masked h3 word-reveal handled by present.js */
.mv-grid .mission-card .mission-icon {
  opacity: 0;
  scale: .55;
  transition:
    opacity .7s var(--ease-premium),
    scale .7s var(--ease-premium),
    box-shadow .45s ease;
  transition-delay: calc(var(--reveal-delay, 0s) + .15s), calc(var(--reveal-delay, 0s) + .15s), 0s;
}
.mv-grid .mission-card.in .mission-icon { opacity: 1; scale: 1; }
.mv-grid .mission-card .eyebrow,
.mv-grid .mission-card p {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .75s var(--ease-premium), translate .75s var(--ease-premium);
}
.mv-grid .mission-card .eyebrow { transition-delay: calc(var(--reveal-delay, 0s) + .28s); }
.mv-grid .mission-card p        { transition-delay: calc(var(--reveal-delay, 0s) + .42s); }
.mv-grid .mission-card.in .eyebrow,
.mv-grid .mission-card.in p { opacity: 1; translate: none; }

/* hover — lift, tinted ring, deeper shadow */
.mv-grid .mission-card:hover {
  scale: 1.02;
  background: rgba(255,255,255,.92);
  border-color: rgba(55,131,240,.4);
  box-shadow: 0 26px 60px -18px rgba(43,44,88,.28), 0 0 0 1px rgba(55,131,240,.08);
}
.mv-grid .mission-card:last-child:hover {
  border-color: rgba(189,138,48,.45);
  box-shadow: 0 26px 60px -18px rgba(77,31,43,.26), 0 0 0 1px rgba(189,138,48,.1);
}

/* icon answers the cursor — floatY animates the box's transform, so the
   hover pop lives on the svg inside it */
.mission-icon svg { transition: rotate .45s var(--ease-premium), scale .45s var(--ease-premium); }
.mv-grid .mission-card:hover .mission-icon svg { rotate: -8deg; scale: 1.14; }
.mv-grid .mission-card:hover .mission-icon {
  box-shadow: 0 16px 30px -10px rgba(55,131,240,.6);
}
.mv-grid .mission-card:last-child:hover .mission-icon {
  box-shadow: 0 16px 30px -10px rgba(189,138,48,.55);
}

/* heading warms toward each card's accent */
.mv-grid .mission-card h3 { transition: color .35s ease; }
.mv-grid .mission-card:hover h3 { color: var(--primary); }
.mv-grid .mission-card:last-child:hover h3 { color: var(--gold); }

/* eyebrow pill wakes up — its dash stretches and the tint deepens.
   Restates the entrance transition with the hover props appended, so the
   .28s entrance delay never drags on the hover response. */
.mv-grid .mission-card .eyebrow {
  transition:
    opacity .75s var(--ease-premium),
    translate .75s var(--ease-premium),
    background .35s ease,
    border-color .35s ease,
    color .35s ease;
  transition-delay:
    calc(var(--reveal-delay, 0s) + .28s), calc(var(--reveal-delay, 0s) + .28s),
    0s, 0s, 0s;
}
.mv-grid .mission-card .eyebrow::before { transition: width .45s var(--ease-premium), background .35s ease; }
.mv-grid .mission-card:hover .eyebrow::before { width: 2.1rem; }
.mv-grid .mission-card:hover .eyebrow {
  background: linear-gradient(135deg, rgba(55,131,240,.18), rgba(105,99,236,.18));
  border-color: rgba(55,131,240,.4);
}
.mv-grid .mission-card:last-child:hover .eyebrow {
  background: linear-gradient(135deg, rgba(189,138,48,.16), rgba(158,42,37,.12));
  border-color: rgba(189,138,48,.45);
  color: var(--gold);
}
.mv-grid .mission-card:last-child:hover .eyebrow::before {
  background: linear-gradient(90deg, var(--gold) 0%, var(--crimson) 100%);
}

/* one-shot sheen sweep on hover-enter */
.mv-grid .mission-card::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 55%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  opacity: 0;
  pointer-events: none;
}
.mv-grid .mission-card:hover::after { animation: mvSheen .95s var(--ease-premium); }
@keyframes mvSheen {
  0%   { left: -80%; opacity: 0; }
  25%  { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}

/* ---------------------------------------------------------------------
   17. Quote form — hover micro-interactions
   ---------------------------------------------------------------------
   Fields wake up under the cursor; the focus ring stays the strongest
   state, and ok/err fields keep their green/red identity on hover.
   ------------------------------------------------------------------- */
.field:not(.ok):not(.err) input:hover:not(:focus),
.field:not(.ok):not(.err) textarea:hover:not(:focus),
.field:not(.ok):not(.err) .f-wrap select:hover:not(:focus) {
  border-color: rgba(55,131,240,.45);
  background-color: #fff;
  box-shadow: 0 6px 16px -8px rgba(55,131,240,.35);
}
.field.ok input:hover:not(:focus),
.field.ok textarea:hover:not(:focus),
.field.ok .f-wrap select:hover:not(:focus) {
  box-shadow: 0 6px 16px -8px rgba(30,175,91,.4);
}
.field.err input:hover:not(:focus),
.field.err textarea:hover:not(:focus),
.field.err .f-wrap select:hover:not(:focus) {
  box-shadow: 0 6px 16px -8px rgba(229,72,77,.4);
}

/* the whole field is the affordance — its label tints toward the brand
   (darker #2f5fe0 rather than the raw primary so it stays clearly
   readable at 12.8px bold) */
.f-label { transition: color .25s ease; }
.field:hover .f-label,
.field:focus-within .f-label { color: #2f5fe0; }

/* dropdown list — brand-styled options (Chrome/Edge honour these) */
.f-wrap select option {
  color: #1c2b44;
  background: #ffffff;
  font-family: inherit;
  font-size: .95rem;
  padding: .5rem .8rem;
}
.f-wrap select option[value=""] { color: #8492a8; }
.f-wrap select option:checked { color: #2f5fe0; font-weight: 700; background: #eff6ff; }

/* select chevron nudges down a touch on hover */
.f-wrap select { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, background-position .25s var(--ease-premium); }
.f-wrap select:hover { background-position: right 1rem top 62%; }

/* character counter brightens while writing */
.f-count { transition: color .25s ease; }
.field:hover .f-count,
.field:focus-within .f-count { color: var(--primary); }

/* ---------------------------------------------------------------------
   Reduced motion — calm only the continuous/looping motions.
   Entrance, scroll reveals, 3D tilt and hover effects stay active.
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }            /* stop aurora drift */
  .grad-text  { animation: none !important; }             /* stop text shimmer */
  .float-card, .mission-icon { animation: none !important; } /* stop idle float */
  .pre-emblem { animation: none !important; }             /* stop preloader bounce */
  .quote-form::before { animation: none !important; }     /* stop ring spin */
  .scroll-cue .mouse::before { animation: none !important; }
  .orb { animation: none !important; }                    /* stop orb breathing */
}
