/* AQECS — public website styles. No external fonts or images. */

:root {
  --bg: #070b14;
  --bg-alt: #0a101c;
  --surface: #0e1524;
  --line: rgba(148, 170, 210, 0.13);
  --line-strong: rgba(148, 170, 210, 0.26);

  --text: #e7ecf4;
  --text-muted: #a3aec1;
  --text-dim: #6f7b90;

  --cyan: #5fd4e0;
  --cyan-soft: rgba(95, 212, 224, 0.12);
  --violet: #9a8cf0;

  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "SF Mono", Consolas, monospace;

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 80px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(95, 212, 224, 0.28); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}
.brand-logo { display: block; height: 48px; width: auto; flex: none; }
.brand-full {
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav ul { display: flex; gap: 0.25rem; }
.site-nav a {
  position: relative;
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn-primary { background: var(--text); color: #0a0f1b; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(95, 212, 224, 0.16); }
.btn-primary:hover svg { transform: translateY(2px); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 60% at 75% 50%, rgba(154, 140, 240, 0.10), transparent 70%),
    radial-gradient(40% 45% at 10% 15%, rgba(95, 212, 224, 0.06), transparent 70%),
    linear-gradient(180deg, #070b14 0%, #080d18 100%);
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 170, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 210, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 50%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 50%, #000 25%, transparent 80%);
}

.hero-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -8%;
  width: min(58vw, 720px);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.art-spin { transform-origin: 400px 400px; }
.art-spin-a { animation: spin 90s linear infinite; }
.art-spin-b { animation: spin 120s linear infinite reverse; }
.art-spin-c { animation: spin 150s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.art-pulse { transform-origin: 400px 400px; animation: pulse 6s ease-out infinite; }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero-content { position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Brand identity: the strongest element on the page */
.identity { margin: 0 0 clamp(2rem, 4vw, 2.75rem); font-weight: inherit; letter-spacing: normal; line-height: 1; }
/* Hero logo only (the header logo is sized separately by .brand-logo). */
.hero .identity-logo {
  display: block;
  /* 15% smaller than the previous clamp(200px, 45%, 369px); never below 170px so on phones it stays larger than the header logo */
  width: clamp(170px, 38.25%, 314px);
  height: auto;
  /* the SVG has a small built-in margin; pull it back so the symbol lines up with the text below */
  margin-left: calc(clamp(170px, 38.25%, 314px) * -0.0117);
}
.identity-full {
  display: block;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.6rem + 1.9vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text);
  max-width: 30ch;
}

.hero-divider {
  width: 72px;
  height: 2px;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
}

.hero-headline {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 26ch;
  margin-bottom: 1rem;
}
.hero-lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(5rem, 11vw, 8.5rem);
  border-top: 1px solid var(--line);
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.lead {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0;
}
.lead strong { font-weight: 600; }

/* ---------- Contact ---------- */
.contact-list { margin: 0; border-top: 1px solid var(--line-strong); }
.contact-item { padding-top: 1.25rem; }
.contact-item dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.contact-item dd { margin: 0; }
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 550;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--cyan), var(--violet)) left bottom / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), background-size 0.4s var(--ease);
}
.contact-email:hover { color: var(--cyan); background-size: 100% 1px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0.2em;
  margin-bottom: 0.35rem;
}
.footer-full { color: var(--text); font-size: 1.05rem; margin: 0; }
.footer-nav ul { display: flex; gap: 1.75rem; }
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-bottom p { margin: 0; }

/* ---------- Fade-in (only when JavaScript runs) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-art { right: -30%; width: 110vw; opacity: 0.55; }
  .about-grid { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-full { display: none; }
  .hero { align-items: flex-end; padding-bottom: 4rem; }
  .hero-art { top: 32%; right: -45%; width: 140vw; opacity: 0.45; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-art, .hero-backdrop, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
