/* =========================================================
   NEERAJ SIHAG — PORTFOLIO
   Design system: SOC console, not SaaS marketing page.
   ========================================================= */

:root {
  /* Color */
  --bg:           #0a0e0f;
  --bg-raised:    #11171a;
  --surface:      #161e21;
  --border:       #243032;
  --border-soft:  #1a2326;

  --text:         #e8ebe9;
  --text-dim:     #9aa8a5;
  --text-faint:   #73827f;

  --accent:       #ff7849;   /* alert / signature warm accent */
  --accent-dim:   #c75c34;
  --accent-bg:    rgba(255, 120, 73, 0.1);

  --live:         #3ddc97;   /* functional signal-green, status only */
  --live-bg:      rgba(61, 220, 151, 0.1);

  --stealth:      #7d8886;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

ul { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

button { font: inherit; cursor: pointer; }

/* Visible keyboard focus, everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0a0e0f;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Texture: subtle film grain over the whole page ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Shared layout primitives ---------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid var(--border-soft);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px 0;
}

.section-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
  flex-shrink: 0;
}
.status-dot--live {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-bg);
}
.status-dot--stealth {
  background: var(--stealth);
  box-shadow: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #100a08;
}
.btn-primary:hover {
  background: #ff8c64;
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-dim);
}
.primary-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.primary-nav a:hover::after { width: 100%; }

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  border-top: 1px solid var(--border-soft);
}
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 880px) {
  .primary-nav, .header-status { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(40px, 9vw, 140px) 0 clamp(48px, 8vw, 88px);
  position: relative;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 0 0 28px 0;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.05s forwards;
}

.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  max-width: 16ch;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.15s forwards;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  line-height: 1.65;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.42s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  max-width: 62ch;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.tag-row li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CAPABILITIES
   ========================================================= */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}

.capability-card {
  background: var(--bg);
  padding: clamp(28px, 4vw, 40px);
  transition: background 0.25s var(--ease);
}
.capability-card:hover {
  background: var(--bg-raised);
}

.capability-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px 0;
}

.capability-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.capability-card p:not(.capability-tag) {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 780px) {
  .capability-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   STACK
   ========================================================= */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.stack-group h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.stack-group li {
  font-size: 15px;
  color: var(--text-dim);
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}
.stack-group li:last-child { border-bottom: none; }

@media (max-width: 780px) {
  .stack-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* =========================================================
   PROJECTS — case files
   ========================================================= */
.case-files {
  display: flex;
  flex-direction: column;
}

.case-file {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border-soft);
  transition: padding-left 0.3s var(--ease);
}
.case-files .case-file:last-child {
  border-bottom: 1px solid var(--border-soft);
}
.case-file:hover {
  padding-left: 12px;
}

.case-file-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 4px;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.status-text--live { color: var(--live); }
.status-text--stealth { color: var(--stealth); }

.case-file-body h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 8px;
}

.case-file-brief {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent-dim);
  margin-bottom: 16px;
}

.case-file-detail {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 68ch;
  margin-bottom: 20px;
}

.case-file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.case-file-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 2px;
}

.case-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.case-file-link:hover { border-color: var(--accent); }

.ext-icon {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
a:hover .ext-icon {
  transform: translate(1px, -1px);
}

.case-file--stealth .case-file-body h3 { color: var(--text-faint); }
.case-file--stealth .case-file-brief { color: var(--text-faint); }

@media (max-width: 640px) {
  .case-file {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .case-file:hover { padding-left: 0; }
}

/* =========================================================
   TALK / CURRENTLY
   ========================================================= */
.talk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.talk-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  padding: clamp(24px, 3vw, 32px);
}

.talk-card h3 {
  font-size: 19px;
  margin: 10px 0 10px;
  line-height: 1.4;
}

.talk-venue {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.talk-card p:not(.section-label):not(.talk-venue) {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 780px) {
  .talk-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  text-align: left;
}
.contact-title {
  font-size: clamp(36px, 6vw, 56px);
  margin: 14px 0 16px;
}
.contact-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 52ch;
  margin-bottom: 40px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

/* ========================================================= */
