:root{
  --base:#0E0E10;
  --surface:#17171A;
  --surface-2:#1D1D21;
  --line:#2A2A2E;
  --accent:#D98E4A;
  --accent-dim:rgba(217,142,74,0.14);
  --text:#F4F2EF;
  --text-2:#A6A29B;
  --radius:14px;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--base);
  color:var(--text);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
::selection{background:var(--accent);color:#0E0E10;}
h1,h2,h3,h4{font-family:'Space Grotesk',sans-serif;font-weight:600;letter-spacing:-0.02em;color:var(--text);}
.mono{font-family:'JetBrains Mono',monospace;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px;}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;}
}

/* circuit trace signature */
.trace-line{ position:absolute; left:0; top:0; width:100%; height:100%; pointer-events:none; z-index:0; }
.trace-line path{ fill:none; stroke:var(--line); stroke-width:1.5; }
.trace-line .lit{ stroke:var(--accent); stroke-width:1.5; opacity:0.55; stroke-dasharray:6 10; animation:flow 6s linear infinite; }
@keyframes flow{ to{ stroke-dashoffset:-160; } }
.node{ fill:var(--base); stroke:var(--accent); stroke-width:1.6; }

/* nav */
header{ position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(14,14,16,0.78); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
nav.wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:'Space Grotesk'; font-weight:600; font-size:17px; }
.brand .chip{ width:34px;height:34px;border-radius:8px; border:1px solid var(--accent); color:var(--accent); display:flex;align-items:center;justify-content:center; font-family:'JetBrains Mono'; font-size:12px; font-weight:500; position:relative; }
.brand .chip::before,.brand .chip::after{ content:""; position:absolute; width:6px; height:1.5px; background:var(--accent); }
.brand .chip::before{ left:-6px; top:50%; }
.brand .chip::after{ right:-6px; top:50%; }
.navlinks{ display:flex; gap:6px; align-items:center; }
.navlinks a{ color:var(--text-2); font-size:14.5px; cursor:pointer; padding:8px 14px; border-radius:8px; transition:color .2s, background .2s; }
.navlinks a:hover{ color:var(--text); background:var(--surface-2); }
.navlinks a.active{ color:var(--accent); }
.navlinks a.cta-nav{ background:var(--accent); color:#0E0E10; font-weight:600; font-size:14px; padding:9px 18px; border-radius:8px; margin-left:4px; }
.navlinks a.cta-nav:hover{ background:var(--accent); color:#0E0E10; }
.hamburger{ display:none; flex-direction:column; gap:4px; background:none;border:none;cursor:pointer;padding:8px; }
.hamburger span{ width:22px; height:2px; background:var(--text); display:block; }

main{ position:relative; padding-top:72px; }
section{ position:relative; padding:96px 0; border-bottom:1px solid var(--line); }
section:last-child{ border-bottom:none; }
.eyebrow{ font-family:'JetBrains Mono'; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.eyebrow::before{ content:""; width:20px; height:1px; background:var(--accent); }

/* hero */
.hero{ padding:150px 0 110px; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:center; position:relative; z-index:1;}
.hero h1{ font-size:58px; line-height:1.05; margin-bottom:22px; }
.hero h1 .accent-word{ color:var(--accent); }
.hero p.lede{ font-size:18px; color:var(--text-2); max-width:520px; margin-bottom:36px; line-height:1.6; }
.cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:13px 24px; border-radius:9px; font-weight:600; font-size:14.5px; cursor:pointer; border:1px solid transparent; transition:transform .2s, box-shadow .2s, background .2s; }
.btn-primary{ background:var(--accent); color:#0E0E10; }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(217,142,74,0.25); }
.btn-outline{ border-color:var(--line); color:var(--text); background:transparent; }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }

.photo-wrap{ position:relative; }
.photo-frame{ position:relative; border-radius:20px; overflow:hidden; border:1px solid var(--line); aspect-ratio:572/751; max-width:360px; margin-left:auto; transform-style:preserve-3d; will-change:transform; box-shadow:0 30px 60px -20px rgba(0,0,0,0.6); }
.photo-frame img{ width:100%; height:100%; object-fit:cover; filter:sepia(0.28) saturate(1.15) contrast(1.05) brightness(0.96); }
.photo-frame::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(217,142,74,0) 55%, rgba(14,14,16,0.5) 100%); }
.photo-tag{ position:absolute; bottom:16px; left:16px; right:16px; background:rgba(14,14,16,0.72); backdrop-filter:blur(6px); border:1px solid var(--line); border-radius:8px; padding:9px 12px; font-family:'JetBrains Mono'; font-size:11px; color:var(--text-2); z-index:2; display:flex; justify-content:space-between; }
.photo-tag b{ color:var(--accent); font-weight:500; }

/* what I do */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px; }
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:30px 26px; transition:transform .25s, border-color .25s; }
.card:hover{ transform:translateY(-4px); border-color:var(--accent); }
.card .tag{ font-family:'JetBrains Mono'; font-size:11px; color:var(--accent); margin-bottom:16px; letter-spacing:.06em; }
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ color:var(--text-2); font-size:14.5px; line-height:1.6; }

/* projects */
.proj-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px; }
.proj-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:transform .25s, border-color .25s; }
.proj-card:hover{ transform:translateY(-4px); border-color:var(--accent); }
.proj-top{ height:130px; background:linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%); position:relative; display:flex; align-items:center; justify-content:center; border-bottom:1px solid var(--line); }
.proj-top .node-badge{ width:52px;height:52px;border-radius:50%;border:1px solid var(--accent); display:flex;align-items:center;justify-content:center; font-family:'Space Grotesk'; font-weight:600; color:var(--accent); font-size:18px; }
.proj-body{ padding:22px 24px 26px; flex:1; display:flex; flex-direction:column; }
.proj-body h3{ font-size:17px; margin-bottom:4px; }
.proj-body .kind{ font-family:'JetBrains Mono'; font-size:11px; color:var(--text-2); margin-bottom:12px; }
.proj-body p{ color:var(--text-2); font-size:14px; line-height:1.55; margin-bottom:18px; flex:1; }
.proj-link{ font-size:13.5px; font-weight:600; color:var(--accent); display:inline-flex; align-items:center; gap:6px; }
.proj-link:hover{ text-decoration:underline; }

/* connect */
.connect{ text-align:center; }
.connect h2{ font-size:32px; margin-bottom:12px; }
.connect p{ color:var(--text-2); max-width:480px; margin:0 auto 30px; }
.insta-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; max-width:640px; margin:0 auto 30px; }
.insta-tile{ aspect-ratio:1; border-radius:10px; border:1px solid var(--line); background:var(--surface); display:flex; align-items:center; justify-content:center; font-family:'JetBrains Mono'; font-size:11px; color:var(--text-2); transition:border-color .2s, color .2s; }
.insta-tile:hover{ border-color:var(--accent); color:var(--accent); }

/* cta banner */
.cta-banner{ text-align:center; }
.cta-banner h2{ font-size:36px; margin-bottom:24px; }

/* about */
.about-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:60px; }
.about-grid p{ color:var(--text-2); line-height:1.75; font-size:15.5px; margin-bottom:18px; }
.about-grid h4{ color:var(--text); margin-bottom:6px; font-size:14px;}
.skills-col{ display:grid; gap:26px; margin-top:8px; }
.skill-group h4{ font-family:'JetBrains Mono'; font-size:12px; color:var(--accent); text-transform:uppercase; letter-spacing:.08em; margin-bottom:12px; }
.pill-row{ display:flex; flex-wrap:wrap; gap:8px; }
.pill{ border:1px solid var(--line); border-radius:20px; padding:7px 14px; font-size:13px; color:var(--text-2); }
.social-row{ display:flex; gap:12px; margin-top:36px; }
.social-row a{ width:42px;height:42px;border:1px solid var(--line); border-radius:10px; display:flex; align-items:center; justify-content:center; transition:border-color .2s, color .2s; color:var(--text-2); }
.social-row a:hover{ border-color:var(--accent); color:var(--accent); }

/* contact */
.contact-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; color:var(--text-2); margin-bottom:7px; }
.field input, .field textarea{ width:100%; background:var(--surface); border:1px solid var(--line); border-radius:9px; padding:13px 15px; color:var(--text); font-family:'Inter'; font-size:14.5px; resize:vertical; }
.field input:focus, .field textarea:focus{ border-color:var(--accent); outline:none; }
.success-msg{ display:none; margin-top:16px; padding:12px 16px; border-radius:9px; background:var(--accent-dim); border:1px solid var(--accent); color:var(--accent); font-size:13.5px; }
.contact-info-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:32px; }
.info-row{ display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.info-row:last-of-type{ border-bottom:none; }
.info-row .ic{ width:36px;height:36px;border-radius:8px; background:var(--accent-dim); color:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-row .lbl{ font-size:12px; color:var(--text-2); }
.info-row .val{ font-size:14.5px; font-weight:500; }
.direct-btns{ display:flex; flex-direction:column; gap:10px; margin-top:24px; }
.direct-btns a{ display:flex; align-items:center; justify-content:center; gap:9px; padding:12px; border-radius:9px; border:1px solid var(--line); font-size:14px; font-weight:600; transition:border-color .2s, color .2s; }
.direct-btns a:hover{ border-color:var(--accent); color:var(--accent); }

/* faq */
.faq-item{ border-bottom:1px solid var(--line); padding:20px 0; cursor:pointer; }
.faq-item .q{ display:flex; justify-content:space-between; align-items:center; font-weight:500; font-size:15.5px; }
.faq-item .q .plus{ color:var(--accent); font-family:'JetBrains Mono'; transition:transform .25s; }
.faq-item.open .q .plus{ transform:rotate(45deg); }
.faq-item .a{ max-height:0; overflow:hidden; transition:max-height .3s ease; color:var(--text-2); font-size:14.5px; line-height:1.6; }
.faq-item.open .a{ padding-top:12px; }

footer{ padding:40px 0; text-align:center; color:var(--text-2); font-size:13px; }
footer span{ color:var(--accent); }

@media(max-width:860px){
  .navlinks{ position:fixed; top:72px; left:0; right:0; background:var(--base); border-bottom:1px solid var(--line); flex-direction:column; align-items:stretch; padding:10px 24px 20px; display:none; gap:2px; }
  .navlinks.open{ display:flex; }
  .navlinks a.cta-nav{ margin:8px 0 0; text-align:center; }
  .hamburger{ display:flex; }
  .hero .wrap{ grid-template-columns:1fr; }
  .hero h1{ font-size:38px; }
  .photo-frame{ max-width:260px; margin:0 auto; }
  .grid-3, .proj-grid{ grid-template-columns:1fr; }
  .about-grid, .contact-grid{ grid-template-columns:1fr; gap:40px; }
  .insta-grid{ grid-template-columns:repeat(2,1fr); }
  section{ padding:64px 0; }
}
