/* ============================================================
   DIY ROBOTICS  —  Professional White / Black / Grey Theme
   ============================================================ */

/* ── Variables ── */
:root {
  --white:        #ffffff;
  --off-white:    #f7f7f8;
  --light:        #f0f0f1;
  --border:       #e2e2e4;
  --mid:          #c8c8cc;
  --body:         #3d3d3d;
  --sub:          #6b6b72;
  --dark:         #1a1a1a;
  --black:        #0d0d0d;
  --accent:       #3d1a6e;   /* brand purple */
  --accent-hover: #2e1254;
  --accent-light: #f2eefa;
  --font:         'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --radius:       8px;
  --radius-sm:    4px;
  --shadow-xs:    0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow:       0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.13);
  --tr:           all .22s ease;
  --w:            1100px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html  { scroll-behavior:smooth; font-size:16px; }
body  {
  font-family: var(--font);
  background:  var(--white);
  color:       var(--body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img   { max-width:100%; display:block; }
a     { color:inherit; text-decoration:none; transition:var(--tr); }
ul    { list-style:none; }
button { font-family:var(--font); cursor:pointer; }

::-webkit-scrollbar       { width:5px; }
::-webkit-scrollbar-track { background:#f4f4f4; }
::-webkit-scrollbar-thumb { background:var(--mid); border-radius:3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { color:var(--dark); font-weight:700; line-height:1.18; }
h1 { font-size:clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size:clamp(1.55rem, 3.2vw, 2.15rem); }
h3 { font-size:clamp(1.1rem,  2vw,  1.35rem); }
h4 { font-size:1.05rem; }
p  { color:var(--body); }

.eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.rule {
  width:36px; height:3px;
  background:var(--accent);
  border-radius:2px;
  margin:14px 0 0;
}
.rule--center { margin:14px auto 0; }

/* ── Layout ── */
.wrap        { max-width:var(--w); margin:0 auto; padding:0 28px; }
.section     { padding:96px 0; }
.sec-alt     { background:var(--off-white); }
.sec-dark    { background:var(--dark); }
.sec-black   { background:var(--black); }
.sec-hdr     { text-align:center; margin-bottom:56px; }
.sec-hdr p   { max-width:560px; margin:14px auto 0; }

/* ── Grid helpers ── */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:32px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }

/* ── Buttons ── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 28px; border-radius:var(--radius);
  font-size:.9rem; font-weight:600; border:2px solid transparent;
  transition:var(--tr); white-space:nowrap; font-family:var(--font);
}
.btn-primary { background:var(--accent); color:var(--white); border-color:var(--accent); }
.btn-primary:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.btn-dark    { background:var(--dark);   color:var(--white); border-color:var(--dark); }
.btn-dark:hover { background:var(--accent); border-color:var(--accent); }
.btn-outline { background:transparent; color:var(--dark); border-color:var(--dark); }
.btn-outline:hover { background:var(--dark); color:var(--white); }
.btn-outline-white { background:transparent; color:var(--white); border-color:rgba(255,255,255,.45); }
.btn-outline-white:hover { background:rgba(255,255,255,.1); border-color:var(--white); }
.btn-sm  { padding:9px 20px; font-size:.84rem; }
.btn-lg  { padding:15px 36px; font-size:1rem; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position:fixed; bottom:0; left:0; right:0; z-index:9999;
  background:var(--black);
  padding:18px 28px;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
  border-top:1px solid #1f1f1f;
  box-shadow:0 -4px 24px rgba(0,0,0,.3);
  transform:translateY(0);
  transition:transform .38s ease;
}
#cookie-banner.hide { transform:translateY(115%); pointer-events:none; }
.ck-text { flex:1; min-width:220px; font-size:.83rem; color:#aaa; line-height:1.65; }
.ck-text strong { color:var(--white); }
.ck-text a { color:var(--white); text-decoration:underline; opacity:.7; }
.ck-text a:hover { opacity:1; }
.ck-actions { display:flex; gap:10px; flex-shrink:0; flex-wrap:wrap; }
.ck-btn-accept {
  background:var(--white); color:var(--black);
  border:none; padding:10px 24px; border-radius:var(--radius);
  font-size:.84rem; font-weight:700; transition:var(--tr);
}
.ck-btn-accept:hover { background:#e8e8e8; }
.ck-btn-decline {
  background:transparent; color:#777;
  border:1px solid #333; padding:10px 20px; border-radius:var(--radius);
  font-size:.84rem; font-weight:600; transition:var(--tr);
}
.ck-btn-decline:hover { color:var(--white); border-color:#666; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  height:84px; background:var(--white);
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; padding:0 28px;
  transition:var(--tr);
}
.navbar.scrolled { box-shadow:var(--shadow); }
.nav-inner {
  max-width:var(--w); width:100%; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}

/* Logo */
.nav-logo { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.nav-logo img { height:72px; width:auto; object-fit:contain; }
.logo-wordmark { display:flex; flex-direction:column; line-height:1; }
.logo-wordmark .name { font-size:1.05rem; font-weight:800; color:var(--dark); letter-spacing:-.01em; }
.logo-wordmark .tag  { font-size:.6rem;  font-weight:600; color:var(--sub); letter-spacing:.12em; text-transform:uppercase; margin-top:3px; }

/* Links */
.nav-links { display:flex; align-items:center; gap:2px; }
.nav-links a {
  padding:7px 15px; font-size:.88rem; font-weight:500;
  color:var(--sub); border-radius:var(--radius-sm);
}
.nav-links a:hover, .nav-links a.active { color:var(--accent); background:var(--accent-light); }

/* Hamburger */
.hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; padding:5px;
}
.hamburger span { display:block; width:22px; height:2px; background:var(--dark); border-radius:2px; transition:var(--tr); }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  display:none; position:fixed; top:84px; left:0; right:0;
  background:var(--white); border-bottom:1px solid var(--border);
  padding:12px 20px 20px; flex-direction:column; gap:4px;
  z-index:999; box-shadow:var(--shadow);
}
.mobile-nav.open { display:flex; }
.mobile-nav a {
  padding:11px 14px; font-size:.93rem; font-weight:500;
  color:var(--sub); border-radius:var(--radius-sm);
}
.mobile-nav a:hover { background:var(--off-white); color:var(--dark); }
.mobile-nav .m-btn { margin-top:8px; justify-content:center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height:100vh; display:flex; align-items:center;
  padding-top:84px; background:var(--white);
  border-bottom:1px solid var(--border);
}
.hero-inner {
  display:grid; grid-template-columns:1fr 1fr;
  gap:72px; align-items:center; padding:64px 0;
}
.hero-text .eyebrow { margin-bottom:14px; }
.hero-text h1 { margin-bottom:20px; letter-spacing:-.02em; }
.hero-text h1 span { color:var(--accent); }
.hero-text .hero-desc {
  font-size:1.05rem; color:var(--sub); line-height:1.8;
  max-width:480px; margin-bottom:36px;
}
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }

/* ── Hero visual panel ── */
.hero-panel {
  background:var(--off-white); border:1px solid var(--border);
  border-radius:16px; padding:36px 28px;
  display:flex; flex-direction:column; align-items:center; gap:20px;
}
.hero-panel .logo-hero { width:260px; height:auto; object-fit:contain; }
.hero-panel-tag {
  font-size:.7rem; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--sub);
}

.pill-row { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.pill {
  background:var(--white); border:1px solid var(--border);
  padding:5px 14px; border-radius:20px;
  font-size:.72rem; font-weight:600; color:var(--body);
}
.hero-meta {
  width:100%; border-top:1px solid var(--border); padding-top:18px;
  display:flex; flex-direction:column; gap:6px;
}
.hero-meta p { font-size:.78rem; color:var(--sub); display:flex; align-items:flex-start; gap:7px; }
.hero-meta p span { color:var(--accent); flex-shrink:0; }

/* ============================================================
   NUMBERS BAR
   ============================================================ */
.numbers-bar { background:var(--dark); padding:56px 0; }
.numbers-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
  text-align:center;
}
.n-item {}
.n-item .num {
  display:block; font-size:2.4rem; font-weight:800;
  color:var(--white); line-height:1; letter-spacing:-.02em;
}
.n-item .lbl {
  display:block; font-size:.7rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.12em; color:#555;
  margin-top:8px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.about-visual {
  background:var(--off-white); border:1px solid var(--border);
  border-radius:var(--radius); padding:48px 36px;
  text-align:center;
}
.about-visual img { width:190px; height:auto; object-fit:contain; margin:0 auto 20px; }
.about-visual .av-name { font-size:1rem; font-weight:700; color:var(--dark); margin-bottom:4px; }
.about-visual .av-est  { font-size:.78rem; color:var(--sub); margin-bottom:20px; }
.av-tags { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.av-tag  {
  background:var(--accent-light); color:var(--accent);
  padding:5px 13px; border-radius:20px;
  font-size:.72rem; font-weight:700;
}
.about-copy h2 { margin-bottom:12px; letter-spacing:-.01em; }
.about-copy .rule { margin-bottom:22px; }
.about-copy p { margin-bottom:14px; line-height:1.8; }
.about-copy p:last-of-type { margin-bottom:28px; }
.about-points { display:flex; flex-direction:column; gap:14px; margin-bottom:32px; }
.ap { display:flex; gap:14px; align-items:flex-start; }
.ap-icon {
  width:40px; height:40px; background:var(--accent-light);
  border-radius:var(--radius); display:flex; align-items:center;
  justify-content:center; flex-shrink:0;
}
.ap-icon svg { width:20px; height:20px; }
.ap-copy h5 { font-size:.9rem; margin-bottom:3px; }
.ap-copy p  { font-size:.85rem; color:var(--sub); }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px; }
.svc-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius); padding:30px 26px;
  transition:var(--tr);
}
.svc-card:hover { border-color:#b8b8c0; box-shadow:var(--shadow); transform:translateY(-3px); }
.svc-icon {
  width:46px; height:46px; background:var(--accent-light);
  border-radius:var(--radius); display:flex; align-items:center;
  justify-content:center; margin-bottom:16px; flex-shrink:0;
}
.svc-icon svg { width:22px; height:22px; }
.svc-card h4 { margin-bottom:9px; font-size:.97rem; }
.svc-card p  { font-size:.86rem; color:var(--sub); line-height:1.7; margin-bottom:16px; }
.svc-list { display:flex; flex-direction:column; gap:6px; }
.svc-list li { font-size:.82rem; color:var(--sub); display:flex; align-items:flex-start; gap:8px; }
.svc-list li::before { content:"—"; color:var(--accent); flex-shrink:0; font-weight:700; }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.why-card {
  border:1px solid var(--border); border-radius:var(--radius);
  padding:28px 24px; background:var(--white); transition:var(--tr);
}
.why-card:hover { border-color:var(--mid); box-shadow:var(--shadow-sm); }
.why-num {
  font-size:2rem; font-weight:800; color:var(--border);
  line-height:1; margin-bottom:14px; font-variant-numeric:tabular-nums;
}
.why-card h4 { margin-bottom:8px; }
.why-card p  { font-size:.86rem; color:var(--sub); line-height:1.7; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background:var(--accent); padding:80px 0;
  text-align:center;
}
.cta-strip h2 { color:var(--white); margin-bottom:12px; }
.cta-strip p  { color:rgba(255,255,255,.75); max-width:500px; margin:0 auto 32px; font-size:1rem; }
.cta-actions  { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.ind-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius); padding:24px 20px;
  text-align:center; transition:var(--tr);
}
.ind-card:hover { border-color:var(--mid); box-shadow:var(--shadow-xs); transform:translateY(-2px); }
.ind-card .ind-icon {
  width:40px; height:40px; display:flex; align-items:center;
  justify-content:center; margin:0 auto 10px;
}
.ind-card .ind-icon svg { width:28px; height:28px; }
.ind-card h5 { font-size:.88rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background:var(--black); color:#999; padding:72px 0 0; }
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr;
  gap:48px; padding-bottom:52px;
  border-bottom:1px solid #1a1a1a;
}

/* Footer brand column */
.f-brand .footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 16px;
    transform: scale(1.8);
}
.f-brand p { font-size:.84rem; color:#666; line-height:1.75; max-width:300px; margin-bottom:24px; }
.f-address { font-size:.78rem; color:#555; line-height:1.8; margin-bottom:24px; }
.f-address strong { color:#888; }

/* Footer newsletter */
.f-nl h5 { font-size:.82rem; color:var(--white); font-weight:700; margin-bottom:5px; }
.f-nl p  { font-size:.76rem; color:#555; margin-bottom:12px; }
.nl-wrap { display:flex; }
.nl-wrap input[type="email"] {
  flex:1; background:#141414; border:1px solid #222; border-right:none;
  border-radius:var(--radius) 0 0 var(--radius); padding:10px 13px;
  color:var(--white); font-size:.84rem; font-family:var(--font); outline:none;
}
.nl-wrap input::placeholder { color:#3a3a3a; }
.nl-wrap input:focus { border-color:#333; }
.nl-wrap button {
  background:var(--accent); color:var(--white); border:1px solid var(--accent);
  border-radius:0 var(--radius) var(--radius) 0; padding:10px 16px;
  font-size:.82rem; font-weight:700; white-space:nowrap; transition:var(--tr);
}
.nl-wrap button:hover { background:var(--accent-hover); }

/* Footer nav columns */
.f-col h5 { font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; color:#3a3a3a; margin-bottom:16px; }
.f-col ul  { display:flex; flex-direction:column; gap:9px; }
.f-col ul li a { font-size:.84rem; color:#666; }
.f-col ul li a:hover { color:var(--white); }

/* Footer bottom */
.footer-bottom {
  padding:20px 0; display:flex; align-items:center;
  justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.footer-bottom p { font-size:.76rem; color:#333; }
.fb-links { display:flex; gap:18px; }
.fb-links a { font-size:.76rem; color:#333; }
.fb-links a:hover { color:#888; }

/* ============================================================
   CONNECT PAGE
   ============================================================ */
.page-hero {
  padding:136px 0 64px; background:var(--off-white);
  border-bottom:1px solid var(--border); text-align:center;
}
.page-hero h1 { margin-bottom:14px; }
.page-hero p  { max-width:520px; margin:0 auto; color:var(--sub); }

.connect-layout { display:grid; grid-template-columns:1fr 1.55fr; gap:64px; align-items:start; }

/* Left info */
.conn-info h3 { margin-bottom:10px; }
.conn-info > p { font-size:.94rem; color:var(--sub); line-height:1.8; margin-bottom:32px; }
.ci   { display:flex; gap:14px; align-items:flex-start; margin-bottom:20px; }
.ci-ic {
  width:42px; height:42px; background:var(--accent-light);
  border-radius:var(--radius); display:flex; align-items:center;
  justify-content:center; font-size:1rem; flex-shrink:0;
}
.ci-tx h5 { font-size:.7rem; text-transform:uppercase; letter-spacing:.1em; color:var(--sub); margin-bottom:3px; }
.ci-tx p, .ci-tx a { font-size:.9rem; color:var(--dark); font-weight:500; }
.ci-tx a:hover { color:var(--accent); }
.ci-tx .ci-note { font-size:.78rem; color:var(--sub); font-weight:400; margin-top:2px; }

/* Subscribe card */
.sub-card {
  background:var(--accent); border-radius:var(--radius);
  padding:28px; margin-top:32px;
}
.sub-card h4 { color:var(--white); margin-bottom:5px; }
.sub-card p  { font-size:.83rem; color:rgba(255,255,255,.68); margin-bottom:16px; }
.sub-wrap { display:flex; }
.sub-wrap input[type="email"] {
  flex:1; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
  border-right:none; border-radius:var(--radius) 0 0 var(--radius);
  padding:10px 13px; color:var(--white); font-size:.84rem; font-family:var(--font); outline:none;
}
.sub-wrap input::placeholder { color:rgba(255,255,255,.3); }
.sub-wrap button {
  background:var(--white); color:var(--accent); border:1px solid var(--white);
  border-radius:0 var(--radius) var(--radius) 0; padding:10px 16px;
  font-size:.82rem; font-weight:700; white-space:nowrap; transition:var(--tr);
}
.sub-wrap button:hover { background:#ece4f8; }

/* Form card */
.form-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius); padding:40px; box-shadow:var(--shadow-sm);
}
.form-card h3 { margin-bottom:5px; }
.form-card .fc-sub { font-size:.85rem; color:var(--sub); margin-bottom:28px; }
.f-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.fg { display:flex; flex-direction:column; gap:6px; margin-bottom:17px; }
.fg label {
  font-size:.7rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.09em; color:var(--body);
}
.fg input, .fg select, .fg textarea {
  background:var(--off-white); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:11px 13px;
  font-size:.9rem; font-family:var(--font); color:var(--dark);
  outline:none; transition:var(--tr); width:100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color:var(--accent); background:var(--white);
  box-shadow:0 0 0 3px rgba(61,26,110,.07);
}
.fg input::placeholder, .fg textarea::placeholder { color:#c4c4c8; }
.fg textarea { resize:vertical; min-height:108px; }
.fg select { -webkit-appearance:none; appearance:none; }
.f-check { display:flex; align-items:flex-start; gap:9px; margin-bottom:16px; }
.f-check input[type="checkbox"] { width:15px; height:15px; margin-top:2px; flex-shrink:0; accent-color:var(--accent); }
.f-check label { font-size:.82rem; color:var(--sub); line-height:1.5; }
.f-check label a { color:var(--accent); text-decoration:underline; }

.form-success {
  display:none; text-align:center; padding:32px 16px;
}
.success-ic {
  width:54px; height:54px; background:var(--accent-light);
  border-radius:50%; display:flex; align-items:center;
  justify-content:center; margin:0 auto 14px; font-size:1.5rem;
}
.form-success h4 { margin-bottom:8px; }
.form-success p  { font-size:.88rem; color:var(--sub); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity:0; transform:translateY(26px);
  transition:opacity .55s ease, transform .55s ease;
}
.fade-up.vis { opacity:1; transform:translateY(0); }

/* Back to top */
#btt {
  position:fixed; bottom:24px; right:24px;
  width:42px; height:42px; background:var(--dark); color:var(--white);
  border:none; border-radius:var(--radius); font-size:1.1rem;
  z-index:80; opacity:0; transform:translateY(12px);
  transition:var(--tr); display:flex; align-items:center; justify-content:center;
}
#btt.vis { opacity:1; transform:translateY(0); }
#btt:hover { background:var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:960px) {
  .hero-inner    { grid-template-columns:1fr; gap:44px; }
  .hero-panel    { max-width:320px; margin:0 auto; }
  .hero-text .hero-desc { max-width:100%; }
  .about-grid    { grid-template-columns:1fr; gap:40px; }
  .why-grid      { grid-template-columns:1fr 1fr; }
  .connect-layout{ grid-template-columns:1fr; gap:40px; }
  .footer-grid   { grid-template-columns:1fr 1fr; }
  .f-brand       { grid-column:1/-1; }
  .numbers-grid  { grid-template-columns:repeat(2,1fr); }
  .grid-3        { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .section       { padding:60px 0; }
  .nav-links, .nav-cta { display:none; }
  .hamburger     { display:flex; }
  .hero-inner    { text-align:center; }
  .hero-actions  { justify-content:center; }
  .rule          { margin:14px auto 0; }
  .f-row         { grid-template-columns:1fr; }
  .why-grid      { grid-template-columns:1fr; }
  .footer-grid   { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .form-card     { padding:24px 18px; }
  #cookie-banner { flex-direction:column; }
  .nl-wrap       { flex-direction:column; }
  .nl-wrap input { border-right:1px solid #222; border-bottom:none; border-radius:var(--radius) var(--radius) 0 0; }
  .nl-wrap button { border-radius:0 0 var(--radius) var(--radius); }
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */

/* Filter buttons */
.proj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.pf-btn {
  padding: 8px 22px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--sub);
  border-radius: 20px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  font-family: var(--font);
}
.pf-btn:hover  { border-color: var(--accent); color: var(--accent); }
.pf-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Project grid */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* Project card */
.proj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--tr);
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  border-color: #b0b0ba;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.proj-card.hidden { display: none; }

/* Project card header band */
.proj-head {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
}
.proj-head--ai       { background: #f0eafa; }
.proj-head--robotics { background: #eaf0fa; }
.proj-head--drone    { background: #eaf5f0; }
.proj-head--medical  { background: #faeaed; }

/* Professional illustrated visual */
.proj-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-visual svg { width: 80px; height: 80px; }

.proj-cat-badge {
  position: absolute;
  top: 10px; left: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
}

/* Project card body */
.proj-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.proj-body h4 { font-size: .95rem; margin-bottom: 8px; color: var(--dark); }
.proj-body p  { font-size: .83rem; color: var(--sub); line-height: 1.65; margin-bottom: 14px; flex: 1; }

/* Tech tag pills */
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.proj-tags span {
  background: var(--accent-light);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: .04em;
}

@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
}
