/* =========================================================
   OHM Creations: theme derived from the logo
   navy #13205f → royal #1565c0 → cyan #06bff8
   ========================================================= */
:root {
  --bg: #050816;
  --bg-2: #0a1030;
  --surface: rgba(20, 32, 95, 0.28);
  --surface-solid: #0e1640;
  --border: rgba(110, 170, 255, 0.14);
  --border-hi: rgba(6, 191, 248, 0.5);
  --navy: #13205f;
  --royal: #1565c0;
  --cyan: #06bff8;
  --cyan-2: #5ee1ff;
  --text: #eaf2ff;
  --muted: #9aaacb;
  --grad: linear-gradient(120deg, #5ee1ff 0%, #06bff8 35%, #3d7bff 70%, #7c5cff 100%);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(6, 191, 248, 0.35);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
::selection { background: var(--cyan); color: var(--bg); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 48px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-2); margin-bottom: 16px;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
  overflow: hidden;
}
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(120deg, var(--cyan), var(--royal));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(6, 191, 248, .7);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(6, 191, 248, .9); }
.btn--ghost { border-color: var(--border-hi); color: var(--text); background: rgba(6,191,248,.06); }
.btn--ghost:hover { background: rgba(6,191,248,.14); transform: translateY(-2px); }
.be { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(6,191,248,.12) 0%, transparent 60%);
  transform: translate(-50%, -50%);
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0;
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 8, 22, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 10px 0; border-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; }
.brand img { filter: drop-shadow(0 0 10px rgba(6,191,248,.55)) brightness(1.35); }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__aurora {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .9;
  background:
    radial-gradient(40% 35% at 75% 40%, rgba(6,191,248,.28), transparent 70%),
    radial-gradient(35% 40% at 20% 70%, rgba(21,101,192,.35), transparent 70%),
    radial-gradient(30% 30% at 60% 90%, rgba(124,92,255,.18), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(-4%, 3%, 0) rotate(8deg) scale(1.08); } }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 700; margin-bottom: 24px; }
.hero__word { display: block; height: 1.15em; white-space: nowrap; }
.hero__title em { font-style: normal; color: var(--cyan-2); }
#typeword { display: inline-block; min-width: 1ch; border-right: 3px solid var(--cyan); padding-right: 4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero__sub { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; color: var(--muted); background: rgba(255,255,255,.02); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 0 rgba(46,229,157,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46,229,157,0); } 100% { box-shadow: 0 0 0 0 rgba(46,229,157,0); } }

.hero__visual { position: relative; aspect-ratio: 1; width: min(100%, 500px); justify-self: center; display: grid; place-items: center; }
.hero__logo {
  position: relative; width: 62%; height: 62%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #e6f6ff 55%, #b9e6ff 100%);
  box-shadow: 0 0 0 10px rgba(6,191,248,.08), 0 0 80px 10px rgba(6,191,248,.45), inset 0 0 40px rgba(21,101,192,.25);
  animation: floaty 6s ease-in-out infinite;
}
.hero__logo img { width: 86%; height: auto; }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(94,225,255,.25); animation: spin 30s linear infinite; }
.orbit--2 { inset: 9%; border-style: solid; border-color: rgba(61,123,255,.18); animation-duration: 22s; animation-direction: reverse; }
.orbit--3 { inset: -7%; border-color: rgba(124,92,255,.15); animation-duration: 40s; }
.orbit span { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px 4px var(--cyan); }
.orbit--2 span { background: #3d7bff; box-shadow: 0 0 16px 3px #3d7bff; width: 9px; height: 9px; }
.orbit--3 span { background: #7c5cff; box-shadow: 0 0 16px 3px #7c5cff; top: auto; bottom: -5px; width: 8px; height: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; padding: 12px 16px; border-radius: 14px; background: rgba(10,16,48,.75);
  border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.2; animation: floaty 7s ease-in-out infinite;
}
.float-card strong { font-family: var(--font-head); font-size: 1.3rem; }
.float-card span { font-size: .78rem; color: var(--muted); }
.float-card--a { left: -4%; bottom: 14%; animation-delay: -2s; }
.float-card--b { right: -2%; top: 10%; animation-delay: -4s; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--border-hi); border-radius: 20px; z-index: 1; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); background: linear-gradient(90deg, rgba(19,32,95,.4), rgba(6,191,248,.08), rgba(19,32,95,.4)); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; gap: 32px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.marquee__track i { color: var(--cyan); font-style: normal; }
.marquee__track span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px rgba(234,242,255,.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(19,32,95,.25) 20%, rgba(19,32,95,.25) 80%, transparent); }
.section__head { margin-bottom: 56px; max-width: 720px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(6,191,248,.14), transparent 45%);
}
.card:hover { border-color: var(--border-hi); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { padding: 28px 24px; transform-style: preserve-3d; }
.service h3 { margin-top: 18px; }
.service p { color: var(--muted); font-size: .95rem; }
.service ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: rgba(6,191,248,.08); color: var(--cyan-2); border: 1px solid rgba(6,191,248,.15); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--royal) 60%, var(--cyan)); box-shadow: 0 10px 24px -8px rgba(6,191,248,.6);
  transition: transform .4s;
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); }
.service__icon svg, .ci svg, .socials svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor !important; stroke: none !important; }
.service--cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: linear-gradient(150deg, rgba(21,101,192,.45), rgba(6,191,248,.2)); border-color: var(--border-hi); }
.service--cta h3 { margin-top: 0; font-size: 1.4rem; }
.service--cta p { color: var(--text); opacity: .8; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  font: inherit; font-weight: 500; font-size: .92rem; cursor: pointer; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all .25s;
}
.filter:hover { color: var(--text); border-color: var(--border-hi); }
.filter.is-active { background: linear-gradient(120deg, var(--cyan), var(--royal)); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -10px rgba(6,191,248,.8); }
.gallery { columns: 4 240px; column-gap: 18px; }
.tile {
  position: relative; margin: 0 0 18px; break-inside: avoid; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); background: var(--surface-solid);
  transition: opacity .4s, transform .4s;
}
.tile img { width: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.tile figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px; font-family: var(--font-head); font-weight: 600;
  background: linear-gradient(transparent, rgba(5,8,22,.92)); transform: translateY(100%); transition: transform .4s;
}
.tile figcaption span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-2); }
.tile:hover img { transform: scale(1.06); }
.tile:hover figcaption, .tile:focus-visible figcaption { transform: translateY(0); }
.tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.tile.is-hidden { display: none; }
.tile.is-entering { animation: pop .5s both; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3,5,15,.92); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 60px 16px; animation: fade .3s; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { margin-top: 14px; font-family: var(--font-head); color: var(--muted); }
.lightbox button { position: absolute; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(6,191,248,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.process::before { content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .4; }
.step { padding: 28px 24px; }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--font-head); font-weight: 700; font-size: .9rem; background: var(--bg); border: 1px solid var(--border-hi); color: var(--cyan-2); margin-bottom: 18px; box-shadow: 0 0 20px -4px var(--cyan); }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why__list li { padding: 24px; }
.why__list h4 { font-size: 1.05rem; margin-bottom: 8px; }
.why__list h4::before { content: "✦ "; color: var(--cyan); }
.why__list p { color: var(--muted); font-size: .92rem; margin: 0; }
.why .lead { margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact::before { content: ""; position: absolute; inset: 10% 0 0; background: radial-gradient(50% 50% at 30% 50%, rgba(6,191,248,.12), transparent 70%); pointer-events: none; }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact__links { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 16px; }
.contact__links li { display: flex; align-items: center; gap: 14px; }
.contact__links a { font-weight: 500; transition: color .2s; word-break: break-word; }
.contact__links a:hover { color: var(--cyan-2); }
.ci { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(6,191,248,.1); border: 1px solid var(--border); color: #fff; }
.ci svg { width: 20px; height: 20px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: #fff; transition: all .25s; }
.socials a:hover { background: linear-gradient(120deg, var(--cyan), var(--royal)); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }

.form { padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text); padding: 13px 15px; border-radius: 12px;
  background: rgba(5,8,22,.6); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--surface-solid); }
.form input::placeholder, .form textarea::placeholder { color: #5d6b8c; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(6,191,248,.15); }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 0; min-height: 1.4em; font-size: .92rem; text-align: center; }
.form__status.ok { color: #2ee59d; }
.form__status.err { color: #ff7a8a; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 0; }
.footer .brand { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .why, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hero__visual { width: min(72vw, 340px); height: min(72vw, 340px); order: -1; }
  .hero { padding-top: 100px; }
  .scroll-hint { display: none; }
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(5,8,22,.97); backdrop-filter: blur(16px);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav__links a:not(.btn) { font-size: 1.4rem; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
}
@media (max-width: 600px) {
  .services, .process, .why__list, .form__row { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; column-gap: 12px; }
  .tile { margin-bottom: 12px; }
  .tile figcaption { transform: none; padding: 30px 10px 8px; font-size: .82rem; }
  .float-card { display: none; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
