/* =====================================================
   ARC INSTITUTE OF TECHNOLOGIES — arcait.net
   Shared stylesheet · AIT-B-26-0612
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0A0A0A;
  --surface-1:    #111111;
  --surface-2:    #161616;
  --border:       #1E1E1E;
  --border-hover: #2E2E2E;
  --text-primary: #F5F5F5;
  --text-muted:   #888888;
  --text-faint:   #444444;
  --accent:       #C8FF00;
  --accent-blue:  #3B82F6;
  --accent-amber: #F59E0B;
  --accent-purple:#A855F7;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --max-w:        1200px;
  --radius:       8px;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(200,255,0,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at -10% 40%, rgba(59,130,246,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 110% 60%, rgba(200,255,0,0.02) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* masked dot grid */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 30%, transparent 80%);
}

::selection { background: var(--accent); color: #000; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
main { position: relative; z-index: 1; }

.grain-overlay {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 192px 192px;
  opacity: 0.06; mix-blend-mode: overlay;
}

/* =====================================================
   NAV
===================================================== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9998;
  height: var(--nav-h);
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; max-width: 120px; }
.nav-foundation {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--text-faint);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 8px 14px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: ''; display: block; height: 2px; margin-top: 1px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta {
  display: inline-block;
  font-size: 14px; font-weight: 600; color: #0A0A0A;
  background: var(--accent); padding: 9px 18px; border-radius: 6px;
  transition: box-shadow .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { box-shadow: 0 0 24px rgba(200,255,0,0.35); transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); transition: transform .2s, opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 9998; background: rgba(10,10,10,0.97);
  flex-direction: column; padding: 24px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  font-size: 20px; font-weight: 500; color: var(--text-muted);
  padding: 18px 4px; border-bottom: 1px solid var(--border);
}
.nav-mobile-link.active { color: var(--accent); }
.nav-mobile-cta {
  margin-top: 28px; text-align: center;
  font-size: 16px; font-weight: 600; color: #0A0A0A;
  background: var(--accent); padding: 14px; border-radius: 8px;
}

/* =====================================================
   SHARED STRUCTURE
===================================================== */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 18px;
}
.section-headline { font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 560px; }

.page-hero { padding: calc(var(--nav-h) + 96px) 0 64px; }
.page-hero h1 { font-size: 56px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }

/* buttons */
.btn-primary {
  display: inline-block; font-size: 15px; font-weight: 600;
  color: #0A0A0A; background: var(--accent);
  padding: 14px 26px; border-radius: 8px;
  transition: box-shadow .2s, transform .15s;
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(200,255,0,0.4); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; font-size: 15px; font-weight: 500;
  color: var(--text-primary); padding: 14px 26px; border-radius: 8px;
  border: 1px solid var(--border-hover);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: #444; background: rgba(255,255,255,0.03); }

/* cards */
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.card-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--accent);
}
.card h3 { font-size: 22px; font-weight: 700; margin: 14px 0 10px; }
.card p { font-size: 15px; color: var(--text-muted); }
.card-stat {
  margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.card-foot {
  margin-top: 14px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.08em;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 4px 9px;
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* page enter */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
main { animation: pageIn .25s ease; }

/* =====================================================
   HOME-SPECIFIC
===================================================== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  padding-top: calc(var(--nav-h) + 64px);
  display: flex; align-items: center;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; width: 100%; }
.hero-kicker {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 26px; min-height: 40px; white-space: pre-line;
}
.hero-kicker .caret { display: inline-block; width: 8px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: 76px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 520px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* live brief feed */
.feed {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; height: 380px; position: relative;
}
.feed-head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--text-faint); padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.feed-mask { height: calc(100% - 44px); overflow: hidden; position: relative; }
.feed-mask::before, .feed-mask::after {
  content: ''; position: absolute; left: 0; right: 0; height: 48px; z-index: 2; pointer-events: none;
}
.feed-mask::before { top: 0; background: linear-gradient(#111, transparent); }
.feed-mask::after { bottom: 0; background: linear-gradient(transparent, #111); }
.feed-scroll { animation: feedUp 28s linear infinite; }
@keyframes feedUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.feed-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
}
.feed-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.feed-dot.live { background: var(--accent); box-shadow: 0 0 8px rgba(200,255,0,0.6); }
.feed-dot.done { background: var(--text-faint); }
.feed-id { color: var(--text-faint); }
.feed-name { color: var(--text-muted); flex: 1; }
.feed-status { color: var(--accent); font-size: 10px; letter-spacing: 0.1em; }
.feed-status.done { color: var(--text-faint); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 12px; }
.pillar h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--text-muted); }

/* big CTA */
.cta-block { text-align: center; padding: 110px 0; }
.cta-block h2 { font-size: 48px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 28px; }
.cta-note { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.06em; }

/* =====================================================
   METHOD PAGE
===================================================== */
.arms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.arm { padding: 40px; }
.arm h3 { font-size: 26px; }

.rail {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 72px; flex-wrap: wrap;
}
.rail-step { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.1em; white-space: nowrap; }
.rail-step b { color: var(--accent); font-weight: 500; }
.rail-line { flex: 1; min-width: 24px; height: 1px; background: var(--border-hover); }

/* brief stack */
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.brief-copy p { font-size: 16px; color: var(--text-muted); margin-bottom: 18px; }
.brief-copy strong { color: var(--text-primary); }
.brief-stack { display: flex; flex-direction: column; gap: 12px; }
.brief-file {
  background: var(--surface-1); border: 1px solid var(--border); border-left-width: 3px;
  border-radius: 6px; padding: 16px 20px;
  font-family: var(--font-mono); font-size: 12px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  transition: transform .2s;
}
.brief-file:hover { transform: translateX(6px); }
.brief-file .bf-type { color: var(--text-primary); letter-spacing: 0.08em; }
.brief-file .bf-id { color: var(--text-faint); }

/* =====================================================
   SERVICES PAGE
===================================================== */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 rgba(200,255,0,0.5); animation: pulse 2s infinite; margin-bottom: 18px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,255,0,0.45); }
  70% { box-shadow: 0 0 0 12px rgba(200,255,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,255,0,0); }
}

.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-1); margin-top: 56px;
}
.stat { padding: 40px 32px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num { font-size: 56px; font-weight: 700; line-height: 1.1; }
.stat-label { font-family: var(--font-mono); font-size: 13px; color: #666; margin-top: 8px; }

/* =====================================================
   WORK PAGE
===================================================== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { display: flex; flex-direction: column; }
.work-mark {
  width: 52px; height: 52px; border-radius: 10px;
  border: 1px solid var(--border-hover); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--accent);
  margin-bottom: 18px;
}
.work-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-faint); margin-bottom: 10px;
}
.work-status { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.work-status .feed-dot { width: 6px; height: 6px; }
.work-card h3 { font-size: 18px; margin: 0 0 8px; }
.work-card p { flex: 1; }

/* =====================================================
   VENTURE PAGE
===================================================== */
.venture-list { display: flex; flex-direction: column; gap: 16px; }
.venture-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px;
}
.venture-row .vr-id { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; }
.venture-row h3 { font-size: 17px; margin-bottom: 4px; }
.venture-row p { font-size: 14px; color: var(--text-muted); }
.vr-stage {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--accent); border: 1px solid rgba(200,255,0,0.25); border-radius: 4px;
  padding: 5px 10px; white-space: nowrap;
}
.vr-stage.dim { color: var(--text-faint); border-color: var(--border); }

/* =====================================================
   CONTACT PAGE
===================================================== */
.contact-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-form { margin-top: 48px; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-primary); font-size: 15px;
  padding: 13px 16px; outline: none; transition: border-color .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.form-confirm {
  display: none; margin-top: 36px; font-family: var(--font-mono); font-size: 14px;
  color: var(--accent); line-height: 2;
}
.form-confirm .muted { color: var(--text-muted); }
.contact-direct { margin-top: 64px; font-size: 15px; color: var(--text-muted); line-height: 2; }
.contact-direct a { color: var(--text-primary); border-bottom: 1px solid var(--border-hover); }

/* =====================================================
   FOOTER
===================================================== */
#site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); margin-top: 48px; background: rgba(13,13,13,0.6); }
.footer-main {
  max-width: var(--max-w); margin: 0 auto; padding: 64px 24px 48px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px;
}
.footer-logo img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--text-faint); margin-bottom: 16px; font-weight: 500;
}
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-contact { font-size: 14px; color: var(--text-muted); line-height: 2; }
.footer-bottom { border-top: 1px solid var(--border); background: var(--surface-2); }
.footer-bottom-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-faint);
}
.footer-bottom-inner .mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(200,255,0,0.6); animation: pulse 2s infinite;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feed { height: 300px; }
  .arms, .brief-grid, .svc-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero h1 { font-size: 48px; }
  .page-hero h1 { font-size: 40px; }
  .section-headline { font-size: 32px; }
  .cta-block h2 { font-size: 34px; }
  .pillars, .work-grid, .stats-bar { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none
/* client logos on work cards */
.work-logo { height: 52px; margin-bottom: 18px; display: flex; align-items: center; }
.work-logo svg { max-height: 52px; width: auto; display: block; }
a.work-logo { transition: opacity .2s; }
a.work-logo:hover { opacity: 0.75; }
.work-logo img { width: auto; display: block; }
