/* ============================================================
   Pooja Singh — Portfolio
   Design system + layout
   ============================================================ */

:root {
  /* Gemstone accents (per-domain), unified by gold */
  --grc:  #2F5D8C;   /* sapphire  — GRC & Audit   */
  --snow: #1E6F53;   /* emerald   — ServiceNow    */
  --ai:   #6B4E8F;   /* amethyst  — AI            */

  /* Gold — accent only, never a fill */
  --gold:        #A67C2E;
  --gold-bright: #C9A227;
  --gold-soft:   rgba(166,124,46,.30);

  /* Light theme — Ivory & Gold */
  --bg:        #FDFCF9;
  --bg-elev:   #FFFFFF;
  --ink:       #14161A;
  --ink-soft:  #4A4F58;
  --ink-faint: #8A9099;
  --line:      #E8E3D8;
  --accent:    var(--gold);

  /* Diamond canvas facets */
  --facet-1: #F9F4E9;
  --facet-2: #EFE4CE;
  --facet-3: #DCCBA6;
  --facet-edge:  rgba(160,118,42,0.50);
  --facet-glint: rgba(190,148,36,0.92);
  --facet-shade: 26;

  --shadow-sm: 0 1px 2px rgba(20,22,26,.05), 0 4px 14px rgba(20,22,26,.05);
  --shadow-md: 0 12px 40px rgba(20,22,26,.10);

  --radius:  3px;
  --radius-lg: 4px;
  --maxw: 1120px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  /* Dark theme — Space Grey & Gold */
  --bg:        #14161A;
  --bg-elev:   #1C1F26;
  --ink:       #F2F0EA;
  --ink-soft:  #A8ADB8;
  --ink-faint: #6E7480;
  --line:      #2A2F38;
  --grc:  #6FA3D6;
  --snow: #4FB68B;
  --ai:   #A98BD1;
  --gold:        #D4AF6A;
  --gold-bright: #E8CD92;
  --gold-soft:   rgba(212,175,106,.32);
  --facet-1: #15181E;
  --facet-2: #212630;
  --facet-3: #2C3440;
  --facet-edge:  rgba(212,175,106,0.28);
  --facet-glint: rgba(232,205,146,0.85);
  --facet-shade: 16;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 16px 50px rgba(0,0,0,.45);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container { width: min(var(--maxw), 92vw); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 128px) 0; }

.section__kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.01em; }
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__text { font-size: 1.02rem; }

.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev);
  color: var(--ink-soft); cursor: pointer; transition: .2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 38px;
  align-items: center; justify-content: center; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav__burger span { width: 18px; height: 2px; background: var(--ink); transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem; padding: .74rem 1.3rem;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
/* gold as a *gradient* = metal, not plastic */
.btn--primary {
  color: #1a1508;
  background: linear-gradient(135deg, #B08D57 0%, #E6D08A 45%, #C9A227 100%);
  box-shadow: 0 6px 18px rgba(166,124,46,.25);
}
:root[data-theme="dark"] .btn--primary {
  color: #14161A;
  background: linear-gradient(135deg, #B08D57 0%, #F0DCA6 45%, #D4AF6A 100%);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(166,124,46,.35); }
.btn--ghost { border-color: var(--line); background: var(--bg-elev); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--link { color: var(--ink-soft); padding-inline: .4rem; }
.btn--link:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
/* Animated diamond mesh (drawn by main.js) */
#facets { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero::before { /* legibility scrim over the mesh */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 45%,
              color-mix(in srgb, var(--bg) 72%, transparent) 0%,
              color-mix(in srgb, var(--bg) 30%, transparent) 55%,
              transparent 100%);
}
.hero__eyebrow {
  font-weight: 600; font-size: .84rem; letter-spacing: .04em; color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.06; letter-spacing: -.02em;
  margin: 0 0 1.3rem; max-width: 16ch;
}
.hero__title em { font-style: italic; color: var(--grc); }
.hero__title em:nth-of-type(2) { color: var(--snow); }
.hero__title em:nth-of-type(3) { color: var(--ai); }
.hero__lead { font-size: clamp(1.02rem, 1.7vw, 1.24rem); color: var(--ink-soft); max-width: 60ch; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 2.4rem; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 0; margin: 0; }
.hero__chips li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.hero__chips .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Hero two-column with portrait */
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { max-width: 18ch; }
.hero__media { justify-self: center; width: 100%; max-width: 380px; }
.portrait {
  position: relative; margin: 0; aspect-ratio: 4 / 5; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--grc) 20%, var(--bg-elev)),
    color-mix(in srgb, var(--ai) 18%, var(--bg-elev)));
}
.portrait::after { /* subtle inner ring */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); pointer-events: none;
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .5rem; text-align: center;
}
.portrait__mono {
  font-family: var(--font-display); font-size: 4.4rem; font-weight: 500; line-height: 1;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.portrait__hint { font-size: .8rem; color: var(--ink-faint); letter-spacing: .02em; }
.portrait__badge {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border-radius: 2px; font-size: .82rem; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.dot--live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--snow); }
.dot--live::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--snow); opacity: .35; animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.7); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot--live::before { animation: none; } }

/* ---------- Layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.about__body p { color: var(--ink-soft); font-size: 1.06rem; margin: 0 0 1.1rem; }
.about__body strong, .about__body em { color: var(--ink); font-weight: 600; }

/* ---------- Domain sections ---------- */
.domain[data-accent="grc"]  { --accent: var(--grc); }
.domain[data-accent="snow"] { --accent: var(--snow); }
.domain[data-accent="ai"]   { --accent: var(--ai); }
.domain:nth-of-type(even) { background: var(--bg-elev); border-block: 1px solid var(--line); }

.domain__head { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 2.6rem; }
.domain__num {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--accent); opacity: .38; font-weight: 500; line-height: 1;
}
.domain__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 65ch; margin: -1rem 0 2.4rem; }
.domain__lead strong { color: var(--ink); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.domain:nth-of-type(even) .card { background: var(--bg); }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); opacity: .85; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.14rem; margin: .2rem 0 1rem; letter-spacing: -.01em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .62rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent); transform: rotate(45deg); opacity: .9;
}

/* ---------- Framework strip ---------- */
.framework-strip { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px dashed var(--line); }
.framework-strip > span { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.tags em {
  font-style: normal; font-size: .86rem; font-weight: 500; color: var(--ink-soft);
  padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 2px; background: var(--bg-elev);
  transition: .2s;
}
.domain:nth-of-type(even) .tags em { background: var(--bg); }
.tags em:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Case studies ---------- */
.work-list { display: grid; gap: 1rem; margin-top: 2.4rem; }
.work {
  display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.work__tag {
  justify-self: start; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: .38rem .8rem; border-radius: 2px;
}
.work__tag[data-accent="grc"] { background: color-mix(in srgb, var(--grc) 14%, transparent); color: var(--grc); }
.work__tag[data-accent="ai"]  { background: color-mix(in srgb, var(--ai) 14%, transparent);  color: var(--ai); }
.work__body h3 { margin: 0 0 .35rem; font-size: 1.12rem; letter-spacing: -.01em; }
.work__body p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.work__body strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact__inner { text-align: center; max-width: 720px; margin-inline: auto; }
.contact .section__title { max-width: 20ch; margin-inline: auto; }
.contact__lead { color: var(--ink-soft); font-size: 1.1rem; margin: 1.2rem auto 2rem; max-width: 54ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; color: var(--ink-faint); font-size: .9rem; }
.footer__brand { color: var(--ink-soft); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    padding: .5rem 6vw 1.4rem; transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .85rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav__burger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; gap: .8rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 300px; justify-self: start; }
}

/* ============================================================
   Media, personal & projects components
   ============================================================ */

/* Sub-heads & intros */
.section__intro { color: var(--ink-soft); font-size: 1.06rem; max-width: 64ch; margin: 1rem 0 0; }
.subhead { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 3rem 0 .3rem; }
.subhead__note { color: var(--ink-faint); font-size: .92rem; margin: .2rem 0 1.4rem; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85em;
  background: color-mix(in srgb, var(--ink) 9%, transparent); padding: .12rem .42rem; border-radius: 6px;
}

/* Shared placeholder tile (images / add) */
.ph {
  display: grid; place-content: center; gap: .4rem; text-align: center; height: 100%; width: 100%;
  color: var(--ink-faint);
  background: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--ink) 5%, transparent) 0 11px, transparent 11px 22px);
}
.ph span { font-size: 1.8rem; line-height: 1; }
.ph small { font-size: .78rem; letter-spacing: .01em; }
.ph--add { border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* "Beyond the résumé" personal cards */
.about__personal { margin-top: 3.4rem; }
.pcard {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.45rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* gem icon inside a rotated gold hairline frame — echoes the diamond motif */
.pcard__icon {
  position: relative; display: inline-grid; place-items: center;
  width: 46px; height: 46px; color: var(--gold); margin: 0 0 1rem;
}
.pcard__icon::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid var(--gold-soft); transform: rotate(45deg);
  transition: border-color .3s ease, transform .5s ease;
}
.pcard__icon svg { position: relative; width: 26px; height: 26px; }
.pcard:hover .pcard__icon::before { border-color: var(--gold); transform: rotate(135deg); }
.pcard h4 { margin: 0 0 .55rem; font-size: 1.08rem; letter-spacing: -.01em; }
.pcard p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.editable {
  border-left: 3px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  padding-left: .8rem; font-style: italic; color: var(--ink-faint) !important;
}

/* Featured "A bit about me" card */
.pcard--feature { padding: 1.9rem 2rem; position: relative; overflow: hidden; }
.pcard--feature::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--grc), var(--ai));
}
.pcard__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.pcard__head .pcard__icon { width: 52px; height: 52px; margin: 0; }
.pcard__head .pcard__icon svg { width: 30px; height: 30px; }
.pcard__head h4 { margin: 0; font-size: 1.3rem; letter-spacing: -.01em; }
.pcard__text { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.6rem; }
.pcard__text p { margin: 0 0 .9rem; color: var(--ink-soft); font-size: 1.01rem; line-height: 1.68; }
.pcard__text p:last-child { margin-bottom: 0; }
.about__pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.4rem; }
@media (max-width: 860px) {
  .pcard__text { grid-template-columns: 1fr; }
  .about__pgrid { grid-template-columns: 1fr; }
}

/* Personal photo gallery */
.about__gallery { margin-top: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform .45s ease; }
.gallery__item img:hover { transform: scale(1.06); }

/* Projects grid */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.6rem; }
.project {
  display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project__media { position: relative; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__badge {
  position: absolute; left: 12px; top: 12px; font-size: .75rem; font-weight: 600;
  padding: .34rem .72rem; border-radius: 2px; color: var(--grc);
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
.project__badge[data-accent="grc"]  { color: var(--grc); }
.project__badge[data-accent="ai"]   { color: var(--ai); }
.project__badge[data-accent="snow"] { color: var(--snow); }
.project__content { padding: 1.25rem 1.4rem 1.45rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project__content h3 { margin: 0; font-size: 1.12rem; letter-spacing: -.01em; }
.project__content p { margin: 0; color: var(--ink-soft); font-size: .96rem; flex: 1; }
.project__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.project--add { background: transparent; border-style: dashed; }
.project--add .project__media { background: transparent; }

/* Chip links + generic TODO state */
.chip-link {
  font-size: .84rem; font-weight: 600; padding: .42rem .8rem; border-radius: 2px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: .2s;
}
.chip-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.is-todo { opacity: .5; pointer-events: none; }

/* Featured video */
.grid-2--video { align-items: stretch; margin-top: 2.4rem; }
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: #05070d; box-shadow: var(--shadow-md);
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video__ph {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .8rem; text-align: center; color: #cfd6e6;
  background: radial-gradient(circle at 50% 38%, #1a2436, #080c16);
}
.video__play {
  display: grid; place-content: center; width: 62px; height: 62px; margin: 0 auto; border-radius: 50%;
  background: color-mix(in srgb, #fff 15%, transparent); color: #fff; font-size: 1.3rem; padding-left: 4px;
}
.video__ph small { color: #8b97b0; }
.video__ph code { background: rgba(255,255,255,.1); color: #e6ebf5; }
.video__aside { display: flex; flex-direction: column; justify-content: center; }
.video__aside h3 { margin: .2rem 0 .6rem; font-size: 1.25rem; }
.video__aside p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.video__aside .btn { align-self: flex-start; }

/* GitHub repo cards */
.repo {
  display: flex; flex-direction: column; gap: .55rem; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.repo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.repo__top { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.repo__name { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .96rem; }
.repo__desc { margin: 0; color: var(--ink-soft); font-size: .92rem; flex: 1; }
.repo__meta { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-faint); }
.repo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 4vw; cursor: zoom-out;
  background: rgba(10, 11, 14, .93); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 100%; max-height: 86vh; border-radius: 2px; cursor: default;
  box-shadow: 0 24px 80px rgba(0,0,0,.6); outline: 1px solid rgba(212,175,106,.35); outline-offset: 6px;
}
/* gold hairline controls */
.lightbox__close, .lightbox__nav {
  position: fixed; display: grid; place-items: center; cursor: pointer;
  color: #E8CD92; background: rgba(20,22,26,.55); border: 1px solid rgba(212,175,106,.45);
  transition: background .2s, border-color .2s, transform .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(212,175,106,.18); border-color: #D4AF6A; }
.lightbox__close {
  top: 20px; right: 24px; width: 42px; height: 42px; font-size: 1.5rem; line-height: 1; border-radius: 2px;
}
.lightbox__nav { top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 2px; font-size: 1.5rem; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav:hover { transform: scale(1.06); }
.lightbox__count {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px;
  color: #E8CD92; font-size: .8rem; letter-spacing: .18em; font-weight: 600;
  padding: .45rem 1rem; border: 1px solid rgba(212,175,106,.35); background: rgba(20,22,26,.55);
}
.lightbox__cap {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 62px; max-width: min(680px, 86vw);
  text-align: center; color: #CFCBC2; font-size: .88rem;
}
@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
}

/* Component responsiveness */
@media (max-width: 860px) {
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
