/* sergovashakmadze.com: deep-space black, electric cyan, IoMarkets gold */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #02030a;
  --bg-2: #060a18;
  --ink: #eef4ff;
  --ink-2: #a9b6d3;
  --ink-3: #6b7896;
  --cyan: #22e6ff;
  --cyan-2: #0aa8ff;
  --gold: #f5b942;
  --pink: #ff3dbb;
  --line: rgb(120 170 255 / .14);
  --glass: rgb(14 22 44 / .55);
  --display: "Unbounded", "Sora", system-ui, sans-serif;
  --text: "Sora", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: min(1280px, 100% - 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.65 var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgb(34 230 255 / .10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgb(245 185 66 / .07), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgb(10 168 255 / .10), transparent 60%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--cyan); color: #001; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--wrap); margin-inline: auto; position: relative; z-index: 2; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: #001; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* page-wide overlays: fine noise grid, scanlines and the cursor glow */
.fx-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.fx-scan { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .06;
  background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgb(34 230 255 / .13), rgb(245 185 66 / .05) 40%, transparent 70%);
  transform: translate3d(var(--cx, 50vw), var(--cy, 30vh), 0); transition: opacity .4s; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: 72px; display: flex; align-items: center;
  background: rgb(2 3 10 / .55); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font: 600 15px/1 var(--display); letter-spacing: .02em; }
.logo__mark { width: 34px; height: 34px; display: grid; place-items: center; position: relative; }
.logo__mark svg { width: 34px; height: 34px; }
.logo__mark::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgb(34 230 255 / .35), transparent 65%); filter: blur(6px); z-index: -1; animation: breathe 3.2s ease-in-out infinite; }
.logo b { color: var(--gold); font-weight: 600; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--cyan); background: rgb(34 230 255 / .08); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 14px/1 var(--text); letter-spacing: .01em; cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:active { transform: scale(.97); }
.btn--prime { color: #021018; background: linear-gradient(110deg, var(--cyan), #7ff3ff 45%, var(--gold)); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .2) inset, 0 10px 40px -10px rgb(34 230 255 / .7); animation: sheen 6s linear infinite; }
.btn--prime:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(255 255 255 / .3) inset, 0 16px 50px -10px rgb(34 230 255 / .9); }
.btn--ghost { color: var(--ink); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(34 230 255 / .35); }
.btn--ghost:hover { transform: translateY(-2px); background: rgb(34 230 255 / .1); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 30px -6px rgb(34 230 255 / .6); }
.btn svg { width: 16px; height: 16px; }
.nav .btn { height: 42px; padding: 0 18px; font-size: 13px; }

/* the music switch */
.sound { height: 42px; padding: 0 16px 0 12px; gap: 10px; color: var(--ink-2); background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sound:hover { color: var(--cyan); box-shadow: inset 0 0 0 1px rgb(34 230 255 / .5); }
.sound__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.sound__eq i { width: 3px; height: 5px; border-radius: 2px; background: currentColor; }
.sound__eq i:nth-child(2) { height: 10px; } .sound__eq i:nth-child(3) { height: 7px; } .sound__eq i:nth-child(4) { height: 13px; } .sound__eq i:nth-child(5) { height: 8px; }
.sound[aria-pressed="true"] { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 24px -4px rgb(34 230 255 / .7); }
.sound[aria-pressed="true"] .sound__eq i { animation: eq .8s ease-in-out infinite alternate; background: linear-gradient(var(--cyan), var(--gold)); }
.sound[aria-pressed="true"] .sound__eq i:nth-child(2) { animation-delay: -.2s; }
.sound[aria-pressed="true"] .sound__eq i:nth-child(3) { animation-delay: -.5s; }
.sound[aria-pressed="true"] .sound__eq i:nth-child(4) { animation-delay: -.1s; }
.sound[aria-pressed="true"] .sound__eq i:nth-child(5) { animation-delay: -.35s; }
.yt-mini { position: fixed; left: 16px; bottom: 16px; z-index: 45; width: 240px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgb(34 230 255 / .6), 0 0 40px -8px rgb(34 230 255 / .7), 0 20px 50px -20px #000; }
.yt-mini[hidden] { display: none; }
.yt-mini iframe { width: 100%; height: 100%; border: 0; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; }
#core { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: 0;
  background-image: linear-gradient(rgb(34 230 255 / .55) 1px, transparent 1px), linear-gradient(90deg, rgb(34 230 255 / .55) 1px, transparent 1px);
  background-size: 80px 80px; transform: perspective(500px) rotateX(72deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: floor 2.4s linear infinite; opacity: .5; }
.hero__horizon { position: absolute; left: 0; right: 0; bottom: 38%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), var(--cyan), transparent); filter: blur(1px); box-shadow: 0 0 30px 6px rgb(34 230 255 / .4); opacity: .6; }
.hero__text { position: relative; z-index: 3; max-width: 860px; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  background: rgb(34 230 255 / .07); box-shadow: inset 0 0 0 1px rgb(34 230 255 / .3); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: blink 1.6s ease-in-out infinite; }
.hero h1 { margin: 28px 0 8px; font: 700 clamp(34px, 6vw, 92px)/.98 var(--display); white-space: nowrap; letter-spacing: -.035em; }
.hero h1 .line { display: block; }
.grad { background: linear-gradient(100deg, #fff 0%, var(--cyan) 35%, #8ff6ff 55%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 8s linear infinite; }
.roles { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; font: 500 clamp(18px, 2.2vw, 26px)/1.3 var(--mono); color: var(--ink-2); min-height: 1.4em; }
.roles .pre { color: var(--gold); }
.roles .typed { color: var(--ink); }
.roles .caret { width: 12px; height: 1.1em; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: blink 1s steps(1) infinite; }
.hero p.lead { max-width: 620px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); margin: 0 0 32px; }
.hero p.lead strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 48px; }
.stat b { display: block; font: 700 clamp(30px, 3.2vw, 44px)/1 var(--display); letter-spacing: -.03em; }
.stat b span { color: var(--cyan); }
.stat small { display: block; margin-top: 8px; font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hero__hud { position: absolute; z-index: 3; right: max(24px, (100% - 1280px) / 2); bottom: 40px; font: 500 11px/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.hero__hud b { color: var(--cyan); font-weight: 500; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 24px; height: 40px; margin-left: -12px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s var(--ease) infinite; }

/* sections */
section { position: relative; padding: 140px 0; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.kicker::before { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
h2 { margin: 18px 0 20px; font: 700 clamp(34px, 5vw, 68px)/1.02 var(--display); letter-spacing: -.035em; max-width: 16ch; }
.sub { color: var(--ink-2); max-width: 640px; font-size: 18px; margin: 0; }

/* glass + animated light border */
.holo { position: relative; border-radius: 20px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); isolation: isolate; }
.holo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--angle), rgb(34 230 255 / .15), var(--cyan), rgb(245 185 66 / .9), rgb(34 230 255 / .15) 40%, rgb(34 230 255 / .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite; }
.spot { --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(34 230 255 / .16), transparent 45%); }
.spot:hover::after { opacity: 1; }

/* about: terminal + timeline */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; margin-top: 56px; }
.term { overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--ink-3); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .term__bar i:nth-child(2) { background: #febc2e; } .term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 10px; }
.term__body { padding: 24px; min-height: 380px; font: 400 14.5px/1.75 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.term__body .p { color: var(--gold); } .term__body .c { color: var(--cyan); } .term__body .w { color: var(--ink); }
.term__body .cur { display: inline-block; width: 9px; height: 1.1em; vertical-align: -3px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--cyan), var(--pink)); box-shadow: 0 0 14px rgb(34 230 255 / .5); }
.step { position: relative; padding: 22px 24px; }
.step::marker { content: none; }
.step .dot { position: absolute; left: -33px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--cyan), 0 0 18px var(--cyan); }
.step:first-child .dot { box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px var(--gold); }
.step small { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.step:first-child small { color: var(--gold); }
.step h3 { margin: 10px 0 6px; font: 600 22px/1.2 var(--display); letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ecosystem */
.marquee { margin: 56px 0 40px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); border-block: 1px solid var(--line); }
.marquee__track { display: flex; gap: 48px; width: max-content; padding: 18px 0; animation: marquee 40s linear infinite; font: 700 clamp(22px, 3vw, 38px)/1 var(--display); letter-spacing: -.02em; }
.marquee__track span { color: transparent; -webkit-text-stroke: 1px rgb(34 230 255 / .55); }
.marquee__track span:nth-child(3n) { -webkit-text-stroke: 1px rgb(245 185 66 / .7); }
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco a { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 22px; min-height: 140px; border-radius: 18px; background: rgb(10 16 34 / .6); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; position: relative; isolation: isolate; overflow: hidden; }
.eco a:hover { transform: translateY(-4px); background: rgb(14 24 50 / .8); box-shadow: inset 0 0 0 1px rgb(34 230 255 / .55), 0 20px 50px -20px rgb(34 230 255 / .55); }
.eco__ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, rgb(34 230 255 / .18), rgb(245 185 66 / .12)); box-shadow: inset 0 0 0 1px rgb(34 230 255 / .35); }
.eco__ic img { width: 20px; height: 20px; filter: invert(1) sepia(1) saturate(5) hue-rotate(150deg) brightness(1.1); }
.eco h3 { margin: 2px 0 0; font: 600 16px/1.25 var(--display); letter-spacing: -.01em; }
.eco p { margin: 0; grid-column: 2; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.eco .tld { position: absolute; right: 16px; top: 16px; font: 500 11px/1 var(--mono); color: var(--gold); letter-spacing: .06em; opacity: .85; }
.eco__more { margin-top: 24px; color: var(--ink-3); font: 500 13px/1.6 var(--mono); letter-spacing: .04em; }
.eco__more b { color: var(--cyan); font-weight: 500; }

/* manifesto */
.manifesto { padding: 180px 0; text-align: center; overflow: hidden; }
.manifesto__orb { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 0;
  background: conic-gradient(from var(--angle), rgb(34 230 255 / .0), rgb(34 230 255 / .35), rgb(245 185 66 / .3), rgb(255 61 187 / .2), rgb(34 230 255 / .0)); filter: blur(90px); opacity: .55; animation: spin 14s linear infinite; }
.manifesto .big { position: relative; z-index: 2; margin: 24px auto 28px; font: 800 clamp(46px, 9.5vw, 150px)/.92 var(--display); letter-spacing: -.045em; max-width: 12ch; }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--cyan); transform: translate(2px, 0); clip-path: inset(0 0 60% 0); mix-blend-mode: screen; animation: glitch 3.6s steps(1) infinite; opacity: .8; }
.glitch::after { color: var(--pink); transform: translate(-2px, 0); clip-path: inset(55% 0 0 0); mix-blend-mode: screen; animation: glitch 2.9s steps(1) infinite reverse; opacity: .7; }
.manifesto p { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; color: var(--ink-2); font-size: 19px; }

/* recent work */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; }
.work a { display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: transform .4s var(--ease); }
.work a:hover { transform: translateY(-6px); }
.work__viz { position: relative; height: 220px; overflow: hidden; border-radius: 20px 20px 0 0; border-bottom: 1px solid var(--line); }
.work__viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.work__url { position: absolute; left: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font: 500 12px/1 var(--mono); color: var(--ink); background: rgb(2 3 10 / .6); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.work__url::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; }
.work__label { position: absolute; left: 22px; bottom: 18px; z-index: 2; font: 700 clamp(26px, 3vw, 38px)/1 var(--display); letter-spacing: -.03em; }
.work__body { padding: 24px 26px 28px; }
.work h3 { margin: 0 0 8px; font: 600 20px/1.2 var(--display); }
.work p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.work .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.work .go svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.work a:hover .go svg { transform: translateX(4px); }

/* contact + footer */
.contact { padding: 160px 0 100px; }
.contact__box { padding: clamp(36px, 6vw, 80px); text-align: center; overflow: hidden; }
.contact__box h2 { margin-inline: auto; max-width: 18ch; }
.contact__box .sub { margin: 0 auto 36px; }
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.socials a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), color .25s, box-shadow .25s; }
.socials a:hover { transform: translateY(-3px); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 26px -4px rgb(34 230 255 / .8); }
.socials svg { width: 20px; height: 20px; }
footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--ink-3); font: 500 12px/1.6 var(--mono); letter-spacing: .06em; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer a:hover { color: var(--cyan); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; width: 100%; }
footer .wrap { justify-content: center; }
.footer__sign { width: 100%; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.footer__sign p { margin: 0; }
.footer__sign p:first-child { font: 500 14px/1.6 var(--text); letter-spacing: 0; color: var(--ink-2); margin-bottom: 4px; }
.heart { display: inline-block; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.25); } 40% { transform: scale(.95); } }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

@keyframes sheen { to { background-position: -200% 0; } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 50% { opacity: .4; transform: scale(.9); } }
@keyframes eq { from { height: 3px; } to { height: 16px; } }
@keyframes floor { to { background-position: 0 80px; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes glitch {
  0%, 86%, 100% { transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
  87% { transform: translate(4px, -2px); clip-path: inset(10% 0 55% 0); }
  90% { transform: translate(-4px, 2px); clip-path: inset(60% 0 8% 0); }
  93% { transform: translate(3px, 0); clip-path: inset(35% 0 40% 0); }
}

@media (max-width: 1100px) {
  .eco { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .work { grid-template-columns: 1fr; }
  .hero__hud { display: none; }
}
@media (max-width: 560px) {
  :root { --wrap: calc(100% - 32px); }
  .nav { height: 64px; }
  .logo__name { display: none; }
  .nav .btn--prime { padding: 0 14px; }
  .sound__label { display: none; }
  .sound { padding: 0 12px; }
  section { padding: 96px 0; }
  .hero { padding-top: 104px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat small { font-size: 10px; }
  .eco { grid-template-columns: 1fr; }
  .eco a { min-height: 0; }
  .term__body { font-size: 13px; min-height: 340px; }
  .yt-mini { width: 190px; }
  .cursor-glow { display: none; }
  #core { opacity: .42; }
  .hero p.lead { color: #c9d3ea; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}

/* logos */
.eco-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.io-logo { position: relative; display: block; width: 190px; border-radius: 18px; overflow: hidden; transform: rotate(-3deg); transition: transform .5s var(--ease);
  box-shadow: 0 0 0 1px rgb(34 230 255 / .5), 0 0 60px -6px rgb(34 230 255 / .6), 0 30px 60px -30px #000; }
.io-logo img { width: 100%; height: auto; }
.io-logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .35) 48%, transparent 62%); background-size: 250% 100%; animation: sheen 4.5s linear infinite; mix-blend-mode: overlay; }
.io-logo:hover { transform: rotate(0) scale(1.04); }
.eco__ic--logo { padding: 0; overflow: hidden; background: none; }
.eco__ic--logo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.eco__ic--white { background: #fff; }
.eco__ic--white img { object-fit: contain; padding: 3px; }
.work__logo { position: absolute; left: 22px; bottom: 16px; z-index: 2; width: min(260px, 60%); height: auto; filter: drop-shadow(0 0 14px rgb(34 230 255 / .45)); }
.term__av { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px var(--cyan); }
.contact__av { display: block; margin: 0 auto 22px; width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--cyan), 0 0 40px 4px rgb(34 230 255 / .45); }

/* photo collage: tiles that keep swapping photos with a glitch */
.collage { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; margin-top: 56px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #050914; box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 6s linear; }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgb(2 3 10 / .55)), repeating-linear-gradient(0deg, rgb(255 255 255 / .04) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 0 1px rgb(34 230 255 / .25); }
.tile .in-img { z-index: 1; animation: glitch-in .9s steps(1) forwards, settle .9s var(--ease) forwards; }
.t1 { grid-row: span 2; } .t2 { grid-column: span 2; } .t5 { grid-column: span 2; }
.collage__hud { position: absolute; right: 14px; bottom: -30px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.collage__hud b { color: var(--cyan); font-weight: 500; }
@keyframes glitch-in {
  0% { clip-path: inset(0 0 100% 0); filter: hue-rotate(90deg) saturate(3); transform: translateX(-8px); }
  15% { clip-path: inset(0 0 70% 0); transform: translateX(6px); }
  30% { clip-path: inset(20% 0 35% 0); filter: hue-rotate(-60deg) saturate(2); transform: translateX(-4px); }
  45% { clip-path: inset(0 0 25% 0); transform: translateX(3px); }
  60% { clip-path: inset(0 0 8% 0); filter: none; transform: none; }
  100% { clip-path: inset(0); }
}
@keyframes settle { from { opacity: .4; } to { opacity: 1; } }
@media (max-width: 860px) {
  .eco-head { grid-template-columns: 1fr; }
  .io-logo { width: 140px; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; }
  .t1 { grid-row: auto; } .t2 { grid-column: span 2; grid-row: 1; } .t5 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .collage { grid-template-rows: 220px 170px 170px; gap: 10px; }
}

/* the DipBuyer robot behind the manifesto */
.manifesto__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: 0; opacity: .32;
  filter: saturate(1.2) contrast(1.05); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 80%); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateY(-1.5%); } }

/* Shariah Life card: its own hero picture and logo */
.work__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1.2s var(--ease); }
.work__viz:has(.work__photo)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(2 3 10 / .1) 40%, rgb(2 3 10 / .75)); }
.work a:hover .work__photo { transform: scale(1.06); }
.work__brand { position: absolute; left: 22px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 14px; }
.work__brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 14px rgb(245 185 66 / .55)); }
.work__brand .work__label { position: static; }
