/* Kashif's World v2: one stylesheet, no JavaScript. */
:root {
  --bg: #0a0c10; --surface: #12151c; --line: rgba(255, 255, 255, .09);
  --text: #e9e7e4; --muted: #9ba1ad; --accent: #3ddbb5; --accent-2: #ff5a6a; --link: #7aa7ff;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px; --wrap: 1080px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; color: var(--text); font: 400 1.0625rem/1.75 var(--font-sans);
  background: radial-gradient(60rem 28rem at 90% -8%, rgba(61, 219, 181, .13), transparent 60%),
              radial-gradient(48rem 26rem at -8% 6%, rgba(255, 90, 106, .11), transparent 60%), var(--bg);
}
h1, h2, h3, p, ul { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(122, 167, 255, .45); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 200; padding: 8px 12px; background: var(--surface); color: #fff; }
.skip-link:focus { top: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10, 12, 16, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font: 700 1.25rem/1 var(--font-display); }
.brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(61, 219, 181, .5); }
.menu-btn, .nav-close { display: none; }
.menu-btn svg, .nav-close svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.menu-btn svg path, .nav-close svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-nav { display: block; position: static; inset: auto; width: auto; height: auto; margin: 0 0 0 auto; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
.site-nav ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .45rem .95rem; border-radius: 999px; color: var(--muted); font-size: .9375rem; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav a[aria-current="page"] { color: var(--accent); background: rgba(61, 219, 181, .12); }

@media (max-width: 719.98px) {
  @supports selector(:popover-open) {
    .menu-btn { display: block; margin-left: auto; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
    .site-nav:not(:popover-open) { display: none; }
    .site-nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); height: 100%; padding: 80px 1rem 1rem; background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; }
    .site-nav::backdrop { background: rgba(0, 0, 0, .6); }
    .site-nav ul { flex-direction: column; gap: .25rem; }
    .site-nav a { padding: .8rem 1rem; font-size: 1.0625rem; }
    .nav-close { display: block; position: absolute; top: 12px; right: 20px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
  }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 44px, linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 100%; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.hero__inner { position: relative; padding-block: 4.5rem 4rem; }
.hero--home .hero__inner { padding-block: 5rem 4.5rem; }
.eyebrow { margin-bottom: .75rem; color: var(--accent); font: 500 .8125rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 18ch; color: #fff; font: 700 clamp(2.4rem, 6.5vw, 4.5rem)/1.08 var(--font-display); letter-spacing: -.01em; }
.hero--home h1 { max-width: 16ch; }
.avatar { width: 88px; height: 88px; margin-bottom: 1.5rem; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 0 40px rgba(61, 219, 181, .35); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.chips li { padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text); font-size: .9rem; line-height: 1.6; }
.chips li:first-child { border-color: rgba(61, 219, 181, .45); color: var(--accent); }
.chips li:nth-child(2) { border-color: rgba(255, 90, 106, .45); color: #ff8d98; }

/* ---------- sections ---------- */
.section { padding-block: 3.5rem; }
.section-title { margin-bottom: 1.5rem; font: 700 clamp(1.7rem, 3.5vw, 2.2rem)/1.2 var(--font-display); }
.lede { max-width: 60ch; margin-bottom: 2rem; color: #fff; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.6; }
.about { display: grid; gap: 3rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.prose p + p { margin-top: 1.1rem; }
.prose .lead { color: #fff; font-size: 1.3rem; line-height: 1.6; }
.cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card__label { color: var(--muted); font-size: .9rem; }
.card__value, .card a { color: var(--accent); font: 500 1.1rem/1.5 var(--font-sans); overflow-wrap: anywhere; }
.card a { text-decoration-color: rgba(61, 219, 181, .45); }
@media (prefers-reduced-motion: no-preference) { .card, .project { transition: transform .2s, border-color .2s; } .card:hover, .project:hover { transform: translateY(-3px); border-color: rgba(61, 219, 181, .45); } }

/* ---------- showcase ---------- */
.video-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .video-grid { grid-template-columns: 1fr 1fr; } }
.video-grid iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); background: #000; }
.project { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
@media (min-width: 720px) { .project { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.project img { width: 100%; height: 100%; aspect-ratio: 500 / 280; object-fit: cover; }
.project__text { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; font-size: .975rem; }
.project__title { color: #fff; font: 700 1.6rem/1.2 var(--font-display); }
.project__cta { margin-top: auto; color: var(--accent); font-weight: 600; }

/* ---------- secure yourself ---------- */
.layout { display: grid; gap: 3rem; padding-block: 3rem 4rem; }
@media (min-width: 960px) { .layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 4rem; } }
.toc { display: none; }
@media (min-width: 960px) { .toc { display: block; position: sticky; top: 96px; } }
.toc__title { margin-bottom: .75rem; color: var(--muted); font: 500 .75rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: .3rem 0 .3rem 1rem; border-left: 1px solid transparent; color: var(--muted); font-size: .92rem; text-decoration: none; }
.toc a:hover { color: #fff; border-left-color: var(--accent); }
.article { max-width: 46rem; }
.article .block { padding-block: .6rem; }
.article .block > * + * { margin-top: .9rem; }
.article .center { text-align: left; }
.article .block:first-child p { color: #fff; font-size: 1.35rem; line-height: 1.55; }
.article .block:nth-child(3) p { padding: .9rem 1.1rem; border-left: 3px solid var(--accent-2); border-radius: 0 12px 12px 0; background: rgba(255, 90, 106, .07); }
.article .block:nth-child(4) { margin-block: 1rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.article h2 { margin-top: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); font: 700 clamp(1.7rem, 3.5vw, 2.1rem)/1.25 var(--font-display); }
.article h3 { margin-top: 1.25rem; font: 600 1.2rem/1.4 var(--font-sans); color: #fff; }
.article .block:has(> h2) { padding-bottom: 0; }
.article ul { margin: 0; padding: 0; list-style: none; }
.article li { position: relative; padding-left: 1.2rem; }
.article li + li { margin-top: .5rem; }
.article li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.article li ul { margin-top: .5rem; }
.article .list-videos a { font-weight: 600; }
.note { padding: .8rem 1.1rem; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--surface); color: var(--muted); font-size: .95rem; line-height: 1.7; }
.article .credits p { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
