:root{
  --navy:#1F457F; --navy-deep:#0E2A50; --gold:#FFD84D; --gold-deep:#E8A020;
  --ink:#0E2A50; --muted:#5b6b82; --paper:#ffffff; --line:#e3e9f2;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;color:var(--ink);background:#f6f8fb;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--navy);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}

.hero{background:linear-gradient(160deg,var(--navy) 0%,var(--navy-deep) 100%);color:#fff;padding:88px 24px 76px;text-align:center;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;top:-120px;right:-120px;width:340px;height:340px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-deep));opacity:.9}
.hero.hero-photo{background:linear-gradient(160deg,rgba(31,69,127,.88) 0%,rgba(14,42,80,.92) 100%),url("images/daniel-site-banner.jpeg") center 30%/cover no-repeat;padding:140px 24px 120px}
.hero.hero-photo::after{opacity:.85}
.hero.hero-barriers{background:linear-gradient(160deg,rgba(31,69,127,.88) 0%,rgba(14,42,80,.92) 100%),url("images/Barriers/Barriers-Hero.jpeg") center/cover no-repeat;padding:140px 24px 120px}
.hero-nav{position:absolute;top:20px;left:24px;z-index:2}
.hero-nav a{display:inline-flex;align-items:center;gap:6px;color:#fff;font-weight:600;font-size:14px;padding:8px 14px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(14,42,80,.35);backdrop-filter:blur(4px)}
.hero-nav a:hover{text-decoration:none;border-color:var(--gold)}
.hero-badge{position:absolute;bottom:20px;right:24px;z-index:2}
.hero-badge img{height:44px;display:block}
.hero-badge a:hover{filter:brightness(1.1)}
@media (max-width:600px){.hero-badge img{height:36px}}
.hero-inner{max-width:880px;margin:0 auto;position:relative;z-index:1}
.kicker{letter-spacing:6px;font-size:13px;font-weight:700;color:var(--gold);text-transform:uppercase}
h1{font-size:52px;font-weight:800;letter-spacing:-1px;margin:14px 0 10px}
.tag{font-size:20px;color:#cddcf0;font-weight:400;max-width:620px;margin:0 auto}

.wrap{max-width:880px;margin:0 auto;padding:56px 24px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:32px;margin-bottom:24px}
h2{font-size:26px;font-weight:800;letter-spacing:-.3px;margin-bottom:8px}
h2 .bar{display:inline-block;width:6px;height:22px;background:linear-gradient(var(--gold),var(--gold-deep));border-radius:3px;margin-right:12px;vertical-align:-2px}
p{margin-bottom:14px;color:#33435a}
.muted{color:var(--muted);font-size:15px}
.btn{display:inline-block;background:linear-gradient(135deg,var(--gold),var(--gold-deep));color:#0E2A50;font-weight:700;padding:12px 22px;border-radius:10px;margin-top:6px}
.btn:hover{text-decoration:none;filter:brightness(1.05)}
.links a{display:inline-block;margin-right:18px;font-weight:600}
footer{text-align:center;padding:36px 24px 60px;color:var(--muted);font-size:14px}
footer a{color:var(--muted)}

/* About / bio */
.about-grid{display:grid;grid-template-columns:150px 1fr;gap:32px;align-items:start}
.avatar{width:150px;height:150px;border-radius:50%;overflow:hidden;border:4px solid #fff;box-shadow:0 2px 14px rgba(14,42,80,.18)}
.avatar img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.about-name{font-size:24px;font-weight:800;margin-bottom:6px}
.affil{font-weight:700;font-size:15px;margin-bottom:2px}
.affil.apple{color:var(--navy)}
.affil.school{color:var(--gold-deep)}
.about-bio{margin-top:14px}
.social-icons{display:flex;gap:16px;justify-content:flex-end;margin-top:20px}
.social-icons.left{justify-content:flex-start}
.social-icons a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid var(--line);transition:border-color .15s ease,transform .15s ease}
.social-icons a:hover{border-color:var(--gold-deep);transform:translateY(-2px)}
.social-icons svg{width:22px;height:22px;fill:var(--navy)}
@media (max-width:820px){
  .about-grid{grid-template-columns:1fr}
  .avatar{margin:0 auto}
  .about-head{text-align:center}
  .social-icons{justify-content:center}
}

/* Video thumbnail cards (robust — no iframe needed until click-through) */
.video-card{display:block;position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#000;margin-bottom:10px}
.video-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;transition:opacity .15s ease}
.video-card:hover img{opacity:.85}
.video-card .play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:40px;background:rgba(14,42,80,.85);border-radius:10px;display:flex;align-items:center;justify-content:center}
.video-card .play::after{content:"";border-style:solid;border-width:9px 0 9px 15px;border-color:transparent transparent transparent var(--gold)}
.video-card:hover .play{background:var(--gold-deep)}
.video-card:hover .play::after{border-left-color:#0E2A50}

/* Hero photo strip under header */
.hero-photo-wrap{max-width:880px;margin:-48px auto 0;padding:0 24px;position:relative;z-index:2}
.hero-photo-wrap img{border-radius:16px;border:2px solid rgba(255,255,255,.28)}

/* Project grid */
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-bottom:24px}
.project-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s ease,border-color .15s ease}
.project-card:hover{transform:translateY(-3px);border-color:var(--gold-deep);text-decoration:none}
.project-card .thumb{aspect-ratio:16/10;background:var(--navy-deep);overflow:hidden}
.project-card .thumb img{width:100%;height:100%;object-fit:cover}
.project-card .body{padding:22px}
.project-card h3{font-size:19px;font-weight:800;color:var(--ink);margin-bottom:6px}
.project-card p{font-size:14px;color:var(--muted);margin-bottom:0}
.project-card .eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--gold-deep);font-weight:700;margin-bottom:6px}

/* Video grid / embeds */
.video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.video-embed{position:relative;width:100%;padding-top:56.25%;border-radius:12px;overflow:hidden;background:#000;margin-bottom:10px;border:1px solid var(--line)}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-caption{font-size:13px;color:var(--muted);font-weight:600}

/* Screenshot gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:8px}
.gallery figure{margin:0}
.gallery img{border-radius:12px;border:1px solid var(--line);width:100%;aspect-ratio:2778/1284;object-fit:cover;cursor:zoom-in}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(14,42,80,.93);display:none;align-items:center;justify-content:center;z-index:100;cursor:zoom-out;padding:24px}
.lightbox.open{display:flex}
.lightbox img{max-width:min(1400px,94vw);max-height:90vh;border-radius:10px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.lightbox figcaption{position:absolute;bottom:22px;left:0;right:0;text-align:center;color:#cddcf0;font-weight:600;font-size:15px}
.gallery figcaption{font-size:13px;color:var(--muted);margin-top:8px;text-align:center;font-weight:600}
