/* ============================================================
   ENIGMA ALLIANCE — Aidan Dougan Portfolio
   Static styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --pink:   #e67f8e;
  --lime:   #f2ffb4;
  --dark:   #0a0a0a;
  --dark2:  #111111;
  --line:   #2a1a20;
  --dim:    #6a5058;
  --steel:  #f0eaeb;
  --mono:   'IBM Plex Mono', monospace;
  --sans:   'IBM Plex Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--steel);
  overflow-x: hidden;
  cursor: none;
}
body, a, button, [data-hover], .project-card { cursor: none; }

/* Grain */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022; pointer-events: none; z-index: 9990;
}

/* Cursor */
.cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--pink); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transition: width .15s, height .15s, background .15s;
  top: 0; left: 0;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid rgba(230,127,142,.55); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transition: width .25s, height .25s, border-color .25s;
  top: 0; left: 0;
}
body.cursor-hover .cursor-dot  { width: 14px; height: 14px; background: var(--lime); }
body.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: rgba(242,255,180,.55); }

/* Reveal */
.reveal      { opacity: 0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1); }
.reveal.visible, .reveal-left.visible { opacity: 1; transform: none; }
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .12s; }
.stagger > *:nth-child(3) { transition-delay: .19s; }
.stagger > *:nth-child(4) { transition-delay: .26s; }
.stagger > *:nth-child(5) { transition-delay: .33s; }
.stagger > *:nth-child(6) { transition-delay: .40s; }
.stagger > *:nth-child(7) { transition-delay: .47s; }
.stagger > *:nth-child(8) { transition-delay: .54s; }
.stagger > *:nth-child(9) { transition-delay: .61s; }

/* Page transition */
.page-enter { animation: pageIn .35s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Nav */
.site-nav { position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 1000; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-nav.scrolled { background: rgba(10,10,10,.85); backdrop-filter: blur(16px); border-color: var(--line); }
.nav-inner { max-width: 1400px; margin: 0 auto; height: 100%; padding: 0 40px; display: flex; align-items: center; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; background: none; border: none; color: var(--pink); text-decoration: none; transition: opacity .2s; }
.nav-logo:hover { opacity: .8; }
.nav-logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; }
.nav-brand { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--pink); }
.nav-crumbs { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: .1em; flex: 1; }
.nav-links { margin-left: auto; display: flex; gap: 0; align-items: center; }
.nav-btn { background: none; border: none; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); padding: 8px 18px; border-left: 1px solid var(--line); transition: color .2s; position: relative; overflow: hidden; text-decoration: none; }
.nav-btn::before { content: ''; position: absolute; inset: 0; background: rgba(230,127,142,.08); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.nav-btn:hover::before { transform: scaleX(1); }
.nav-btn:hover { color: var(--steel); }
.nav-btn.primary { color: var(--lime); }
.nav-btn.primary:hover { color: var(--dark); background: var(--lime); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-copy { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 8px; letter-spacing: .1em; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-contact a { font-family: var(--mono); font-size: 11px; color: var(--dim); text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: var(--pink); }
.footer-resume { color: var(--pink) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ====================== HOME ====================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 0 40px 72px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(42,26,32,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(42,26,32,.13) 1px, transparent 1px); background-size: 52px 52px; pointer-events: none; }
.hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; pointer-events: none; }
.hero-scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.009) 3px, rgba(255,255,255,.009) 4px); pointer-events: none; }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, transparent 40%, rgba(10,10,10,.8) 100%); pointer-events: none; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,.15) 50%, transparent 100%); pointer-events: none; }
.hero-stencil { position: absolute; top: 50px; left: 40px; right: 40px; font-family: var(--mono); font-size: clamp(80px, 11vw, 160px); font-weight: 700; line-height: .85; letter-spacing: -.04em; color: rgba(230,127,142,.07); user-select: none; pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 1400px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: flex-end; }
.hero-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--pink); margin-bottom: 18px; opacity: 0; animation: fadeUp .7s .2s forwards; }
.hero-name { font-family: var(--mono); font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: .92; letter-spacing: -.03em; margin-bottom: 18px; opacity: 0; animation: fadeUp .7s .35s forwards; }
.hero-tagline { font-size: 15px; color: rgba(240,234,235,.65); line-height: 1.7; max-width: 480px; margin-bottom: 32px; opacity: 0; animation: fadeUp .7s .5s forwards; }
.hero-actions { display: flex; gap: 12px; opacity: 0; animation: fadeUp .7s .65s forwards; }

.btn-primary { display: inline-block; background: var(--pink); color: var(--dark); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 11px 28px; border: none; text-decoration: none; transition: background .2s, box-shadow .2s; position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.15); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.btn-primary:hover::after { transform: scaleX(1); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(230,127,142,.35); }
.btn-secondary { display: inline-block; border: 1px solid var(--line); color: var(--lime); background: none; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 11px 28px; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.btn-secondary:hover { border-color: var(--lime); background: rgba(242,255,180,.06); }

.hero-featured { opacity: 0; animation: fadeIn .8s .8s forwards; }
.hero-featured-img { width: 100%; height: 200px; object-fit: cover; display: block; border: 1px solid var(--line); transition: filter .3s; }
.hero-featured-img:hover { filter: brightness(1.1); }
.hero-featured-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-family: var(--mono); font-size: 10px; }
.hero-featured-num { color: var(--pink); letter-spacing: .15em; }
.hero-featured-title { color: rgba(240,234,235,.8); }
.hero-featured-arrow { color: var(--pink); font-size: 16px; }

.section-label { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--pink); margin-bottom: 8px; }
.section-title { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 40px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--pink), var(--lime)); transition: width .6s cubic-bezier(.4,0,.2,1) .1s; }
.section-title.visible::after { width: 100%; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.project-card { background: var(--dark2); border: 1px solid var(--line); border-top: 2px solid var(--pink); overflow: hidden; transition: transform .4s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .4s; position: relative; }
.project-card::before { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(105deg, transparent 40%, rgba(230,127,142,.06) 50%, transparent 60%); transition: left .55s ease; pointer-events: none; z-index: 1; }
.project-card:hover::before { left: 170%; }
.project-card:hover { transform: translateY(-10px) scale(1.012); border-color: var(--pink); box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 32px rgba(230,127,142,.08); }
.card-img-wrap { position: relative; height: 170px; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; filter: brightness(.85) saturate(.9); }
.project-card:hover .card-img { transform: scale(1.05); filter: brightness(1) saturate(1); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,.7) 0%, transparent 60%); transition: opacity .3s; pointer-events: none; }
.project-card:hover .card-overlay { opacity: .4; }
.card-body { padding: 18px 20px; }
.card-num { font-family: var(--mono); font-size: 9px; color: var(--pink); letter-spacing: .18em; margin-bottom: 6px; }
.card-title { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .01em; margin-bottom: 6px; transition: color .2s; }
.project-card:hover .card-title { color: var(--pink); }
.card-role { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .08em; margin-bottom: 10px; }
.card-desc { font-size: 12px; color: rgba(240,234,235,.55); line-height: 1.65; margin-bottom: 16px; }
.card-footer { display: flex; justify-content: flex-end; align-items: center; }
.card-arrow { font-size: 18px; color: var(--line); transition: color .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.project-card:hover .card-arrow { color: var(--pink); transform: translateX(6px); }

.pro-strip { border: 1px solid var(--line); border-left: 3px solid rgba(242,255,180,.3); padding: 28px 32px; margin-bottom: 80px; }
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 16px; }
.pro-item { display: flex; gap: 16px; align-items: flex-start; }
.pro-bar { width: 2px; height: 44px; background: var(--lime); margin-top: 4px; flex-shrink: 0; }
.pro-org { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--steel); }
.pro-role { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 4px; }
.pro-note { font-size: 11px; color: rgba(240,234,235,.3); margin-top: 4px; font-style: italic; }

#about { padding: 80px 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.about-big-name { font-family: var(--mono); font-size: clamp(36px, 4vw, 56px); font-weight: 700; line-height: .88; letter-spacing: -.03em; color: rgba(240,234,235,.12); }
.about-text { font-size: 15px; line-height: 1.85; color: rgba(240,234,235,.7); margin-bottom: 28px; }
.about-contact { display: flex; flex-direction: column; gap: 10px; }
.about-contact a { font-family: var(--mono); font-size: 12px; color: var(--dim); text-decoration: none; transition: color .2s; }
.about-contact a:hover { color: var(--pink); }

/* ====================== PROJECT ====================== */
.proj-hero { position: relative; height: 60vh; min-height: 420px; overflow: hidden; display: flex; align-items: flex-end; margin-top: 56px; }
.proj-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 8s ease; pointer-events: none; }
.proj-hero.entered .proj-hero-img { transform: scale(1.04); }
.proj-hero-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,.3) 55%, transparent 100%); pointer-events: none; }
.proj-hero-content { position: relative; z-index: 2; max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 40px 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.proj-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--pink); margin-bottom: 12px; }
.proj-title { font-family: var(--mono); font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: .9; }
.proj-hero-links { display: flex; gap: 10px; flex-shrink: 0; }
.proj-link { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 8px 18px; text-decoration: none; transition: all .2s; }
.proj-link.filled { background: var(--pink); color: var(--dark); font-weight: 700; }
.proj-link.filled:hover { background: var(--lime); }
.proj-link.outline { border: 1px solid var(--line); color: var(--dim); }
.proj-link.outline:hover { border-color: var(--pink); color: var(--steel); }

.meta-row { display: flex; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.meta-cell { flex: 1; padding: 16px 24px; border-right: 1px solid var(--line); }
.meta-cell:last-child { border-right: none; }
.meta-key { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--pink); margin-bottom: 5px; }
.meta-val { font-family: var(--mono); font-size: 12px; font-weight: 600; }

.back-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 44px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.3); }
.back-btn { font-family: var(--mono); font-size: 10px; color: var(--pink); background: none; border: none; letter-spacing: .1em; transition: opacity .2s; }
.back-btn:hover { opacity: .7; }
.back-btn.dim { color: var(--dim); }

.proj-body { max-width: 1400px; margin: 0 auto; padding: 56px 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.prose-label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--pink); margin-bottom: 12px; }
.prose-text { font-size: 15px; line-height: 1.85; color: rgba(240,234,235,.72); }
.prose-text + .prose-label { margin-top: 32px; }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tool-chip { font-family: var(--mono); font-size: 10px; padding: 4px 12px; border: 1px solid var(--line); color: var(--dim); letter-spacing: .08em; transition: border-color .2s, color .2s; }
.tool-chip:hover { border-color: var(--pink); color: var(--steel); }

.proj-img-col { display: flex; flex-direction: column; gap: 14px; }
.proj-img-main { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border: 1px solid var(--line); transition: filter .3s; }
.proj-img-main:hover { filter: brightness(1.06); }
.proj-img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proj-img-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border: 1px solid var(--line); transition: filter .3s, transform .3s; }
.proj-img-thumb:hover { filter: brightness(1.1); transform: scale(1.02); }
.proj-gallery { max-width: 1400px; margin: 40px auto 0; padding: 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.proj-gallery-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); transition: filter .3s, transform .3s; }
.proj-gallery-img:hover { filter: brightness(1.1); transform: scale(1.015); }

/* Awards strip */
.awards-strip { max-width: 1400px; margin: 40px auto 0; padding: 0 40px; }
.awards-inner { border: 1px solid rgba(242,255,180,.25); border-left: 3px solid var(--lime); padding: 24px 28px; }
.awards-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.award-row { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(42,26,32,.5); font-family: var(--mono); font-size: 11px; }
.award-level { color: var(--lime); font-weight: 700; letter-spacing: .12em; min-width: 64px; }
.award-body { color: var(--steel); min-width: 120px; }
.award-cat { color: var(--dim); font-size: 10px; }

.cs-cta { max-width: 1400px; margin: 48px auto 0; padding: 0 40px; }
.cs-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; border: 1px solid rgba(230,127,142,.25); border-left: 3px solid var(--pink); }
.cs-cta-label { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--pink); margin-bottom: 6px; }
.cs-cta-sub { font-size: 13px; color: var(--dim); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 5000; animation: fadeIn .2s ease; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.8); }
.lightbox-close { position: absolute; top: 24px; right: 24px; font-size: 2rem; color: rgba(255,255,255,.5); background: none; border: none; transition: color .2s, transform .2s; }
.lightbox-close:hover { color: var(--pink); transform: rotate(90deg); }

/* ====================== CASE STUDY ====================== */
.cs-header { padding: 36px 40px 32px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; max-width: 1400px; margin: 56px auto 0; }
.cs-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--pink); margin-bottom: 12px; }
.cs-title { font-family: var(--mono); font-size: clamp(24px, 3.5vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: .95; }
.cs-subtitle { font-family: var(--mono); font-size: 14px; color: var(--dim); font-weight: 400; margin-top: 8px; }
.toc-bar { padding: 14px 40px; background: rgba(0,0,0,.25); border-bottom: 1px solid var(--line); display: flex; gap: 28px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.toc-bar::-webkit-scrollbar { display: none; }
.toc-label { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--pink); flex-shrink: 0; }
.toc-item { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--dim); flex-shrink: 0; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: color .2s, border-color .2s; white-space: nowrap; text-decoration: none; }
.toc-item:hover { color: var(--pink); border-color: var(--pink); }
.cs-layout { max-width: 1400px; margin: 0 auto; padding: 56px 40px; display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.cs-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 24px; }
.cs-section { margin-bottom: 56px; }
.cs-sec-header { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.cs-sec-num { font-family: var(--mono); font-size: 28px; font-weight: 700; color: rgba(230,127,142,.3); width: 40px; flex-shrink: 0; }
.cs-sec-label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--pink); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 16px; }
.stat-cell { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-cell:nth-child(3n) { border-right: none; }
.stat-key { font-family: var(--mono); font-size: 9px; letter-spacing: .15em; color: var(--pink); margin-bottom: 5px; }
.stat-val { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; }
.tl-spine { display: flex; flex-direction: column; align-items: center; margin-right: 20px; }
.tl-dot { width: 10px; height: 10px; border: 2px solid var(--pink); border-radius: 50%; margin-top: 3px; flex-shrink: 0; background: var(--dark); }
.tl-line { width: 1px; flex: 1; background: var(--line); min-height: 28px; }
.tl-content { padding-bottom: 28px; }
.tl-phase { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.tl-date { font-family: var(--mono); font-size: 9px; color: var(--pink); letter-spacing: .12em; margin-left: 10px; }
.tl-detail { font-size: 12px; color: rgba(240,234,235,.6); line-height: 1.65; margin-top: 5px; }
.systems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sys-card { padding: 18px; border: 1px solid var(--line); border-left: 2px solid rgba(230,127,142,.4); transition: border-left-color .2s; }
.sys-card:hover { border-left-color: var(--pink); }
.sys-title { font-family: var(--mono); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.sys-desc { font-size: 11px; color: rgba(240,234,235,.55); line-height: 1.65; }
.iter-list { display: flex; flex-direction: column; gap: 12px; }
.iter-item { display: flex; gap: 16px; align-items: flex-start; }
.iter-v { font-family: var(--mono); font-size: 10px; color: var(--pink); letter-spacing: .12em; width: 40px; flex-shrink: 0; padding-top: 2px; }
.iter-note { font-size: 12px; color: rgba(240,234,235,.6); line-height: 1.65; border-left: 1px solid var(--line); padding-left: 16px; flex: 1; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tech-card { padding: 18px; background: rgba(0,0,0,.3); border: 1px solid rgba(42,26,32,.6); }
.tech-title { font-family: var(--mono); font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.tech-desc { font-size: 11px; color: rgba(240,234,235,.5); line-height: 1.65; }
.sidebar-box { border: 1px solid var(--line); padding: 20px; }
.sidebar-box-label { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--pink); margin-bottom: 14px; }
.sidebar-stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(42,26,32,.5); font-family: var(--mono); font-size: 10px; }
.sidebar-stat-row:last-child { border-bottom: none; }
.sidebar-stat-key { color: var(--dim); }
.sidebar-stat-val { font-weight: 600; }
.sidebar-thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); transition: filter .3s; }
.sidebar-thumb:hover { filter: brightness(1.1); }
.sidebar-link { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--dim); text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(42,26,32,.4); transition: color .2s; }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--pink); }
.sidebar-link.primary-link { color: var(--pink); }

@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 1000px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-sidebar { position: static; }
  .proj-body { grid-template-columns: 1fr; }
  .proj-gallery { grid-template-columns: 1fr 1fr; }
  .systems-grid, .tech-grid, .awards-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-featured { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .pro-grid { grid-template-columns: 1fr; }
  .hero { padding: 0 20px 60px; min-height: 90vh; }
}
@media (max-width: 768px) {
  body, a, button, [data-hover], .project-card { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .nav-inner { padding: 0 20px; }
  .nav-crumbs { display: none; }
  .nav-btn { padding: 8px 12px; font-size: 10px; }
  .nav-brand { display: none; }
}
@media (max-width: 680px)  { .projects-grid { grid-template-columns: 1fr; } }
