
:root{
  --ink:#1e1e1e;
  --paper:#fffaf2;
  --paper2:#f7f1e7;
  --blue:#67bde1;
  --yellow:#f4bf2a;
  --coral:#f36b54;
  --green:#2ecf8f;
  --purple:#9a83d8;
  --white:#ffffff;
  --muted:#5f625f;
  --border:3px solid var(--ink);
  --shadow:6px 6px 0 var(--ink);
  --radius:22px;
  --max:1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 20px 20px, rgba(30,30,30,.06) 2px, transparent 2px) 0 0/36px 36px,
    var(--paper);
  color:var(--ink);
  font-family: "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.55;
}

a{color:inherit}
img,video{max-width:100%;display:block}
button,input,textarea{font:inherit}
.wrap{width:min(var(--max),calc(100% - 32px));margin:auto}

.skip{
  position:absolute;left:-999px;top:12px;background:var(--yellow);padding:10px 14px;
  border:var(--border);border-radius:12px;z-index:999
}
.skip:focus{left:12px}

.site-header{
  position:sticky;top:0;z-index:30;
  background:rgba(255,250,242,.94);
  border-bottom:3px solid var(--ink);
  backdrop-filter:blur(8px);
}
.nav{
  min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px
}
.brand{
  display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:900;letter-spacing:-.04em
}
.brand-badge{
  width:44px;height:44px;border:var(--border);border-radius:13px;background:var(--blue);
  display:grid;place-items:center;box-shadow:3px 3px 0 var(--ink);font-size:.85rem
}
.brand small{display:block;font-size:.66rem;letter-spacing:.08em;color:var(--muted);font-weight:800}
.nav-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.nav-links a{
  text-decoration:none;padding:8px 11px;border:2px solid transparent;border-radius:12px;
  font-size:.88rem;font-weight:800
}
.nav-links a:hover,.nav-links a.active{border-color:var(--ink);background:var(--yellow)}
.nav-links a.linkedin{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.nav-links a.linkedin:hover{background:var(--blue);color:var(--ink)}

main{min-height:70vh}
.page-hero{padding:70px 0 38px}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;background:var(--white);border:var(--border);
  border-radius:999px;padding:7px 12px;font-size:.78rem;font-weight:900;letter-spacing:.08em;
  box-shadow:3px 3px 0 var(--ink);text-transform:uppercase
}
.dot{width:10px;height:10px;border-radius:50%;background:var(--green);border:2px solid var(--ink)}
h1,h2,h3{line-height:1;letter-spacing:-.045em}
h1{font-size:clamp(3.1rem,8vw,7.2rem);margin:20px 0 20px}
h2{font-size:clamp(2.1rem,5vw,4.2rem);margin:0 0 16px}
h3{font-size:clamp(1.35rem,2.8vw,2.05rem);margin:0 0 10px}
.lede{font-size:clamp(1.05rem,2vw,1.28rem);max-width:760px;color:#3f413f}

.hero-grid{
  display:grid;grid-template-columns:1.25fr .75fr;gap:26px;align-items:center
}
.hero-copy .squiggle{
  display:inline-block;background:var(--yellow);padding:.03em .14em;border:2px solid var(--ink);
  transform:rotate(-1.5deg);box-shadow:4px 4px 0 var(--ink)
}
.hero-photo{
  position:relative;background:var(--blue);border:var(--border);border-radius:28px;padding:13px;
  box-shadow:var(--shadow);transform:rotate(1.5deg)
}
.hero-photo img{width:100%;aspect-ratio:1/1;object-fit:cover;border:var(--border);border-radius:18px}
.photo-label{
  position:absolute;left:-16px;bottom:28px;background:var(--coral);border:var(--border);
  border-radius:13px;padding:9px 12px;font-weight:900;box-shadow:4px 4px 0 var(--ink);transform:rotate(-4deg)
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;
  border:var(--border);border-radius:14px;padding:11px 16px;font-weight:900;background:var(--white);
  box-shadow:4px 4px 0 var(--ink);transition:transform .15s ease,box-shadow .15s ease
}
.btn:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink)}
.btn.primary{background:var(--blue)}
.btn.yellow{background:var(--yellow)}
.btn.coral{background:var(--coral)}
.btn.green{background:var(--green)}

.section{padding:48px 0}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.section-title p{max-width:580px;color:var(--muted);margin:0}

.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.menu-card{
  min-height:245px;border:var(--border);border-radius:24px;padding:24px;text-decoration:none;
  box-shadow:var(--shadow);background:var(--white);display:flex;flex-direction:column;
  transition:transform .16s ease,box-shadow .16s ease
}
.menu-card:hover{transform:translate(3px,3px);box-shadow:3px 3px 0 var(--ink)}
.menu-card:nth-child(1){background:#eaf8ff}
.menu-card:nth-child(2){background:#fff4cb}
.menu-card:nth-child(3){background:#e7faef}
.menu-card:nth-child(4){background:#ffe9e5}
.menu-card:nth-child(5){background:#f0ebff}
.menu-card:nth-child(6){background:#fff}
.menu-icon{
  width:92px;height:92px;border:var(--border);border-radius:24px;background:var(--white);
  display:grid;place-items:center;margin-bottom:28px;box-shadow:4px 4px 0 var(--ink)
}
.menu-icon img{width:72px;height:72px}
.menu-card h3{margin-top:0;margin-bottom:10px}
.menu-card p{margin:0;color:var(--muted)}

.status-strip{
  display:grid;grid-template-columns:repeat(3,1fr);border:var(--border);border-radius:20px;
  overflow:hidden;box-shadow:var(--shadow);background:var(--white)
}
.status-item{padding:18px 20px;border-right:3px solid var(--ink)}
.status-item:last-child{border-right:0}
.status-item strong{display:block;font-size:1.1rem}
.status-item span{color:var(--muted);font-size:.88rem}

.card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.card{
  border:var(--border);border-radius:var(--radius);padding:22px;background:var(--white);box-shadow:var(--shadow)
}
.card.blue{background:#eaf8ff}.card.yellow{background:#fff4cb}.card.green{background:#e7faef}
.card.coral{background:#ffe9e5}.card.purple{background:#f0ebff}
.card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}
.sticker{
  min-width:70px;height:70px;padding:0 10px;border:var(--border);border-radius:20px;background:var(--white);
  display:grid;place-items:center;font-weight:1000;font-size:1rem;box-shadow:4px 4px 0 var(--ink)
}
.sticker.small{min-width:58px;height:58px;border-radius:16px;font-size:.8rem}
.tag{
  display:inline-flex;border:2px solid var(--ink);border-radius:999px;padding:5px 9px;background:var(--white);
  font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em
}
.card p{color:#50534f}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.chip{border:2px solid var(--ink);border-radius:999px;padding:5px 9px;background:rgba(255,255,255,.7);font-size:.77rem;font-weight:800}

.feature-video{
  display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);gap:24px;align-items:center;
  background:#fff4cb
}
.video-shell{
  border:var(--border);border-radius:20px;background:var(--ink);overflow:hidden;box-shadow:4px 4px 0 var(--ink)
}
.video-shell video{width:100%;aspect-ratio:9/16;max-height:650px;object-fit:contain;background:#111}
.feature-video .sticker{background:var(--green)}

.film-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.film-card{display:flex;flex-direction:column;min-height:300px}
.film-card .film-footer{margin-top:auto;padding-top:18px}
.film-card .sticker{font-size:1.55rem}
.film-card:nth-child(4n+1){background:#eaf8ff}
.film-card:nth-child(4n+2){background:#fff4cb}
.film-card:nth-child(4n+3){background:#e7faef}
.film-card:nth-child(4n+4){background:#ffe9e5}

.timeline{display:grid;gap:16px}
.quest{
  display:grid;grid-template-columns:100px 1fr auto;gap:18px;align-items:start;
  border:var(--border);border-radius:20px;padding:18px;background:var(--white);box-shadow:4px 4px 0 var(--ink)
}
.quest-level{
  border:var(--border);border-radius:16px;padding:12px 8px;text-align:center;background:var(--yellow);
  font-weight:1000;line-height:1.05
}
.quest-level small{display:block;font-size:.65rem;margin-bottom:4px}
.quest h3{font-size:1.35rem;margin-bottom:5px}
.quest .company{font-weight:900;margin-bottom:5px}
.quest p{margin:0;color:var(--muted)}
.quest-badge{border:2px solid var(--ink);border-radius:999px;padding:6px 9px;font-size:.72rem;font-weight:900;background:var(--blue)}

.inventory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.inventory{
  border:var(--border);border-radius:20px;padding:20px;background:var(--white);box-shadow:var(--shadow)
}
.inventory:nth-child(1){background:#eaf8ff}.inventory:nth-child(2){background:#fff4cb}.inventory:nth-child(3){background:#e7faef}
.inventory:nth-child(4){background:#ffe9e5}.inventory:nth-child(5){background:#f0ebff}.inventory:nth-child(6){background:#fff}
.inventory-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.inventory-icon{width:54px;height:54px;border:var(--border);border-radius:16px;background:var(--white);display:grid;place-items:center;font-weight:1000}
.inventory h3{font-size:1.25rem;margin:0}
.skill-list{display:flex;flex-wrap:wrap;gap:8px}
.skill{background:var(--white);border:2px solid var(--ink);border-radius:12px;padding:7px 9px;font-size:.82rem;font-weight:800}

.profile-grid{display:grid;grid-template-columns:.72fr 1.28fr;gap:24px;align-items:start}
.profile-card{
  background:var(--blue);border:var(--border);border-radius:28px;padding:14px;box-shadow:var(--shadow);transform:rotate(-1deg)
}
.profile-card img{border:var(--border);border-radius:18px;width:100%;aspect-ratio:1/1;object-fit:cover}
.note{
  display:inline-block;margin-top:12px;background:var(--yellow);border:var(--border);border-radius:12px;
  padding:8px 11px;font-weight:900;box-shadow:3px 3px 0 var(--ink);transform:rotate(2deg)
}
.bio-box{border:var(--border);border-radius:24px;padding:24px;background:var(--white);box-shadow:var(--shadow)}
.bio-box p{font-size:1.07rem;color:#484b47}
.fact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}
.fact{border:2px solid var(--ink);border-radius:14px;padding:13px;background:var(--paper2)}
.fact strong{display:block}
.fact span{font-size:.85rem;color:var(--muted)}

.contact-box{
  margin-top:18px;border:var(--border);border-radius:24px;padding:24px;background:#e7faef;box-shadow:var(--shadow)
}
.contact-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

.page-banner{
  display:flex;align-items:center;gap:24px;border:var(--border);border-radius:24px;padding:18px 20px;
  background:var(--white);box-shadow:var(--shadow);margin-top:24px
}
.page-banner img{width:92px;height:92px;flex:0 0 auto}
.page-banner p{margin:4px 0 0;color:var(--muted)}

footer{
  margin-top:64px;border-top:3px solid var(--ink);background:var(--paper2)
}
.footer-inner{
  min-height:120px;display:flex;align-items:center;justify-content:space-between;gap:20px
}
.footer-inner p{margin:0;color:var(--muted);font-size:.88rem}
.footer-links{display:flex;gap:10px;flex-wrap:wrap}
.footer-links a{font-weight:900;text-decoration:none}

.tiny{font-size:.8rem;color:var(--muted)}
.center{text-align:center}
.not-found{min-height:65vh;display:grid;place-items:center;text-align:center}

@media(max-width:900px){
  .hero-grid,.profile-grid,.feature-video{grid-template-columns:1fr}
  .menu-grid,.inventory-grid{grid-template-columns:repeat(2,1fr)}
  .status-strip{grid-template-columns:1fr}
  .status-item{border-right:0;border-bottom:3px solid var(--ink)}
  .status-item:last-child{border-bottom:0}
  .quest{grid-template-columns:80px 1fr}
  .quest-badge{grid-column:2;justify-self:start}
}
@media(max-width:700px){
  .site-header{position:relative}
  .nav{padding:12px 0;align-items:flex-start;flex-direction:column}
  .nav-links{justify-content:flex-start}
  .nav-links a{padding:6px 8px;font-size:.8rem}
  .page-hero{padding-top:44px}
  .hero-photo{transform:none;max-width:430px}
  .photo-label{left:10px}
  .menu-grid,.card-grid,.film-grid,.inventory-grid,.fact-grid{grid-template-columns:1fr}
  .section-title{align-items:flex-start;flex-direction:column}
  .quest{grid-template-columns:1fr}
  .quest-level{justify-self:start;min-width:86px}
  .quest-badge{grid-column:1}
  .footer-inner{padding:24px 0;align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}


/* Multimedia players */
.video-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.video-project{
  border:var(--border);
  border-radius:24px;
  padding:22px;
  background:var(--white);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
}
.video-project:nth-child(4n+1){background:#eaf8ff}
.video-project:nth-child(4n+2){background:#fff4cb}
.video-project:nth-child(4n+3){background:#e7faef}
.video-project:nth-child(4n+4){background:#ffe9e5}
.video-project .card-top{margin-bottom:0}
.video-project h3{margin:0}
.video-project p{margin:0;color:#50534f}
.player-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border:var(--border);
  border-radius:18px;
  background:#171717;
  box-shadow:4px 4px 0 var(--ink);
}
.player-frame.vertical{aspect-ratio:9/16;max-height:640px;margin-inline:auto;max-width:390px}
.player-frame video{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#111;
}
.player-empty{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:28px;
  text-align:center;
  color:#fff;
  background:
    radial-gradient(circle at 25% 20%,rgba(103,189,225,.30),transparent 32%),
    radial-gradient(circle at 78% 75%,rgba(244,191,42,.24),transparent 28%),
    #1f1f1f;
}
.player-empty-inner{
  max-width:360px;
}
.player-empty-icon{
  width:72px;
  height:72px;
  margin:0 auto 16px;
  border:3px solid #fff;
  border-radius:22px;
  display:grid;
  place-items:center;
  font-size:1.7rem;
  font-weight:900;
}
.player-empty strong{display:block;font-size:1.05rem;margin-bottom:6px}
.player-empty span{font-size:.82rem;color:#d8d8d8}
.video-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:auto;
  padding-top:4px;
}
.video-meta-line{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.video-meta-line .year-label{
  font-weight:1000;
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.note-box{
  margin-top:24px;
  border:var(--border);
  border-radius:18px;
  padding:16px 18px;
  background:#f0ebff;
  box-shadow:4px 4px 0 var(--ink);
  color:#4b4d4a;
}
.timeline-year{
  border:var(--border);
  border-radius:16px;
  padding:11px 10px;
  text-align:center;
  background:var(--yellow);
  font-weight:1000;
  min-width:100px;
}
.timeline-year small{
  display:block;
  font-size:.68rem;
  letter-spacing:.06em;
  margin-bottom:3px;
}
@media(max-width:900px){
  .video-grid{grid-template-columns:1fr}
}


/* Mobile-first delivery + click-to-load video controls */
.player-frame{position:relative}
.video-load{
  position:absolute; inset:0; margin:auto;
  width:max-content; height:max-content;
  max-width:calc(100% - 32px);
  display:flex; align-items:center; gap:10px;
  border:3px solid var(--ink); border-radius:16px;
  padding:11px 15px; background:var(--yellow); color:var(--ink);
  font-weight:1000; box-shadow:4px 4px 0 var(--ink); cursor:pointer;
}
.video-load:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink)}
.video-load[hidden]{display:none}
.video-load-icon{font-size:1rem}

@media(max-width:560px){
  .wrap{width:min(var(--max),calc(100% - 20px))}
  .nav{padding:10px 0;gap:10px;align-items:flex-start;flex-direction:column}
  .brand-badge{width:40px;height:40px;border-radius:11px}
  .brand small{font-size:.62rem}
  .nav-links{
    width:100%; flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto;
    padding:2px 0 6px; scrollbar-width:none; -webkit-overflow-scrolling:touch;
  }
  .nav-links::-webkit-scrollbar{display:none}
  .nav-links a{flex:0 0 auto;padding:7px 9px;font-size:.78rem}
  .page-hero{padding:38px 0 26px}
  h1{font-size:clamp(2.7rem,14vw,4.2rem);margin:16px 0}
  h2{font-size:clamp(2rem,10vw,3rem)}
  h3{font-size:1.4rem}
  .lede{font-size:1rem}
  .section{padding:34px 0}
  .section-title{gap:10px;margin-bottom:18px}
  .page-banner{align-items:flex-start;gap:14px;padding:14px 15px;border-radius:18px}
  .page-banner img{width:64px;height:64px}
  .page-banner strong{font-size:.88rem}
  .page-banner p{font-size:.82rem}
  .menu-card,.card,.video-project,.inventory,.bio-box,.contact-box{padding:17px;border-radius:18px}
  .menu-card{min-height:auto}
  .menu-icon{width:72px;height:72px;margin-bottom:20px;border-radius:18px}
  .menu-icon img{width:54px;height:54px}
  .video-project{gap:15px}
  .player-frame{border-radius:14px;box-shadow:3px 3px 0 var(--ink)}
  .player-frame.vertical{max-width:100%;max-height:none}
  .video-meta-line{gap:7px}
  .video-actions{padding-top:0}
  .video-actions .btn{width:100%;min-height:48px}
  .sticker.small{min-width:52px;height:52px;border-radius:14px}
  .chips{gap:6px;margin-top:12px}
  .chip{font-size:.72rem;padding:5px 8px}
  .profile-card{transform:none}
  .photo-label{left:10px;bottom:14px}
  .hero-actions .btn{min-height:48px}
  .status-item{padding:15px}
  .footer-inner{gap:14px}
}


/* Reliable native video playback */
.player-frame video{width:100%;height:100%;object-fit:contain;background:#111}
@media(max-width:560px){
  .player-frame{width:100%;aspect-ratio:16/9}
  .player-frame.vertical{aspect-ratio:9/16;max-width:360px;margin-inline:auto}
  .player-frame video{width:100%;height:100%}
}


/* Google Drive video embeds */
.drive-player{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border:var(--border);
  border-radius:18px;
  overflow:hidden;
  background:#111;
  box-shadow:4px 4px 0 var(--ink);
}
.drive-player.vertical{
  aspect-ratio:9/16;
  max-width:390px;
  margin-inline:auto;
}
.drive-player iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:#111;
}
.drive-note{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.78rem;
  margin-top:-4px;
}
.drive-note strong{color:var(--ink)}
@media(max-width:700px){
  .drive-player{
    border-radius:14px;
    box-shadow:3px 3px 0 var(--ink);
  }
  .drive-player.vertical{
    max-width:100%;
  }
}


/* Lazy Google Drive player: poster first, Drive iframe only after click */
.drive-poster{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  border:0;
  cursor:pointer;
  background:#111;
  overflow:hidden;
  color:#fff;
}
.drive-poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .18s ease, filter .18s ease;
}
.drive-poster::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.58),rgba(0,0,0,.06) 55%,rgba(0,0,0,.10));
}
.drive-poster:hover img{
  transform:scale(1.02);
  filter:brightness(.93);
}
.drive-play-button{
  position:absolute;
  z-index:2;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:68px;
  height:68px;
  border-radius:50%;
  display:grid;
  place-items:center;
  padding-left:4px;
  background:var(--yellow);
  color:var(--ink);
  border:3px solid var(--ink);
  box-shadow:4px 4px 0 var(--ink);
  font-size:1.55rem;
}
.drive-play-label{
  position:absolute;
  z-index:2;
  left:16px;
  bottom:14px;
  padding:7px 10px;
  border:2px solid var(--ink);
  border-radius:10px;
  background:rgba(255,250,242,.96);
  color:var(--ink);
  font-size:.78rem;
  font-weight:900;
}
@media(max-width:700px){
  .drive-play-button{
    width:58px;
    height:58px;
    font-size:1.25rem;
    box-shadow:3px 3px 0 var(--ink);
  }
  .drive-play-label{
    left:10px;
    bottom:10px;
    font-size:.72rem;
  }
}


/* About page: keep Contact / Links visible near the top */
.contact-section-top{
  padding-top:18px;
  padding-bottom:20px;
}
.contact-box-top{
  margin:0;
}
.contact-box-top h3{
  margin-top:8px;
}
@media(max-width:700px){
  .contact-section-top{
    padding-top:12px;
    padding-bottom:14px;
  }
  .contact-box-top .contact-links{
    gap:10px;
  }
  .contact-box-top .btn{
    width:100%;
    justify-content:center;
  }
}


/* Mobile video fallback: Drive's embedded controls currently render poorly on phones. */
@media(max-width:760px){
  .drive-poster{
    touch-action:manipulation;
  }
  .drive-play-label{
    background:rgba(255,250,242,.98);
  }
}


/* Homepage explore heading spacing */
.explore-heading{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:20px;
}
.explore-heading .eyebrow{
  margin:0;
}
.explore-heading h2{
  margin:0 0 16px;
}
@media(max-width:700px){
  .explore-heading{
    gap:18px;
  }
}


/* YouTube multimedia players */
.youtube-player{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border:var(--border);
  border-radius:18px;
  overflow:hidden;
  background:#111;
  box-shadow:4px 4px 0 var(--ink);
}
.youtube-player.vertical{
  aspect-ratio:9/16;
  max-width:390px;
  margin-inline:auto;
}
.youtube-player iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:#111;
}
.youtube-poster{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  border:0;
  cursor:pointer;
  background:#111;
  overflow:hidden;
  color:#fff;
  touch-action:auto;
}
.youtube-poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .18s ease, filter .18s ease;
}
.youtube-poster::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.58),rgba(0,0,0,.02) 58%,rgba(0,0,0,.08));
}
.youtube-poster:hover img{
  transform:scale(1.02);
  filter:brightness(.93);
}
.youtube-play-button{
  position:absolute;
  z-index:2;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:68px;
  height:68px;
  border-radius:50%;
  display:grid;
  place-items:center;
  padding-left:4px;
  background:var(--coral);
  color:#fff;
  border:3px solid var(--ink);
  box-shadow:4px 4px 0 var(--ink);
  font-size:1.55rem;
}
.youtube-play-label{
  position:absolute;
  z-index:2;
  left:16px;
  bottom:14px;
  padding:7px 10px;
  border:2px solid var(--ink);
  border-radius:10px;
  background:rgba(255,250,242,.97);
  color:var(--ink);
  font-size:.78rem;
  font-weight:900;
}
.youtube-note{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.78rem;
}
.youtube-note strong{color:var(--ink)}
@media(max-width:700px){
  .youtube-player{
    border-radius:14px;
    box-shadow:3px 3px 0 var(--ink);
  }
  .youtube-player.vertical{
    max-width:100%;
  }
  .youtube-play-button{
    width:58px;
    height:58px;
    font-size:1.25rem;
    box-shadow:3px 3px 0 var(--ink);
  }
  .youtube-play-label{
    left:10px;
    bottom:10px;
    font-size:.72rem;
  }
}


/* ===== Visual Work ===== */
.visual-menu-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.visual-menu-card{border:var(--border);border-radius:24px;padding:24px;text-decoration:none;box-shadow:var(--shadow);transition:.16s;display:block}
.visual-menu-card:hover{transform:translate(3px,3px);box-shadow:3px 3px 0 var(--ink)}
.visual-menu-card img{width:110px;height:90px;object-fit:contain;margin-bottom:16px}
.visual-menu-card h3{margin:0 0 8px}.visual-menu-card p{color:var(--muted);margin:0 0 14px}.visual-menu-card span{font-weight:900}
.visual-menu-card.blue{background:#eaf8ff}.visual-menu-card.yellow{background:#fff4cb}.visual-menu-card.green{background:#e7faef}.visual-menu-card.coral{background:#ffe9e5}
.subnav{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.subnav a{border:2px solid var(--ink);border-radius:999px;padding:7px 11px;text-decoration:none;background:var(--white);font-weight:900;font-size:.8rem}
.subnav a:hover{background:var(--yellow)}
.gallery-subsection{scroll-margin-top:110px;margin-bottom:52px}
.gallery-subhead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.gallery-subhead p{margin:0;color:var(--muted);font-weight:800}
.photo-gallery{columns:3 280px;column-gap:18px}
.gallery-item{display:block;width:100%;padding:0;margin:0 0 18px;border:0;background:transparent;cursor:zoom-in;break-inside:avoid}
.gallery-item img{width:100%;border:var(--border);border-radius:18px;box-shadow:4px 4px 0 var(--ink);transition:transform .15s ease,box-shadow .15s ease}
.gallery-item:hover img{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink)}
.art-grid,.loop-grid,.credentials-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.art-card,.loop-card,.credential-card{border:var(--border);border-radius:22px;background:var(--white);padding:18px;box-shadow:var(--shadow)}
.art-image-button,.credential-image{width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;margin-bottom:16px}
.art-image-button img,.credential-image img{width:100%;border:var(--border);border-radius:16px;background:#fff;object-fit:contain}
.art-copy p,.loop-card p,.credential-card p{color:var(--muted);margin-bottom:0}
.art-copy h3,.loop-card h3,.credential-card h3{margin-top:12px}
.loop-frame,.motion-frame{border:var(--border);border-radius:16px;overflow:hidden;background:#111;margin-bottom:16px}
.loop-frame{aspect-ratio:1/1}.loop-frame img{width:100%;height:100%;object-fit:cover}
.motion-frame{aspect-ratio:1/1}.motion-frame video{width:100%;height:100%;object-fit:contain;background:#111}
.credential-image{min-height:230px;display:grid;place-items:center;background:#fff;border:var(--border);border-radius:16px;overflow:hidden}
.credential-image img{border:0;border-radius:0;max-height:340px;object-fit:contain}
.lightbox[hidden]{display:none}
.lightbox{position:fixed;inset:0;z-index:999;background:rgba(18,18,18,.92);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:56px 18px 24px}
.lightbox-image{max-width:min(94vw,1500px);max-height:82vh;object-fit:contain;border:3px solid #fff;border-radius:12px;background:#fff}
.lightbox-caption{color:#fff;margin:12px 0 0;font-weight:900;text-align:center}
.lightbox-close{position:fixed;top:16px;right:18px;width:46px;height:46px;border-radius:50%;border:3px solid #fff;background:var(--yellow);color:var(--ink);font-size:1.8rem;line-height:1;cursor:pointer}
body.lightbox-open{overflow:hidden}

@media(max-width:900px){
  .photo-gallery{columns:2 240px}
}
@media(max-width:700px){
  .visual-menu-grid,.art-grid,.loop-grid,.credentials-grid{grid-template-columns:1fr}
  .photo-gallery{columns:1}
  .gallery-subhead{align-items:flex-start;flex-direction:column}
  .visual-menu-card{padding:18px}
  .credential-image{min-height:170px}
  .lightbox{padding:64px 10px 20px}
  .lightbox-image{max-width:96vw;max-height:78vh}
}


/* ===== Visual Work prominence ===== */
.nav-links .visual-nav{
  background:var(--purple);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:999px;
  padding:7px 11px;
  box-shadow:2px 2px 0 var(--ink);
}
.nav-links .visual-nav:hover{
  transform:translate(1px,1px);
  box-shadow:1px 1px 0 var(--ink);
}
.nav-links .visual-nav.active{
  background:var(--yellow);
}

.purple-btn{
  background:var(--purple);
  color:var(--ink);
}

.featured-home{
  padding-top:34px;
  padding-bottom:42px;
}
.featured-title{
  margin-bottom:22px;
}
.featured-work-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.featured-card{
  display:block;
  border:var(--border);
  border-radius:22px;
  overflow:hidden;
  text-decoration:none;
  background:var(--white);
  box-shadow:var(--shadow);
  transition:transform .16s ease, box-shadow .16s ease;
}
.featured-card:hover{
  transform:translate(3px,3px);
  box-shadow:3px 3px 0 var(--ink);
}
.featured-media{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  border-bottom:var(--border);
  background:#111;
}
.featured-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.featured-type{
  position:absolute;
  left:12px;
  bottom:12px;
  border:2px solid var(--ink);
  border-radius:999px;
  padding:6px 9px;
  background:rgba(255,250,242,.95);
  font-weight:900;
  font-size:.72rem;
  color:var(--ink);
}
.featured-copy{
  padding:18px;
}
.featured-source{
  display:inline-block;
  margin-bottom:7px;
  font-size:.72rem;
  letter-spacing:.12em;
  font-weight:900;
}
.featured-card h3{
  margin:0 0 8px;
  font-size:1.25rem;
}
.featured-card p{
  margin:0 0 15px;
  color:var(--muted);
}
.featured-link{
  font-weight:900;
}
.featured-card.blue{background:#eaf8ff}
.featured-card.coral{background:#ffe9e5}
.featured-card.yellow{background:#fff4cb}
.featured-card.green{background:#e7faef}
.featured-card.purple{background:#f0ebff}
.featured-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

/* ===== Visual Work page now shows the work directly ===== */
.visual-hero{
  padding-bottom:20px;
}
.visual-banner{
  background:#f0ebff;
}
.visual-jump-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:20px;
}
.visual-jump-nav a{
  border:2px solid var(--ink);
  border-radius:999px;
  padding:8px 12px;
  text-decoration:none;
  background:var(--white);
  font-weight:900;
  box-shadow:2px 2px 0 var(--ink);
}
.visual-jump-nav a:hover{
  background:var(--yellow);
}
.visual-showcase{
  scroll-margin-top:110px;
  padding-top:42px;
  padding-bottom:48px;
}
.visual-showcase.tinted{
  background:rgba(154,131,216,.08);
  border-top:2px solid rgba(30,30,30,.12);
  border-bottom:2px solid rgba(30,30,30,.12);
}
.visual-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}
.visual-section-head h2{
  margin-bottom:0;
}
.visual-photo-preview{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.visual-photo-preview a{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  border:var(--border);
  border-radius:18px;
  box-shadow:4px 4px 0 var(--ink);
}
.visual-photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .2s ease;
}
.visual-photo-preview a:hover img{
  transform:scale(1.035);
}
.visual-art-preview{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.visual-art-preview a,
.visual-motion-preview a{
  text-decoration:none;
  font-weight:900;
}
.visual-art-preview img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border:var(--border);
  border-radius:18px;
  box-shadow:4px 4px 0 var(--ink);
  display:block;
  margin-bottom:9px;
  background:#fff;
}
.visual-loop-preview{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.visual-loop-preview a{
  aspect-ratio:1/1;
  overflow:hidden;
  border:var(--border);
  border-radius:18px;
  box-shadow:4px 4px 0 var(--ink);
  background:#fff;
}
.visual-loop-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.visual-motion-preview{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.visual-motion-preview video{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  display:block;
  background:#111;
  border:var(--border);
  border-radius:18px;
  box-shadow:4px 4px 0 var(--ink);
  margin-bottom:9px;
}

@media(max-width:900px){
  .featured-work-grid{grid-template-columns:1fr 1fr}
  .featured-card:last-child{grid-column:1/-1}
  .visual-art-preview,.visual-motion-preview{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .featured-work-grid{grid-template-columns:1fr}
  .featured-card:last-child{grid-column:auto}
  .visual-section-head{align-items:flex-start;flex-direction:column}
  .visual-photo-preview{grid-template-columns:1fr 1fr;gap:12px}
  .visual-art-preview,.visual-loop-preview,.visual-motion-preview{grid-template-columns:1fr 1fr;gap:12px}
  .nav-links .visual-nav{padding:6px 10px}
}
@media(max-width:460px){
  .visual-photo-preview{grid-template-columns:1fr}
}


/* ===== Section label spacing refinement =====
   Keep the outlined eyebrow/pill visually separate from the large heading. */
.section-title > div{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:18px;
}
.section-title > div > h2{
  margin-top:0;
}
.visual-section-head > div{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
}
.visual-section-head > div > h2{
  margin-top:0;
}
.contact-box .eyebrow + h3,
.contact-box-top .eyebrow + h3{
  margin-top:18px;
}
.credentials-section .section-title > div{
  gap:18px;
}

/* The bachelor's scan supplied is only 160×127 px.
   Use our higher-quality pre-upscaled copy and do not over-crop it. */
.credential-image .degree-scan{
  width:auto;
  max-width:100%;
  height:auto;
  max-height:340px;
  object-fit:contain;
  image-rendering:auto;
}

@media(max-width:700px){
  .section-title > div{
    gap:15px;
  }
  .visual-section-head > div{
    gap:14px;
  }
  .contact-box .eyebrow + h3,
  .contact-box-top .eyebrow + h3{
    margin-top:16px;
  }
}


/* ===== Stable nav override: Visual Work behaves like every other nav link ===== */
.nav-links a.visual-nav{
  background:transparent;
  color:inherit;
  border-color:transparent;
  border-radius:12px;
  padding:8px 11px;
  box-shadow:none;
  transform:none;
}
.nav-links a.visual-nav:hover,
.nav-links a.visual-nav.active{
  border-color:var(--ink);
  background:var(--yellow);
  color:var(--ink);
  box-shadow:none;
  transform:none;
}
