/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:         #fafaf8;
  --bg2:        #f4f1eb;
  --bg3:        #ede8df;
  --surface:    #eeeae2;
  --surface2:   #e6e1d8;
  --border:     rgba(26,24,20,0.08);
  --border2:    rgba(26,24,20,0.18);
  --text:       #1a1814;
  --text2:      #5a5650;
  --text3:      #9a958e;
  --gold:       #a8782e;
  --gold2:      #c9a96e;
  --gold3:      #7a5520;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Syne', system-ui, sans-serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --ease:       cubic-bezier(0.4,0,0.2,1);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; cursor: none; }
::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: var(--bg3); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
a { text-decoration: none; color: inherit; cursor: none; } button { cursor: none; }

/* ===== CURSOR ===== */
.cursor { position: fixed; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .2s, height .2s; }
.cursor-ring { position: fixed; width: 34px; height: 34px; border: 1px solid rgba(168,120,46,0.4); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: width .3s, height .3s; }
.cursor.hover { width: 6px; height: 6px; } .cursor-ring.hover { width: 46px; height: 46px; border-color: var(--gold); }

/* ===== TYPOGRAPHY ===== */
.section-tag { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 16px; }
.section-heading { font-family: var(--font-serif); font-size: clamp(2.6rem,4.5vw,4rem); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; margin-bottom: 48px; }
.section-heading em { font-style: italic; color: var(--gold); }

/* ===== NAV ===== */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 500; display: flex; justify-content: space-between; align-items: center; padding: 22px 48px; transition: padding .4s var(--ease), background .4s; }
#nav.solid { padding: 14px 48px; background: rgba(250,250,248,.94); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: #fafaf8; letter-spacing: .08em; transition: color .4s; }
#nav.solid .nav-logo { color: var(--text); }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,250,248,.7); transition: color .3s; position: relative; }
#nav.solid .nav-links a { color: var(--text2); }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--gold); } .nav-links a:hover::after { width: 100%; }
.sound-btn {
  background: none; border: 1px solid rgba(250,250,248,.2); border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,248,.7); transition: color .3s, border-color .3s, background .3s;
  padding: 0; flex-shrink: 0;
}
.sound-btn svg { width: 16px; height: 16px; }
.sound-btn:hover { color: var(--gold); border-color: var(--gold); background: rgba(168,120,46,.08); }
#nav.solid .sound-btn { color: var(--text2); border-color: var(--border2); }
#nav.solid .sound-btn:hover { color: var(--gold); border-color: var(--gold); }
.sound-btn .wave { opacity: 0; transition: opacity .4s; }
.sound-btn.playing .wave { opacity: 1; }
.burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--text2); transition: .3s; }
.mobile-menu { position: fixed; inset: 0; background: var(--bg); z-index: 550; display: flex; align-items: center; justify-content: center; transform: translateY(-100%); transition: transform .5s var(--ease); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin-bottom: 28px; }
.mobile-menu ul li a { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 300; color: var(--text); transition: color .3s; }
.mobile-menu ul li a:hover { color: var(--gold); }

/* ===== BUTTONS ===== */
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border: 1px solid var(--border2); border-radius: 100px; font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); background: transparent; transition: background .3s, border-color .3s, color .3s, transform .3s; }
.pill-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-2px); }
.pill-outline { background: transparent; }

/* ===== HERO ===== */
#hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 15%; filter: brightness(.82) saturate(.65); transform: scale(1.04); transition: transform 8s ease; }
.hero-img.loaded { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,8,6,.80) 0%, rgba(10,8,6,.55) 45%, rgba(10,8,6,.18) 75%, rgba(10,8,6,.08) 100%), linear-gradient(to bottom, rgba(10,8,6,.15) 0%, rgba(10,8,6,.10) 40%, rgba(10,8,6,.50) 85%, rgba(10,8,6,.75) 100%); }
.hero-body { position: relative; z-index: 2; padding: 0 48px 90px; max-width: 900px; }
.hero-eyebrow { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); margin-bottom: 14px; opacity: 0; animation: fadeUp .8s .3s var(--ease) forwards; }
.hero-name { font-family: var(--font-serif); font-size: clamp(3.8rem,9vw,8rem); font-weight: 300; line-height: .95; letter-spacing: -.02em; color: #fafaf8; margin-bottom: 18px; }
.hero-name .line { display: block; opacity: 0; transform: translateY(40px); animation: fadeUp .9s var(--ease) forwards; }
.hero-name .line:nth-child(1) { animation-delay: .5s; }
.hero-name .line:nth-child(2) { animation-delay: .7s; }
.hero-name .italic { font-style: italic; color: var(--gold2); }
.hero-sub { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,250,248,.65); margin-bottom: 32px; opacity: 0; animation: fadeUp .8s .9s var(--ease) forwards; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s 1.1s var(--ease) forwards; }
#hero .pill-btn { border-color: rgba(250,250,248,.4); color: #fafaf8; }
#hero .pill-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.hero-chips { position: absolute; bottom: 150px; right: 48px; z-index: 2; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; opacity: 0; animation: fadeIn 1s 1.4s ease forwards; }
.hero-chips span { font-family: var(--font-sans); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,250,248,.8); border: 1px solid rgba(250,250,248,.25); padding: 5px 14px; border-radius: 100px; background: rgba(10,8,6,.35); backdrop-filter: blur(12px); }
.hero-location { position: absolute; bottom: 38px; left: 48px; z-index: 2; font-family: var(--font-sans); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,250,248,.4); }
.hero-scroll { position: absolute; bottom: 36px; right: 48px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(250,250,248,.45); font-family: var(--font-sans); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 48px; background: var(--bg3); overflow: hidden; }
.scroll-progress { width: 100%; height: 100%; background: var(--gold); transform: translateY(-100%); animation: scrollAnim 2s 1.5s ease infinite; }

/* ===== ABOUT ===== */
#about { padding: 120px 0; background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; display: block; }
.about-img-wrap { position: relative; }
.about-img-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 22px; background: linear-gradient(to top, rgba(26,24,20,.72), transparent); }
.about-img-caption span { font-family: var(--font-sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(250,250,248,.65); display: block; }
.about-img-caption span:first-child { color: var(--gold2); margin-bottom: 2px; }
.about-text { color: var(--text2); font-size: .98rem; line-height: 1.85; margin-bottom: 18px; font-weight: 300; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 36px 0; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.astat { text-align: center; min-width: 70px; }
.astat-n { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 300; color: var(--gold); line-height: 1; }
.astat > span:nth-child(2) { font-size: 1.6rem; color: var(--gold3); }
.astat > div { font-family: var(--font-sans); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-top: 4px; }
.about-contacts { display: flex; flex-direction: column; gap: 7px; }
.about-contacts a { font-family: var(--font-sans); font-size: .82rem; color: var(--text3); transition: color .3s; }
.about-contacts a:hover { color: var(--gold); }

/* ===== PHOTO STRIP ===== */
.photo-strip { overflow: hidden; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-track { display: flex; animation: stripScroll 32s linear infinite; width: max-content; }
.strip-track img { width: 300px; height: 200px; object-fit: cover; filter: grayscale(35%) brightness(.8); transition: filter .4s; flex-shrink: 0; border-right: 1px solid var(--border); }
.strip-track img:hover { filter: grayscale(0%) brightness(1); }

/* ===== FEATURED PROJECTS ===== */
#projects { padding: 120px 0; background: var(--bg2); }
.project-block { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; margin-bottom: 2px; }
.project-block.reverse { direction: rtl; }
.project-block.reverse > * { direction: ltr; }
.project-media { position: relative; overflow: hidden; background: var(--bg3); }
.project-video { width: 100%; height: 100%; min-height: 400px; border: none; display: block; }
.project-info { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); border: 1px solid var(--border); gap: 14px; }
.project-num { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 300; color: var(--border2); line-height: 1; }
.project-year { font-family: var(--font-sans); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.project-title { font-family: var(--font-serif); font-size: clamp(1.8rem,2.5vw,2.5rem); font-weight: 300; line-height: 1.12; }
.project-title em { font-style: italic; color: var(--gold); }
.project-desc { font-size: .88rem; color: var(--text2); line-height: 1.78; font-weight: 300; }
.project-bullets { list-style: none; }
.project-bullets li { font-size: .83rem; color: var(--text2); padding-left: 16px; position: relative; margin-bottom: 5px; }
.project-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--gold3); }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span { font-family: var(--font-sans); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--border2); padding: 4px 10px; border-radius: 100px; }

/* ===== ALL PROJECTS GRID ===== */
#all-projects { padding: 120px 0; background: var(--bg); }
.proj-section { margin-bottom: 72px; }
.proj-section-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.proj-section-header h3 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 300; }
.proj-section-header h3 em { font-style: italic; color: var(--gold); }
.proj-section-count { font-family: var(--font-sans); font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--border2); padding: 4px 12px; border-radius: 100px; }
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.proj-grid-3 { grid-template-columns: repeat(3, 1fr); }
.proj-card { background: var(--bg); transition: background .3s; position: relative; }
.proj-card.hidden { display: none; }
.proj-card:hover { background: var(--surface); }
.proj-img { width: 100%; aspect-ratio: 3/2; overflow: hidden; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) brightness(.8); transition: filter .4s, transform .5s var(--ease); }
.proj-card:hover .proj-img img { filter: grayscale(0%) brightness(1); transform: scale(1.05); }
.proj-body { padding: 22px 20px; }
.proj-cat { font-family: var(--font-sans); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.proj-status { position: absolute; top: 12px; right: 12px; font-family: var(--font-sans); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; }
.proj-status.done { background: rgba(168,120,46,.1); border: 1px solid rgba(168,120,46,.25); color: var(--gold); }
.proj-body h4 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 400; line-height: 1.3; margin-bottom: 8px; }
.proj-body p { font-size: .78rem; color: var(--text3); line-height: 1.6; margin-bottom: 12px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-tags span { font-family: var(--font-sans); font-size: .6rem; color: var(--text3); border: 1px solid var(--border); padding: 2px 7px; border-radius: 3px; }

/* ===== PERSONAL PROJECTS ===== */
#personal-projects { padding: 120px 0; background: var(--bg2); }
.personal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 0; }
.personal-card { background: var(--bg); border: 1px solid var(--border); padding: 32px 26px; position: relative; transition: border-color .3s, transform .3s; }
.personal-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.pc-icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 16px; }
.pc-status { position: absolute; top: 16px; right: 16px; font-family: var(--font-sans); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; }
.pc-status.ongoing { background: rgba(168,120,46,.08); border: 1px solid rgba(168,120,46,.2); color: var(--gold); }
.personal-card h4 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; margin-bottom: 10px; line-height: 1.3; }
.personal-card p { font-size: .82rem; color: var(--text3); line-height: 1.65; margin-bottom: 16px; }
.pc-tech { font-family: var(--font-sans); font-size: .65rem; font-weight: 600; color: var(--text3); letter-spacing: .06em; }

/* ===== SKILLS ===== */
#skills { padding: 120px 0; background: var(--bg); }
.skills-master { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 80px; }
.skill-block h4 { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.skill-list { display: flex; flex-direction: column; gap: 13px; }
.skill-row { display: flex; align-items: center; gap: 12px; }
.skill-row > span { font-family: var(--font-body); font-size: .84rem; color: var(--text2); width: 180px; flex-shrink: 0; }
.skill-row > em { font-style: normal; font-family: var(--font-sans); font-size: .65rem; color: var(--text3); width: 32px; text-align: right; flex-shrink: 0; }
.bar { flex: 1; height: 2px; background: var(--border2); border-radius: 2px; overflow: hidden; }
.bar div { height: 100%; background: linear-gradient(to right, var(--gold3), var(--gold)); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.bar.animated div { transform: scaleX(1); }
.skill-tags-wrap { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tags-wrap span { font-family: var(--font-sans); font-size: .72rem; font-weight: 500; letter-spacing: .04em; color: var(--text2); border: 1px solid var(--border2); padding: 7px 14px; border-radius: 4px; transition: border-color .3s, color .3s; }
.skill-tags-wrap span:hover { border-color: var(--gold); color: var(--gold); }

/* ===== RESEARCH HIGHLIGHT ===== */
#research { background: var(--bg2); }
.research-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.research-hero-img { position: relative; overflow: hidden; }
.research-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) brightness(.85); }
.research-overlay { position: absolute; inset: 0; background: rgba(250,250,248,.1); }
.research-hero-body { padding: 80px 60px; background: var(--bg); display: flex; flex-direction: column; justify-content: center; }
.research-hero-body p { font-size: .95rem; color: var(--text2); line-height: 1.8; margin-bottom: 36px; font-weight: 300; }
.research-domains { display: flex; flex-direction: column; gap: 12px; }
.rd-item { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--text2); }
.rd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ===== ROBOTS ===== */
#robots { padding: 120px 0; background: var(--bg2); }
.robot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.robot-card { background: var(--bg); padding: 0; overflow: hidden; transition: background .3s; }
.robot-card:hover { background: var(--surface); }
.robot-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.robot-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(25%) brightness(.85); transition: filter .4s, transform .5s var(--ease); }
.robot-card:hover .robot-img img { filter: grayscale(0%) brightness(1); transform: scale(1.04); }
.robot-card h4 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; padding: 20px 24px 8px; }
.robot-card p { font-size: .82rem; color: var(--text2); padding: 0 24px 12px; line-height: 1.6; }
.robot-card ul { list-style: none; padding: 0 24px 24px; }
.robot-card ul li { font-family: var(--font-sans); font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); padding-left: 12px; position: relative; margin-bottom: 4px; }
.robot-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold3); }

/* ===== EXPERIENCE ===== */
#experience { background: var(--bg); padding: 0 0 120px; }
.exp-marquee-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 16px 0; margin-bottom: 80px; background: var(--bg2); }
.exp-marquee { display: flex; animation: marquee 22s linear infinite; width: max-content; white-space: nowrap; }
.exp-marquee span { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text3); padding: 0 24px; }
.exp-marquee .sep { color: var(--gold); padding: 0 4px; }
.exp-list { display: flex; flex-direction: column; }
.exp-item { display: grid; grid-template-columns: 180px 1fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--border); transition: background .3s; }
.exp-item:hover { background: rgba(168,120,46,.02); }
.exp-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 4px; }
.exp-period { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.exp-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border2); background: transparent; }
.exp-dot.active { background: var(--gold); border-color: var(--gold); }
.exp-header { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.exp-detail h3 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 400; }
.exp-co { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.exp-badge { font-family: var(--font-sans); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold3); padding: 3px 10px; border-radius: 100px; }
.exp-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.exp-area strong { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); display: block; margin-bottom: 8px; }
.exp-area ul { list-style: none; }
.exp-area ul li { font-size: .82rem; color: var(--text2); line-height: 1.7; padding-left: 14px; position: relative; margin-bottom: 4px; }
.exp-area ul li::before { content: '—'; position: absolute; left: 0; color: var(--border2); }
.exp-detail > ul { list-style: none; margin-bottom: 20px; }
.exp-detail > ul li { font-size: .85rem; color: var(--text2); line-height: 1.75; padding-left: 16px; position: relative; margin-bottom: 5px; }
.exp-detail > ul li::before { content: '—'; position: absolute; left: 0; color: var(--border2); }
.exp-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.exp-tech span { font-family: var(--font-sans); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); border: 1px solid var(--border); padding: 4px 10px; border-radius: 3px; }
.exp-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.exp-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(25%) brightness(.85); transition: filter .4s; }
.exp-photos img:hover { filter: grayscale(0%) brightness(1); }

/* ===== EDUCATION ===== */
#education { padding: 120px 0; background: var(--bg2); }
.edu-timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 60px; }
.edu-row { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--border); align-items: start; }
.edu-year { font-family: var(--font-mono, var(--font-sans)); font-size: .72rem; letter-spacing: .1em; color: var(--gold); font-weight: 600; padding-top: 4px; }
.edu-bar { padding: 0; }
.edu-bar.upcoming { }
.edu-badge { font-family: var(--font-sans); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold3); padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 12px; }
.edu-bar h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 400; margin-bottom: 8px; line-height: 1.25; }
.edu-bar p { font-size: .85rem; color: var(--gold); font-weight: 400; }
.edu-img-wrap { margin-top: 16px; max-width: 280px; }
.edu-img-wrap img { width: 100%; display: block; filter: grayscale(20%); }
.awards-certs { margin-top: 20px; }
.award-strip { display: flex; align-items: center; gap: 20px; padding: 28px 32px; border: 1px solid rgba(168,120,46,.2); background: rgba(168,120,46,.03); margin-bottom: 40px; }
.award-icon { font-size: 2rem; }
.award-strip strong { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; color: var(--gold); display: block; }
.award-strip span { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.certs h4 { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text3); margin-bottom: 18px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.cert-grid span { background: var(--bg); padding: 14px 18px; font-size: .82rem; color: var(--text3); transition: background .3s, color .3s; }
.cert-grid span:hover { background: var(--surface); color: var(--text2); }

/* ===== GALLERY MASONRY ===== */
#gallery { background: var(--bg); }
.gallery-masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.gm-col { display: flex; flex-direction: column; gap: 2px; }
.gm-item { overflow: hidden; }
.gm-item img { width: 100%; display: block; object-fit: cover; filter: grayscale(25%) brightness(.85); transition: filter .5s, transform .6s var(--ease); }
.gm-item:hover img { filter: grayscale(0%) brightness(1); transform: scale(1.04); }

/* ===== CONTACT ===== */
#contact { padding: 120px 0; background: var(--bg2); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; max-width: 1160px; margin: 0 auto; padding: 0 48px; align-items: start; }
.contact-sub { font-size: .98rem; color: var(--text2); line-height: 1.78; margin-bottom: 40px; font-weight: 300; }
.contact-links { display: flex; flex-direction: column; margin-bottom: 40px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); transition: padding .3s; }
.contact-links a:hover { padding-left: 6px; }
.cl-label { font-family: var(--font-sans); font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text3); min-width: 60px; }
.cl-val { font-size: .86rem; color: var(--text2); transition: color .3s; }
.contact-links a:hover .cl-val { color: var(--gold); }
.refs h5 { font-family: var(--font-sans); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.ref-item { margin-bottom: 20px; padding: 16px 20px; border: 1px solid var(--border); }
.ref-item strong { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 400; display: block; margin-bottom: 3px; }
.ref-item span { font-size: .78rem; color: var(--text3); display: block; margin-bottom: 4px; }
.ref-item a { font-size: .78rem; color: var(--gold); }
.contact-form { background: var(--surface); border: 1px solid var(--border); padding: 44px; display: flex; flex-direction: column; gap: 22px; }
.cf-group { display: flex; flex-direction: column; gap: 6px; }
.cf-group label { font-family: var(--font-sans); font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text3); }
.cf-group input, .cf-group textarea { background: var(--bg); border: 1px solid var(--border); padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: .9rem; outline: none; transition: border-color .3s; resize: vertical; border-radius: 0; }
.cf-group input:focus, .cf-group textarea:focus { border-color: var(--gold); }
.cf-group input::placeholder, .cf-group textarea::placeholder { color: var(--text3); }

/* ===== FOOTER ===== */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px; }
.footer-inner { text-align: center; }
.footer-logo { font-family: var(--font-serif); font-size: 2rem; font-weight: 300; color: var(--gold); display: block; margin-bottom: 12px; }
footer p { font-size: .82rem; color: var(--text3); margin-bottom: 4px; }
.footer-copy { font-size: .72rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollAnim { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@keyframes stripScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; } .reveal-delay-3 { transition-delay: .3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .personal-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-master { grid-template-columns: 1fr; }
  .robot-grid { grid-template-columns: repeat(2, 1fr); }
  .research-hero { grid-template-columns: 1fr; }
  .research-hero-img { height: 320px; }
  .exp-areas { grid-template-columns: 1fr; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .exp-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { cursor: auto; } .cursor, .cursor-ring { display: none; } a, button { cursor: pointer; }
  #nav { padding: 18px 24px; } #nav.solid { padding: 12px 24px; } .nav-links { display: none; } .burger { display: flex; }
  .hero-body { padding: 0 24px 80px; } .hero-chips { left: 24px; display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; padding: 0 24px; }
  .project-block { grid-template-columns: 1fr; min-height: auto; } .project-block.reverse { direction: ltr; }
  .project-info { padding: 32px 24px; }
  .proj-grid { grid-template-columns: 1fr; }
  .personal-grid { grid-template-columns: 1fr; }
  .robot-grid { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 12px; } .exp-header { flex-direction: column; gap: 6px; }
  .edu-row { grid-template-columns: 1fr; gap: 8px; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
  .contact-form { padding: 28px 22px; }
  .gallery-masonry { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 24px; }
  footer { padding: 36px 24px; }
  #about, #projects, #all-projects, #personal-projects, #skills, #robots, #education, #contact { padding: 80px 0; }
  #experience { padding-bottom: 80px; }
  .exp-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-masonry { grid-template-columns: 1fr; } .gm-col { display: contents; }
  .cert-grid { grid-template-columns: 1fr; }
}


/* ===== LOADER ===== */
body.loading { overflow: hidden; }
#loader {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: #0a0806;
  pointer-events: all;
}
.loader-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(168,120,46,.18) 0%, transparent 70%);
}
.loader-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(168,120,46,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(168,120,46,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 3s ease-in-out infinite;
}
@keyframes gridPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.loader-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  text-align: center;
}
.loader-logo {
  font-family: var(--font-serif); font-size: 5rem; font-weight: 600;
  color: #fafaf8; letter-spacing: .1em;
  line-height: 1;
  opacity: 0; transform: scale(.8);
  transition: opacity .8s ease, transform .8s ease;
  margin-bottom: 12px;
}
.loader-logo.visible { opacity: 1; transform: scale(1); }
.loader-name {
  font-family: var(--font-sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase;
  color: rgba(250,250,248,.4);
  margin-bottom: 40px;
  opacity: 0; transition: opacity .6s .4s ease;
}
.loader-name.visible { opacity: 1; }
.loader-bar-wrap {
  width: 240px; height: 1px; background: rgba(250,250,248,.1);
  margin-bottom: 16px; overflow: hidden;
  opacity: 0; transition: opacity .4s .6s ease;
}
.loader-bar-wrap.visible { opacity: 1; }
.loader-bar {
  height: 100%; width: 0%; background: var(--gold);
  transition: width .1s linear;
  box-shadow: 0 0 12px var(--gold);
}
.loader-percent {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; color: var(--gold);
  opacity: 0; transition: opacity .4s .6s ease;
  margin-bottom: 28px;
}
.loader-percent.visible { opacity: 1; }
.loader-tagline {
  font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; font-weight: 300;
  color: rgba(250,250,248,.25);
  opacity: 0; transition: opacity .6s .8s ease;
}
.loader-tagline.visible { opacity: 1; }

/* ===== HERO CANVAS ===== */
#heroCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 1s 1s ease;
}
#heroCanvas.visible { opacity: 1; }
/* hide canvas when not in hero view */
body.past-hero #heroCanvas { opacity: 0; }

/* ===== GSAP REVEAL (replaces old .reveal) ===== */
.reveal { opacity: 0; transform: translateY(32px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ===== FLOATING ELEMENTS ===== */
.float-anim {
  animation: floatY 4s ease-in-out infinite;
}
.float-anim-2 { animation-delay: -1.3s; }
.float-anim-3 { animation-delay: -2.7s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== 3D CARD TILT ===== */
.proj-card { transform-style: preserve-3d; will-change: transform; transition: box-shadow .3s ease; }
.proj-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,.18); }

/* ===== MAGNETIC BUTTON ===== */
.pill-btn { transition: background .3s, border-color .3s, color .3s, transform .2s; will-change: transform; }

/* ===== SECTION ENTER ===== */
.gsap-fade-up { opacity: 0; transform: translateY(40px); }
.gsap-fade-left { opacity: 0; transform: translateX(-40px); }
.gsap-fade-right { opacity: 0; transform: translateX(40px); }
.gsap-scale { opacity: 0; transform: scale(.92); }

/* ===== STAT COUNTER GLOW ===== */
.astat-n { color: var(--gold); }

/* ===== SCROLL INDICATOR PULSE ===== */
.hero-scroll .scroll-line { position: relative; overflow: hidden; }
@keyframes scrollPulse {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
.scroll-progress { animation: scrollPulse 2s ease-in-out infinite; }

/* ===== GOLD LINE REVEAL ===== */
.section-heading::after {
  content: '';
  display: block;
  width: 0; height: 1px;
  background: var(--gold);
  margin-top: 20px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.section-heading.in-view::after { width: 60px; }

/* ===== FEAT VIDEO FLOAT ===== */
.feat-video-wrap iframe {
  transition: transform .4s ease, box-shadow .4s ease;
}
.feat-video-wrap:hover iframe {
  transform: scale(1.02);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}


/* ===== SCROLL PROGRESS BAR ===== */
#scrollBar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold3), var(--gold), var(--gold2));
  box-shadow: 0 0 8px var(--gold);
  pointer-events: none; transition: width .05s linear;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed; inset: 0; z-index: 8000; background: rgba(10,8,6,.96);
  flex-direction: column; align-items: center; justify-content: center;
  display: none; opacity: 0; pointer-events: none;
  transition: opacity .3s ease; padding: 40px;
}
#lightbox.open { opacity: 1; pointer-events: all; visibility: visible; display: flex; }
#lightbox img { max-width: 90vw; max-height: 78vh; object-fit: contain; border: 1px solid rgba(168,120,46,.2); }
#lbClose {
  position: absolute; top: 24px; right: 32px; background: none;
  border: 1px solid rgba(250,250,248,.15); color: rgba(250,250,248,.6);
  font-size: 1.4rem; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s; cursor: pointer;
}
#lbClose:hover { color: var(--gold); border-color: var(--gold); cursor: none; }
#lbCaption {
  font-family: var(--font-sans); font-size: .68rem; letter-spacing: .15em;
  color: rgba(250,250,248,.35); margin-top: 16px; text-transform: uppercase;
}

/* ===== HERO SCAN LINE ===== */
.hero-scan {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(168,120,46,.8) 40%, rgba(201,169,110,.9) 50%, rgba(168,120,46,.8) 60%, transparent 100%);
  box-shadow: 0 0 18px rgba(168,120,46,.5);
  animation: scanDown 5s ease-in-out infinite; pointer-events: none;
}
@keyframes scanDown {
  0% { top: 0%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: .5; } 100% { top: 100%; opacity: 0; }
}

/* ===== RADAR RINGS ===== */
.hero-radar {
  position: absolute; bottom: 80px; right: 64px; z-index: 3;
  width: 72px; height: 72px; pointer-events: none;
}
.radar-ring {
  position: absolute; inset: 0; border: 1px solid rgba(168,120,46,.6);
  border-radius: 50%; animation: radarPing 3s ease-out infinite;
}
.radar-ring.r2 { animation-delay: 1s; }
.radar-ring.r3 { animation-delay: 2s; }
.radar-dot {
  position: absolute; top: 50%; left: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold);
  transform: translate(-50%,-50%);
}
@keyframes radarPing {
  0% { transform: scale(.1); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; }
}

/* ===== LAZY VIDEO ===== */
.lazy-video { position: relative; width: 100%; background: #0d0b08; overflow: hidden; cursor: pointer; }
.lazy-video::before { content: ''; display: block; padding-top: 56.25%; }
.lazy-video .lv-overlay, .lazy-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.lv-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(135deg, rgba(10,8,6,.92), rgba(26,20,12,.85));
  transition: background .3s;
}
.lazy-video:hover .lv-overlay { background: rgba(10,8,6,.75); }
.lv-title {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(250,250,248,.4);
}
.lv-play {
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px solid rgba(168,120,46,.7); background: rgba(168,120,46,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s, transform .3s; cursor: pointer;
}
.lazy-video:hover .lv-play { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.lv-play svg { width: 22px; height: 22px; fill: var(--gold2); margin-left: 4px; }
.lazy-video:hover .lv-play svg { fill: #fff; }
.lv-hint { font-family: var(--font-body); font-size: .64rem; color: rgba(250,250,248,.2); letter-spacing: .06em; }
.lv-corner { position: absolute; width: 14px; height: 14px; }
.lv-corner.tl { top: 12px; left: 12px; border-top: 1.5px solid rgba(168,120,46,.5); border-left: 1.5px solid rgba(168,120,46,.5); }
.lv-corner.tr { top: 12px; right: 12px; border-top: 1.5px solid rgba(168,120,46,.5); border-right: 1.5px solid rgba(168,120,46,.5); }
.lv-corner.bl { bottom: 12px; left: 12px; border-bottom: 1.5px solid rgba(168,120,46,.5); border-left: 1.5px solid rgba(168,120,46,.5); }
.lv-corner.br { bottom: 12px; right: 12px; border-bottom: 1.5px solid rgba(168,120,46,.5); border-right: 1.5px solid rgba(168,120,46,.5); }
.lazy-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ===== GALLERY CURSOR ===== */
.gm-item { cursor: zoom-in; }

/* ===== CORNER BRACKETS ON PROJ-CARD ===== */
.proj-card::before, .proj-card::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 5;
}
.proj-card::before { top: 8px; left: 8px; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); transform: translate(-4px,-4px); }
.proj-card::after  { bottom: 8px; right: 8px; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: translate(4px,4px); }
.proj-card:hover::before { opacity: 1; transform: translate(0,0); }
.proj-card:hover::after  { opacity: 1; transform: translate(0,0); }

/* ===== DATA READOUT ===== */
.proj-img { position: relative; overflow: hidden; }
.proj-img::after {
  content: 'SYS: ACTIVE  STATUS: DEPLOYED';
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 10px 8px;
  font-family: Courier New, monospace; font-size: .55rem; letter-spacing: .12em; color: var(--gold2);
  background: linear-gradient(to top, rgba(10,8,6,.88), transparent);
  transform: translateY(100%); transition: transform .35s ease;
}
.proj-card:hover .proj-img::after { transform: translateY(0); }

/* ===== HOLOGRAPHIC GLITCH ===== */
.proj-card:hover .proj-img img { animation: glitch .45s steps(2) 1; }
@keyframes glitch {
  0% { clip-path: inset(0 0 96% 0); transform: translateX(-3px); }
  25% { clip-path: inset(35% 0 45% 0); transform: translateX(3px); }
  50% { clip-path: inset(65% 0 18% 0); transform: translateX(-2px); }
  75% { clip-path: inset(10% 0 78% 0); transform: translateX(2px); }
  100% { clip-path: none; transform: translateX(0); }
}

/* ===== FLOATING LABELS ===== */
.cf-float { position: relative; margin-bottom: 28px; }
.cf-float input, .cf-float textarea {
  width: 100%; padding: 20px 0 8px; background: transparent;
  border: none; border-bottom: 1px solid var(--border2);
  font-family: var(--font-body); font-size: .9rem; color: var(--text);
  outline: none; transition: border-color .3s; border-radius: 0;
}
.cf-float textarea { resize: none; }
.cf-float input:focus, .cf-float textarea:focus { border-color: var(--gold); }
.cf-float > label {
  position: absolute; left: 0; top: 18px; font-family: var(--font-sans);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text3); pointer-events: none;
  transition: top .2s ease, font-size .2s ease, color .2s ease;
}
.cf-float input:focus + label, .cf-float input:not(:placeholder-shown) + label,
.cf-float textarea:focus + label, .cf-float textarea:not(:placeholder-shown) + label {
  top: 2px; font-size: .58rem; color: var(--gold);
}

/* ===== ABOUT PHOTO GLOW ===== */
.about-img-wrap::before {
  content: ''; position: absolute; inset: -8px;
  border: 1px solid rgba(168,120,46,.25); border-radius: inherit;
  pointer-events: none; animation: glowPulse 3.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: .25; box-shadow: 0 0 0px rgba(168,120,46,0); }
  50% { opacity: .7; box-shadow: 0 0 24px rgba(168,120,46,.18); }
}

/* ===== FLOATING HERO CHIPS ===== */
.hero-chips span { animation: chipFloat 3.5s ease-in-out infinite; }
.hero-chips span:nth-child(2) { animation-delay: -1.1s; }
.hero-chips span:nth-child(3) { animation-delay: -2.2s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ===== SKILL SPARK ===== */
.bar { position: relative; overflow: visible; }
.bar::after {
  content: ''; position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold2);
  box-shadow: 0 0 6px var(--gold), 0 0 14px var(--gold2);
  opacity: 0; transition: opacity .2s .8s;
}
.bar.animated::after { opacity: 1; }

/* ===== CIRCUIT DIVIDER ===== */
.circuit-divider { display: block; width: 100%; height: 32px; pointer-events: none; overflow: visible; opacity: .3; }
.circuit-path {
  fill: none; stroke: var(--gold); stroke-width: 1;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1);
}
.circuit-path.drawn { stroke-dashoffset: 0; }

/* ===== BOOT SEQUENCE ===== */
.boot-seq {
  font-family: Courier New, monospace; font-size: .62rem;
  letter-spacing: .14em; color: rgba(168,120,46,.7); margin-bottom: 10px; min-height: 1em;
}

/* ===== REDUCED MOTION + MOBILE PERF ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-scan, .radar-ring, .hero-chips span, .bar::after, .about-img-wrap::before { animation: none !important; }
}
@media (max-width: 768px) {
  .hero-radar { display: none; }
  #heroCanvas { display: none; }
}

/* ===== RECOMMENDATIONS ===== */
#recommendations { padding: 120px 0; background: var(--bg); }
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.rec-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 40px 36px 32px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  overflow: hidden;
}
.rec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,120,46,.04) 0%, transparent 60%);
  pointer-events: none;
}
.rec-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(168,120,46,.10);
}
.rec-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  line-height: .8;
  color: var(--gold);
  opacity: .25;
  position: absolute;
  top: 20px;
  left: 28px;
  user-select: none;
}
.rec-text {
  font-family: 'DM Sans', sans-serif;
  font-size: .925rem;
  line-height: 1.78;
  color: var(--text);
  opacity: .82;
  margin-top: 8px;
  position: relative;
}
.rec-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.rec-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.rec-meta { display: flex; flex-direction: column; gap: 2px; }
.rec-name {
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}
.rec-role {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: var(--text);
  opacity: .55;
}
.rec-date {
  font-family: 'Syne', sans-serif;
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .rec-grid { grid-template-columns: 1fr; gap: 20px; }
  .rec-card { padding: 32px 24px 24px; }
}

/* ===== ORGANIZATIONS ===== */
#organizations { padding: 80px 0 120px; background: var(--bg2); }
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.org-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 32px 28px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.org-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.org-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(168,120,46,.09); }
.org-card:hover::after { transform: scaleX(1); }
.org-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  opacity: .8;
  transition: opacity .3s;
}
.org-icon svg { width: 100%; height: 100%; }
.org-card:hover .org-icon { opacity: 1; }
.org-body { display: flex; flex-direction: column; gap: 6px; }
.org-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.org-name {
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.org-badge {
  font-family: 'Syne', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(168,120,46,.1);
  border: 1px solid rgba(168,120,46,.25);
  padding: 2px 10px;
  border-radius: 20px;
}
.org-period {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: var(--text);
  opacity: .5;
  letter-spacing: .03em;
}
.org-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text);
  opacity: .75;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .org-grid { grid-template-columns: 1fr; }
  .org-card { padding: 24px 20px; gap: 18px; }
}
