/* ============ Design tokens ============ */
:root {
  --bg: hsl(210 40% 98%);
  --fg: hsl(220 20% 20%);
  --card: #ffffff;
  --muted: hsl(220 15% 45%);
  --border: hsl(210 25% 90%);
  --primary: hsl(210 70% 55%);
  --primary-fg: #fff;
  --accent: hsl(45 90% 60%);
  --accent-fg: hsl(220 20% 15%);
  --highlight: hsl(45 80% 92%);
  --secondary: hsl(210 30% 95%);
  --mutedbg: hsl(210 20% 94%);
  --shadow-card: 0 4px 20px -4px hsl(210 30% 50% / .08), 0 2px 8px -2px hsl(210 30% 50% / .04);
  --shadow-hover: 0 12px 40px -8px hsl(210 40% 50% / .15), 0 6px 20px -4px hsl(45 50% 50% / .08);
  --shadow-glow: 0 0 30px -8px hsl(210 70% 55% / .25);
  --grad-primary: linear-gradient(135deg, hsl(210 70% 55%), hsl(230 60% 60%));
  --grad-accent: linear-gradient(135deg, hsl(45 90% 60%), hsl(35 85% 55%));
  --grad-hero: linear-gradient(180deg, hsl(210 40% 98%) 0%, hsl(45 50% 96%) 50%, hsl(210 40% 98%) 100%);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --radius: 1rem;
}
[data-theme="dark"] {
  --bg: hsl(220 15% 8%);
  --fg: hsl(210 30% 95%);
  --card: hsl(220 15% 12%);
  --muted: hsl(210 20% 60%);
  --border: hsl(220 15% 20%);
  --secondary: hsl(220 15% 16%);
  --mutedbg: hsl(220 15% 18%);
  --highlight: hsl(45 50% 22%);
  --grad-hero: linear-gradient(180deg, hsl(220 15% 8%), hsl(220 20% 12%) 50%, hsl(220 15% 8%));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.section { padding: 6rem 0; position: relative; overflow: hidden; }
.gradient-bg { background: var(--grad-hero); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; max-width: 640px; margin: 0 0 2rem; }
.small { font-size: .85rem; }
.uppercase { text-transform: uppercase; letter-spacing: .12em; }
.primary { color: var(--primary); }
strong { color: var(--fg); }

/* ============ Display headings ============ */
.display { font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0; }
.display.xl { font-size: clamp(2.5rem, 6vw, 5.5rem); margin-bottom: 1.5rem; }
em { font-style: italic; }
.grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.grad-accent { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.underline-text { position: relative; display: inline-block; }
.underline-text::after {
  content: ""; position: absolute; left: 0; bottom: -.1em; width: 100%; height: 6px;
  background: var(--accent); border-radius: 4px; opacity: .9;
  transform-origin: left; animation: drawLine 1.2s .8s ease forwards; transform: scaleX(0);
}
@keyframes drawLine { to { transform: scaleX(1); } }

/* ============ Badges & buttons ============ */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 1rem; }
.badge-primary { background: var(--grad-primary); color: #fff; }
.badge-accent { background: var(--accent); color: var(--accent-fg); }

.btn-primary, .btn-outline, .btn-accent, .btn-dark, .link-accent {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem;
  border-radius: 999px; font-weight: 500; cursor: pointer; border: 0; font-family: var(--font-body);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, gap .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -8px hsl(210 70% 55% / .5); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); gap: .8rem; }
.btn-outline { background: var(--card); color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-fg); box-shadow: 0 8px 24px -8px hsl(45 90% 60% / .5); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-dark { background: var(--fg); color: var(--bg); padding: .65rem 1.3rem; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-dark.full { width: 100%; justify-content: center; padding: 1rem; }
.link-accent { color: var(--primary); padding: 0; background: transparent; font-weight: 500; }
.link-accent:hover { gap: .8rem; }

/* ============ Navbar ============ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: hsl(210 40% 98% / .8); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
[data-theme="dark"] .navbar { background: hsl(220 15% 8% / .8); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.logo { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; }
.logo .dot { color: var(--primary); }
.logo.light .dot-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: .9rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.theme-toggle { background: var(--secondary); border: 0; border-radius: 999px; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; transition: transform .2s; }
.theme-toggle:hover { transform: scale(1.1); }
.menu-btn { display: none; background: transparent; border: 0; color: var(--fg); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border); display: none; gap: 1rem; }
  .nav-links.open { display: flex; }
}

/* ============ Cards ============ */
.floating-card {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid hsl(0 0% 0% / .04); box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}
.floating-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.cards-grid { display: grid; gap: 1.5rem; }
.grid-2-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ About ============ */
.about { padding-top: 9rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; } }
.about-img-wrap { position: relative; max-width: 420px; }
.profile-frame { padding: 1rem; position: relative; }
.profile-frame img { aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 12px; width: 100%; }
.profile-badge { position: absolute; top: -.7rem; left: 1rem; font-size: .75rem; z-index: 2; margin: 0; }
.web3-badge { position: absolute; bottom: -1rem; right: -1rem; background: var(--primary); color: #fff; padding: 1rem 1.2rem; text-align: center; }
.web3-badge .big { font-family: var(--font-display); font-size: 1.5rem; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.hl { display: flex; align-items: center; gap: .75rem; padding: .75rem; background: var(--card); border: 1px solid var(--border); border-radius: .75rem; font-size: .9rem; transition: transform .2s; }
.hl:hover { transform: scale(1.02); }
.hl-ico { width: 40px; height: 40px; background: var(--accent); border-radius: .5rem; display: grid; place-items: center; font-size: 1.1rem; }

/* ============ Hero ============ */
.hero { padding-top: 8rem; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.orb-1 { top: 25%; left: 33%; width: 24rem; height: 24rem; background: hsl(210 70% 55% / .2); }
.orb-2 { bottom: 25%; right: 33%; width: 20rem; height: 20rem; background: hsl(45 90% 60% / .4); }
.orb-3 { top: 50%; right: 25%; width: 16rem; height: 16rem; background: hsl(45 80% 92% / .5); }
.floater { position: absolute; border-radius: 1.25rem; animation: floatY 6s ease-in-out infinite; }
.f1 { top: 8rem; left: 3rem; width: 5rem; height: 5rem; background: var(--accent); }
.f2 { top: 12rem; right: 5rem; width: 4rem; height: 4rem; background: var(--primary); border-radius: .75rem; animation-delay: .5s; }
.f3 { bottom: 8rem; left: 25%; width: 6rem; height: 6rem; background: var(--highlight); border-radius: 1.5rem; animation-delay: 1s; }
.f4 { bottom: 6rem; right: 4rem; width: 3.5rem; height: 3.5rem; background: hsl(210 70% 55% / .6); animation-delay: .8s; }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(6deg); } }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 4rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; max-width: 900px; }
.stat { background: var(--card); padding: 1.5rem; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: transform .2s; }
.stat:hover { transform: translateY(-5px); }
.stat .ico { font-size: 1.5rem; margin-bottom: .5rem; }
.stat .num { font-family: var(--font-display); font-size: 2rem; }
.stat .lbl { font-size: .85rem; color: var(--muted); }

/* ============ Project / generic card ============ */
.proj-card { cursor: pointer; }
.proj-card .pc-head { padding: 1.25rem; border-radius: .75rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.proj-card .pc-cat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: hsl(210 70% 55% / .8); }
.proj-card h3 { font-size: 1.3rem; margin: .25rem 0 .5rem; transition: color .2s; }
.proj-card:hover h3 { color: var(--primary); }
.proj-card p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .7rem; padding: .3rem .75rem; background: var(--mutedbg); border-radius: 999px; color: var(--muted); }
.ext { opacity: 0; transition: opacity .2s; color: var(--primary); }
.proj-card:hover .ext { opacity: 1; }

/* ============ Skills ============ */
.skill-cat .skill-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.skill-head .ico { width: 48px; height: 48px; background: hsl(210 70% 55% / .1); border-radius: .75rem; display: grid; place-items: center; font-size: 1.3rem; }
.skill-row { margin-bottom: 1rem; }
.skill-row .top { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .4rem; }
.skill-row .bar { height: 10px; background: var(--mutedbg); border-radius: 999px; overflow: hidden; }
.skill-row .fill { height: 100%; background: var(--grad-primary); border-radius: 999px; width: 0; transition: width 1.2s ease; }
.skill-row.in-view .fill { width: var(--w); }

.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.tool { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.1rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-card); font-size: .9rem; transition: transform .2s; }
.tool:hover { transform: scale(1.05); }

/* ============ Services ============ */
.svc-card .svc-ico { width: 56px; height: 56px; border-radius: .75rem; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; transition: transform .2s; }
.svc-card:hover .svc-ico { transform: scale(1.1) rotate(5deg); }

/* ============ Downloads ============ */
.dl-card { display: block; padding: 2rem; border-width: 2px; border-style: solid; transition: transform .3s, box-shadow .3s, border-color .3s; }
.dl-card .dl-ico { width: 56px; height: 56px; background: var(--card); border-radius: 1rem; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow-card); transition: transform .2s; }
.dl-card:hover .dl-ico { transform: scale(1.1); }
.dl-card h3 { font-size: 1.25rem; margin-bottom: .5rem; transition: color .2s; }
.dl-card:hover h3 { color: var(--primary); }
.dl-card .dl-meta { color: var(--primary); font-weight: 500; font-size: .9rem; margin-top: 1rem; }

/* ============ Testimonials ============ */
.t-card { position: relative; padding: 2rem; }
.t-quote { position: absolute; top: -1rem; left: -.5rem; width: 40px; height: 40px; background: var(--accent); color: var(--accent-fg); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; }
.t-stars { color: var(--accent); margin: .5rem 0 1rem; letter-spacing: 2px; }
.t-content { font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.6; }
.t-author { display: flex; gap: 1rem; align-items: center; }
.t-avatar { width: 48px; height: 48px; background: hsl(210 70% 55% / .1); border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; }
.t-name { font-family: var(--font-display); font-size: 1.1rem; }
.t-role { font-size: .85rem; color: var(--muted); }

/* ============ Writing section ============ */
.writing-section { background: hsl(210 30% 95% / .3); }
[data-theme="dark"] .writing-section { background: hsl(220 15% 12% / .3); }

/* ============ Contact ============ */
.contact { background: var(--mutedbg); background-image:
  linear-gradient(hsl(var(--border) / .4) 1px, transparent 1px),
  linear-gradient(90deg, hsl(var(--border) / .4) 1px, transparent 1px);
  background-size: 32px 32px; }
.contact-list { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; }
.contact-item small { display: block; font-size: .8rem; color: var(--muted); }
.ci-ico { width: 48px; height: 48px; background: var(--accent); border-radius: .75rem; display: grid; place-items: center; font-size: 1.3rem; transition: transform .2s; }
.contact-item:hover .ci-ico { transform: scale(1.1); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem; }
.contact-form label { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--mutedbg); border: 0; border-radius: .75rem; padding: .85rem 1rem;
  font-family: inherit; font-size: 1rem; color: var(--fg); outline: none; transition: box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

/* ============ Footer ============ */
.footer { background: var(--fg); color: var(--bg); padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.socials { display: flex; gap: .75rem; }
.socials a { width: 40px; height: 40px; background: hsl(0 0% 100% / .1); border-radius: 50%; display: grid; place-items: center; transition: background .2s, transform .2s; font-weight: 700; }
.socials a:hover { background: var(--accent); color: var(--accent-fg); transform: translateY(-2px); }
.heart { color: var(--accent); }

/* ============ Reveal animations ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Shapes for about */
.shape { position: absolute; border-radius: 1rem; pointer-events: none; }
.shape-1 { top: 5rem; right: 2.5rem; width: 7rem; height: 7rem; background: var(--accent); animation: spinSoft 10s linear infinite; }
.shape-2 { bottom: 5rem; left: 2.5rem; width: 5rem; height: 5rem; background: hsl(210 70% 55% / .2); animation: spinSoft 8s linear infinite reverse; }
@keyframes spinSoft { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* Project links row */
.proj-links { display:flex; gap:1rem; margin-top:.75rem; flex-wrap:wrap; }
.proj-links a { font-size:.85rem; font-weight:600; }
.proj-card { cursor: default; }
.proj-card .ext { display:inline-block; text-decoration:none; font-size:1.1rem; }

/* ============================================================
   TEMPLATE-STYLE PROJECT CARDS (matches "Eight products. All shipped.")
   ============================================================ */
.proj-card--template { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.proj-card--template .pc-body { padding: 1.25rem 1.25rem 1.4rem; }

.pc-cover {
  position: relative;
  padding: 1rem 1.25rem 1.4rem;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #0f172a;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.pc-cover--amber { background-color: #f59e0b; background-image:
  linear-gradient(135deg, #fbbf24, #f59e0b 60%, #d97706),
  linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px; color:#0f172a; }
.pc-cover--blue  { background-color: #3b82f6; background-image:
  linear-gradient(135deg, #60a5fa, #3b82f6 60%, #2563eb),
  linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px; color:#fff; }
.pc-cover--dark  { background-color: #0f172a; background-image:
  linear-gradient(135deg, #1e293b, #0f172a 60%, #020617),
  linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px; color:#fff; }

.pc-dots { display:flex; gap:.4rem; }
.pc-dots span { width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,.55); }
.pc-cover--amber .pc-dots span { background: rgba(15,23,42,.35); }
.pc-code {
  position:absolute; top: 1rem; right: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; line-height: 1.4; opacity: .85; text-align: right;
  margin: 0; white-space: pre;
}
.pc-cover--amber .pc-code { color: rgba(15,23,42,.7); }
.pc-cover-title { margin-top: auto; }
.pc-cover-cat {
  display:inline-block; font-size:.65rem; letter-spacing:.18em; text-transform:uppercase;
  font-weight:600; opacity:.85; margin-bottom:.5rem;
}
.pc-cover-h { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; margin: 0 0 .35rem; }
.pc-cover-sub { font-size:.85rem; opacity:.85; margin:0; }

.pc-meta-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.5rem; }
.pc-meta { font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.pc-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display:grid; place-items:center; font-size:1rem;
  transition: transform .2s;
}
.pc-arrow:hover { transform: rotate(-12deg) scale(1.05); }
.pc-title { font-family: var(--font-display); font-size: 1.25rem; margin: .1rem 0 .5rem; }
.pc-desc  { font-size:.92rem; color:var(--muted); margin-bottom:.85rem; }

@media (max-width: 640px) {
  .pc-cover { min-height: 200px; }
  .pc-code  { font-size: .62rem; top:.85rem; right:1rem; }
  .pc-cover-h { font-size: 1.35rem; }
}

/* ============================================================
   TECH STACK ECOSYSTEM — orbit + bars (NEW, complements existing tools)
   ============================================================ */
.ecosystem { margin-top: 4rem; }
.ecosystem .eco-head-block { text-align:center; margin-bottom: 2.5rem; }
.ecosystem .eco-badge {
  display:inline-block; padding:.4rem 1rem; border-radius:999px;
  background: hsl(210 70% 55% / .12); color: var(--primary);
  font-size:.8rem; font-weight:500; margin-bottom:.75rem;
}
.eco-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .eco-grid { grid-template-columns: 1fr; gap: 2rem; } }

.orbit-wrap { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.orbit-ring {
  position:absolute; inset:0;
  border-radius:50%;
  background:
    radial-gradient(circle, transparent 38%, transparent 39%),
    repeating-radial-gradient(circle, transparent 0 38px, hsl(220 15% 75% / .35) 38px 39px);
}
.orbit-core {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width: 92px; height: 92px; border-radius: 18px;
  background: var(--grad-primary); color:#fff;
  display:grid; place-items:center; text-align:center;
  box-shadow: 0 18px 40px -10px hsl(210 70% 55% / .55);
}
.orbit-core .core-glyph { font-family: ui-monospace, Menlo, monospace; font-size:1.4rem; line-height:1; }
.orbit-core .core-lbl { font-size:.6rem; letter-spacing:.22em; margin-top:.3rem; opacity:.9; }

.orb-node {
  position:absolute; top:50%; left:50%;
  transform: translate(-50%,-50%) rotate(var(--a)) translateY(calc(-1 * var(--r, 42%))) rotate(calc(-1 * var(--a)));
  background: var(--card); border:1px solid var(--border);
  padding:.4rem .75rem; border-radius:999px;
  font-size:.78rem; font-weight:600; color: var(--tone);
  box-shadow: var(--shadow-card);
  white-space:nowrap;
}
.orb-node:nth-child(odd) { --r: 44%; }
.orb-node:nth-child(even) { --r: 32%; }

.eco-bars { display:grid; gap: .9rem; }
.eco-row { background: var(--card); border:1px solid var(--border); border-radius: .85rem; padding: .85rem 1rem; box-shadow: var(--shadow-card); }
.eco-head { display:flex; align-items:center; gap:.75rem; margin-bottom:.55rem; }
.eco-code {
  width: 30px; height: 30px; border-radius: 8px;
  display:grid; place-items:center; font-weight:700; font-size:.72rem; letter-spacing:.05em;
}
.eco-name { flex:1; font-weight:600; font-size:.95rem; }
.eco-pct  { font-size:.8rem; color: var(--muted); font-weight:600; }
.eco-bar  { height:6px; background: var(--mutedbg); border-radius:999px; overflow:hidden; }
.eco-fill { height:100%; width:0; border-radius:999px; transition: width 1.2s ease; }
.eco-row.in-view .eco-fill { width: var(--w); }

/* ============================================================
   CONTACT CARD REDESIGN — replaces ONLY the "Let's build something" box
   ============================================================ */
.contact-card {
  background: #0f172a; color:#e5e7eb; border-radius: 1.25rem;
  padding: 2.25rem; margin-bottom: 2rem;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.5);
  position:relative; overflow:hidden;
}
.contact-card::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events:none;
}
.contact-card > * { position:relative; }
.cc-status {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.4rem .9rem; border-radius:999px;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  font-size:.78rem; color:#cbd5e1; margin-bottom: 1.25rem;
}
.cc-status::before { content:""; width:8px; height:8px; border-radius:50%; background:#10b981; box-shadow:0 0 0 4px rgba(16,185,129,.18); }
.cc-title { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.2rem); line-height:1.05; color:#fff; margin: 0 0 1rem; }
.cc-title em { color:#f59e0b; font-style:italic; }
.cc-lead { color:#cbd5e1; max-width: 30rem; margin-bottom: 1.5rem; }
.cc-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-bottom: 2rem; }
.cc-btn-primary, .cc-btn-ghost {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.8rem 1.25rem; border-radius:999px;
  font-weight:600; font-size:.9rem; transition: transform .2s, background .2s;
}
.cc-btn-primary { background:#fff; color:#0f172a; }
.cc-btn-primary:hover { transform: translateY(-2px); }
.cc-btn-ghost { background: rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.18); }
.cc-btn-ghost:hover { background: rgba(255,255,255,.14); }

.cc-grid {
  display:grid; grid-template-columns: 1fr 1fr; gap: .85rem;
}
@media (max-width: 640px) { .cc-grid { grid-template-columns: 1fr; } }
.cc-tile {
  background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08);
  border-radius: .85rem; padding: 1rem 1.1rem;
  display:flex; flex-direction:column; gap:.85rem;
  transition: background .2s, transform .2s;
}
.cc-tile:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.cc-tile-top { display:flex; align-items:center; justify-content:space-between; }
.cc-tile-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.08); display:grid; place-items:center;
  color:#fff; font-weight:700; font-size:.85rem;
}
.cc-tile-arrow { color:#94a3b8; font-size:.95rem; }
.cc-tile-lbl { font-size:.65rem; letter-spacing:.18em; color:#94a3b8; text-transform:uppercase; }
.cc-tile-val { color:#fff; font-weight:600; font-size:.9rem; word-break:break-all; }
.cc-tile--wide { grid-column: 1 / -1; }

/* ============================================================
   FEATURED PROJECTS — bento layout (first card spans 2 rows)
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
}
.bento-grid .proj-card--template { animation: fadeUp .6s ease both; }
.bento-grid .proj-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-grid .proj-card--featured .pc-cover { min-height: 480px; }
.bento-grid .proj-card--featured .pc-cover-h { font-size: clamp(2rem, 3.4vw, 3rem); }
.bento-grid .proj-card--featured .pc-cover-sub { font-size: 1rem; }
.bento-grid .proj-card--featured .pc-code { font-size: .82rem; }

@media (max-width: 960px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid .proj-card--featured { grid-column: span 2; grid-row: span 1; }
  .bento-grid .proj-card--featured .pc-cover { min-height: 320px; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; gap: 1rem; }
  .bento-grid .proj-card--featured { grid-column: span 1; }
  .bento-grid .proj-card--featured .pc-cover { min-height: 260px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ORBIT ROTATION — animate the tech-stack ring
   ============================================================ */
#orbitRing {
  position: absolute; inset: 0;
  animation: orbitSpin 40s linear infinite;
  transform-origin: 50% 50%;
}
#orbitRing .orb-node {
  animation: orbitCounter 40s linear infinite;
}
@keyframes orbitSpin    { to { transform: rotate(360deg); } }
@keyframes orbitCounter {
  from { transform: translate(-50%,-50%) rotate(var(--a)) translateY(calc(-1 * var(--r,42%))) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(var(--a)) translateY(calc(-1 * var(--r,42%))) rotate(-360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #orbitRing, #orbitRing .orb-node { animation: none; }
}
.orbit-core {
  z-index: 2;
  animation: corePulse 3.6s ease-in-out infinite;
}
@keyframes corePulse {
  0%,100% { box-shadow: 0 18px 40px -10px hsl(210 70% 55% / .55), 0 0 0 0 hsl(210 70% 55% / .35); }
  50%     { box-shadow: 0 18px 40px -10px hsl(210 70% 55% / .55), 0 0 0 18px hsl(210 70% 55% / 0); }
}
