:root {
  --bg: #121419;
  --bg2: #181b23;
  --bg3: #21252f;
  --border: rgba(255,255,255,0.1);
  --border2: rgba(255,255,255,0.16);
  --text: #eef0f6;
  --text2: #a8adbc;
  --text3: #767d91;
  --accent: #5b7bff;
  --accent2: #3d5ce0;
  --accent-dim: rgba(91,123,255,0.12);
  --accent-dim2: rgba(91,123,255,0.06);
  --green: #3ecf8e;
  --green-dim: rgba(62,207,142,0.1);
  --amber: #f5a623;
  --amber-dim: rgba(245,166,35,0.1);
  --rose: #ff6b8a;
  --rose-dim: rgba(255,107,138,0.1);
  --mono: 'DM Mono', monospace;
  --serif: 'Instrument Serif', serif;
  --sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── SCANLINE ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.015) 2px, rgba(0,0,0,0.015) 4px);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(18,20,25,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(91,123,255,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(91,123,255,0); }
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 18px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  background: transparent;
}

.nav-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
  z-index: 1;
}

/* grid bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

/* glow */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(91,123,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  animation: fadein 0.6s ease both;
}

.eyebrow-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid rgba(91,123,255,0.3);
  border-radius: 2px;
  background: var(--accent-dim2);
}

.eyebrow-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, rgba(91,123,255,0.4), transparent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
  animation: fadein 0.7s ease 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--text2);
}

.hero-sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  animation: fadein 0.7s ease 0.2s both;
}

.hero-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 48px;
  animation: fadein 0.7s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadein 0.7s ease 0.4s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover { color: var(--text); border-color: var(--border2); background: rgba(255,255,255,0.03); }

/* hero terminal */
.hero-terminal {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  z-index: 2;
  animation: fadein 0.8s ease 0.5s both;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green { background: #28c840; }

.terminal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-left: auto;
  letter-spacing: 0.03em;
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--text2);
}

.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-ok { color: var(--green); }
.t-warn { color: var(--amber); }
.t-dim { color: var(--text3); }
.t-hi { color: var(--accent); }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── STATS STRIP ── */
.stats-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 32px 48px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text3);
  text-transform: uppercase;
}

/* ── SECTION HEADERS ── */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
}

.section-left { flex: 1; }

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.section-title em { font-style: italic; color: var(--text2); }

.section-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  max-width: 340px;
  margin-top: 12px;
}

/* ── FILTER TABS ── */
.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ftab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s;
}

.ftab:hover { color: var(--text2); border-color: var(--border2); }
.ftab.active { background: var(--accent-dim); border-color: rgba(91,123,255,0.4); color: var(--accent); }

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pcard {
  background: var(--bg);
  padding: 32px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.pcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(91,123,255,0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pcard:hover::before { transform: scaleX(1); }
.pcard:hover { background: var(--bg2); }

.pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pcard-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.06em;
}

.diff-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 2px;
}

.diff-easy { background: var(--green-dim); color: var(--green); border: 1px solid rgba(62,207,142,0.2); }
.diff-medium { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,166,35,0.2); }
.diff-hard { background: var(--rose-dim); color: var(--rose); border: 1px solid rgba(255,107,138,0.2); }

.pcard-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.pcard-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ptag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text3);
  letter-spacing: 0.04em;
}

.pcard-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 13px;
  transition: all 0.2s;
}

.pcard:hover .pcard-arrow {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── DETAIL PANEL ── */
.detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18,20,25,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadein 0.2s ease;
}

.detail-overlay.open { display: flex; align-items: stretch; justify-content: flex-end; }

.detail-panel {
  width: min(680px, 100%);
  height: 100%;
  background: var(--bg2);
  border-left: 1px solid var(--border2);
  overflow-y: auto;
  animation: slidein 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes slidein {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.dp-header {
  position: sticky;
  top: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.dp-close {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text3);
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.dp-close:hover { color: var(--text); border-color: var(--border2); }

.dp-body { padding: 40px 32px; }

.dp-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dp-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.15;
}

.dp-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dp-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 10px;
}

.dp-terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0;
}

.dp-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.dp-terminal-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
  color: var(--text2);
  white-space: pre-wrap;
}

.dp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.dp-tech {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text2);
  letter-spacing: 0.03em;
}

.dp-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border: 1px solid rgba(91,123,255,0.4);
  border-radius: 4px;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-dim2);
  transition: all 0.2s;
  margin-top: 12px;
}

.dp-github:hover { background: var(--accent-dim); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-left {}

.about-right {}

.about-text {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 16px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.cert-item {
  font-family: var(--mono);
  font-size: 11px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text2);
  letter-spacing: 0.02em;
  background: var(--bg2);
}

.cert-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
  font-weight: 500;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.tl-item:last-child::before { display: none; }

.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 4px;
}

.tl-content {}

.tl-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tl-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.tl-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── BLOG TEASER ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.blog-card {
  background: var(--bg);
  padding: 28px;
  text-decoration: none;
  transition: background 0.2s;
  display: block;
}

.blog-card:hover { background: var(--bg2); }

.blog-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.blog-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-excerpt {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* ── BLOG POST ── */
.post-article {
  max-width: 720px;
  margin: 0 auto;
}

.post-article h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.post-article h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin: 40px 0 16px;
}

.post-article h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 32px 0 12px;
}

.post-article p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 16px;
}

.post-article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(91,123,255,0.3);
}

.post-article a:hover { border-bottom-color: var(--accent); }

.post-article code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
}

.post-article pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.post-article pre code {
  padding: 0;
  background: transparent;
  border: none;
  font-size: 12px;
  line-height: 1.8;
}

.post-article ul, .post-article ol {
  color: var(--text2);
  line-height: 1.9;
  margin: 0 0 16px 24px;
}

.post-article blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text2);
  font-style: italic;
}

.post-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.post-back {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 40px;
}

.post-back:hover { color: var(--text); }

/* ── CONTACT ── */
.contact-wrap {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(91,123,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
}

.contact-sub {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 40px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ── VIDEO DEMO ── */
.dp-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin: 16px 0;
}

.dp-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.dp-video-ph {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.dp-video-ph-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text3);
}

hr.sec-div {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── ANIMATIONS ── */
@keyframes fadein {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  nav { padding: 18px 24px; }
  .hero { padding: 100px 24px 60px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .section { padding: 64px 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-wrap { padding: 40px 24px; }
  footer { padding: 24px; flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
}
