:root {
  --bg: #050607;
  --text: #f6f8f9;
  --muted: #92999f;
  --cyan: #00d8f3;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: #001316; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px;
  border-radius: 99px; background: var(--cyan); color: #001316; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.header {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: 88px; display: flex; align-items: center; justify-content: space-between;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  transition: height .6s cubic-bezier(.2,.8,.2,1), background .6s ease, backdrop-filter .6s ease;
}
.header.is-scrolled { height: 68px; background: rgba(5,6,7,.72); backdrop-filter: blur(22px); }
.brand { display: flex; align-items: center; gap: 12px; font-size: .76rem; font-weight: 700; letter-spacing: .24em; }
.brand img { width: 35px; height: 35px; object-fit: contain; }
.header nav { display: flex; align-items: center; gap: 34px; }
.header nav a { color: #b9bec2; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; transition: color .3s ease; }
.header nav a:hover, .header nav a:focus-visible { color: var(--text); }
.header .nav-contact { padding: 9px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; transition: color .3s ease, border-color .3s ease, background .3s ease; }
.header .nav-contact:hover, .header .nav-contact:focus-visible { color: #001316; border-color: var(--cyan); background: var(--cyan); }

.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; isolation: isolate;
  padding: 120px 24px 100px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #0b0f12 0, var(--bg) 57%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 26vh;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.ambient { position: absolute; z-index: -2; border-radius: 50%; filter: blur(100px); opacity: .12; pointer-events: none; }
.ambient-one { width: 45vw; height: 32vw; min-width: 420px; min-height: 300px; top: 15%; left: 27%; background: #00d8f3; animation: breathe 8s ease-in-out infinite; }
.ambient-two { width: 28vw; height: 28vw; right: -10%; bottom: 3%; background: #06677a; opacity: .08; animation: breathe 10s 2s ease-in-out infinite reverse; }
@keyframes breathe { 50% { transform: scale(1.12) translateY(12px); opacity: .17; } }

.flow { position: absolute; z-index: -1; left: -7%; top: 43%; width: 114%; height: 38vh; min-height: 260px; opacity: .78; }
.flow path { fill: none; stroke: url(#fade); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flow-glow { stroke-width: 22; opacity: .2; }
.flow-line { stroke-width: 1.4; stroke-dasharray: 2 5; animation: drift 18s linear infinite; }
@keyframes drift { to { stroke-dashoffset: -140; } }

.hero-inner { width: min(100%, 930px); text-align: center; }
.overline { margin: 0 0 28px; color: #a2a9ae; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .28em; }
.emblem { position: relative; width: clamp(112px, 12vw, 156px); margin: 0 auto 30px; }
.emblem img { position: relative; z-index: 2; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 0 24px rgba(0,216,243,.13)); }
.emblem-halo { position: absolute; z-index: 1; inset: 11%; border-radius: 50%; background: rgba(0,216,243,.09); filter: blur(26px); }
.wordmark-title { width: min(76vw, 760px); margin: 0 auto; line-height: 0; }
.wordmark-title img { width: 100%; height: auto; filter: drop-shadow(0 8px 32px rgba(0,0,0,.28)); }
.genres { margin: 28px 0 40px; color: #9ba3a8; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .34em; }
.primary-links { display: flex; justify-content: center; gap: 10px; }
.pill { min-width: 148px; padding: 12px 23px; border-radius: 99px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease, color .35s ease; }
.pill:hover, .pill:focus-visible { transform: translateY(-3px); }
.pill-primary { background: var(--cyan); color: #001316; box-shadow: 0 10px 34px rgba(0,216,243,.12); }
.pill-primary:hover, .pill-primary:focus-visible { box-shadow: 0 15px 42px rgba(0,216,243,.22); }
.pill-secondary { background: rgba(255,255,255,.045); color: #e3e7e9; box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); backdrop-filter: blur(12px); }
.pill-secondary:hover, .pill-secondary:focus-visible { background: rgba(255,255,255,.08); }
.scroll { position: absolute; bottom: 30px; left: 50%; width: 30px; height: 48px; transform: translateX(-50%); }
.scroll::before { content: ""; position: absolute; left: 50%; top: 4px; width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); }
.scroll span { position: absolute; left: calc(50% - 2px); top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: descend 2.4s ease-in-out infinite; }
@keyframes descend { 50% { transform: translateY(26px); opacity: .25; } }

.section-fade { position: relative; isolation: isolate; }
.section-fade::before, .section-fade::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; height: 160px; pointer-events: none; }
.section-fade::before { top: 0; transform: translateY(-99%); background: linear-gradient(transparent, var(--bg)); }
.section-fade::after { bottom: 0; transform: translateY(99%); background: linear-gradient(var(--bg), transparent); }
.narrow { width: min(calc(100% - 48px), 900px); margin: 0 auto; }

.connect { padding: clamp(110px, 14vw, 190px) 0; text-align: center; background: var(--bg); }
.connect h2 { margin: 0 0 50px; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1; font-weight: 560; letter-spacing: -.055em; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.social-pill { display: flex; align-items: center; gap: 12px; padding: 13px 19px; border-radius: 99px; background: rgba(255,255,255,.035); color: #d2d7da; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); backdrop-filter: blur(12px); transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease, box-shadow .35s ease; }
.social-pill span { font-size: .84rem; }
.social-pill small { color: #6f777d; font-size: .58rem; text-transform: uppercase; letter-spacing: .15em; }
.social-pill:hover, .social-pill:focus-visible { transform: translateY(-3px); background: rgba(0,216,243,.07); box-shadow: inset 0 0 0 1px rgba(0,216,243,.22), 0 12px 40px rgba(0,0,0,.25); }
.social-pill[aria-disabled="true"] { cursor: default; }

.about { min-height: 750px; display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.about-glow { position: absolute; z-index: -2; left: 50%; top: 50%; width: min(760px, 85vw); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(0,216,243,.075), rgba(0,216,243,.018) 38%, transparent 68%); filter: blur(12px); }
.about-inner { width: min(calc(100% - 48px), 900px); text-align: center; }
.about h2 { margin: 0; font-size: clamp(3rem, 7.6vw, 7rem); line-height: .98; font-weight: 530; letter-spacing: -.06em; }
.about h2 em { color: var(--cyan); font-style: normal; font-weight: 300; }
.about-inner > p:last-child { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }

.contact { padding: 130px 24px 150px; background: var(--bg); }
.contact-inner { width: min(100%, var(--max)); min-height: 500px; margin: 0 auto; padding: clamp(46px, 8vw, 92px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border-radius: clamp(28px, 4vw, 56px); overflow: hidden; background: radial-gradient(circle at 88% 15%, rgba(0,216,243,.11), transparent 33%), linear-gradient(145deg, #0c1013, #080a0c); box-shadow: inset 0 1px rgba(255,255,255,.055), 0 40px 100px rgba(0,0,0,.34); }
.contact h2 { margin: 0 0 50px; font-size: clamp(3.6rem, 9vw, 8.2rem); line-height: .84; font-weight: 560; letter-spacing: -.065em; }
.mail { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 8px; color: #cbd1d5; font-size: clamp(1rem, 2.1vw, 1.55rem); box-shadow: inset 0 -1px rgba(255,255,255,.17); transition: color .3s ease, box-shadow .3s ease; overflow-wrap: anywhere; }
.mail span { color: var(--cyan); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.mail:hover, .mail:focus-visible { color: var(--text); box-shadow: inset 0 -1px var(--cyan); }
.mail:hover span { transform: translate(4px,-4px); }

footer { width: min(calc(100% - 48px), var(--max)); min-height: 130px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: #6d757b; font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; }
.footer-brand { color: var(--text); font-weight: 700; letter-spacing: .23em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color .3s ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--text); }
footer > span { text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity 1.1s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1), filter 1.1s ease; }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 25px; padding: 11px 17px; border-radius: 99px; background: rgba(18,21,23,.88); color: #c8cdd0; font-size: .7rem; letter-spacing: .08em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 10px 40px rgba(0,0,0,.3); backdrop-filter: blur(18px); transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.toast.is-visible { transform: translate(-50%,0); }

.legal-page { min-height: 100svh; background: radial-gradient(circle at 50% 0, rgba(0,216,243,.06), transparent 30%), var(--bg); }
.legal-shell { width: min(calc(100% - 48px), 800px); margin: 0 auto; padding: 150px 0 100px; }
.legal-shell h1 { margin: 0 0 44px; font-size: clamp(3.4rem, 9vw, 6.7rem); line-height: .95; font-weight: 560; letter-spacing: -.065em; }
.legal-shell h2 { margin-top: 45px; font-size: 1.15rem; font-weight: 560; }
.legal-shell p, .legal-shell li { color: var(--muted); }
.legal-shell a { color: var(--cyan); }
.legal-note { margin: 0 0 40px; padding: 18px 22px; border-radius: 18px; background: rgba(0,216,243,.07); color: #cceef2 !important; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

@media (max-width: 700px) {
  .header { height: 72px; padding-inline: 18px; }
  .header.is-scrolled { height: 62px; }
  .header nav { gap: 10px; }
  .header nav > a:first-child { display: none; }
  .hero { padding-inline: 18px; }
  .flow { top: 44%; height: 34vh; width: 140%; left: -20%; }
  .emblem { width: 108px; margin-bottom: 28px; }
  .wordmark-title { width: min(88vw, 620px); }
  .genres { margin: 26px auto 38px; letter-spacing: .28em; }
  .primary-links { flex-direction: column; width: min(100%, 300px); margin: 0 auto; }
  .pill { padding-block: 13px; }
  .narrow, .about-inner { width: min(calc(100% - 36px), 900px); }
  .connect { padding-block: 120px; }
  .socials { flex-direction: column; align-items: stretch; }
  .social-pill { justify-content: space-between; padding: 15px 20px; }
  .about { min-height: 650px; }
  .contact { padding: 100px 18px 110px; }
  .contact-inner { min-height: 460px; padding: 42px 26px; border-radius: 30px; }
  .contact h2 { margin-bottom: 42px; font-size: clamp(3.4rem, 17vw, 5rem); }
  footer { width: min(calc(100% - 36px), var(--max)); grid-template-columns: 1fr auto; padding: 38px 0; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; }
  footer > span { text-align: right; }
  .legal-page .header nav > a:first-child { display: block; }
}

@media (max-width: 390px) {
  .brand span { display: none; }
  .overline { letter-spacing: .2em; }
  .contact h2 { font-size: 3.2rem; }
  .mail { font-size: .95rem; }
}

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