:root {
  --bg: #07111f;
  --bg-deep: #040a12;
  --surface: #0d1b2c;
  --surface-2: #11243a;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f4f7fb;
  --muted: #aab8c8;
  --accent: #58a6ff;
  --accent-strong: #2f81f7;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --max-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(47, 129, 247, 0.08), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.narrow { max-width: 900px; }
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 1000;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 10, 18, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(88, 166, 255, 0.45);
  background: linear-gradient(145deg, rgba(88, 166, 255, 0.20), rgba(88, 166, 255, 0.05));
  border-radius: 12px; color: #ddecff;
}
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 0.95rem; }
.site-nav a { transition: color 180ms ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: transparent; border-radius: 10px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; }

.hero {
  position: relative; overflow: hidden; padding: 110px 0 92px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 72px; align-items: center; }
.hero-glow { position: absolute; border-radius: 999px; filter: blur(90px); pointer-events: none; opacity: 0.45; }
.hero-glow-one { width: 430px; height: 430px; background: rgba(47, 129, 247, 0.18); top: -170px; left: -120px; }
.hero-glow-two { width: 360px; height: 360px; background: rgba(88, 166, 255, 0.10); right: -100px; bottom: -100px; }

.eyebrow {
  margin: 0 0 18px; color: var(--accent); font-size: 0.78rem;
  font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 900px; font-size: clamp(3.4rem, 8vw, 6.5rem); line-height: 0.94; letter-spacing: -0.065em; }
h1 span { color: var(--accent); }
.hero-title { max-width: 730px; margin-bottom: 12px; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.025em; }
.hero-description { max-width: 690px; color: var(--muted); font-size: 1.08rem; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0 22px; font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent-strong); color: white; box-shadow: 0 10px 30px rgba(47, 129, 247, 0.25); }
.button.secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.button.secondary:hover { border-color: rgba(88, 166, 255, 0.55); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-tags span { color: var(--muted); font-size: 0.88rem; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }

.hero-panel {
  position: relative; padding: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-topline, .panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 0.82rem; }
.panel-topline { justify-content: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.status-dot { width: 9px; height: 9px; border-radius: 999px; background: #49d17d; box-shadow: 0 0 0 5px rgba(73, 209, 125, 0.10); }
.focus-list { display: grid; gap: 6px; margin: 16px 0; }
.focus-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.focus-item:last-child { border-bottom: 0; }
.focus-number, .card-index { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; }
.focus-item h2 { margin-bottom: 5px; font-size: 1.1rem; letter-spacing: -0.02em; }
.focus-item p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }
.panel-footer { padding-top: 20px; border-top: 1px solid var(--line); }

.snapshot-strip { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.snapshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.snapshot-grid div { padding: 24px 20px; border-right: 1px solid var(--line); }
.snapshot-grid div:last-child { border-right: 0; }
.snapshot-grid strong, .snapshot-grid span { display: block; }
.snapshot-grid strong { font-size: 1.05rem; }
.snapshot-grid span { color: var(--muted); font-size: .86rem; }

.section { padding: 100px 0; }
.section-alt { background: rgba(255,255,255,.018); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-layout, .philosophy-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: start; }
.section-heading h2 { margin-bottom: 0; max-width: 760px; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.08; letter-spacing: -0.045em; }
.section-heading.compact { margin-bottom: 42px; }
.section-copy { color: var(--muted); font-size: 1.06rem; }
.section-copy p:last-child { margin-bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card {
  min-height: 255px; padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.info-card:hover { transform: translateY(-5px); border-color: rgba(88,166,255,.38); background: var(--surface-2); }
.info-card h3 { margin: 56px 0 12px; font-size: 1.28rem; letter-spacing: -0.025em; }
.info-card p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

.experience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.experience-card { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.experience-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(88,166,255,.10); border: 1px solid rgba(88,166,255,.25); color: var(--accent); font-weight: 900; }
.experience-card h3 { margin-bottom: 8px; font-size: 1.22rem; }
.experience-card p { margin-bottom: 0; color: var(--muted); }

.credential-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.credential-card { min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.credential-card.featured { background: radial-gradient(circle at top right, rgba(88,166,255,.18), transparent 40%), var(--surface); }
.credential-badge { width: fit-content; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(88,166,255,.35); background: rgba(88,166,255,.10); color: var(--accent); font-size: 1.4rem; font-weight: 900; letter-spacing: .06em; }
.credential-badge.small { font-size: 1rem; }
.credential-card h3 { margin-bottom: 8px; font-size: 1.18rem; }
.credential-card p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }

.philosophy-quote { margin: 0; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.philosophy-quote p { font-size: 1.25rem; line-height: 1.55; letter-spacing: -.015em; }
.philosophy-quote footer { color: var(--muted); }

.article-preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.article-preview { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.article-preview span { color: var(--accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.article-preview h3 { margin: 34px 0 10px; font-size: 1.3rem; }
.article-preview p { margin-bottom: 0; color: var(--muted); }

.center-action { display: flex; justify-content: center; margin-top: 34px; }

.contact-section { padding-top: 70px; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 44px;
  background: linear-gradient(135deg, rgba(88,166,255,.12), rgba(255,255,255,.025)), var(--surface);
  border: 1px solid rgba(88,166,255,.24); border-radius: var(--radius);
}
.contact-card h2 { margin-bottom: 10px; font-size: clamp(2rem,4vw,3.4rem); letter-spacing: -.045em; }
.contact-card p { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.contact-actions { margin-top: 0; flex-shrink: 0; }

.page-hero { padding: 110px 0 76px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(3rem,7vw,5.4rem); }
.page-hero p:last-child { max-width: 760px; color: var(--muted); font-size: 1.1rem; }

.project-detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.project-detail { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.project-detail h2 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.03em; }
.project-detail p, .project-detail li { color: var(--muted); }
.project-detail ul { padding-left: 20px; margin-bottom: 0; }

.article-list { display: grid; gap: 18px; }
.article-list-card {
  display: flex; justify-content: space-between; gap: 28px; padding: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.article-list-card h2 { margin-bottom: 8px; font-size: 1.45rem; }
.article-list-card p { margin-bottom: 0; color: var(--muted); }
.status-label { align-self: flex-start; flex-shrink: 0; color: var(--accent); border: 1px solid rgba(88,166,255,.3); background: rgba(88,166,255,.08); padding: 8px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }

.contact-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.contact-option { padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.contact-option h2 { font-size: 1.8rem; }
.contact-option p { color: var(--muted); }
.contact-option .button { margin-top: 18px; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-wrap { display: flex; align-items: end; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .88rem; }
.footer-wrap strong { color: var(--text); }
.footer-wrap p { margin: 4px 0 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }

@media (max-width: 980px) {
  .hero-grid, .split-layout, .philosophy-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { max-width: 720px; }
  .card-grid, .credential-grid, .article-preview-grid { grid-template-columns: repeat(2,1fr); }
  .credential-card.featured { grid-column: span 2; }
  .snapshot-grid { grid-template-columns: repeat(2,1fr); }
  .snapshot-grid div:nth-child(2) { border-right: 0; }
  .snapshot-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 14px; right: 14px; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px;
    background: rgba(4,10,18,.98); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .nav-cta { margin-top: 5px; text-align: center; }
  .hero { padding: 82px 0 68px; }
  h1 { font-size: clamp(3rem,15vw,4.6rem); }
  .section { padding: 76px 0; }
  .card-grid, .experience-grid, .credential-grid, .article-preview-grid, .project-detail-grid, .contact-options { grid-template-columns: 1fr; }
  .credential-card.featured { grid-column: auto; }
  .panel-footer, .footer-wrap, .article-list-card { align-items: flex-start; flex-direction: column; }
  .contact-card { padding: 30px; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .snapshot-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .snapshot-grid div:last-child { border-bottom: 0; }
}
@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; }
}
