:root{
  --bg: #f7f7f5;
  --panel: #ffffff;
  --ink: #191c22;
  --ink-soft: #565c6b;
  --line: #e6e5e1;
  --accent: #3d4fe0;
  --accent-soft: #eef0fd;
  --flag: #de6a3f;
  --flag-soft: #fdece3;
  --ok: #1c8a6d;
  --ok-soft: #e5f5ef;
  --dot: #dedcd6;
  --muted: #9a9c9a;
  --shadow-color: rgba(20,20,25,.05);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,20,25,.04), 0 8px 24px rgba(20,20,25,.05);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
:root[data-theme="dark"]{
  --bg: #14161c;
  --panel: #1c1f28;
  --ink: #f1f2f4;
  --ink-soft: #a7acb9;
  --line: #2b303c;
  --accent: #7c88ff;
  --accent-soft: #262b4a;
  --flag: #ea8f68;
  --flag-soft: #3a2620;
  --ok: #3fc79a;
  --ok-soft: #163328;
  --dot: #242833;
  --muted: #7d818c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  transition: background-color .25s ease, color .25s ease;

  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
img{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer;}

/* ---------- Layout shell ---------- */
.shell{ display:flex; min-height:100vh; }

.sidebar{
  width: 272px;
  flex-shrink:0;
  padding: 28px 20px;
  display:flex;
  flex-direction:column;
  border-right: 1px solid var(--line);
  position: sticky;
  top:0;
  height:100vh;
}
.profile{ display:flex; align-items:center; gap:12px; padding: 6px 8px 22px; }
.theme-toggle{
  width:36px; height:36px; border-radius:50%; background:var(--panel);
  border:1px solid var(--line); font-size:15px; display:flex; align-items:center;
  justify-content:center; flex-shrink:0; transition:border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover{ border-color:var(--accent); transform:rotate(15deg); }
.sidebar .profile .theme-toggle{ margin-left:auto; }
.profile img{ width:40px; height:40px; border-radius:50%; object-fit:cover; }
.profile-name{ font-family: var(--font-display); font-weight:700; font-size:15px; }
.profile-role{ font-size:12px; color:var(--ink-soft); }

nav.mainnav{ display:flex; flex-direction:column; gap:2px; }
nav.mainnav button{
  display:flex; align-items:center; gap:10px;
  background:none; border:none; text-align:left;
  padding:10px 12px; border-radius:10px; width:100%;
  font-size:14.5px; font-weight:500; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
nav.mainnav button:hover{ background: var(--panel); color:var(--ink); }
nav.mainnav button.active{ background: var(--accent-soft); color: var(--accent); font-weight:600; }
nav.mainnav .icon{ width:17px; text-align:center; font-size:14px; }

.side-label{ font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding: 20px 12px 8px; }

.proj-dropdown-toggle{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  background:none; border:none; text-align:left; padding:14px 12px 8px;
  font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:600;
}
.proj-dropdown-toggle .chevron{ transition:transform .2s ease; font-size:12px; }
.proj-dropdown-toggle.open .chevron{ transform:rotate(180deg); }
.proj-list{ display:flex; flex-direction:column; gap:1px; max-height:0; overflow:hidden; transition:max-height .25s ease; }
.proj-list.open{ max-height:260px; }
.proj-list button{
  display:flex; align-items:center; gap:9px; width:100%;
  background:none;border:none;text-align:left;
  padding:8px 12px; border-radius:9px; font-size:13.5px; color:var(--ink-soft);
}
.proj-list button:hover{ background:var(--panel); color:var(--ink); }
.proj-list .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); flex-shrink:0; }

.sidebar-foot{ margin-top:auto; display:flex; flex-direction:column; gap:12px; padding-top:16px; }
.li-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid var(--line); border-radius:11px; padding:10px;
  font-weight:600; font-size:13.5px; background:var(--panel);
}
.li-btn:hover{ border-color: var(--accent); color:var(--accent); }

.topbar{ display:none; }

.content{ flex:1; min-width:0; padding: 56px 64px; max-width: 1180px; }

.page{ display:none; animation: fadein .25s ease; }
.page.active{ display:block; }
@keyframes fadein{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;} }

.eyebrow{ font-family:var(--font-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; display:block;}
h1.page-title{ font-family:var(--font-display); font-size:40px; font-weight:700; line-height:1.15; margin-bottom:14px; }
.lede{ font-size:16.5px; color:var(--ink-soft); max-width:640px; line-height:1.6; margin-bottom: 34px; text-align:justify;}

.card{ background:var(--panel); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }

/* ---------- Overview / Hero ---------- */
.hero{ padding: 46px; display:grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items:center; }
.hero h1{ font-family:var(--font-display); font-size:44px; line-height:1.14; font-weight:700; margin-bottom:18px;}
.hero h1 .hl{ color:var(--accent); }
.hero p{ color:var(--ink-soft); font-size:16px; line-height:1.65; margin-bottom:26px; max-width:540px;}
.btn-row{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{ padding: 13px 22px; border-radius:11px; font-weight:600; font-size:14.5px; border:1px solid transparent; }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:#3140c4; }
.btn-ghost{ background:var(--panel); border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }

.polaroid{ position:relative; }
.polaroid .frame{ background:#fff; padding:14px 14px 40px; border-radius:6px; box-shadow: 0 20px 40px rgba(20,20,25,.14); transform: rotate(2.5deg); }
.polaroid .frame img{ border-radius:2px; aspect-ratio: 4/5; object-fit:cover; width:100%; }
.polaroid .tag{ position:absolute; bottom:14px; right:-6px; background:var(--accent); color:#fff; font-size:12px; font-weight:600; padding:8px 14px; border-radius:8px; box-shadow: var(--shadow); }
.photo-hover{ overflow:hidden; }
.photo-hover img{ transition: transform .45s ease; }
.photo-hover:hover img{ transform:scale(1.06); }
.tilt-l{ transform:rotate(-1.1deg); }
.tilt-r{ transform:rotate(1.1deg); }
.tilt-l:hover, .tilt-r:hover{ transform:rotate(0deg) translateY(-2px); transition:transform .2s ease; }

.how-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.how-card{ padding:20px; position:relative; }
.how-n{ font-family:var(--font-display); font-size:26px; font-weight:800; color:var(--accent-soft); -webkit-text-stroke:1.4px var(--accent); display:block; margin-bottom:10px; }
.how-card h4{ font-family:var(--font-display); font-size:14px; margin-bottom:8px; }
.how-card p{ font-size:12.8px; color:var(--ink-soft); line-height:1.55; }

.cta-banner{ background:#12141a; color:#fff; border-radius:var(--radius); padding:46px 30px; text-align:center; }
.cta-banner h2{ font-family:var(--font-display); font-size:26px; font-weight:700; margin-bottom:10px; }
.cta-banner p{ color:#c7c9d3; font-size:14.5px; margin-bottom:22px; }
.cta-banner .btn-ghost{ background:transparent; border-color:#3a3d47; color:#fff; }
.cta-banner .btn-ghost:hover{ border-color:#fff; }

.filter-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:26px; }
.filter-tab{ background:var(--panel); border:1px solid var(--line); padding:9px 16px; border-radius:20px; font-size:13px; font-weight:600; color:var(--ink-soft); }
.filter-tab.active{ background:#12141a; border-color:#12141a; color:#fff; }
.filter-tab:hover:not(.active){ border-color:var(--accent); color:var(--accent); }
.work-cat p{ margin-bottom:8px; }
.work-cat-tech{ font-family:var(--font-mono); font-size:11px; color:var(--muted); }

.card-links{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.view-link{ font-size:12.5px; font-weight:600; color:var(--ok); }
.more-github{ text-align:center; margin-top:30px; }

.case-meta{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:16px 20px; margin-bottom:22px; }
.case-meta div{ font-size:13px; }
.case-meta span{ display:block; font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-bottom:3px; }
.case-link-demo{ color:var(--ok) !important; border-color:var(--ok) !important; }

.future-upgrades{ margin-bottom:22px; border:1px solid var(--line); border-radius:12px; padding:14px 18px; background:var(--panel); }
.future-upgrades summary{ cursor:pointer; font-weight:600; font-size:13.5px; }
.future-upgrades ul{ margin-top:12px; padding-left:4px; }
.future-upgrades li{ font-size:13px; color:var(--ink-soft); line-height:1.6; padding-left:16px; position:relative; margin-bottom:6px; }
.future-upgrades li::before{ content:"—"; position:absolute; left:0; color:var(--accent); }

.case-nav{ display:flex; justify-content:space-between; margin-top:26px; padding-top:20px; border-top:1px solid var(--line); }
.case-nav-btn{ background:none; border:1px solid var(--line); border-radius:9px; padding:9px 16px; font-size:13px; font-weight:600; color:var(--ink-soft); }
.case-nav-btn:hover{ border-color:var(--accent); color:var(--accent); }

.about-photo-single{ max-width:320px; }
.about-photo-single .frame{ background:#fff; padding:14px 14px 30px; border-radius:8px; box-shadow:0 16px 34px rgba(20,20,25,.16); }
.about-photo-single img{ width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:2px; }

.tech-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.tech-item{ background:#ffffff; border:1px solid var(--line); border-radius:14px; padding:18px 10px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.tech-item img{ width:26px; height:26px; }
.tech-item span{ font-size:11px; color:var(--ink-soft); font-weight:600; }

.tech-marquee{
  overflow:hidden; position:relative; width:100%; height:100px;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tech-track-wrap{
  display:flex; flex-flow:row nowrap; align-items:flex-start;
  width:max-content; animation:tech-scroll 34s linear infinite;
}
.tech-track{ display:flex; flex-flow:row nowrap; gap:14px; padding-right:14px; flex-shrink:0; }
.tech-marquee .tech-item{ flex-shrink:0; flex-grow:0; width:100px; }
@keyframes tech-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.tech-marquee:hover .tech-track-wrap{ animation-play-state:paused; }
@media (prefers-reduced-motion: reduce){ .tech-track-wrap{ animation:none; } }

.facts-card{ padding:6px 24px; }
.fact-row{ display:flex; justify-content:space-between; padding:14px 0; border-top:1px solid var(--line); gap:20px; }
.fact-row:first-child{ border-top:none; }
.fact-label{ font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.fact-val{ font-size:13.5px; font-weight:600; text-align:right; }

.role-left{ display:flex; align-items:flex-start; gap:14px; }
.role-logo{ width:38px; height:38px; border-radius:9px; object-fit:contain; background:#fff; border:1px solid var(--line); padding:4px; flex-shrink:0; }

.role-track{ margin-top:16px; padding-top:16px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:20px; }
.track-item{ padding-left:20px; border-left:2px solid var(--line); position:relative; }
.track-item::before{ content:""; position:absolute; left:-5px; top:4px; width:8px; height:8px; border-radius:50%; background:#b8bac2; }
.track-top{ display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:8px; }
.track-role{ font-weight:600; font-size:14px; }
.track-when{ font-family:var(--font-mono); font-size:11.5px; color:var(--muted); white-space:nowrap; }
.track-bullets{ display:flex; flex-direction:column; gap:6px; }
.track-bullets li{ font-size:13px; color:var(--ink-soft); line-height:1.55; padding-left:14px; position:relative; }
.track-bullets li::before{ content:"•"; position:absolute; left:0; color:var(--accent); font-size:16px; line-height:1; top:1px; }

.edu-logo{ width:44px; height:44px; object-fit:contain; border-radius:9px; background:#fff; border:1px solid var(--line); padding:5px; flex-shrink:0; }

.impact-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.impact-stat{ padding:20px; text-align:center; }
.impact-stat b{ display:block; font-family:var(--font-display); font-size:26px; color:var(--accent); }
.impact-stat span{ font-size:12px; color:var(--ink-soft); }
.industries-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }

.section-gap{ margin-top:56px; }
h2.section-title{ font-family:var(--font-display); font-size:26px; font-weight:700; margin-bottom:20px; }

.bring-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.bring-card{ border-radius: var(--radius); padding:22px; color:#20222b; }
.bring-card h3{ font-family: var(--font-display); font-size:15.5px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; color:#20222b; }
.bring-card li{ font-size:13.7px; padding:7px 0; border-top:1px solid rgba(0,0,0,.06); color:#3a3d47; }
.bring-card li:first-of-type{ border-top:none; }
.bring-1{ background: #fbeee0; }
.bring-2{ background: #e4ecff; }
.bring-3{ background: #fbe4ea; }

/* work category cards */
.work-cat-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.work-cat{
  padding:20px; color:#20222b; transition: transform .3s ease, box-shadow .3s ease;
  transform: rotate(-1.5deg);
}
.work-cat:nth-child(2){ transform: rotate(2deg); }
.work-cat:nth-child(3){ transform: rotate(-2deg); }
.work-cat:nth-child(4){ transform: rotate(1.5deg); }
.work-cat:hover{ transform: rotate(0deg) translateY(-3px); box-shadow:0 16px 32px rgba(20,20,25,.14); }
.work-cat h3{ font-family:var(--font-display); font-size:14.5px; font-weight:700; margin-bottom:8px; color:#20222b; }
.work-cat p{ font-size:13px; color:#3a3d47; line-height:1.55; text-align:justify; }
.work-cat-1{ background:#fbeee0; border-color:#f0dcc2; }
.work-cat-2{ background:#e4ecff; border-color:#cdd9fb; }
.work-cat-3{ background:#fbe4ea; border-color:#f4ccd8; }
.work-cat-4{ background:#e2f5ec; border-color:#c6e9d8; }
.work-cat-1 .work-cat-tech{ color:#8a6a44; }
.work-cat-2 .work-cat-tech{ color:#4b58a8; }
.work-cat-3 .work-cat-tech{ color:#a4506a; }
.work-cat-4 .work-cat-tech{ color:#3d8563; }

/* experience mini + full */
.exp-row{ display:flex; align-items:center; justify-content:space-between; padding:16px 4px; border-top:1px solid var(--line); gap:16px; }
.exp-row:first-child{ border-top:none; }
.exp-left{ display:flex; align-items:center; gap:14px; }
.exp-logo{ width:42px; height:42px; border-radius:10px; background:#ffffff; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:14px; flex-shrink:0; overflow:hidden; }
.exp-logo img{ width:100%; height:100%; object-fit:contain; padding:5px; }
.exp-role{ font-weight:600; font-size:15px; }
.exp-co{ font-size:13.3px; color:var(--ink-soft); }
.exp-meta{ font-size:12.5px; color:var(--muted); text-align:right; font-family:var(--font-mono); white-space:nowrap; }
.see-full{ display:inline-flex; align-items:center; gap:8px; margin-top:18px; }

.highlight-item{ display:grid; grid-template-columns: 1fr .8fr; gap:30px; align-items:center; padding:30px 0; border-top:1px solid var(--line); }
.highlight-item:first-child{ border-top:none; padding-top:0; }
.hl-tag{ font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); }
.hl-title{ font-family:var(--font-display); font-size:22px; font-weight:700; margin:8px 0 10px; }
.hl-desc{ font-size:14px; color:var(--ink-soft); line-height:1.6; margin-bottom:14px;  text-align:justify;}
.hl-link{ color:var(--accent); font-weight:600; font-size:14px; background:none; border:none; padding:0; }
.hl-thumb{ border-radius:14px; overflow:hidden; border:1px solid var(--line); aspect-ratio:16/10; }
.hl-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top; }

/* testimonial */
.testi-wrap{ position:relative; overflow:hidden; padding: 30px 46px; }
.testi-slide{ display:none; }
.testi-slide.active{ display:block; }
.testi-quote{ font-size:16.5px; line-height:1.65; margin-bottom:18px; font-family: var(--font-display); font-weight:500; text-align:justify; }
.testi-person{ display:flex; align-items:center; gap:12px; }
.testi-avatar-img{ width:44px; height:44px; border-radius:50%; object-fit:cover; flex-shrink:0; display:block; }
.testi-avatar-link{ width:44px; height:44px; flex-shrink:0; display:block; border-radius:50%; overflow:hidden; }
.testi-name{ font-weight:700; font-size:14px; }
.testi-role{ font-size:12.5px; color:var(--ink-soft); }
.testi-dots{ display:flex; gap:7px; justify-content:center; margin-top:22px; }
.testi-dots button{ width:7px; height:7px; border-radius:50%; border:none; background:var(--line); padding:0; }
.testi-dots button.active{ background:var(--accent); width:20px; border-radius:5px; transition: all .2s; }
.testi-empty{ color:var(--ink-soft); font-style:italic; font-size:15px; }

/* ---------- Work grid ---------- */
.work-grid{ display:grid; grid-template-columns: 1fr; gap:22px; }
.work-card{ padding:16px; display:flex; flex-direction:column; gap:14px; }
.work-card .work-thumb-wide{ display:flex; }
.work-card h3{ font-family:var(--font-display); font-weight:700; font-size:17px; }
.work-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.55;  text-align:justify;}
.work-card .view{ color:var(--accent); font-weight:600; font-size:13.5px; background:none; border:none; padding:0; text-align:left; }
.work-card .stack{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{ font-family:var(--font-mono); font-size:11px; background:var(--bg); border:1px solid var(--line); padding:3px 9px; border-radius:20px; color:var(--ink-soft); }
.work-thumb{ border-radius:12px; overflow:hidden; border:1px solid var(--line); aspect-ratio:16/10; background:#0e1420; }
.work-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.work-thumb-wide{ aspect-ratio:16/5; position:relative; }

/* ---------- Project detail (case study) ---------- */
.project-case{ display:none; padding:38px 0 0; scroll-margin-top: 40px; }
.project-case.active{ display:block; }
.case-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap; margin-bottom:22px;}
.case-head h3{ font-family:var(--font-display); font-size:26px; font-weight:700; margin-top:6px; }
.case-tagline{ font-size:14px; color:var(--ink-soft); margin-top:10px; max-width:560px; line-height:1.55; }
.case-links{ display:flex; gap:10px; }
.case-links a{ border:1px solid var(--line); padding:8px 14px; border-radius:9px; font-size:13px; font-weight:600; background:var(--panel); }
.case-links a:hover{ border-color:var(--accent); color:var(--accent); }

.case-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-bottom:22px; }
.case-box{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:20px; }
.case-box h4{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; font-family:var(--font-mono); color:var(--flag); margin-bottom:9px; }
.case-box.solution h4{ color: var(--ok); }
.case-box p{ font-size:13.8px; color:var(--ink-soft); line-height:1.6;  text-align:justify;}

.case-stats{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:22px; }
.stat{ background:var(--ok-soft); color:var(--ok); border-radius:11px; padding:12px 16px; }
.stat b{ display:block; font-family:var(--font-display); font-size:18px; }
.stat span{ font-size:11.5px; font-family:var(--font-mono); }

.video-embed{ position:relative; width:100%; padding-top:56.25%; border-radius:14px; overflow:hidden; background:#000; margin-bottom:22px;}
.video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.case-note{ font-size:13.8px; color:var(--ink-soft); line-height:1.65;  text-align:justify;}

/* numbered case study sections, Zahid-style */
.case-section{ margin-bottom:28px; }
.case-section-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.case-num{
  font-family:var(--font-mono); font-size:11px; font-weight:700; color:var(--accent);
  background:var(--accent-soft); width:26px; height:26px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.case-section h4{ font-family:var(--font-display); font-size:15.5px; font-weight:700; }
.case-section p{ font-size:13.8px; color:var(--ink-soft); line-height:1.65; text-align:justify; }
.case-section ul, .case-section ol{ padding-left:20px; margin-top:8px; display:flex; flex-direction:column; gap:8px; }
.case-section li{ font-size:13.6px; color:var(--ink-soft); line-height:1.6; text-align:justify; }
.case-section li b{ color:var(--ink); }
.case-table{ width:100%; border-collapse:collapse; margin-top:6px; font-size:13px; }
.case-table th, .case-table td{ border:1px solid var(--line); padding:9px 12px; text-align:left; vertical-align:top; }
.case-table th{ background:var(--bg); font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.case-table td{ color:var(--ink-soft); font-size:13px; }

/* screenshot gallery */
.shot-gallery{ display:grid; grid-template-columns: repeat(3,1fr); gap:14px; margin-bottom:22px; }
.shot{ background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; padding:0; text-align:left; display:flex; flex-direction:column; position:relative; }
.shot::after{ content:"⤢"; position:absolute; top:8px; right:8px; width:26px; height:26px; background:rgba(20,20,25,.55); color:#fff; border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:13px; pointer-events:none; }
.shot img{ width:100%; aspect-ratio:16/10; object-fit:cover; object-position:top; }
.shot span{ font-size:12px; padding:9px 12px; color:var(--ink-soft); font-weight:500; }
.shot:hover{ border-color:var(--accent); }

/* flow steps for lead routing */
.flow-steps{ display:flex; align-items:stretch; gap:8px; flex-wrap:wrap; margin-bottom:22px; }
.flow-step{ flex:1; min-width:150px; background:var(--accent-soft); border-radius:12px; padding:14px 16px; font-size:13px; font-weight:600; color:var(--accent); display:flex; align-items:center; gap:10px; }
.flow-step span{ width:22px; height:22px; border-radius:50%; background:var(--accent); color:#fff; font-family:var(--font-mono); font-size:11px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.flow-arrow{ display:flex; align-items:center; justify-content:center; color:var(--ink-soft); font-size:16px; padding:0 2px; }

/* ---------- Experience full ---------- */
.role-card{ background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:20px 22px; margin-bottom:14px; }
.role-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.role-title{ font-family:var(--font-display); font-weight:700; font-size:16.5px; }
.role-co{ font-size:13.5px; color:var(--ink-soft); margin-top:2px; }
.role-summary{ font-size:13px; color:var(--ink-soft); margin-top:6px; max-width:480px; line-height:1.5; }
.role-when{ font-family:var(--font-mono); font-size:12px; color:var(--muted); text-align:right; }
.role-toggle{ background:none; border:1px solid var(--line); border-radius:8px; padding:6px 12px; font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-top:12px; }
.role-bullets{ display:none; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.role-bullets.show{ display:block; }
.role-bullets li{ font-size:13.7px; color:var(--ink-soft); line-height:1.6; padding-left:16px; position:relative; margin-bottom:7px; }
.role-bullets li::before{ content:"•"; position:absolute; left:0; color:var(--accent); font-size:16px; line-height:1; top:1px; }

.edu-item{ display:flex; align-items:flex-start; gap:16px; padding:16px 0; border-top:1px solid var(--line); flex-wrap:wrap; }
.edu-item > div:nth-child(2){ flex:1; min-width:200px; }
.edu-item:first-child{ border-top:none; }
.edu-summary{ font-size:12.5px; color:var(--ink-soft); margin-top:6px; max-width:440px; line-height:1.5; }

.cert-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.cert-card{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:16px 18px; display:block; }
.cert-card:hover{ border-color:var(--accent); }
.cert-card h4{ font-size:14px; font-weight:700; margin-bottom:4px; }
.cert-card span{ font-size:12px; color:var(--ink-soft); }

/* about */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:30px; }
.skill-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;}

/* contact */
.contact-card{ padding:40px; display:flex; flex-direction:column; gap:16px; max-width:480px; }
.contact-row{ display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:12px; }
.contact-row:hover{ border-color:var(--accent); }
.contact-row .ico{ width:38px; height:38px; border-radius:10px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; font-weight:700; }

footer.site-footer{ margin-top:60px; padding-top:24px; border-top:1px solid var(--line); display:flex; justify-content:space-between; font-size:12.5px; color:var(--muted); font-family:var(--font-mono); flex-wrap:wrap; gap:10px;}

/* ---------- Project slider (Overview) ---------- */
.slider-wrap{ display:flex; align-items:center; gap:12px; }
.slider-track{
  display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; flex:1; padding:4px 2px 14px;
  -ms-overflow-style:none; scrollbar-width:none;
}
.slider-track::-webkit-scrollbar{ display:none; }
.slide-card{
  scroll-snap-align:start; flex:0 0 auto; width:280px;
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  padding:14px; display:flex; flex-direction:column; gap:10px; box-shadow:var(--shadow);
  transition:transform .25s ease, box-shadow .25s ease;
}
.slide-card:hover{ transform:translateY(-4px); box-shadow:0 12px 28px rgba(20,20,25,.1); }
.slide-thumb{ border-radius:11px; overflow:hidden; border:1px solid var(--line); aspect-ratio:16/10; }
.slide-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.slide-card h4{ font-family:var(--font-display); font-size:15px; font-weight:700; }
.slide-card p{ font-size:12.5px; color:var(--ink-soft); line-height:1.5; flex:1; }
.slide-card .view{ font-size:12.5px; font-weight:600; color:var(--accent); background:none; border:none; text-align:left; padding:0; }
.slider-arrow{
  flex-shrink:0; width:42px; height:42px; border-radius:50%;
  background:var(--panel); border:1px solid var(--line); font-size:20px; color:var(--ink);
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow);
}
.slider-arrow:hover{ border-color:var(--accent); color:var(--accent); }
.slider-progress{ height:4px; background:var(--line); border-radius:4px; margin-top:6px; overflow:hidden; }
.bring-progress{ display:none; }
.slider-progress-bar{ height:100%; width:20%; background:var(--accent); border-radius:4px; transition:width .15s ease; }

/* ---------- Testimonial heading arrows ---------- */
.testi-heading{ display:flex; align-items:center; gap:14px; margin-bottom:20px !important; }
.testi-arrows{ display:flex; gap:8px; }
.testi-arrows button{
  width:32px; height:32px; border-radius:50%; background:var(--panel);
  border:1px solid var(--line); font-size:16px; color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center;
}
.testi-arrows button:hover{ border-color:var(--accent); color:var(--accent); }


/* lightbox */
.lightbox{ display:none; position:fixed; inset:0; background:rgba(10,10,14,.88); z-index:500; align-items:center; justify-content:center; padding:40px; }
.lightbox.open{ display:flex; }
.lightbox img{ max-width:100%; max-height:100%; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-close{ position:absolute; top:24px; right:28px; background:rgba(255,255,255,.1); color:#fff; border:none; border-radius:50%; width:42px; height:42px; font-size:18px; }

/* ---------- Scroll reveal + reduced motion ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
  .photo-hover img{ transition:none; }
  .tilt-l, .tilt-r{ transition:none; }
}

.mobile-menu{ display:none; }

@media (max-width: 980px){
  .sidebar{ display:none; }
  .topbar{
    display:flex; align-items:center; justify-content:space-between;
    padding: 16px 20px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--bg); z-index:50;
  }
  .topbar .profile{ padding:0; }
  .topbar-actions{ display:flex; align-items:center; gap:10px; }
  .hamburger{ background:var(--panel); border:1px solid var(--line); border-radius:9px; padding:9px 12px; font-size:16px; color:var(--ink); }
  .content{ padding: 26px 20px 60px; }
  .hero{ grid-template-columns: 1fr; padding:26px; }
  .hero h1{ font-size:30px; }
  .polaroid{ max-width:260px; margin: 0 auto; }
  .bring-grid, .case-grid, .cert-grid, .work-cat-grid, .data-viz-grid, .how-grid, .case-meta, .impact-grid, .tech-grid{ grid-template-columns: repeat(2,1fr); }
  .about-grid{ display:flex; flex-direction:column; }
  .about-text{ order:1; }
  .about-photo-single{ order:2; margin:0 auto; }
  .about-photos{ min-height:260px; margin-bottom:20px; }
  .role-logo{ width:32px; height:32px; }
  .highlight-item{ grid-template-columns: 1fr; }
  .shot-gallery{ grid-template-columns: repeat(2,1fr); }
  h1.page-title{ font-size:28px; }
  .flow-steps{ flex-direction:column; }
  .flow-arrow{ transform:rotate(90deg); }
  .slide-card{ width:220px; }
  .slider-arrow{ width:34px; height:34px; font-size:16px; }
  .testi-heading{ flex-wrap:wrap; }
  .bring-progress{ display:block; }

  /* What I Bring to a Team: one-card-at-a-time auto slider */
  .bring-grid{
    display:flex; flex-wrap:nowrap; overflow-x:auto; gap:16px;
    scroll-snap-type:x mandatory; padding-bottom:6px;
    -ms-overflow-style:none; scrollbar-width:none;
  }
  .bring-grid::-webkit-scrollbar{ display:none; }
  .bring-grid .bring-card{ flex:0 0 100%; scroll-snap-align:center; }

  /* Work category cards: one-card-at-a-time slider */
  .work-cat-grid{
    display:flex; flex-wrap:nowrap; overflow-x:auto; gap:16px;
    scroll-snap-type:x mandatory; padding:8px 4px 14px;
    -ms-overflow-style:none; scrollbar-width:none;
  }
  .work-cat-grid::-webkit-scrollbar{ display:none; }
  .work-cat-grid .work-cat{ flex:0 0 88%; scroll-snap-align:center; }

  .mobile-menu{
    display:none; position:fixed; inset:0; background:rgba(20,20,25,.4); z-index:100;
  }
  .mobile-menu.open{ display:block; }
  .mobile-panel{ position:absolute; top:0; left:0; width:78%; max-width:300px; height:100%; background:var(--panel); padding:24px 18px; overflow-y:auto; }
  .mobile-panel nav.mainnav button{ font-size:15.5px; padding:12px; }
  .mobile-close{ float:right; background:none; border:none; font-size:20px; color:var(--ink); }
}

@media (max-width: 480px){
  .shot-gallery{ grid-template-columns: 1fr; }
  .case-stats{ flex-direction:column; }
  .stat{ width:100%; }
  .tech-grid, .case-meta, .impact-grid, .how-grid{ grid-template-columns: 1fr 1fr; }
  .filter-tabs{ overflow-x:auto; flex-wrap:nowrap; }
  .case-table{ display:block; overflow-x:auto; white-space:nowrap; }
}
