:root {
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --soft: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.18);
  --line-bright: rgba(255, 255, 255, 0.34);
  --shadow: 0 24px 80px rgba(255, 255, 255, 0.08);
  --glow: 0 0 38px rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,0.18), transparent 32%),
    radial-gradient(circle at 15% 20%, rgba(135, 88, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(62, 207, 255, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,0.025) 49% 51%, transparent 52% 100%);
  background-size: 56px 56px, 56px 56px, 92px 92px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% 50%, transparent, rgba(255,255,255,0.08), transparent, rgba(120,90,255,0.10), transparent);
  filter: blur(62px);
  opacity: 0.55;
  animation: auroraSpin 28s linear infinite;
  z-index: -4;
}

@keyframes auroraSpin {
  to { transform: rotate(360deg); }
}

.arcane-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -2;
}

.arcane-aurora::before,
.arcane-aurora::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 62%);
  filter: blur(26px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}

.arcane-aurora::before {
  left: -10vw;
  top: 12vh;
}

.arcane-aurora::after {
  right: -12vw;
  bottom: 4vh;
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(7vw, -4vh, 0) scale(1.18); }
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 72px;
}

.topbar {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.08), var(--glow);
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
}

.nav-links a,
.contact-actions a,
.hero-actions a,
.contact-box a,
.text-link {
  color: var(--text);
  text-decoration: none;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.contact-box a:hover,
.text-link:hover {
  color: var(--text);
}

.hero-content {
  position: relative;
  text-align: center;
  margin-top: 96px;
}

.logo-stage {
  position: relative;
  width: min(800px, 94vw);
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
}

.sigil-ring {
  position: absolute;
  width: min(560px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.22) 0deg 2deg, transparent 2deg 13deg),
    radial-gradient(circle, transparent 58%, rgba(255,255,255,0.14) 59%, transparent 62%);
  mask-image: radial-gradient(circle, transparent 0 56%, black 57% 64%, transparent 66% 100%);
  opacity: 0.34;
  animation: slowRune 38s linear infinite;
  filter: drop-shadow(0 0 22px rgba(255,255,255,0.16));
}

@keyframes slowRune {
  to { transform: rotate(360deg); }
}

.main-logo {
  position: relative;
  width: min(760px, 92vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 42px rgba(255,255,255,0.22));
}

.glyph-stream {
  position: absolute;
  inset: -32px 0 auto;
  min-height: 140px;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
}

.glyph-stream span {
  position: relative;
  display: inline-block;
  margin: 0 clamp(6px, 2vw, 22px);
  color: rgba(255,255,255,0.36);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.74rem, 1.8vw, 1.1rem);
  animation: glyphRise 6.6s ease-in-out infinite;
}

.glyph-stream span:nth-child(2) { animation-delay: -1s; }
.glyph-stream span:nth-child(3) { animation-delay: -2s; }
.glyph-stream span:nth-child(4) { animation-delay: -3s; }
.glyph-stream span:nth-child(5) { animation-delay: -4s; }
.glyph-stream span:nth-child(6) { animation-delay: -5s; }
.glyph-stream span:nth-child(7) { animation-delay: -6s; }

@keyframes glyphRise {
  0%, 100% { transform: translateY(14px); opacity: 0.08; }
  45% { transform: translateY(-28px); opacity: 0.56; }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin: 0 auto 22px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  font: inherit;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-bright);
  box-shadow: 0 0 28px rgba(255,255,255,0.13);
}

.button.primary {
  background: #ffffff;
  color: #000000;
  box-shadow: var(--shadow);
}

.button.secondary {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.button.ghost {
  background: rgba(255,255,255,0.03);
  color: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 38px 0 88px;
}

.intro-grid article,
.service-item,
.process-steps div,
.contact-card,
.contact-box,
.resume-form,
.careers-panel,
.page-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.spell-card {
  position: relative;
  overflow: hidden;
}

.spell-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent),
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(255,255,255,0.12), transparent 26%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.spell-card:hover::before {
  opacity: 1;
}

.intro-grid article {
  padding: 28px;
}

.card-number {
  display: inline-flex;
  color: rgba(255,255,255,0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-bottom: 42px;
}

.intro-grid h2,
.service-item h3,
.contact-box h3,
.resume-form h3 {
  font-size: 1.24rem;
  line-height: 1.16;
  margin-bottom: 12px;
}

.intro-grid p,
.service-item p,
.process-steps p,
.contact-card p,
.contact-box p,
.resume-form p,
.careers-panel p,
.page-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  padding: 92px 0;
  border-top: 1px solid var(--soft);
}

.split-section h2,
.process h2,
.contact-card h2,
.careers-panel h1,
.careers-panel h2,
.page-card h1,
.page-card h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-item {
  padding: 24px;
  background: linear-gradient(135deg, var(--panel-strong), var(--panel));
}

.process {
  padding: 88px 0;
  border-top: 1px solid var(--soft);
  text-align: center;
}

.process h2 {
  max-width: 720px;
  margin: 0 auto 34px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.process-steps div {
  padding: 24px;
}

.process-steps span {
  display: block;
  margin-bottom: 12px;
  font-weight: 850;
  font-size: 1.05rem;
}

.careers-panel {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 28px;
  align-items: start;
  padding: clamp(28px, 5vw, 56px);
  margin: 88px 0 44px;
  background:
    radial-gradient(circle at left top, rgba(255,255,255,0.14), transparent 38%),
    linear-gradient(135deg, var(--panel-strong), var(--panel));
}

.careers-copy p {
  margin-bottom: 18px;
}

.note-text {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-list span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0,0,0,0.28);
  font-size: 0.9rem;
}

.resume-form {
  padding: 24px;
  background: rgba(0,0,0,0.34);
}

.resume-form label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  color: rgba(255,255,255,0.86);
  font-weight: 700;
  font-size: 0.92rem;
}

.resume-form input,
.resume-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font: inherit;
  outline: none;
}

.resume-form input:focus,
.resume-form textarea:focus {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.resume-form input::placeholder,
.resume-form textarea::placeholder {
  color: rgba(255,255,255,0.42);
}

.form-button {
  width: 100%;
  margin-top: 10px;
}

.text-link {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
  margin: 88px 0 24px;
  padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(circle at right, rgba(255,255,255,0.14), transparent 34%), var(--panel-strong);
}

.contact-actions {
  justify-content: flex-end;
}

.stacked-actions {
  align-items: stretch;
  flex-direction: column;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 88px;
}

.contact-box {
  padding: 26px;
}

.contact-box a {
  display: inline-flex;
  margin-top: 18px;
  color: #ffffff;
  font-weight: 850;
  word-break: break-word;
}

.subpage {
  min-height: 100vh;
  padding: 120px 0 72px;
}

.subpage .topbar {
  position: fixed;
}

.page-card {
  padding: clamp(28px, 5vw, 62px);
  margin-top: 42px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.13), transparent 32%),
    linear-gradient(135deg, var(--panel-strong), var(--panel));
}

.page-card h1 {
  max-width: 900px;
  margin-left: 0;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .intro-grid,
  .split-section,
  .process-steps,
  .contact-card,
  .contact-grid,
  .careers-panel,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .topbar,
  .subpage .topbar {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 18px;
  }

  .hero-content {
    margin-top: 54px;
  }

  .glyph-stream {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    gap: 12px;
    font-size: 0.82rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-actions,
  .contact-actions,
  .page-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
